1 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
3 * config/pa/pa.c (pa_output_function_epilogue): Only update
4 last_address when a nonnote insn is found.
6 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
9 * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
11 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
14 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
15 fix pasto in checking array size.
17 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
20 * passes.def (pass_tracer): Move before last dominator pass.
22 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
24 * gcc.c (try_generate_repro): Remove argument "prog". Change all
26 (run_attempt): Handle errors of "pex_run" invocation.
28 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
30 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
32 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
33 (TARGET_ASAN_SHADOW_OFFSET): Define.
35 2014-09-26 Martin Liska <mliska@suse.cz>
37 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
40 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
41 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
42 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
43 * tree-ssa-alias.h: Likewise.
45 2014-09-26 Jakub Jelinek <jakub@redhat.com>
46 Max Ostapenko <m.ostapenko@partner.samsung.com>
48 * common.opt: New option.
49 * doc/invoke.texi: Describe new option.
50 * gcc.c (execute): Don't free first string early, but at the end
51 of the function. Call retry_ice if compiler exited with
53 (main): Factor out common code.
54 (print_configuration): New function.
55 (files_equal_p): Likewise.
56 (check_repro): Likewise.
57 (run_attempt): Likewise.
58 (do_report_bug): Likewise.
59 (append_text): Likewise.
60 (try_generate_repro): Likewise
62 2014-09-25 Andi Kleen <ak@linux.intel.com>
64 * config/i386/i386.c (x86_print_call_or_nop): New function.
65 (x86_function_profiler): Support -mnop-mcount and
67 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
68 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
70 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
72 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
73 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
74 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
77 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
79 * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
80 type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
81 types_odr_comparable): Declare.
82 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
83 * ipa-polymorphic-call.c: New file.
84 (contains_polymorphic_type_p, possible_placement_new,
85 ipa_polymorphic_call_context::restrict_to_inner_class,
86 contains_type_p, decl_maybe_in_construction_p,
87 ipa_polymorphic_call_context::stream_out,
88 ipa_polymorphic_call_context::debug,
89 ipa_polymorphic_call_context::stream_in,
90 ipa_polymorphic_call_context::set_by_decl,
91 ipa_polymorphic_call_context::set_by_invariant,
93 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
94 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
95 extr_type_from_vtbl_ptr_store, record_known_type
96 check_stmt_for_type_change,
97 ipa_polymorphic_call_context::get_dynamic_type): Move here from
99 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
101 (contains_polymorphic_type_p, possible_placement_new,
102 ipa_polymorphic_call_context::restrict_to_inner_class,
103 contains_type_p, decl_maybe_in_construction_p,
104 ipa_polymorphic_call_context::stream_out,
105 ipa_polymorphic_call_context::debug,
106 ipa_polymorphic_call_context::stream_in,
107 ipa_polymorphic_call_context::set_by_decl,
108 ipa_polymorphic_call_context::set_by_invariant,
110 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
111 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
112 extr_type_from_vtbl_ptr_store, record_known_type
113 check_stmt_for_type_change,
114 ipa_polymorphic_call_context::get_dynamic_type): Move to
115 ipa-polymorphic-call.c
116 (type_all_derivations_known_p, types_odr_comparable,
117 types_must_be_same_for_odr): Export.
118 (type_known_to_have_no_deriavations_p): New function.
119 * Makefile.in: Add ipa-polymorphic-call.c
121 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
123 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
125 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
126 (possible_polymorphic_call_targets): Instead of computing both
127 speculative and non-speculative answers, do just one at a time.
128 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
129 (dump_targets): Break out from ...
130 (dump_possible_polymorphic_call_targets): ... here; dump both speculative
131 and non-speculative lists.
132 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
133 * ipa-utils.h (possible_polymorphic_call_targets): Update.
135 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
137 PR rtl-optimization/63348
138 * emit-rtl.c (try_split): Do not emit extra barrier.
140 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
142 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
143 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
145 (aarch64_<sur>shll2_n<mode>): Likewise.
146 (aarch64_<sur>shr_n<mode>): Likewise.
147 (aarch64_<sur>sra_n<mode>: Likewise.
148 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
149 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
150 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
151 * config/aarch64/iterators.md (ve_mode): New.
152 (offsetlr): Remap to infix text for use in new predicates.
153 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
154 (aarch64_simd_shift_imm_hi): Likewise.
155 (aarch64_simd_shift_imm_si): Likewise.
156 (aarch64_simd_shift_imm_di): Likewise.
157 (aarch64_simd_shift_imm_offset_qi): Likewise.
158 (aarch64_simd_shift_imm_offset_hi): Likewise.
159 (aarch64_simd_shift_imm_offset_si): Likewise.
160 (aarch64_simd_shift_imm_offset_di): Likewise.
161 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
162 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
163 (aarch64_simd_shift_imm_bitsize_si): Likewise.
164 (aarch64_simd_shift_imm_bitsize_di): Likewise.
166 2014-09-25 Jiong Wang <jiong.wang@arm.com>
168 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
169 new created BB as the intersection of live-in from "old_dest" and
172 2014-09-25 Felix Yang <felix.yang@huawei.com>
174 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
175 * genautomata.c (merge_states): Ditto.
177 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
180 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
181 in instruction sequence.
183 2014-09-25 Nick Clifton <nickc@redhat.com>
186 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
187 in instruction sequence.
189 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
192 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
193 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
195 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
196 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
197 Anna Tikhonova <anna.tikhonova@intel.com>
198 Ilya Tocar <ilya.tocar@intel.com>
199 Andrey Turetskiy <andrey.turetskiy@intel.com>
200 Ilya Verbin <ilya.verbin@intel.com>
201 Kirill Yukhin <kirill.yukhin@intel.com>
202 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
205 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
206 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
207 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
208 (define_expand "<avx512>_perm<mode>_mask"): ... this.
209 Use VI8F_256_512 mode iterator.
210 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
211 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
213 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
214 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
215 Anna Tikhonova <anna.tikhonova@intel.com>
216 Ilya Tocar <ilya.tocar@intel.com>
217 Andrey Turetskiy <andrey.turetskiy@intel.com>
218 Ilya Verbin <ilya.verbin@intel.com>
219 Kirill Yukhin <kirill.yukhin@intel.com>
220 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
223 (define_insn "avx_movshdup256<mask_name>"): Add masking.
224 (define_insn "sse3_movshdup<mask_name>"): Ditto.
225 (define_insn "avx_movsldup256<mask_name>"): Ditto.
226 (define_insn "sse3_movsldup<mask_name>"): Ditto.
227 (define_insn "vec_dupv2df<mask_name>"): Ditto.
228 (define_insn "*vec_concatv2df"): Add EVEX version.
230 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
231 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
232 Anna Tikhonova <anna.tikhonova@intel.com>
233 Ilya Tocar <ilya.tocar@intel.com>
234 Andrey Turetskiy <andrey.turetskiy@intel.com>
235 Ilya Verbin <ilya.verbin@intel.com>
236 Kirill Yukhin <kirill.yukhin@intel.com>
237 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
240 (define_insn "vec_set<mode>_0"): Add EVEX version.
242 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
243 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
244 Anna Tikhonova <anna.tikhonova@intel.com>
245 Ilya Tocar <ilya.tocar@intel.com>
246 Andrey Turetskiy <andrey.turetskiy@intel.com>
247 Ilya Verbin <ilya.verbin@intel.com>
248 Kirill Yukhin <kirill.yukhin@intel.com>
249 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
253 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
255 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
256 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
257 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
258 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
259 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
260 (define_expand "sse2_cvtpd2ps_mask): New.
261 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
262 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
264 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
265 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
266 Anna Tikhonova <anna.tikhonova@intel.com>
267 Ilya Tocar <ilya.tocar@intel.com>
268 Andrey Turetskiy <andrey.turetskiy@intel.com>
269 Ilya Verbin <ilya.verbin@intel.com>
270 Kirill Yukhin <kirill.yukhin@intel.com>
271 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
274 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
275 (ufix_notruncv8dfv8si2_mask_round): ... this.
277 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
278 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
279 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
280 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
281 (define_expand "sse2_cvtpd2dq"): Delete.
282 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
283 make 2nd operand const0 vector.
284 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
286 (define_mode_attr pd2udqsuff): New.
288 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
289 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
290 (define_insn "*avx_cvttpd2dq256_2"): Delete.
291 (define_expand "sse2_cvttpd2dq"): Ditto.
292 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
293 make 2nd operand const0 vector.
295 2014-09-25 Jakub Jelinek <jakub@redhat.com>
297 PR tree-optimization/63341
298 * tree-vectorizer.h (vect_create_data_ref_ptr,
299 vect_create_addr_base_for_vector_ref): Add another tree argument
300 defaulting to NULL_TREE.
301 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
302 argument, pass it down to vect_create_addr_base_for_vector_ref.
303 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
304 add that to base_offset too if non-NULL.
305 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
306 for dr_explicit_realign_optimized set it to vector byte size
307 - 1 instead of setting offset, pass byte_offset down to
308 vect_create_data_ref_ptr.
310 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
312 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
313 forgotten debug output; canonicalize querries more wtih LTO.
315 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
317 * cgraph.h (class ipa_polymorphic_call_context): Move here from
318 ipa-utils.h; add stream_int and stream_out methods.
319 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
320 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
321 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
323 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
324 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
325 ipa_polymorphic_call_context::clear_speculation,
326 ipa_polymorphic_call_context::clear_outer_type): Move here from
328 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
329 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
330 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
331 ipa_polymorphic_call_context::clear_speculation,
332 ipa_polymorphic_call_context::clear_outer_type): Likewise.
333 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
335 (ipa_polymorphic_call_context::stream_out): New method.
336 (ipa_polymorphic_call_context::stream_in): New method.
337 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
338 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
340 (ipa_analyze_call_uses): Simplify.
341 (update_indirect_edges_after_inlining): Do not care about outer_type.
342 (ipa_write_indirect_edge_info): Update.
343 (ipa_write_indirect_edge_info): Likewise.
344 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
345 (dump_edge_flags): Break out from ...
346 (cgraph_node::dump): ... here; dump indirect edges.
348 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
350 * ipa-utils.h (polymorphic_call_context): Add
351 metdhos dump, debug and clear_outer_type.
352 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
353 (ipa_polymorphic_call_context::clear_outer_type): New method.
354 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
355 * ipa-devirt.c (types_odr_comparable): New function.
356 (types_must_be_same_for_odr): New function.
357 (odr_subtypes_equivalent_p): Simplify.
358 (possible_placement_new): Break out from ...
359 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
360 be more cuatious about returning false in cases the context may be
361 valid in derived type or via placement new.
362 (contains_type_p): Clear maybe_derived_type
363 (ipa_polymorphic_call_context::dump): New method.
364 (ipa_polymorphic_call_context::debug): New method.
365 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
366 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
367 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
368 (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
369 to suceed on all valid cases; remove confused sanity check.
370 (dump_possible_polymorphic_call_targets): Simplify.
372 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
374 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
375 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
376 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
377 varpool.c: Rename all instances of DECL_ABSTRACT to
380 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
382 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
383 special handling for stores whose SET_SRC is an UNSPEC (such as
386 2014-09-24 Jiong Wang <jiong.wang@arm.com>
388 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
389 !REG_P (src) to release more instruction sink opportunities.
391 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
393 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
394 move costs for 128-bit types.
396 2014-09-24 Martin Jambor <mjambor@suse.cz>
398 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
399 when duplicating a PASS_THROUGH jump function when creating a
402 2014-09-24 Marek Polacek <polacek@redhat.com>
406 * asan.c (maybe_instrument_call): Add default case.
407 * ipa-pure-const.c (special_builtin_state): Likewise.
408 * predict.c (expr_expected_value_1): Likewise.
409 * lto-streamer-out.c (write_symbol): Initialize variable.
411 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
413 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
415 (vmuld_laneq_f64): Likewise.
416 (vmuls_lane_f32): Likewise.
417 (vmuls_laneq_f32): Likewise.
419 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
422 * varpool.c (varpool_node::add): Pass decl attributes
425 2014-09-24 Jakub Jelinek <jakub@redhat.com>
428 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
430 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
432 PR tree-optimization/63266
433 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
434 marker for unknown byte value.
435 (MARKER_MASK): New macro.
436 (MARKER_BYTE_UNKNOWN): New macro.
437 (HEAD_MARKER): New macro.
438 (do_shift_rotate): Mark bytes with unknown values due to sign
439 extension when doing an arithmetic right shift. Replace hardcoded
440 mask for marker by new MARKER_MASK macro.
441 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
444 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
445 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
446 Anna Tikhonova <anna.tikhonova@intel.com>
447 Ilya Tocar <ilya.tocar@intel.com>
448 Andrey Turetskiy <andrey.turetskiy@intel.com>
449 Ilya Verbin <ilya.verbin@intel.com>
450 Kirill Yukhin <kirill.yukhin@intel.com>
451 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
455 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
457 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
458 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
460 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
461 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
462 Anna Tikhonova <anna.tikhonova@intel.com>
463 Ilya Tocar <ilya.tocar@intel.com>
464 Andrey Turetskiy <andrey.turetskiy@intel.com>
465 Ilya Verbin <ilya.verbin@intel.com>
466 Kirill Yukhin <kirill.yukhin@intel.com>
467 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
470 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
471 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
472 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
473 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
474 (define_expand "avx512vl_pshuflw_mask"): New.
475 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
476 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
477 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
478 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
479 (define_expand "avx512vl_pshufhw_mask"): New.
480 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
482 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
483 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
484 Anna Tikhonova <anna.tikhonova@intel.com>
485 Ilya Tocar <ilya.tocar@intel.com>
486 Andrey Turetskiy <andrey.turetskiy@intel.com>
487 Ilya Verbin <ilya.verbin@intel.com>
488 Kirill Yukhin <kirill.yukhin@intel.com>
489 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
492 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
493 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
494 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
495 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
496 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
498 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
500 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
501 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
503 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
504 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
505 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
506 (define_expand "avx512vl_pshufd_mask"): New.
507 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
509 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
510 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
511 Anna Tikhonova <anna.tikhonova@intel.com>
512 Ilya Tocar <ilya.tocar@intel.com>
513 Andrey Turetskiy <andrey.turetskiy@intel.com>
514 Ilya Verbin <ilya.verbin@intel.com>
515 Kirill Yukhin <kirill.yukhin@intel.com>
516 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
519 (CODE_FOR_avx2_extracti128): Rename to ...
520 (CODE_FOR_avx_vextractf128v4di): this.
521 (CODE_FOR_avx2_inserti128): Rename to ...
522 (CODE_FOR_avx_vinsertf128v4di): this.
523 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
524 CODE_FOR_avx_vextractf128v4di.
525 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
526 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
527 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
528 CODE_FOR_avx512vl_vinsertv8si.
531 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
532 AVX512_VEC mode iterator.
534 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
537 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
538 AVX512_VEC_2 mode iterator.
539 (define_insn "vec_set_lo_<mode><mask_name>"): New.
540 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
541 (define_expand "avx512vl_vinsert<mode>"): Ditto.
542 (define_insn "avx2_vec_set_lo_v4di"): Delete.
543 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
544 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
545 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
546 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
547 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
548 (define_expand "avx2_extracti128"): Delete.
549 (define_expand "avx2_inserti128"): Ditto.
551 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
552 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
553 Anna Tikhonova <anna.tikhonova@intel.com>
554 Ilya Tocar <ilya.tocar@intel.com>
555 Andrey Turetskiy <andrey.turetskiy@intel.com>
556 Ilya Verbin <ilya.verbin@intel.com>
557 Kirill Yukhin <kirill.yukhin@intel.com>
558 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
561 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
562 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
563 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
564 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
565 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
566 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
567 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
568 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
569 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
570 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
571 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
572 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
573 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
575 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
577 PR rtl-optimization/63210
578 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
579 HARD_REGNO is not available for CONFLICT_A.
581 2014-09-23 Andi Kleen <ak@linux.intel.com>
583 * cgraph.h (symtab_node): Add no_reorder attribute.
584 (symbol_table::output_asm_statements): Remove.
585 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
586 (cgraph_node::create_version_clone): Dito.
587 (symbol_table::output_asm_statements): Remove.
588 * trans-mem.c (ipa_tm_create_version_alias): Dito.
589 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
590 (output_in_order): Add no_reorder flag. Only handle no_reorder
592 (symbol_table::compile): Add separate pass for no_reorder nodes.
593 (process_common_attributes): Set no_reorder flag in symtab node.
595 (process_function_and_variable_attributes): Pass symtab nodes to
596 process_common_attributes.
597 * doc/extend.texi (no_reorder): Document no_reorder attribute.
598 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
599 (lto_output_varpool_node): Dito.
600 (input_overwrite_node): Dito.
601 (input_varpool_node): Dito.
602 * varpool.c (varpool_node::add): Set no_reorder attribute.
603 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
604 (symbol_table::output_variables): Dito.
605 * symtab.c (symtab_node::dump_base): Print no_reorder.
607 2014-09-23 Jiong Wang <jiong.wang@arm.com>
609 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
612 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
614 * configure: Regenerate.
616 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
618 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
619 when result_mode == shift_mode.
621 2014-09-23 Kostya Serebryany <kcc@google.com>
623 Update to match the changed asan API.
624 * asan.c (asan_global_struct): Update the __asan_global definition
625 to match the new API.
626 (asan_add_global): Ditto.
627 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
630 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
632 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
633 refine the constraints used on 32/64-bit floating point moves.
638 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
639 (BOOL_REGS_OP1): Likewise.
640 (BOOL_REGS_OP2): Likewise.
641 (BOOL_REGS_UNARY): Likewise.
642 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
643 32/64-bit floating point moves. Do not use wa, instead use ww/ws
644 for moves involving VSX registers. Do not use constraints that
645 target VSX registers for decimal types.
646 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
647 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
649 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
651 * tree.h (int_bit_position): Turn into inline function;
652 implement using wide int.
653 * tree.c (int_bit_position): Remove.
655 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
658 * target-globals.c (target_globals::~target_globals): Fix location
659 of ira_int destruction.
661 2014-09-23 Renlin Li <renlin.li@arm.com>
663 * config/aarch64/aarch64.md (return): New.
664 (simple_return): Likewise.
665 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
666 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
668 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
670 * common/config/aarch64/aarch64-common.c:
671 (default_options aarch_option_optimization_table):
672 Default to -fsched-pressure.
674 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
676 * cfgcleanup.c (try_optimize_cfg): Do not remove label
677 with LABEL_PRESERVE_P flag set.
679 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
680 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
681 Anna Tikhonova <anna.tikhonova@intel.com>
682 Ilya Tocar <ilya.tocar@intel.com>
683 Andrey Turetskiy <andrey.turetskiy@intel.com>
684 Ilya Verbin <ilya.verbin@intel.com>
685 Kirill Yukhin <kirill.yukhin@intel.com>
686 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
689 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
690 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
691 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
692 (define_insn "sse2_shufpd_v2df_mask"): New.
694 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
695 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
696 Anna Tikhonova <anna.tikhonova@intel.com>
697 Ilya Tocar <ilya.tocar@intel.com>
698 Andrey Turetskiy <andrey.turetskiy@intel.com>
699 Ilya Verbin <ilya.verbin@intel.com>
700 Kirill Yukhin <kirill.yukhin@intel.com>
701 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
704 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
705 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
706 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
707 (define_insn "sse_shufps_v4sf_mask"): New.
709 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
710 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
711 Anna Tikhonova <anna.tikhonova@intel.com>
712 Ilya Tocar <ilya.tocar@intel.com>
713 Andrey Turetskiy <andrey.turetskiy@intel.com>
714 Ilya Verbin <ilya.verbin@intel.com>
715 Kirill Yukhin <kirill.yukhin@intel.com>
716 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
719 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
720 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
721 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
722 (define_insn "unpcklps128_mask"): New.
724 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
725 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
726 Anna Tikhonova <anna.tikhonova@intel.com>
727 Ilya Tocar <ilya.tocar@intel.com>
728 Andrey Turetskiy <andrey.turetskiy@intel.com>
729 Ilya Verbin <ilya.verbin@intel.com>
730 Kirill Yukhin <kirill.yukhin@intel.com>
731 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
734 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
735 (define_insn "avx512vl_unpckhpd128_mask"): New.
736 (define_expand "avx_movddup256<mask_name>"): Add masking.
737 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
738 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
739 (define_insn "avx512vl_unpcklpd128_mask"): New.
741 2014-09-22 Joseph Myers <joseph@codesourcery.com>
743 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
744 * doc/tm.texi: Regenerate.
745 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
746 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
747 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
749 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
750 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
751 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
752 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
753 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
755 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
756 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
757 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
758 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
759 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
760 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
761 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
762 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
763 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
764 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
765 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
768 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
770 * tree-ssa-ccp.c (prop_value_d): Rename to ...
771 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
772 * ipa-prop.c (struct type_change_info): Rename to ...
773 (prop_type_change_info): ... this; update uses.
774 * ggc-page.c (globals): Rename to ...
775 (static struct ggc_globals): ... this; update uses.
776 * tree-ssa-loop-im.c (mem_ref): Rename to ...
777 (im_mem_ref): ... this; update uses.
778 * ggc-common.c (loc_descriptor): Rename to ...
779 (ggc_loc_descriptor): ... this; update uses.
780 * lra-eliminations.c (elim_table): Rename to ...
781 (lra_elim_table): ... this; update uses.
782 * bitmap.c (output_info): Rename to ...
783 (bitmap_output_info): ... this; update uses.
784 * gcse.c (expr): Rename to ...
785 (gcse_expr) ... this; update uses.
786 (occr): Rename to ...
787 (gcse_occr): .. this; update uses.
788 * tree-ssa-copy.c (prop_value_d): Rename to ...
789 (prop_value_t): ... this.
790 * predict.c (block_info_def): Rename to ...
791 (block_info): ... this; update uses.
792 (edge_info_def): Rename to ...
793 (edge_info): ... this; update uses.
794 * profile.c (bb_info): Rename to ...
795 (bb_profile_info): ... this; update uses.
796 * alloc-pool.c (output_info): Rename to ...
797 (pool_output_info): ... this; update uses.
798 * ipa-cp.c (topo_info): Rename to ..
799 (ipa_topo_info): ... this; update uses.
800 * tree-nrv.c (nrv_data): Rename to ...
801 (nrv_data_t): ... this; update uses.
802 * ipa-split.c (bb_info): Rename to ...
803 (split_bb_info): ... this one.
804 * profile.h (edge_info): Rename to ...
805 (edge_profile_info): ... this one; update uses.
806 * dse.c (bb_info): Rename to ...
807 (dse_bb_info): ... this one; update uses.
808 * cprop.c (occr): Rename to ...
809 (cprop_occr): ... this one; update uses.
810 (expr): Rename to ...
811 (cprop_expr): ... this one; update uses.
813 2014-09-22 Jason Merrill <jason@redhat.com>
815 * Makefile.in (check-parallel-%): Add @.
817 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
819 * config/aarch64/geniterators.sh: New.
820 * config/aarch64/iterators.md (VDQF_DF): New.
821 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
822 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
824 2014-09-22 Peter A. Bigot <pab@pabigot.com>
826 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
827 -lnosys when -msim absent.
829 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
831 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
833 2014-09-22 Richard Biener <rguenther@suse.de>
835 * gimplify.c (gimplify_init_constructor): Do not leave
836 non-GIMPLE vector constructors around.
837 * tree-cfg.c (verify_gimple_assign_single): Verify that
838 CONSTRUCTORs have gimple elements.
840 2014-09-22 Jakub Jelinek <jakub@redhat.com>
843 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
844 insert a debug source bind stmt setting DEBUG_EXPR_DECL
845 instead of a normal gimple assignment stmt.
847 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
849 * config/bfin/bfin.md: Fix use of constraints in define_split.
851 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
853 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
854 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
856 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
858 * hard-reg-set.h: Include hash-table.h.
859 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
861 * target-globals.c (target_globals::~target_globals): Call
863 * rtl.h (subreg_shape): New structure.
864 (shape_of_subreg): New function.
865 (simplifiable_subregs): Declare.
866 * reginfo.c (simplifiable_subreg): New structure.
867 (simplifiable_subregs_hasher): Likewise.
868 (simplifiable_subregs): New function.
869 (invalid_mode_changes): Delete.
870 (alid_mode_changes, valid_mode_changes_obstack): New variables.
871 (record_subregs_of_mode): Remove subregs_of_mode parameter.
872 Record valid mode changes in valid_mode_changes.
873 (find_subregs_of_mode): Remove subregs_of_mode parameter.
874 Update calls to record_subregs_of_mode.
875 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
876 handling. Initialize new variables. Update call to
877 find_subregs_of_mode.
878 (invalid_mode_change_p): Check new variables instead of
879 invalid_mode_changes.
880 (finish_subregs_of_mode): Finalize new variables instead of
881 invalid_mode_changes.
882 (target_hard_regs::finalize): New function.
883 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
884 even when CLASS_CANNOT_CHANGE_MODE is undefined.
886 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
888 * combine.c (subst): Use simplify_subreg_regno rather than
889 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
891 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
893 * rtl.h (subreg_info): Expand commentary
894 * rtlanal.c (subreg_get_info): Likewise.
896 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
898 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
899 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
900 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
902 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
904 * config/arm/arm.c: #include "tm-constrs.h"
905 (thumb1_size_rtx_costs): Adjust rtx costs.
907 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
909 * configure.ac (target_header_dir): Move block defining
910 this to before the block setting inhibit_libc.
911 (inhibit_libc): When considering $with_headers, just
912 check it it's explicitly "no". If not, also check if
913 $target_header_dir/stdio.h is present. If not, set
915 * configure: Regenerate.
917 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
919 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
921 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
923 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
924 insn for divides by integer powers of two.
925 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
926 (mod<mode>3): Fix formatting.
927 (three anonymous define_insn and two define_split): Delete.
929 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
931 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
932 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
933 (floatdisf2_internal2): Ditto.
934 (ashrdi3_no_power): Ditto. Fix formatting.
936 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
938 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
939 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
942 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
944 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
945 constant, use addsi3 directly.
946 (three anonymous define_insn, two define_split): Delete.
947 (sub<mode>3): Move. Do not allow constant second operand.
948 Generate different insn for constant first operand.
949 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
950 (subf<mode>3_imm): New.
951 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
952 (*plus_ltu<mode>): Only handle registers.
953 (*plus_ltu<mode>_1): New. Handle integer third operand.
954 (*plus_gtu<mode>): Only handle registers.
955 (*plus_gtu<mode>_1): New. Handle integer third operand.
957 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
959 * config/rs6000/rs6000.md (iorxor): New code_iterator.
960 (iorxor): New code_attr.
961 (IORXOR): New code_attr.
962 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
963 (ior<mode>3, xor<mode>3): Delete.
964 (<iorxor><mode>3): New.
965 (splitter for "big" integer ior, xor): New.
966 (*bool<mode>3): Move. Also handle AND.
967 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
968 (splitter for "big" integer ior, xor): Delete.
970 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
972 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
973 (two anonymous define_insn and two define_split): Delete.
974 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
976 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
978 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
979 (two anonymous define_insn and two define_split): Delete.
980 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
982 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
984 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
986 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
988 * config/rs6000/predicates.md (ca_operand): Allow subregs.
989 (input_operand): Do not allow ca_operand.
990 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
991 carry bit, allow SImode and Pmode.
992 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
994 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
996 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
997 clobbered registers using clobber_reg. Remove UNSPEC decoration.
998 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
999 (*call_rex64_ms_sysv): Remove.
1000 (*call_value_rex64_ms_sysv): Ditto.
1001 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
1003 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
1005 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
1008 2014-09-20 Andreas Schwab <schwab@suse.de>
1010 * config/ia64/ia64.md: Remove constraints from define_split
1013 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
1015 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
1016 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
1017 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
1018 (get_dynamic_type): Remove.
1019 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
1020 (clear_speculation): Bring to ipa-deivrt.h
1021 (get_class_context): Rename to ...
1022 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
1023 (contains_type_p): Update.
1024 (get_dynamic_type): Rename to ...
1025 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
1026 (possible_polymorphic_call_targets): UPdate.
1027 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
1028 * ipa-prop.c (ipa_analyze_call_uses): Update.
1030 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
1032 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
1033 privatize dynamic TLS variables.
1035 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
1037 * diagnostic.c (warning_n): New function.
1038 * diagnostic-core.h (warning_n): Declare.
1039 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
1040 output dynamic counts when available.
1042 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
1044 PR tree-optimization/63255
1045 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
1046 issue in setting body_removed flag.
1048 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
1051 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
1052 that visibility change is possible
1053 (handle_weakref_attribute): Likewise.
1054 * cgraph.h (symtab_node): Add method get_create and
1055 field refuse_visibility_changes.
1056 (symtab_node::get_create): New method.
1057 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
1058 * varasm.c (mark_weak): Verify that visibility change is
1061 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
1063 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
1064 for base_reg_operand to be common between LO_SUM and PLUS.
1065 (fusion_gpr_mem_combo): New predicate to match a fused address
1066 that combines the addis and memory offset address.
1068 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
1070 (emit_fusion_gpr_load): Likewise.
1072 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
1073 signature to pass each argument separately, rather than
1074 using an operands array. Rewrite the insns found by peephole2 to
1075 be a single insn, rather than hoping the insns will still be
1076 together when the peephole pass is done. Drop being called via a
1078 (emit_fusion_gpr_load): Change calling signature to be called from
1079 the fusion_gpr_load_<mode> insns with a combined memory address
1080 instead of the peephole pass passing the addis and offset
1083 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
1085 (power8 fusion peephole): Drop support for doing power8 via a
1086 normal peephole that was created by the peephole2 pass.
1087 (power8 fusion peephole2): Create a new insn with the fused
1088 address, so that the fused operation is kept together after
1089 register allocation is done.
1090 (fusion_gpr_load_<mode>): Likewise.
1092 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
1095 * tree.c (need_assembler_name_p): Do not mangle variadic types.
1097 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
1099 * recog.c (scratch_operand): Do not simply allow all hard registers:
1100 only allow those that are allocatable.
1102 2014-09-19 Felix Yang <felix.yang@huawei.com>
1104 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
1105 comments and fix spacing to conform to coding style.
1107 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
1109 * genrecog.c (validate_pattern): Allow empty constraints in
1112 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
1114 * dwarf2out.c (decl_ultimate_origin): Update comment.
1115 * tree.c (block_ultimate_origin): Same.
1117 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1119 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
1120 Update GCC version name to GCC 5.
1121 (rs6000_function_arg_boundary): Likewise.
1122 (rs6000_function_arg): Likewise.
1124 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
1126 * config/sh/sh.md: Fix use of constraints in define_split.
1128 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
1131 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
1133 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
1135 * doc/md.texi (Modifiers): Consistently use "read/write"
1136 nomenclature rather than "input/output".
1137 * genrecog.c (constraints_supported_in_insn_p): New.
1138 (validate_pattern): If needed, also check constraints on
1139 MATCH_SCRATCH operands.
1140 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
1141 operands with no '=' or '+' modifier.
1143 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
1145 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
1146 scratch register as written.
1148 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1150 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
1153 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1155 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
1158 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1161 * config/s390/s390.c (s390_emit_epilogue): When doing the return
1162 address load optimization force s390_optimize_prologue to leave it
1163 that way. Only do the optimization if we already decided to push
1164 r14 into a stack slot.
1166 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
1168 * asan.c (build_check_stmt): Alignment arg was added.
1169 (asan_expand_check_ifn): Optimization for alignment >= 8.
1171 2014-09-19 Olivier Hainque <hainque@adacore.com>
1173 * config/i386/vxworksae.h: Remove obsolete definitions.
1174 (STACK_CHECK_PROTECT): Define.
1175 * config/i386/vx-common.h: Remove. Merge contents within
1176 config/i386/vxworks.h.
1177 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
1180 2014-09-19 Olivier Hainque <hainque@adacore.com>
1182 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
1183 * config/rs6000/t-vxworksmils: New file.
1184 * config/rs6000/vxworksmils.h: New file.
1186 2014-09-19 Olivier Hainque <hainque@adacore.com>
1188 * varasm.c (default_section_type_flags): Flag .persistent.bss
1189 sections as SECTION_BSS.
1191 2014-09-19 Nick Clifton <nickc@redhat.com>
1193 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
1194 pop'ed registers so that DCE does not eliminate them.
1196 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
1199 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
1201 2014-09-18 Joseph Myers <joseph@codesourcery.com>
1203 * system.h (LIBGCC2_TF_CEXT): Poison.
1204 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
1205 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
1206 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
1207 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
1208 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
1209 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
1210 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
1211 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
1212 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
1214 2014-09-19 Kito Cheng <kito@0xlab.org>
1216 * except.h: Fix header guard.
1217 * addresses.h: Add missing header guard.
1218 * cfghooks.h: Likewise.
1219 * collect-utils.h: Likewise.
1220 * collect2-aix.h: Likewise.
1221 * conditions.h: Likewise.
1222 * cselib.h: Likewise.
1223 * dwarf2asm.h: Likewise.
1224 * graphds.h: Likewise.
1225 * graphite-scop-detection.h: Likewise.
1226 * gsyms.h: Likewise.
1227 * hw-doloop.h: Likewise.
1228 * incpath.h: Likewise.
1229 * ipa-inline.h: Likewise.
1230 * ipa-ref.h: Likewise.
1231 * ira-int.h: Likewise.
1233 * lra-int.h: Likewise.
1235 * lto-section-names.h: Likewise.
1236 * read-md.h: Likewise.
1237 * reload.h: Likewise.
1238 * rtl-error.h: Likewise.
1239 * sdbout.h: Likewise.
1240 * targhooks.h: Likewise.
1241 * tree-affine.h: Likewise.
1242 * xcoff.h: Likewise.
1243 * xcoffout.h: Likewise.
1245 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
1248 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
1251 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
1254 * lra.c (lra): Call recog_init.
1256 2014-09-18 Jakub Jelinek <jakub@redhat.com>
1259 * asan.c (transform_statements): Don't instrument clobber statements.
1261 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1263 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
1264 to neon_load1_1reg<q>.
1266 2014-09-17 Jakub Jelinek <jakub@redhat.com>
1269 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
1270 if there are only debug stmts after the noreturn call, instead
1271 remove the debug stmts.
1273 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
1275 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
1276 (odr_types_equivalent_p): Use pair hash.
1277 (odr_subtypes_equivalent_p): Likewise, do structural compare
1278 on ODR types that may be mismatched.
1279 (warn_odr): Support warning when only one field is given.
1280 (odr_types_equivalent_p): Strenghten comparsions made;
1282 (add_type_duplicate): Update VISITED hash set.
1284 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
1286 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
1287 Enable selection of 'posix' or no thread model.
1289 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
1291 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
1292 when architecture is older than ARMv7.
1294 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
1297 * config/pa/pa.c (pa_function_value): Directly handle aggregates
1298 that fit exactly in a word or double word.
1300 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
1302 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
1305 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1306 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1307 Anna Tikhonova <anna.tikhonova@intel.com>
1308 Ilya Tocar <ilya.tocar@intel.com>
1309 Andrey Turetskiy <andrey.turetskiy@intel.com>
1310 Ilya Verbin <ilya.verbin@intel.com>
1311 Kirill Yukhin <kirill.yukhin@intel.com>
1312 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1314 * config/i386/i386.c
1315 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
1316 * config/i386/sse.md
1317 (define_mode_iterator VI48F_256): New.
1318 (define_mode_attr extract_type): Ditto.
1319 (define_mode_attr extract_suf): Ditto.
1320 (define_mode_iterator AVX512_VEC): Ditto.
1322 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
1324 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
1326 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
1328 (define_mode_attr extract_type_2): Ditto.
1329 (define_mode_attr extract_suf_2): Ditto.
1330 (define_mode_iterator AVX512_VEC_2): Ditto.
1332 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
1333 AVX512_VEC_2 mode iterator.
1334 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
1335 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
1336 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
1337 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
1338 (define_split for V16FI mode): Ditto.
1339 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
1340 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
1341 (define_split for VI8F_256 mode): Ditto.
1342 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
1343 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
1344 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
1345 (define_split for VI4F_256 mode): Ditto.
1346 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
1347 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
1348 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
1349 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
1350 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
1351 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
1352 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
1353 Update `type' attribute, remove explicit `memory' attribute calculation.
1355 2014-09-16 Kito Cheng <kito@0xlab.org>
1357 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
1358 ira_spilled_reg_stack_slots_num if using lra.
1359 (do_reload): Remove release ira_spilled_reg_stack_slots part.
1360 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
1361 make sure not using lra.
1362 (ira_reuse_stack_slot): Likewise.
1363 (ira_mark_new_stack_slot): Likewise.
1365 2014-09-15 Andi Kleen <ak@linux.intel.com>
1367 * function.c (allocate_struct_function): Force
1368 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
1369 profiling is disabled.
1371 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
1373 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
1374 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
1375 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
1376 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
1377 macro with statically checked member functions.
1378 * rtl.h (rtx_insn::deleted): New method.
1379 (rtx_insn::set_deleted): Likewise.
1380 (rtx_insn::set_undeleted): Likewise.
1381 (INSN_DELETED_P): Remove.
1383 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
1385 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
1386 result of emit_jump_insn_before to a new variable.
1387 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
1388 (mark_jump_label_1): Likewise.
1389 (mark_jump_label_asm): Likewise.
1390 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
1391 * rtl.h (mark_jump_label): Adjust.
1393 2014-09-15 Jakub Jelinek <jakub@redhat.com>
1395 * Makefile.in (dg_target_exps): Remove.
1396 (check_gcc_parallelize): Change to just an upper bound number.
1397 (check-%-subtargets): Always print the non-parallelized goals.
1398 (check_p_vars, check_p_comma, check_p_subwork): Remove.
1399 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
1400 check_p_numbers3, check_p_numbers4, check_p_numbers5,
1401 check_p_numbers6): New variables.
1402 (check_p_numbers): Set to sequence from 1 to 9999.
1403 (check_p_subdirs): Set to sequence from 1 to minimum of
1404 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
1406 (check-%, check-parallel-%): Rewritten so that for parallelized
1407 testing each job runs all the *.exp files, with
1408 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
1410 2014-09-15 David Malcolm <dmalcolm@redhat.com>
1412 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
1414 (arc_sets_cc_p): Likewise.
1415 * config/arc/arc.c (arc_print_operand): Use methods of
1416 "final_sequence" for clarity, and to enable strengthening of
1417 locals "jump" and "delay" from rtx to rtx_insn *.
1418 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
1419 rtx_insn *; use method of rtx_sequence for typesafety.
1420 (arc_get_insn_variants): Use insn method of rtx_sequence for
1422 (arc_pad_return): Likewise.
1423 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
1424 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
1425 dyn_cast to rtx_sequence *, using insn method for typesafety.
1426 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
1427 rtx_sequence * and use insn method when invoking get_attr_length.
1428 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
1429 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
1430 rtx_sequence *, introducing a local "seq", using its insn method
1431 from typesafety and clarity.
1432 (add_sched_insns_for_speculation): Strengthen local "next" from
1434 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
1435 (predicate_insn): Likewise.
1436 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
1438 * config/cris/cris.c (cris_notice_update_cc): Likewise.
1439 * config/epiphany/epiphany-protos.h
1440 (extern void epiphany_insert_mode_switch_use): Likewise for param
1442 (get_attr_sched_use_fpu): Likewise for param.
1443 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
1444 Likewise for param "insn".
1445 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
1446 param "insn" of "target_insert_mode_switch_use" callback.
1447 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
1448 (frv_issues_to_branch_unit_p): Likewise.
1449 (frv_pack_insn_p): Likewise.
1450 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
1451 const rtx * (i.e. mutable rtx_def * const *) to
1453 * config/i386/i386-protos.h (standard_sse_constant_opcode):
1454 Strengthen first param from rtx to rtx_insn *.
1455 (output_fix_trunc): Likewise.
1456 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
1457 (output_fix_trunc): Likewise.
1458 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
1460 (min_insn_size): Likewise for param "insn".
1461 (get_mem_group): Likewise.
1463 (get_insn_path): Likewise.
1464 (get_insn_group): Likewise.
1465 (count_num_restricted): Likewise.
1466 (fits_dispatch_window): Likewise.
1467 (add_insn_window): Likewise.
1468 (add_to_dispatch_window): Likewise.
1469 (debug_insn_dispatch_info_file): Likewise.
1470 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
1472 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
1473 "cmp" and local "prev".
1474 (m32c_output_compare): Likewise for param "insn".
1475 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
1476 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
1477 (define_predicate "large_insn_p"): Likewise.
1478 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
1479 param from rtx to rtx_insn *.
1480 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
1481 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
1482 (m68k_sched_attr_size): Likewise.
1483 (sched_get_opxy_mem_type): Likewise for param "insn".
1484 (m68k_sched_attr_op_mem): Likewise.
1485 (sched_mem_operand_p): Likewise.
1486 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
1487 * config/mep/mep.c (mep_multi_slot): Likewise.
1488 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
1490 (mips_sync_loop_insns): Likewise.
1491 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
1492 method of "final_sequence" for typesafety.
1493 (mips_process_sync_loop): Strengthen param "insn" from rtx to
1495 (mips_output_sync_loop): Likewise.
1496 (mips_sync_loop_insns): Likewise.
1497 (mips_74k_agen_init): Likewise.
1498 (mips_sched_init): Use NULL rather than NULL_RTX when working with
1500 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
1501 Strengthen param "insn" from rtx to rtx_insn *.
1502 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
1504 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
1506 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
1507 "insn". Use method of rtx_sequence for typesafety.
1508 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
1510 (branch_needs_nop_p): Likewise.
1511 (use_skip_p): Likewise.
1512 (pa_insn_refs_are_delayed): Likewise.
1513 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
1514 for locals "insn", "ninsn".
1515 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
1517 (is_cracked_insn): Likewise.
1518 (is_branch_slot_insn): Likewise.
1519 (is_nonpipeline_insn): Likewise.
1520 (insn_terminates_group_p): Likewise.
1521 (insn_must_be_first_in_group): Likewise.
1522 (insn_must_be_last_in_group): Likewise.
1523 (force_new_group): Likewise for param "next_insn".
1524 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
1526 (s390_sched_score): Likewise.
1527 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
1528 (rtx sfunc_uses_reg): Likewise for sole param.
1529 * config/sh/sh.c (sh_print_operand): Use insn method of
1530 final_sequence for typesafety.
1531 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
1532 Use insn method of final_sequence for typesafety.
1533 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
1534 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
1536 (eligible_for_return_delay): Likewise.
1537 (eligible_for_sibcall_delay): Likewise.
1538 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
1539 (eligible_for_return_delay): Likewise.
1540 (eligible_for_sibcall_delay): Likewise.
1541 * config/stormy16/stormy16-protos.h
1542 (xstormy16_output_cbranch_hi): Likewise for final param.
1543 (xstormy16_output_cbranch_si): Likewise.
1544 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
1545 (xstormy16_output_cbranch_si): Likewise.
1546 * config/v850/v850-protos.h (notice_update_cc): Likewise.
1547 * config/v850/v850.c (notice_update_cc): Likewise.
1549 * final.c (get_attr_length_1): Strengthen param "insn" and param
1550 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
1551 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
1552 (get_attr_min_length): Likewise.
1553 (shorten_branches): Likewise for signature of locals "length_fun"
1554 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
1555 from a checked cast and use its methods for clarity and to enable
1556 strengthening local "inner_insn" from rtx to rtx_insn *.
1557 * genattr.c (gen_attr): When writing out the prototypes of the
1558 various generated "get_attr_" functions, strengthen the params of
1559 the non-const functions from rtx to rtx_insn *.
1560 Similarly, strengthen the params of insn_default_length,
1561 insn_min_length, insn_variable_length_p, insn_current_length.
1562 (main): Similarly, strengthen the param of num_delay_slots,
1563 internal_dfa_insn_code, insn_default_latency, bypass_p,
1564 insn_latency, min_issue_delay, print_reservation,
1565 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
1566 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
1567 to hook_int_rtx_insn_unreachable.
1568 * genattrtab.c (write_attr_get): When writing out the generated
1569 "get_attr_" functions, strengthen the param "insn" from rtx to
1570 rtx_insn *, eliminating a checked cast.
1571 (make_automaton_attrs): When writing out prototypes of
1572 "internal_dfa_insn_code_", "insn_default_latency_" functions
1573 and the "internal_dfa_insn_code" and "insn_default_latency"
1574 callbacks, strengthen their params from rtx to rtx_insn *
1575 * genautomata.c (output_internal_insn_code_evaluation): When
1576 writing out code, add a checked cast from rtx to rtx_insn * when
1577 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
1578 (output_dfa_insn_code_func): Strengthen param of generated
1579 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
1580 (output_trans_func): Likewise for generated function
1582 (output_internal_insn_latency_func): When writing out generated
1583 function "internal_insn_latency", rename params from "insn" and
1584 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
1585 locals "insn" and "insn2" as rtx_insn * with checked casts once
1586 we've proven that we're not dealing with const0_rtx.
1587 (output_insn_latency_func): Strengthen param of generated
1588 function "insn_latency" from rtx to rtx_insn *.
1589 (output_print_reservation_func): Likewise for generated function
1590 "print_reservation".
1591 (output_insn_has_dfa_reservation_p): Likewise for generated
1592 function "insn_has_dfa_reservation_p".
1593 * hooks.c (hook_int_rtx_unreachable): Rename to...
1594 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
1595 from rtx to rtx_insn *.
1596 * hooks.h (hook_int_rtx_unreachable): Likewise.
1597 (extern int hook_int_rtx_insn_unreachable): Likewise.
1598 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
1599 (get_attr_min_length): Likewise.
1600 * recog.c (get_enabled_alternatives): Likewise.
1601 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
1602 * reorg.c (find_end_label): Introduce local rtx "pat" and
1603 strengthen local "insn" from rtx to rtx_insn *.
1604 (redundant_insn): Use insn method of "seq" rather than element for
1605 typesafety; strengthen local "control" from rtx to rtx_insn *.
1606 * resource.c (mark_referenced_resources): Add checked cast to
1607 rtx_insn * within INSN/JUMP_INSN case.
1608 (mark_set_resources): Likewise.
1609 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
1612 2014-09-15 David Malcolm <dmalcolm@redhat.com>
1614 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
1615 param "label" from rtx to rtx_insn *.
1616 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
1618 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
1619 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
1620 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
1621 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
1622 * final.c (default_label_align_after_barrier_max_skip): Strengthen
1623 param from rtx to rtx_insn *.
1624 (default_loop_align_max_skip): Likewise.
1625 (default_label_align_max_skip): Likewise.
1626 (default_jump_align_max_skip): Likewise.
1627 * target.def (label_align_after_barrier_max_skip): Likewise.
1628 (loop_align_max_skip): Likewise.
1629 (label_align_max_skip): Likewise.
1630 (jump_align_max_skip): Likewise.
1631 * targhooks.h (default_label_align_after_barrier_max_skip):
1633 (default_loop_align_max_skip): Likewise.
1634 (default_label_align_max_skip): Likewise.
1635 (default_jump_align_max_skip): Likewise.
1637 2014-09-15 David Malcolm <dmalcolm@redhat.com>
1639 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
1640 from const_rtx to const rtx_insn *. Update union members from rtx
1642 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
1643 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
1644 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
1645 strengthen both params from const_rtx to const rtx_insn *.
1646 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
1647 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
1648 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
1650 * target.def (can_follow_jump): Strengthen both params from
1651 const_rtx to const rtx_insn *, and update default implementation
1652 from hook_bool_const_rtx_const_rtx_true to
1653 hook_bool_const_rtx_insn_const_rtx_insn_true.
1655 2014-09-15 David Malcolm <dmalcolm@redhat.com>
1657 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
1658 "insn" from rtx to rtx_insn *.
1659 * sched-int.h (deps_start_bb): Likewise for 2nd param.
1661 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1662 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1663 Anna Tikhonova <anna.tikhonova@intel.com>
1664 Ilya Tocar <ilya.tocar@intel.com>
1665 Andrey Turetskiy <andrey.turetskiy@intel.com>
1666 Ilya Verbin <ilya.verbin@intel.com>
1667 Kirill Yukhin <kirill.yukhin@intel.com>
1668 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1670 * config/i386/sse.md
1671 (define_insn "vcvtph2ps<mask_name>"): Add masking.
1672 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
1673 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
1674 (define_expand "vcvtps2ph_mask"): New.
1675 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
1676 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
1677 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
1679 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1680 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1681 Anna Tikhonova <anna.tikhonova@intel.com>
1682 Ilya Tocar <ilya.tocar@intel.com>
1683 Andrey Turetskiy <andrey.turetskiy@intel.com>
1684 Ilya Verbin <ilya.verbin@intel.com>
1685 Kirill Yukhin <kirill.yukhin@intel.com>
1686 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1688 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
1690 (define_mode_iterator VI24_AVX512BW_1): Ditto.
1691 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
1692 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
1693 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
1694 also for TARGET_AVX512VL.
1695 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
1697 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
1699 * doc/install.texi (Options specification): add
1700 --disable-libsanitizer item.
1702 2014-09-14 James Clarke <jrtc27@jrtc27.com>
1703 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1706 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
1708 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
1709 kernel version check to avoid incrementing it after every major OS X
1711 (darwin_default_min_version): Avoid static memory buffer.
1713 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
1715 * tree.c (need_assembler_name_p): Store C++ type mangling only
1718 2014-09-13 Marek Polacek <polacek@redhat.com>
1720 * tree.c (protected_set_expr_location): Don't check whether T is
1723 2014-09-12 DJ Delorie <dj@redhat.com>
1725 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
1726 (extend_and_shift1_hipsi2): Likewise.
1727 (extend_and_shift2_hipsi2): Likewise.
1729 2014-09-12 David Malcolm <dmalcolm@redhat.com>
1731 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
1732 with NULL when dealing with an insn.
1733 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
1734 from rtx to rtx_insn *.
1735 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
1736 const_rtx to const rtx_insn *.
1737 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
1739 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
1741 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
1744 2014-09-12 Joseph Myers <joseph@codesourcery.com>
1746 * target.def (libgcc_floating_mode_supported_p): New hook.
1747 * targhooks.c (default_libgcc_floating_mode_supported_p): New
1749 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
1750 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
1751 (LIBGCC2_HAS_TF_MODE): Remove.
1752 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
1753 * doc/tm.texi: Regenerate.
1754 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
1756 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
1757 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
1758 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
1759 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
1760 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1761 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
1762 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
1763 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
1764 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
1765 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
1767 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
1768 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1769 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1770 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1771 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1772 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1773 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1774 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
1775 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
1776 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
1777 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1778 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
1779 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
1780 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
1782 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
1784 (ia64_libgcc_floating_mode_supported_p): New function.
1785 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
1786 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
1787 (IA64_NO_LIBGCC_TFMODE): Define.
1788 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
1789 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
1791 (pdp11_scalar_mode_supported_p): New function.
1792 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
1793 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
1795 2014-09-12 Richard Biener <rguenther@suse.de>
1798 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
1800 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
1802 * tree.c (integer_each_onep): New function.
1803 * tree.h (integer_each_onep): Declare it.
1804 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
1805 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
1806 (X & 1) == 0 for vector and complex.
1808 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
1810 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
1812 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
1813 cost to spilling from integer to FP registers.
1815 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
1817 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
1819 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
1820 are now handled correctly.
1822 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
1824 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
1825 handling of CALLER_SAVE_REGS and POINTER_REGS.
1827 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
1829 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
1830 the number of hard registers.
1832 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
1833 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1834 Anna Tikhonova <anna.tikhonova@intel.com>
1835 Ilya Tocar <ilya.tocar@intel.com>
1836 Andrey Turetskiy <andrey.turetskiy@intel.com>
1837 Ilya Verbin <ilya.verbin@intel.com>
1838 Kirill Yukhin <kirill.yukhin@intel.com>
1839 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1841 * config/i386/sse.md
1842 (define_mode_iterator VI48_AVX512VL): New.
1843 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
1844 "avx512f_vternlog<mode>_maskz" and update mode iterator.
1845 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
1846 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
1847 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
1848 "avx512f_vternlog<mode>_mask" and update mode iterator.
1849 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
1850 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
1852 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
1853 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
1854 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
1855 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
1856 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
1857 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
1859 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
1860 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1861 Anna Tikhonova <anna.tikhonova@intel.com>
1862 Ilya Tocar <ilya.tocar@intel.com>
1863 Andrey Turetskiy <andrey.turetskiy@intel.com>
1864 Ilya Verbin <ilya.verbin@intel.com>
1865 Kirill Yukhin <kirill.yukhin@intel.com>
1866 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1868 * config/i386/sse.md (VI128_256): Delete.
1869 (define_mode_iterator VI124_256): New.
1870 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
1871 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
1872 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
1873 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
1874 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
1875 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
1876 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
1877 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
1879 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
1880 in presence of AVX-512.
1882 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
1883 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1884 Anna Tikhonova <anna.tikhonova@intel.com>
1885 Ilya Tocar <ilya.tocar@intel.com>
1886 Andrey Turetskiy <andrey.turetskiy@intel.com>
1887 Ilya Verbin <ilya.verbin@intel.com>
1888 Kirill Yukhin <kirill.yukhin@intel.com>
1889 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1891 * config/i386/sse.md
1892 (define_expand "<avx512>_gathersi<mode>"): Rename from
1893 "avx512f_gathersi<mode>".
1894 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
1895 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
1896 (define_expand "<avx512>_gatherdi<mode>"): Rename from
1897 "avx512f_gatherdi<mode>".
1898 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
1899 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
1901 (define_expand "<avx512>_scattersi<mode>"): Rename from
1902 "avx512f_scattersi<mode>".
1903 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
1904 (define_expand "<avx512>_scatterdi<mode>"): Rename from
1905 "avx512f_scatterdi<mode>".
1906 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
1908 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
1910 * ira.h (ira_finish_once): Delete.
1911 * ira-int.h (target_ira_int::~target_ira_int): Declare.
1912 (target_ira_int::free_ira_costs): Likewise.
1913 (target_ira_int::free_register_move_costs): Likewise.
1914 (ira_finish_costs_once): Delete.
1915 * ira.c (free_register_move_costs): Replace with...
1916 (target_ira_int::free_register_move_costs): ...this new function.
1917 (target_ira_int::~target_ira_int): Define.
1918 (ira_init): Call free_register_move_costs as a member function rather
1919 than a global function.
1920 (ira_finish_once): Delete.
1921 * ira-costs.c (free_ira_costs): Replace with...
1922 (target_ira_int::free_ira_costs): ...this new function.
1923 (ira_init_costs): Call free_ira_costs as a member function rather
1924 than a global function.
1925 (ira_finish_costs_once): Delete.
1926 * target-globals.c (target_globals::~target_globals): Call the
1927 target_ira_int destructor.
1928 * toplev.c: Include lra.h.
1929 (finalize): Call lra_finish_once rather than ira_finish_once.
1931 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
1933 * common.opt (flto-odr-type-merging): New flag.
1934 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
1935 (types_same_for_odr): Likewise.
1936 (odr_subtypes_equivalent_p): Likewise.
1937 (add_type_duplicate): Do not walk type variants.
1938 (register_odr_type): New function.
1939 * ipa-utils.h (register_odr_type): Declare.
1940 (odr_type_p): New function.
1941 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
1943 * doc/invoke.texi (-flto-odr-type-merging): Document.
1944 * tree.c (need_assembler_name_p): Compute ODR names when asked
1946 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
1948 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
1951 * config/i386/i386.c (ix86_option_override_internal): Also turn
1952 off OPTION_MASK_ABI_X32 for -m16.
1954 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
1956 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
1959 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
1962 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
1963 Directly forward to __*_DENORM_MIN__.
1965 2014-09-11 David Malcolm <dmalcolm@redhat.com>
1967 * rtl.h (LABEL_REF_LABEL): New macro.
1969 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
1970 of XEXP (, 0), where we know that we have a LABEL_REF.
1971 * cfgbuild.c (make_edges): Likewise.
1972 (purge_dead_tablejump_edges): Likewise.
1973 * cfgexpand.c (convert_debug_memory_address): Likewise.
1974 * cfgrtl.c (patch_jump_insn): Likewise.
1975 * combine.c (distribute_notes): Likewise.
1976 * cse.c (hash_rtx_cb): Likewise.
1977 (exp_equiv_p): Likewise.
1978 (fold_rtx): Likewise.
1979 (check_for_label_ref): Likewise.
1980 * cselib.c (rtx_equal_for_cselib_1): Likewise.
1981 (cselib_hash_rtx): Likewise.
1982 * emit-rtl.c (mark_label_nuses): Likewise.
1983 * explow.c (convert_memory_address_addr_space): Likewise.
1984 * final.c (output_asm_label): Likewise.
1985 (output_addr_const): Likewise.
1986 * gcse.c (add_label_notes): Likewise.
1987 * genconfig.c (walk_insn_part): Likewise.
1988 * genrecog.c (validate_pattern): Likewise.
1989 * ifcvt.c (cond_exec_get_condition): Likewise.
1990 (noce_emit_store_flag): Likewise.
1991 (noce_get_alt_condition): Likewise.
1992 (noce_get_condition): Likewise.
1993 * jump.c (maybe_propagate_label_ref): Likewise.
1994 (mark_jump_label_1): Likewise.
1995 (redirect_exp_1): Likewise.
1996 (rtx_renumbered_equal_p): Likewise.
1997 * lra-constraints.c (operands_match_p): Likewise.
1998 * reload.c (operands_match_p): Likewise.
1999 (find_reloads): Likewise.
2000 * reload1.c (set_label_offsets): Likewise.
2001 * reorg.c (get_branch_condition): Likewise.
2002 * rtl.c (rtx_equal_p_cb): Likewise.
2003 (rtx_equal_p): Likewise.
2004 * rtlanal.c (reg_mentioned_p): Likewise.
2005 (rtx_referenced_p): Likewise.
2006 (get_condition): Likewise.
2007 * sched-vis.c (print_value): Likewise.
2008 * varasm.c (const_hash_1): Likewise.
2009 (compare_constant): Likewise.
2010 (const_rtx_hash_1): Likewise.
2011 (output_constant_pool_1): Likewise.
2013 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
2015 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
2016 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
2018 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
2019 cr6_test_for_lt_reverse): Ditto.
2021 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
2024 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
2026 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
2028 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
2029 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
2030 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
2031 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
2034 (aarch64_fold_builtin): Remove all reinterpret cases.
2036 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
2038 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
2040 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
2041 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
2042 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
2043 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
2044 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
2045 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
2046 aarch64_reinterpretv2df<mode>): Delete.
2048 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
2050 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
2051 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
2052 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
2053 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
2054 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
2055 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
2056 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
2057 vreinterpret_u32_f64): Use cast.
2059 * config/aarch64/iterators.md (VD_RE): Delete.
2061 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
2063 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
2064 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
2065 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
2066 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
2067 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
2068 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
2069 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
2070 Replace inline assembler with __aarch64_vset_lane_any.
2072 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
2074 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
2076 (vmull_high_lane_s32): Likewise.
2077 (vmull_high_lane_u16): Likewise.
2078 (vmull_high_lane_u32): Likewise.
2080 2014-09-11 Jason Merrill <jason@redhat.com>
2083 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
2085 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
2088 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
2089 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
2090 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
2092 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2093 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2094 Anna Tikhonova <anna.tikhonova@intel.com>
2095 Ilya Tocar <ilya.tocar@intel.com>
2096 Andrey Turetskiy <andrey.turetskiy@intel.com>
2097 Ilya Verbin <ilya.verbin@intel.com>
2098 Kirill Yukhin <kirill.yukhin@intel.com>
2099 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2101 * config/i386/sse.md
2102 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
2103 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
2104 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
2106 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
2107 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
2109 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
2111 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
2112 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
2113 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
2114 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
2115 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
2116 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
2117 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
2118 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
2120 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
2122 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
2123 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
2124 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
2126 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
2128 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
2129 to access removed nodes.
2131 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
2133 PR tree-optimization/63186
2134 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
2135 (mark_nonssa_use): Likewise.
2136 (verify_non_ssa_vars): Verify all header blocks for label
2139 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2140 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2141 Anna Tikhonova <anna.tikhonova@intel.com>
2142 Ilya Tocar <ilya.tocar@intel.com>
2143 Andrey Turetskiy <andrey.turetskiy@intel.com>
2144 Ilya Verbin <ilya.verbin@intel.com>
2145 Kirill Yukhin <kirill.yukhin@intel.com>
2146 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2148 * config/i386/sse.md
2149 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
2150 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
2151 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
2152 "<avx2_avx512f>_permvar<mode><mask_name>".
2153 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
2154 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
2155 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
2156 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
2158 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
2159 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
2160 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
2161 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
2163 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2165 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
2166 V2DF, V4SF, DF, and DI modes.
2167 (vsx_fmav2df2): Likewise.
2168 (vsx_float_fix_<mode>2): Likewise.
2169 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
2171 2014-09-10 Xinliang David Li <davidxl@google.com>
2174 * config/arm/arm.md (movcond_addsi): Handle case where source
2175 and target operands are the same.
2177 2014-09-10 David Malcolm <dmalcolm@redhat.com>
2179 * final.c (this_is_asm_operands): Strengthen this variable from
2180 rtx to const rtx_insn *.
2181 * output.h (this_is_asm_operands): Likewise.
2182 * rtl-error.c (location_for_asm): Strengthen param "insn" from
2183 const_rtx to const rtx_insn *.
2184 (diagnostic_for_asm): Likewise.
2185 * rtl-error.h (error_for_asm): Likewise.
2186 (warning_for_asm): Likewise.
2188 2014-09-10 David Malcolm <dmalcolm@redhat.com>
2190 * genextract.c (print_header): When writing out insn_extract to
2191 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
2192 * recog.h (insn_extract): Strengthen the param from rtx to
2195 2014-09-10 Mike Stump <mikestump@comcast.net>
2197 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
2200 2014-09-10 Martin Jambor <mjambor@suse.cz>
2202 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
2203 (analyze): Do not set analyze flag if expand_thunk returns false;.
2204 (create_wrapper): Likewise.
2205 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
2207 2014-09-10 Martin Jambor <mjambor@suse.cz>
2210 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
2211 new decl properly. Analyze the new thunk if it is expanded.
2213 2014-09-10 Andreas Schwab <schwab@suse.de>
2215 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
2216 [USED_FOR_TARGET]: Define.
2218 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
2220 * config/mips/mips.c (mips_secondary_reload_class): Handle
2223 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
2225 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
2228 2014-09-10 Jakub Jelinek <jakub@redhat.com>
2230 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
2231 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
2232 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
2233 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
2234 flag_delete_null_pointer_checks for them.
2235 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
2236 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
2237 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
2238 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
2239 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
2241 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
2242 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
2243 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
2244 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
2245 * doc/invoke.texi (-fsanitize=nonnull-attribute,
2246 -fsanitize=returns-nonnull-attribute): Document.
2248 * ubsan.h (struct ubsan_mismatch_data): Removed.
2249 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
2250 * ubsan.c (ubsan_source_location): For unknown locations,
2251 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
2252 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
2253 Allow more than one location and arbitrary extra arguments passed
2254 in ... instead of through MISMATCH pointer.
2255 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
2256 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
2257 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
2260 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
2261 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2262 Anna Tikhonova <anna.tikhonova@intel.com>
2263 Ilya Tocar <ilya.tocar@intel.com>
2264 Andrey Turetskiy <andrey.turetskiy@intel.com>
2265 Ilya Verbin <ilya.verbin@intel.com>
2266 Kirill Yukhin <kirill.yukhin@intel.com>
2267 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2269 * config/i386/sse.md
2270 (define_mode_iterator VI48F): New.
2271 (define_insn "<avx512>_compress<mode>_mask"): Rename from
2272 "avx512f_compress<mode>_mask" and update mode iterator.
2273 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
2274 "avx512f_compressstore<mode>_mask" and update mode iterator.
2275 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
2276 "avx512f_expand<mode>_maskz" and update mode iterator.
2277 (define_insn "<avx512>_expand<mode>_mask"): Rename from
2278 "avx512f_expand<mode>_mask" and update mode iterator.
2280 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
2281 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2282 Anna Tikhonova <anna.tikhonova@intel.com>
2283 Ilya Tocar <ilya.tocar@intel.com>
2284 Andrey Turetskiy <andrey.turetskiy@intel.com>
2285 Ilya Verbin <ilya.verbin@intel.com>
2286 Kirill Yukhin <kirill.yukhin@intel.com>
2287 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2289 * config/i386/i386.c
2290 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
2291 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
2292 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
2293 avx512dq_rangepv4sf_mask.
2294 * config/i386/sse.md
2295 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
2297 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
2298 (define_insn "reduces<mode>"): Ditto.
2299 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
2301 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
2302 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
2303 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
2305 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
2306 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2307 Anna Tikhonova <anna.tikhonova@intel.com>
2308 Ilya Tocar <ilya.tocar@intel.com>
2309 Andrey Turetskiy <andrey.turetskiy@intel.com>
2310 Ilya Verbin <ilya.verbin@intel.com>
2311 Kirill Yukhin <kirill.yukhin@intel.com>
2312 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2314 * config/i386/i386.c
2315 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
2316 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
2317 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
2318 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
2319 avx512vl_getmantv2df_mask.
2320 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
2321 avx512f_vgetmantv4sf_round.
2322 * config/i386/sse.md
2323 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
2324 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
2326 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
2327 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
2328 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
2329 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
2331 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
2332 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
2333 update mode iterator.
2335 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
2336 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
2339 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
2340 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
2341 update mode iterator.
2342 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
2343 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
2346 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
2347 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
2349 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
2350 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
2351 update mode iterator.
2352 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
2353 "avx512f_getmant<mode><round_saeonly_name>".
2355 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
2358 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
2360 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
2361 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2362 Anna Tikhonova <anna.tikhonova@intel.com>
2363 Ilya Tocar <ilya.tocar@intel.com>
2364 Andrey Turetskiy <andrey.turetskiy@intel.com>
2365 Ilya Verbin <ilya.verbin@intel.com>
2366 Kirill Yukhin <kirill.yukhin@intel.com>
2367 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2369 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
2370 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
2371 (define_mode_iterator FMAMODE_AVX512): New.
2372 (define_mode_iterator FMAMODE): Remove conditions.
2373 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
2374 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
2375 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
2377 (define_mode_iterator FMAMODE_NOVF512): Remove.
2378 (define_insn "*fma_fmadd_<mode>"): Rename from
2379 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
2380 FMAMODE mode iterator.
2381 (define_mode_iterator VF_SF_AVX512VL): New.
2382 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
2383 Use VF_SF_AVX512VL mode iterator.
2384 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
2385 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
2387 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
2388 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2390 (define_insn "*fma_fmsub_<mode>"): Rename from
2391 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
2392 FMAMODE mode iterator.
2393 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
2394 Use VF_SF_AVX512VL mode iterator.
2395 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
2396 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
2398 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
2399 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2401 (define_insn "*fma_fnmadd_<mode>"): Rename from
2402 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
2403 use FMAMODE mode iterator.
2404 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
2405 Use VF_SF_AVX512VL mode iterator.
2406 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
2407 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
2409 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
2410 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2412 (define_insn "*fma_fnmsub_<mode>"): Rename from
2413 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
2414 FMAMODE mode iterator.
2415 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
2416 Use VF_SF_AVX512VL mode iterator.
2417 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
2418 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
2420 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
2421 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2423 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
2424 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
2425 use VF_AVX512VL mode iterator.
2426 (define_insn "*fma_fmaddsub_<mode>"): Rename from
2427 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
2429 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
2430 Use VF_SF_AVX512VL mode iterator.
2431 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
2432 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
2434 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
2435 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2437 (define_insn "*fma_fmsubadd_<mode>"): Rename from
2438 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
2439 remove usage of subst.
2440 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
2441 Use VF_SF_AVX512VL mode iterator.
2442 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
2443 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
2445 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
2446 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2449 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
2452 * calls.c (precompute_arguments): Check
2453 promoted_for_signed_and_unsigned_p and set the promoted mode.
2454 (promoted_for_signed_and_unsigned_p): New function.
2455 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
2456 and set the promoted mode.
2457 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
2458 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
2459 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
2461 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2463 * opth-gen.awk: Generate mapping from cpp message reasons to the
2464 options that enable them.
2465 * doc/options.texi (CppReason): Document.
2467 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2469 * doc/invoke.texi (Wnormalized=): Update.
2471 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
2474 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
2475 operands. Split off the constant operand alternative to ...
2476 (*bool<mode>3_imm): New.
2478 2014-09-09 David Malcolm <dmalcolm@redhat.com>
2480 * rtl.h (single_set_2): Strengthen first param from const_rtx to
2481 const rtx_insn *, and move prototype to above...
2482 (single_set): ...this. Convert this from a macro to an inline
2483 function, enforcing the requirement that the param is a const
2485 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
2487 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
2488 Strengthen both params from rtx to rtx_insn *.
2489 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
2490 Likewise; introduce locals "producer_set", "consumer_set", using
2491 them in place of "producer" and "consumer" when dealing with SET
2493 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
2494 when invoking single_set in region guarded by INSN_P.
2495 (avr_out_bitop): Likewise.
2496 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
2497 region guarded by GET_CODE check, using methods to strengthen
2498 local "this_insn" from rtx to rtx_insn *, and for clarity.
2499 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
2500 Strengthen local "insn" from rtx to rtx_insn *.
2501 (define_insn_and_split "xload<mode>_A"): Likewise.
2502 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
2504 (find_load): Likewise for return type.
2505 (workaround_speculation): Likewise for both locals named
2507 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
2509 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
2511 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
2513 * config/h8300/h8300.c (notice_update_cc): Likewise.
2514 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
2515 "insn" and "dep_insn".
2516 (exact_store_load_dependency): Likewise for both params.
2517 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
2518 since this now clashes with inline function. Instead, delay
2519 calling single_set until the point where its needed, and then
2520 assign the result to "compare_set" and rework the conditional that
2522 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
2523 local "last" from rtx to rtx_insn *.
2524 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
2526 (mips_store_data_bypass_p): Likewise for both params.
2527 * config/mips/mips.c (mips_load_store_insns): Likewise for second
2529 (mips_store_data_bypass_p): Likewise for both params.
2530 (mips_orphaned_high_part_p): Likewise for param "insn".
2531 * config/mn10300/mn10300.c (extract_bundle): Likewise.
2532 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
2533 Introduce local rtx "insn2_pat".
2534 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
2536 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
2537 Introduce local rtx "set", using it in place of "insn" for the
2538 result of single_set. This appears to fix a bug, since the call
2539 to find_regno_note on a SET does nothing.
2540 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
2541 params from rtx to rtx_insn *.
2542 (set_to_load_agen): Likewise.
2543 * config/s390/s390.c (s390_label_align): Likewise for local
2544 "prev_insn". Introduce new rtx locals "set" and "src", using
2545 them in place of "prev_insn" for the results of single_set
2546 and SET_SRC respectively.
2547 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
2548 Introduce new rtx local "set" using in place of "jump" for the
2549 result of single_set. Use SET_SRC (set) rather than plain
2551 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
2553 (noncall_uses_reg): Likewise.
2554 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
2555 guarded by GET_CODE check, using its methods for clarity, and to
2556 enable strengthening local "this_insn" from rtx to rtx_insn *.
2557 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
2558 "insn" from rtx to rtx_insn *.
2559 (define_expand "umulhisi3"): Likewise.
2560 (define_expand "smulsi3_highpart"): Likewise.
2561 (define_expand "umulsi3_highpart"): Likewise.
2562 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
2563 local "after". Replace GET_CODE check with a dyn_cast,
2564 introducing new local rtx_sequence * "seq", using insn method for
2567 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
2568 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
2569 place of "insn" once we're dealing with patterns rather than the
2571 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
2572 (scan_trace): Likewise for local "elt", updating lookups within
2573 sequence to use insn method rather than element method.
2574 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
2576 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
2577 * ifcvt.c (noce_try_abs): Likewise for local "insn".
2578 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
2579 invoking single_set.
2580 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
2581 "insn" from rtx to rtx_insn *.
2582 (skip_usage_debug_insns): Likewise for return type, adding a
2584 (check_secondary_memory_needed_p): Likewise for local "insn".
2585 (inherit_reload_reg): Likewise.
2586 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
2587 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
2589 (store_data_bypass_p): Likewise for both params.
2590 (if_test_bypass_p): Likewise.
2591 * recog.h (store_data_bypass_p): Likewise for both params.
2592 (if_test_bypass_p): Likewise.
2593 * reload.c (find_equiv_reg): Likewise for local "where".
2594 * reorg.c (delete_jump): Likewise for param "insn".
2595 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
2596 to const rtx_insn *.
2597 * store-motion.c (replace_store_insn): Likewise for param "del".
2598 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
2599 and use its methods for clarity, and to strengthen local "del"
2600 from rtx to rtx_insn *.
2601 (build_store_vectors): Use insn method of "st" when calling
2602 replace_store_insn for typesafety and clarity.
2604 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2606 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
2607 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
2608 on how to make it legal in future.
2610 2014-09-09 David Malcolm <dmalcolm@redhat.com>
2612 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
2614 (restinsn): Likewise.
2615 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
2617 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
2619 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
2621 (arc_hazard): Likewise for both params.
2622 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
2623 checked casts to rtx_sequence * and uses of the insn method for
2625 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
2626 (arc_adjust_insn_length): Likewise for param "insn".
2627 (struct insn_length_parameters_s): Likewise for first param of
2628 "get_variants" callback field.
2629 (arc_get_insn_variants): Likewise for first param and local
2630 "inner". Replace a check of GET_CODE with a dyn_cast to
2631 rtx_sequence *, using methods for type-safety and clarity.
2632 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
2633 rtx_sequence * and uses of the insn method for type-safety when
2634 invoking arc_adjust_insn_length.
2635 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
2637 (arm_address_offset_is_imm): Likewise.
2638 (struct tune_params): Likewise for params 1 and 3 of the
2639 "sched_adjust_cost" callback field.
2640 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
2641 params 1 and 3 ("insn" and "dep").
2642 (xscale_sched_adjust_cost): Likewise.
2643 (fa726te_sched_adjust_cost): Likewise.
2644 (cortexa7_older_only): Likewise for param "insn".
2645 (cortexa7_younger): Likewise.
2646 (arm_attr_length_move_neon): Likewise.
2647 (arm_address_offset_is_imm): Likewise.
2648 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
2649 * config/avr/avr.c (avr_notice_update_cc): Likewise.
2650 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
2651 (workaround_speculation): Likewise for local "last_condjump".
2652 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
2653 (shadow_or_blockage_p): Likewise.
2654 (get_unit_reqs): Likewise.
2655 (get_unit_operand_masks): Likewise.
2656 (c6x_registers_update): Likewise.
2657 (returning_call_p): Likewise.
2658 (can_use_callp): Likewise.
2659 (convert_to_callp): Likewise.
2660 (find_last_same_clock): Likwise for local "t".
2661 (reorg_split_calls): Likewise for local "shadow".
2662 (hwloop_pattern_reg): Likewise for param "insn".
2663 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
2664 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
2665 (frv_extract_membar): Likewise.
2666 (frv_optimize_membar_local): Strengthen param "last_membar" from
2667 rtx * to rtx_insn **.
2668 (frv_optimize_membar_global): Strengthen param "membar" from rtx
2670 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
2672 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
2673 both params from rtx to rtx_insn *.
2674 (ia64_ld_address_bypass_p): Likewise.
2675 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
2677 (ia64_safe_type): Likewise.
2678 (group_barrier_needed): Likewise.
2679 (safe_group_barrier_needed): Likewise.
2680 (ia64_single_set): Likewise.
2681 (is_load_p): Likewise.
2682 (record_memory_reference): Likewise.
2683 (get_mode_no_for_insn): Likewise.
2684 (important_for_bundling_p): Likewise.
2685 (unknown_for_bundling_p): Likewise.
2686 (ia64_st_address_bypass_p): Likewise for both params.
2687 (ia64_ld_address_bypass_p): Likewise.
2688 (expand_vselect): Introduce new local rtx_insn * "insn", using it
2689 in place of rtx "x" after the emit_insn call.
2690 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
2691 Strengthen param from rtx to rtx_insn *.
2692 (ix86_agi_dependent): Likewise for both params.
2693 (ix86_attr_length_immediate_default): Likewise for param 1.
2694 (ix86_attr_length_address_default): Likewise for param.
2695 (ix86_attr_length_vex_default): Likewise for param 1.
2696 * config/i386/i386.c (ix86_attr_length_immediate_default):
2697 Likewise for param "insn".
2698 (ix86_attr_length_address_default): Likewise.
2699 (ix86_attr_length_vex_default): Likewise.
2700 (ix86_agi_dependent): Likewise for both params.
2701 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
2702 (vselect_insn): Likewise for this variable.
2703 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
2705 (m68k_sched_attr_opy_type): Likewise.
2706 * config/m68k/m68k.c (sched_get_operand): Likewise.
2707 (sched_attr_op_type): Likewise.
2708 (m68k_sched_attr_opx_type): Likewise.
2709 (m68k_sched_attr_opy_type): Likewise.
2710 (sched_get_reg_operand): Likewise.
2711 (sched_get_mem_operand): Likewise.
2712 (m68k_sched_address_bypass_p): Likewise for both params.
2713 (sched_get_indexed_address_scale): Likewise.
2714 (m68k_sched_indexed_address_bypass_p): Likewise.
2715 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
2716 (m68k_sched_indexed_address_bypass_p): Likewise.
2717 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
2718 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
2720 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
2721 params from rtx to rtx_insn *.
2722 (mips_fmadd_bypass): Likewise.
2723 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
2724 (mips_linked_madd_p): Likewise.
2725 (mips_macc_chains_last_hilo): Likewise for this variable.
2726 (mips_macc_chains_record): Likewise for param.
2727 (vr4130_last_insn): Likewise for this variable.
2728 (vr4130_swap_insns_p): Likewise for both params.
2729 (mips_ls2_variable_issue): Likewise for param.
2730 (mips_need_noat_wrapper_p): Likewise for param "insn".
2731 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
2732 in place of "x" after the emit_insn.
2733 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
2734 params from rtx to rtx_insn *.
2735 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
2736 (pa_combine_instructions): Introduce local "par" for result of
2737 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
2739 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
2740 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
2741 (rl78_alloc_physical_registers_op1): Likewise.
2742 (rl78_alloc_physical_registers_op2): Likewise.
2743 (rl78_alloc_physical_registers_ro1): Likewise.
2744 (rl78_alloc_physical_registers_cmp): Likewise.
2745 (rl78_alloc_physical_registers_umul): Likewise.
2746 (rl78_alloc_address_registers_macax): Likewise.
2747 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
2748 * config/s390/predicates.md (execute_operation): Likewise for
2750 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
2752 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
2753 (addr_generation_dependency_p): Likewise for param "insn".
2754 (s390_agen_dep_p): Likewise for both params.
2755 (s390_fpload_toreg): Likewise for param "insn".
2756 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
2757 * config/sh/sh.c (sh_loop_align): Likewise for param and local
2759 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
2760 * config/sh/sh_treg_combine.cc
2761 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
2763 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
2764 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
2765 "and_insn", "load", "shift".
2766 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
2768 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
2769 for XEXP (note, 0) of the REG_CC_SETTER note.
2770 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
2771 rtx_insn *, eliminating a checked cast made redundant by this.
2772 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
2774 * genattr.c (main): When writing out the prototype to
2775 const_num_delay_slots, strengthen the param from rtx to
2777 * genattrtab.c (write_const_num_delay_slots): Likewise when
2778 writing out the implementation of const_num_delay_slots.
2779 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
2780 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
2781 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
2782 favor of new rtx locals "src" and "set" and new local rtx_insn *
2784 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
2786 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
2787 locals "cond", "if_then_else", "set" and new rtx_insn * locals
2789 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
2790 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
2791 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
2792 the top-level scope, replacing with new more tightly-scoped rtx
2793 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
2794 "new_insn", "copy_of_insn_b", and make local rtx "set" more
2796 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
2798 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
2800 (ira_setup_alts): Likewise for param "insn".
2801 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
2802 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
2804 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
2805 new more-tightly scoped rtx locals "add3_insn", "insn",
2806 "add2_insn" and rtx_insn * "move_insn".
2807 * postreload-gcse.c (eliminate_partially_redundant_load): Add
2808 checked cast on result of gen_move_insn when invoking
2810 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
2812 (verify_changes): Add a checked cast on "object" when invoking
2814 (extract_insn_cached): Strengthen param "insn" from rtx to
2816 (extract_constrain_insn_cached): Likewise.
2817 (extract_insn): Likewise.
2818 * recog.h (insn_invalid_p): Likewise for param 1.
2819 (recog_memoized): Likewise for param.
2820 (extract_insn): Likewise.
2821 (extract_constrain_insn_cached): Likewise.
2822 (extract_insn_cached): Likewise.
2823 * reload.c (can_reload_into): Likewise for local "test_insn".
2824 * reload.h (cleanup_subreg_operands): Likewise for param.
2825 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
2826 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
2827 result of emit_insn. Remove a checked cast made redundant by this
2829 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
2831 * sel-sched.c (get_reg_class): Likewise.
2833 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
2834 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2836 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
2837 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
2839 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
2841 2014-09-09 David Malcolm <dmalcolm@redhat.com>
2843 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
2844 const rtx_insn *, and from rtx to rtx_insn * for the other
2846 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
2847 INSN_LOCATION, since we know INSN_P holds.
2848 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
2849 (insn_file): Likewise.
2850 (insn_scope): Likewise.
2851 (insn_location): Likewise.
2853 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
2854 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
2855 for the result of gen_load_const_gp.
2856 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
2857 param from rtx to rtx_insn *.
2858 * config/rs6000/rs6000.c (output_call): Likewise.
2859 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
2860 introducing a checked cast to rtx_sequence * and use of the insn
2862 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
2863 from rtx to rtx_insn *.
2864 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
2865 (insn_line): Likewise.
2866 (insn_file): Likewise.
2867 (insn_location): Likewise.
2868 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
2869 from rtx to rtx_insn *.
2870 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
2871 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
2872 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
2874 * reorg.c (relax_delay_slots): Strengthen locals named "after"
2875 from rtx to rtx_insn *; use methods of "pat" for type-safety.
2877 2014-09-09 David Malcolm <dmalcolm@redhat.com>
2879 * combine.c (try_combine): Eliminate checked cast on result of
2881 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
2882 autogenerated one by strengthening the return type and params 2 and 3
2883 from rtx to rtx_insn *, and by naming the params.
2884 * gengenrtl.c (special_rtx): Add INSN to those that are
2886 * rtl.h (gen_rtx_INSN): New prototype.
2888 2014-09-09 David Malcolm <dmalcolm@redhat.com>
2890 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
2892 (no_equiv): Likewise.
2893 (update_equiv_regs): Likewise.
2894 (setup_reg_equiv): Likewise. Strengthen locals "elem",
2895 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
2896 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
2898 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
2899 from rtx to rtx_insn_list *.
2900 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
2901 rtx_insn_list * and use methods for clarity and typesafety.
2902 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
2904 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
2905 redundant check on INSN_P (insns): this cannot hold, as "insns" is
2906 an INSN_LIST, not an insn.
2907 (reverse_equiv_p): Strengthen local "insns" from rtx to
2908 rtx_insn_list * and use methods for clarity and typesafety.
2909 (contains_reloaded_insn_p): Likewise for local "list".
2911 2014-09-09 Jiong Wang <jiong.wang@arm.com>
2913 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
2914 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
2915 (arm_builtin_vectorized_function): Likewise.
2916 * config/arm/arm_neon_builtins.def: New macro for copysignf.
2917 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
2919 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
2921 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
2922 * builtins.h (default_target_builtins): Likewise.
2923 * gcse.h (default_target_gcse): Likewise.
2924 * target-globals.h (target_globals): Add a destructor. Convert
2925 void-pointer fields back to their real type and change from
2926 GTY((atomic)) to GTY((skip)).
2927 (restore_target_globals): Remove casts accordingly.
2928 * target-globals.c (save_target_globals): Use XCNEW rather than
2929 ggc_internal_cleared_alloc to allocate non-GC structures.
2930 Use ggc_cleared_alloc to allocate the target_globals structure
2932 (target_globals::~target_globals): Define.
2934 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2936 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
2937 mnemonic instead of fldmfdd.
2938 * config/arm/arm.c (vfp_output_fstmd): Rename to...
2939 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
2940 Output vpush when address register is SP.
2941 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
2942 (vfp_output_vstmd): ... This.
2943 * config/arm/vfp.md (push_multi_vfp): Update call to
2946 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2948 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
2950 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2952 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
2953 (*sqrtdf2_vfp): Likewise.
2954 (*cmpsf_vfp): Likewise.
2955 (*cmpsf_trap_vfp): Likewise.
2956 (*cmpdf_vfp): Likewise.
2957 (*cmpdf_trap_vfp): Likewise.
2959 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2961 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
2962 (*truncdfsf2_vfp): Likewise.
2963 (*truncsisf2_vfp): Likewise.
2964 (*truncsidf2_vfp): Likewise.
2965 (fixuns_truncsfsi2): Likewise.
2966 (fixuns_truncdfsi2): Likewise.
2967 (*floatsisf2_vfp): Likewise.
2968 (*floatsidf2_vfp): Likewise.
2969 (floatunssisf2): Likewise.
2970 (floatunssidf2): Likewise.
2972 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2974 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
2975 (*muldf3_vfp): Likewise.
2976 (*mulsf3negsf_vfp): Likewise.
2977 (*muldf3negdf_vfp): Likewise.
2978 (*mulsf3addsf_vfp): Likewise.
2979 (*muldf3adddf_vfp): Likewise.
2980 (*mulsf3subsf_vfp): Likewise.
2981 (*muldf3subdf_vfp): Likewise.
2982 (*mulsf3negsfaddsf_vfp): Likewise.
2983 (*fmuldf3negdfadddf_vfp): Likewise.
2984 (*mulsf3negsfsubsf_vfp): Likewise.
2985 (*muldf3negdfsubdf_vfp): Likewise.
2987 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2989 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
2990 (*absdf2_vfp): Likewise.
2991 (*negsf2_vfp): Likewise.
2992 (*negdf2_vfp): Likewise.
2993 (*addsf3_vfp): Likewise.
2994 (*adddf3_vfp): Likewise.
2995 (*subsf3_vfp): Likewise.
2996 (*subdf3_vfp): Likewise.
2997 (*divsf3_vfp): Likewise.
2998 (*divdf3_vfp): Likewise.
3000 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3002 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
3004 (arm_print_operand): Don't convert real values to decimal
3005 representation in default case.
3006 (fp_immediate_constant): Delete.
3007 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
3008 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
3010 (*thumb2_movsi_vfp): Likewise.
3011 (*movdi_vfp): Likewise.
3012 (*movdi_vfp_cortexa8): Likewise.
3013 (*movhf_vfp_neon): Likewise.
3014 (*movhf_vfp): Likewise.
3015 (*movsf_vfp): Likewise.
3016 (*thumb2_movsf_vfp): Likewise.
3017 (*movdf_vfp): Likewise.
3018 (*thumb2_movdf_vfp): Likewise.
3019 (*movsfcc_vfp): Likewise.
3020 (*thumb2_movsfcc_vfp): Likewise.
3021 (*movdfcc_vfp): Likewise.
3022 (*thumb2_movdfcc_vfp): Likewise.
3024 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
3026 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
3030 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3033 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
3034 Use qualifier_immediate for last operand. Rename to...
3035 (aarch64_types_ternop_lane_qualifiers): ... This.
3036 (TYPES_QUADOP): Rename to...
3037 (TYPES_TERNOP_LANE): ... This.
3038 (aarch64_simd_expand_args): Return const0_rtx when encountering user
3039 error. Change return of 0 to return of NULL_RTX.
3040 (aarch64_crc32_expand_builtin): Likewise.
3041 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
3042 ICE when expanding unknown builtin.
3043 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
3044 TERNOP_LANE qualifiers.
3045 (sqdmlsl_lane): Likewise.
3046 (sqdmlal_laneq): Likewise.
3047 (sqdmlsl_laneq): Likewise.
3048 (sqdmlal2_lane): Likewise.
3049 (sqdmlsl2_lane): Likewise.
3050 (sqdmlal2_laneq): Likewise.
3051 (sqdmlsl2_laneq): Likewise.
3053 2014-09-09 Nick Clifton <nickc@redhat.com>
3055 * doc/invoke.texi (Optimization Options): Add missing @gol to the
3057 (S/390 and zSeries Options): Remove superfluous word from the
3058 description of the -mhotpatch option.
3060 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
3062 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
3063 * ira.c: #include "shrink-wrap.h"
3064 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
3065 * ifcvt.c: #include "shrink-wrap.h"
3066 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
3068 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
3070 * common/config/picochip/picochip-common.c: Remove.
3071 * config.gcc: Remove support for picochip.
3072 * config/picochip/constraints.md: Remove.
3073 * config/picochip/dfa_space.md: Remove.
3074 * config/picochip/dfa_speed.md: Remove.
3075 * config/picochip/picochip-protos.h: Remove.
3076 * config/picochip/picochip.c: Remove.
3077 * config/picochip/picochip.h: Remove.
3078 * config/picochip/picochip.md: Remove.
3079 * config/picochip/picochip.opt: Remove.
3080 * config/picochip/predicates.md: Remove.
3081 * config/picochip/t-picochip: Remove.
3082 * doc/md.texi: Don't document picochi.
3084 2014-09-08 David Malcolm <dmalcolm@redhat.com>
3086 * basic-block.h (control_flow_insn_p): Strengthen param from
3087 const_rtx to const rtx_insn *.
3088 * cfgbuild.c (control_flow_insn_p): Likewise.
3090 2014-09-08 David Malcolm <dmalcolm@redhat.com>
3092 * gcse.c (modify_mem_list): Strengthen this variable from
3093 vec<rtx> * to vec<rtx_insn *> *.
3094 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
3096 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
3097 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
3098 (record_last_mem_set_info): Strengthen param "insn" from rtx to
3100 (record_last_set_info): Likewise for local "last_set_insn".
3102 2014-09-08 DJ Delorie <dj@redhat.com>
3104 * doc/invoke.texi (MSP430 Options): Add -minrt.
3106 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3108 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
3109 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
3110 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
3112 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
3114 (adjust_splat): New function.
3115 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
3116 (dump_swap_insn_table): Add case for SH_SPLAT.
3118 2014-09-08 Richard Biener <rguenther@suse.de>
3121 * tree-inline.c (copy_loops): The source loop header should
3123 (tree_function_versioning): If loops need fixup after removing
3124 unreachable blocks fix them.
3125 * omp-low.c (simd_clone_adjust): Do not add incr block to
3126 loop under construction.
3128 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
3130 * config/aarch64/aarch64-builtins.c
3131 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
3133 2014-09-08 Joseph Myers <joseph@codesourcery.com>
3135 * config/i386/cygming.h (TF_SIZE): Remove.
3136 * config/i386/darwin.h (TF_SIZE): Remove.
3137 * config/i386/dragonfly.h (TF_SIZE): Remove.
3138 * config/i386/freebsd.h (TF_SIZE): Remove.
3139 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
3140 * config/i386/openbsdelf.h (TF_SIZE): Remove.
3141 * config/i386/sol2.h (TF_SIZE): Remove.
3142 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
3143 * config/ia64/linux.h (TF_SIZE): Remove.
3144 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
3145 * doc/tm.texi: Regenerate.
3146 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
3148 2014-09-08 Joseph Myers <joseph@codesourcery.com>
3150 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
3152 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
3154 * doc/tm.texi: Regenerate.
3155 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
3157 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
3158 * config/cris/cris.h (__make_dp): Remove.
3160 2014-09-08 Richard Biener <rguenther@suse.de>
3163 * cfgloop.c (mark_loop_for_removal): Track former header
3165 * cfgloop.h (struct loop): Add former_header member unconditionally.
3166 * loop-init.c (fix_loop_structure): Enable bogus loop removal
3167 diagnostic unconditionally.
3169 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
3172 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
3173 constraint for operand0 and remove write only modifier from operand3.
3175 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
3177 PR rtl-optimization/62208
3178 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
3179 rather than const0_rtx in eq/ne-xor simplifications.
3181 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
3183 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
3184 (arc_output_mi_thunk): Likewise.
3186 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
3187 arguments to silence bogus warning.
3189 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
3192 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
3194 2014-09-06 Tom de Vries <tom@codesourcery.com>
3196 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
3197 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
3198 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
3200 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
3203 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
3204 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
3206 2014-09-05 Easwaran Raman <eraman@google.com>
3208 PR rtl-optimization/62146
3209 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
3210 hoisted instruction unconditional.
3212 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
3215 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
3216 Do not allow any_mask_operand for operands[2].
3217 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
3219 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3221 * config/arc/arc.c (arc_print_operand): Use insn method of
3222 final_sequence for type-safety.
3223 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
3224 "insn" from rtx to rtx_insn *.
3225 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
3226 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
3227 Likewise for locals "branch", "label".
3228 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
3229 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
3230 (same_cmp_following_p): Likewise for locals "i2", "i3".
3231 * config/sh/sh_optimize_sett_clrt.cc
3232 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
3233 param "cbranch_insn".
3234 * function.c (convert_jumps_to_returns): Likewis for local "jump".
3235 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
3236 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
3238 (condjump_p): Likewise.
3239 (condjump_in_parallel_p): Likewise.
3241 (any_uncondjump_p): Likewise.
3242 (any_condjump_p): Likewise.
3243 (condjump_label): Likewise.
3244 (returnjump_p): Strengthen param "insn" from rtx to
3246 (onlyjump_p): Strengthen param "insn" from const_rtx to
3248 (jump_to_label_p): Likewise.
3249 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
3250 (invert_jump): Likewise.
3251 * reorg.c (simplejump_or_return_p): Add checked cast when calling
3253 (get_jump_flags): Strengthen param "insn" from rtx to
3255 (get_branch_condition): Likewise.
3256 (condition_dominates_p): Likewise.
3257 (make_return_insns): Move declaration of local "pat" earlier, to
3258 after we've handled NONJUMP_INSN_P and non-sequences, using its
3259 methods to simplify the code and for type-safety.
3260 * rtl.h (find_constant_src): Strengthen param from const_rtx to
3262 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
3263 (condjump_p): Strengthen param from const_rtx to
3265 (any_condjump_p): Likewise.
3266 (any_uncondjump_p): Likewise.
3268 (condjump_label): Likewise.
3269 (simplejump_p): Likewise.
3270 (returnjump_p): Likewise.
3271 (onlyjump_p): Likewise.
3272 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
3273 (invert_jump): Likewise.
3274 (condjump_in_parallel_p): Strengthen param from const_rtx to
3276 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
3277 to const rtx_insn *.
3278 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
3279 to const rtx_insn *.
3280 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
3282 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3284 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
3285 above the conditional, and convert the check on GET_CODE to a
3286 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
3287 the conditional. Simplify the conditional by using methods of
3290 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3292 * haifa-sched.c (check_clobbered_conditions): Strengthen local
3293 "link" from rtx to rtx_insn_list *, and use its methods for
3294 clarity and type-safety.
3295 (toggle_cancelled_flags): Likewise.
3296 (restore_last_backtrack_point): Likewise.
3297 (queue_to_ready): Use insn method of "link" in one place.
3298 (schedule_block): Strengthen local "link" from rtx to
3299 rtx_insn_list *, and use its methods for clarity and type-safety.
3301 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3303 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
3304 param "insn" from const_rtx to const rtx_insn *.
3305 (sched_get_reverse_condition_uncached): Likewise.
3306 (sched_get_condition_with_rev): Likewise.
3307 (sched_has_condition_p): Likewise.
3308 (sched_insns_conditions_mutex_p): Likewise for both params.
3309 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
3310 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
3311 (setup_insn_reg_uses): Move local "list" to be more tightly
3312 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
3313 its methods for clarity and type-safety.
3314 (sched_analyze_1): Strengthen local "pending" from rtx to
3315 rtx_insn_list *, and local "pending_mem" from rtx to
3316 rtx_expr_list *. Use methods of each for clarity and type-safety.
3317 (sched_analyze_2): Likewise.
3318 (sched_analyze_insn): Likewise.
3320 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
3321 param from const_rtx to const rtx_insn *.
3322 (sched_insns_conditions_mutex_p): Likewise for both params.
3323 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
3326 * system.h (CONST_CAST_RTX_INSN): New macro.
3328 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3330 * recog.c (peep2_attempt): Strengthen return type from rtx to
3332 (peep2_update_life): Likewise for params "last", "prev", removing
3333 a checked cast made redundant by this.
3334 (peephole2_optimize): Likewise for local "last".
3336 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3338 * basic-block.h (set_block_for_insn): Eliminate this macro in
3340 * rtl.h (set_block_for_insn): New inline function, imposing the
3341 requirement that the "insn" param is an rtx_insn *.
3343 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3345 * caller-save.c (setup_save_areas): Strengthen local "insn" from
3347 * final.c (get_call_reg_set_usage): Likewise for first param,
3348 eliminating a checked cast.
3349 * regs.h (get_call_reg_set_usage): Likewise for first param.
3350 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
3351 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
3352 cast, replacing references to "x" with "call_insn" where
3354 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
3355 rtx_insn *, adding a checked cast.
3357 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3359 * output.h (final_scan_insn): Strengthen first param from rtx to
3362 * final.c (final_scan_insn): Likewise, renaming it back from
3363 "uncast_insn" to "insn", eliminating the checked cast.
3365 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
3366 "vec" with an rtx_sequence * "seq", taking a copy of
3367 "final_sequence", and using methods of "seq" for clarity, and for
3368 type-safety in the calls to final_scan_insn.
3369 * config/mips/mips.c (mips_output_conditional_branch): Use methods
3370 of "final_sequence" for clarity, and for type-safety in the call to
3372 * config/sh/sh.c (print_slot): Strengthen param from rtx to
3373 rtx_sequence * and rename from "insn" to "seq".
3375 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3377 * jump.c (delete_related_insns): Introduce a new local "table" by
3378 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
3379 get_labels method of "table" to simplify access to the labels in
3382 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3384 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
3385 f_minmaxs, f_minmaxd types.
3387 2014-09-05 Richard Biener <rguenther@suse.de>
3389 * cfgloop.c (mark_loop_for_removal): Record former header
3390 when ENABLE_CHECKING.
3391 * cfgloop.h (strut loop): Add former_header member when
3393 * loop-init.c (fix_loop_structure): Sanity check loops
3394 marked for removal if they re-appeared.
3396 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3398 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
3399 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
3401 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
3402 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
3403 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
3404 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
3405 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
3406 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
3407 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
3408 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
3409 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
3410 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
3411 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
3412 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
3413 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
3414 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
3415 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
3416 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
3417 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
3418 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
3419 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
3420 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
3421 with int{32,16,8}_t.
3423 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3425 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
3426 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
3427 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
3428 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
3429 Remove temporary __asm__ and reimplement.
3431 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3433 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
3434 handling cmge, cmgt, cmeq, cmtst.
3436 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
3437 cmlt, cmgeu, cmgtu, cmtst): Remove.
3439 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
3440 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
3441 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
3442 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
3444 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3446 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
3448 (aarch64_fold_builtin): Update pattern for cmtst.
3450 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
3453 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
3455 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
3456 Switch operands, separate out more cases, refactor.
3458 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
3460 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
3461 argument; rename old version to...
3462 (aarch64_const_vec_all_same_in_range_p): ...this.
3463 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
3465 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
3467 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3469 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
3470 Remove qualifier_const_pointer, update comment.
3472 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3474 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
3476 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3478 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
3479 varargs with pointer parameter.
3480 (aarch64_simd_expand_builtin): pass pointer into previous.
3482 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3484 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
3487 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3489 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
3490 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
3491 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
3492 Replace temporary asm with call to builtin.
3493 (vrbit_p8, vrbitq_p8): New functions.
3495 2014-09-05 Richard Biener <rguenther@suse.de>
3497 * cfgloop.c (mark_loop_for_removal): New function.
3498 * cfgloop.h (mark_loop_for_removal): Declare.
3499 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
3500 (merge_blocks): Likewise.
3501 (duplicate_block): Likewise.
3502 * except.c (sjlj_emit_dispatch_table): Likewise.
3503 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
3504 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
3505 (thread_through_loop_header): Likewise.
3507 2014-09-05 Richard Biener <rguenther@suse.de>
3510 * fold-const.c (try_move_mult_to_index): Remove.
3511 (fold_binary_loc): Do not call it.
3512 * tree-data-ref.c (dr_analyze_indices): Strip conversions
3513 from the base object again.
3515 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
3517 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
3520 2014-09-05 Bin Cheng <bin.cheng@arm.com>
3523 * config/arm/arm.md (setmem): New pattern.
3524 * config/arm/arm-protos.h (struct tune_params): New fields.
3525 (arm_gen_setmem): New prototype.
3526 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
3527 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
3528 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
3529 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
3530 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
3531 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
3532 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
3533 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
3534 (arm_const_inline_cost): New function.
3535 (arm_block_set_max_insns): New function.
3536 (arm_block_set_non_vect_profit_p): New function.
3537 (arm_block_set_vect_profit_p): New function.
3538 (arm_block_set_unaligned_vect): New function.
3539 (arm_block_set_aligned_vect): New function.
3540 (arm_block_set_unaligned_non_vect): New function.
3541 (arm_block_set_aligned_non_vect): New function.
3542 (arm_block_set_vect, arm_gen_setmem): New functions.
3544 2014-09-05 Bin Cheng <bin.cheng@arm.com>
3546 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
3548 2014-09-05 Bin Cheng <bin.cheng@arm.com>
3550 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
3552 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
3554 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
3556 * valtrack.h: Adjust.
3558 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
3560 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
3562 (emit_jump_insn_before_noloc): Likewise.
3563 (emit_call_insn_before_noloc): Likewise.
3564 (emit_label_before): Likewise.
3565 (emit_label_after): Likewise.
3566 (emit_insn_before_setloc): Likewise.
3567 (emit_jump_insn_before_setloc): Likewise.
3568 (emit_call_insn_before_setloc): Likewise.
3569 (emit_call_insn_before): Likewise.
3572 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3574 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
3575 rtx_insn *, eliminating a checked cast.
3577 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3579 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
3580 const_rtx to const rtx_insn *.
3581 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
3584 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3586 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
3587 fixup_args_size_notes.
3588 * expr.c (fixup_args_size_notes): Strengthen first two params from
3589 rtx to rtx_insn *, eliminating a checked cast.
3590 * rtl.h (fixup_args_size_notes): Strengthen first two params from
3593 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3595 * haifa-sched.c (get_ready_element): Strengthen return type from
3597 * sched-int.h (get_ready_element): Likewise.
3599 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
3602 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
3603 indexed_or_indirect_operand instead of memory_operand.
3604 (floatsi<mode>2_lfiwzx_mem): Ditto.
3606 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
3608 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
3609 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
3610 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
3612 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
3614 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
3616 (get_last_nonnote_insn): Likewise.
3617 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
3618 * resource.c (find_basic_block): Likewise.
3620 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
3623 2014-09-04 David Malcolm <dmalcolm@redhat.com>
3625 * genattr.c (main): Within the prototype of insn_latency written
3626 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
3627 * genautomata.c (output_internal_maximal_insn_latency_func):
3628 Within the implementation of insn_latency written out to
3629 insn-automata.c, strengthen both params from rtx to rtx_insn *,
3630 eliminating a pair of checked casts.
3632 2014-09-04 David Malcolm <dmalcolm@redhat.com>
3634 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
3637 * rtl.h (eh_returnjump_p): Likewise.
3639 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
3641 * Makefile.in (TAGS): Handle constructs in timevar.def.
3643 2014-09-04 Guozhi Wei <carrot@google.com>
3646 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
3647 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
3648 it into two patterns.
3649 (move_lo_quad_internal_be_<mode>): Likewise.
3651 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3653 * doc/options.texi: Document that Var and Init are required if CPP
3655 * optc-gen.awk: Require Var and Init if CPP is given.
3656 * common.opt (Wpedantic): Use Init.
3658 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3660 * config/rs6000/rs6000.c (special_handling_values): Add
3662 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
3663 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
3664 as swappable with special handling SH_EXTRACT. Remove
3665 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
3667 (adjust_extract): New function.
3668 (handle_special_swappables): Add default to case statement; add
3669 case for SH_EXTRACT that calls adjust_extract.
3670 (dump_swap_insn_table): Handle SH_EXTRACT.
3672 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3674 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
3675 selection of 0th memory doubleword, regardless of endianness.
3677 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3679 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
3681 2014-09-04 Alan Modra <amodra@gmail.com>
3684 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
3687 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
3689 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
3690 * targhooks.c (default_dwarf_frame_reg_mode): New function.
3691 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
3692 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
3693 * doc/tm.texi: Regenerate.
3694 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
3695 selection logic to default_dwarf_frame_reg_mode.
3697 2014-09-03 Marek Polacek <polacek@redhat.com>
3699 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
3702 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
3704 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
3705 the automodified register.
3707 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
3709 * output.h (get_some_local_dynamic_name): Declare.
3710 * final.c (some_local_dynamic_name): New variable.
3711 (get_some_local_dynamic_name): New function.
3712 (final_end_function): Clear some_local_dynamic_name.
3713 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
3714 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
3715 (print_operand): Report an error if '%&' is used inappropriately.
3716 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
3717 (get_some_local_dynamic_name_1): Delete.
3718 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
3719 (rs6000_get_some_local_dynamic_name): Delete.
3720 (rs6000_get_some_local_dynamic_name_1): Delete.
3721 (print_operand): Report an error if '%&' is used inappropriately.
3722 * config/s390/s390.c (machine_function): Remove some_ld_name.
3723 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
3724 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
3725 * config/sparc/sparc.c: Include rtl-iter.h.
3726 (machine_function): Remove some_ld_name.
3727 (sparc_print_operand): Report an error if '%&' is used inappropriately.
3728 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
3730 2014-09-03 Richard Henderson <rth@redhat.com>
3732 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
3733 (aarch64_popwb_pair_reg): Remove.
3734 (aarch64_set_frame_expr): Remove.
3735 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
3736 the restore ops performed by the insns generated.
3737 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
3738 insn. Perform the calls_eh_return addition later; do not attempt to
3739 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
3740 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
3741 special markup at all. Load cfun->machine->frame.hard_fp_offset
3742 into a local variable.
3743 (aarch64_frame_pointer_required): Don't check calls_alloca.
3745 2014-09-03 Richard Biener <rguenther@suse.de>
3747 * opts.c (default_options_optimization): Adjust
3748 max-combine-insns to 2 for -Og.
3750 2014-09-03 Martin Jambor <mjambor@suse.cz>
3753 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
3754 pass-trough jump functions correctly.
3756 2014-09-03 Martin Jambor <mjambor@suse.cz>
3759 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
3760 created replacements in ascending order of offsets.
3761 (known_aggs_to_agg_replacement_list): Likewise.
3763 2014-09-03 Martin Liska <mliska@suse.cz>
3765 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
3766 is set to set uninitialized value for vnresult.
3768 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3770 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
3771 for TARGET_MUST_PASS_IN_STACK.
3773 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3775 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
3776 for TARGET_ARG_PARTIAL_BYTES.
3778 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3780 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
3781 instructions for varargs implementation.
3782 (nds32_expand_epilogue): Emit stack adjustment instructions for
3783 varargs implementation.
3785 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3787 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
3788 optimization detection.
3790 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3792 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
3794 (nds32_function_arg_advance): Deal with nameless arguments.
3795 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
3796 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
3797 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
3799 2014-09-03 Richard Biener <rguenther@suse.de>
3801 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
3802 (struct bb_bitmap_sets): Remove deferred member.
3803 (BB_DEFERRED): Remove.
3804 (defer_or_phi_translate_block): Remove.
3805 (compute_antic_aux): Remove deferring of blocks, assert
3806 proper iteration order.
3807 (compute_antic): Do not set BB_DEFERRED.
3808 (eliminate): Allocate el_avail of proper size initially.
3810 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3812 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
3813 according to the value of crtl->args.pretend_args_size.
3815 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3817 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
3818 varargs information.
3820 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3822 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
3823 implementation for TARGET_SETUP_INCOMING_VARARGS.
3824 (nds32_strict_argument_naming): Refine comment.
3825 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
3826 Define for future implementation.
3828 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
3830 * config/i386/adxintrin.h (_subborrow_u32): New.
3831 (_addcarry_u32): Ditto.
3832 (_subborrow_u64): Ditto.
3833 (_addcarry_u64): Ditto.
3834 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
3836 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
3837 __builtin_ia32_sbb_u64
3839 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3841 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
3843 (nds32_function_arg_advance): Likewise.
3844 (nds32_init_cumulative_args): Likewise.
3845 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
3846 (NDS32_FIRST_GPR_REGNUM): Define.
3847 (NDS32_LAST_GPR_REGNUM): Define.
3848 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
3849 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
3850 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
3851 (machine_function): Use GRP-specific stuff.
3853 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3855 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
3856 (nds32_expand_epilogue): Likewise.
3857 (nds32_expand_prologue_v3push): Likewise.
3858 (nds32_expand_epilogue_v3pop): Likewise.
3860 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3862 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
3863 v3push/v3pop for variadic function.
3864 * config/nds32/nds32.md (prologue, epilogue): Likewise.
3866 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3868 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
3869 Check rtx for varargs implementation.
3870 (nds32_output_stack_pop): Likewise.
3871 * config/nds32/nds32-protos.h: Have a rtx argument for
3872 nds32_output_stack_push and nds32_output_stack_pop.
3873 * config/nds32/nds32.md: Likewise.
3875 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3877 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
3878 to check if FUNC is an interrupt service routine.
3879 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
3881 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3883 * config/nds32/nds32.h (machine_function): Add some fields for variadic
3884 arguments implementation.
3886 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3888 * config/nds32/nds32-predicates.c
3889 (nds32_valid_stack_push_pop): Rename to ...
3890 (nds32_valid_stack_push_pop_p): ... this.
3891 * config/nds32/nds32-protos.h: Likewise.
3892 * config/nds32/predicates.md: Likewise.
3894 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3896 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
3897 (nds32_emit_stack_v3push): ... this.
3898 (nds32_gen_stack_v3pop): Rename to ...
3899 (nds32_emit_stack_v3pop): ... this and consider CFA restore
3902 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3904 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
3905 (nds32_emit_stack_push_multiple): ... this.
3906 (nds32_gen_stack_pop_multiple): Rename to ...
3907 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
3910 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3913 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
3914 and add a second splitter to handle the remaining cases.
3916 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3918 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
3920 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
3922 * cfgexpand.c (label_rtx_for_bb): Change type to
3923 hash_map<basic_block, rtx_code_label *> *.
3924 (expand_gimple_basic_block): Adjust.
3925 (pass_expand::execute): Likewise.
3927 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
3929 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
3930 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
3931 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
3932 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
3933 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
3934 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
3935 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
3938 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
3940 * alloc-pool.c: Include coretypes.h.
3941 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
3942 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
3943 hash_set instead of htab.
3944 * ggc-page.c (in_gc): New variable.
3945 (ggc_free): Do nothing if a collection is taking place.
3946 (ggc_collect): Set in_gc appropriately.
3947 * ggc.h (gt_ggc_mx(const char *)): New function.
3948 (gt_pch_nx(const char *)): Likewise.
3949 (gt_ggc_mx(int)): Likewise.
3950 (gt_pch_nx(int)): Likewise.
3951 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
3952 (hash_map::hash_entry::pch_nx): Likewise.
3953 (hash_map::hash_entry::pch_nx_helper): Likewise.
3954 (hash_map::hash_map): Adjust.
3955 (hash_map::create_ggc): New function.
3956 (gt_ggc_mx): Likewise.
3957 (gt_pch_nx): Likewise.
3958 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
3959 (default_hashset_traits::pch_nx): Likewise.
3960 (hash_set::hash_entry::ggc_mx): Likewise.
3961 (hash_set::hash_entry::pch_nx): Likewise.
3962 (hash_set::hash_entry::pch_nx_helper): Likewise.
3963 (hash_set::hash_set): Adjust.
3964 (hash_set::create_ggc): New function.
3965 (hash_set::elements): Likewise.
3966 (gt_ggc_mx): Likewise.
3967 (gt_pch_nx): Likewise.
3968 * hash-table.h (hash_table::hash_table): Adjust.
3969 (hash_table::m_ggc): New member.
3970 (hash_table::~hash_table): Adjust.
3971 (hash_table::expand): Likewise.
3972 (hash_table::empty): Likewise.
3973 (gt_ggc_mx): New function.
3974 (hashtab_entry_note_pointers): Likewise.
3975 (gt_pch_nx): Likewise.
3977 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3979 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
3980 built-in definition.
3981 (XVCVUXDDP_SCALE): Likewise.
3982 (XVCVDPSXDS_SCALE): Likewise.
3983 (XVCVDPUXDS_SCALE): Likewise.
3984 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3985 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
3986 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
3987 VSX_BUILTIN_XVCVDPUXDS_SCALE.
3988 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
3990 * config/rs6000/rs6000.c (real.h): New include.
3991 (rs6000_scale_v2df): New function.
3992 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
3993 (UNSPEC_VSX_XVCVUXDDP): Likewise.
3994 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
3995 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
3996 (vsx_xvcvsxddp_scale): New define_expand.
3997 (vsx_xvcvsxddp): New define_insn.
3998 (vsx_xvcvuxddp_scale): New define_expand.
3999 (vsx_xvcvuxddp): New define_insn.
4000 (vsx_xvcvdpsxds_scale): New define_expand.
4001 (vsx_xvcvdpsxds): New define_insn.
4002 (vsx_xvcvdpuxds_scale): New define_expand.
4003 (vsx_xvcvdpuxds): New define_insn.
4004 * doc/extend.texi (vec_ctf): Add new prototypes.
4005 (vec_cts): Likewise.
4006 (vec_ctu): Likewise.
4007 (vec_splat): Likewise.
4008 (vec_div): Likewise.
4009 (vec_mul): Likewise.
4011 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4014 * config/arm/neon.md
4015 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
4016 <v_cmp_result>): New pattern.
4017 * config/arm/iterators.md (NEON_VCVT): New int iterator.
4018 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
4019 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
4020 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
4021 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
4022 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
4024 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4027 * config/arm/iterators.md (FIXUORS): New code iterator.
4028 (VCVT): New int iterator.
4029 (su_optab): New code attribute.
4031 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
4033 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4035 * config/aarch64/predicates.md (aarch64_comparison_operation):
4036 New special predicate.
4037 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
4038 aarch64_comparison_operation instead of matching an operator.
4039 Update operand numbers.
4040 (csinc3<mode>_insn): Likewise.
4041 (*csinv3<mode>_insn): Likewise.
4042 (*csneg3<mode>_insn): Likewise.
4043 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
4044 * config/aarch64/aarch64.c (aarch64_get_condition_code):
4045 Return -1 instead of aborting on invalid condition codes.
4046 (aarch64_print_operand): Update aarch64_get_condition_code callsites
4047 to assert that the returned condition code is valid.
4048 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
4050 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
4052 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
4053 tree.def, and gimple.def
4055 2014-09-02 Jakub Jelinek <jakub@redhat.com>
4056 Balaji V. Iyer <balaji.v.iyer@intel.com>
4057 Igor Zamyatin <igor.zamyatin@intel.com>
4059 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
4060 (__cilkrts_cilk_for_64): Likewise.
4061 * cilk-common.c (declare_cilk_for_builtin): New function.
4062 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
4063 __cilkrts_cilk_for_64 bultins.
4064 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
4066 (cilk_for_32_fndecl): New define.
4067 (cilk_for_64_fndecl): Likewise.
4068 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
4069 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
4070 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
4071 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
4072 GF_OMP_FOR_COMBINED_INTO.
4073 * gimplify.c (gimplify_scan_omp_clauses): Added
4074 OMP_CLAUSE__CILK_FOR_COUNT_ case.
4075 (gimplify_adjust_omp_clauses): Ditto.
4076 (gimplify_omp_for): Added CILK_FOR case.
4077 (gimplify_expr): Ditto.
4078 * omp-low.c: Include cilk.h.
4079 (extract_omp_for_data): Set appropriate kind for
4080 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
4081 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
4082 (create_omp_child_function_name): Added second argument to handle
4084 (cilk_for_check_loop_diff_type): New function.
4085 (expand_cilk_for_call): Likewise.
4086 (expand_cilk_for): Likewise.
4087 (create_omp_child_function): Set cilk_for_count; handle the cases when
4088 it is true; call create_omp_child_function_name with second argument.
4089 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
4090 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
4091 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
4092 * tree-nested.c (convert_nonlocal_omp_clauses): Added
4093 OMP_CLAUSE__CILK_FOR_COUNT_ case.
4094 (convert_local_omp_clauses): Ditto.
4095 * tree-pretty-print.c (dump_omp_clause): Added
4096 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
4097 (dump_generic_node): Added CILK_FOR case.
4098 * tree.c (omp_clause_num_ops): New element
4099 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
4100 (omp_clause_code_name): New element _Cilk_for_count_.
4101 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
4102 * tree.def: Add tree code for CILK_FOR.
4104 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
4106 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
4107 (ppc403-compare): Add "exts with dot" case.
4108 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
4109 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
4110 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
4111 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
4112 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
4113 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
4114 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
4115 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
4116 cell-cmp-microcoded): Similarly.
4117 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
4118 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
4119 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
4120 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
4121 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
4122 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
4123 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
4124 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
4125 (power6-compare): Add "exts with dot" case.
4126 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
4127 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
4128 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
4130 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
4131 if avoiding Cell microcode.
4132 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
4133 (is_cracked_insn): Ditto.
4134 (insn_must_be_first_in_group): Ditto.
4135 * config/rs6000/rs6000.md (dot): Adjust comment.
4136 (cell_micro): Handle exts+dot.
4137 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
4138 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
4139 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
4140 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
4141 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
4142 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
4143 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
4145 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
4147 * config/rs6000/rs6000.md (QHSI): Delete.
4148 (EXTQI, EXTHI, EXTSI): New mode iterators.
4149 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
4150 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
4151 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
4152 9 anonymous instructions, and 8 splitters): Delete.
4153 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
4154 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
4155 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
4156 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
4157 *zero_extendsi<mode>2_dot2): New.
4159 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
4161 * config/rs6000/rs6000.md (any_extend): New code iterator.
4162 (u, su): New code attributes.
4163 (dmode, DMODE): New mode attributes.
4164 (<su>mul<mode>3_highpart): New.
4165 (*<su>mul<mode>3_highpart): New.
4166 (<su>mulsi3_highpart_le): New.
4167 (<su>muldi3_highpart_le): New.
4168 (<su>mulsi3_highpart_64): New.
4169 (<u>mul<mode><dmode>3): New.
4170 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
4172 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
4175 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
4177 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
4178 *mulsi3_internal2, and two splitters): Delete.
4179 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
4181 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
4183 2014-09-02 Richard Biener <rguenther@suse.de>
4185 PR tree-optimization/62695
4186 * tree-ssa-structalias.c (find_func_clobbers): Add missing
4189 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
4192 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
4194 2014-09-01 Andi Kleen <ak@linux.intel.com>
4196 * file-find.c (add_prefix_begin): Add.
4197 (do_add_prefix): Rename from add_prefix with first argument.
4198 (add_prefix): Add new wrapper.
4199 * file-find.h (add_prefix_begin): Add.
4200 * gcc-ar.c (main): Support -B option.
4202 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
4204 * genemit.c: Include dumpfile.h.
4205 (gen_split): Print name of splitter function to dump file.
4207 2014-09-01 Richard Biener <rguenther@suse.de>
4209 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
4210 Use stack auto_vecs for constraint expressions.
4211 (find_func_aliases_for_call): Likewise.
4212 (find_func_aliases): Likewise.
4213 (find_func_clobbers): Likewise.
4215 2014-09-01 Richard Biener <rguenther@suse.de>
4217 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
4218 operands vector in most cases. Remove redundant code.
4220 2014-09-01 Olivier Hainque <hainque@adacore.com>
4222 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
4223 $WIND_BASE instead of designating a harcoded arbitrary home dir.
4224 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
4226 2014-09-01 Richard Biener <rguenther@suse.de>
4228 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
4229 copy_reference_ops_from_call, vn_nary_op_compute_hash,
4230 vn_reference_compute_hash, vn_reference_insert): Remove.
4231 (vn_reference_lookup_call): New function.
4232 * tree-ssa-sccvn.c (vn_reference_compute_hash,
4233 copy_reference_ops_from_ref, copy_reference_ops_from_call,
4234 vn_reference_insert, vn_nary_op_compute_hash): Make static.
4235 (create_reference_ops_from_call): Remove.
4236 (vn_reference_lookup_3): Properly update shared_lookup_references.
4237 (vn_reference_lookup_pieces): Assert that we updated
4238 shared_lookup_references properly.
4239 (vn_reference_lookup): Likewise.
4240 (vn_reference_lookup_call): New function.
4241 (visit_reference_op_call): Use it. Avoid re-building the
4243 (visit_reference_op_load): Remove redundant lookup.
4244 (visit_reference_op_store): Perform special tail-merging work
4245 only when possibly doing tail-merging.
4246 (visit_use): Likewise.
4247 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
4249 2014-09-01 Jakub Jelinek <jakub@redhat.com>
4252 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
4253 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
4254 (find_inc): Revert 2014-08-13 change.
4256 2014-09-01 Marek Polacek <polacek@redhat.com>
4259 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
4260 Change the type of V to unsigned HOST_WIDE_INT.
4262 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
4264 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
4265 the size of byte markers.
4266 (do_shift_rotate): Fix confusion between host, target and marker byte
4268 (verify_symbolic_number_p): Likewise.
4269 (find_bswap_or_nop_1): Likewise.
4270 (find_bswap_or_nop): Likewise.
4272 2014-09-01 Olivier Hainque <hainque@adacore.com>
4274 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
4275 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
4277 2014-09-01 Jakub Jelinek <jakub@redhat.com>
4279 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
4280 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
4281 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
4283 2014-09-01 Yury Gribov <y.gribov@samsung.com>
4287 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
4288 (build_check_stmt): Likewise.
4289 (instrument_strlen_call): Likewise.
4290 (asan_expand_check_ifn): Likewise and fix types.
4291 (maybe_cast_to_ptrmode): New function.
4293 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4295 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
4297 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
4299 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
4301 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
4303 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
4304 prefix to function labels when generating fast indirect calls.
4306 2014-08-30 David Malcolm <dmalcolm@redhat.com>
4310 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
4311 param back from rtx_insn * to rtx. Rename param from "label" to
4312 "label_or_return", reintroducing "label" as an rtx_insn * after
4313 we've ensured it's not a RETURN.
4314 (first_active_target_insn): Likewise for return type and param;
4315 add a checked cast to rtx_insn * once we've ensured "insn" is not
4317 (steal_delay_list_from_target): Convert param "pnew_thread" back
4318 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
4320 (own_thread_p): Convert param "thread" back from an rtx_insn * to
4321 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
4322 cast once we've established we're not dealing with a RETURN,
4323 renaming subsequent uses of "thread" to "thread_insn".
4324 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
4326 (follow_jumps): Convert return type and param "label" from
4327 rtx_insn * back to rtx. Move initialization of "value" to after
4328 the handling for ANY_RETURN_P, adding a checked cast there to
4329 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
4330 rename to "this_label_or_return", reintroducing "this_label" as
4331 an rtx_insn * once we've handled the case where it could be an
4333 (fill_slots_from_thread): Rename param "thread" to
4334 "thread_or_return", converting from an rtx_insn * back to an rtx.
4335 Reintroduce name "thread" as an rtx_insn * local with a checked
4336 cast once we've handled the case of it being an ANY_RETURN_P.
4337 Convert local "new_thread" from an rtx_insn * back to an rtx.
4338 Add a checked cast when assigning to "trial" from "new_thread".
4339 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
4340 checked cast to rtx_insn * from "new_thread" when invoking
4342 (fill_eager_delay_slots): Convert locals "target_label",
4343 "insn_at_target" from rtx_insn * back to rtx.
4344 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
4345 (relax_delay_slots): Convert locals "trial", "target_label" from
4346 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
4347 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
4348 invoking update_block.
4349 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
4350 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
4352 * resource.h (mark_target_live_regs): Undo erroneous conversion
4353 of second param of r214693, converting it back from rtx_insn * to
4354 rtx, since it could be a RETURN.
4356 * resource.c (find_dead_or_set_registers): Similarly, convert
4357 param "jump_target" back from an rtx_insn ** to an rtx *, as we
4358 could be writing back a RETURN. Rename local rtx_insn * "next" to
4359 "next_insn", and introduce "lab_or_return" as a local rtx,
4360 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
4361 (mark_target_live_regs): Undo erroneous conversion
4362 of second param of r214693, converting it back from rtx_insn * to
4363 rtx, since it could be a RETURN. Rename it from "target" to
4364 "target_maybe_return", reintroducing the name "target" as a local
4365 rtx_insn * with a checked cast, after we've handled the case of
4368 2014-08-29 DJ Delorie <dj@redhat.com>
4370 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
4371 pointer size up to a power of two.
4372 * defaults.h (DWARF2_ADDR_SIZE): Round up.
4373 (POINTER_SIZE_UNITS): New, rounded up value.
4374 * dwarf2asm.c (size_of_encoded_value): Use it.
4375 (dw2_output_indirect_constant_1): Likewise.
4376 * expmed.c (init_expmed_one_conv): We now know the sizes of
4378 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
4379 * optabs.c (expand_float): Use precision, not size.
4380 (expand_fix): Likewise.
4381 * simplify-rtx (simplify_unary_operation_1): Likewise.
4382 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4383 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
4384 (default_assemble_integer) Likewise.
4385 (dump_tm_clone_pairs): Likewise.
4386 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
4387 * var-tracking.c (adjust_mems): Allow partial-int modes also.
4388 (prepare_call_arguments): Likewise.
4389 * stor-layout.c (finalize_type_size): Preserve precision.
4390 (layout_type): Use precision, not size.
4392 * expr.c (convert_move): If the target has an explicit converter,
4395 2014-08-29 David Malcolm <dmalcolm@redhat.com>
4397 * gdbinit.in: Skip various inline functions in rtl.h when
4400 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
4403 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
4405 2014-08-29 Richard Biener <rguenther@suse.de>
4407 PR tree-optimization/62291
4408 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
4409 exactly the vector size needed and use quick_push.
4410 (phi_translate_1): Adjust comment.
4411 (valid_in_sets): Remove block argument and remove pointless
4413 (dependent_clean): Adjust for removal of block argument.
4415 (compute_antic_aux): Likewise.
4416 (compute_partial_antic_aux): Likewise.
4418 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
4419 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4420 Anna Tikhonova <anna.tikhonova@intel.com>
4421 Ilya Tocar <ilya.tocar@intel.com>
4422 Andrey Turetskiy <andrey.turetskiy@intel.com>
4423 Ilya Verbin <ilya.verbin@intel.com>
4424 Kirill Yukhin <kirill.yukhin@intel.com>
4425 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4427 * config/i386/sse.md
4428 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
4429 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
4430 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
4431 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
4433 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
4434 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4435 Anna Tikhonova <anna.tikhonova@intel.com>
4436 Ilya Tocar <ilya.tocar@intel.com>
4437 Andrey Turetskiy <andrey.turetskiy@intel.com>
4438 Ilya Verbin <ilya.verbin@intel.com>
4439 Kirill Yukhin <kirill.yukhin@intel.com>
4440 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4442 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
4443 * config/i386/sse.md
4444 (define_mode_iterator VI4_128_8_256): New.
4445 (define_mode_iterator VI2_128_4_256): Ditto.
4446 (define_mode_iterator PMOV_DST_MODE): Rename into
4447 (define_mode_iterator PMOV_DST_MODE_1): this.
4448 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
4449 Use PMOV_DST_MODE_1 mode iterator.
4450 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
4452 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
4454 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
4455 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
4456 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
4457 (define_mode_iterator PMOV_DST_MODE_2): New.
4458 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
4459 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
4460 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
4462 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
4463 (define_mode_attr pmov_dst_3): Ditto.
4464 (define_mode_attr pmov_dst_zeroed_3): Ditto.
4465 (define_mode_attr pmov_suff_3): Ditto.
4466 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
4467 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
4468 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
4469 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
4470 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
4471 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
4472 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
4473 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
4474 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
4475 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
4476 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
4477 (define_mode_attr pmov_dst_4): Ditto.
4478 (define_mode_attr pmov_dst_zeroed_4): Ditto.
4479 (define_mode_attr pmov_suff_4): Ditto.
4480 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
4481 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
4482 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
4483 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
4484 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
4485 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
4486 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
4487 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
4488 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
4489 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
4490 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
4492 2014-08-29 Richard Biener <rguenther@suse.de>
4494 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
4495 NON_LVALUE_EXPR in gimple.
4497 2014-08-29 Richard Biener <rguenther@suse.de>
4500 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
4501 from previous refactoring.
4502 (gimple_fold_builtin_strncpy): Likewise.
4504 2014-08-29 David Malcolm <dmalcolm@redhat.com>
4507 * function.c (assign_parm_setup_reg): Remove erroneous checked
4508 cast to rtx_insn * on result of gen_extend_insn in favor of
4509 introducing a new local rtx "pat".
4511 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4513 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
4515 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
4517 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4519 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
4520 (next_insn): Likewise.
4521 * emit-rtl.c (next_insn): Likewise.
4522 (previous_insn): Likewise.
4523 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
4524 "insn" and "next" from rtx to rtx_insn *.
4525 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
4526 "insn", "insn1", "vliw_start", "prologue_end_note",
4527 "last_insn_in_packet".
4529 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4531 * shrink-wrap.h (active_insn_between): Strengthen both params from
4533 * function.c (active_insn_between): Likewise.
4535 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4537 * genattr.c (main): When writing out insn-attr.h, strengthen param
4538 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
4539 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
4540 writing out the definition of dfa_clear_single_insn_cache to the
4541 generated insn-automata.c
4543 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4545 * resource.h (clear_hashed_info_for_insn): Strengthen param from
4547 (incr_ticks_for_insn): Likewise.
4548 (init_resource_info): Likewise.
4550 * resource.c (init_resource_info): Likewise.
4551 (clear_hashed_info_for_insn): Likewise.
4552 (incr_ticks_for_insn): Likewise.
4554 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
4556 (steal_delay_list_from_target): Use methods of "seq".
4557 (try_merge_delay_insns): Use methods of "merged_insns".
4558 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
4559 (reorg_redirect_jump): Likewise for param "jump".
4561 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4563 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
4565 * config/s390/s390.c (s390_split_branches): Eliminate top-level
4566 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
4568 (s390_mainpool_finish): In three places, split out a local rtx
4569 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
4570 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
4571 and split another local rtx "insn" out into rtx "pat" and
4573 * config/sh/sh.c (output_branchy_insn): Rather than working
4574 directly on operands[9], introduce local rtx_code_label *
4575 variables named "lab" in two places, working on them, and then
4576 assigning them to operands[9], so that the intervening operations
4577 are known by the type system to be on insns.
4579 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4581 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
4584 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
4585 in invocation of INSN_HAS_LOCATION.
4587 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4589 * config/rs6000/altivec.h (vec_xl): New #define.
4590 (vec_xst): Likewise.
4591 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
4592 (XXSPLTD_V2DI): Likewise.
4593 (DIV_V2DI): Likewise.
4594 (UDIV_V2DI): Likewise.
4595 (MUL_V2DI): Likewise.
4596 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4597 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
4598 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
4599 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
4600 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
4601 (UNSPEC_VSX_DIVSD): Likewise.
4602 (UNSPEC_VSX_DIVUD): Likewise.
4603 (UNSPEC_VSX_MULSD): Likewise.
4604 (vsx_mul_v2di): New insn-and-split.
4605 (vsx_div_v2di): Likewise.
4606 (vsx_udiv_v2di): Likewise.
4607 (vsx_xxspltd_<mode>): New insn.
4609 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4611 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
4613 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
4614 (NEXT_INSN): Likewise.
4615 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
4616 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
4618 (no_labels_between_p): Likewise for both params.
4620 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
4621 cast when using NEXT_INSN on operands[2].
4622 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
4623 "insn" from rtx to rtx_insn *, adding a checked cast.
4624 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
4626 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
4628 (arc_text_label): Likewise for param "insn".
4629 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
4631 (arc_ccfsm_record_condition): Likewise for param "jump".
4632 (arc_text_label): Likewise for local "label".
4633 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
4634 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
4635 a method for typesafety. Add a checked cast.
4636 * config/arc/constraints.md (Clb): Add a checked cast when getting
4637 the CODE_LABEL from a LABEL_REF.
4638 * config/arm/arm.c (require_pic_register): Strengthen locals
4639 "seq", "insn" from rtx to rtx_insn *.
4640 (create_fix_barrier): Likewise for locals "selected", "next".
4641 (thumb1_reorg): Likewise for locals "prev", "insn".
4642 (arm_expand_prologue): Likewise for local "last".
4643 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
4645 (thumb2_output_casesi): Likewise for operands[2].
4646 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
4647 strengthen local "insn" from rtx to rtx_insn *.
4648 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
4649 type and param "insn".
4650 (find_prev_insn_start): Likewise.
4651 (hwloop_optimize): Likewise for locals "insn", "last_insn",
4653 (gen_one_bundle): Likewise for loal "t".
4654 (find_load): Likewise for param "insn".
4655 (workaround_speculation): Likewise for locals "insn", "next",
4656 "target", "next_tgt".
4657 * config/c6x/c6x.c (assign_reservations): Likewise for both params
4658 and for locals "insn", "within", "last".
4659 (count_unit_reqs): Likewise for params "head", "tail" and local
4661 (try_rename_operands): Likewise for params "head", "tail".
4662 (reshuffle_units): Likewise for locals "head", "tail", "insn".
4663 (struct c6x_sched_context): Likewise for fields
4664 "last_scheduled_insn", "last_scheduled_iter0".
4665 (init_sched_state): Replace NULL_RTX with NULL.
4666 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
4668 (undo_split_delayed_nonbranch): Likewise for param and for local
4670 (conditionalize_after_sched): Likewise for local "insn".
4671 (bb_earliest_end_cycle): Likewise.
4672 (filter_insns_above): Likewise for locals "insn", "next".
4673 (hwloop_optimize): Remove redundant checked cast.
4674 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
4675 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
4677 (cris_simple_epilogue): Likewise.
4678 (cris_expand_prologue): Likewise.
4679 (cris_expand_epilogue): Likewise.
4680 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
4681 local "insn" from rtx to rtx_insn *.
4682 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
4683 (struct frv_packet_group): Likewise for the elements within array
4684 fields "insns", "sorted", and for field "nop".
4685 (frv_packet): Likewise for the elements within array field
4687 (frv_add_insn_to_packet): Likewise for param "insn".
4688 (frv_insert_nop_in_packet): Likewise for param "insn" and local
4690 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
4691 (frv_sort_insn_group_1): Likewise for local "insn".
4692 (frv_optimize_membar_local): Likewise.
4693 (frv_align_label): Likewise for locals "x", "last", "barrier",
4695 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
4697 (ia64_sched_init): Likewise for local "insn".
4698 (scheduled_good_insn): Likewise for param "last".
4699 (struct _ia64_sched_context): Likewise for field
4700 "last_scheduled_insn".
4701 (ia64_init_sched_context): Replace NULL_RTX with NULL.
4702 (struct bundle_state): Likewise for field "insn".
4703 (issue_nops_and_insn): Likewise for param "insn".
4704 (get_next_important_insn): Likewise for return type and both
4706 (ia64_add_bundle_selector_before): Likewise for param "insn".
4707 (bundling): Likewise for params "prev_head_insn", "tail" and
4708 locals "insn", "next_insn", "b". Eliminate top-level local rtx
4709 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
4710 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
4711 Strengthen final param from rtx to rtx_insn *.
4712 (iq2000_move_1word): Likewise for second param.
4713 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
4714 param "cur_insn" and local "next_insn".
4715 (iq2000_move_1word): Likewise for param "insn".
4716 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
4717 casts when using NEXT_INSN on operands[1].
4718 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
4719 "insn" from rtx to rtx_insn *.
4720 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
4721 "x", introducing local rtx_insn * "insn" for when working with the
4722 CODE_LABEL of the LABEL_REF.
4723 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
4725 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
4727 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
4729 (conditionalize_block): Likewise for return type and param.
4730 (mcore_is_dead): Likewise for param "first" and local "insn".
4731 (emit_new_cond_insn): Likewise for return type.
4732 (conditionalize_block): Likewise for return type, param, and
4733 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
4735 (conditionalize_optimization): Likewise for local "insn".
4736 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
4738 * config/microblaze/microblaze.md: Add checked casts when using
4740 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
4741 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
4742 and rtx_insn * "insn".
4743 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
4744 checked cast when using NEXT_INSN on operands[2].
4745 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
4746 local "insn" from rtx to rtx_insn *.
4747 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
4749 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
4750 Add a checked cast when using NEXT_INSN on operands[1].
4751 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
4753 (pa_output_cbranch): Likewise for final param.
4754 (pa_output_lbranch): Likewise for second param.
4755 (pa_output_bb): Likewise for third param.
4756 (pa_output_bvb): Likewise.
4757 (pa_output_dbra): Likewise for second param.
4758 (pa_output_movb): Likewise.
4759 (pa_output_parallel_movb): Likewise.
4760 (pa_output_parallel_addb): Likewise.
4761 (pa_output_millicode_call): Likewise for first param.
4762 (pa_output_mul_insn): Likewise for second param.
4763 (pa_output_div_insn): Likewise for third param.
4764 (pa_output_mod_insn): Likewise for second param.
4765 (pa_jump_in_call_delay): Likewise for param.
4766 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
4767 (pa_output_div_insn): Likewise.
4768 (pa_output_mod_insn): Likewise.
4769 (pa_output_cbranch): Likewise.
4770 (pa_output_lbranch): Likewise.
4771 (pa_output_bb): Likewise.
4772 (pa_output_bvb): Likewise.
4773 (pa_output_dbra): Likewise.
4774 (pa_output_movb): Likewise.
4775 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
4776 to simplify and for typesafety.
4777 (pa_output_call): Use method of rtx_sequence *.
4778 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
4779 (pa_jump_in_call_delay): Likewise.
4780 (pa_output_parallel_movb): Likewise.
4781 (pa_output_parallel_addb): Likewise.
4782 (pa_following_call): Likewise.
4783 (pa_combine_instructions): Likewise for locals "anchor",
4785 (pa_can_combine_p): Likewise for params "anchor", "floater" and
4786 locals "start", "end".
4787 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
4788 param "insn" and local "local_insn".
4789 (picochip_final_prescan_insn): Likewise for local "local_insn".
4790 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
4792 (uses_TOC): Likewise.
4793 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
4794 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
4795 splitting out to more tightly-scoped locals, 3 as rtx and one as
4797 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
4799 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
4801 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
4803 (fixup_addr_diff_vecs): Likewise.
4804 (reg_unused_after): Likewise for param 2.
4805 (sh_can_redirect_branch): Likewise for both params.
4806 (check_use_sfunc_addr): Likewise for param 1.
4807 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
4808 (find_barrier): Likewise for local "last_got".
4809 (gen_block_redirect): Likewise for return type, param "jump" and
4810 locals "prev", "scan", "next", "insn".
4811 (struct far_branch): Likewise for fields "near_label",
4812 "insert_place", "far_label".
4813 (gen_far_branch): Likewise for local "jump".
4814 (fixup_addr_diff_vecs): Likewise for param "first" and locals
4816 (barrier_align): Likewise for param and for locals "prev", "x".
4817 Introduce local rtx_sequence * "prev_seq" and use insn method for
4818 typesafety and clarity.
4819 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
4820 (get_dest_uid): Likewise for local "dest".
4821 (split_branches): Likewise for locals "next", "beyond", "label",
4822 "block", "far_label". Add checked casts when assigning to
4823 bp->far_label and "far_label".
4824 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
4825 (sequence_insn_p): Likewise.
4826 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
4827 more loop-scoped rtx "insn" when walking LABEL_REFS.
4828 (sh_can_redirect_branch): Strengthen both params from rtx to
4830 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
4831 new local rtx_sequence * "seq" via a dyn_cast, and use a method
4832 for clarity and typesafety.
4833 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
4834 "insn" from rtx to rtx_insn *.
4835 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
4836 when using NEXT_INSN on the CODE_LABEL in operands[2].
4837 (define_insn "casesi_worker_2"): Likewise.
4838 (define_insn "casesi_shift_media"): Likewise.
4839 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
4841 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
4842 Strengthen field "insn" from rtx to rtx_insn *.
4843 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
4844 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
4845 param "start_insn" and local "start_insn".
4846 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
4848 (find_set_of_reg_bb): Likewise for param "insn".
4849 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
4850 (trace_reg_uses): Likewise for param "start_insn".
4851 (sh_treg_combine::cbranch_trace): Likewise for field
4853 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
4855 (sh_treg_combine::record_set_of_reg): Likewise for param
4856 "start_insn" and local "i".
4857 (sh_treg_combine::can_remove_cstore): Likewise for local
4859 (sh_treg_combine::try_optimize_cbranch): Likewise for param
4861 (sh_treg_combine::execute): Likewise for local "i".
4862 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
4864 (sparc_check_64): Likewise for second param.
4865 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
4866 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
4867 dyn_cast, using its insn method for typesafety and clarity.
4868 (empty_delay_slot): Strengthen param "insn" from rtx to
4870 (set_extends): Likewise.
4871 (sparc_check_64): Likewise.
4872 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
4873 for locals "seq", "last_insn".
4874 (combine_bnp): Likewise for param "insn".
4875 (xstormy16_reorg): Likewise for local "insn".
4876 * config/v850/v850.c (substitute_ep_register): Likewise for params
4877 "first_insn", "last_insn" and local "insn".
4878 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
4879 elements of "regs" array, and local "insn".
4880 * except.c (emit_note_eh_region_end): Likewise for param "insn".
4881 * final.c (final_sequence): Strengthen this global from rtx to
4883 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
4885 (final_scan_insn): Update assignment to "final_sequence" to be
4886 from "seq", the cast version of "body", for type-safety.
4887 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
4888 "insns" from rtx to rtx_insn *.
4889 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
4890 * genattr.c (main): When writing out generated insn-attr.h,
4891 strengthen params 1 and 3 of eligible_for_delay,
4892 eligible_for_annul_true, eligible_for_annul_false from rtx to
4894 * genattrtab.c (write_eligible_delay): Likewise when writing out
4895 generated insn-attrtab.c; also local "insn" the generated
4897 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
4899 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
4900 "start_label" from rtx to rtx_insn *.
4901 * ira.c (decrease_live_ranges_number): Likewise for local "p".
4902 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
4903 "insns" and local "insn".
4904 (validate_equiv_mem): Likewise for param "start" and local "insn".
4905 (memref_used_between_p): Likewise for params "start", "end" and
4907 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
4909 * loop-doloop.c (doloop_optimize): Within region guarded by
4910 INSN_P (doloop_pat), introduce a new local rtx_insn *
4911 "doloop_insn" via a checked cast, and use it for typesafety,
4912 eventually writing the value back into doloop_pat.
4913 * output.h (final_sequence): Strengthen this global from rtx to
4915 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
4916 reintroducing "insn" as an rtx_insn * via a checked cast.
4917 Strengthen param "attempt" and local "new_insn"from rtx to
4919 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
4921 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
4922 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
4923 "p" in favor of more tightly-scoped replacements, sometimes rtx
4924 and sometimes rtx_insn *, as appropriate.
4925 (delete_output_reload): Eliminate top-level rtx "i1", splitting
4926 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
4927 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
4928 local "trial" from rtx to rtx_insn *.
4929 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
4930 rtx to rtx_insn *. Strenghten local "pat" from rtx to
4931 rtx_sequence * and use methods for clarity and typesafety.
4932 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
4933 rtx to rtx_insn *. Strenghten local "li" from rtx to
4934 rtx_insn_list * and use its methods for clarity and typesafety.
4935 (steal_delay_list_from_target): Strengthen param "insn" from rtx
4937 (steal_delay_list_from_fallthrough): Likewise.
4938 (try_merge_delay_insns): Likewise for param "thread" and locals
4939 "trial", "next_trial", "delay_insn".
4940 (redundant_insn): Likewise for param "target" and local "trial".
4941 (own_thread_p): Likewise for param "thread" and locals
4942 "active_insn", "insn".
4943 (get_label_before): Likewise for param "insn".
4944 (fill_simple_delay_slots): Likewise for local "new_label"; use
4945 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
4946 (label_before_next_insn): Strengthen return type and local "insn"
4947 from rtx to rtx_insn *.
4948 (relax_delay_slots): Likewise for locals "other", "tmp".
4949 (make_return_insns): Likewise for param "first" and locals "insn",
4950 "jump_insn", "prev". Move declaration of "pat" to its assignment
4951 and strengthen from rtx to rtx_sequence *. Use its methods for
4952 clarity and typesafety.
4953 * rtlanal.c (no_labels_between_p): Strengthen params from
4954 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
4956 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
4957 from const_rtx to const rtx_insn *.
4958 (reg_set_between_p): Rename param "from_insn" to
4959 "uncast_from_insn", and reintroduce "from_insn" as a
4960 const rtx_insn * via a checked cast.
4961 (modified_between_p): Likewise for param "start" as "uncast_start".
4962 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
4963 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
4964 "tmp", head" from rtx to rtx_insn *.
4965 (recompute_rev_top_order): Likewise for local "insn".
4966 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
4967 * store-motion.c (build_store_vectors): Likewise for local "insn".
4968 Strengthen local "st" from rtx to rtx_insn_list * and use methods
4969 for clarity and typesafety.
4970 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
4972 (computation_cost): Likewise for local "seq".
4973 (get_address_cost): Likewise.
4975 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4977 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
4979 (label_is_jump_target_p): Likewise for second param.
4981 * rtlanal.c (tablejump_p): Likewise for param "insn".
4982 (label_is_jump_target_p): Likewise for param "jump_insn".
4984 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4986 * rtl.h (find_first_parameter_load): Strengthen return type and
4987 both params from rtx to rtx_insn *.
4988 * rtlanal.c (find_first_parameter_load): Strengthen return type,
4989 both params and locals "before", "first_set" from rtx to
4990 rtx_insn *. Remove now-redundant cast.
4991 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
4993 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4995 * rtl.h (find_last_value): Delete.
4996 * rtlanal.c (find_last_value): Delete.
4998 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5000 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
5001 from rtx to rtx_insn *.
5002 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
5003 rtx "note" with new local rtx_insn * "new_head" when calculating
5004 head insn of new basic block.
5005 * combine.c (combine_split_insns): Strengthen return type and local
5006 "ret" from rtx to rtx_insn *.
5007 (likely_spilled_retval_p): Likewise for locals "use" and "p".
5008 (try_combine): Eliminate local "m_split", splitting into new
5009 locals "m_split_insn" and "m_split_pat".
5010 (find_split_point): Strengthen local "seq" from rtx into
5012 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
5013 locals "label", "branch".
5014 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
5016 (define_expand "umulsi3_highpart"): Likewise for local "insn".
5017 * dse.c (note_add_store_info): Likewise for fields "first",
5019 (note_add_store): Likewise for local "insn".
5020 (emit_inc_dec_insn_before): Likewise for locals "insn",
5022 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
5023 (replace_read): Likewise for locals "insns", "this_insn".
5024 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
5025 (notice_eh_throw): Likewise for param "insn".
5026 (before_next_cfi_note): Likewise for return type, param, and local
5028 (connect_traces): Likewise for local "note".
5029 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
5030 (verify_rtl_sharing): Likewise.
5031 (unshare_all_rtl_in_chain): Likewise for param "insn".
5032 (get_first_nonnote_insn): Likewise for local "insn".
5033 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
5034 "seq" and use its methods to clarify things.
5035 (next_insn): Strengthen return type from rtx to rtx_insn *.
5036 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
5037 local rtx_insn * using a checked cast, dropping a checked cast
5038 made redundant by this change. Use a cast to and method of
5039 rtx_sequence to clarify the code.
5040 (previous_insn): Rename param "insn" to "uncast_insn" and
5041 reintroduce "insn" as a local rtx_insn * using a checked cast,
5042 dropping a checked cast made redundant by this change. Use a cast
5043 to and method of rtx_sequence to clarify the code.
5044 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
5045 reintroduce "insn" as a local rtx_insn * using a checked cast,
5046 dropping a checked cast made redundant by this change.
5047 (next_nonnote_insn_bb): Likewise.
5048 (prev_nonnote_insn): Likewise.
5049 (prev_nonnote_insn_bb): Likewise.
5050 (next_nondebug_insn): Likewise.
5051 (prev_nondebug_insn): Likewise.
5052 (next_nonnote_nondebug_insn): Likewise.
5053 (prev_nonnote_nondebug_insn): Likewise.
5054 (next_real_insn): Likewise.
5055 (prev_real_insn): Likewise.
5056 (next_active_insn): Likewise.
5057 (prev_active_insn): Likewise.
5058 (next_cc0_user): Likewise. Use rtx_sequence and a method for
5060 (prev_cc0_setter): Likewise.
5061 (try_split): Rename param "trial" to "uncast_trial" and
5062 reintroduce "insn" as a local rtx_insn * using a checked cast,
5063 dropping checked casts made redundant by this change.
5064 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
5066 (remove_insn): Rename param "insn" to "uncast_insn" and
5067 reintroduce "insn" as a local rtx_insn * using a checked cast.
5068 (emit_pattern_after_setloc): Likewise for param "after", as
5070 (emit_pattern_after): Likewise. Strengthen local "prev" from
5072 (emit_pattern_before_setloc): Rename param "before" to
5073 "uncast_before" and reintroduce "before" as a local rtx_insn *
5074 using a checked cast. Strengthen locals "first", "last" from
5076 (emit_pattern_before): Likewise rename/cast param "before" to
5077 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
5078 * except.c (copy_reg_eh_region_note_forward): Strengthen param
5079 "first" and local "insn" from rtx to rtx_insn *.
5080 (copy_reg_eh_region_note_backward): Likewise for param "last"
5082 * expr.c (fixup_args_size_notes): Rename param "last" to
5083 "uncast_last" and reintroduce "last" as a local rtx_insn *
5084 using a checked cast. Strengthen local "insn" from rtx to
5086 * function.c (set_insn_locations): Strengthen param "insn" from
5088 (record_insns): Likewise for param "insns" and local "tmp".
5089 (active_insn_between): Rename param "tail" to
5090 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
5091 using a checked cast.
5092 (thread_prologue_and_epilogue_insns): Split out top-level local
5093 rtx "seq" into three different rtx_insn * locals. Strengthen
5094 local "prologue_seq" from rtx to rtx_insn *.
5095 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
5096 from rtx to rtx_insn *.
5097 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
5098 (priority): Likewise for locals "prev_first", "twin".
5099 (setup_insn_max_reg_pressure): Likewise for param "after".
5100 (sched_setup_bb_reg_pressure_info): Likewise.
5101 (no_real_insns_p): Strengthen params from const_rtx to
5103 (schedule_block): Strengthen local "next_tail" from rtx to
5105 * ifcvt.c (find_active_insn_before): Strengthen return type and
5106 param "insn" from rtx to rtx_insn *.
5107 (find_active_insn_after): Likewise.
5108 (cond_exec_process_insns): Likewise for param "start" and local "insn".
5109 (cond_exec_process_if_block): Likewise for locals "then_start",
5110 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
5111 (noce_process_if_block): Likewise for local "jump".
5112 (merge_if_block): Likewise for two locals named "end".
5113 (cond_exec_find_if_block): Likewise for local "last_insn".
5114 * jump.c (delete_related_insns): Rename param "insn" to
5115 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
5116 checked cast. Strengthen local "p" from rtx to rtx_insn *.
5117 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
5119 (split_reg): Likewise.
5120 * lra.c (lra_process_new_insns): Likewise.
5121 * modulo-sched.c (permute_partial_schedule): Strengthen param
5122 "last" from rtx to rtx_insn *.
5123 * optabs.c (add_equal_note): Likewise for param "insns" and local
5125 (expand_binop_directly): Add checked casts to rtx_insn * within
5126 NEXT_INSN (pat) uses.
5127 (expand_unop_direct): Likewise.
5128 (maybe_emit_unop_insn): Likewise.
5129 * recog.c (peep2_attempt): Strengthen locals "last",
5130 "before_try", "x" from rtx to rtx_insn *.
5131 * reorg.c (optimize_skip): Strengthen return type and local
5132 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
5133 and locals "trial", "next_trial" from rtx to rtx_insn *.
5134 * resource.c (next_insn_no_annul): Strengthen return type and
5135 param "insn" from rtx to rtx_insn *. Use a cast to and method of
5136 rtx_sequence to clarify the code.
5137 (mark_referenced_resources): Add a checked cast to rtx_insn *
5138 within PREV_INSN (x).
5139 (find_dead_or_set_registers): Strengthen return type, param
5140 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
5141 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
5143 (mark_target_live_regs): Strengthen params "insns" and "target",
5144 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
5145 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
5147 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
5148 from rtx to rtx_insn *.
5149 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
5150 from rtx to rtx_insn *.
5151 (copy_reg_eh_region_note_backward): Likewise.
5152 (unshare_all_rtl_in_chain): Likewise for sole param.
5153 (dump_rtl_slim): Strengthen second and third params from const_rtx
5154 to const rtx_insn *.
5155 * sched-deps.c (sched_free_deps): Strengthen params "head" and
5156 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
5157 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
5158 "next_tail" from rtx to rtx_insn *.
5159 (begin_move_insn): Likewise for local "next".
5160 * sched-int.h (sched_free_deps): Likewise for first and second
5162 (no_real_insns_p): Strengthen both params from const_rtx to
5164 (sched_setup_bb_reg_pressure_info): Strengthen second params from
5166 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
5168 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
5169 and locals "insn", "tail" from const_rtx to const rtx_insn *.
5170 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
5172 (debug_rtl_slim): Strengthen params "first" and "last" from
5173 const_rtx to const rtx_insn *.
5174 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
5175 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
5176 (convert_to_simple_return): Likewise for param "returnjump".
5177 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
5179 (convert_to_simple_return): Likewise for param "returnjump".
5180 * valtrack.c (propagate_for_debug): Likewise for params
5182 * valtrack.h (propagate_for_debug): Likewise for second param.
5184 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5186 * output.h (insn_current_reference_address): Strengthen param
5187 from rtx to rtx_insn *.
5188 * final.c (insn_current_reference_address): Likewise.
5190 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5192 * basic-block.h (inside_basic_block_p): Strengthen param from
5193 const_rtx to const rtx_insn *.
5194 * cfgbuild.c (inside_basic_block_p): Likewise.
5196 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5198 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
5200 (get_trace_info): Likewise for param "insn".
5201 (save_point_p): Likewise.
5202 (maybe_record_trace_start): Likewise for both params.
5203 (maybe_record_trace_start_abnormal): Likewise.
5204 (create_trace_edges): Likewise for sole param and for three of the
5206 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
5207 to rtx_insn *, and update a call to pat->element to pat->insn.
5209 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5211 * function.h (struct expr_status): Convert field "x_forced_labels"
5212 from rtx_expr_list * to rtx_insn_list *.
5214 * cfgbuild.c (make_edges): Convert local "x" from an
5215 rtx_expr_list * to an rtx_insn_list *, replacing use of
5216 "element" method with "insn" method.
5217 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
5218 * except.c (sjlj_emit_dispatch_table): Replace use of
5219 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
5221 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
5222 rtx_expr_list * to an rtx_insn_list *, replacing use of
5223 "element" method with "insn" method.
5224 * reload1.c (set_initial_label_offsets): Likewise for local "x".
5225 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
5226 rtx_insn *, adding a checked cast. Replace use of
5227 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
5229 (expand_label): Likewise for local "label_r".
5231 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5233 * function.h (struct rtl_data): Convert field
5234 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
5236 * rtl.h (remove_node_from_insn_list): New prototype.
5238 * builtins.c (expand_builtin): When prepending to
5239 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
5241 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
5242 to rtx_insn_list *, and use its "insn" method rather than
5244 * cfgrtl.c (delete_insn): Use new function
5245 remove_node_from_insn_list rather than
5246 remove_node_from_expr_list.
5247 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
5248 to rtx_insn_list *, and use its "insn" method rather than
5250 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
5251 * reload1.c (set_initial_label_offsets): Likewise for local "x".
5252 * rtlanal.c (remove_node_from_insn_list): New function, adapted
5253 from remove_node_from_expr_list.
5254 * stmt.c (expand_label): When prepending to
5255 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
5258 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5260 * function.h (struct rtl_data): Strengthen fields "x_return_label"
5261 and "x_naked_return_label" from rtx to rtx_code_label *.
5263 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5265 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
5266 (SET_NEXT_INSN): Likewise.
5267 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
5269 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
5270 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
5271 to split out the SEQUENCE from local "bundle", strengthening the
5272 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
5273 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
5274 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
5275 and the type of the elements of the "slot" array from rtx to
5277 (reorg_split_calls): Likewise for locals "insn" and "next", and
5278 the type of the elements of the "slot" array.
5280 * config/frv/frv.c (frv_nops): Likewise for the elements of this
5282 (frv_function_prologue): Likewise for locals "insn", "next",
5284 (frv_register_nop): Introduce a local "nop_insn" to be the
5285 rtx_insn * containing rtx "nop".
5287 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
5288 used as an insn and sometimes as a pattern, so rename it to
5289 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
5290 using it where dealing with the core insn.
5292 * config/picochip/picochip.c (reorder_var_tracking_notes):
5293 Strengthen locals "insn", "next", "last_insn", "queue",
5294 "next_queue", "prev" from rtx to rtx_insn *.
5296 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
5297 the second param is an rtx_insn ** rather than an rtx **.
5298 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
5299 from rtx to rtx_sequence *, and introduce local named "sequence",
5300 using methods of rtx_sequence to clarify the code.
5301 (remove_insn): Introduce local rtx_sequence * named "sequence" and
5303 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
5304 Rename param "after" to "uncast_after", reintroducing "after" as a
5305 local rtx_insn * with a checked cast.
5306 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
5307 reintroducing "after" as a local rtx_insn * with a checked cast.
5308 Strengthen local "last" from rtx to rtx_insn * and remove the
5309 now-redundant checked casts.
5310 (copy_delay_slot_insn): Strengthen return type and param from rtx
5313 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
5314 "last" from rtx to rtx_insn *.
5316 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5318 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
5319 param from rtx to rtx_insn *.
5321 * emit-rtl.c (copy_delay_slot_insn): Likewise.
5323 * reorg.c (skip_consecutive_labels): Strengthen return type, param
5324 and local "insn" from rtx to rtx_insn *.
5325 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
5326 (unfilled_slots_next): Likewise.
5327 (function_return_label): Strengthen from rtx to rtx_code_label *.
5328 (function_simple_return_label): Likewise.
5329 (first_active_target_insn): Strengthen return type and param from
5331 (find_end_label): Strengthen return type from rtx to
5332 rtx_code_label *; strengthen locals as appropriate.
5333 (emit_delay_sequence): Strengthen return type, param "insn" and
5334 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
5335 and local "li" from rtx to rtx_insn_list *, using methods of
5336 rtx_insn_list for clarity and typesafety.
5337 (add_to_delay_list): Strengthen return type and param "insn" from
5338 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
5339 rtx_insn_list * and use methods of rtx_insn_list.
5340 (delete_from_delay_slot): Strengthen return type, param "insn",
5341 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
5342 Strengthen local "seq" from rtx to rtx_sequence *, and local
5343 "delay_list" from rtx to rtx_insn_list *, using methods of
5344 rtx_sequence for clarity and type-safety.
5345 (delete_scheduled_jump): Add checked cast when invoking
5346 delete_from_delay_slot. Strengthen local "trial" from rtx to
5348 (optimize_skip): Strengthen return type and local "delay_list"
5349 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
5351 (steal_delay_list_from_target): Strengthen return type, param
5352 "delay_list" and local "new_delay_list" from rtx to
5353 rtx_insn_list *. Strengthen param "seq" from rtx to
5354 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
5356 Split out local "temp" into multiple more-tightly scoped locals:
5357 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
5358 of rtx_insn_list and rtx_sequence for clarity and typesafety.
5359 Strengthen locals named "trial" from rtx to rtx_insn *.
5360 (steal_delay_list_from_fallthrough): Strengthen return type and
5361 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
5362 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
5363 Strengthen local "trial" from rtx to rtx_insn *.
5364 (try_merge_delay_insns): Strength local "merged_insns" from rtx
5365 to rtx_insn_list * and use its methods. Strengthen local "pat"
5366 from rtx to rtx_sequence * and use its methods. Strengthen locals
5367 "dtrial" and "new_rtx" from rtx to rtx_insn *.
5368 (get_label_before): Strengthen return type and local "label" from
5370 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
5371 "next_trial", "next", prev". Strengthen local "delay_list" from
5372 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
5374 (follow_jumps): Strengthen return type, param "label" and locals
5375 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
5376 (fill_slots_from_thread): Strengthen return type, param
5377 "delay_list" from rtx to rtx_insn_list *. Strengthen params
5378 "insn", "thread", "opposite_thread" and locals "new_thread",
5379 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
5380 "sequence" from a checked cast to rtx_sequence so that we can call
5381 steal_delay_list_from_target and steal_delay_list_from_fallthrough
5382 with an rtx_sequence *.
5383 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
5384 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
5385 Strengthen local "delay_list" from rtx to rtx_insn_list *.
5386 (relax_delay_slots): Strengthen param "first" and locals "insn",
5387 "next", "trial", "delay_insn", "target_label" from rtx to
5388 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
5389 Introduce a local "trial_seq" for PATTERN (trial) of type
5390 rtx_sequence *, in both cases using methods of rtx_sequence.
5391 (dbr_schedule): Strengthen param "first" and locals "insn",
5392 "next", "epilogue_insn" from rtx to rtx_insn *.
5394 2014-08-28 Richard Biener <rguenther@suse.de>
5396 PR tree-optimization/62283
5397 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5398 Do not peel loops for alignment where the vector loop likely
5399 doesn't run at least VF times.
5401 2014-08-28 Bin Cheng <bin.cheng@arm.com>
5403 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
5404 important_candidates. Consider all important candidates if
5405 IVS doesn't give any result. Remove check on ivs->upto.
5406 (try_add_cand_for): Call iv_ca_add_use only once.
5408 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5409 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5410 Anna Tikhonova <anna.tikhonova@intel.com>
5411 Ilya Tocar <ilya.tocar@intel.com>
5412 Andrey Turetskiy <andrey.turetskiy@intel.com>
5413 Ilya Verbin <ilya.verbin@intel.com>
5414 Kirill Yukhin <kirill.yukhin@intel.com>
5415 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5417 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
5418 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
5420 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
5421 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
5422 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
5423 (define_insn "*mul<mode>3"): Add EVEX version.
5425 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5426 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5427 Anna Tikhonova <anna.tikhonova@intel.com>
5428 Ilya Tocar <ilya.tocar@intel.com>
5429 Andrey Turetskiy <andrey.turetskiy@intel.com>
5430 Ilya Verbin <ilya.verbin@intel.com>
5431 Kirill Yukhin <kirill.yukhin@intel.com>
5432 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5434 * config/i386/sse.md
5435 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
5436 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
5437 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
5438 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
5439 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
5440 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
5441 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
5442 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
5443 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
5444 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
5445 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
5446 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
5447 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
5448 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
5449 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
5450 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
5452 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5453 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5454 Anna Tikhonova <anna.tikhonova@intel.com>
5455 Ilya Tocar <ilya.tocar@intel.com>
5456 Andrey Turetskiy <andrey.turetskiy@intel.com>
5457 Ilya Verbin <ilya.verbin@intel.com>
5458 Kirill Yukhin <kirill.yukhin@intel.com>
5459 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5461 * config/i386/sse.md
5462 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
5463 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
5464 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
5466 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5467 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5468 Anna Tikhonova <anna.tikhonova@intel.com>
5469 Ilya Tocar <ilya.tocar@intel.com>
5470 Andrey Turetskiy <andrey.turetskiy@intel.com>
5471 Ilya Verbin <ilya.verbin@intel.com>
5472 Kirill Yukhin <kirill.yukhin@intel.com>
5473 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5475 * config/i386/sse.md
5476 (define_mode_iterator VI128_256): New.
5477 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
5479 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5480 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5481 Anna Tikhonova <anna.tikhonova@intel.com>
5482 Ilya Tocar <ilya.tocar@intel.com>
5483 Andrey Turetskiy <andrey.turetskiy@intel.com>
5484 Ilya Verbin <ilya.verbin@intel.com>
5485 Kirill Yukhin <kirill.yukhin@intel.com>
5486 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5488 * config/i386/sse.md
5489 (define_mode_iterator VI8_256_512): New.
5490 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
5492 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
5493 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
5495 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
5497 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5499 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
5500 pointer to the cumulative reloc value and return the value for
5502 (compute_reloc_for_rtx): Take a const_rtx. Call
5503 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
5504 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
5505 for_each_rtx for the CONST case.
5507 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5509 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
5510 (mark_constants_in_pattern): ...this new function to iterate over
5512 (mark_constants): Update accordingly.
5514 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5516 * varasm.c: Include rtl-iter.h.
5517 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
5518 Remove the pointer to the cumulative hashval_t and just return
5519 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
5520 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
5521 Accumulate the hashval_ts here instead of const_rtx_hash_1.
5523 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5525 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
5526 Give real type of data parameter. Remove return value.
5527 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
5528 to iterate over subrtxes.
5530 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5532 * var-tracking.c (use_narrower_mode_test): Turn from being a
5533 for_each_rtx callback to being a function that examines each
5535 (adjust_mems): Update accordingly.
5537 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5539 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
5540 callback to being a function that examines each subrtx itself.
5541 Remove handling of null rtxes.
5542 (add_uses): Update accordingly.
5544 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5546 * var-tracking.c: Include rtl-iter.h.
5547 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
5548 to being a function that examines each subrtx itself.
5549 (use_type): Update accordingly.
5551 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5553 * store-motion.c: Include rtl-iter.h.
5554 (extract_mentioned_regs_1): Delete.
5555 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
5556 for_each_rtx to iterate over subrtxes.
5558 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5560 * sel-sched.c: Include rtl-iter.h
5561 (count_occurrences_1): Delete.
5562 (count_occurrences_equiv): Turn rtxes into const_rtxes.
5563 Use FOR_EACH_SUBRTX rather than for_each_rtx.
5565 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5567 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
5568 * rtlanal.c (tls_referenced_p_1): Delete.
5569 (tls_referenced_p): Take a const_rtx rather than an rtx.
5570 Use FOR_EACH_SUBRTX rather than for_each_rtx.
5572 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5574 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
5575 (for_each_inc_dec): Take an rtx rather than an rtx *.
5576 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
5577 (cselib_record_sets): Likewise.
5578 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
5579 (check_for_inc_dec): Likewise.
5580 * rtlanal.c (for_each_inc_dec_ops): Delete.
5581 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
5582 rather than a pointer to the memory address. Replace
5583 for_each_inc_dec_ops argument with separate function and data
5584 arguments. Abort on non-autoinc addresses.
5585 (for_each_inc_dec_find_mem): Delete.
5586 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
5587 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
5589 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5591 * rtl.h (find_all_hard_regs): Declare.
5592 * rtlanal.c (find_all_hard_regs): New function.
5593 (record_hard_reg_uses_1): Delete.
5594 (record_hard_reg_uses): Use find_all_hard_regs.
5596 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5598 * rtl.h (replace_label_data): Delete.
5599 (replace_label): Take the old label, new label and update-nuses flag
5600 as direct arguments. Return void.
5601 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
5602 * rtlanal.c (replace_label): Update interface as above. Handle
5603 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
5604 iterator. Use FOR_EACH_SUBRTX_PTR.
5606 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5608 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
5609 with const_rtx parameters.
5610 * varasm.c (get_pool_constant): Likewise.
5611 * rtlanal.c (rtx_referenced_p_1): Delete.
5612 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
5613 Assert that the rtx we're looking for is nonnull. Allow searches
5614 for constant pool SYMBOL_REFs.
5616 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5618 * reload1.c: Include rtl-iter.h.
5619 (note_reg_elim_costly): Turn from being a for_each_rtx callback
5620 to being a function that examines each subrtx itself.
5621 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
5623 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5625 * regcprop.c (cprop_find_used_regs_1): Delete.
5626 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
5628 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5630 * regcprop.c: Include rtl-iter.h.
5631 (kill_value): Take a const_rtx.
5632 (kill_autoinc_value): Turn from being a for_each_rtx callback
5633 to being a function that examines each subrtx itself.
5634 (copyprop_hardreg_forward_1): Update accordingly.
5636 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5638 * reg-stack.c: Include rtl-iter.h.
5639 (subst_stack_regs_in_debug_insn): Delete.
5640 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
5641 instead of for_each_rtx.
5643 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5645 * lower-subreg.c (find_decomposable_subregs): Turn from being
5646 a for_each_rtx callback to being a function that examines each
5647 subrtx itself. Remove handling of null rtxes.
5648 (decompose_multiword_subregs): Update accordingly.
5650 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5652 * lower-subreg.c (adjust_decomposed_uses): Delete.
5653 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
5654 Remove handling of null rtxes.
5656 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5658 * lower-subreg.c: Include rtl-iter.h.
5659 (resolve_subreg_use): Turn from being a for_each_rtx callback
5660 to being a function that examines each subrtx itself. Remove
5661 handling of null rtxes.
5662 (resolve_reg_notes, resolve_simple_move): Update accordingly.
5663 (decompose_multiword_subregs): Likewise.
5665 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5667 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
5668 to being a function that examines each subrtx itself.
5669 (simplify_using_condition, simplify_using_initial_values): Update
5672 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5674 * loop-iv.c: Include rtl-iter.h.
5675 (find_single_def_src): New function.
5676 (replace_single_def_regs): Turn from being a for_each_rtx callback
5677 to being a function that examines each subrtx itself.
5678 (replace_in_expr, simplify_using_initial_values): Update accordingly.
5680 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5682 * jump.c (eh_returnjump_p_1): Delete.
5683 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
5684 Remove handling of null rtxes.
5686 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5688 * jump.c: Include rtl-iter.h.
5689 (returnjump_p_1): Delete.
5690 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
5691 Remove handling of null rtxes.
5693 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5695 * ira.c: Include rtl-iter.h.
5696 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
5697 to being a function that examines each subrtx itself. Remove
5698 handling of null rtxes.
5699 (update_equiv_regs): Update call accordingly.
5701 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5703 * fwprop.c: Include rtl-iter.h.
5704 (varying_mem_p): Turn from being a for_each_rtx callback to being
5705 a function that examines each subrtx itself.
5706 (propagate_rtx): Update accordingly.
5708 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5710 * function.c: Include rtl-iter.h
5711 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
5712 callback to being a function that examines each subrtx itself.
5713 Return the changed flag.
5714 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
5715 (instantiate_virtual_regs): Update calls accordingly.
5717 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5719 * final.c: Include rtl-iter.h.
5720 (mark_symbol_ref_as_used): Delete.
5721 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
5724 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5726 * emit-rtl.c: Include rtl-iter.h.
5727 (find_auto_inc): Turn from being a for_each_rtx callback to being
5728 a function that examines each subrtx itself. Assume the first operand
5729 to an RTX_AUTOINC is the automodified register.
5730 (try_split): Update call accordingly.
5732 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5734 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
5735 Return a bool, inverting the result so that 0/false means "not ok".
5736 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
5737 subrtxes of a CONST.
5738 (mem_loc_descriptor, add_const_value_attribute)
5739 (resolve_addr_in_expr): Update calls accordingly.
5741 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5743 * dwarf2out.c: Include rtl-iter.h.
5744 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
5745 Remove unused data parameter. Return a bool, inverting the result
5746 so that 0/false means "not ok".
5747 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
5748 instead of for_each_rtx.
5750 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5752 * dse.c: Include rtl-iter.h.
5753 (check_mem_read_rtx): Change void * parameter to real type.
5754 Remove return value.
5755 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
5756 for_each_rtx. Don't handle null rtxes.
5758 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5760 * df-problems.c: Include rtl-iter.h.
5761 (find_memory): Turn from being a for_each_rtx callback to being
5762 a function that examines each subrtx itself. Continue to look for
5763 volatile references even after a nonvolatile one has been found.
5764 (can_move_insns_across): Update calls accordingly.
5766 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5768 * ddg.c (walk_mems_2, walk_mems_1): Delete.
5769 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
5770 to iterate over subrtxes. Return a bool rather than an int.
5772 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5774 * ddg.c: Include rtl-iter.h.
5775 (mark_mem_use_1): Rename to...
5776 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
5777 instead of for_each_rtx.
5778 (mem_read_insn_p): Update accordingly.
5780 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5782 * cse.c (change_cc_mode_args): Delete.
5783 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
5784 a function that examines each subrtx itself. Take the fields of
5785 change_cc_mode_args as argument and return void.
5786 (cse_change_cc_mode_insn): Update calls accordingly.
5788 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5790 * cse.c (is_dead_reg): Change argument to const_rtx.
5791 (dead_debug_insn_data): Delete.
5792 (is_dead_debug_insn): Expand commentary. Turn from being a
5793 for_each_rtx callback to being a function that examines
5794 each subrtx itself. Take the fields of dead_debug_insn_data
5796 (delete_trivially_dead_insns): Update call accordingly.
5798 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5800 * cse.c (check_for_label_ref): Move earlier in file. Turn from
5801 being a for_each_rtx callback to being a function that examines
5803 (cse_extended_basic_block): Update call accordingly.
5805 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5807 * cse.c (check_dependence_data): Delete.
5808 (check_dependence): Change from being a for_each_rtx callback to being
5809 a function that examines all subrtxes itself. Don't handle null rtxes.
5810 (invalidate): Update call accordingly.
5812 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5814 * cse.c: Include rtl-iter.h.
5815 (approx_reg_cost_1): Delete.
5816 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
5817 Don't handle null rtxes.
5819 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5821 * cfgcleanup.c: Include rtl-iter.h.
5822 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
5823 to being a function that examines each subrtx itself.
5824 (thread_jump): Update accordingly.
5826 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5828 * combine-stack-adj.c: Include rtl-iter.h.
5829 (record_stack_refs_data): Delete.
5830 (record_stack_refs): Turn from being a for_each_rtx callback
5831 to being a function that examines each subrtx itself.
5832 Take a pointer to the reflist. Invert sense of return value
5833 so that true means success and false means failure. Don't
5835 (combine_stack_adjustments_for_block): Update accordingly.
5837 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5839 * combine.c (record_truncated_value): Turn from being a for_each_rtx
5840 callback to a function that takes an rtx and returns a bool
5841 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
5844 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5846 * combine.c: Include rtl-iter.h.
5847 (unmentioned_reg_p_1): Delete.
5848 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
5849 Don't handle null rtxes.
5851 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5853 * calls.c: Include rtl-iter.h.
5854 (internal_arg_pointer_based_exp_1): Delete.
5855 (internal_arg_pointer_based_exp): Take a const_rtx.
5856 Use FOR_EACH_SUBRTX to iterate over subrtxes.
5858 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5860 * caller-save.c: Include rtl-iter.h.
5861 (add_used_regs_1): Delete.
5862 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
5863 to iterate over subrtxes. Assert that any remaining pseudos
5866 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5868 * bt-load.c: Include rtl-iter.h.
5869 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
5870 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
5871 to iterate over subrtxes.
5872 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
5873 find_btr_use rather than btr_referenced_p.
5875 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5877 * alias.c: Include rtl-iter.h.
5878 (refs_newer_value_cb): Delete.
5879 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
5881 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5883 * rtl-iter.h: New file.
5884 * rtlanal.c: Include it.
5885 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
5886 (generic_subrtx_iterator <T>::add_single_to_queue)
5887 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
5888 (generic_subrtx_iterator <T>::free_array): New functions.
5889 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
5890 (generic_subrtx_iterator <const_rtx_accessor>)
5891 (generic_subrtx_iterator <rtx_var_accessor>
5892 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
5893 (setup_reg_subrtx_bounds): New function.
5894 (init_rtlanal): Call it.
5896 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
5899 * config/sh/sh.md (ashlsi3): Handle negative shift count for
5901 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
5903 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
5905 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
5907 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5909 * rtl.h (JUMP_LABEL_AS_INSN): New.
5911 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5913 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
5915 (alloc_EXPR_LIST): Strengthen return type from rtx to
5917 (remove_free_EXPR_LIST_node): Likewise for param.
5918 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
5919 from rtx to rtx_expr_list *.
5920 * sched-int.h (struct deps_desc): Strengthen fields
5921 "pending_read_mems" and "pending_write_mems" from rtx to
5924 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
5925 rtx to rtx_expr_list *.
5926 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
5927 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
5929 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
5930 from rtx to rtx_expr_list *.
5931 * loop-iv.c (simplify_using_initial_values): Strengthen local
5932 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
5933 "pnote_next" from rtx * to rtx_expr_list **.
5934 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
5935 param "exprp" from rtx * to rtx_expr_list **.
5936 (add_insn_mem_dependence): Strengthen local "mem_list" from
5937 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
5939 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
5940 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
5941 param "old_mems_p" from rtx * to rtx_expr_list **.
5942 * var-tracking.c (struct adjust_mem_data): Strengthen field
5943 "side_effects" from rtx to rtx_expr_list *.
5944 (adjust_insn): Replace NULL_RTX with NULL when assigning to
5946 (prepare_call_arguments): Likewise.
5948 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5950 * function.h (struct rtl_data): Strengthen field
5951 "x_stack_slot_list" from rtx to rtx_expr_list *.
5953 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
5954 when assigning to stack_slot_list.
5956 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5958 * function.h (struct rtl_data): Strengthen field
5959 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
5960 * rtl.h (remove_node_from_expr_list): Strengthen second param from
5961 rtx * to rtx_expr_list **.
5963 * cfgbuild.c (make_edges): In loop over
5964 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
5965 rtx_expr_list *, and use methods of the latter class to clarify
5967 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
5968 rtx_expr_list *, and use methods of the latter class to clarify
5970 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
5971 * reload1.c (set_initial_label_offsets): Likewise for local "x".
5972 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
5973 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
5974 to rtx_expr_list *. Use methods of the latter class to clarify
5977 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5979 * function.h (struct expr_status): Strengthen field
5980 "x_forced_labels" from rtx to rtx_expr_list *.
5982 * cfgbuild.c (make_edges): Split local "x" into two locals,
5983 strengthening one from rtx to rtx_expr_list *, and using methods
5985 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
5986 loop over forced_labels, introduce strengthen it from rtx to
5987 rtx_expr_list *, using methods to clarify the code.
5988 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
5989 to rtx_expr_list *, using methods of said class to clarify the
5991 * reload1.c (set_initial_label_offsets): Split local "x" into two
5992 per-loop variables, strengthening the first from rtx to
5993 rtx_expr_list * and using methods.
5995 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5997 * coretypes.h (class rtx_expr_list): Add forward declaration.
5998 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
5999 * gengenrtl.c (special_rtx): Add EXPR_LIST.
6000 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
6001 invariant: GET_CODE (X) == EXPR_LIST.
6002 (is_a_helper <rtx_expr_list *>::test): New.
6003 (rtx_expr_list::next): New.
6004 (rtx_expr_list::element): New.
6005 (gen_rtx_EXPR_LIST): New.
6007 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6009 * varasm.c (mark_constants): Convert a GET_CODE check into a
6010 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
6011 Use methods of rtx_sequence to clarify the code.
6013 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6015 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
6016 local "seq" via a checked cast, and use methods of rtx_sequence
6017 to simplify the code.
6019 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6021 * resource.c (mark_referenced_resources): Strengthen local
6022 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
6023 using methods of rtx_sequence to clarify the code.
6024 (find_dead_or_set_registers): Within the switch statement, convert
6025 a GET_CODE check to a dyn_cast, introducing local "seq". Within
6026 the JUMP_P handling, introduce another local "seq", adding a
6027 checked cast to rtx_sequence *. In both cases, use methods of
6028 rtx_sequence to clarify the code.
6029 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
6030 via a checked cast, and use methods of rtx_sequence to simplify
6033 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6035 * reorg.c (redundant_insn): In two places in the function, replace
6036 a check of GET_CODE with a dyn_cast, introducing local "seq", and
6037 usings methods of rtx_sequence to clarify the code.
6039 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6041 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
6042 local "seq" with a checked cast, and use methods of rtx_sequence
6043 to clarify the code.
6045 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6047 * function.c (contains): Introduce local "seq" for PATTERN (insn),
6048 with a checked cast, in the region for where we know it's a
6049 SEQUENCE. Use methods of rtx_sequence.
6051 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6053 * final.c (get_attr_length_1): Replace GET_CODE check with a
6054 dyn_cast, introducing local "seq" and the use of methods of
6056 (shorten_branches): Likewise, introducing local "body_seq".
6057 Strengthen local "inner_insn" from rtx to rtx_insn *.
6058 (reemit_insn_block_notes): Replace GET_CODE check with a
6059 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
6060 Use methods of rtx_sequence.
6061 (final_scan_insn): Likewise, introducing local "seq" for when
6062 "body" is known to be a SEQUENCE, using its methods.
6064 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6066 * except.c (can_throw_external): Strengthen local "seq" from rtx
6067 to rtx_sequence *. Use methods of rtx_sequence.
6068 (insn_nothrow_p): Likewise.
6070 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6072 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
6073 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
6074 Use methods of rtx_sequence.
6075 (scan_trace): Likewise for local "pat".
6077 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6079 * coretypes.h (class rtx_sequence): Add forward declaration.
6080 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
6081 invariant: GET_CODE (X) == SEQUENCE.
6082 (is_a_helper <rtx_sequence *>::test): New.
6083 (is_a_helper <const rtx_sequence *>::test): New.
6084 (rtx_sequence::len): New.
6085 (rtx_sequence::element): New.
6086 (rtx_sequence::insn): New.
6088 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6090 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
6092 (alloc_INSN_LIST): Strengthen return type from rtx to
6094 (copy_INSN_LIST): Likewise for return type and param.
6095 (concat_INSN_LIST): Likewise for both params and return type.
6096 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
6097 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
6098 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
6099 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
6101 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
6102 "implicit_sets", "control_uses", "clobbers" from rtx to
6104 (struct deps_desc): Likewise for fields "pending_read_insns",
6105 "pending_write_insns", "pending_jump_insns",
6106 "last_pending_memory_flush", "last_function_call",
6107 "last_function_call_may_noreturn", "sched_before_next_call",
6108 "sched_before_next_jump".
6109 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
6110 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
6112 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
6113 from rtx to rtx_insn_list *.
6114 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
6117 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
6118 to rtx_insn_list **.
6119 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
6121 (queue_insn): Likewise for local "link".
6122 (struct haifa_saved_data): Strengthen field "insn_queue" from
6123 rtx * to rtx_insn_list **.
6124 (save_backtrack_point): Update allocation of save->insn_queue to
6125 reflect the strengthening of elements from rtx to rtx_insn_list *.
6126 (queue_to_ready): Strengthen local "link" from rtx to
6127 rtx_insn_list *; use methods "next" and "insn" when traversing the
6129 (early_queue_to_ready): Likewise for locals "link", "next_link",
6131 (schedule_block): Update allocation of insn_queue to reflect the
6132 strengthening of elements from rtx to rtx_insn_list *. Strengthen
6133 local "link" from rtx to rtx_insn_list *, and use methods when
6135 (add_to_speculative_block): Strengthen locals "twins" and
6136 "next_node" from rtx to rtx_insn_list *, and use methods when
6137 working with them. Strengthen local "twin" from rtx to
6138 rtx_insn *, eliminating a checked cast.
6139 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
6140 from rtx to rtx_insn_list *, and use methods when working with
6143 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
6144 from rtx to rtx_insn_list *, adding a checked cast.
6145 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
6147 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
6148 "newlink" from rtx to rtx_insn_list *. Strengthen local
6149 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
6150 from rtx to rtx_insn *.
6151 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
6152 from rtx to rtx_insn_list *. Use methods of the latter class.
6153 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
6154 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
6155 (remove_free_INSN_LIST_node): Strengthen return type and local
6156 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
6157 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
6158 rtx_insn_list *, using "insn" method.
6160 * sched-deps.c (add_dependence_list): Strengthen param "list"
6161 from rtx to rtx_insn_list *, and use methods when working with it.
6162 (add_dependence_list_and_free): Strengthen param "listp" from
6163 rtx * to rtx_insn_list **.
6164 (remove_from_dependence_list): Strenghten param "listp" from rtx *
6165 to rtx_insn_list **, and use methods when working with *listp.
6166 (remove_from_both_dependence_lists): Strengthen param "listp" from
6167 rtx * to rtx_insn_list **
6168 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
6169 to rtx_insn_list **. Eliminate local "link", in favor of two new
6170 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
6172 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
6173 by introducing local "cond_deps".
6174 (remove_from_deps): Strengthen param "insn" from rtx to
6177 * sched-rgn.c (concat_insn_mem_list): Strengthen param
6178 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
6179 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
6180 Use methods of rtx_insn_list.
6182 * store-motion.c (struct st_expr): Strengthen fields
6183 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
6184 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
6186 (find_moveable_store): Split out "tmp" into multiple more-tightly
6187 scoped locals. Use methods of rtx_insn_list *.
6188 (compute_store_table): Strengthen local "tmp" from rtx to
6189 rtx_insn *. Use methods of rtx_insn_list *.
6191 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6193 * coretypes.h (class rtx_insn_list): Add forward declaration.
6194 * rtl.h (class rtx_insn_list): New subclass of rtx_def
6195 (is_a_helper <rtx_insn_list *>::test): New.
6196 (rtx_insn_list::next): New.
6197 (rtx_insn_list::insn): New.
6198 (gen_rtx_INSN_LIST): Add prototype.
6199 * emit-rtl.c (gen_rtx_INSN_LIST): New.
6200 * gengenrtl.c (special_rtx): Add INSN_LIST.
6202 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6204 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
6205 "prev" from rtx to rtx_insn *.
6207 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6209 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
6210 functions. Require merely an rtx for now, not an rtx_insn *.
6211 (BLOCK_FOR_INSN): Likewise.
6212 (INSN_LOCATION): Likewise.
6213 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
6215 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6217 * rtl.h (PATTERN): Convert this macro into a pair of inline
6218 functions, for now, requiring const_rtx and rtx.
6220 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6222 * target.def (unwind_emit): Strengthen param "insn" from rtx to
6224 (final_postscan_insn): Likewise.
6225 (adjust_cost): Likewise.
6226 (adjust_priority): Likewise.
6227 (variable_issue): Likewise.
6228 (macro_fusion_pair_p): Likewise.
6229 (dfa_post_cycle_insn): Likewise.
6230 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
6231 (first_cycle_multipass_issue): Likewise.
6232 (dfa_new_cycle): Likewise.
6233 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
6234 (speculate_insn): Likewise for param "insn".
6235 (gen_spec_check): Likewise for params "insn" and "label".
6236 (get_insn_spec_ds): Likewise for param "insn".
6237 (get_insn_checked_ds): Likewise.
6238 (dispatch_do): Likewise.
6239 (dispatch): Likewise.
6240 (cannot_copy_insn_p): Likewise.
6241 (invalid_within_doloop): Likewise.
6242 (legitimate_combined_insn): Likewise.
6246 * doc/tm.texi: Automatically updated to reflect changes to
6249 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
6251 (schedule_block): Likewise.
6252 (sched_init): Likewise.
6253 (sched_speculate_insn): Strengthen param "insn" from rtx to
6255 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
6257 * hooks.c (hook_bool_rtx_true): Rename to...
6258 hook_bool_rtx_insn_true): ...this, and strengthen first param from
6260 (hook_constcharptr_const_rtx_null): Rename to...
6261 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
6262 first param from const_rtx to const rtx_insn *.
6263 (hook_bool_rtx_int_false): Rename to...
6264 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
6265 param from rtx to rtx_insn *.
6266 (hook_void_rtx_int): Rename to...
6267 (hook_void_rtx_insn_int): ...this, and strengthen first param from
6270 * hooks.h (hook_bool_rtx_true): Rename to...
6271 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
6273 (hook_bool_rtx_int_false): Rename to...
6274 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
6275 param from rtx to rtx_insn *.
6276 (hook_void_rtx_int): Rename to...
6277 (hook_void_rtx_insn_int): ...this, and strengthen first param from
6279 (hook_constcharptr_const_rtx_null): Rename to...
6280 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
6281 first param from const_rtx to const rtx_insn *.
6283 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
6284 and local "prev" from rtx to rtx_insn *.
6286 * sched-int.h (sched_speculate_insn): Strengthen first param from
6289 * sel-sched.c (create_speculation_check): Likewise for local "label".
6290 * targhooks.c (default_invalid_within_doloop): Strengthen param
6291 "insn" from const_rtx to const rtx_insn *.
6292 * targhooks.h (default_invalid_within_doloop): Strengthen param
6293 from const_rtx to const rtx_insn *.
6295 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
6296 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
6298 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
6300 (arc_invalid_within_doloop): Likewise, with const.
6302 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
6303 (arm_cannot_copy_insn_p): Likewise for param "insn".
6304 (arm_unwind_emit): Likewise.
6306 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
6309 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
6310 (c6x_variable_issue): Likewise. Removed now-redundant checked
6312 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
6314 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
6315 Likewise for param "insn".
6316 (epiphany_mode_after): Likewise.
6317 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
6318 params "insn", "dep_insn".
6319 (epiphany_mode_needed): Likewise for param "insn".
6320 (epiphany_mode_after): Likewise.
6322 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
6323 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
6324 (ix86_avx_u128_mode_needed): Likewise.
6325 (ix86_i387_mode_needed): Likewise.
6326 (ix86_mode_needed): Likewise.
6327 (ix86_avx_u128_mode_after): Likewise.
6328 (ix86_mode_after): Likewise.
6329 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
6330 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
6331 (ix86_adjust_priority): Likewise for param "insn".
6332 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
6333 (do_dispatch): Likewise.
6334 (has_dispatch): Likewise.
6335 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
6337 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
6338 reflect renaming of default hook implementation from
6339 hook_constcharptr_const_rtx_null to
6340 hook_constcharptr_const_rtx_insn_null.
6341 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
6343 (ia64_variable_issue): Likewise for param "insn".
6344 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
6345 (ia64_dfa_new_cycle): Likewise.
6346 (ia64_get_insn_spec_ds): Likewise.
6347 (ia64_get_insn_checked_ds): Likewise.
6348 (ia64_speculate_insn): Likewise.
6349 (ia64_gen_spec_check): Likewise for params "insn", "label".
6350 (ia64_asm_unwind_emit): Likewise for param "insn".
6352 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
6354 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
6356 (m68k_sched_variable_issue): Likewise for param "insn".
6358 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
6361 * config/microblaze/microblaze.c (microblaze_adjust_cost):
6362 Likewise for params "insn", "dep".
6364 * config/mips/mips.c (mips_adjust_cost): Likewise.
6365 (mips_variable_issue): Likewise for param "insn".
6366 (mips_final_postscan_insn): Likewise.
6368 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
6369 for params "insn", "dep".
6371 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
6373 (pa_adjust_priority): Likewise for param "insn".
6375 * config/picochip/picochip.c (picochip_sched_adjust_cost):
6376 Likewise for params "insn", "dep_insn".
6378 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
6380 (rs6000_variable_issue): Likewise.
6381 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
6382 (rs6000_debug_adjust_cost): Likewise.
6383 (rs6000_adjust_priority): Likewise for param "insn".
6384 (rs6000_use_sched_lookahead_guard): Likewise.
6385 (get_next_active_insn): Likewise for return type and both params.
6386 (redefine_groups): Likewise for params "prev_head_insn", "tail"
6387 and locals "insn", "next_insn".
6388 (pad_groups): Likewise.
6390 * config/s390/s390.c (s390_adjust_priority): Likewise for param
6392 (s390_cannot_copy_insn_p): Likewise.
6393 (s390_sched_variable_issue): Likewise for third param, eliminating
6395 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
6396 default hook implementation from hook_constcharptr_const_rtx_null
6397 to hook_constcharptr_const_rtx_insn_null.
6399 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
6400 from rtx to rtx_insn *.
6401 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
6402 (sh_variable_issue): Likewise for param "insn".
6403 (sh_dfa_new_cycle): Likewise.
6404 (sh_mode_needed): Likewise.
6405 (sh_mode_after): Likewise.
6407 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
6408 params "insn", "dep_insn".
6409 (hypersparc_adjust_cost): Likewise.
6410 (sparc_adjust_cost): Likewise.
6412 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
6413 param, eliminated checked cast.
6414 (spu_sched_adjust_cost): Likewise for first and third params.
6416 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
6417 params "insn" and "dep_insn" from rtx to rtx_insn *.
6419 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
6421 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6423 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
6424 (set_is_load_p): ...this, updating to work on a SET pattern rather
6426 (is_store_insn): Rename to...
6427 (set_is_store_p): ...this, updating to work on a SET pattern
6428 rather than an insn.
6429 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
6430 top of function to where it is needed. Rewrite the bogus
6431 condition that checks for "insn" and "dep" being PARALLEL to
6432 instead use single_set, introducing locals "insn_set" and
6433 "dep_set". Given that we only ever returned "cost" for a non-pair
6434 of SETs, bail out early if we don't have a pair of SET.
6435 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
6436 use the new locals "insn_set" and "dep_set", and update calls to
6437 is_load_insn and is_store_insn to be calls to set_is_load_p and
6440 2014-08-27 Guozhi Wei <carrot@google.com>
6443 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
6444 amount before using it.
6446 2014-08-27 Richard Biener <rguenther@suse.de>
6448 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
6449 get_maxval_strlen inside a more useful API.
6450 (gimple_fold_builtin_with_strlen): Remove and fold into ...
6451 (gimple_fold_builtin): ... caller.
6452 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
6453 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
6454 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
6455 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
6456 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
6457 gimple_fold_builtin_sprintf): Adjust to compute maxval
6460 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
6463 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
6465 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6466 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6467 Anna Tikhonova <anna.tikhonova@intel.com>
6468 Ilya Tocar <ilya.tocar@intel.com>
6469 Andrey Turetskiy <andrey.turetskiy@intel.com>
6470 Ilya Verbin <ilya.verbin@intel.com>
6471 Kirill Yukhin <kirill.yukhin@intel.com>
6472 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6474 * config/i386/sse.md
6475 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
6476 Use `concat_tg_mode' attribute to determine asm register size.
6478 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6479 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6480 Anna Tikhonova <anna.tikhonova@intel.com>
6481 Ilya Tocar <ilya.tocar@intel.com>
6482 Andrey Turetskiy <andrey.turetskiy@intel.com>
6483 Ilya Verbin <ilya.verbin@intel.com>
6484 Kirill Yukhin <kirill.yukhin@intel.com>
6485 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6487 * config/i386/sse.md
6488 (define_mode_iterator VI48_AVX512VL): New.
6489 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
6490 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
6491 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
6492 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6493 with VI1): Change mode iterator.
6494 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6495 with VI_ULOADSTORE_BW_AVX512VL): New.
6496 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6497 with VI_ULOADSTORE_F_AVX512VL): Ditto.
6498 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6499 with VI1): Change mode iterator.
6500 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6501 with VI_ULOADSTORE_BW_AVX512VL): New.
6502 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6503 with VI_ULOADSTORE_F_AVX512VL): Ditto.
6504 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
6505 with VI1): Change mode iterator.
6506 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
6507 with VI_ULOADSTORE_BW_AVX512VL): New.
6508 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
6509 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
6510 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
6511 (define_insn "<avx512>_storedqu<mode>_mask" with
6512 VI48_AVX512VL): New.
6513 (define_insn "<avx512>_storedqu<mode>_mask" with
6514 VI12_AVX512VL): Ditto.
6516 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6517 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6518 Anna Tikhonova <anna.tikhonova@intel.com>
6519 Ilya Tocar <ilya.tocar@intel.com>
6520 Andrey Turetskiy <andrey.turetskiy@intel.com>
6521 Ilya Verbin <ilya.verbin@intel.com>
6522 Kirill Yukhin <kirill.yukhin@intel.com>
6523 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6525 * config/i386/sse.md
6526 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
6527 (define_mode_iterator VI48_AVX512BW): New.
6528 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
6529 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
6530 with VI48_AVX2_48_AVX512F): New.
6531 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
6532 with VI2_AVX512VL): Ditto.
6534 2014-08-27 Richard Biener <rguenther@suse.de>
6537 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
6538 (fold_builtin_3): Do not fold strcat_chk here.
6539 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
6541 (gimple_fold_builtin): Fold strcat_chk here.
6543 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
6545 * dwarf2out.h (dwarf2out_decl): Remove prototype.
6546 * dwarf2out.c (dwarf2out_decl): Make static.
6548 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
6550 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
6552 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6554 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
6555 from rtx to rtx_insn *.
6556 (cselib_lookup_from_insn): Likewise for final param.
6557 (cselib_subst_to_values_from_insn): Likewise.
6558 (cselib_add_permanent_equiv): Likewise.
6560 * cselib.c (cselib_current_insn): Likewise for this variable.
6561 (cselib_subst_to_values_from_insn): Likewise for param "insn".
6562 (cselib_lookup_from_insn): Likewise.
6563 (cselib_add_permanent_equiv): Likewise for param "insn" and local
6564 "save_cselib_current_insn".
6565 (cselib_process_insn): Replace use of NULL_RTX with NULL.
6567 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
6568 from rtx to rtx_insn *.
6570 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6572 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
6575 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6577 * df.h (df_dump_insn_problem_function): Strengthen first param of
6578 this callback from const_rtx to const rtx_insn *.
6579 (struct df_insn_info): Strengthen field "insn" from rtx to
6581 (DF_REF_INSN): Eliminate this function, reinstating the older
6583 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
6584 (df_reg_defined): Likewise.
6585 (df_find_use): Likewise.
6586 (df_reg_used): Likewise.
6587 (df_dump_insn_top): Strengthen param 1 from const_rtx to
6589 (df_dump_insn_bottom): Likewise.
6590 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
6591 (df_insn_debug_regno): Likewise.
6592 (debug_df_insn): Likewise.
6593 (df_rd_simulate_one_insn): Likewise for param 2.
6594 (df_word_lr_simulate_defs): Likewise for param 1.
6595 (df_word_lr_simulate_uses): Likewise.
6596 (df_md_simulate_one_insn): Likewise for param 2.
6597 (df_simulate_find_noclobber_defs): Likewise for param 1.
6598 (df_simulate_find_defs): Likewise.
6599 (df_simulate_defs): Likewise.
6600 (df_simulate_uses): Likewise.
6601 (df_simulate_one_insn_backwards): Likewise for param 2.
6602 (df_simulate_one_insn_forwards): Likewise.
6603 (df_uses_create): Likewise for param 2.
6604 (df_insn_create_insn_record): Likewise for param 1.
6605 (df_insn_delete): Likewise.
6606 (df_insn_rescan): Likewise.
6607 (df_insn_rescan_debug_internal): Likewise.
6608 (df_insn_change_bb): Likewise.
6609 (df_notes_rescan): Likewise.
6610 * rtl.h (remove_death): Likewise for param 2.
6611 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
6613 * sched-int.h (reemit_notes): Strengthen param from rtx to
6615 * valtrack.h (propagate_for_debug): Likewise for param 1.
6617 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
6618 local "tmp_rtx" from const_rtx to const rtx_insn *.
6619 * combine.c (remove_death): Strengthen param "insn" from rtx to
6621 (move_deaths): Likewise for local "where_dead".
6622 * cse.c (delete_trivially_dead_insns): Introduce local
6623 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
6624 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
6626 (df_reg_defined): Likewise.
6627 (df_find_use): Likewise.
6628 (df_reg_used): Likewise.
6629 (df_dump_insn_problem_data): Strengthen param "insn" from
6630 const_rtx to const rtx_insn *.
6631 (df_dump_insn_top): Likewise.
6632 (df_dump_insn_bottom): Likewise.
6633 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
6634 (df_insn_debug_regno): Likewise.
6635 (debug_df_insn): Likewise.
6636 (DF_REF_INSN): Delete.
6637 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
6638 from rtx to rtx_insn *.
6639 (df_chain_insn_top_dump): Strengthen param "insn" from
6640 const_rtx to const rtx_insn *.
6641 (df_chain_insn_bottom_dump): Likewise.
6642 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
6644 (df_word_lr_simulate_uses): Likewise.
6645 (df_print_note): Likewise.
6646 (df_remove_dead_and_unused_notes): Likewise.
6647 (df_set_unused_notes_for_mw): Likewise.
6648 (df_set_dead_notes_for_mw): Likewise.
6649 (df_create_unused_note): Likewise.
6650 (df_simulate_find_defs): Likewise.
6651 (df_simulate_find_uses): Likewise.
6652 (df_simulate_find_noclobber_defs): Likewise.
6653 (df_simulate_defs): Likewise.
6654 (df_simulate_uses): Likewise.
6655 (df_simulate_one_insn_backwards): Likewise.
6656 (df_simulate_one_insn_forwards): Likewise.
6657 (df_md_simulate_one_insn): Likewise.
6658 * df-scan.c (df_uses_create): Likewise.
6659 (df_insn_create_insn_record): Likewise.
6660 (df_insn_delete): Likewise.
6661 (df_insn_rescan): Likewise.
6662 (df_insn_rescan_debug_internal): Likewise.
6663 (df_insn_change_bb): Likewise.
6664 (df_notes_rescan): Likewise.
6665 (df_refs_add_to_chains): Likewise.
6666 (df_insn_refs_verify): Likewise.
6667 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
6668 when invoking df_insn_delete.
6669 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
6670 (set_unique_reg_note): Add checked cast.
6671 * final.c (cleanup_subreg_operands): Likewise.
6672 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
6673 "insn" from rtx to rtx_insn *.
6674 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
6675 "last" from rtx to rtx_insn *.
6676 * ira-emit.c (change_regs_in_insn): New function.
6677 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
6678 Invoke change_regs_in_insn rather than change_regs.
6679 * ira.c (update_equiv_regs): Strengthen locals "insn",
6680 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
6681 for_each_rtx_in_insn rather than for_each_rtx.
6682 * recog.c (confirm_change_group): Add checked casts.
6683 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
6685 (peep2_fill_buffer): Add checked cast.
6686 * rtlanal.c (remove_note): Likewise.
6687 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
6688 locals "next" "end" from rtx to rtx_insn *.
6690 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6692 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
6694 (struct reg_use_data): Likewise for field "insn".
6695 (insn_cost): Likewise for param.
6696 (real_insn_for_shadow): Likewise for return type and param.
6697 (increase_insn_priority): Likewise for param 1.
6698 (debug_dependencies): Likewise for both params.
6700 * haifa-sched.c (insn_delay): Likewise for param "insn".
6701 (real_insn_for_shadow): Likewise for return type and param "insn".
6702 (update_insn_after_change): Likewise for param "insn".
6703 (recompute_todo_spec): Likewise for param "next" and locals "pro",
6705 (insn_cost): Likewise for param "insn".
6706 (increase_insn_priority): Likewise.
6707 (calculate_reg_deaths): Likewise.
6708 (setup_insn_reg_pressure_info): Likewise.
6709 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
6710 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
6711 (model_recompute): Likewise.
6712 (must_restore_pattern_p): Likewise for param "next".
6713 (model_excess_cost): Likewise for param "insn".
6714 (queue_remove): Likewise.
6715 (adjust_priority): Likewise for param "prev".
6716 (update_register_pressure): Likewise for param "insn".
6717 (setup_insn_max_reg_pressure): Likewise for local "insn".
6718 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
6719 (model_add_to_schedule): Likewise.
6720 (model_reset_queue_indices): Likewise for local "insn".
6721 (unschedule_insns_until): Strengthen local "recompute_vec" from
6722 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
6723 "con" from rtx to rtx_insn *.
6724 (restore_last_backtrack_point): Likewise for both locals "x". Add
6726 (estimate_insn_tick): Likewise for param "insn".
6727 (commit_schedule): Likewise for params "prev_head", "tail" and
6729 (verify_shadows): Likewise for locals "i1", "i2".
6730 (dump_insn_stream): Likewise for params "head", "tail" and locals
6731 "next_tail", "insn".
6732 (schedule_block): Likewise for locals "insn", "x". Add a checked
6734 (fix_inter_tick): Likewise for params "head", "tail".
6735 (create_check_block_twin): Likewise for local "jump".
6736 (haifa_change_pattern): Likewise for param "insn".
6737 (haifa_speculate_insn): Likewise.
6738 (dump_new_block_header): Likewise for params "head", "tail".
6739 (fix_jump_move): Likewise for param "jump".
6740 (move_block_after_check): Likewise.
6741 (sched_init_insn_luid): Likewise for param "insn".
6742 (sched_init_luids): Likewise for local "insn".
6743 (insn_luid): Likewise for param "insn".
6744 (init_h_i_d): Likewise.
6745 (haifa_init_h_i_d): Likewise for local "insn".
6746 (haifa_init_insn): Likewise for param "insn".
6747 * sched-deps.c (add_dependence): Likewise for local "real_pro",
6749 (create_insn_reg_use): Likewise for param "insn".
6750 (setup_insn_reg_uses): Likewise. Add a checked cast.
6751 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
6752 "tail" from rtx to rtx_insn *.
6753 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
6754 "insn", "next_tail".
6756 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6758 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
6759 from rtx to rtx_insn *.
6760 (model_add_to_schedule): Likewise for locals "start", "end",
6763 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6765 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
6767 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
6768 "to" and locals "insn", "next", "copy". Remove now-redundant
6771 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6773 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
6774 rtx_insn * and param 4 from rtx * to rtx_insn **.
6775 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
6776 param 2 from rtx * to rtx_insn **.
6778 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
6779 rtx_insn * and final param from rtx * to rtx_insn **.
6781 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
6782 from rtx to rtx_insn *.
6783 (try_head_merge_bb): Likewise for both locals named "move_upto".
6784 * df-problems.c (can_move_insns_across): Likewise for params
6785 "from", "to", "across_from", "across_to" and locals "insn",
6786 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
6788 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
6789 from rtx to rtx_insn *.
6790 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
6791 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
6792 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
6794 (noce_try_abs): Likewise.
6795 (noce_get_condition): Likewise for param "jump". Strengthen param
6796 "earliest" from rtx * to rtx_insn **.
6797 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
6799 (find_cond_trap): Likewise.
6800 (dead_or_predicable): Likewise for local "earliest".
6801 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
6803 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
6804 and local "prev". Strengthen param "earliest" from rtx * to
6806 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
6807 Strengthen param "earliest" from rtx * to rtx_insn **.
6809 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6811 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
6812 "to" and local "insn" from rtx to rtx_insn *.
6814 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6816 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
6817 from rtx to rtx_insn *.
6818 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
6819 (code_motion_path_driver): Likewise for local "last_insn".
6820 (simplify_changed_insns): Likewise for local "insn".
6822 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6824 * rtl.h (push_to_sequence): Strengthen param from rtx to
6826 (push_to_sequence2): Likewise for both params.
6827 (delete_insns_since): Likewise for param.
6828 (reorder_insns_nobb): Likewise for all three params.
6829 (set_new_first_and_last_insn): Likewise for both params.
6831 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
6832 rtx_insn *. Remove now-redundant cast.
6833 (set_last_insn): Likewise.
6835 * builtins.c (expand_builtin_return): Strengthen local
6836 "call_fusage" from rtx to rtx_insn *.
6837 * cfgrtl.c (create_basic_block_structure): Likewise for local
6839 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
6840 "first", "last" and local "insn".
6841 (delete_insns_since): Likewise for param "from".
6842 (reorder_insns_nobb): Likewise for params "from", "to", "after"
6844 (push_to_sequence): Likewise for param "first" and local "last".
6845 (push_to_sequence2): Likewise for params "first" and "last".
6846 * lra.c (emit_add3_insn): Likewise for local "last".
6847 (lra_emit_add): Likewise.
6848 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
6850 (process_address_1): Likewise for locals "insn", last".
6851 * modulo-sched.c (ps_first_note): Likewise for return type.
6852 * optabs.c (expand_binop_directly): Likewise for param "last".
6854 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6856 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
6858 * emit-rtl.c (get_last_insn_anywhere): Likewise.
6860 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6862 * function.h (struct sequence_stack): Strengthen fields "first"
6863 and "last" from rtx to rtx_insn *.
6864 (struct emit_status): Likewise for fields "x_first_insn" and
6867 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
6868 (set_first_insn): Add checked cast.
6869 (get_last_insn): Remove now-redundant checked cast.
6870 (set_last_insn): Add checked cast.
6872 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
6873 "saved_first" and "saved_last" from rtx to rtx_insn *.
6875 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6877 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
6878 (unlink_insn_chain): Strengthen both params from rtx to
6881 * cfgrtl.c (cfg_layout_function_header): Likewise for this
6883 (unlink_insn_chain): Likewise for params "first" and "last".
6884 Remove now-redundant checked cast.
6885 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
6886 (fixup_reorder_chain): Strengthen local "insn" from rtx to
6888 * emit-rtl.c (link_insn_into_chain): Likewise for all three
6890 (add_insn): Likewise for param "insn" and local "prev".
6891 (add_insn_after_nobb): Likewise for both params and local "next".
6892 (add_insn_before_nobb): Likewise for both params and local "prev".
6893 (add_insn_after): Rename param "after" to "uncast_after",
6894 introducing local "after" with another checked cast.
6895 (add_insn_before): Rename params "insn" and "before", giving them
6896 "uncast_" prefixes, adding the old names back using checked casts.
6897 (emit_note_after): Likewise for param "after".
6898 (emit_note_before): Likewise for param "before".
6899 (emit_label): Add a checked cast.
6901 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6903 * cselib.h (cselib_record_sets_hook): Strengthen initial param
6904 "insn" from rtx to rtx_insn *.
6906 * cselib.c (cselib_record_sets_hook): Likewise.
6908 * var-tracking.c (add_with_sets): Likewise, renaming back from
6909 "uncast_insn" to "insn" and eliminating the checked cast from rtx
6912 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6914 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
6915 and "header_" from rtx to rtx_insn *.
6916 (struct basic_block_d): Likewise for field "head_" within "x"
6917 field of union basic_block_il_dependent.
6918 (BB_HEAD): Drop function...
6919 (SET_BB_HEAD): ...and this function in favor of...
6920 (BB_HEAD): ...reinstate macro.
6921 (BB_END): Drop function...
6922 (SET_BB_END): ...and this function in favor of...
6923 (BB_END): ...reinstate macro.
6924 (BB_HEADER): Drop function...
6925 (SET_BB_HEADER): ...and this function in favor of...
6926 (BB_HEADER): ...reinstate macro.
6928 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
6929 (fix_crossing_unconditional_branches): Likewise.
6930 * caller-save.c (save_call_clobbered_regs): Likewise.
6931 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
6932 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
6933 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
6934 (merge_blocks_move_successor_nojumps): Likewise.
6935 (outgoing_edges_match): Update use of for_each_rtx to
6936 for_each_rtx_in_insn.
6937 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
6938 (expand_gimple_cond): Likewise.
6939 (expand_gimple_tailcall): Likewise.
6940 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
6942 (construct_exit_block): Drop use of SET_BB_END.
6943 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
6945 (delete_insn): Rename param "insn" to "uncast_insn", introducing
6946 a new local "insn" with a checked cast to rtx_insn *. Drop use of
6947 SET_BB_HEAD and SET_BB_END.
6948 (create_basic_block_structure): Drop use of SET_BB_HEAD and
6950 (rtl_delete_block): Drop use of SET_BB_HEAD.
6951 (rtl_split_block): Drop use of SET_BB_END.
6952 (emit_nop_for_unique_locus_between): Likewise.
6953 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
6954 (block_label): Drop use of SET_BB_HEAD.
6955 (fixup_abnormal_edges): Drop use of SET_BB_END.
6956 (record_effective_endpoints): Drop use of SET_BB_HEADER.
6957 (relink_block_chain): Likewise.
6958 (fixup_reorder_chain): Drop use of SET_BB_END.
6959 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
6960 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
6961 rtx_insn **. Drop use of SET_BB_HEADER.
6962 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
6964 (BB_HEAD): Delete this function.
6965 (SET_BB_HEAD): Likewise.
6967 (SET_BB_END): Likewise.
6968 (BB_HEADER): Likewise.
6969 (SET_BB_HEADER): Likewise.
6970 * emit-rtl.c (add_insn_after): Rename param "insn" to
6971 "uncast_insn", adding a new local "insn" and a checked cast to
6972 rtx_insn *. Drop use of SET_BB_END.
6973 (remove_insn): Strengthen locals "next" and "prev" from rtx to
6974 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
6975 (reorder_insns): Drop use of SET_BB_END.
6976 (emit_insn_after_1): Strengthen param "first" and locals "last",
6977 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
6978 (emit_pattern_after_noloc): Add checked cast.
6979 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
6980 (restore_other_notes): Likewise.
6981 (move_insn): Likewise.
6982 (sched_extend_bb): Likewise.
6983 (fix_jump_move): Likewise.
6984 * ifcvt.c (noce_process_if_block): Likewise.
6985 (dead_or_predicable): Likewise.
6986 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
6987 * reg-stack.c (change_stack): Drop use of SET_BB_END.
6988 * sel-sched-ir.c (sel_move_insn): Likewise.
6989 * sel-sched.c (move_nop_to_previous_block): Likewise.
6991 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
6993 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
6995 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6997 * basic-block.h (create_basic_block_structure): Strengthen params
6998 1 "head" and 2 "end" from rtx to rtx_insn *.
6999 * cfgrtl.c (create_basic_block_structure): Likewise.
7000 (rtl_create_basic_block): Update casts from void * to rtx to
7001 rtx_insn *, so that we can pass them as rtx_insn * to
7002 create_basic_block_structure.
7003 * sel-sched-ir.c (sel_create_basic_block): Likewise.
7005 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7007 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
7009 (check_for_inc_dec): Strengthen param "insn" from rtx to
7012 * cselib.h (cselib_process_insn): Likewise.
7014 * cselib.c (cselib_record_sets): Likewise.
7015 (cselib_process_insn): Likewise.
7017 * dse.c (struct insn_info): Likewise for field "insn".
7018 (check_for_inc_dec_1): Likewise for local "insn".
7019 (check_for_inc_dec): Likewise for param "insn".
7020 (scan_insn): Likewise.
7021 (dse_step1): Likewise for local "insn".
7023 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
7024 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
7026 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7028 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
7029 from rtx to rtx_insn *.
7030 (DEP_PRO): Delete this function and...
7031 (SET_DEP_PRO): ...this function in favor of...
7032 (DEP_PRO): ...reinstate this macro.
7033 (DEP_CON): Delete this function and...
7034 (SET_DEP_CON): ...this function in favor of...
7035 (DEP_CON): ...reinstate this old macro.
7036 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
7037 (init_dep): Likewise.
7038 (set_priorities): Likewise for both params.
7039 (sd_copy_back_deps): Likewise for params 1 and 2.
7041 * haifa-sched.c (priority): Likewise for param "insn" and local
7043 (set_priorities): Likewise for params "head" and "tail" and local
7045 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
7047 (add_to_speculative_block): Add a checked cast.
7048 (create_check_block_twin): Drop use of SET_DEP_CON.
7049 (add_jump_dependencies): Strengthen params "insn" and "jump" from
7052 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
7053 Drop use of SET_DEP_PRO
7054 (init_dep): Strengthen params "pro" and "con" from rtx to
7056 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
7060 (SET_DEP_PRO): Delete.
7061 (SET_DEP_CON): Delete.
7063 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7065 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
7066 from rtx to rtx_insn *.
7067 (VINSN_INSN_RTX): Eliminate rvalue function and...
7068 (SET_VINSN_INSN): ...lvalue function in favor of...
7069 (VINSN_INSN_RTX): reinstate this old macro.
7071 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
7072 in favor of VINSN_INSN_RTX.
7073 (VINSN_INSN_RTX): Delete this function.
7074 (SET_VINSN_INSN_RTX): Likewise.
7076 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7078 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
7079 (BND_TO): Delete this function and...
7080 (SET_BND_TO): ...this functions in favor of...
7081 (BND_TO): ...reinstating this macro.
7082 (struct _fence): Strengthen field "executing_insns" from
7083 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
7084 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
7085 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
7086 and param "insn" from rtx to insn_t.
7087 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
7090 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
7092 (rtx_vec_t): Likewise.
7093 (struct sched_deps_info_def): Strengthen param of "start_insn"
7094 callback from rtx to rtx_insn *. Likewise for param "insn2" of
7095 "note_mem_dep" callback and first param of "note_dep" callback.
7097 * haifa-sched.c (add_to_speculative_block): Strengthen param
7098 "insn" from rtx to rtx_insn *.
7099 (clear_priorities): Likewise.
7100 (calc_priorities): Likewise for local "insn".
7102 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
7103 Remove redundant checked cast.
7104 (haifa_note_mem_dep): Likewise for param "pending_insn".
7105 (haifa_note_dep): Likewise for param "elem".
7106 (note_mem_dep): Likewise for param "e".
7107 (sched_analyze_1): Add checked casts.
7108 (sched_analyze_2): Likewise.
7110 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
7111 from rtx to rtx_insn *.
7112 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
7113 from vec<rtx> * to vec<rtx_insn *> *.
7115 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
7117 (flist_add): Strengthen param "executing_insns" from
7118 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
7119 (advance_deps_context): Remove now-redundant checked cast.
7120 (init_fences): Replace uses of NULL_RTX with NULL.
7121 (merge_fences): Strengthen params "last_scheduled_insn" and
7122 "sched_next" from rtx to rtx_insn * and "executing_insns" from
7123 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
7124 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
7125 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
7126 an instruction, rather than doing double-duty as a pattern.
7127 (return_nop_to_pool): Update for change of insn_t.
7128 (deps_init_id): Remove now-redundant checked cast.
7129 (struct sched_scan_info_def): Strengthen param of "init_insn"
7130 callback from rtx to insn_t.
7131 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
7132 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
7134 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
7135 "end" from rtx to rtx_insn *.
7136 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
7137 (rtx insn_rtx, bool force_unique_p)
7138 (BND_TO): Delete function.
7139 (SET_BND_TO): Delete function.
7141 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
7143 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
7144 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
7146 (undo_transformations): Likewise for param "insn".
7147 (update_liveness_on_insn): Likewise.
7148 (compute_live_below_insn): Likewise for param "insn" and local
7150 (update_data_sets): Likewise for param "insn".
7151 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
7152 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
7153 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
7155 (move_cond_jump): Likewise for param "insn".
7156 (move_cond_jump): Drop use of SET_BND_TO.
7157 (compute_av_set_on_boundaries): Likewise.
7158 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
7159 (update_and_record_unavailable_insns): Strengthen local "bb_end"
7160 from rtx to rtx_insn *.
7161 (maybe_emit_renaming_copy): Likewise for param "insn".
7162 (maybe_emit_speculative_check): Likewise.
7163 (handle_emitting_transformations): Likewise.
7164 (remove_insn_from_stream): Likewise.
7165 (code_motion_process_successors): Strengthen local "succ" from rtx
7168 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7170 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
7171 ilist_t, not _xlist_t;
7172 (ILIST_INSN): Define in terms of new union field "insn".
7173 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
7175 (struct _list_node): Add new field "insn" to the union, of type
7177 (ilist_add): Replace macro with an inline function, requiring an
7179 (ilist_remove): Define this macro directly in terms of
7180 _list_remove, rather than indirectly via _xlist_remove.
7181 (ilist_clear): Likewise, in terms of _list_clear rather than
7183 (ilist_is_in_p): Replace macro with an inline function, requiring
7185 (_list_iter_cond_insn): New function.
7186 (ilist_iter_remove): Define this macro directly in terms of
7187 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
7188 (ilist_iterator): Define directly in terms of _list_iterator
7189 rather than indirectly through _xlist_iterator.
7190 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
7191 than in terms of _FOR_EACH_X.
7192 (FOR_EACH_INSN_1): Likewise.
7194 2014-08-26 Joseph Myers <joseph@codesourcery.com>
7198 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
7199 DECL_HARD_REGISTER and return for invalid register specifications.
7200 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
7201 DECL_HARD_REGISTER, call expand_one_error_var.
7202 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
7203 CC_REGNUM with non-MODE_CC modes.
7204 (arm_regno_class): Return NO_REGS for PC_REGNUM.
7206 2014-08-26 Marek Polacek <polacek@redhat.com>
7209 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
7211 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
7213 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
7214 qi cost; add di cost.
7215 (cortexa57_addrcost_table): Likewise.
7217 2014-08-26 Marek Polacek <polacek@redhat.com>
7220 * expr.c (is_aligning_offset): Remove logical not.
7222 2014-08-26 Marek Polacek <polacek@redhat.com>
7225 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
7226 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
7228 2014-08-26 Richard Biener <rguenther@suse.de>
7230 PR tree-optimization/62175
7231 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
7232 expand possibly trapping operations.
7234 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7236 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
7237 "insn" from rtx to rtx_insn *.
7238 (permute_load): Likewise for param "insn".
7239 (permute_store): Likewise.
7240 (handle_special_swappables): Likewise for local "insn".
7241 (replace_swap_with_copy): Likewise for locals "insn" and
7243 (rs6000_analyze_swaps): Likewise for local "insn".
7245 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7247 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
7250 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7252 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
7253 "note_list" from rtx to rtx_insn *.
7254 (BB_NOTE_LIST): Replace this function and...
7255 (SET_BB_NOTE_LIST): ...this function with...
7256 (BB_NOTE_LIST): ...the former macro implementation.
7258 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
7259 local "from_start" from rtx to rtx_insn *. Strengthen param
7260 "to_endp" from rtx * to rtx_insn **.
7262 * haifa-sched.c (concat_note_lists): Likewise.
7263 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
7265 (sel_restore_notes): Likewise.
7266 (move_bb_info): Likewise.
7267 (BB_NOTE_LIST): Delete this function.
7268 (SET_BB_NOTE_LIST): Delete this function.
7269 * sel-sched.c (create_block_for_bookkeeping): Eliminate
7270 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
7272 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7274 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
7275 from rtx * to rtx_insn **.
7276 (reorder2): Likewise.
7277 (dependencies_evaluation_hook): Strengthen params "head", "tail"
7278 from rtx to rtx_insn *.
7280 * doc/tm.texi: Update mechanically for above change to target.def.
7282 * sched-int.h (note_list): Strengthen this variable from rtx to
7284 (remove_notes): Likewise for both params.
7285 (restore_other_notes): Likewise for return type and first param.
7286 (struct ready_list): Strengthen field "vec" from rtx * to
7288 (struct dep_replacement): Strenghten field "insn" from rtx to
7290 (struct deps_desc): Likewise for fields "last_debug_insn",
7292 (struct haifa_sched_info): Likewise for callback field
7293 "can_schedule_ready_p"'s param, for first param of "new_ready"
7294 callback field, for both params of "rank" callback field, for
7295 first field of "print_insn" callback field (with a const), for
7296 both params of "contributes_to_priority" callback, for param
7297 of "insn_finishes_block_p" callback, for fields "prev_head",
7298 "next_tail", "head", "tail", for first param of "add_remove_insn"
7299 callback, for first param of "begin_schedule_ready" callback, for
7300 both params of "begin_move_insn" callback, and for second param
7301 of "advance_target_bb" callback.
7302 (add_dependence): Likewise for params 1 and 2.
7303 (sched_analyze): Likewise for params 2 and 3.
7304 (deps_analyze_insn): Likewise for param 2.
7305 (ready_element): Likewise for return type.
7306 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
7307 (try_ready): Strenghten param from rtx to rtx_insn *.
7308 (sched_emit_insn): Likewise for return type.
7309 (record_delay_slot_pair): Likewise for params 1 and 2.
7310 (add_delay_dependencies): Likewise for param.
7311 (contributes_to_priority): Likewise for both params.
7312 (find_modifiable_mems): Likewise.
7314 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
7315 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
7316 "first_older_only_insn" from rtx to rtx_insn *.
7317 (arm_sched_reorder): Strengthen param "ready" from rtx * to
7320 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
7321 "last_scheduled_iter0" from rtx to rtx_insn *.
7322 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
7323 (c6x_sched_reorder_1): Strengthen param "ready" and locals
7324 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
7325 "insn" from rtx to rtx_insn *.
7326 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
7328 (c6x_sched_reorder2): Strengthen param "ready" and locals
7329 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
7330 "insn" from rtx to rtx_insn *.
7331 (c6x_variable_issue): Add a checked cast when assigning from insn
7332 to ss.last_scheduled_iter0.
7333 (split_delayed_branch): Strengthen param "insn" and local "i1"
7334 from rtx to rtx_insn *.
7335 (split_delayed_nonbranch): Likewise.
7336 (undo_split_delayed_nonbranch): Likewise for local "insn".
7337 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
7338 "entry_after", "end_packet", "head_insn", "tail_insn",
7339 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
7340 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
7341 to rtx_insn **. Remove now-redundant checked cast on last_insn,
7342 but add a checked cast on loop->start_label. Consolidate calls to
7343 avoid assigning result of gen_spkernel to "insn", now an
7346 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
7347 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
7349 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
7350 rtx_insn **. Strengthen locals "top", "next" from rtx to
7352 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
7353 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
7354 (add_parameter_dependencies): Strengthen params "call", "head" and
7355 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
7356 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
7357 (add_dependee_for_func_arg): Likewise for param "arg" and local
7359 (ix86_dependencies_evaluation_hook): Likewise for params "head",
7360 "tail" and locals "insn", "first_arg".
7362 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
7363 for params "head", "tail" and locals "insn", "next", "next_tail".
7364 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
7365 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
7366 "insn", "lowest", "highest" from rtx to rtx_insn *.
7367 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
7369 (ia64_sched_reorder2): Likewise.
7371 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
7372 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
7373 from rtx * to rtx_insn **.
7374 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
7376 (mep_print_sched_insn): Strengthen param "insn" from rtx to
7378 (mep_sched_reorder): Strengthen param "ready" from rtx * to
7379 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
7382 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
7383 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
7385 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
7386 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
7387 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
7389 (vr4130_reorder): Likewise.
7390 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
7392 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
7394 (mips_sched_reorder): Likewise.
7395 (mips_sched_reorder2): Likewise.
7397 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
7399 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
7400 Strengthen local "tmp" from rtx to rtx_insn *.
7401 (rs6000_sched_reorder2): Likewise.
7403 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
7404 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
7405 (s390_sched_reorder): Strengthen param "ready" from rtx * to
7406 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
7408 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
7409 "tmp2" from rtx to rtx_insn *.
7410 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
7411 Strengthen local "insn" from rtx to rtx_insn *.
7412 (ready_reorder): Strengthen param "ready" from rtx * to
7413 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
7414 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
7415 (sh_reorder2): Likewise.
7417 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
7418 local "insn" from rtx to rtx_insn *.
7420 * haifa-sched.c (note_list): Strengthen this variable from rtx to
7422 (scheduled_insns): Strengthen this variable from vec<rtx> to
7424 (set_modulo_params): Likewise for locals "i1", "i2".
7425 (record_delay_slot_pair): Likewise for params "i1", "i2".
7426 (add_delay_dependencies): Likewise for param "insn".
7427 (cond_clobbered_p): Likewise.
7428 (recompute_todo_spec): Likewise for local "prev".
7429 (last_scheduled_insn): Likewise for this variable.
7430 (nonscheduled_insns_begin): Likewise.
7431 (model_set_excess_costs): Strengthen param "insns" from rtx * to
7433 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
7435 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
7436 Strengthen local "insn" from rtx to rtx_insn *.
7437 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
7438 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
7439 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
7440 (ready_remove_first): Likewise for return type and local "t".
7441 (ready_element): Likewise for return type.
7442 (ready_remove): Likewise for return type and local "t".
7443 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
7444 (check_clobbered_conditions): Strengthen local "x" from rtx to
7445 rtx_insn *, adding a checked cast.
7446 (schedule_insn): Likewise for param "insn".
7447 (remove_notes): Likewise for params "head", "tail" and locals
7448 "next_tail", "insn", "next".
7449 (struct haifa_saved_data): Likewise for fields
7450 "last_scheduled_insn", "nonscheduled_insns_begin".
7451 (save_backtrack_point): Update for change to field "vec" of
7453 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
7455 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
7456 from rtx to rtx_insn *
7457 (resolve_dependencies): Strengthen param "insn" from rtx to
7459 (restore_other_notes): Likewise for return type, for param "head"
7460 and local "note_head".
7461 (undo_all_replacements): Likewise for local "insn".
7462 (first_nonscheduled_insn): Likewise for return type and local "insn".
7463 (queue_to_ready): Likewise for local "insn", adding checked casts.
7464 (early_queue_to_ready): Likewise for local "insn".
7465 (debug_ready_list_1): Strengthen local "p" from rtx * to
7467 (move_insn): Strengthen param "insn" and local "note" from rtx to
7469 (insn_finishes_cycle_p): Likewise for param "insn".
7470 (max_issue): Likewise for local "insn".
7471 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
7473 (commit_schedule): Strengthen param "prev_head" and local "insn"
7474 from rtx to rtx_insn *
7475 (prune_ready_list): Likewise for local "insn".
7476 (schedule_block): Likewise for locals "prev_head", "head", "tail",
7477 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
7478 (set_priorities): Likewise for local "prev_head".
7479 (try_ready): Likewise for param "next".
7480 (fix_tick_ready): Likewise.
7481 (change_queue_index): Likewise.
7482 (sched_extend_ready_list): Update for change to field "vec" of
7484 (generate_recovery_code): Strengthen param "insn" from rtx to
7486 (begin_speculative_block): Likewise.
7487 (create_check_block_twin): Likewise for param "insn" and locals
7488 "label", "check", "twin". Introduce local "check_pat" to avoid
7489 "check" being used as a plain rtx before being used as an insn.
7490 (fix_recovery_deps): Add a checked cast to rtx_insn * when
7491 extracting elements from ready_list.
7492 (sched_remove_insn): Strengthen param "insn" from rtx to
7494 (sched_emit_insn): Likewise for return type.
7495 (ready_remove_first_dispatch): Likewise for return type and local
7498 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
7500 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
7503 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
7504 from rtx to rtx_insn *.
7505 (add_dependence_list): Likewise for param "insn". Add a checked
7507 (add_dependence_list_and_free): Strengthen param "insn" from rtx
7508 to rtx_insn *. Strengthen param "list_p" from rtx * to
7510 (chain_to_prev_insn): Strengthen param "insn" and locals
7511 "prec_nonnote", "i" from rtx to rtx_insn *.
7512 (flush_pending_lists): Likewise for param "insn".
7513 (cur_insn): Likewise for this variable.
7514 (haifa_start_insn): Add a checked cast.
7515 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
7516 (sched_analyze_reg): Likewise for param "insn".
7517 (sched_analyze_1): Likewise.
7518 (sched_analyze_2): Likewise. Add checked casts.
7519 (sched_analyze_insn): Likewise. Also for local "prev".
7520 (deps_analyze_insn): Likewise for param "insn".
7521 (sched_analyze): Likewise for params "head", "tail" and local "insn".
7522 (add_dependence_1): Likewise for params "insn", "elem".
7523 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
7524 (parse_add_or_inc): Likewise for param "insn".
7525 (find_inc): Likewise for local "inc_cand".
7526 (find_modifiable_mems): Likewise for params "head", "tail" and
7527 locals "insn", "next_tail".
7529 * sched-ebb.c (init_ready_list): Likewise for local "insn".
7530 (begin_schedule_ready): Likewise for param "insn".
7531 (begin_move_insn): Likewise for params "insn" and "last".
7532 (ebb_print_insn): Strengthen param "insn" from const_rtx to
7534 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
7535 (ebb_contributes_to_priority): Likewise for params "next", "insn".
7536 (ebb_add_remove_insn): Likewise for param "insn".
7537 (advance_target_bb): Likewise.
7539 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
7541 (check_live): Likewise for param "insn".
7542 (init_ready_list): Likewise for local "insn".
7543 (can_schedule_ready_p): Likewise for param "insn".
7544 (begin_schedule_ready): Likewise.
7545 (new_ready): Likewise for param "next".
7546 (rgn_print_insn): Likewise for param "insn".
7547 (rgn_rank): Likewise for params "insn1", "insn2".
7548 (contributes_to_priority): Likewise for params "next", "insn".
7549 (rgn_insn_finishes_block_p): Likewise for param "insn".
7550 (add_branch_dependences): Likewise for params "head", "tail" and
7551 locals "insn", "last".
7552 (rgn_add_remove_insn): Likewise for param "insn".
7553 (advance_target_bb): Likewise.
7555 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
7556 const_rtx to const rtx_insn *.
7558 * sel-sched-dump.h (sel_print_insn): Likewise.
7560 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
7561 (deps_init_id): Likewise.
7563 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
7564 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
7567 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7569 * output.h (final_start_function): Strengthen param 1 from rtx to
7572 * final.c (final_start_function): Likewise, renaming back from
7573 "uncast_first" to "first", and dropping the checked cast from rtx
7576 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7578 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
7579 * final.c (final): Likewise. Rename param back from
7580 "uncast_first" to "first" and eliminate the checked cast from rtx
7583 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7585 * output.h (shorten_branches): Strengthen param from rtx to
7588 * final.c (shorten_branches): Likewise, renaming param back from
7589 "uncast_first" to "first", and dropping the checked cast from rtx
7592 * genattr.c (gen_attr): Likewise when writing out the prototype of
7595 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7597 * sched-int.h (struct haifa_sched_info): Strengthen fields
7598 "prev_head" and "next_tail" from rtx to rtx_insn *.
7600 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7602 * rtl.h (rtx_jump_table_data::get_labels): New method.
7603 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
7604 with use of the new rtx_jump_table_data::get_labels method.
7605 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
7606 to rtx_jump_table_data *. Simplify by using get_labels method.
7607 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
7608 a dyn_cast, introducing local "table", using it to replace
7609 label-lookup logic with a get_labels method call.
7610 (patch_jump_insn): Simplify using get_labels method.
7611 * dwarf2cfi.c (create_trace_edges): Likewise.
7612 * rtlanal.c (label_is_jump_target_p): Likewise.
7614 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7616 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
7619 * emit-rtl.c (unshare_all_rtl_1): Likewise.
7620 (unshare_all_rtl_again): Likewise, also for local "p".
7622 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7624 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
7626 * cfgrtl.c (delete_insn_and_edges): Likewise.
7628 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7630 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
7631 from rtx to rtx_insn *.
7633 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
7635 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7637 * function.c (thread_prologue_and_epilogue_insns): Likewise for
7638 locals "returnjump", "epilogue_end", "insn", "next".
7640 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
7641 "returnjump" from rtx * to rtx_insn **.
7642 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
7644 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7646 * basic-block.h (struct edge_def). Strengthen "r" within
7647 union edge_def_insns from rtx to rtx_insn *.
7649 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
7650 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
7652 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
7653 from rtx to rtx_insn *.
7654 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
7656 * postreload-gcse.c (reg_killed_on_edge): Likewise.
7657 (reg_used_on_edge): Likewise.
7658 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
7659 (gt_pch_nx): New overload for rtx_insn *&.
7660 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
7661 from rtx to rtx_insn *.
7663 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7665 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
7666 from rtx to rtx_insn *.
7667 (BB_FOOTER): Replace function with access macro.
7668 (SET_BB_FOOTER): Delete.
7670 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
7672 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
7673 (emit_barrier_after_bb): Likewise.
7674 (record_effective_endpoints): Likewise.
7675 (relink_block_chain): Likewise.
7676 (fixup_fallthru_exit_predecessor): Likewise.
7677 (cfg_layout_duplicate_bb): Likewise.
7678 (cfg_layout_split_block): Likewise.
7679 (cfg_layout_delete_block): Likewise.
7680 (cfg_layout_merge_blocks): Likewise.
7681 (BB_FOOTER): Delete function.
7682 (SET_BB_FOOTER): Delete function.
7683 * combine.c (update_cfg_for_uncondjump): Replace uses of
7684 SET_BB_FOOTER with BB_FOOTER.
7686 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7688 * except.h (struct eh_landing_pad_d): Strengthen field
7689 "landing_pad" from rtx to rtx_code_label *.
7691 * except.c (sjlj_emit_dispatch_table): Likewise for param
7693 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
7695 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7697 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
7698 first param from rtx to rtx_insn *.
7699 * config/xtensa/xtensa.c (struct machine_function): Likewise for
7700 field "set_frame_ptr_insn".
7701 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
7702 "csend" from rtx to rtx_code_label *.
7703 (xtensa_expand_atomic): Likewise for local "csloop".
7704 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
7706 (xtensa_call_tls_desc): Likewise for return type and locals
7707 "call_insn", "insns".
7708 (xtensa_legitimize_tls_address): Likewise for local "insns".
7709 (xtensa_expand_prologue): Likewise for locals "insn", "first".
7711 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7713 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
7714 first param from rtx to rtx_insn *.
7715 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
7718 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7720 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
7721 Strengthen param 1 from rtx to rtx_insn *.
7722 (tilepro_output_cbranch): Likewise.
7723 (tilepro_adjust_insn_length): Likewise.
7724 (tilepro_final_prescan_insn): Likewise for sole param.
7726 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
7727 Likewise for local "last".
7728 (cbranch_predicted_p): Likewise for param "insn".
7729 (tilepro_output_simple_cbranch_with_opcode): Likewise.
7730 (tilepro_output_cbranch_with_opcode): Likewise.
7731 (tilepro_output_cbranch): Likewise.
7732 (frame_emit_load): Likewise for return type and locals "seq",
7734 (emit_sp_adjust): Likewise for return type and local "insn".
7735 (tilepro_expand_epilogue): Likewise for locals "last_insn",
7737 (tilepro_adjust_insn_length): Likewise for param "insn".
7738 (next_insn_to_bundle): Likewise for return type and params
7740 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
7741 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
7743 (match_addli_pcrel): Likewise for param "insn".
7744 (replace_addli_pcrel): Likewise.
7745 (match_auli_pcrel): Likewise.
7746 (replace_auli_pcrel): Likewise.
7747 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
7749 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
7750 "queue", "next_queue", "prev".
7751 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
7752 (tilepro_final_prescan_insn): Likewise for param "insn".
7754 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7756 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
7757 Strengthen param 1 from rtx to rtx_insn *.
7758 (tilegx_output_cbranch): Likewise.
7759 (tilegx_adjust_insn_length): Likewise.
7760 (tilegx_final_prescan_insn): Likewise for sole param.
7762 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
7764 (cbranch_predicted_p): Likewise for param "insn".
7765 (tilegx_output_simple_cbranch_with_opcode): Likewise.
7766 (tilegx_output_cbranch_with_opcode): Likewise.
7767 (tilegx_output_cbranch): Likewise.
7768 (frame_emit_load): Likewise for return type.
7769 (set_frame_related_p): Likewise for locals "seq", "insn".
7770 (emit_sp_adjust): Likewise for return type, and for local "insn".
7771 Introduce local "pat" for use in place of "insn" where the latter
7772 isn't an instruction.
7773 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
7774 from rtx to rtx_insn *.
7775 (tilegx_adjust_insn_length): Likewise for param "insn".
7776 (next_insn_to_bundle): Likewise for return type and params "r" and
7778 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
7780 (replace_insns): Likewise for params "old_insn", "new_insns".
7781 (replace_mov_pcrel_step1): Likewise for param "insn" and local
7783 (replace_mov_pcrel_step2): Likewise.
7784 (replace_mov_pcrel_step3): Likewise.
7785 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
7787 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
7788 "queue", "next_queue", "prev".
7789 (tilegx_output_mi_thunk): Likewise for local "insn".
7790 (tilegx_final_prescan_insn): Likewise for param "insn".
7792 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7794 * config/spu/spu.c (frame_emit_store): Strengthen return type from
7796 (frame_emit_load): Likewise.
7797 (frame_emit_add_imm): Likewise, also for local "insn".
7798 (spu_expand_prologue): Likewise for local "insn".
7799 (struct spu_bb_info): Likewise for field "prop_jump".
7800 (emit_nop_for_insn): Likewise for param "insn" and local
7802 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
7804 (spu_emit_branch_hint): Likewise for params "before", "branch" and
7805 locals "hint", "insn".
7806 (get_branch_target): Likewise for param "branch".
7807 (insn_clobbers_hbr): Likewise for param "insn".
7808 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
7809 locals "insn", "before_4", "before_16".
7810 (insert_hbrp): Likewise for local "insn".
7811 (spu_machine_dependent_reorg): Likewise for locals "branch",
7812 "insn", "next", "bbend".
7813 (uses_ls_unit): Likewise for param "insn".
7814 (get_pipe): Likewise.
7815 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
7816 introducing a checked cast.
7817 (spu_sched_adjust_cost): Likewise for params "insn" and
7819 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
7820 (spu_sms_res_mii): Likewise.
7822 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7824 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
7825 from rtx to rtx_insn *.
7826 (output_cbranch): Likewise for param 6.
7827 (output_return): Likewise for param 1.
7828 (output_sibcall): Likewise.
7829 (output_v8plus_shift): Likewise.
7830 (output_v8plus_mult): Likewise.
7831 (output_v9branch): Likewise for param 7.
7832 (output_cbcond): Likewise for param 3.
7834 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
7836 (sparc_legitimize_pic_address): Likewise.
7837 (sparc_emit_call_insn): Likewise.
7838 (emit_save_or_restore_regs): Likewise.
7839 (emit_window_save): Likewise for return type and local "insn".
7840 (sparc_expand_prologue): Likewise for local "insn".
7841 (sparc_flat_expand_prologue): Likewise.
7842 (output_return): Likewise for param "insn".
7843 (output_sibcall): Likewise for param "insn" and local "delay".
7844 (output_ubranch): Likewise for param "insn".
7845 (output_cbranch): Likewise.
7846 (output_cbcond): Likewise.
7847 (output_v9branch): Likewise.
7848 (output_v8plus_shift): Likewise.
7849 (sparc_output_mi_thunk): Likewise for local "insn".
7850 (get_some_local_dynamic_name): Likewise.
7851 (output_v8plus_mult): Likewise for param "insn".
7853 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7855 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
7856 from rtx to rtx_insn *.
7857 (output_branchy_insn): Likewise for param 3.
7858 (output_far_jump): Likewise for param 1.
7859 (final_prescan_insn): Likewise.
7860 (sh_insn_length_adjustment): Likewise for sole param.
7862 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
7863 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
7865 (sh_emit_compare_and_set): Likewise for local "lab".
7866 (output_far_jump): Strengthen param "insn" and local "prev" from
7868 (output_branchy_insn): Likewise for param "insn" and local
7870 (output_ieee_ccmpeq): Likewise for param "insn".
7871 (struct label_ref_list_d): Strengthen field "label" from rtx to
7873 (pool_node): Likewise.
7874 (pool_window_label): Likewise for this global.
7875 (add_constant): Likewise for return type and locals "lab", "new_rtx".
7876 (dump_table): Strengthen params "start", "barrier" and local
7877 "scan" from rtx to rtx_insn *.
7878 (broken_move): Likewise for param "insn".
7879 (untangle_mova): Likewise for params "first_mova" and "new_mova".
7880 Strengthen param "first_mova" from rtx * to rtx_insn **.
7881 (mova_p): Likewise for param "insn".
7882 (fixup_mova): Likewise for param "mova".
7883 (find_barrier): Likewise for return type, params "mova" and
7884 "from", and locals "barrier_before_mova", "found_barrier",
7885 "good_barrier", "orig", "last_symoff", "next". Strengthen local
7886 "label" from rtx to rtx_code_label *.
7887 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
7889 (sh_reorg): Likewise for locals "link", "scan", "barrier".
7890 (split_branches): Likewise for param "first" and local "insn".
7891 (final_prescan_insn): Likewise for param "insn".
7892 (sequence_insn_p): Likewise for locals "prev", "next".
7893 (sh_insn_length_adjustment): Likewise for param "insn".
7894 (sh_can_redirect_branch): Likewise for local "insn".
7895 (find_r0_life_regions): Likewise for locals "end", "insn".
7896 (sh_output_mi_thunk): Likewise for local "insns".
7898 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7900 * config/score/score.c (score_output_mi_thunk): Strengthen local
7901 "insn" from rtx to rtx_insn *.
7902 (score_prologue): Likewise.
7904 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7906 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
7907 1 from rtx to rtx_insn *.
7908 (s390_emit_jump): Likewise for return type.
7909 (s390_emit_call): Likewise.
7910 (s390_load_got): Likewise.
7912 * config/s390/s390.c (last_scheduled_insn): Likewise for this
7914 (s390_match_ccmode): Likewise for param "insn".
7915 (s390_emit_jump): Likewise for return type.
7916 (s390_split_branches): Likewise for local "label".
7917 (struct constant): Strengthen field "label" from rtx to
7919 (struct constant_pool): Likewise for field "label". Strengthen
7920 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
7922 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
7924 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
7925 (s390_end_pool): Likewise.
7926 (s390_dump_pool): Likewise for local "insn".
7927 (s390_mainpool_start): Likewise.
7928 (s390_chunkify_start): Likewise.
7929 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
7930 with insns. Strengthen locals "label", "jump", "barrier", "next",
7931 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
7932 (s390_chunkify_finish): Strengthen local "insn" from rtx to
7934 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
7935 "jump", "label", "next_insn".
7936 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
7937 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
7939 (s390_load_got): Likewise for return type and local "insns".
7940 (s390_save_gprs_to_fprs): Likewise for local "insn".
7941 (s390_restore_gprs_from_fprs): Likewise.
7942 (pass_s390_early_mach::execute): Likewise.
7943 (s390_emit_prologue): Likewise for local "insns".
7944 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
7946 (s390_emit_call): Strengthen return type and local "insn" from
7948 (s390_emit_tpf_eh_return): Likewise for local "insn".
7949 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
7950 "next_insn", introducing locals "s_pat", "rpat" to allow this.
7951 (s390_fix_long_loop_prediction): Likewise for param "insn" and
7953 (s390_non_addr_reg_read_p): Likewise for param "insn".
7954 (find_cond_jump): Likewise for return type and param "insn".
7955 (s390_swap_cmp): Likewise for param "insn".
7956 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
7957 "prev_insn", "next_insn".
7958 (s390_reorg): Likewise for locals "insn", "target".
7959 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
7960 (s390_sched_variable_issue): For now, rename param "insn" to
7961 "uncast_insn", introducing a checked cast.
7962 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
7964 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
7965 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
7967 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7969 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
7970 param from rtx to rtx_insn *.
7971 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
7973 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7975 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
7976 4 from rtx to rtx_insn *.
7977 (rs6000_final_prescan_insn): Likewise for first param.
7978 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
7980 (rs6000_get_some_local_dynamic_name): Likewise.
7981 (output_cbranch): Likewise for param "insn".
7982 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
7983 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
7984 (rs6000_emit_allocate_stack): Likewise for local "insn".
7985 (load_cr_save): Likewise.
7986 (restore_saved_cr): Likewise.
7987 (restore_saved_lr): Likewise.
7988 (emit_cfa_restores): Likewise.
7989 (rs6000_output_function_epilogue): Likewise for locals "insn" and
7990 "deleted_debug_label".
7991 (rs6000_output_mi_thunk): Likewise for local "insn".
7992 (rs6000_final_prescan_insn): Likewise for param "insn".
7994 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7996 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
7997 Strengthen param "insn" from rtx to rtx_insn *.
7998 * config/picochip/picochip.c (picochip_current_prescan_insn):
7999 Likewise for this variable.
8000 (picochip_final_prescan_insn): Likewise for param "insn".
8002 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8004 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
8005 from rtx to rtx_insn *.
8006 (pa_output_indirect_call): Likewise.
8007 (pa_adjust_insn_length): Likewise.
8008 (pa_attr_length_millicode_call): Likewise.
8009 (pa_attr_length_call): Likewise.
8010 (pa_attr_length_indirect_call): Likewise.
8012 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
8014 (pa_attr_length_millicode_call): Likewise.
8015 (pa_attr_length_call): Likewise.
8016 (pa_output_call): Likewise.
8017 (pa_attr_length_indirect_call): Likewise.
8018 (pa_output_indirect_call): Likewise.
8020 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8022 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
8023 Strengthen first param from rtx to rtx_insn *.
8024 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
8027 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8029 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
8030 type from rtx to rtx_insn *.
8031 (mips_expand_call): Likewise.
8032 (mips_adjust_insn_length): Likewise for first param.
8033 (mips_output_conditional_branch): Likewise.
8034 (mips_output_order_conditional_branch): Likewise.
8035 (mips_final_prescan_insn): Likewise.
8037 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
8038 rtx_insn * for the SEQUENCE case.
8039 (SEQ_END): Likewise.
8040 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
8041 (mips_emit_call_insn): Likewise, also for local "insn".
8042 (mips16_gp_pseudo_reg): Likewise for local "scan".
8043 (mips16_build_call_stub): Likewise for return type and for local
8044 "insn". Introduce a new local "pattern" so that "insn" can indeed
8046 (mips_expand_call): Strengthen return type and local "insn" from
8048 (mips_block_move_loop): Strengthen local "label" from rtx to
8050 (mips_expand_synci_loop): Likewise for locals "label",
8052 (mips_set_frame_expr): Strengthen local "insn" from rtx to
8054 (mips16e_collect_argument_saves): Likewise for locals "insn",
8056 (mips_find_gp_ref): Likewise for param of callback for "pred"
8057 param, and for local "insn".
8058 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
8059 (mips_insn_has_flexible_gp_ref_p): Likewise.
8060 (mips_epilogue_emit_cfa_restores): Likewise for return type and
8062 (mips_epilogue_set_cfa): Likewise for local "insn".
8063 (mips_expand_epilogue): Likewise.
8064 (mips_adjust_insn_length): Likewise for param "insn".
8065 (mips_output_conditional_branch): Likewise.
8066 (mips_output_order_conditional_branch): Likewise.
8067 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
8068 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
8069 "falu2_turn_enabled_insn".
8070 (mips_builtin_branch_and_move): Strengthen locals "true_label",
8071 "done_label" from rtx to rtx_code_label *.
8072 (struct mips16_constant): Likewise for field "label".
8073 (mips16_add_constant): Likewise for return type.
8074 (mips16_emit_constants_1): Strengthen return type and param "insn"
8075 from rtx to rtx_insn *.
8076 (mips16_emit_constants): Likewise for param "insn".
8077 (mips16_insn_length): Likewise.
8078 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
8079 to rtx_code_label *.
8080 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
8081 from rtx to rtx_insn *.
8082 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
8083 "jump". Strengthen local "label" from rtx to rtx_code_label *.
8084 (r10k_simplify_address): Strengthen param "insn" and local
8085 "def_insn" from rtx to rtx_insn *.
8086 (r10k_safe_address_p): Strengthen param "insn" from rtx to
8088 (r10k_needs_protection_p_1): Update target type of cast of data
8089 from to rtx to rtx_insn *.
8090 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
8091 rtx * to rtx_insn **.
8092 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
8094 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
8095 (mips_call_expr_from_insn): Likewise for param "insn".
8096 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
8097 (mips_find_pic_call_symbol): Likewise for param "insn".
8098 (mips_annotate_pic_calls): Likewise for local "insn".
8099 (mips_sim_insn): Likewise for this variable.
8100 (struct mips_sim): Likewise for field "insn" within elements of
8102 (mips_sim_wait_reg): Likewise for param "insn".
8103 (mips_sim_wait_regs): Likewise.
8104 (mips_sim_wait_units): Likewise.
8105 (mips_sim_wait_insn): Likewise.
8106 (mips_sim_issue_insn): Likewise.
8107 (mips_sim_finish_insn): Likewise.
8108 (mips_seq_time): Likewise for param "seq" and local "insn".
8109 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
8110 locals "first", "second".
8111 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
8112 "last", "last2", "next".
8113 (mips_avoid_hazard): Likewise for params "after", "insn".
8114 (mips_reorg_process_insns): Likewise for locals "insn",
8115 "last_insn", "subinsn", "next_insn".
8116 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
8117 (mips16_split_long_branches): Likewise for locals "insn" "jump",
8119 (mips_output_mi_thunk): Likewise for local "insn".
8120 (mips_final_prescan_insn): Likewise for param "insn".
8122 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8124 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
8125 Strengthen return type and local "insns" from rtx to rtx_insn *.
8126 (microblaze_legitimize_tls_address): Likewise for local "insns".
8127 (microblaze_block_move_loop): Strengthen local "label" from rtx
8128 to rtx_code_label *.
8129 (microblaze_expand_prologue): Strengthen two locals named "insn"
8130 from rtx to rtx_insn *.
8131 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
8132 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
8133 "insn". Strengthen locals "div_label", "div_end_label" from rtx
8134 to rtx_code_label *.
8136 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8138 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
8139 param from rtx to rtx_insn *.
8140 (mep_reuse_lo): Likewise for third param.
8141 (mep_use_post_modify_p): Likewise for first param.
8142 (mep_core_address_length): Likewise.
8143 (mep_cop_address_length): Likewise.
8144 (mep_final_prescan_insn): Likewise.
8145 (mep_store_data_bypass_p): Likewise for both params.
8146 (mep_mul_hilo_bypass_p): Likewise.
8147 (mep_ipipe_ldc_p): Likewise for param.
8149 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
8150 (mep_rewrite_mult): Likewise.
8151 (mep_rewrite_mulsi3): Likewise.
8152 (mep_rewrite_maddsi3): Likewise.
8153 (mep_reuse_lo_p_1): Likewise.
8154 (mep_reuse_lo_p): Likewise.
8155 (mep_frame_expr): Likewise.
8156 (mep_make_parallel): Likewise for both params.
8157 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
8159 (mep_use_post_modify_p): Likewise for param "insn".
8160 (mep_core_address_length): Likewise.
8161 (mep_cop_address_length): Likewise.
8162 (mep_reg_set_in_function): Likewise for local "insn".
8163 (mep_asm_without_operands_p): Likewise.
8164 (F): Likewise for return type and param "x".
8165 (add_constant): Likewise for local "insn".
8166 (maybe_dead_move): Likewise for return type and local "insn".
8167 (mep_expand_prologue): Likewise for local "insn".
8168 (mep_final_prescan_insn): Likewise for param "insn".
8169 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
8170 "next", "follow", "x".
8171 (mep_insert_repeat_label_last): Likewise for return type, param
8172 "last_insn", and locals "next", "prev". Strengthen param "label"
8173 from rtx to rtx_code_label *.
8174 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
8176 (struct mep_doloop_end): Likewise for fields "insn" and
8178 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
8179 Strengthen local "repeat_label" from rtx to rtx_code_label *.
8180 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
8182 (mep_invert_branch): Likewise for params "insn" and "after".
8183 (mep_reorg_erepeat): Likewise for param "insns" and locals
8184 "insn", "prev", "new_last", "barrier", "user". Strengthen local
8185 "l" from rtx to rtx_code_label *.
8186 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
8187 from rtx to rtx_insn *.
8188 (mep_reorg_addcombine): Likewise for param "insns" and locals
8190 (add_sp_insn_p): Likewise for param "insn".
8191 (mep_reorg_noframe): Likewise for param "insns" and locals
8192 "start_frame_insn", "end_frame_insn", "next".
8193 (mep_reorg): Likewise for local "insns".
8194 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
8196 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
8197 (mep_mul_hilo_bypass_p): Likewise.
8198 (mep_ipipe_ldc_p): Likewise for param "insn".
8199 (mep_make_bundle): Likewise for return type, param "cop" and local
8200 "insn", splitting out the latter into a new local "seq" for when it
8201 is a SEQUENCE rather than an insn.
8202 (core_insn_p): Likewise for param "insn".
8203 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
8204 "last", "first", "note", "prev", "core_insn".
8206 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8208 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
8210 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
8211 (m68k_final_prescan_insn): Likewise for first param.
8213 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
8214 (m68k_set_frame_related): Likewise for param "insn".
8215 (output_btst): Likewise for param "insn".
8216 (m68k_final_prescan_insn): Likewise.
8217 (m68k_move_to_reg): Likewise for local "insn".
8218 (m68k_call_tls_get_addr): Likewise for local "insns".
8219 (m68k_call_m68k_read_tp): Likewise.
8220 (strict_low_part_peephole_ok): Likewise for param "first_insn".
8221 (m68k_output_mi_thunk): Likewise for local "insn".
8223 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8225 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
8226 first param from rtx to rtx_insn *.
8227 (iq2000_adjust_insn_length): Likewise.
8228 (iq2000_output_conditional_branch): Likewise.
8229 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
8230 "insn" and local "nop_insn".
8231 (iq2000_annotate_frame_insn): Likewise for param "insn".
8232 (iq2000_expand_prologue): Likewise for both locals "insn".
8233 (iq2000_adjust_insn_length): Likewise for param "insn".
8234 (iq2000_output_conditional_branch): Likewise.
8236 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8238 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
8239 "insns" from rtx to rtx_insn *.
8240 (ia64_emit_cond_move): Likewise for locals "insn", "first".
8241 (struct spill_fill_data): Likewise for field "init_after" and for
8242 elements of array field "prev_insn".
8243 (spill_restore_mem): Likewise for locals "insn", "first".
8244 (do_spill): Likewise for local "insn".
8245 (do_restore): Likewise.
8246 (ia64_expand_prologue): Likewise.
8247 (ia64_expand_epilogue): Likewise.
8248 (emit_insn_group_barriers): Likewise for locals "insn",
8250 (emit_all_insn_group_barriers): Likewise for locals "insn",
8252 (dfa_stop_insn): Likewise for this global.
8253 (dfa_pre_cycle_insn): Likewise.
8254 (ia64_nop): Likewise.
8255 (final_emit_insn_group_barriers): Likewise for locals "insn",
8257 (emit_predicate_relation_info): Likewise for locals "head", "n",
8259 (ia64_reorg): Likewise for local "insn".
8260 (ia64_output_mi_thunk): Likewise.
8261 (expand_vec_perm_interleave_2): Likewise for local "seq".
8263 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8265 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
8266 param 1 "insn" from rtx to rtx_insn *.
8267 (ix86_use_lea_for_mov): Likewise.
8268 (ix86_avoid_lea_for_addr): Likewise.
8269 (ix86_split_lea_for_addr): Likewise.
8270 (ix86_lea_for_add_ok): Likewise.
8271 (ix86_output_call_insn): Likewise.
8273 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
8274 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
8275 (ix86_output_function_epilogue): Likewise for locals "insn",
8276 "deleted_debug_label".
8277 (legitimize_tls_address): Likewise for local "insn".
8278 (get_some_local_dynamic_name): Likewise.
8279 (increase_distance): Likewise for params "prev", "next".
8280 (distance_non_agu_define_in_bb): Likewise for params "insn",
8281 "start" and locals "prev", "next".
8282 (distance_non_agu_define): Likewise for param "insn".
8283 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
8284 locals "next", "prev".
8285 (distance_agu_use): Likewise for param "insn".
8286 (ix86_lea_outperforms): Likewise.
8287 (ix86_ok_to_clobber_flags): Likewise.
8288 (ix86_avoid_lea_for_add): Likewise.
8289 (ix86_use_lea_for_mov): Likewise.
8290 (ix86_avoid_lea_for_addr): Likewise.
8291 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
8292 (ix86_split_lea_for_addr): Likewise for param "insn".
8293 (ix86_lea_for_add_ok): Likewise for param "insn".
8294 (ix86_expand_carry_flag_compare): Likewise for local
8296 (ix86_expand_int_movcc): Likewise.
8297 (ix86_output_call_insn): Likewise for param "insn".
8298 (ix86_output_call_insn): Likewise for local "i".
8299 (x86_output_mi_thunk): Introduce local "insn", using it in place
8300 of "tmp" when dealing with insns.
8301 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
8303 (ix86_pad_returns): Likewise for locals "ret", "prev".
8304 (ix86_count_insn_bb): Likewise for local "insn".
8305 (ix86_pad_short_function): Likewise for locals "ret", "insn".
8306 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
8307 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
8308 (expand_vec_perm_interleave2): Likewise for local "seq".
8309 (expand_vec_perm_vperm2f128_vblend): Likewise.
8310 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
8311 call to for_each_rtx with for_each_rtx_in_insn.
8313 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8315 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
8316 "label" from rtx to rtx_code_label *.
8317 (ix86_expand_prologue): Likewise.
8318 (ix86_expand_split_stack_prologue): Likewise for locals "label",
8320 (ix86_split_idivmod): Likewise for locals "end_label" and
8322 (ix86_expand_branch): Likewise for local "label2".
8323 (ix86_expand_aligntest): Likewise for return type and local "label".
8324 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
8326 (expand_movmem_epilogue): Likewise for the various locals named
8328 (expand_setmem_epilogue): Likewise.
8329 (expand_small_movmem_or_setmem): Likewise for local "label".
8330 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
8331 Strengthen param "done_label" from rtx * to rtx_code_label **.
8332 Strengthen locals "loop_label" and "label" from rtx to
8334 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
8335 Likewise for locals "loop_label", "label".
8336 (ix86_expand_set_or_movmem): Likewise for locals "label",
8337 "jump_around_label", "hot_label".
8338 (ix86_expand_strlensi_unroll_1): Likewise for locals
8339 "align_2_label", align_3_label", "align_4_label", "end_0_label",
8341 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
8342 (void ix86_emit_i387_log1p): Likewise for locals "label1",
8343 "label2", "jump_label".
8344 (ix86_expand_sse_compare_and_jump): Likewise for return type and
8346 (ix86_expand_lfloorceil): Likewise for local "label".
8347 (ix86_expand_rint): Likewise.
8348 (ix86_expand_floorceildf_32): Likewise.
8349 (ix86_expand_floorceil): Likewise.
8350 (ix86_expand_rounddf_32): Likewise.
8351 (ix86_expand_trunc): Likewise.
8352 (ix86_expand_truncdf_32): Likewise.
8353 (ix86_expand_round): Likewise.
8355 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8357 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
8358 first param from rtx to rtx_insn *.
8359 (h8300_insn_length_from_table): Likewise.
8360 * config/h8300/h8300.c (F): Likewise for return type and param
8362 (Fpa): Add a checked cast to rtx_insn *.
8363 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
8365 (final_prescan_insn): Likewise for param "insn".
8366 (h8300_binary_length): Likewise.
8367 (h8300_insn_length_from_table): Likewise.
8369 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8371 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
8372 Strengthen first param "insn" from rtx to rtx_insn *.
8374 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
8376 (frame_insn): Likewise for return type. Introduce local "insn"
8377 for use in place of local "x" for use as an rtx_insn *.
8378 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
8379 (epiphany_expand_prologue): Likewise for local "insn".
8380 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
8381 * config/epiphany/resolve-sw-modes.c
8382 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
8385 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8387 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
8388 param from rtx to rtx_insn *.
8389 (c6x_final_prescan_insn): Likewise for first param.
8391 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
8392 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
8393 (c6x_expand_compare): Strengthen local "insns" from rtx to
8395 (c6x_get_unit_specifier): Likewise for param "insn".
8396 (c6x_print_unit_specifier_field): Likewise.
8397 (c6x_final_prescan_insn): Likewise.
8398 (emit_add_sp_const): Likewise for local "insn".
8399 (c6x_expand_prologue): Likewise.
8401 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8403 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
8404 param 1 from rtx to rtx_insn *.
8405 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
8406 the various locals named "insn".
8407 (expand_epilogue_reg_restore): Likewise.
8408 (frame_related_constant_load): Likewise.
8409 (add_to_reg): Likewise.
8410 (emit_link_insn): Likewise.
8411 (do_link): Likewise.
8412 (expand_interrupt_handler_prologue): Likewise.
8413 (branch_dest): Likewise for param "branch".
8414 (asm_conditional_branch): Likewise for param "insn".
8415 (gen_one_bundle): Likewise for elements of param "slot" and local
8417 (bfin_gen_bundles): Likewise for locals "insn", "next" and
8418 elements of local "slot".
8419 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
8420 "queue", "next_queue", "prev".
8421 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
8422 (add_sched_insns_for_speculation): Likewise for local "insn".
8424 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8426 * config/avr/avr-protos.h (output_movqi): Strengthen first param
8427 from rtx to rtx_insn *.
8428 (output_movhi): Likewise.
8429 (output_movsisf): Likewise.
8430 (avr_out_tstsi): Likewise.
8431 (avr_out_tsthi): Likewise.
8432 (avr_out_tstpsi): Likewise.
8433 (avr_out_compare): Likewise.
8434 (avr_out_compare64): Likewise.
8435 (avr_out_movpsi): Likewise.
8436 (ashlqi3_out): Likewise.
8437 (ashlhi3_out): Likewise.
8438 (ashlsi3_out): Likewise.
8439 (ashrqi3_out): Likewise.
8440 (ashrhi3_out): Likewise.
8441 (ashrsi3_out): Likewise.
8442 (lshrqi3_out): Likewise.
8443 (lshrhi3_out): Likewise.
8444 (lshrsi3_out): Likewise.
8445 (avr_out_ashlpsi3): Likewise.
8446 (avr_out_ashrpsi3): Likewise.
8447 (avr_out_lshrpsi3): Likewise.
8448 (avr_out_fract): Likewise.
8449 (avr_out_sbxx_branch): Likewise.
8450 (avr_out_round): Likewise.
8451 (avr_out_xload): Likewise.
8452 (avr_out_movmem): Likewise.
8453 (adjust_insn_length): Likewise.
8454 (avr_out_lpm): Likewise.
8455 (reg_unused_after): Likewise.
8456 (_reg_unused_after): Likewise.
8457 (avr_jump_mode): Likewise for second param.
8458 (jump_over_one_insn): Likewise for first param.
8459 (avr_final_prescan_insn): Likewise.
8460 (out_shift_with_cnt): Likewise for second param.
8462 * config/avr/avr.c (get_sequence_length): Likewise for param
8463 "insns" and local "insn".
8464 (emit_push_byte): Likewise for local "insn".
8465 (emit_push_sfr): Likewise.
8466 (avr_prologue_setup_frame): Likewise for locals "insn",
8467 "fp_plus_insns", "sp_plus_insns".
8468 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
8470 (avr_jump_mode): Likewise for param "insn".
8471 (avr_final_prescan_insn): Likewise.
8472 (avr_find_unused_d_reg): Likewise.
8473 (avr_out_lpm_no_lpmx): Likewise.
8474 (avr_out_lpm): Likewise.
8475 (avr_out_xload): Likewise.
8476 (output_movqi): Likewise.
8477 (output_movhi): Likewise.
8478 (out_movqi_r_mr): Likewise.
8479 (out_movhi_r_mr): Likewise.
8480 (out_movsi_r_mr): Likewise.
8481 (out_movsi_mr_r): Likewise.
8482 (output_movsisf): Likewise.
8483 (avr_out_load_psi): Likewise.
8484 (avr_out_store_psi): Likewise.
8485 (avr_out_movpsi): Likewise.
8486 (out_movqi_mr_r): Likewise.
8487 (avr_out_movhi_mr_r_xmega): Likewise.
8488 (out_movhi_mr_r): Likewise.
8489 (compare_condition): Likewise for param "insn" and local "next".
8490 (compare_sign_p): Likewise for param "insn".
8491 (compare_diff_p): Likewise.
8492 (compare_eq_p): Likewise.
8493 (avr_out_compare): Likewise.
8494 (avr_out_compare64): Likewise.
8495 (avr_out_tsthi): Likewise.
8496 (avr_out_tstpsi): Likewise.
8497 (avr_out_tstsi): Likewise.
8498 (out_shift_with_cnt): Likewise.
8499 (ashlqi3_out): Likewise.
8500 (ashlhi3_out): Likewise.
8501 (avr_out_ashlpsi3): Likewise.
8502 (ashlsi3_out): Likewise.
8503 (ashrqi3_out): Likewise.
8504 (ashrhi3_out): Likewise.
8505 (avr_out_ashrpsi3): Likewise.
8506 (ashrsi3_out): Likewise.
8507 (lshrqi3_out): Likewise.
8508 (lshrhi3_out): Likewise.
8509 (avr_out_lshrpsi3): Likewise.
8510 (lshrsi3_out): Likewise.
8511 (avr_out_fract): Likewise.
8512 (avr_out_round): Likewise.
8513 (avr_adjust_insn_length): Likewise.
8514 (reg_unused_after): Likewise.
8515 (_reg_unused_after): Likewise.
8516 (avr_compare_pattern): Likewise.
8517 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
8518 and locals "branch1", "branch2", "insn2", "jump".
8519 (avr_reorg): Likewise for local "insn".
8520 (avr_2word_insn_p): Likewise for param "insn".
8521 (jump_over_one_insn_p): Likewise.
8522 (avr_out_sbxx_branch): Likewise.
8523 (avr_out_movmem): Likewise.
8525 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8527 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
8528 param from rtx to rtx_insn *.
8529 (thumb1_final_prescan_insn): Likewise.
8530 (thumb2_final_prescan_insn): Likewise.
8532 * config/arm/arm.c (emit_set_insn): Strengthen return type from
8534 (struct minipool_node): Likewise for field "insn".
8535 (dump_minipool): Likewise for param "scan".
8536 (create_fix_barrier): Likewise for local "from". Strengthen local
8537 "label" from rtx to rtx_code_label *.
8538 (push_minipool_barrier): Strengthen param "insn" from rtx to
8540 (push_minipool_fix): Likewise.
8541 (note_invalid_constants): Likewise.
8542 (thumb2_reorg): Likewise for local "insn".
8543 (arm_reorg): Likewise.
8544 (thumb2_final_prescan_insn): Likewise for param
8545 "insn" and local "first_insn".
8546 (arm_final_prescan_insn): Likewise for param "insn" and locals
8547 "start_insn", "this_insn".
8548 (arm_debugger_arg_offset): Likewise for param "insn".
8549 (thumb1_emit_multi_reg_push): Likewise for return type and local
8551 (thumb1_final_prescan_insn): Likewise for param "insn".
8552 (thumb_far_jump_used_p): Likewise for local "insn".
8553 (thumb1_expand_prologue): Likewise.
8554 (arm_expand_epilogue_apcs_frame): Likewise.
8555 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
8556 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
8557 from rtx to rtx_code_label *.
8558 (arm_split_atomic_op): Likewise for local "label".
8559 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
8561 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8563 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
8564 first param from rtx to rtx_insn *.
8565 (arc_verify_short): Likewise.
8566 (arc_short_long): Likewise.
8567 (arc_need_delay): Likewise.
8569 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
8571 (arc_ccfsm_advance): Likewise for param "insn" and locals
8572 "start_insn", "this_insn".
8573 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
8574 (arc_ccfsm_post_advance): Likewise for param "insn".
8575 (arc_next_active_insn): Likewise for return type and param "insn".
8576 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
8577 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
8578 (output_short_suffix): Likewise for local "insn".
8579 (arc_final_prescan_insn): Likewise for param "insn". Remove
8580 now-redundant checked cast.
8581 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
8582 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
8583 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
8584 for use where lc_set became an insn.
8585 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
8587 (arc_get_insn_variants): Likewise for local "prev".
8588 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
8590 (arc_predicate_delay_insns): Likewise for local "insn".
8591 (arc_pad_return): Likewise for local "prev". For now, add a
8592 checked cast when extracting the insn from "final_sequence".
8593 (arc_short_long): Likewise for param "insn".
8594 (arc_need_delay): Likewise for param "insn" and local "next".
8595 (arc_label_align): Likewise for locals "prev", "next".
8597 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8599 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
8600 "insn" from rtx to rtx_insn *.
8601 (alpha_gp_save_rtx): Likewise for local "seq".
8602 (alpha_instantiate_decls): Likewise for local "top".
8603 (get_some_local_dynamic_name): Likewise for local "insn".
8604 (alpha_does_function_need_gp): Likewise.
8605 (set_frame_related_p): Likewise for return type and for locals
8607 (emit_frame_store_1): Likewise for local "insn".
8608 (alpha_expand_prologue): Likewise for locals "insn", "seq".
8609 (alpha_end_function): Likewise for local "insn".
8610 (alpha_output_mi_thunk_osf): Likewise.
8611 (alphaev4_insn_pipe): Likewise for param "insn".
8612 (alphaev5_insn_pipe): Likewise.
8613 (alphaev4_next_group): Likewise for return type and param 1
8615 (alphaev5_next_group): Likewise.
8616 (alpha_align_insns_1): Likewise for return type and param 1 of
8617 callback param "next_group", and for locals "i", "next", "prev",
8618 "where", "where2", "insn".
8620 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
8622 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
8623 rather than modifying the stmt.
8625 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8627 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
8628 cgraph_state conversion.
8630 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8632 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
8633 Strengthen local "insns" from rtx to rtx_insn *.
8634 (aarch64_set_frame_expr): Likewise for local "insn".
8635 (aarch64_save_or_restore_fprs): Likewise.
8636 (aarch64_save_or_restore_callee_save_registers): Likewise.
8637 (aarch64_expand_prologue): Likewise.
8638 (aarch64_expand_epilogue): Likewise.
8639 (aarch64_output_mi_thunk): Likewise.
8640 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
8641 "label2" from rtx to rtx_code_label *.
8642 (aarch64_split_atomic_op): Likewise for local "label".
8644 2014-08-25 Martin Liska <mliska@suse.cz>
8646 * cgraph.h (symtab_node):
8647 (bool needed_p (void)): created from decide_is_symbol_needed
8648 (bool referred_to_p (void)): created from referred_to_p
8649 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
8650 * cgraph.h (cgraph_node):
8651 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
8652 (void expand (void)): created from expand_function
8653 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
8654 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
8655 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
8656 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
8657 * cgraph.h (varpool_node):
8658 (static void add (tree decl): created from varpool_add_new_variable
8659 * cgraph.h (cgraph_edge):
8661 (void remove_caller (void)): created from cgraph_edge_remove_caller
8662 (void remove_callee (void)): created from cgraph_edge_remove_callee
8663 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
8664 created from cgraph_set_call_stmt
8665 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
8666 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
8667 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
8668 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
8669 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
8670 created from cgraph_speculative_call_info
8671 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
8672 int freq_scale, bool update_original)): created from cgraph_clone_edge
8673 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
8674 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
8675 (bool recursive_p (void)): created from cgraph_edge_recursive_p
8676 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
8677 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
8678 (static void rebuild_references (void)): created from cgraph_rebuild_references
8679 * cgraph.h (symbol_table):
8680 (create_reference): renamed from add_reference
8681 (maybe_create_reference): renamed from maybe_add_reference
8682 (void register_symbol (symtab_node *node)): new function
8683 (void clear_asm_symbols (void)): new function
8684 (void unregister (symtab_node *node)): new function
8685 (void release_symbol (cgraph_node *node, int uid)): new function
8686 (cgraph_node * allocate_cgraph_symbol (void)): new function
8687 (void initialize (void)): created from cgraph_init
8688 (symtab_node *first_symbol (void)):new function
8689 (asm_node *first_asm_symbol (void)):new function
8690 (symtab_node *first_defined_symbol (void)):new function
8691 (varpool_node *first_variable (void)):new function
8692 (varpool_node *next_variable (varpool_node *node)):new function
8693 (varpool_node *first_static_initializer (void)):new function
8694 (varpool_node *next_static_initializer (varpool_node *node)):new function
8695 (varpool_node *first_defined_variable (void)):new function
8696 (varpool_node *next_defined_variable (varpool_node *node)):new function
8697 (cgraph_node *first_defined_function (void)):new function
8698 (cgraph_node *next_defined_function (cgraph_node *node)):new function
8699 (cgraph_node *first_function (void)):new function
8700 (cgraph_node *next_function (cgraph_node *node)):new function
8701 (cgraph_node *first_function_with_gimple_body (void)):new function
8702 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
8703 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
8704 created from symtab_remove_unreachable_nodes
8705 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
8706 (void process_new_functions (void)): created from cgraph_process_new_functions
8707 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
8708 (bool output_variables (void)): created from varpool_node::output_variables
8709 (void output_asm_statements (void)): created from output_asm_statements
8710 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
8711 (void compile (void)): created from compile
8712 (void output_weakrefs (void)): created from output_weakrefs
8713 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
8714 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
8715 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
8716 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
8717 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
8718 created from cgraph_next_function_with_gimple_body
8719 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
8720 created from cgraph_remove_edge_removal_hook
8721 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
8722 created from cgraph_add_node_removal_hook
8723 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
8724 created from cgraph_remove_node_removal_hook
8725 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
8726 created from varpool_add_node_removal_hook
8727 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
8728 created from varpool_remove_node_removal_hook
8729 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
8730 created from cgraph_add_function_insertion_hook
8731 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
8732 created from cgraph_remove_function_insertion_hook
8733 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
8734 created from varpool_add_variable_insertion_hook
8735 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
8736 created from varpool_remove_variable_insertion_hook
8737 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
8738 created from cgraph_add_edge_duplication_hook
8739 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
8740 created from cgraph_remove_edge_duplication_hook
8741 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
8742 created from cgraph_add_node_duplication_hook
8743 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
8744 created from cgraph_remove_node_duplication_hook
8745 (void call_edge_removal_hooks (cgraph_edge *e)):
8746 created from cgraph_call_edge_removal_hooks
8747 (void call_cgraph_insertion_hooks (cgraph_node *node)):
8748 created from call_function_insertion_hooks
8749 (void call_cgraph_removal_hooks (cgraph_node *node)):
8750 created from cgraph_call_node_removal_hooks
8751 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
8752 created from cgraph_node::call_duplication_hooks
8753 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
8754 created from cgraph_call_edge_duplication_hooks
8755 (void call_varpool_removal_hooks (varpool_node *node)):
8756 created from varpool_call_node_removal_hooks
8757 (void call_varpool_insertion_hooks (varpool_node *node)):
8758 created from varpool_call_variable_insertion_hooks
8759 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
8760 created from insert_to_assembler_name_hash
8761 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
8762 created from unlink_from_assembler_name_hash
8763 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
8764 created from symtab_prevail_in_asm_name_hash
8765 (void symtab_initialize_asm_name_hash (void)):
8766 created from symtab_initialize_asm_name_hash
8767 (void change_decl_assembler_name (tree decl, tree name)):
8768 created from change_decl_assembler_name
8769 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
8770 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
8771 created from decl_assembler_name_hash
8772 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
8773 created from decl_assembler_name_equal
8774 (static hashval_t hash_node_by_assembler_name (const void *p)):
8775 created from hash_node_by_assembler_name
8776 (static int eq_assembler_name (const void *p1, const void *p2)):
8777 created from eq_assembler_name
8779 2014-08-25 Marek Polacek <polacek@redhat.com>
8781 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
8783 2014-08-25 Petr Murzin <petr.murzin@intel.com>
8785 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
8786 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
8787 SWI1248_AVX512BW mode iterator.
8789 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
8792 * config/sh/predicates.md (general_extend_operand): Disable
8793 TRUNCATE before reload completes.
8795 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
8797 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
8799 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
8802 * config/sh/sh.opt (musermode): Allow negative form.
8803 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
8804 targets that don't support it.
8805 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
8806 Document -mno-usermode option.
8808 2014-08-24 Kito Cheng <kito@0xlab.org>
8810 * system.h (CALLER_SAVE_PROFITABLE): Poison.
8811 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
8812 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
8813 * doc/tm.texi: Regenerate.
8815 2014-08-24 Kito Cheng <kito@0xlab.org>
8817 * ira.c: Fix typo in comment.
8819 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
8821 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
8822 Deprecate c++1y. Change language to reflect greater confidence in C++14.
8824 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
8827 * config/pa/pa.c (pa_output_function_epilogue): Don't set
8828 last_address when the current function is a thunk.
8829 (pa_asm_output_mi_thunk): When we don't have named sections or they
8830 are not being used, check that thunk can reach the stub table with a
8833 2014-08-23 David Malcolm <dmalcolm@redhat.com>
8835 * web.c (union_match_dups): Strengthen param "insn" from rtx to
8837 (pass_web::execute): Likewise for local "insn".
8839 2014-08-23 David Malcolm <dmalcolm@redhat.com>
8841 * var-tracking.c (struct micro_operation_def): Strengthen field
8842 "insn" from rtx to rtx_insn *.
8843 (struct emit_note_data_def): Likewise.
8844 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
8845 (vt_stack_adjustments): Likewise for local "insn".
8846 (adjust_insn): Likewise for param "insn".
8847 (val_store): Likewise.
8848 (val_resolve): Likewise.
8849 (struct count_use_info): Likewise for field "insn".
8850 (log_op_type): Likewise for param "insn".
8851 (reverse_op): Likewise.
8852 (prepare_call_arguments): Likewise.
8853 (add_with_sets): The initial param takes an insn, but we can't
8854 yet strengthen it from rtx to rtx_insn * since it's used as a
8855 cselib_record_sets_hook callback. For now rename initial param
8856 from "insn" to "uncast_insn", and introduce a local "insn" of
8857 the stronger rtx_insn * type, with a checked cast.
8858 (compute_bb_dataflow): Strengthen local "insn" from rtx to
8860 (emit_note_insn_var_location): Likewise.
8861 (emit_notes_for_changes): Likewise.
8862 (emit_notes_for_differences): Likewise.
8863 (next_non_note_insn_var_location): Likewise for return type and
8865 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
8866 (vt_initialize): Likewise for local "insn".
8867 (delete_debug_insns): Likewise for locals "insn" and "next".
8869 2014-08-23 David Malcolm <dmalcolm@redhat.com>
8871 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
8873 (mark_constant_pool): Likewise for local "insn".
8875 2014-08-23 David Malcolm <dmalcolm@redhat.com>
8877 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
8879 (dead_debug_promote_uses): Likewise.
8880 (dead_debug_insert_temp): Likewise.
8882 2014-08-23 David Malcolm <dmalcolm@redhat.com>
8884 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
8885 from const_rtx to const rtx_insn *.
8886 (store_killed_after): Likewise. Strengthen locals "last", "act"
8887 from rtx to rtx_insn *.
8888 (store_killed_before): Strengthen param "insn" from const_rtx to
8889 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
8890 (find_moveable_store): Strengthen param "insn" from rtx to
8892 (compute_store_table): Likewise for local "insn".
8893 (insert_insn_start_basic_block): Likewise for param "insn" and
8894 locals "prev", "before", "insn".
8895 (insert_store): For now, add a checked cast to rtx_insn * on the
8896 result of gen_move_insn.
8897 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
8899 (replace_store_insn): Likewise. For now, add a checked cast to
8900 rtx_insn * on the result of gen_move_insn.
8902 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8904 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
8906 (expand_sjlj_dispatch_table): Likewise.
8908 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8910 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
8911 "insn" from rtx to rtx_insn *.
8913 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8915 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
8916 "insn" from rtx to rtx_insn *.
8917 (dup_block_and_redirect): Likewise for param 3 "before".
8919 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
8920 from rtx to rtx_insn *.
8921 (move_insn_for_shrink_wrap): Likewise.
8922 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
8923 (dup_block_and_redirect): Likewise for param "before" and local
8925 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
8927 (convert_to_simple_return): Likewise for local "start".
8929 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
8930 Strengthen local "insn" from rtx to rtx_insn *, for use when
8931 invoking requires_stack_frame_p.
8933 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8935 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
8937 (speculate_expr): Likewise for locals "orig_insn_rtx",
8939 (eq_transformed_insns): Likewise for locals "i1", "i2".
8940 (check_for_new_jump): Likewise for return type and local "end".
8941 (find_new_jump): Likewise for return type and local "jump".
8942 (sel_split_edge): Likewise for local "jump".
8943 (sel_create_recovery_block): Likewise.
8944 (sel_redirect_edge_and_branch_force): Likewise.
8945 (sel_redirect_edge_and_branch): Likewise.
8947 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8949 * sel-sched.c (substitute_reg_in_expr): Strengthen local
8950 "new_insn" from rtx to rtx_insn *.
8951 (create_insn_rtx_with_rhs): Likewise for return type and for local
8953 (create_insn_rtx_with_lhs): Likewise.
8954 (create_speculation_check): Likewise for local "insn_rtx".
8955 (implicit_clobber_conflict_p): Likewise for local "insn".
8956 (get_expr_cost): Likewise.
8957 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
8958 (move_cond_jump): Likewise for locals "next", "prev", "link",
8959 "head", "from", "to".
8961 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8963 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
8964 "next" from rtx to rtx_insn *.
8965 (find_conditional_protection): Likewise for local "next".
8966 (is_conditionally_protected): Likewise for local "insn1".
8967 (is_pfree): Likewise for locals "insn1", "insn2".
8969 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8971 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
8972 from rtx to rtx_insn *.
8974 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
8975 locals "insn1", "insn2" from rtx to rtx_insn *.
8976 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
8977 locals "insn", "prev", "last_jump", "next_tail".
8978 (schedule_ebb): Likewise for params "head", "tail".
8979 (schedule_ebbs): Likewise for locals "tail", "head".
8981 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
8982 to rtx_insn on "last_insn" in one of the invocations of
8985 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8987 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
8988 "elem", "insn" from rtx to rtx_insn *.
8989 (change_spec_dep_to_hard): Likewise.
8990 (get_back_and_forw_lists): Likewise for local "con".
8991 (sd_add_dep): Likewise for locals "elem", "insn".
8992 (sd_resolve_dep): Likewise for locals "pro", "con".
8993 (sd_unresolve_dep): Likewise.
8994 (sd_delete_dep): Likewise.
8995 (chain_to_prev_insn): Likewise for local "pro".
8996 (find_inc): Likewise for locals "pro", "con".
8998 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9000 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
9002 (reg_set_between_p): Strengthen local "insn" from const_rtx to
9004 (modified_between_p): Strengthen local "insn" from rtx to
9006 (remove_reg_equal_equiv_notes_for_regno): Likewise.
9007 (keep_with_call_p): Strengthen local "i2" from const_rtx to
9010 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9012 * resource.c (next_insn_no_annul): Strengthen local "next" from
9014 (mark_referenced_resources): Likewise for local "insn".
9016 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9018 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
9020 (find_reloads): Likewise for param 1.
9021 (subst_reloads): Likewise for sole param.
9022 (find_equiv_reg): Likwise for param 2.
9023 (regno_clobbered_p): Likwise for param 2.
9024 (reload): Likewise for param 1.
9026 * caller-save.c (save_call_clobbered_regs): Strengthen local
9027 "insn" from rtx to rtx_insn *.
9028 (insert_one_insn): Likewise for local "insn".
9030 * reload.c (this_insn): Likewise for this global.
9031 (find_reloads): Likewise for param "insn".
9032 (find_reloads_toplev): Likewise.
9033 (find_reloads_address): Likewise.
9034 (subst_reg_equivs): Likewise.
9035 (update_auto_inc_notes): Likewise.
9036 (find_reloads_address_1): Likewise.
9037 (find_reloads_subreg_address): Likewise.
9038 (subst_reloads): Likewise.
9039 (find_equiv_reg): Likewise, also for local "p".
9040 (regno_clobbered_p): Likewise for param "insn".
9042 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
9044 (spill_reg_store): Likewise for the elements of this array.
9045 (remove_init_insns): Likewise for local "equiv_insn".
9046 (will_delete_init_insn_p): Likewise for param "insn".
9047 (reload): Likewise for param ""first" and local "insn".
9048 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
9050 (calculate_elim_costs_all_insns): Likewise.
9051 (delete_caller_save_insns): Likewise.
9052 (spill_failure): Likewise for param "insn".
9053 (delete_dead_insn): Likewise.
9054 (set_label_offsets): Likewise.
9055 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
9057 (elimination_costs_in_insn): Likewise for param "insn".
9058 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
9059 when referring to an insn.
9060 (set_initial_label_offsets): Likewise.
9061 (set_offsets_for_label): Strengthen param "insn" from rtx to
9063 (init_eliminable_invariants): Likewise for param "first" and local
9065 (fixup_eh_region_note): Likewise for param "insn".
9066 (reload_as_needed): Likewise for locals "prev", "insn",
9067 "old_next", "old_prev", "next".
9068 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
9070 (reload_inheritance_insn): Strengthen elements of this array from
9072 (failed_reload): Likewise for param "insn".
9073 (choose_reload_regs): Likewise for local "insn". Replace use of
9074 NULL_RTX with NULL when referring to an insn.
9075 (input_reload_insns): Strengthen elements of this array from rtx
9077 (other_input_address_reload_insns): Likewise for this global.
9078 (other_input_reload_insns): Likewise for this global.
9079 (input_address_reload_insns): Likwise for the elements of this
9081 (inpaddr_address_reload_insns): Likwise for the elements of this
9083 (output_reload_insns): Likewise for the elements of this array.
9084 (output_address_reload_insns): Likewise for the elements of this
9086 (outaddr_address_reload_insns): Likewise for the elements of this
9088 (operand_reload_insns): Likewise for this global.
9089 (other_operand_reload_insns): Likewise for this global.
9090 (other_output_reload_insns): Likewise for the elements of this
9092 (new_spill_reg_store): Likewise for the elements of this
9094 (emit_input_reload_insns): Likewise for locals "insn", "temp".
9095 Strengthen local "where" from rtx * to rtx_insn **.
9096 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
9097 from rtx to rtx_insn *.
9098 (do_input_reload): Likewise for local "insn".
9099 (do_output_reload): Likewise for local "insn".
9100 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
9101 (emit_insn_if_valid_for_reload): Likewise for return type and local
9102 "last". Add checked cast to rtx_insn when returning "insn" since
9103 this has been through emit_insn.
9104 (gen_reload): Strengthen return type and locals "last", "insn", "set"
9105 from rtx to rtx_insn *. Add checked cast to rtx_insn when
9106 returning "insn" since it's been through
9107 emit_insn_if_valid_for_reload at this point.
9108 (delete_output_reload): Strengthen param "insn" and locals
9109 "output_reload_insn", "i2" from rtx to rtx_insn *.
9110 (delete_address_reloads): Likewise for params "dead_insn",
9111 "current_insn" and locals "prev", "next".
9112 (delete_address_reloads_1): Likewise for params "dead_insn",
9113 "current_insn" and locals "prev", "i2".
9114 (inc_for_reload): Likewise for locals "last", "add_insn".
9115 (add_auto_inc_notes): Strengthen param "insn" from rtx to
9118 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
9119 param of this duplicate of the prototype from reload.h
9121 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9123 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
9125 (regstat_bb_compute_calls_crossed): Likewise.
9127 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9129 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
9131 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
9133 (regrename_analyze): Strengthen local "insn" from rtx to
9135 (scan_rtx_reg): Likewise for param "insn".
9136 (scan_rtx_address): Likewise.
9137 (scan_rtx): Likewise.
9138 (restore_operands): Likewise.
9139 (record_out_operands): Likewise.
9140 (build_def_use): Likewise for local "insn". Replace use of
9141 NULL_RTX with NULL when dealing with an insn.
9143 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9145 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
9146 * reginfo.c (reg_scan): Likewise, also for local "insn".
9147 (reg_scan_mark_refs): Likewise for param "insn".
9148 (init_subregs_of_mode): Likewise for local "insn".
9150 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9152 * regcprop.c (struct queued_debug_insn_change): Strengthen field
9153 "insn" from rtx to rtx_insn *.
9154 (replace_oldest_value_reg): Likewise for param "insn".
9155 (replace_oldest_value_addr): Likewise.
9156 (replace_oldest_value_mem): Likewise.
9157 (apply_debug_insn_changes): Likewise for local "last_insn".
9158 (copyprop_hardreg_forward_1): Likewise for local "insn".
9160 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9162 * reg-stack.c (next_flags_user): Strengthen return type and param
9163 "insn" from rtx to rtx_insn *.
9164 (straighten_stack): Likewise for param "insn".
9165 (check_asm_stack_operands): Likewise.
9166 (remove_regno_note): Likewise.
9167 (emit_pop_insn): Likewise for return type, param "insn", local
9169 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
9170 "limit" from rtx to rtx_insn *.
9171 (swap_to_top): Likewise for param "insn".
9172 (move_for_stack_reg): Likewise.
9173 (move_nan_for_stack_reg): Likewise.
9174 (swap_rtx_condition): Likewise.
9175 (compare_for_stack_reg): Likewise.
9176 (subst_all_stack_regs_in_debug_insn): Likewise.
9177 (subst_stack_regs_pat): Likewise, and local "insn2".
9178 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
9180 (subst_stack_regs): Likewise.
9181 (change_stack): Likewise.
9182 (convert_regs_1): Likewise for locals "insn", "next".
9184 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9186 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
9188 (combine_set_extension): Likewise for param "curr_insn".
9189 (transform_ifelse): Likewise for param "def_insn".
9190 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
9191 from vec<rtx> * to vec<rtx_insn *> *.
9192 (is_cond_copy_insn): Likewise for param "insn".
9193 (struct ext_state): Strengthen the four vec fields from vec<rtx>
9195 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
9196 local "def_insn" from rtx to rtx_insn *.
9197 (get_sub_rtx): Likewise for param "def_insn".
9198 (merge_def_and_ext): Likewise.
9199 (combine_reaching_defs): Likewise.
9200 (add_removable_extension): Likewise for param "insn".
9201 (find_removable_extensions): Likewise for local "insn".
9202 (find_and_remove_re): Likewise for locals "curr_insn" and
9203 "def_insn". Strengthen locals "reinsn_del_list" and
9204 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
9206 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9208 * recog.c (split_insn): Strengthen param "insn" and locals
9209 "first", "last" from rtx to rtx_insn *.
9210 (split_all_insns): Likewise for locals "insn", "next".
9211 (split_all_insns_noflow): Likewise.
9213 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9215 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
9217 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
9218 (debug_rtx_find): Likewise for param 1 "x".
9220 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
9221 const_rtx to const rtx_insn *. Likewise for local "insn".
9222 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
9223 (debug_rtx_find): Likewise for param 1 "x".
9224 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
9225 from const_rtx to const rtx_insn * within the appropriate cases of
9226 the switch statement.
9228 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
9229 Strengthen local "insns" from rtx to rtx_insn * since this is
9230 passed to a call to debug_rtx_list.
9232 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9234 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
9237 * function.c (stack_protect_epilogue): Add checked cast to
9238 rtx_insn for now when invoking predict_insn_def.
9240 * predict.c (predict_insn): Strengthen param "insn" from rtx to
9242 (predict_insn_def): Likewise.
9243 (rtl_predict_edge): Likewise for local "last_insn".
9244 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
9246 (combine_predictions_for_insn): Strengthen param "insn" from rtx
9248 (bb_estimate_probability_locally): Likewise for local "last_insn".
9249 (expensive_function_p): Likewise for local "insn".
9251 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
9252 local "jmp", since this is used when invoking predict_insn_def.
9254 2014-08-22 Marek Polacek <polacek@redhat.com>
9257 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
9259 2014-08-22 Marek Polacek <polacek@redhat.com>
9262 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
9263 a comparison in parens.
9264 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
9267 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9269 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
9272 * cprop.c (fis_get_condition): Likewise.
9274 * postreload.c (reload_cse_regs): Likewise for param "first".
9275 (reload_cse_simplify): Likewise for param "insn".
9276 (reload_cse_regs_1): Likewise for local "insn".
9277 (reload_cse_simplify_set): Likewise for param "insn".
9278 (reload_cse_simplify_operands): Likewise.
9279 (struct reg_use): Likewise for field "insn".
9280 (reload_combine_purge_insn_uses): Likewise for param "insn".
9281 (fixup_debug_insns): Likewise for params "from", "to" and local
9283 (try_replace_in_use): Likewise for local "use_insn".
9284 (reload_combine_recognize_const_pattern): Likewise for param
9285 "insn" and locals "add_moved_after_insn", "use_insn".
9286 (reload_combine_recognize_pattern): Likewise for param "insn" and
9288 (reload_combine): Likewise for locals "insn", "prev".
9289 (reload_combine_note_use): Likewise for param "insn".
9290 (move2add_use_add2_insn): Likewise.
9291 (move2add_use_add3_insn): Likewise.
9292 (reload_cse_move2add): Likewise, also for local "next".
9293 (move2add_note_store): Likewise for local "insn".
9295 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9297 * postreload-gcse.c (struct occr): Strengthen field "insn" from
9299 (struct unoccr): Likewise.
9300 (struct modifies_mem): Likewise.
9301 (alloc_mem): Likewise for local "insn".
9302 (insert_expr_in_table): Likewise for param "insn".
9303 (dump_expr_hash_table_entry): Likewise for local "insn".
9304 (oprs_unchanged_p): Likewise for param "insn".
9305 (load_killed_in_block_p): Likewise for local "setter".
9306 (record_last_reg_set_info): Likewise for param "insn".
9307 (record_last_reg_set_info_regno): Likewise.
9308 (record_last_mem_set_info): Likewise.
9309 (record_last_set_info): Likewise for local "last_set_insn".
9310 (record_opr_changes): Likewise for param "insn".
9311 (hash_scan_set): Likewise.
9312 (compute_hash_table): Likewise for local "insn".
9313 (get_avail_load_store_reg): Likewise for param "insn".
9314 (eliminate_partially_redundant_load): Likewise, also for locals
9315 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
9317 (eliminate_partially_redundant_loads): Likewise for local "insn".
9319 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9321 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
9323 (expand_binop): Likewise for locals "entry_last", "last", "insns"
9324 (expand_twoval_unop): Likewise for locals entry_last", "last".
9325 (expand_twoval_binop): Likewise.
9326 (expand_twoval_binop_libfunc): Likewise for local "insns".
9327 (widen_leading): Likewise for local "last".
9328 (expand_doubleword_clz): Likewise for local "seq". Strengthen
9329 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
9330 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
9331 (expand_parity): Likewise for locals "last" and "seq".
9332 (expand_ffs): Likewise for local "seq". Strengthen local
9333 "nonzero_label" from rtx to rtx_code_label *.
9334 (expand_absneg_bit): Strengthen local "insns" from rtx to
9336 (expand_unop_direct): Likewise for local "last".
9337 (expand_unop): Likewise for locals "last", "insns".
9338 (expand_abs_nojump): Likewise for local "last".
9339 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
9340 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
9342 (expand_copysign_absneg): Strengthen local "label" from rtx to
9344 (expand_copysign_bit): Strengthen local "insns" from rtx to
9346 (struct no_conflict_data): Likewise for fields "first", "insn".
9347 (emit_libcall_block_1): Likewise for param "insns" and locals
9348 "next", "last", "insn".
9349 (emit_libcall_block): For now, add a checked cast to rtx_insn *
9350 on "insns" when invoking emit_libcall_block_1. Ultimately we
9351 want to strengthen insns itself.
9352 (prepare_cmp_insn): Strengthen local "last" from rtx to
9354 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
9355 (prepare_float_lib_cmp): Likewise for local "insns".
9356 (emit_conditional_move): Likewise for local "last".
9357 (emit_conditional_add): Likewise.
9358 (have_sub2_insn): Likewise for local "seq".
9359 (expand_float): Likewise for local "insns". Strengthen locals
9360 "label", "neglabel" from rtx to rtx_code_label *.
9361 (expand_fix): Likewise for locals "last", "insn", "insns" (to
9362 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
9363 (expand_fixed_convert): Likewise for local "insns" (to
9365 (expand_sfix_optab): Likewise for local "last".
9366 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
9367 to rtx_code_label *.
9368 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
9369 from rtx to rtx_insn *.
9370 (expand_atomic_fetch_op): Likewise for local "insn".
9371 (maybe_legitimize_operand_same_code): Likewise for local "last".
9372 (maybe_legitimize_operands): Likewise.
9374 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9376 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
9377 "insn" from rtx to rtx_insn *.
9378 (ps_rtl_insn): Likewise for return type.
9379 (doloop_register_get): Likewise for params "head", "tail" and
9380 locals "insn", "first_insn_not_to_check".
9381 (schedule_reg_move): Likewise for local "this_insn".
9382 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
9383 of gen_move_insn for now.
9384 (reset_sched_times): Strengthen local "insn" from rtx to
9386 (permute_partial_schedule): Likewise.
9387 (duplicate_insns_of_cycles): Likewise for local "u_insn".
9388 (dump_insn_location): Likewise for param "insn".
9389 (loop_canon_p): Likewise for local "insn".
9390 (sms_schedule): Likewise.
9391 (print_partial_schedule): Likewise.
9392 (ps_has_conflicts): Likewise.
9394 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9396 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
9397 "tailp" from rtx * to rtx_insn **.
9399 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
9400 from rtx to rtx_insn *.
9401 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
9402 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
9403 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
9405 * modulo-sched.c (const_iteration_count): Strengthen return type
9406 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
9407 use of NULL_RTX with NULL when working with insns.
9408 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
9410 (sms_schedule): Likewise.
9411 * sched-rgn.c (init_ready_list): Likewise, also for locals
9412 "src_head" and "src_next_tail".
9413 (compute_block_dependences): Likewise.
9414 (free_block_dependencies): Likewise.
9415 (debug_rgn_dependencies): Likewise.
9416 (free_rgn_deps): Likewise.
9417 (compute_priorities): Likewise.
9418 (schedule_region): Likewise.
9419 * sel-sched.c (find_ebb_boundaries): Likewise.
9421 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
9422 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
9424 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9426 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
9427 from rtx to rtx_insn *.
9428 (new_seginfo): Likewise for param "insn".
9429 (create_pre_exit): Likewise for locals "last_insn",
9430 "before_return_copy", "return_copy".
9431 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
9434 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9436 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
9437 from rtx to rtx_insn *.
9438 (lra_push_insn): Likewise for 1st param.
9439 (lra_push_insn_and_update_insn_regno_info): Likewise.
9440 (lra_pop_insn): Likewise for return type.
9441 (lra_invalidate_insn_data): Likewise for 1st param.
9442 (lra_set_insn_deleted): Likewise.
9443 (lra_delete_dead_insn): Likewise.
9444 (lra_process_new_insns): Likewise for first 3 params.
9445 (lra_set_insn_recog_data): Likewise for 1st param.
9446 (lra_update_insn_recog_data): Likewise.
9447 (lra_set_used_insn_alternative): Likewise.
9448 (lra_invalidate_insn_regno_info): Likewise.
9449 (lra_update_insn_regno_info): Likewise.
9450 (lra_former_scratch_operand_p): Likewise.
9451 (lra_eliminate_regs_1): Likewise.
9452 (lra_get_insn_recog_data): Likewise.
9454 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
9457 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
9459 (substitute_within_insn): New.
9460 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
9461 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
9462 Replace call to "substitute" with call to substitute_within_insn.
9464 * lra-constraints.c (curr_insn): Strengthen from rtx to
9466 (get_equiv_with_elimination): Likewise for param "insn".
9467 (match_reload): Strengthen params "before" and "after" from rtx *
9469 (emit_spill_move): Likewise for return type. Add a checked cast
9470 to rtx_insn * on result of gen_move_insn for now.
9471 (check_and_process_move): Likewise for local "before". Replace
9472 NULL_RTX with NULL when referring to insns.
9473 (process_addr_reg): Strengthen params "before" and "after" from
9474 rtx * to rtx_insn **.
9475 (insert_move_for_subreg): Likewise.
9476 (simplify_operand_subreg): Strengthen locals "before" and "after"
9477 from rtx to rtx_insn *.
9478 (process_address_1): Strengthen params "before" and "after" from
9479 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
9481 (process_address): Strengthen params "before" and "after" from
9482 rtx * to rtx_insn **.
9483 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
9484 (curr_insn_transform): Strengthen locals "before" and "after"
9485 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
9487 (loc_equivalence_callback): Update cast of "data", changing
9488 resulting type from rtx to rtx_insn *.
9489 (substitute_pseudo_within_insn): New.
9490 (inherit_reload_reg): Strengthen param "insn" from rtx to
9491 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
9492 NULL when referring to insns. Add a checked cast to rtx_insn *
9493 when using usage_insn to invoke lra_update_insn_regno_info.
9494 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
9495 likewise for locals "restore", "save". Add checked casts to
9496 rtx_insn * when using usage_insn to invoke
9497 lra_update_insn_regno_info and lra_process_new_insns. Replace
9498 NULL_RTX with NULL when referring to insns.
9499 (split_if_necessary): Strengthen param "insn" from rtx to
9501 (update_ebb_live_info): Likewise for params "head", "tail" and local
9503 (get_last_insertion_point): Likewise for return type and local "insn".
9504 (get_live_on_other_edges): Likewise for local "last".
9505 (inherit_in_ebb): Likewise for params "head", "tail" and locals
9506 "prev_insn", "next_insn", "restore".
9507 (remove_inheritance_pseudos): Likewise for local "prev_insn".
9508 (undo_optional_reloads): Likewise for local "insn".
9510 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
9512 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
9514 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
9516 (spill_pseudos): Likewise for local "insn".
9517 (init_elimination): Likewise.
9518 (process_insn_for_elimination): Likewise for param "insn".
9520 * lra-lives.c (curr_insn): Likewise.;
9522 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
9523 (remove_pseudos): Likewise for param "insn".
9524 (spill_pseudos): Likewise for local "insn".
9525 (lra_final_code_change): Likewise for locals "insn", "curr".
9527 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
9528 (lra_set_insn_deleted): Likewise.
9529 (lra_delete_dead_insn): Likewise, and for local "prev".
9530 (new_insn_reg): Likewise for param "insn".
9531 (lra_set_insn_recog_data): Likewise.
9532 (lra_update_insn_recog_data): Likewise.
9533 (lra_set_used_insn_alternative): Likewise.
9534 (get_insn_freq): Likewise.
9535 (invalidate_insn_data_regno_info): Likewise.
9536 (lra_invalidate_insn_regno_info): Likewise.
9537 (lra_update_insn_regno_info): Likewise.
9538 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
9540 (lra_push_insn_1): Strengthen param "insn" from rtx to
9542 (lra_push_insn): Likewise.
9543 (lra_push_insn_and_update_insn_regno_info): Likewise.
9544 (lra_pop_insn): Likewise for return type and local "insn".
9545 (push_insns): Likewise for params "from", "to", and local "insn".
9546 (setup_sp_offset): Likewise for params "from", "last" and locals
9548 (lra_process_new_insns): Likewise for params "insn", "before",
9549 "after" and local "last".
9550 (struct sloc): Likewise for field "insn".
9551 (lra_former_scratch_operand_p): Likewise for param "insn".
9552 (remove_scratches): Likewise for locals "insn", "last".
9553 (check_rtl): Likewise for local "insn".
9554 (add_auto_inc_notes): Likewise for param "insn".
9555 (update_inc_notes): Likewise for local "insn".
9556 (lra): Replace NULL_RTX with NULL when referring to insn.
9558 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9560 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
9562 (resolve_reg_notes): Likewise.
9563 (resolve_simple_move): Likewise for return type, param "insn", and
9564 locals "insns", "minsn".
9565 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
9566 (resolve_use): Likewise.
9567 (resolve_debug): Likewise.
9568 (find_decomposable_shift_zext): Likewise.
9569 (resolve_shift_zext): Likewise for return type, param "insn", and
9570 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
9571 (decompose_multiword_subregs): Likewise for local "insn",
9572 "orig_insn", "decomposed_shift", "end".
9574 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9576 * basic-block.h (basic_block split_edge_and_insert): Strengthen
9577 param "insns" from rtx to rtx_insn *.
9579 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
9581 (struct iv_to_split): Likewise.
9582 (loop_exit_at_end_p): Likewise for local "insn".
9583 (split_edge_and_insert): Likewise for param "insns".
9584 (compare_and_jump_seq): Likewise for return type, param "cinsn",
9585 and locals "seq", "jump".
9586 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
9587 "branch_code"; update invocations of compare_and_jump_seq to
9588 eliminate NULL_RTX in favor of NULL.
9589 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
9591 (reset_debug_uses_in_loop): Likewise.
9592 (analyze_insn_to_expand_var): Likewise for param "insn".
9593 (analyze_iv_to_split_insn): Likewise.
9594 (analyze_insns_in_loop): Likewise for local "insn".
9595 (insert_base_initialization): Likewise for param
9596 "insn" and local "seq".
9597 (split_iv): Likewise for param "insn" and local "seq".
9598 (expand_var_during_unrolling): Likewise for param "insn".
9599 (insert_var_expansion_initialization): Likewise for local "seq".
9600 (combine_var_copies_in_loop_exit): Likewise.
9601 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
9603 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
9604 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
9607 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9609 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
9611 (iv_analyze_result): Likewise.
9612 (iv_analyze_expr): Likewise.
9615 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
9616 local "def_insn" from rtx to rtx_insn *.
9617 (get_biv_step_1): Likewise for local "insn".
9618 (iv_analyze_expr): Likewise for param "insn".
9619 (iv_analyze_def): Likewise for local "insn".
9620 (iv_analyze_op): Likewise for param "insn".
9621 (iv_analyze): Likewise.
9622 (iv_analyze_result): Likewise.
9624 (suitable_set_for_replacement): Likewise.
9625 (simplify_using_initial_values): Likewise for local "insn".
9626 (iv_number_of_iterations): Likewise for param "insn".
9627 (check_simple_exit): Add checked cast to rtx_insn when invoking
9628 iv_number_of_iterations for now (until get_condition is
9631 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
9632 "insn" from rtx to rtx_insn *.
9633 (analyze_insns_in_loop): Likewise for local "insn".
9635 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9637 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
9639 (struct invariant): Likewise.
9640 (hash_invariant_expr_1): Likewise for param "insn".
9641 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
9642 (find_exits): Likewise for local "insn".
9643 (create_new_invariant): Likewise for param "insn".
9644 (check_dependencies): Likewise.
9645 (find_invariant_insn): Likewise.
9646 (record_uses): Likewise.
9647 (find_invariants_insn): Likewise.
9648 (find_invariants_bb): Likewise for local "insn".
9649 (get_pressure_class_and_nregs): Likewise for param "insn".
9650 (calculate_loop_reg_pressure): Likewise for local "insn".
9652 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9654 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
9656 (add_test): Likewise for locals "seq", "jump".
9657 (doloop_modify): Likewise for locals "sequence", "jump_insn".
9659 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9661 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
9663 (rebuild_jump_labels_chain): Likewise for param "chain".
9665 * cfgexpand.c (pass_expand::execute): Add checked cast to
9666 rtx_insn * when calling rebuild_jump_labels_chain in region where
9667 we know e->insns.r is non-NULL.
9669 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
9671 (rebuild_jump_labels): Likewise.
9672 (rebuild_jump_labels_chain): Likewise for param "chain".
9673 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
9674 (init_label_info): Likewise for param "f".
9675 (maybe_propagate_label_ref): Likewise for params "jump_insn",
9676 "prev_nonjump_insn".
9677 (mark_all_labels): Likewise for param "f" and locals "insn",
9678 "prev_nonjump_insn".
9680 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9682 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
9683 from rtx to rtx_insn *insn.
9684 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
9685 (ira_add_allocno_copy): Likewise.
9686 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
9688 (ira_create_copy): Likewise.
9689 (ira_add_allocno_copy): Likewise.
9690 (create_bb_allocnos): Likewise for local "insn".
9691 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
9692 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
9693 process_regs_for_copy for rtx_insn * param.
9694 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
9695 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
9696 process_regs_for_copy for rtx_insn * param.
9697 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
9698 * ira-costs.c (record_reg_classes): Likewise for param "insn".
9699 (record_operand_costs): Likewise.
9700 (scan_one_insn): Likewise for return type, and for param "insn".
9701 (process_bb_for_costs): Likewise for local "insn".
9702 (process_bb_node_for_hard_reg_moves): Likewise.
9703 * ira-emit.c (struct move): Likewise for field "insn".
9704 (create_move): Eliminate use of NULL_RTX when dealing with an
9706 (emit_move_list): Strengthen return type and locals "result",
9707 "insn" from rtx to rtx_insn *insn.
9708 (emit_moves): Likewise for locals "insns", "tmp".
9709 (ira_emit): Likewise for local "insn".
9710 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
9712 (find_call_crossed_cheap_reg): Likewise.
9713 (process_bb_node_lives): Likewise for local "insn".
9714 * ira.c (decrease_live_ranges_number): Likewise.
9715 (compute_regs_asm_clobbered): Likewise.
9716 (build_insn_chain): Likewise.
9717 (find_moveable_pseudos): Likewise, also locals "def_insn",
9718 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
9719 to rtx_insn **. Add a checked cast when assigning from
9720 "closest_use" into closest_uses array in a region where we know
9721 it's a non-NULL insn.
9722 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
9724 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
9725 "last_interesting_insn", "uin".
9726 (move_unallocated_pseudos): Likewise for locals "def_insn",
9727 "move_insn", "newinsn".
9729 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9731 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
9732 Strengthen locals "done_label", "do_error" from rtx to
9734 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
9735 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
9737 (ubsan_expand_si_overflow_neg_check): Likewise for locals
9738 "done_label", "do_error" to rtx_code_label * and local "last" to
9740 (ubsan_expand_si_overflow_mul_check): Likewise for locals
9741 "done_label", "do_error", "large_op0", "small_op0_large_op1",
9742 "one_small_one_large", "both_ops_large", "after_hipart_neg",
9743 "after_lopart_neg", "do_overflow", "hipart_different" to
9744 rtx_code_label * and local "last" to rtx_insn *.
9746 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9748 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
9749 "insn" and "move_insn" from rtx to rtx_insn *.
9751 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9753 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
9755 (cheap_bb_rtx_cost_p): Likewise.
9756 (first_active_insn): Likewise for return type and local "insn".
9757 (last_active_insn): Likewise for return type and locals "insn",
9759 (struct noce_if_info): Likewise for fields "jump", "insn_a",
9761 (end_ifcvt_sequence): Likewise for return type and locals "insn",
9763 (noce_try_move): Likewise for local "seq".
9764 (noce_try_store_flag): Likewise.
9765 (noce_try_store_flag_constants): Likewise.
9766 (noce_try_addcc): Likewise.
9767 (noce_try_store_flag_mask): Likewise.
9768 (noce_try_cmove): Likewise.
9769 (noce_try_minmax): Likewise.
9770 (noce_try_abs): Likewise.
9771 (noce_try_sign_mask): Likewise.
9772 (noce_try_bitop): Likewise.
9773 (noce_can_store_speculate_p): Likewise for local "insn".
9774 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
9776 (check_cond_move_block): Likewise for local "insn".
9777 (cond_move_convert_if_block): Likewise.
9778 (cond_move_process_if_block): Likewise for locals "seq",
9780 (noce_find_if_block): Likewise for local "jump".
9781 (merge_if_block): Likewise for local "last".
9782 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
9783 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
9784 (block_has_only_trap): Likewise for return type and local "trap".
9785 (find_if_case_1): Likewise for local "jump".
9786 (dead_or_predicable): Likewise for locals "head", "end", "jump",
9789 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9791 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
9792 "last_insn", "loop_end" from rtx to rtx_insn *.
9794 * hw-doloop.c (scan_loop): Likewise for local "insn".
9795 (discover_loop): Likewise for param "tail_insn".
9796 (discover_loops): Likewise for local "tail".
9798 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
9799 cast to rtx_insn * when assigning from an rtx local to a
9800 hwloop_info's "last_insn" field.
9802 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9804 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
9805 (add_delay_dependencies): Strengthen local "pro" from rtx to
9807 (recompute_todo_spec): Likewise.
9808 (dep_cost_1): Likewise for locals "insn", "used".
9809 (schedule_insn): Likewise for local "dbg".
9810 (schedule_insn): Likewise for locals "pro", "next".
9811 (unschedule_insns_until): Likewise for local "con".
9812 (restore_pattern): Likewise for local "next".
9813 (estimate_insn_tick): Likewise for local "pro".
9814 (resolve_dependencies): Likewise for local "next".
9815 (fix_inter_tick): Likewise.
9816 (fix_tick_ready): Likewise for local "pro".
9817 (add_to_speculative_block): Likewise for locals "check", "twin",
9819 (sched_extend_bb): Likewise for locals "end", "insn".
9820 (init_before_recovery): Likewise for local "x".
9821 (sched_create_recovery_block): Likewise for local "barrier".
9822 (create_check_block_twin): Likewise for local "pro".
9823 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
9825 (unlink_bb_notes): Update for change to type of bb_header.
9826 Strengthen locals "prev", "label", "note", "next" from rtx to
9828 (clear_priorities): Likewise for local "pro".
9830 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9832 * gcse.c (struct occr): Strengthen field "insn" from rtx to
9834 (test_insn): Likewise for this global.
9835 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
9837 (oprs_anticipatable_p): Likewise.
9838 (oprs_available_p): Likewise.
9839 (insert_expr_in_table): Strengthen param "insn" from rtx to
9841 (hash_scan_set): Likewise.
9842 (hash_scan_clobber): Likewise.
9843 (hash_scan_call): Likewise.
9844 (hash_scan_insn): Likewise.
9845 (compute_hash_table_work): Likewise for local "insn".
9846 (process_insert_insn): Likewise for return type and local "pat".
9847 (insert_insn_end_basic_block): Likewise for locals "new_insn",
9848 "pat", "pat_end", "maybe_cc0_setter".
9849 (pre_edge_insert): Likewise for local "insn".
9850 (pre_insert_copy_insn): Likewise for param "insn".
9851 (pre_insert_copies): Likewise for local "insn".
9852 (struct set_data): Likewise for field "insn".
9853 (single_set_gcse): Likewise for param "insn".
9854 (gcse_emit_move_after): Likewise.
9855 (pre_delete): Likewise for local "insn".
9856 (update_bb_reg_pressure): Likewise for param "from" and local
9858 (should_hoist_expr_to_dom): Likewise for param "from".
9859 (hoist_code): Likewise for local "insn".
9860 (get_pressure_class_and_nregs): Likewise for param "insn".
9861 (calculate_bb_reg_pressure): Likewise for local "insn".
9862 (compute_ld_motion_mems): Likewise.
9864 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9866 * genpeep.c (main): Rename param back from "uncast_ins1" to
9867 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
9870 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
9872 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
9875 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
9876 documentation to state it is only for VSX operations.
9878 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
9879 constraint only active if VSX.
9881 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
9882 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
9885 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9887 * fwprop.c (single_def_use_dom_walker::before_dom_children):
9888 Strengthen local "insn" from rtx to rtx_insn *.
9889 (use_killed_between): Likewise for param "target_insn".
9890 (all_uses_available_at): Likewise for param "target_insn" and
9892 (update_df_init): Likewise for params "def_insn", "insn".
9893 (update_df): Likewise for param "insn".
9894 (try_fwprop_subst): Likewise for param "def_insn" and local
9896 (free_load_extend): Likewise for param "insn".
9897 (forward_propagate_subreg): Likewise for param "def_insn" and
9899 (forward_propagate_asm): Likewise for param "def_insn" and local
9901 (forward_propagate_and_simplify): Likewise for param "def_insn"
9902 and local "use_insn".
9903 (forward_propagate_into): Likewise for locals "def_insn" and
9906 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9908 * function.c (emit_initial_value_sets): Strengthen local "seq"
9909 from rtx to rtx_insn *.
9910 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
9912 (instantiate_virtual_regs): Likewise for local "insn".
9913 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
9914 (reorder_blocks_1): Likewise for param "insns" and local "insn".
9915 (expand_function_end): Likewise for locals "insn" and "seq".
9916 (epilogue_done): Likewise for local "insn".
9917 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
9919 (reposition_prologue_and_epilogue_notes): Likewise for locals
9920 "insn", "last", "note", "first".
9921 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
9922 (pass_match_asm_constraints::execute): Likewise for local "insn".
9924 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9926 * output.h (final_scan_insn): Strengthen return type from rtx to
9928 (final_forward_branch_p): Likewise for param.
9929 (current_output_insn): Likewise for this global.
9931 * final.c (rtx debug_insn): Likewise for this variable.
9932 (current_output_insn): Likewise.
9933 (get_attr_length_1): Rename param "insn" to "uncast_insn",
9934 adding "insn" back in as an rtx_insn * with a checked cast, so
9935 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
9937 (compute_alignments): Strengthen local "label" from rtx to
9939 (shorten_branches): Rename param from "first" to "uncast_first",
9940 introducing a new local rtx_insn * "first" using a checked cast to
9941 effectively strengthen "first" from rtx to rtx_insn * without
9942 affecting the type signature. Strengthen locals "insn", "seq",
9943 "next", "label" from rtx to rtx_insn *.
9944 (change_scope): Strengthen param "orig_insn" and local "insn" from
9946 (final_start_function): Rename param from "first" to "uncast_first",
9947 introducing a new local rtx_insn * "first" using a checked cast to
9948 effectively strengthen "first" from rtx to rtx_insn * without
9949 affecting the type signature. Strengthen local "insn" from rtx to
9951 (dump_basic_block_info): Strengthen param "insn" from rtx to
9953 (final): Rename param from "first" to "uncast_first",
9954 introducing a new local rtx_insn * "first" using a checked cast to
9955 effectively strengthen "first" from rtx to rtx_insn * without
9956 affecting the type signature. Strengthen locals "insn", "next"
9957 from rtx to rtx_insn *.
9958 (output_alternate_entry_point): Strengthen param "insn" from rtx to
9960 (call_from_call_insn): Strengthen param "insn" from rtx to
9962 (final_scan_insn): Rename param from "insn" to "uncast_insn",
9963 introducing a new local rtx_insn * "insn" using a checked cast to
9964 effectively strengthen "insn" from rtx to rtx_insn * without
9965 affecting the type signature. Strengthen return type and locals
9966 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
9967 now-redundant checked cast to rtx_insn * from both invocations of
9968 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
9969 introducing a local "call_insn" for use when invoking
9970 call_from_call_insn.
9971 (notice_source_line): Strengthen param "insn" from rtx to
9973 (leaf_function_p): Likewise for local "insn".
9974 (final_forward_branch_p): Likewise.
9975 (leaf_renumber_regs): Likewise for param "first".
9976 (rest_of_clean_state): Likewise for locals "insn" and "next".
9977 (self_recursive_call_p): Likewise for param "insn".
9978 (collect_fn_hard_reg_usage): Likewise for local "insn".
9979 (get_call_fndecl): Likewise for param "insn".
9980 (get_call_cgraph_rtl_info): Likewise.
9981 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
9982 introducing a new local rtx_insn * "insn" using a checked cast to
9983 effectively strengthen "insn" from rtx to rtx_insn * without
9984 affecting the type signature.
9986 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
9987 cast when assigning from param "insn" to current_output_insn.
9988 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
9989 so that we can assign it back to current_output_insn.
9991 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9993 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
9994 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
9995 atmxt540s and atmxt540sreva devices.
9996 * config/avr/avr-tables.opt: Regenerate.
9997 * config/avr/t-multilib: Regenerate.
9998 * doc/avr-mmcu.texi: Regenerate.
10000 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10002 * expr.c (convert_move): Strengthen local "insns" from rtx to
10004 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
10005 "top_label" from rtx to rtx_code_label *.
10006 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
10008 (emit_single_push_insn): Likewise for locals "prev", "last".
10009 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
10010 to rtx_code_label *.
10011 (store_constructor): Likewise for locals "loop_start", "loop_end".
10012 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
10014 (expand_expr_real_2): Likewise.
10015 (expand_expr_real_1): Strengthen local "label" from rtx to
10018 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10020 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
10021 from rtx to rtx_insn *.
10022 (store_bit_field_1): Likewise.
10023 (extract_bit_field_1): Likewise.
10024 (expand_mult_const): Likewise for local "insns".
10025 (expmed_mult_highpart): Strengthen local "label" from rtx to
10027 (expand_smod_pow2): Likewise.
10028 (expand_sdiv_pow2): Likewise.
10029 (expand_divmod): Strengthen locals "last", "insn" from rtx to
10030 rtx_insn *. Strengthen locals "label", "label1", "label2",
10031 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
10032 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
10033 (emit_store_flag): Likewise.
10034 (emit_store_flag_force): Strengthen local "label" from rtx to
10036 (do_cmp_and_jump): Likewise for param "label".
10038 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10040 * explow.c (force_reg): Strengthen local "insn" from rtx to
10042 (adjust_stack_1): Likewise.
10043 (allocate_dynamic_stack_space): Likewise. Strengthen locals
10044 "final_label", "available_label", "space_available" from rtx to
10046 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
10047 (anti_adjust_stack_and_probe): Likewise.
10049 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10051 * except.h (sjlj_emit_function_exit_after): Strengthen param
10052 "after" from rtx to rtx_insn *. This is only called with
10053 result of get_last_insn (in function.c) so type-change should be
10056 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
10057 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
10058 to rtx_insn *. These fields are only used from except.c so this
10059 type-change should be self-contained to this patch.
10061 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
10062 local "last" from rtx to rtx_insn *.
10063 (dw2_build_landing_pads): Likewise for local "seq".
10064 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
10065 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
10066 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
10068 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
10070 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
10071 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
10072 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
10073 referring to an insn. Strengthen local "dispatch_label" from
10074 rtx to rtx_code_label *.
10075 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
10077 (expand_eh_return): Strengthen local "around_label" from
10078 rtx to rtx_code_label *.
10079 (convert_to_eh_region_ranges): Strengthen locals "iter",
10080 "last_action_insn", "first_no_action_insn",
10081 "first_no_action_insn_before_switch",
10082 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
10084 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10086 * dwarf2out.c (last_var_location_insn): Strengthen this variable
10087 from rtx to rtx_insn *.
10088 (cached_next_real_insn): Likewise.
10089 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
10090 working with insns.
10091 (dwarf2out_var_location): Strengthen locals "next_real",
10092 "next_note", "expected_next_loc_note", "last_start", "insn" from
10095 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10097 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
10098 from rtx to rtx_insn *.
10099 (create_pseudo_cfg): Likewise for local "insn".
10101 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10103 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
10104 from rtx to rtx_insn *.
10105 (df_bb_regno_last_def_find): Likewise.
10107 * df-problems.c (df_rd_bb_local_compute): Likewise.
10108 (df_lr_bb_local_compute): Likewise.
10109 (df_live_bb_local_compute): Likewise.
10110 (df_chain_remove_problem): Likewise.
10111 (df_chain_create_bb): Likewise.
10112 (df_word_lr_bb_local_compute): Likewise.
10113 (df_remove_dead_eq_notes): Likewise for param "insn".
10114 (df_note_bb_compute): Likewise for local "insn".
10115 (simulate_backwards_to_point): Likewise.
10116 (df_md_bb_local_compute): Likewise.
10118 * df-scan.c (df_scan_free_bb_info): Likewise.
10119 (df_scan_start_dump): Likewise.
10120 (df_scan_start_block): Likewise.
10121 (df_install_ref_incremental): Likewise for local "insn".
10122 (df_insn_rescan_all): Likewise.
10123 (df_reorganize_refs_by_reg_by_insn): Likewise.
10124 (df_reorganize_refs_by_insn_bb): Likewise.
10125 (df_recompute_luids): Likewise.
10126 (df_bb_refs_record): Likewise.
10127 (df_update_entry_exit_and_calls): Likewise.
10128 (df_bb_verify): Likewise.
10130 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10132 * ddg.h (struct ddg_node): Strengthen fields "insn" and
10133 "first_note" from rtx to rtx_insn *.
10134 (get_node_of_insn): Likewise for param 2 "insn".
10135 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
10137 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
10139 (mem_write_insn_p): Likewise.
10140 (mem_access_insn_p): Likewise.
10141 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
10142 (def_has_ccmode_p): Likewise for param "insn".
10143 (add_cross_iteration_register_deps): Likewise for locals
10144 "def_insn" and "use_insn".
10145 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
10146 (build_intra_loop_deps): Likewise for local "src_insn".
10147 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
10149 (get_node_of_insn): Likewise for param "insn".
10151 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10153 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
10154 (deletable_insn_p): Strengthen param "insn" from rtx to
10155 rtx_insn *. Add checked cast to rtx_call_insn when invoking
10156 find_call_stack_args, since this is guarded by CALL_P (insn).
10157 (marked_insn_p): Strengthen param "insn" from rtx to
10159 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
10160 invoking find_call_stack_args, since this is guarded by
10162 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
10163 rtx_insn *; we know this is an insn since this was called by
10164 mark_nonreg_stores.
10165 (mark_nonreg_stores_2): Likewise.
10166 (mark_nonreg_stores): Strengthen param "insn" from rtx to
10168 (find_call_stack_args): Strengthen param "call_insn" from rtx to
10169 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
10171 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
10172 from rtx to rtx_insn *.
10173 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
10174 "next", "ref_insn".
10175 (delete_unmarked_insns): Likewise for locals "insn", "next".
10176 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
10177 (mark_reg_dependencies): Likewise for param "insn".
10178 (rest_of_handle_ud_dce): Likewise for local "insn".
10179 (word_dce_process_block): Likewise.
10180 (dce_process_block): Likewise.
10182 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10184 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
10185 from rtx to rtx_insn *.
10186 (struct change_cc_mode_args): Likewise for field "insn".
10187 (this_insn): Strengthen from rtx to rtx_insn *.
10188 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
10190 (validate_canon_reg): Strengthen param "insn" from rtx to
10192 (canon_reg): Likewise.
10193 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
10195 (record_jump_equiv): Strengthen param "insn" from rtx to
10197 (try_back_substitute_reg): Likewise, also for locals "prev",
10199 (find_sets_in_insn): Likewise for param "insn".
10200 (canonicalize_insn): Likewise.
10201 (cse_insn): Likewise. Add a checked cast.
10202 (invalidate_from_clobbers): Likewise for param "insn".
10203 (invalidate_from_sets_and_clobbers): Likewise.
10204 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
10206 (cse_prescan_path): Strengthen local "insn" from rtx to
10208 (cse_extended_basic_block): Likewise for locals "insn" and
10210 (cse_main): Likewise for param "f".
10211 (check_for_label_ref): Likewise for local "insn".
10212 (set_live_p): Likewise for second param ("insn").
10213 (insn_live_p): Likewise for first param ("insn") and for local
10215 (cse_change_cc_mode_insn): Likewise for first param "insn".
10216 (cse_change_cc_mode_insns): Likewise for first and second params
10218 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
10220 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
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/subst.md (define_subst_attr "mask_avx512bw_condition"):
10234 * config/i386/sse.md
10235 (define_mode_iterator VI248_AVX2): Delete.
10236 (define_mode_iterator VI2_AVX2_AVX512BW): New.
10237 (define_mode_iterator VI48_AVX2): Ditto.
10238 (define_insn <shift_insn><mode>3): Delete.
10239 (define_insn "<shift_insn><mode>3<mask_name>" with
10240 VI2_AVX2_AVX512BW): New.
10241 (define_insn "<shift_insn><mode>3<mask_name>" with
10244 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
10245 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10246 Anna Tikhonova <anna.tikhonova@intel.com>
10247 Ilya Tocar <ilya.tocar@intel.com>
10248 Andrey Turetskiy <andrey.turetskiy@intel.com>
10249 Ilya Verbin <ilya.verbin@intel.com>
10250 Kirill Yukhin <kirill.yukhin@intel.com>
10251 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10253 * config/i386/sse.md
10254 (define_mode_iterator VI4F_BRCST32x2): New.
10255 (define_mode_attr 64x2_mode): Ditto.
10256 (define_mode_attr 32x2mode): Ditto.
10257 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
10258 with VI4F_BRCST32x2): Ditto.
10259 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
10260 with V16FI mode iterator): Ditto.
10261 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
10262 with V16FI): Ditto.
10263 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
10264 with VI8F_BRCST64x2): Ditto.
10266 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
10267 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10268 Anna Tikhonova <anna.tikhonova@intel.com>
10269 Ilya Tocar <ilya.tocar@intel.com>
10270 Andrey Turetskiy <andrey.turetskiy@intel.com>
10271 Ilya Verbin <ilya.verbin@intel.com>
10272 Kirill Yukhin <kirill.yukhin@intel.com>
10273 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10275 * config/i386/sse.md
10276 (define_mode_iterator VI8_AVX512VL): New.
10277 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
10279 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
10281 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
10282 (define_mode_iterator V48_AVX512VL): New.
10283 (define_mode_iterator V12_AVX512VL): Ditto.
10284 (define_insn <avx512>_load<mode>_mask): Split into two similar
10285 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
10286 Refactor output template.
10287 (define_insn "<avx512>_store<mode>_mask"): Ditto.
10289 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10291 * cprop.c (struct occr): Strengthen field "insn" from rtx to
10293 (reg_available_p): Likewise for param "insn".
10294 (insert_set_in_table): Likewise.
10295 (hash_scan_set): Likewise.
10296 (hash_scan_insn): Likewise.
10297 (make_set_regs_unavailable): Likewise.
10298 (compute_hash_table_work): Likewise for local "insn".
10299 (reg_not_set_p): Strengthen param "insn" from const_rtx to
10301 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
10302 (try_replace_reg): Likewise.
10303 (find_avail_set): Likewise.
10304 (cprop_jump): Likewise for params "setcc", "jump".
10305 (constprop_register): Likewise for param "insn".
10306 (cprop_insn): Likewise.
10307 (do_local_cprop): Likewise.
10308 (local_cprop_pass): Likewise for local "insn".
10309 (bypass_block): Likewise for params "setcc" and "jump".
10310 (bypass_conditional_jumps): Likewise for locals "setcc" and
10312 (one_cprop_pass): Likewise for local "insn".
10314 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10316 * compare-elim.c (struct comparison_use): Strengthen field "insn"
10317 from rtx to rtx_insn *.
10318 (struct comparison): Likewise, also for field "prev_clobber".
10319 (conforming_compare): Likewise for param "insn".
10320 (arithmetic_flags_clobber_p): Likewise.
10321 (find_flags_uses_in_insn): Likewise.
10322 (find_comparison_dom_walker::before_dom_children): Likewise for
10323 locals "insn", "next", "last_clobber".
10324 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
10326 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10328 * combine-stack-adj.c (struct csa_reflist): Strengthen field
10329 "insn" from rtx to rtx_insn *.
10330 (single_set_for_csa): Likewise for param "insn".
10331 (record_one_stack_ref): Likewise.
10332 (try_apply_stack_adjustment): Likewise.
10333 (struct record_stack_refs_data): Likewise for field "insn".
10334 (maybe_move_args_size_note): Likewise for params "last" and "insn".
10335 (prev_active_insn_bb): Likewise for return type and param "insn".
10336 (next_active_insn_bb): Likewise.
10337 (force_move_args_size_note): Likewise for params "prev" and "last"
10338 and locals "test", "next_candidate", "prev_candidate".
10339 (combine_stack_adjustments_for_block): Strengthen locals
10340 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
10343 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10345 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
10346 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
10347 (subst_insn): Likewise for this variable.
10348 (added_links_insn): Likewise.
10349 (struct insn_link): Likewise for field "insn".
10350 (alloc_insn_link): Likewise for param "insn".
10351 (struct undobuf): Likewise for field "other_insn".
10352 (find_single_use): Likewise for param "insn" and local "next".
10353 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
10354 (delete_noop_moves): Likewise for locals "insn", "next".
10355 (create_log_links): Likewise for locals "insn", "use_insn".
10356 Strengthen local "next_use" from rtx * to rtx_insn **.
10357 (insn_a_feeds_b): Likewise for params "a", "b".
10358 (combine_instructions): Likewise for param "f" and locals "insn",
10359 "next", "prev", "first", "last_combined_insn", "link", "link1",
10360 "temp". Replace use of NULL_RTX with NULL when referring to
10362 (setup_incoming_promotions): Likewise for param "first"
10363 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
10364 (can_combine_p): Likewise for params "insn", "i3", "pred",
10365 "pred2", "succ", "succ2" and for local "p".
10366 (combinable_i3pat): Likewise for param "i3".
10367 (cant_combine_insn_p): Likewise for param "insn".
10368 (likely_spilled_retval_p): Likewise.
10369 (adjust_for_new_dest): Likewise.
10370 (update_cfg_for_uncondjump): Likewise, also for local "insn".
10371 (try_combine): Likewise for return type and for params "i3", "i2",
10372 "i1", "i0", "last_combined_insn", and for locals "insn",
10373 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
10374 "i0_insn". Eliminate local "tem" in favor of new locals
10375 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
10376 checked cast for now to rtx_insn * on the return type of
10377 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
10379 (find_split_point): Strengthen param "insn" from rtx to
10381 (simplify_set): Likewise for local "other_insn".
10382 (recog_for_combine): Likewise for param "insn".
10383 (record_value_for_reg): Likewise.
10384 (record_dead_and_set_regs_1): Likewise for local
10385 "record_dead_insn".
10386 (record_dead_and_set_regs): Likewise for param "insn".
10387 (record_promoted_value): Likewise.
10388 (check_promoted_subreg): Likewise.
10389 (get_last_value_validate): Likewise.
10390 (reg_dead_at_p): Likewise.
10391 (move_deaths): Likewise for param "to_insn".
10392 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
10393 and locals "place", "place2", "cc0_setter". Eliminate local "tem
10394 in favor of new locals "tem_note" and "tem_insn", the latter being
10396 (distribute_links): Strengthen locals "place", "insn" from rtx to
10399 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10401 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
10403 (can_delete_label_p): Require a const rtx_code_label * rather than
10405 (delete_insn): Add checked cast to rtx_code_label * when we know
10406 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
10408 (delete_insn_chain): Strengthen locals "prev" and "current" from
10409 rtx to rtx_insn *. Add a checked cast when assigning from
10410 "finish" (strengthening the params will come later). Add a
10411 checked cast to rtx_note * in region where we know
10413 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
10415 (compute_bb_for_insn): Likewise.
10416 (free_bb_for_insn): Likewise for local "insn".
10417 (compute_bb_for_insn): Likewise.
10418 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
10419 local "insn" from rtx to rtx_insn *
10420 (flow_active_insn_p): Require a const rtx_insn * rather than a
10422 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
10424 (can_fallthru): Likewise for locals "insn" and "insn2".
10425 (bb_note): Likewise for local "note".
10426 (first_insn_after_basic_block_note): Likewise for local "note" and
10428 (rtl_split_block): Likewise for locals "insn" and "next".
10429 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
10431 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
10432 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
10434 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
10435 them), "kill_from", "barrier", "new_insn".
10436 (patch_jump_insn): Likewise for params "insn", "old_label".
10437 (redirect_branch_edge): Likewise for locals "old_label", "insn".
10438 (force_nonfallthru_and_redirect): Likewise for locals "insn",
10439 "old_label", "new_label".
10440 (rtl_tidy_fallthru_edge): Likewise for local "q".
10441 (rtl_split_edge): Likewise for locals "before", "last".
10442 (commit_one_edge_insertion): Likewise for locals "before",
10443 "after", "insns", "tmp", "last", adding a checked cast where
10444 currently necessary.
10445 (commit_edge_insertions): Likewise.
10446 (rtl_dump_bb): Likewise for locals "insn", "last".
10447 (print_rtl_with_bb): Likewise for local "x".
10448 (rtl_verify_bb_insns): Likewise for local "x".
10449 (rtl_verify_bb_pointers): Likewise for local "insn".
10450 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
10452 (rtl_verify_fallthru): Likewise for local "insn".
10453 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
10454 (purge_dead_edges): Likewise for local "insn".
10455 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
10456 (skip_insns_after_block): Likewise for return type and for locals
10457 "insn", "last_insn", "next_head", "prev".
10458 (record_effective_endpoints): Likewise for locals "next_insn",
10460 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
10461 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
10462 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
10463 (duplicate_insn_chain): For now, add checked cast from rtx to
10464 rtx_insn * when returning insn.
10465 (cfg_layout_duplicate_bb): Likewise for local "insn".
10466 (cfg_layout_delete_block): Likewise for locals "insn", "next",
10467 "prev", "remaints".
10468 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
10469 (rtl_block_empty_p): Likewise.
10470 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
10471 "split_point", "last".
10472 (rtl_block_ends_with_call_p): Likewise for local "insn".
10473 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
10475 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
10476 "split_at_insn" from rtx to rtx_insn *.
10477 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
10478 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
10479 to const rtx_insn *.
10480 (rtl_account_profile_record): Likewise.
10482 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10484 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
10486 (average_num_loop_insns): Likewise.
10487 (init_set_costs): Likewise for local "seq".
10488 (seq_cost): Likewise for param "seq", from const_rtx to const
10491 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10493 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
10496 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10498 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
10499 "f1" and "f2" from rtx * to rtx_insn **.
10500 (flow_find_head_matching_sequence): Likewise.
10502 * cfgcleanup.c (try_simplify_condjump): Strengthen local
10503 "cbranch_insn" from rtx to rtx_insn *.
10504 (thread_jump): Likewise for local "insn".
10505 (try_forward_edges): Likewise for local "last".
10506 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
10507 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
10509 (can_replace_by): Likewise for params "i1", "i2".
10510 (old_insns_match_p): Likewise.
10511 (merge_notes): Likewise.
10512 (walk_to_nondebug_insn): Likewise for param "i1".
10513 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
10514 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
10515 "afterlast1", "afterlast2" from rtx to rtx_insn *.
10516 (flow_find_head_matching_sequence): Strengthen params "f1" and
10517 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
10518 "last1", "last2", "beforelast1", "beforelast2" from rtx to
10520 (outgoing_edges_match): Likewise for locals "last1", "last2".
10521 (try_crossjump_to_edge): Likewise for local "insn".
10522 Replace call to for_each_rtx with for_each_rtx_in_insn.
10524 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
10525 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
10526 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
10527 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
10528 (try_optimize_cfg): Strengthen local "last" from rtx to
10530 (delete_dead_jumptables): Likewise for locals "insn", "next",
10533 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
10534 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
10535 "rtx else_first_tail", to reflect the basic-block.h changes above.
10537 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10539 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
10541 (purge_dead_tablejump_edges): Likewise.
10542 (find_bb_boundaries): Likewise for locals "insn", "end",
10543 "flow_transfer_insn".
10545 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10547 * caller-save.c (save_call_clobbered_regs): Strengthen locals
10548 "ins" and "prev" from rtx to rtx_insn *.
10550 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10552 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
10554 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
10555 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
10557 (load_register_parameters): Likewise for local "before_arg".
10558 (check_sibcall_argument_overlap): Likewise for param "insn".
10559 (expand_call): Likewise for locals "normal_call_insns",
10560 "tail_call_insns", "insns", "before_call", "after_args",
10561 "before_arg", "last", "prev". Strengthen one of the "last" from
10562 rtx to rtx_call_insn *.
10563 (fixup_tail_calls): Strengthen local "insn" from rtx to
10565 (emit_library_call_value_1): Likewise for locals "before_call" and
10568 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10570 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
10571 and "last" from rtx to rtx_insn *.
10572 (expand_builtin_nonlocal_goto): Likewise for local "insn".
10573 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
10575 (expand_errno_check): Strengthen local "lab" from rtx to
10577 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
10579 (expand_builtin_mathfn_2): Likewise.
10580 (expand_builtin_mathfn_ternary): Likewise.
10581 (expand_builtin_mathfn_3): Likewise.
10582 (expand_builtin_interclass_mathfn): Likewise for local "last".
10583 (expand_builtin_int_roundingfn): Likewise for local "insns".
10584 (expand_builtin_int_roundingfn_2): Likewise.
10585 (expand_builtin_strlen): Likewise for local "before_strlen".
10586 (expand_builtin_strncmp): Likewise for local "seq".
10587 (expand_builtin_signbit): Likewise for local "last".
10588 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
10589 from rtx to rtx_code_label *.
10590 (expand_stack_restore): Strengthen local "prev" from rtx to
10593 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10595 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
10597 (struct btr_def_s): Likewise.
10598 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
10600 (add_btr_def): Likewise.
10601 (new_btr_user): Likewise.
10602 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
10604 (link_btr_uses): Likewise.
10605 (move_btr_def): Likewise for locals "insp", "old_insn",
10606 "new_insn". Add checked cast to rtx_insn * for now on result of
10608 (can_move_up): Strengthen param "insn" from const_rtx to
10611 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10613 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
10615 (get_uncond_jump_length): Likewise for locals "label", "jump".
10616 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
10618 (add_labels_and_missing_jumps): Likewise for local "new_jump".
10619 (fix_up_fall_thru_edges): Likewise for local "old_jump".
10620 (find_jump_block): Likewise for local "insn".
10621 (fix_crossing_conditional_branches): Likewise for locals
10622 "old_jump", "new_jump".
10623 (fix_crossing_unconditional_branches): Likewise for locals
10624 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
10625 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
10627 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10629 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
10631 (struct mem_insn): Likewise for field "insn".
10632 (reg_next_use): Strengthen from rtx * to rtx_insn **.
10633 (reg_next_inc_use): Likewise.
10634 (reg_next_def): Likewise.
10635 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
10636 from rtx to rtx_insn *.
10637 (move_insn_before): Likewise for param "next_insn" and local "insns".
10638 (attempt_change): Likewise for local "mov_insn".
10639 (try_merge): Likewise for param "last_insn".
10640 (get_next_ref): Likewise for return type and local "insn".
10641 Strengthen param "next_array" from rtx * to rtx_insn **.
10642 (parse_add_or_inc): Strengthen param "insn" from rtx to
10644 (find_inc): Likewise for locals "insn" and "other_insn" (three of
10646 (merge_in_block): Likewise for locals "insn", "curr",
10648 (pass_inc_dec::execute): Update allocations of the arrays to
10649 reflect the stronger types.
10651 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10653 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
10654 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
10655 from rtx to rtx_code_label *.
10657 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10659 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
10662 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10664 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
10665 generated a warning and prevented bootstrapping the compiler.
10667 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10669 * rtl.h (delete_related_insns): Strengthen return type from rtx to
10672 * jump.c (delete_related_insns): Likewise, also for locals "next"
10675 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10677 * genautomata.c (output_internal_insn_latency_func): When writing
10678 the function "internal_insn_latency" to insn-automata.c,
10679 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
10680 allowing the optional guard function of (define_bypass) clauses to
10681 expect a pair of rtx_insn *, rather than a pair of rtx.
10682 (output_insn_latency_func): When writing the function
10683 "insn_latency", add an "uncast_" prefix to params "insn" and
10684 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
10685 using checked casts from the params, thus enabling the above
10686 change to the generated "internal_insn_latency" function.
10688 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
10690 PR tree-optimization/62091
10691 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
10692 handle correctly arrays.
10693 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
10694 inheritance binfos.
10695 (record_known_type): Walk into inner type.
10696 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
10697 condition on no type changes.
10699 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10701 * genattrtab.c (write_attr_get): Within the generated get_attr_
10702 functions, rename param "insn" to "uncast_insn" and reintroduce
10703 "insn" as an local rtx_insn * using a checked cast, so that "insn"
10704 is an rtx_insn * within insn-attrtab.c
10706 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10708 * output.h (peephole): Strengthen return type from rtx to
10710 * rtl.h (delete_for_peephole): Likewise for both params.
10711 * genpeep.c (main): In generated "peephole" function, strengthen
10712 return type and local "insn" from rtx to rtx_insn *. For now,
10713 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
10714 rtx_insn *, with a checked cast.
10715 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
10716 locals "insn", "next", "prev" from rtx to rtx_insn *.
10718 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
10720 PR tree-optimization/62112
10721 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
10722 * gimple-iterator.h (gsi_replace): Return bool.
10723 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
10724 moved from ref_may_alias_global_p.
10725 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
10727 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
10728 (stmt_kills_ref_p_1): Rename...
10729 (stmt_kills_ref_p): ... to this.
10730 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
10731 stmt_kills_ref_p): Declare.
10732 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
10733 Move the self-assignment case...
10734 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
10736 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10738 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
10740 * emit-rtl.c (try_split): Likewise, also for locals "before" and
10741 "after". For now, don't strengthen param "trial", which requires
10742 adding checked casts when returning it.
10744 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10746 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
10747 "label" from rtx to rtx_code_label *. Strengthen param 1 of
10748 "var_location" hook from rtx to rtx_insn *.
10749 (debug_nothing_rtx): Delete in favor of...
10750 (debug_nothing_rtx_code_label): New prototype.
10751 (debug_nothing_rtx_rtx): Delete unused prototype.
10752 (debug_nothing_rtx_insn): New prototype.
10754 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
10755 invoking debug_hooks->var_location (in two places, one in a NOTE
10756 case of a switch statement, the other guarded by a CALL_P
10757 conditional. Add checked cast to rtx_code_label * when invoking
10758 debug_hooks->label (within CODE_LABEL case of switch statement).
10760 * dbxout.c (dbx_debug_hooks): Update "label" hook from
10761 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
10762 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
10763 (xcoff_debug_hooks): Likewise.
10764 * debug.c (do_nothing_debug_hooks): Likewise.
10765 (debug_nothing_rtx): Delete in favor of...
10766 (debug_nothing_rtx_insn): New function.
10767 (debug_nothing_rtx_rtx): Delete unused function.
10768 (debug_nothing_rtx_code_label): New function.
10769 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
10770 debug_nothing_rtx to debug_nothing_rtx_code_label.
10771 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
10773 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
10774 debug_nothing_rtx to debug_nothing_rtx_insn.
10775 (sdbout_label): Strengthen param "insn" from rtx to
10777 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
10778 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
10779 "var_location" hook from debug_nothing_rtx to
10780 debug_nothing_rtx_insn.
10782 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10784 * recog.h (insn_output_fn): Update this function typedef to match
10785 the changes below to the generated output functions, strengthening
10786 the 2nd param from rtx to rtx_insn *.
10788 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
10789 insn when invoking an output function, to match the new signature
10790 of insn_output_fn with a stronger second param.
10792 * genconditions.c (write_header): In the generated code for
10793 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
10794 to match the other changes in this patch.
10796 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
10797 the generated "gen_" functions from rtx to rtx_insn * within their
10800 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
10801 the subfunctions within the generated "recog_", "split", "peephole2"
10802 function trees from rtx to rtx_insn *. For now, the top-level
10803 generated functions ("recog", "split", "peephole2") continue to
10804 take a plain rtx for "insn", to avoid introducing dependencies on
10805 other patches. Rename this 2nd param from "insn" to
10806 "uncast_insn", and reintroduce "insn" as a local variable of type
10807 rtx_insn *, initialized at the top of the generated function with
10808 a checked cast on "uncast_insn".
10809 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
10810 the generated "gen_" functions from rtx to rtx_insn * within their
10813 * genoutput.c (process_template): Strengthen the 2nd param within
10814 the generated "output_" functions "insn" from rtx to rtx_insn *.
10816 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
10818 * tree-profile.c (tree_profiling): Skip external functions
10819 when doing coverage instrumentation.
10820 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
10822 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10824 * config/rs6000/altivec.h (vec_cpsgn): New #define.
10825 (vec_mergee): Likewise.
10826 (vec_mergeo): Likewise.
10827 (vec_cntlz): Likewise.
10828 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
10829 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
10830 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
10831 VMRGEW, and VMRGOW.
10832 * doc/extend.texi: Document various forms of vec_cpsgn,
10833 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
10834 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
10835 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
10836 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
10837 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
10839 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10841 * config/rs6000/rs6000.c (context.h): New include.
10842 (tree-pass.h): Likewise.
10843 (make_pass_analyze_swaps): New decl.
10844 (rs6000_option_override): Register pass_analyze_swaps.
10845 (swap_web_entry): New subsclass of web_entry_base (df.h).
10846 (special_handling_values): New enum.
10847 (union_defs): New function.
10848 (union_uses): Likewise.
10849 (insn_is_load_p): Likewise.
10850 (insn_is_store_p): Likewise.
10851 (insn_is_swap_p): Likewise.
10852 (rtx_is_swappable_p): Likewise.
10853 (insn_is_swappable_p): Likewise.
10854 (chain_purpose): New enum.
10855 (chain_contains_only_swaps): New function.
10856 (mark_swaps_for_removal): Likewise.
10857 (swap_const_vector_halves): Likewise.
10858 (adjust_subreg_index): Likewise.
10859 (permute_load): Likewise.
10860 (permute_store): Likewise.
10861 (handle_special_swappables): Likewise.
10862 (replace_swap_with_copy): Likewise.
10863 (dump_swap_insn_table): Likewise.
10864 (rs6000_analyze_swaps): Likewise.
10865 (pass_data_analyze_swaps): New pass_data.
10866 (pass_analyze_swaps): New rtl_opt_pass.
10867 (make_pass_analyze_swaps): New function.
10868 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
10870 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10872 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
10873 type from rtx to rtx_insn *.
10874 (create_copy_of_insn_rtx): Likewise.
10875 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
10876 (create_copy_of_insn_rtx): Likewise, also for local "res".
10878 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10880 * rtl.h (find_first_parameter_load): Strengthen return type from
10882 * rtlanal.c (find_first_parameter_load): Strengthen return type
10883 from rtx to rtx_insn *. Add checked cast for now, to postpone
10884 strengthening the params.
10886 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
10889 * diagnostic.c: Set default caret.
10890 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
10892 * diagnostic.h (struct diagnostic_context):
10894 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10896 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
10897 (sel_bb_head): Strengthen return type insn_t (currently just an
10898 rtx) to rtx_insn *.
10899 (sel_bb_end): Likewise.
10901 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
10902 (sel_bb_head): Strengthen return type and local "head" from
10903 insn_t (currently just an rtx) to rtx_insn *.
10904 (sel_bb_end): Likewise for return type.
10905 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
10908 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10910 * basic-block.h (get_last_bb_insn): Strengthen return type from
10912 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
10915 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
10918 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
10920 (diagnostic_report_diagnostic): ... from here.
10921 * toplev.c (general_init): Move code to c-family.
10923 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10925 * df.h (web_entry_base): Replace existing struct web_entry with a
10926 new class web_entry_base with only the predecessor member.
10927 (unionfind_root): Remove declaration and move to class member.
10928 (unionfind_union): Remove declaration and move to friend
10930 (union_defs): Remove declaration.
10931 * web.c (web_entry_base::unionfind_root): Modify to be member
10932 function and adjust accessors.
10933 (unionfind_union): Modify to be friend function and adjust
10935 (web_entry): New subclass of web_entry_base containing the reg
10937 (union_match_dups): Modify for struct -> class changes.
10938 (union_defs): Likewise.
10939 (entry_register): Likewise.
10940 (pass_web::execute): Likewise.
10942 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
10944 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
10945 builtin define __VEC_ELEMENT_REG_ORDER__.
10947 2014-08-20 Martin Jambor <mjambor@suse.cz>
10948 Wei Mi <wmi@google.com>
10951 PR middle-end/61776
10952 * tree-ssa-operands.c (update_stmt_operands): Remove
10953 MODIFIED_NORETURN_CALLS.
10954 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
10955 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
10956 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
10957 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
10958 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
10959 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
10960 (gimple_call_set_ctrl_altering): New func.
10961 (gimple_call_ctrl_altering_p): Ditto.
10962 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
10963 (make_blocks): Use gimple_call_initialize_ctrl_altering.
10964 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
10965 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
10966 remove MODIFIED_NORETURN_CALLS.
10968 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
10970 * coverage.c (coverage_compute_profile_id): Return non-0;
10971 also handle symbols with unique name.
10972 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
10974 2014-08-20 Steve Ellcey <sellcey@mips.com>
10976 PR middle-end/49191
10977 * doc/sourcebuild.texi (non_strict_align): New.
10979 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
10981 * cgraphunit.c (ipa_passes, compile): Reshedule
10982 symtab_remove_unreachable_nodes passes; update comments.
10983 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
10984 TODO_remove_functions before the pass; the functions ought to be
10986 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
10987 TODO_remove_functions.
10988 * passes.c (pass_data_early_local_passes): Do not schedule function
10990 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
10992 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
10995 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
10996 before setting the option.
10997 * diagnostic.c (diagnostic_classify_diagnostic): Record
10998 command-line status.
11000 2014-08-20 Richard Biener <rguenther@suse.de>
11003 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
11004 to build uint{16,32,64}_type_node.
11006 2014-08-20 Terry Guo <terry.guo@arm.com>
11008 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
11009 with immediate_operand.
11011 2014-08-20 David Malcolm <dmalcolm@redhat.com>
11013 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
11014 "insn" from an as_a to a safe_as_a, for the case when "insn" is
11017 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
11019 PR preprocessor/51303
11020 * incpath.c (remove_duplicates): Use cpp_warning.
11022 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
11026 * doc/options.texi (CPP): Document it.
11027 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
11028 * optc-gen.awk: Handle CPP.
11029 * opth-gen.awk: Likewise.
11031 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11033 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
11035 (duplicate_insn_chain): Likewise.
11036 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
11037 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
11038 checked cast for now (until we can strengthen the params in the
11040 (duplicate_insn_chain): Likewise.
11042 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11044 * rtl.h (next_cc0_user): Strengthen return type from rtx to
11046 (prev_cc0_setter): Likewise.
11048 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
11049 rtx_insn *, adding checked casts for now as necessary.
11050 (prev_cc0_setter): Likewise.
11052 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11054 * expr.h (emit_move_insn): Strengthen return type from rtx to
11056 (emit_move_insn_1): Likewise.
11057 (emit_move_complex_push): Likewise.
11058 (emit_move_complex_parts): Likewise.
11060 * expr.c (emit_move_via_integer): Strengthen return type from rtx
11061 to rtx_insn *. Replace use of NULL_RTX with NULL when working
11063 (emit_move_complex_push): Strengthen return type from rtx to
11065 (emit_move_complex): Likewise, also for local "ret".
11066 (emit_move_ccmode): Likewise.
11067 (emit_move_multi_word): Likewise for return type and locals
11068 "last_insn", "seq".
11069 (emit_move_insn_1): Likewise for return type and locals "result",
11071 (emit_move_insn): Likewise for return type and local "last_insn".
11072 (compress_float_constant): Likewise.
11074 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11076 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
11077 from rtx to rtx_insn *.
11079 * rtl.h (emit_insn_before): Likewise.
11080 (emit_insn_before_noloc): Likewise.
11081 (emit_insn_before_setloc): Likewise.
11082 (emit_jump_insn_before): Likewise.
11083 (emit_jump_insn_before_noloc): Likewise.
11084 (emit_jump_insn_before_setloc): Likewise.
11085 (emit_call_insn_before): Likewise.
11086 (emit_call_insn_before_noloc): Likewise.
11087 (emit_call_insn_before_setloc): Likewise.
11088 (emit_debug_insn_before): Likewise.
11089 (emit_debug_insn_before_noloc): Likewise.
11090 (emit_debug_insn_before_setloc): Likewise.
11091 (emit_label_before): Likewise.
11092 (emit_insn_after): Likewise.
11093 (emit_insn_after_noloc): Likewise.
11094 (emit_insn_after_setloc): Likewise.
11095 (emit_jump_insn_after): Likewise.
11096 (emit_jump_insn_after_noloc): Likewise.
11097 (emit_jump_insn_after_setloc): Likewise.
11098 (emit_call_insn_after): Likewise.
11099 (emit_call_insn_after_noloc): Likewise.
11100 (emit_call_insn_after_setloc): Likewise.
11101 (emit_debug_insn_after): Likewise.
11102 (emit_debug_insn_after_noloc): Likewise.
11103 (emit_debug_insn_after_setloc): Likewise.
11104 (emit_label_after): Likewise.
11105 (emit_insn): Likewise.
11106 (emit_debug_insn): Likewise.
11107 (emit_jump_insn): Likewise.
11108 (emit_call_insn): Likewise.
11109 (emit_label): Likewise.
11110 (gen_clobber): Likewise.
11111 (emit_clobber): Likewise.
11112 (gen_use): Likewise.
11113 (emit_use): Likewise.
11116 (emit_barrier_before): Strengthen return type from rtx to
11118 (emit_barrier_after): Likewise.
11119 (emit_barrier): Likewise.
11121 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
11122 from rtx to rtx_insn *. Add checked casts for now when converting
11123 "last" from rtx to rtx_insn *.
11124 (emit_insn_before_noloc): Likewise for return type.
11125 (emit_jump_insn_before_noloc): Likewise.
11126 (emit_call_insn_before_noloc): Likewise.
11127 (emit_debug_insn_before_noloc): Likewise.
11128 (emit_barrier_before): Strengthen return type and local "insn"
11129 from rtx to rtx_barrier *.
11130 (emit_label_before): Strengthen return type from rtx to
11131 rtx_insn *. Add checked cast for now when returning param
11132 (emit_pattern_after_noloc): Strengthen return type from rtx to
11133 rtx_insn *. Add checked casts for now when converting "last" from
11135 (emit_insn_after_noloc): Strengthen return type from rtx to
11137 (emit_jump_insn_after_noloc): Likewise.
11138 (emit_call_insn_after_noloc): Likewise.
11139 (emit_debug_insn_after_noloc): Likewise.
11140 (emit_barrier_after): Strengthen return type from rtx to
11142 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
11143 Add checked cast for now when converting "label" from rtx to
11145 (emit_pattern_after_setloc): Strengthen return type from rtx to
11146 rtx_insn *. Add checked casts for now when converting "last" from
11148 (emit_pattern_after): Strengthen return type from rtx to
11150 (emit_insn_after_setloc): Likewise.
11151 (emit_insn_after): Likewise.
11152 (emit_jump_insn_after_setloc): Likewise.
11153 (emit_jump_insn_after): Likewise.
11154 (emit_call_insn_after_setloc): Likewise.
11155 (emit_call_insn_after): Likewise.
11156 (emit_debug_insn_after_setloc): Likewise.
11157 (emit_debug_insn_after): Likewise.
11158 (emit_pattern_before_setloc): Likewise. Add checked casts for now
11159 when converting "last" from rtx to rtx_insn *.
11160 (emit_pattern_before): Strengthen return type from rtx to
11162 (emit_insn_before_setloc): Likewise.
11163 (emit_insn_before): Likewise.
11164 (emit_jump_insn_before_setloc): Likewise.
11165 (emit_jump_insn_before): Likewise.
11166 (emit_call_insn_before_setloc): Likewise.
11167 (emit_call_insn_before): Likewise.
11168 (emit_debug_insn_before_setloc): Likewise.
11169 (emit_debug_insn_before): Likewise.
11170 (emit_insn): Strengthen return type and locals "last", "insn",
11171 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
11172 within cases where we know we have an insn.
11173 (emit_debug_insn): Likewise.
11174 (emit_jump_insn): Likewise.
11175 (emit_call_insn): Strengthen return type and local "insn" from rtx
11177 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
11178 a checked cast to rtx_insn * for now on "label".
11179 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
11180 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
11181 (emit_use): Likewise.
11182 (gen_use): Likewise, also for local "seq".
11183 (emit): Likewise for return type and local "insn".
11184 (rtx_insn): Likewise for return type and local "new_rtx".
11186 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
11187 from rtx to rtx_barrier *.
11189 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
11190 changed return type from rtx to rtx_insn *, we must update
11191 "emit_fn" type, and this in turn means updating...
11192 (frame_insn): ...this. Strengthen return type from rtx to
11193 rtx_insn *. Introduce a new local "insn" of the appropriate type.
11195 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11197 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
11198 rtx to rtx_jump_table_data *. Also for local.
11199 * rtl.h (emit_jump_table_data): Likewise.
11201 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11203 * basic-block.h (create_basic_block_structure): Strengthen third
11204 param "bb_note" from rtx to rtx_note *.
11205 * rtl.h (emit_note_before): Strengthen return type from rtx to
11207 (emit_note_after): Likewise.
11208 (emit_note): Likewise.
11209 (emit_note_copy): Likewise. Also, strengthen param similarly.
11210 * function.h (struct rtl_data): Strengthen field
11211 "x_stack_check_probe_note" from rtx to rtx_note *.
11213 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
11214 from rtx to rtx_note *.
11215 * cfgrtl.c (create_basic_block_structure): Strengthen third param
11216 "bb_note" from rtx to rtx_note *.
11217 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
11218 when calling emit_note_copy.
11219 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
11221 (emit_note_after): Likewise.
11222 (emit_note_before): Likewise.
11223 (emit_note_copy): Likewise. Also, strengthen param similarly.
11224 (emit_note): Likewise.
11225 * except.c (emit_note_eh_region_end): Likewise for return type.
11226 Strengthen local "next" from rtx to rtx_insn *.
11227 (convert_to_eh_region_ranges): Strengthen local "note"
11228 from rtx to rtx_note *.
11229 * final.c (change_scope): Likewise.
11230 (reemit_insn_block_notes): Likewise, for both locals named "note".
11231 Also, strengthen local "insn" from rtx to rtx_insn *.
11232 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
11234 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
11235 strengthen local "seq" from rtx to rtx_insn *.
11236 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
11238 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
11240 (get_bb_note_from_pool): Strengthen return type from rtx to
11242 (sel_create_basic_block): Strengthen local "new_bb_note" from
11243 insn_t to rtx_note *.
11244 * var-tracking.c (emit_note_insn_var_location): Strengthen local
11245 "note" from rtx to rtx_note *.
11246 (emit_notes_in_bb): Likewise.
11248 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11250 * function.h (struct rtl_data): Strengthen field
11251 "x_parm_birth_insn" from rtx to rtx_insn *.
11252 * function.c (struct assign_parm_data_all): Strengthen fields
11253 "first_conversion_insn" and "last_conversion_insn" from rtx to
11256 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11258 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
11259 to rtx_insn *; also for local "var_end_seq".
11260 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
11261 (maybe_cleanup_end_of_block): Likewise for param "last" and local
11263 (expand_gimple_cond): Likewise for locals "last2" and "last".
11264 (mark_transaction_restart_calls): Likewise for local "insn".
11265 (expand_gimple_stmt): Likewise for return type and locals "last"
11267 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
11268 (avoid_complex_debug_insns): Likewise for param "insn".
11269 (expand_debug_locations): Likewise for locals "insn", "last",
11270 "prev_insn" and "insn2".
11271 (expand_gimple_basic_block): Likewise for local "last".
11272 (construct_exit_block): Likewise for locals "head", "end",
11274 (pass_expand::execute): Likewise for locals "var_seq",
11275 "var_ret_seq", "next".
11277 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11279 * asan.h (asan_emit_stack_protection): Strengthen return type from
11281 * asan.c (asan_emit_stack_protection): Likewise. Add local
11282 "insns" to hold the return value.
11284 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11286 * basic-block.h (bb_note): Strengthen return type from rtx to
11288 * sched-int.h (bb_note): Likewise.
11289 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
11291 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11293 * rtl.h (make_insn_raw): Strengthen return type from rtx to
11296 * emit-rtl.c (make_insn_raw): Strengthen return type and local
11297 "insn" from rtx to rtx_insn *.
11298 (make_debug_insn_raw): Strengthen return type from rtx to
11299 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
11300 (make_jump_insn_raw): Strengthen return type from rtx to
11301 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
11302 (make_call_insn_raw): Strengthen return type from rtx to
11303 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
11304 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
11305 callback from rtx to rtx_insn *; likewise for local "insn" and
11306 "next", adding a checked cast to rtx_insn in the relevant cases of
11307 the switch statement.
11308 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
11309 callback from rtx to rtx_insn *.
11310 (emit_pattern_after_setloc): Likewise.
11311 (emit_pattern_after): Likewise.
11312 (emit_pattern_before_setloc): Likewise.
11313 (emit_pattern_before): Likewise.
11315 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11317 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
11319 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
11320 accepting an rtx_insn *.
11321 (last_call_insn): Strengthen return type from rtx to
11324 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11326 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
11327 "insns" from rtx to rtx_insn *.
11328 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
11329 locals "insn" and "prev".
11331 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11333 * rtl.h (tablejump_p): Strengthen third param from rtx * to
11334 rtx_jump_table_data **.
11336 * cfgbuild.c (make_edges): Introduce local "table", using it in
11337 place of "tmp" for jump table data.
11338 (find_bb_boundaries): Strengthen local "table" from rtx to
11339 rtx_jump_table_data *.
11340 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
11341 (outgoing_edges_match): Likewise for locals "table1" and "table2".
11342 (try_crossjump_to_edge): Likewise.
11343 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
11345 (patch_jump_insn): Introduce local "table", using it in place of
11346 "tmp" for jump table data.
11347 (force_nonfallthru_and_redirect): Introduce local "table", so that
11348 call to tablejump_p can receive an rtx_jump_table_data **. Update
11349 logic around the call to overwrite "note" appropriately if
11350 tablejump_p returns non-zero.
11351 (get_last_bb_insn): Introduce local "table", using it in place of
11352 "tmp" for jump table data.
11353 * dwarf2cfi.c (create_trace_edges): Likewise.
11355 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
11356 from rtx to rtx_jump_table_data *.
11357 (create_fix_barrier): Strengthen local "tmp" from rtx to
11358 rtx_jump_table_data *.
11359 (arm_reorg): Likewise for local "table".
11361 * config/s390/s390.c (s390_chunkify_start): Likewise.
11363 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
11365 * jump.c (delete_related_insns): Strengthen local "lab_next" from
11366 rtx to rtx_jump_table_data *.
11368 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
11369 rtx_jump_table_data **. Add a checked cast when writing through
11370 the pointer: we know there that local "table" is non-NULL and that
11371 JUMP_TABLE_DATA_P (table) holds.
11372 (label_is_jump_target_p): Introduce local "table", using it in
11373 place of "tmp" for jump table data.
11375 2014-08-19 Marek Polacek <polacek@redhat.com>
11378 * doc/invoke.texi: Document -Wbool-compare.
11380 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11382 * rtl.h (entry_of_function): Strengthen return type from rtx to
11384 * cfgrtl.c (entry_of_function): Likewise.
11386 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11388 * emit-rtl.h (get_insns): Strengthen return type from rtx to
11389 rtx_insn *, adding a checked cast for now.
11390 (get_last_insn): Likewise.
11392 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11394 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
11397 * emit-rtl.c (gen_label_rtx): Likewise.
11399 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11401 * rtl.h (previous_insn): Strengthen return type from rtx to
11403 (next_insn): Likewise.
11404 (prev_nonnote_insn): Likewise.
11405 (prev_nonnote_insn_bb): Likewise.
11406 (next_nonnote_insn): Likewise.
11407 (next_nonnote_insn_bb): Likewise.
11408 (prev_nondebug_insn): Likewise.
11409 (next_nondebug_insn): Likewise.
11410 (prev_nonnote_nondebug_insn): Likewise.
11411 (next_nonnote_nondebug_insn): Likewise.
11412 (prev_real_insn): Likewise.
11413 (next_real_insn): Likewise.
11414 (prev_active_insn): Likewise.
11415 (next_active_insn): Likewise.
11417 * emit-rtl.c (next_insn): Strengthen return type from rtx to
11418 rtx_insn *, adding a checked cast.
11419 (previous_insn): Likewise.
11420 (next_nonnote_insn): Likewise.
11421 (next_nonnote_insn_bb): Likewise.
11422 (prev_nonnote_insn): Likewise.
11423 (prev_nonnote_insn_bb): Likewise.
11424 (next_nondebug_insn): Likewise.
11425 (prev_nondebug_insn): Likewise.
11426 (next_nonnote_nondebug_insn): Likewise.
11427 (prev_nonnote_nondebug_insn): Likewise.
11428 (next_real_insn): Likewise.
11429 (prev_real_insn): Likewise.
11430 (next_active_insn): Likewise.
11431 (prev_active_insn): Likewise.
11433 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
11434 param "stepfunc" so that it returns an rtx_insn * rather than an
11435 rtx, to track the change to prev_nonnote_insn_bb, which is the
11436 only function this is called with.
11437 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
11439 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
11441 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
11444 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11446 * coretypes.h (class rtx_debug_insn): Add forward declaration.
11447 (class rtx_nonjump_insn): Likewise.
11448 (class rtx_jump_insn): Likewise.
11449 (class rtx_call_insn): Likewise.
11450 (class rtx_jump_table_data): Likewise.
11451 (class rtx_barrier): Likewise.
11452 (class rtx_code_label): Likewise.
11453 (class rtx_note): Likewise.
11455 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
11456 adding the invariant DEBUG_INSN_P (X).
11457 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
11458 the invariant NONJUMP_INSN_P (X).
11459 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
11460 the invariant JUMP_P (X).
11461 (class rtx_call_insn): New, a subclass of rtx_insn, adding
11462 the invariant CALL_P (X).
11463 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
11464 invariant JUMP_TABLE_DATA_P (X).
11465 (class rtx_barrier): New, a subclass of rtx_insn, adding the
11466 invariant BARRIER_P (X).
11467 (class rtx_code_label): New, a subclass of rtx_insn, adding
11468 the invariant LABEL_P (X).
11469 (class rtx_note): New, a subclass of rtx_insn, adding
11470 the invariant NOTE_P(X).
11471 (is_a_helper <rtx_debug_insn *>::test): New.
11472 (is_a_helper <rtx_nonjump_insn *>::test): New.
11473 (is_a_helper <rtx_jump_insn *>::test): New.
11474 (is_a_helper <rtx_call_insn *>::test): New.
11475 (is_a_helper <rtx_jump_table_data *>::test): New functions,
11476 overloaded for both rtx and rtx_insn *.
11477 (is_a_helper <rtx_barrier *>::test): New.
11478 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
11479 for both rtx and rtx_insn *.
11480 (is_a_helper <rtx_note *>::test): New.
11482 2014-08-19 Marek Polacek <polacek@redhat.com>
11484 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
11485 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
11486 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
11487 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
11489 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11491 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
11492 rtx_insn *. To help with transition, for now, convert from an
11493 access macro into a pair of functions: BND_TO, returning an
11495 (SET_BND_TO): New function, for use where BND_TO is used as an
11498 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
11500 (BND_TO): New function, adding a checked cast.
11501 (SET_BND_TO): New function.
11503 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
11505 (compute_av_set_on_boundaries): Likewise.
11507 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
11509 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
11510 destination if it is used in source.
11511 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
11512 (*popcount<mode>2_falsedep_1): Likewise.
11514 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
11517 * configure.ac: Set install_gold_as_default to no first.
11518 * configure: Regenerated.
11520 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11522 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
11523 "note_list" field will eventually be an rtx_insn *. To help with
11524 transition, for now, convert from an access macro into a pair of
11525 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
11526 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
11529 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
11530 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
11532 * sel-sched-ir.c (init_bb): Likewise.
11533 (sel_restore_notes): Likewise.
11534 (move_bb_info): Likewise.
11535 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
11536 (SET_BB_NOTE_LIST): New function.
11538 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11540 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
11541 field will eventually be an rtx_insn *. To help with transition,
11542 for now, convert from an access macro into a pair of functions:
11543 VINSN_INSN_RTX, returning an rtx_insn *, and...
11544 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
11545 is used as an lvalue.
11547 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
11548 SET_VINSN_INSN_RTX where it's used as an lvalue.
11549 (VINSN_INSN_RTX): New function.
11550 (SET_VINSN_INSN_RTX): New function.
11552 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11554 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
11555 eventually be rtx_insn *, but to help with transition, for now,
11556 convert from an access macro into a pair of functions: DEP_PRO
11557 returning an rtx_insn * and...
11558 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
11559 lvalue, returning an rtx&.
11560 (DEP_CON): Analogous changes to DEP_PRO above.
11561 (SET_DEP_CON): Likewise.
11563 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
11564 an lvalue to SET_DEP_CON.
11565 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
11566 (sd_copy_back_deps): Likewise for DEP_CON.
11567 (DEP_PRO): New function, adding a checked cast for now.
11568 (DEP_CON): Likewise.
11569 (SET_DEP_PRO): New function.
11570 (SET_DEP_CON): Likewise.
11572 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
11574 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
11575 (extra_options): Add i386/cygwin.opt.
11576 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
11577 (CPP_SPEC): Accept -pthread.
11578 (LINK_SPEC): Ditto.
11579 (GOMP_SELF_SPECS): Update comment.
11580 * config/i386/cygwin.opt: New file for -pthread flag.
11582 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11584 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
11585 * df.h (DF_REF_INSN): Convert from a macro to a function, so
11586 that we can return an rtx_insn *.
11588 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
11590 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
11591 when building executables, not DLLs. Add --large-address-aware
11592 under the same conditions.
11593 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
11594 when building executables, not DLLs. Add --large-address-aware
11595 under the same conditions when using -m32.
11597 * config/i386/cygwin-stdint.h: Throughout, make type
11598 definitions dependent on target architecture, not host.
11600 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11602 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
11603 the return type from rtx to rtx_insn *, which will enable various
11604 conversions in followup patches. For now this is is done by a
11606 (NEXT_INSN): Likewise.
11607 (SET_PREV_INSN): Convert to an inline function. This is intended
11608 for use as an lvalue, and so returns an rtx& to allow in-place
11610 (SET_NEXT_INSN): Likewise.
11612 2014-07-08 Mark Wielaard <mjw@redhat.com>
11615 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
11617 2014-08-19 Marek Polacek <polacek@redhat.com>
11620 * cgraphunit.c (handle_alias_pairs): Fix condition.
11622 2014-08-19 Richard Biener <rguenther@suse.de>
11624 * gimple-fold.c (fold_gimple_assign): Properly build a
11625 null-pointer constant when devirtualizing addresses.
11627 2014-07-07 Mark Wielaard <mjw@redhat.com>
11629 * dwarf2out.c (decl_quals): New function.
11630 (modified_type_die): Take one cv_quals argument instead of two,
11631 one for const and one for volatile.
11632 (add_type_attribute): Likewise.
11633 (generic_parameter_die): Call add_type_attribute with one modifier
11635 (base_type_for_mode): Likewise.
11636 (add_bounds_info): Likewise.
11637 (add_subscript_info): Likewise.
11638 (gen_array_type_die): Likewise.
11639 (gen_descr_array_type_die): Likewise.
11640 (gen_entry_point_die): Likewise.
11641 (gen_enumeration_type_die): Likewise.
11642 (gen_formal_parameter_die): Likewise.
11643 (gen_subprogram_die): Likewise.
11644 (gen_variable_die): Likewise.
11645 (gen_const_die): Likewise.
11646 (gen_field_die): Likewise.
11647 (gen_pointer_type_die): Likewise.
11648 (gen_reference_type_die): Likewise.
11649 (gen_ptr_to_mbr_type_die): Likewise.
11650 (gen_inheritance_die): Likewise.
11651 (gen_subroutine_type_die): Likewise.
11652 (gen_typedef_die): Likewise.
11653 (force_type_die): Likewise.
11655 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11657 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
11659 * configure: Regenerate.
11661 2014-08-19 Richard Biener <rguenther@suse.de>
11663 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
11664 DECL_EXTERNALs in BLOCKs as non-references.
11665 * tree-streamer-out.c (streamer_write_chain): Likewise.
11667 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
11668 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11669 Anna Tikhonova <anna.tikhonova@intel.com>
11670 Ilya Tocar <ilya.tocar@intel.com>
11671 Andrey Turetskiy <andrey.turetskiy@intel.com>
11672 Ilya Verbin <ilya.verbin@intel.com>
11673 Kirill Yukhin <kirill.yukhin@intel.com>
11674 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11676 * config/i386/sse.md
11677 (define_mode_iterator VI48_AVX512F): Delete.
11678 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
11679 (define_mode_iterator VI2_AVX512VL): Ditto.
11680 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
11683 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
11685 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
11686 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
11687 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
11688 with VI48_AVX512F_AVX512VL): New.
11689 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
11690 with VI2_AVX512VL): Ditto.
11692 2014-08-19 Marek Polacek <polacek@redhat.com>
11694 * doc/invoke.texi: Document -Wc99-c11-compat.
11696 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11698 * rtl.h (PREV_INSN): Split macro in two: the existing one,
11699 for rvalues, and...
11700 (SET_PREV_INSN): New macro, for use as an lvalue.
11701 (NEXT_INSN, SET_NEXT_INSN): Likewise.
11703 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
11704 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
11705 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
11706 (fixup_abnormal_edges): Likewise.
11707 (unlink_insn_chain): Likewise.
11708 (fixup_reorder_chain): Likewise.
11709 (cfg_layout_delete_block): Likewise.
11710 (cfg_layout_merge_blocks): Likewise.
11711 * combine.c (update_cfg_for_uncondjump): Likewise.
11712 * emit-rtl.c (link_insn_into_chain): Likewise.
11713 (remove_insn): Likewise.
11714 (delete_insns_since): Likewise.
11715 (reorder_insns_nobb): Likewise.
11716 (emit_insn_after_1): Likewise.
11717 * final.c (rest_of_clean_state): Likewise.
11718 (final_scan_insn): Likewise.
11719 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
11720 * haifa-sched.c (concat_note_lists): Likewise.
11721 (remove_notes): Likewise.
11722 (restore_other_notes): Likewise.
11723 (move_insn): Likewise.
11724 (unlink_bb_notes): Likewise.
11725 (restore_bb_notes): Likewise.
11726 * jump.c (delete_for_peephole): Likewise.
11727 * optabs.c (emit_libcall_block_1): Likewise.
11728 * reorg.c (emit_delay_sequence): Likewise.
11729 (fill_simple_delay_slots): Likewise.
11730 * sel-sched-ir.c (sel_move_insn): Likewise.
11731 (sel_remove_insn): Likewise.
11732 (get_bb_note_from_pool): Likewise.
11733 * sel-sched.c (move_nop_to_previous_block): Likewise.
11735 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
11736 * config/c6x/c6x.c (gen_one_bundle): Likewise.
11737 (c6x_gen_bundles): Likewise.
11738 (hwloop_optimize): Likewise.
11739 * config/frv/frv.c (frv_function_prologue): Likewise.
11740 (frv_register_nop): Likewise.
11741 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
11742 (ia64_reorg): Likewise.
11743 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
11744 (mep_make_bundle): Likewise.
11745 (mep_bundle_insns): Likewise.
11746 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
11747 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
11748 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
11750 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11752 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
11753 return type from rtx to rtx_insn *.
11754 (BB_END): Likewise.
11755 (BB_HEADER): Likewise.
11756 (BB_FOOTER): Likewise.
11757 (SET_BB_HEAD): Convert to a function.
11758 (SET_BB_END): Likewise.
11759 (SET_BB_HEADER): Likewise.
11760 (SET_BB_FOOTER): Likewise.
11762 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
11763 Strengthen the return type from rtx to rtx_insn *. For now, this
11764 is done by adding a checked cast, but this will eventually
11765 become a field lookup.
11766 (BB_END): Likewise.
11767 (BB_HEADER): Likewise.
11768 (BB_FOOTER): Likewise.
11769 (SET_BB_HEAD): New function, from macro of same name. This is
11770 intended for use as an lvalue, and so returns an rtx& to allow
11771 in-place modification.
11772 (SET_BB_END): Likewise.
11773 (SET_BB_HEADER): Likewise.
11774 (SET_BB_FOOTER): Likewise.
11776 2014-08-18 David Malcolm <dmalcolm@redhat.com>
11778 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
11779 for rvalues, and...
11780 (SET_BB_HEAD): New macro, for use as a lvalue.
11781 (BB_END, SET_BB_END): Likewise.
11782 (BB_HEADER, SET_BB_HEADER): Likewise.
11783 (BB_FOOTER, SET_BB_FOOTER): Likewise.
11785 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
11786 of BB_* macros into SET_BB_* macros.
11787 (fix_crossing_unconditional_branches): Likewise.
11788 * caller-save.c (save_call_clobbered_regs): Likewise.
11789 (insert_one_insn): Likewise.
11790 * cfgbuild.c (find_bb_boundaries): Likewise.
11791 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
11792 (outgoing_edges_match): Likewise.
11793 (try_optimize_cfg): Likewise.
11794 * cfgexpand.c (expand_gimple_cond): Likewise.
11795 (expand_gimple_tailcall): Likewise.
11796 (expand_gimple_basic_block): Likewise.
11797 (construct_exit_block): Likewise.
11798 * cfgrtl.c (delete_insn): Likewise.
11799 (create_basic_block_structure): Likewise.
11800 (rtl_delete_block): Likewise.
11801 (rtl_split_block): Likewise.
11802 (emit_nop_for_unique_locus_between): Likewise.
11803 (rtl_merge_blocks): Likewise.
11804 (block_label): Likewise.
11805 (try_redirect_by_replacing_jump): Likewise.
11806 (emit_barrier_after_bb): Likewise.
11807 (fixup_abnormal_edges): Likewise.
11808 (record_effective_endpoints): Likewise.
11809 (relink_block_chain): Likewise.
11810 (fixup_reorder_chain): Likewise.
11811 (fixup_fallthru_exit_predecessor): Likewise.
11812 (cfg_layout_duplicate_bb): Likewise.
11813 (cfg_layout_split_block): Likewise.
11814 (cfg_layout_delete_block): Likewise.
11815 (cfg_layout_merge_blocks): Likewise.
11816 * combine.c (update_cfg_for_uncondjump): Likewise.
11817 * emit-rtl.c (add_insn_after): Likewise.
11818 (remove_insn): Likewise.
11819 (reorder_insns): Likewise.
11820 (emit_insn_after_1): Likewise.
11821 * haifa-sched.c (get_ebb_head_tail): Likewise.
11822 (restore_other_notes): Likewise.
11823 (move_insn): Likewise.
11824 (sched_extend_bb): Likewise.
11825 (fix_jump_move): Likewise.
11826 * ifcvt.c (noce_process_if_block): Likewise.
11827 (dead_or_predicable): Likewise.
11828 * ira.c (update_equiv_regs): Likewise.
11829 * reg-stack.c (change_stack): Likewise.
11830 * sel-sched-ir.c (sel_move_insn): Likewise.
11831 * sel-sched.c (move_nop_to_previous_block): Likewise.
11833 * config/c6x/c6x.c (hwloop_optimize): Likewise.
11834 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
11836 2014-08-18 David Malcolm <dmalcolm@redhat.com>
11838 * rtl.h (for_each_rtx_in_insn): New function.
11839 * rtlanal.c (for_each_rtx_in_insn): Likewise.
11841 2014-08-18 David Malcolm <dmalcolm@redhat.com>
11843 * coretypes.h (class rtx_insn): Add forward declaration.
11845 * rtl.h: Include is-a.h.
11846 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
11847 workaround to ensure gengtype knows inheritance is occurring,
11848 whilst continuing to use the pre-existing special-casing for
11850 (class rtx_insn): New subclass of rtx_def, adding the
11851 invariant that we're dealing with something we can sanely use
11852 INSN_UID, NEXT_INSN, PREV_INSN on.
11853 (is_a_helper <rtx_insn *>::test): New.
11854 (is_a_helper <const rtx_insn *>::test): New.
11856 2014-08-18 David Malcolm <dmalcolm@redhat.com>
11858 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
11860 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
11862 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
11865 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
11867 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
11868 to BUILT_IN_UNREACHABLE.
11870 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
11873 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
11875 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
11876 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
11877 (ffs<mode>2): Do not expand with tzcnt for
11878 TARGET_AVOID_FALSE_DEP_FOR_BMI.
11879 (ffssi2_no_cmove): Ditto.
11880 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
11881 (ctz<mode>2): New expander.
11882 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
11883 (*ctz<mode>2_falsedep): New insn.
11884 (*ctz<mode>2): Rename from ctz<mode>2.
11885 (clz<mode>2_lzcnt): New expander.
11886 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
11887 (*clz<mode>2_lzcnt_falsedep): New insn.
11888 (*clz<mode>2): Rename from ctz<mode>2.
11889 (popcount<mode>2): New expander.
11890 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
11891 (*popcount<mode>2_falsedep): New insn.
11892 (*popcount<mode>2): Rename from ctz<mode>2.
11893 (*popcount<mode>2_cmp): Remove.
11894 (*popcountsi2_cmp_zext): Ditto.
11896 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
11898 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
11899 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
11900 * config/microblaze/microblaze.h
11901 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
11903 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
11906 * configure.ac: Set install_gold_as_default to no for
11908 * configure: Regenerated.
11910 2014-08-18 Roman Gareev <gareevroman@gmail.com>
11912 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
11913 * config.in: Add undef of HAVE_isl.
11914 * configure: Regenerate.
11915 * configure.ac: Add definition of HAVE_isl.
11916 * graphite-blocking.c: Add checking of HAVE_isl.
11917 * graphite-dependences.c: Likewise.
11918 * graphite-interchange.c: Likewise.
11919 * graphite-isl-ast-to-gimple.c: Likewise.
11920 * graphite-optimize-isl.c: Likewise.
11921 * graphite-poly.c: Likewise.
11922 * graphite-scop-detection.c: Likewise.
11923 * graphite-sese-to-poly.c: Likewise.
11924 * graphite.c: Likewise.
11925 * toplev.c: Replace the checking of HAVE_cloog with the checking
11928 2014-08-18 Richard Biener <rguenther@suse.de>
11930 PR tree-optimization/62090
11931 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
11932 (fold_builtin_3): Do not fold snprintf.
11933 (fold_builtin_4): Likewise.
11934 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
11935 moved from builtins.c.
11936 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
11937 (gimple_fold_builtin): Do not fold sprintf here.
11939 2014-08-18 Richard Biener <rguenther@suse.de>
11941 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
11943 (maybe_canonicalize_mem_ref_addr): ... this function.
11944 (fold_stmt_1): Apply it here before all simplification.
11946 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
11949 * cgraph.h (cgraph_node::create_indirect_edge): Add
11950 compute_indirect_info param.
11951 * cgraph.c (cgraph_node::create_indirect_edge): Compute
11952 indirect_info only when it is required.
11953 * cgraphclones.c (cgraph_clone_edge): Do not recompute
11954 indirect_info fore cloned indirect edge.
11956 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
11957 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11958 Anna Tikhonova <anna.tikhonova@intel.com>
11959 Ilya Tocar <ilya.tocar@intel.com>
11960 Andrey Turetskiy <andrey.turetskiy@intel.com>
11961 Ilya Verbin <ilya.verbin@intel.com>
11962 Kirill Yukhin <kirill.yukhin@intel.com>
11963 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11965 * config/i386/sse.md
11966 (define_mode_iterator VI8_AVX2_AVX512BW): New.
11967 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
11969 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
11970 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11971 Anna Tikhonova <anna.tikhonova@intel.com>
11972 Ilya Tocar <ilya.tocar@intel.com>
11973 Andrey Turetskiy <andrey.turetskiy@intel.com>
11974 Ilya Verbin <ilya.verbin@intel.com>
11975 Kirill Yukhin <kirill.yukhin@intel.com>
11976 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11978 * config/i386/sse.md
11979 (define_mode_iterator VF1_AVX512VL): New.
11980 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
11981 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
11984 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
11985 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11986 Anna Tikhonova <anna.tikhonova@intel.com>
11987 Ilya Tocar <ilya.tocar@intel.com>
11988 Andrey Turetskiy <andrey.turetskiy@intel.com>
11989 Ilya Verbin <ilya.verbin@intel.com>
11990 Kirill Yukhin <kirill.yukhin@intel.com>
11991 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11993 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
11994 * config/i386/i386.md
11995 (define_code_iterator any_float): New.
11996 (define_code_attr floatsuffix): New.
11997 * config/i386/sse.md
11998 (define_mode_iterator VF1_128_256VL): New.
11999 (define_mode_iterator VF2_512_256VL): New.
12000 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
12002 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
12003 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
12005 (define_mode_attr qq2pssuff): New.
12006 (define_mode_attr sselongvecmode): New.
12007 (define_mode_attr sselongvecmodelower): New.
12008 (define_mode_attr sseintvecmode3): New.
12009 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
12011 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
12012 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
12013 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
12014 (define_insn "ufloatv2siv2df2<mask_name>"): New.
12016 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
12017 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12018 Anna Tikhonova <anna.tikhonova@intel.com>
12019 Ilya Tocar <ilya.tocar@intel.com>
12020 Andrey Turetskiy <andrey.turetskiy@intel.com>
12021 Ilya Verbin <ilya.verbin@intel.com>
12022 Kirill Yukhin <kirill.yukhin@intel.com>
12023 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12025 * config/i386/sse.md
12026 (define_mode_iterator VF2_AVX512VL): New.
12027 (define_mode_attr sseintvecmode2): New.
12028 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
12029 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
12030 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
12032 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
12034 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
12036 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
12039 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
12040 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12041 Anna Tikhonova <anna.tikhonova@intel.com>
12042 Ilya Tocar <ilya.tocar@intel.com>
12043 Andrey Turetskiy <andrey.turetskiy@intel.com>
12044 Ilya Verbin <ilya.verbin@intel.com>
12045 Kirill Yukhin <kirill.yukhin@intel.com>
12046 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12048 * config/i386/i386.md
12049 (define_insn "*movoi_internal_avx"): Add evex version.
12050 (define_insn "*movti_internal"): Ditto.
12052 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
12053 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12054 Anna Tikhonova <anna.tikhonova@intel.com>
12055 Ilya Tocar <ilya.tocar@intel.com>
12056 Andrey Turetskiy <andrey.turetskiy@intel.com>
12057 Ilya Verbin <ilya.verbin@intel.com>
12058 Kirill Yukhin <kirill.yukhin@intel.com>
12059 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12061 * config/i386/i386.md
12062 (define_attr "isa"): Add avx512dq, noavx512dq.
12063 (define_attr "enabled"): Ditto.
12064 * config/i386/sse.md
12065 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
12067 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
12068 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12069 Anna Tikhonova <anna.tikhonova@intel.com>
12070 Ilya Tocar <ilya.tocar@intel.com>
12071 Andrey Turetskiy <andrey.turetskiy@intel.com>
12072 Ilya Verbin <ilya.verbin@intel.com>
12073 Kirill Yukhin <kirill.yukhin@intel.com>
12074 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12076 * config/i386/i386.c
12077 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
12078 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
12079 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
12080 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
12081 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
12082 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
12083 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
12084 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
12085 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
12086 * config/i386/sse.md
12087 (define_mode_iterator VMOVE): Allow V4TI mode.
12088 (define_mode_iterator V_AVX512VL): New.
12089 (define_mode_iterator V): New handling for AVX512VL.
12090 (define_insn "avx512f_load<mode>_mask"): Delete.
12091 (define_insn "<avx512>_load<mode>_mask"): New.
12092 (define_insn "avx512f_store<mode>_mask"): Delete.
12093 (define_insn "<avx512>_store<mode>_mask"): New.
12096 2014-08-18 Yury Gribov <y.gribov@samsung.com>
12099 * asan.c (instrument_derefs): Fix bitfield check.
12101 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
12103 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
12104 * config/rs6000/htm.md (ttest): Remove clobber.
12105 * config/rs6000/predicates.md (any_mask_operand): New predicate.
12106 (and_operand): Reformat.
12107 (and_2rld_operand): New predicate.
12108 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
12110 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
12111 parameter. Handle AND directly.
12112 (rs6000_split_logical_di): Remove last parameter.
12113 (rs6000_split_logical): Remove last parameter. Remove obsolete
12115 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
12116 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
12117 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
12118 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
12119 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
12120 and 5 anonymous splitters): Delete.
12121 (and<mode>3): New expander.
12122 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
12123 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
12124 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
12125 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
12126 (floatdisf2_internal1): Remove clobbers.
12127 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
12128 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
12129 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
12130 (and<mode>3 for BOOL_128): Remove clobber.
12131 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
12132 rs6000_split_logical.
12133 (*bool<mode>3_internal for BOOL_128): Adjust call of
12134 rs6000_split_logical.
12135 (*boolc<mode>3_internal1 for BOOL_128,
12136 *boolc<mode>3_internal2 for BOOL_128,
12137 *boolcc<mode>3_internal1 for BOOL_128,
12138 *boolcc<mode>3_internal2 for BOOL_128,
12139 *eqv<mode>3_internal1 for BOOL_128,
12140 *eqv<mode>3_internal2 for BOOL_128,
12141 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
12142 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
12144 (*vec_reload_and_reg_<mptrsize>): Delete.
12146 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
12148 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
12149 and split, *boolccsi3_internal3 and split): Delete.
12150 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
12151 *boolccdi3_internal3 and split): Delete.
12152 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
12153 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
12155 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
12157 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
12158 and split, *boolcsi3_internal3 and split): Delete.
12159 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
12160 *boolcdi3_internal3 and split): Delete.
12161 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
12163 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
12165 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
12166 <'u'>: Also support printing the low-order 16 bits.
12167 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
12168 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
12169 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
12170 *booldi3_internal3 and split): Delete.
12171 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
12172 *bool<mode>3_dot2): New.
12173 (two anonymous define_splits for non_logical_cint_operand): Merge.
12175 2014-08-17 Marek Polacek <polacek@redhat.com>
12176 Manuel López-Ibáñez <manu@gcc.gnu.org>
12179 * diagnostic.c (adjust_line): Add gcc_checking_assert.
12180 (diagnostic_show_locus): Don't print caret diagnostic
12181 if a column is larger than the line_width.
12183 2014-08-17 Roman Gareev <gareevroman@gmail.com>
12185 * common.opt: Make the ISL AST generator to be the main code generator
12188 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
12190 * wide-int.h (generic_wide_int): Declare as class instead of struct.
12192 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
12195 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
12197 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
12198 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
12199 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
12201 * config/pa/pa.md (begin_brtab): Delete insn.
12202 (end_brtab): Likewise.
12204 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
12206 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
12208 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
12210 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
12211 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
12212 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
12213 (get_dynamic_type): Remove.
12214 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
12215 (clear_speculation): Bring to ipa-deivrt.h
12216 (get_class_context): Rename to ...
12217 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
12218 (contains_type_p): Update.
12219 (get_dynamic_type): Rename to ...
12220 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
12221 (possible_polymorphic_call_targets): UPdate.
12222 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
12223 * ipa-prop.c (ipa_analyze_call_uses): Update.
12225 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
12227 * doc/invoke.texi (SH options): Document missing processor variant
12228 options. Remove references to Hitachi. Undocument deprecated mspace
12231 2014-08-15 Jason Merrill <jason@redhat.com>
12233 * tree.c (type_hash_canon): Uncomment assert.
12235 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
12237 * input.h (in_system_header_at): Add comment.
12239 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
12242 * diagnostic.c (build_message_string): Make it extern.
12243 * diagnostic.h (build_message_string): Make it extern.
12245 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
12247 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
12248 load/store from/to non-floating class pseudo.
12250 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
12252 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
12254 2014-08-15 Richard Biener <rguenther@suse.de>
12256 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
12257 (get_constraint_for_ssa_var): Remove dead code.
12258 (get_constraint_for_1): Adjust.
12259 (find_what_var_points_to): Likewise.
12260 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
12262 2014-08-15 Ilya Tocar <tocarip@gmail.com>
12265 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
12266 (_mm512_mask_cmpge_epu32_mask): Ditto.
12267 (_mm512_cmpge_epu32_mask): Ditto.
12268 (_mm512_mask_cmpge_epi64_mask): Ditto.
12269 (_mm512_cmpge_epi64_mask): Ditto.
12270 (_mm512_mask_cmpge_epu64_mask): Ditto.
12271 (_mm512_cmpge_epu64_mask): Ditto.
12272 (_mm512_mask_cmple_epi32_mask): Ditto.
12273 (_mm512_cmple_epi32_mask): Ditto.
12274 (_mm512_mask_cmple_epu32_mask): Ditto.
12275 (_mm512_cmple_epu32_mask): Ditto.
12276 (_mm512_mask_cmple_epi64_mask): Ditto.
12277 (_mm512_cmple_epi64_mask): Ditto.
12278 (_mm512_mask_cmple_epu64_mask): Ditto.
12279 (_mm512_cmple_epu64_mask): Ditto.
12280 (_mm512_mask_cmplt_epi32_mask): Ditto.
12281 (_mm512_cmplt_epi32_mask): Ditto.
12282 (_mm512_mask_cmplt_epu32_mask): Ditto.
12283 (_mm512_cmplt_epu32_mask): Ditto.
12284 (_mm512_mask_cmplt_epi64_mask): Ditto.
12285 (_mm512_cmplt_epi64_mask): Ditto.
12286 (_mm512_mask_cmplt_epu64_mask): Ditto.
12287 (_mm512_cmplt_epu64_mask): Ditto.
12288 (_mm512_mask_cmpneq_epi32_mask): Ditto.
12289 (_mm512_mask_cmpneq_epu32_mask): Ditto.
12290 (_mm512_cmpneq_epu32_mask): Ditto.
12291 (_mm512_mask_cmpneq_epi64_mask): Ditto.
12292 (_mm512_cmpneq_epi64_mask): Ditto.
12293 (_mm512_mask_cmpneq_epu64_mask): Ditto.
12294 (_mm512_cmpneq_epu64_mask): Ditto.
12295 (_mm512_castpd_ps): Ditto.
12296 (_mm512_castpd_si512): Ditto.
12297 (_mm512_castps_pd): Ditto.
12298 (_mm512_castps_si512): Ditto.
12299 (_mm512_castsi512_ps): Ditto.
12300 (_mm512_castsi512_pd): Ditto.
12301 (_mm512_castpd512_pd128): Ditto.
12302 (_mm512_castps512_ps128): Ditto.
12303 (_mm512_castsi512_si128): Ditto.
12304 (_mm512_castpd512_pd256): Ditto.
12305 (_mm512_castps512_ps256): Ditto.
12306 (_mm512_castsi512_si256): Ditto.
12307 (_mm512_castpd128_pd512): Ditto.
12308 (_mm512_castps128_ps512): Ditto.
12309 (_mm512_castsi128_si512): Ditto.
12310 (_mm512_castpd256_pd512): Ditto.
12311 (_mm512_castps256_ps512): Ditto.
12312 (_mm512_castsi256_si512): Ditto.
12313 (_mm512_cmpeq_epu32_mask): Ditto.
12314 (_mm512_mask_cmpeq_epu32_mask): Ditto.
12315 (_mm512_mask_cmpeq_epu64_mask): Ditto.
12316 (_mm512_cmpeq_epu64_mask): Ditto.
12317 (_mm512_cmpgt_epu32_mask): Ditto.
12318 (_mm512_mask_cmpgt_epu32_mask): Ditto.
12319 (_mm512_mask_cmpgt_epu64_mask): Ditto.
12320 (_mm512_cmpgt_epu64_mask): Ditto.
12321 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
12322 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
12323 * config/i386/i386.c (enum ix86_builtins): Add
12324 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
12325 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
12326 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
12327 (bdesc_args): Add __builtin_ia32_si512_256si,
12328 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
12329 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
12330 __builtin_ia32_pd512_pd.
12331 (ix86_expand_args_builtin): Handle new FTYPEs.
12332 * config/i386/sse.md (castmode): Add 512-bit modes.
12333 (AVX512MODE2P): New.
12334 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
12335 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
12337 2014-08-15 Richard Biener <rguenther@suse.de>
12339 * fold-const.c (tree_swap_operands_p): Put all constants
12340 last, also strip sign-changing NOPs when considering further
12341 canonicalization. Canonicalize also when optimizing for size.
12343 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12345 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
12346 one_match > zero_match case to just before simple_sequence.
12348 2014-08-15 Richard Biener <rguenther@suse.de>
12350 * data-streamer.h (streamer_string_index, string_for_index):
12352 * data-streamer-out.c (streamer_string_index): Make static.
12353 * data-streamer-in.c (string_for_index): Likewise.
12354 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
12355 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
12357 2014-08-15 Richard Biener <rguenther@suse.de>
12359 PR tree-optimization/62031
12360 * tree-data-ref.c (dr_analyze_indices): Do not set
12361 DR_UNCONSTRAINED_BASE.
12362 (dr_may_alias_p): All indirect accesses have to go the
12363 formerly DR_UNCONSTRAINED_BASE path.
12364 * tree-data-ref.h (struct indices): Remove
12365 unconstrained_base member.
12366 (DR_UNCONSTRAINED_BASE): Remove.
12368 2014-08-15 Jakub Jelinek <jakub@redhat.com>
12370 PR middle-end/62092
12371 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
12372 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
12373 in OMP_CLAUSE_MAP in some outer target region.
12375 2014-08-15 Bin Cheng <bin.cheng@arm.com>
12377 * tree-ssa-loop-ivopts.c (ivopts_data): New field
12378 name_expansion_cache.
12379 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
12380 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
12381 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
12382 (difference_cannot_overflow_p): New parameter. Use affine
12383 expansion for equality check.
12384 (iv_elimination_compare_lt): Pass new argument.
12386 2014-08-14 DJ Delorie <dj@redhat.com>
12388 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
12389 variables to the accumulator.
12391 * config/rl78/predicates.md (rl78_near_mem_operand): New.
12392 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
12393 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
12394 with far-far moves.
12396 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
12397 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
12398 (umulqihi3_virt): Likewise.
12399 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
12400 (umulqihi3_real): Likewise.
12402 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
12404 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
12406 PR tree-optimization/62091
12407 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
12408 function_entry_reached.
12409 (walk_aliased_vdefs): Clear it here.
12410 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
12412 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
12414 * ipa-utils.h (compare_virtual_tables): Declare.
12415 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
12417 2014-08-14 Marek Polacek <polacek@redhat.com>
12420 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
12421 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
12423 2014-08-14 Tom de Vries <tom@codesourcery.com>
12425 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
12427 2014-08-14 Tom de Vries <tom@codesourcery.com>
12429 PR rtl-optimization/62004
12430 PR rtl-optimization/62030
12431 * ifcvt.c (rtx_interchangeable_p): New function.
12432 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
12433 * emit-rtl.h (mem_attrs_eq_p): Declare.
12435 2014-08-14 Roman Gareev <gareevroman@gmail.com>
12437 * graphite-scop-detection.c:
12438 Add inclusion of cp-tree.h.
12439 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
12440 in case they are pointers to object types
12442 2014-08-14 Richard Biener <rguenther@suse.de>
12444 * BASE-VER: Change to 5.0.0
12446 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12447 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12448 Anna Tikhonova <anna.tikhonova@intel.com>
12449 Ilya Tocar <ilya.tocar@intel.com>
12450 Andrey Turetskiy <andrey.turetskiy@intel.com>
12451 Ilya Verbin <ilya.verbin@intel.com>
12452 Kirill Yukhin <kirill.yukhin@intel.com>
12453 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12455 * config/i386/sse.md (define_mode_attr avx512): New.
12456 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
12458 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
12459 (define_mode_attr ssse3_avx2): Ditto.
12460 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
12461 (define_mode_attr avx2_avx512bw): New.
12462 (define_mode_attr ssedoublemodelower): New.
12463 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
12464 V32HI, V64QI modes.
12465 (define_mode_attr ssebytemode): Allow V8DI modes.
12466 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
12467 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
12468 (define_mode_attr ssePSmode2): New.
12469 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
12470 V16HI, V32HI modes.
12471 (define_mode_attr dbpsadbwmode): New.
12472 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
12473 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
12474 (vi8_sse4_1_avx2_avx512): New.
12475 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
12477 (define_mode_attr blendbits): Move before its immediate use.
12479 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12480 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12481 Anna Tikhonova <anna.tikhonova@intel.com>
12482 Ilya Tocar <ilya.tocar@intel.com>
12483 Andrey Turetskiy <andrey.turetskiy@intel.com>
12484 Ilya Verbin <ilya.verbin@intel.com>
12485 Kirill Yukhin <kirill.yukhin@intel.com>
12486 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12488 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
12489 * config/i386/subst.md
12490 (define_mode_iterator SUBST_V): Update.
12491 (define_mode_iterator SUBST_A): Ditto.
12492 (define_subst_attr "mask_operand7"): New.
12493 (define_subst_attr "mask_operand10"): New.
12494 (define_subst_attr "mask_operand_arg34") : New.
12495 (define_subst_attr "mask_expand_op3"): New.
12496 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
12497 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
12498 (define_subst_attr "mask_avx512vl_condition"): New.
12499 (define_subst_attr "round_mask_operand4"): Ditto.
12500 (define_subst_attr "round_mask_scalar_op3"): Delete.
12501 (define_subst_attr "round_mask_op4"): New.
12502 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
12504 (define_subst_attr "round_modev8sf_condition"): New.
12505 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
12507 (define_subst_attr "round_saeonly_mask_operand4"): New.
12508 (define_subst_attr "round_saeonly_mask_op4"): New.
12509 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
12510 V8DImode, V16SImode.
12511 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
12512 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
12513 (define_subst_attr "mask_expand4_args"): New.
12514 (define_subst "mask_expand4"): New.
12516 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12517 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12518 Anna Tikhonova <anna.tikhonova@intel.com>
12519 Ilya Tocar <ilya.tocar@intel.com>
12520 Andrey Turetskiy <andrey.turetskiy@intel.com>
12521 Ilya Verbin <ilya.verbin@intel.com>
12522 Kirill Yukhin <kirill.yukhin@intel.com>
12523 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12525 * config/i386/i386.md
12526 (define_attr "isa"): Add avx512bw,noavx512bw.
12527 (define_attr "enabled"): Ditto.
12528 (define_split): Add 32/64-bit mask logic.
12529 (define_insn "*k<logic>qi"): New.
12530 (define_insn "*k<logic>hi"): New.
12531 (define_insn "*anddi_1"): Add mask version.
12532 (define_insn "*andsi_1"): Ditto.
12533 (define_insn "*<code><mode>_1"): Ditto.
12534 (define_insn "*<code>hi_1"): Ditto.
12535 (define_insn "kxnor<mode>"): New.
12536 (define_insn "kunpcksi"): New.
12537 (define_insn "kunpckdi"): New.
12538 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
12539 (define_insn "*one_cmplhi2_1"): Ditto.
12541 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12542 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12543 Anna Tikhonova <anna.tikhonova@intel.com>
12544 Ilya Tocar <ilya.tocar@intel.com>
12545 Andrey Turetskiy <andrey.turetskiy@intel.com>
12546 Ilya Verbin <ilya.verbin@intel.com>
12547 Kirill Yukhin <kirill.yukhin@intel.com>
12548 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12550 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
12553 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12554 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12555 Anna Tikhonova <anna.tikhonova@intel.com>
12556 Ilya Tocar <ilya.tocar@intel.com>
12557 Andrey Turetskiy <andrey.turetskiy@intel.com>
12558 Ilya Verbin <ilya.verbin@intel.com>
12559 Kirill Yukhin <kirill.yukhin@intel.com>
12560 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12562 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
12564 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
12565 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
12566 xmm/ymm16+ when availble.
12567 * config/i386/i386.h
12568 (HARD_REGNO_NREGS): Add mask regs.
12569 (VALID_AVX512F_REG_MODE): Ditto.
12570 (VALID_AVX512F_REG_MODE) : Define.
12571 (VALID_MASK_AVX512BW_MODE): Ditto.
12572 (reg_class) (MASK_REG_P(X)): Define.
12573 * config/i386/i386.md: Do not split long moves with mask register,
12574 use kmovb if avx512bw is availible.
12575 (movdi_internal): Handle mask registers.
12577 2014-08-14 Richard Biener <rguenther@suse.de>
12579 PR tree-optimization/62081
12580 * tree-ssa-loop.c (pass_fix_loops): New pass.
12581 (pass_tree_loop::gate): Do not fixup loops here.
12582 * tree-pass.h (make_pass_fix_loops): Declare.
12583 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
12585 2014-08-14 Richard Biener <rguenther@suse.de>
12587 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
12588 (type_hash_canon): ... this and avoid 2nd lookup for the add.
12590 2014-08-14 Richard Biener <rguenther@suse.de>
12592 PR tree-optimization/62090
12593 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
12594 (fold_builtin_2): Do not fold sprintf.
12595 (fold_builtin_3): Likewise.
12596 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
12597 moved from builtins.c.
12598 (gimple_fold_builtin): Fold sprintf.
12600 2014-08-14 Richard Biener <rguenther@suse.de>
12602 PR rtl-optimization/62079
12603 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
12606 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
12608 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
12609 current_function_decl.
12611 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
12613 * cgraph.c (cgraph_node::function_symbol): Fix wrong
12614 cgraph_function_node to cgraph_node::function_symbol
12617 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
12619 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
12620 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
12622 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
12624 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
12627 2014-08-13 Roman Gareev <gareevroman@gmail.com>
12629 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
12632 2014-08-12 Jakub Jelinek <jakub@redhat.com>
12635 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
12636 any registers that are used in mem_insn.
12638 2014-08-12 Steve Ellcey <sellcey@mips.com>
12640 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
12642 2014-08-12 Steve Ellcey <sellcey@mips.com>
12644 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
12645 (MULTILIB_DIRNAMES): Ditto.
12646 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
12647 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
12648 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
12649 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
12650 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
12651 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
12653 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12656 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
12657 of __ARM_SIZEOF_WCHAR_T.
12659 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12662 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
12663 Remove unnecessary attributes.
12665 2014-08-12 Yury Gribov <y.gribov@samsung.com>
12667 * internal-fn.c (init_internal_fns): Fix off-by-one.
12669 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
12670 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12671 Anna Tikhonova <anna.tikhonova@intel.com>
12672 Ilya Tocar <ilya.tocar@intel.com>
12673 Andrey Turetskiy <andrey.turetskiy@intel.com>
12674 Ilya Verbin <ilya.verbin@intel.com>
12675 Kirill Yukhin <kirill.yukhin@intel.com>
12676 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12678 * config/i386/i386.c (standard_sse_constant_opcode): Use
12679 vpxord/vpternlog if avx512 is availible.
12681 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
12683 PR middle-end/62103
12684 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
12685 bitfields, that is when size doesn't match the size of type or the
12686 size of the constructor.
12688 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
12690 * config/rs6000/constraints.md (wh constraint): New constraint,
12691 for FP registers if direct move is available.
12692 (wi constraint): New constraint, for VSX/FP registers that can
12693 handle 64-bit integers.
12694 (wj constraint): New constraint for VSX/FP registers that can
12695 handle 64-bit integers for direct moves.
12696 (wk constraint): New constraint for VSX/FP registers that can
12697 handle 64-bit doubles for direct moves.
12698 (wy constraint): Make documentation match implementation.
12700 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
12701 scalar_in_vmx_p field to simplify tests of whether SFmode or
12702 DFmode can go in the Altivec registers.
12703 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
12704 (rs6000_setup_reg_addr_masks): Likewise.
12705 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
12706 field, and wh/wi/wj/wk constraints.
12707 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
12708 the wh/wi/wj/wk constraints.
12709 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
12710 upper registers, prefer VSX registers unless the operation is a
12711 memory operation with REG+OFFSET addressing.
12713 * config/rs6000/vsx.md (VSr mode attribute): Add support for
12714 DImode. Change SFmode to use ww constraint instead of d to allow
12715 SF registers in the upper registers.
12718 (VSr5): Fix thinko in comment.
12719 (VSa): New mode attribute that is an alternative to wa, that
12720 returns the VSX register class that a mode can go in, but may not
12721 be the preferred register class.
12722 (VS_64dm): New mode attribute for appropriate register classes for
12723 referencing 64-bit elements of vectors for direct moves and normal
12725 (VS_64reg): Likewise.
12726 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
12727 register allocator to only registers the data type can handle.
12728 (vsx_le_perm_load_<mode>): Likewise.
12729 (vsx_le_perm_store_<mode>): Likewise.
12730 (vsx_xxpermdi2_le_<mode>): Likewise.
12731 (vsx_xxpermdi4_le_<mode>): Likewise.
12732 (vsx_lxvd2x2_le_<mode>): Likewise.
12733 (vsx_lxvd2x4_le_<mode>): Likewise.
12734 (vsx_stxvd2x2_le_<mode>): Likewise.
12735 (vsx_add<mode>3): Likewise.
12736 (vsx_sub<mode>3): Likewise.
12737 (vsx_mul<mode>3): Likewise.
12738 (vsx_div<mode>3): Likewise.
12739 (vsx_tdiv<mode>3_internal): Likewise.
12740 (vsx_fre<mode>2): Likewise.
12741 (vsx_neg<mode>2): Likewise.
12742 (vsx_abs<mode>2): Likewise.
12743 (vsx_nabs<mode>2): Likewise.
12744 (vsx_smax<mode>3): Likewise.
12745 (vsx_smin<mode>3): Likewise.
12746 (vsx_sqrt<mode>2): Likewise.
12747 (vsx_rsqrte<mode>2): Likewise.
12748 (vsx_tsqrt<mode>2_internal): Likewise.
12749 (vsx_fms<mode>4): Likewise.
12750 (vsx_nfma<mode>4): Likewise.
12751 (vsx_eq<mode>): Likewise.
12752 (vsx_gt<mode>): Likewise.
12753 (vsx_ge<mode>): Likewise.
12754 (vsx_eq<mode>_p): Likewise.
12755 (vsx_gt<mode>_p): Likewise.
12756 (vsx_ge<mode>_p): Likewise.
12757 (vsx_xxsel<mode>): Likewise.
12758 (vsx_xxsel<mode>_uns): Likewise.
12759 (vsx_copysign<mode>3): Likewise.
12760 (vsx_float<VSi><mode>2): Likewise.
12761 (vsx_floatuns<VSi><mode>2): Likewise.
12762 (vsx_fix_trunc<mode><VSi>2): Likewise.
12763 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
12764 (vsx_x<VSv>r<VSs>i): Likewise.
12765 (vsx_x<VSv>r<VSs>ic): Likewise.
12766 (vsx_btrunc<mode>2): Likewise.
12767 (vsx_b2trunc<mode>2): Likewise.
12768 (vsx_floor<mode>2): Likewise.
12769 (vsx_ceil<mode>2): Likewise.
12770 (vsx_<VS_spdp_insn>): Likewise.
12771 (vsx_xscvspdp): Likewise.
12772 (vsx_xvcvspuxds): Likewise.
12773 (vsx_float_fix_<mode>2): Likewise.
12774 (vsx_set_<mode>): Likewise.
12775 (vsx_extract_<mode>_internal1): Likewise.
12776 (vsx_extract_<mode>_internal2): Likewise.
12777 (vsx_extract_<mode>_load): Likewise.
12778 (vsx_extract_<mode>_store): Likewise.
12779 (vsx_splat_<mode>): Likewise.
12780 (vsx_xxspltw_<mode>): Likewise.
12781 (vsx_xxspltw_<mode>_direct): Likewise.
12782 (vsx_xxmrghw_<mode>): Likewise.
12783 (vsx_xxmrglw_<mode>): Likewise.
12784 (vsx_xxsldwi_<mode>): Likewise.
12785 (vsx_xscvdpspn): Tighten constraints to only use register classes
12787 (vsx_xscvspdpn): Likewise.
12788 (vsx_xscvdpspn_scalar): Likewise.
12790 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
12791 wj, and wk constraints.
12792 (GPR_REG_CLASS_P): New helper macro for register classes targeting
12793 general purpose registers.
12795 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
12797 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
12798 DImode instead of wm. Use wk constraint for direct move of DFmode
12800 (extendsidi2_lfiwax): Likewise.
12801 (lfiwax): Likewise.
12802 (lfiwzx): Likewise.
12803 (movdi_internal64): Likewise.
12805 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
12806 wk constraints. Make the wy constraint documentation match them
12809 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
12811 Replacement of isl_int by isl_val
12812 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
12813 (compute_bounds_for_param): use isl_val instead of isl_int
12814 (compute_bounds_for_loop): likewise
12815 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
12816 (build_linearized_memory_access): use isl_val instead of isl_int
12817 (pdr_stride_in_loop): likewise
12818 * graphite-optimize-isl.c:
12819 (getPrevectorMap): use isl_val instead of isl_int
12821 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
12822 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
12823 (extern the_isl_ctx): declare
12824 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
12825 (extract_affine_gmp): likewise
12827 (build_loop_iteration_domains): likewise
12828 (add_param_constraints): likewise
12830 2014-08-11 Richard Biener <rguenther@suse.de>
12832 PR tree-optimization/62075
12833 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
12834 handle uses in patterns.
12836 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12837 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12838 Anna Tikhonova <anna.tikhonova@intel.com>
12839 Ilya Tocar <ilya.tocar@intel.com>
12840 Andrey Turetskiy <andrey.turetskiy@intel.com>
12841 Ilya Verbin <ilya.verbin@intel.com>
12842 Kirill Yukhin <kirill.yukhin@intel.com>
12843 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12845 * common/config/i386/i386-common.c
12846 (OPTION_MASK_ISA_AVX512VL_SET): Define.
12847 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
12848 (ix86_handle_option): Handle OPT_mavx512vl.
12849 * config/i386/cpuid.h (bit_AVX512VL): Define.
12850 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
12851 set -mavx512vl accordingly.
12852 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12853 OPTION_MASK_ISA_AVX512VL.
12854 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
12855 (ix86_option_override_internal): Define PTA_AVX512VL, handle
12856 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
12857 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
12858 * config/i386/i386.h (TARGET_AVX512VL): Define.
12859 (TARGET_AVX512VL_P(x)): Ditto.
12860 * config/i386/i386.opt: Add mavx512vl.
12862 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
12864 PR tree-optimization/62073
12865 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
12868 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12869 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12870 Anna Tikhonova <anna.tikhonova@intel.com>
12871 Ilya Tocar <ilya.tocar@intel.com>
12872 Andrey Turetskiy <andrey.turetskiy@intel.com>
12873 Ilya Verbin <ilya.verbin@intel.com>
12874 Kirill Yukhin <kirill.yukhin@intel.com>
12875 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12877 * common/config/i386/i386-common.c
12878 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
12879 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
12880 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
12881 (ix86_handle_option): Handle OPT_mavx512bw.
12882 * config/i386/cpuid.h (bit_AVX512BW): Define.
12883 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
12884 set -mavx512bw accordingly.
12885 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12886 OPTION_MASK_ISA_AVX512BW.
12887 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
12888 (ix86_option_override_internal): Define PTA_AVX512BW, handle
12889 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
12890 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
12891 * config/i386/i386.h (TARGET_AVX512BW): Define.
12892 (TARGET_AVX512BW_P(x)): Ditto.
12893 * config/i386/i386.opt: Add mavx512bw.
12895 2014-08-11 Richard Biener <rguenther@suse.de>
12897 PR tree-optimization/62070
12898 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
12899 Remove SSA checking.
12901 2014-08-11 Yury Gribov <y.gribov@samsung.com>
12903 * asan.c (asan_check_flags): New enum.
12904 (build_check_stmt_with_calls): Removed function.
12905 (build_check_stmt): Split inlining logic to
12906 asan_expand_check_ifn.
12907 (instrument_derefs): Rename parameter.
12908 (instrument_mem_region_access): Rename parameter.
12909 (instrument_strlen_call): Likewise.
12910 (asan_expand_check_ifn): New function.
12911 (asan_instrument): Remove old code.
12912 (pass_sanopt::execute): Change handling of
12913 asan-instrumentation-with-call-threshold.
12914 (asan_clear_shadow): Fix formatting.
12915 (asan_function_start): Likewise.
12916 (asan_emit_stack_protection): Likewise.
12917 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
12918 Update description.
12919 * internal-fn.c (expand_ASAN_CHECK): New function.
12920 * internal-fn.def (ASAN_CHECK): New internal function.
12921 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
12922 Update description.
12923 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
12924 * tree.c: Small comment fix.
12926 2014-08-11 Yury Gribov <y.gribov@samsung.com>
12928 * gimple.c (gimple_call_fnspec): Support internal functions.
12929 (gimple_call_return_flags): Use const.
12930 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
12931 * internal-fn.def: Add fnspec information.
12932 * internal-fn.h (internal_fn_fnspec): New function.
12933 (init_internal_fns): Declare new function.
12934 * internal-fn.c (internal_fn_fnspec_array): New global variable.
12935 (init_internal_fns): New function.
12936 * tree-core.h: Update macro call.
12937 * tree.c (build_common_builtin_nodes): Initialize internal fns.
12939 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
12941 * lto-streamer.h (struct output_block::symbol): Change from
12942 struct symtab_node to plain symtab_node.
12943 (referenced_from_this_partition_p): Change first parameter
12944 from struct symtab_node to plain symtab_node.
12946 2014-08-10 Marek Polacek <polacek@redhat.com>
12949 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
12951 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
12953 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
12954 DECL correctly; do not give up on types in static storage.
12956 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
12958 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
12960 2014-08-09 Roman Gareev <gareevroman@gmail.com>
12962 * graphite-isl-ast-to-gimple.c:
12963 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
12965 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
12967 2014-08-08 Guozhi Wei <carrot@google.com>
12969 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
12971 2014-08-08 Cary Coutant <ccoutant@google.com>
12973 * dwarf2out.c (get_skeleton_type_unit): Remove.
12974 (output_skeleton_debug_sections): Remove skeleton type units.
12975 (output_comdat_type_unit): Likewise.
12976 (dwarf2out_finish): Likewise.
12978 2014-08-07 Yi Yang <ahyangyi@google.com>
12980 * predict.c (expr_expected_value_1): Remove the redundant assignment.
12982 2014-08-08 Richard Biener <rguenther@suse.de>
12984 * lto-streamer.h (struct lto_input_block): Make it a class
12985 with a constructor.
12986 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
12987 (struct lto_function_header, struct lto_simple_header,
12988 struct lto_simple_header_with_strings,
12989 struct lto_decl_header, struct lto_function_header): Make
12990 a simple inheritance hieararchy. Remove unused fields.
12991 (struct lto_asm_header): Remove.
12992 * lto-streamer-out.c (produce_asm): Adjust.
12993 (lto_output_toplevel_asms): Likewise.
12994 (produce_asm_for_decls): Likewise.
12995 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
12996 * data-streamer-in.c (string_for_index): Likewise.
12997 * ipa-inline-analysis.c (inline_read_section): Likewise.
12998 * ipa-prop.c (ipa_prop_read_section): Likewise.
12999 (read_replacements_section): Likewise.
13000 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
13001 * lto-section-in.c (lto_create_simple_input_block): Likewise.
13002 (lto_destroy_simple_input_block): Likewise.
13003 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
13004 (lto_input_toplevel_asms): Likewise.
13006 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
13007 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13008 Anna Tikhonova <anna.tikhonova@intel.com>
13009 Ilya Tocar <ilya.tocar@intel.com>
13010 Andrey Turetskiy <andrey.turetskiy@intel.com>
13011 Ilya Verbin <ilya.verbin@intel.com>
13012 Kirill Yukhin <kirill.yukhin@intel.com>
13013 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13015 * common/config/i386/i386-common.c
13016 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
13017 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
13018 (ix86_handle_option): Handle OPT_mavx512dq.
13019 * config/i386/cpuid.h (bit_AVX512DQ): Define.
13020 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
13021 set -mavx512dq accordingly.
13022 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13023 OPTION_MASK_ISA_AVX512DQ.
13024 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
13025 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
13026 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
13027 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
13028 * config/i386/i386.h (TARGET_AVX512DQ): Define.
13029 (TARGET_AVX512DQ_P(x)): Ditto.
13030 * config/i386/i386.opt: Add mavx512dq.
13032 2014-08-08 Richard Biener <rguenther@suse.de>
13034 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
13035 target_percent, target_percent_s): Export.
13036 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
13037 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
13038 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
13039 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
13040 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
13041 Move to gimple-fold.c.
13042 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
13044 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
13045 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
13046 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
13047 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
13048 (rewrite_call_expr_array): Remove.
13049 (fold_builtin_sprintf_chk): Likewise.
13050 (fold_builtin_snprintf_chk): Likewise.
13051 (fold_builtin_varargs): Remove handling of sprintf_chk,
13052 vsprintf_chk, snprintf_chk and vsnprintf_chk.
13053 (gimple_fold_builtin_sprintf_chk): Remove.
13054 (gimple_fold_builtin_snprintf_chk): Likewise.
13055 (gimple_fold_builtin_varargs): Likewise.
13056 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
13057 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
13058 * gimple.c (gimple_seq_add_seq_without_update): New function.
13059 * gimple.h (gimple_seq_add_seq_without_update): Declare.
13060 * gimple-fold.c: Include output.h.
13061 (gsi_replace_with_seq_vops): New function, split out from ...
13062 (gimplify_and_update_call_from_tree): ... here.
13063 (replace_call_with_value): New function.
13064 (replace_call_with_call_and_fold): Likewise.
13065 (var_decl_component_p): Moved from builtins.c.
13066 (gimple_fold_builtin_memory_op): Moved from builtins.c
13067 fold_builtin_memory_op and rewritten to GIMPLE.
13068 (gimple_fold_builtin_memset): Likewise.
13069 (gimple_fold_builtin_strcpy): Likewise.
13070 (gimple_fold_builtin_strncpy): Likewise.
13071 (gimple_fold_builtin_strcat): Likewise.
13072 (gimple_fold_builtin_fputs): Likewise.
13073 (gimple_fold_builtin_memory_chk): Likewise.
13074 (gimple_fold_builtin_stxcpy_chk): Likewise.
13075 (gimple_fold_builtin_stxncpy_chk): Likewise.
13076 (gimple_fold_builtin_snprintf_chk): Likewise.
13077 (gimple_fold_builtin_sprintf_chk): Likewise.
13078 (gimple_fold_builtin_strlen): New function.
13079 (gimple_fold_builtin_with_strlen): New function split out from
13080 gimple_fold_builtin.
13081 (gimple_fold_builtin): Change signature and handle
13082 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
13083 here. Call gimple_fold_builtin_with_strlen.
13084 (gimple_fold_call): Adjust.
13086 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
13088 * calls.c (precompute_arguments): Check
13089 promoted_for_signed_and_unsigned_p and set the promoted mode.
13090 (promoted_for_signed_and_unsigned_p): New function.
13091 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
13092 and set the promoted mode.
13093 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
13094 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
13095 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
13098 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
13100 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
13101 instead of SUBREG_PROMOTED_UNSIGNED_SET.
13102 (expand_call): Likewise.
13103 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
13104 to get promoted mode.
13105 * combine.c (record_promoted_value): Skip > 0 comparison with
13106 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
13107 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
13108 of SUBREG_PROMOTED_UNSIGNED_P.
13109 (convert_modes): Likewise.
13110 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
13111 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
13112 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
13113 SUBREG_PROMOTED_UNSIGNED_SET.
13114 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
13115 instead of SUBREG_PROMOTED_UNSIGNED_SET.
13116 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
13117 SUBREG_PROMOTED_SET.
13118 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
13119 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
13120 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
13121 of SUBREG_PROMOTED_UNSIGNED_P.
13122 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
13123 (SUBREG_PROMOTED_SET): New define.
13124 (SUBREG_PROMOTED_GET): Likewise.
13125 (SUBREG_PROMOTED_SIGN): Likewise.
13126 (SUBREG_PROMOTED_SIGNED_P): Likewise.
13127 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
13128 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
13129 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
13130 instead of SUBREG_PROMOTED_UNSIGNED_GET.
13131 (nonzero_bits1): Skip > 0 comparison with the results as
13132 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
13133 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
13134 of !SUBREG_PROMOTED_UNSIGNED_P.
13135 * simplify-rtx.c (simplify_unary_operation_1): Use new
13136 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
13137 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
13138 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
13139 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
13141 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
13143 * ipa-devirt.c: Include gimple-pretty-print.h
13144 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
13146 (decl_maybe_in_construction_p): Fix conditional on cdtor check
13147 (get_polymorphic_call_info): Fix return value
13148 (type_change_info): New sturcture based on ipa-prop
13150 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
13151 based on ipa-prop variant.
13152 (extr_type_from_vtbl_ptr_store): New function
13153 based on ipa-prop variant.
13154 (record_known_type): New function.
13155 (check_stmt_for_type_change): New function.
13156 (get_dynamic_type): New function.
13157 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
13158 * tree-ssa-pre.c: ipa-utils.h
13159 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
13160 machinery; sanity check with ipa-prop devirtualization.
13161 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
13164 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
13166 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
13167 * alias.c, cfgexpand.c, cgraphbuild.c,
13168 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
13169 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
13170 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
13171 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
13172 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
13173 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
13174 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
13175 dse.c, except.c, gengtype.c, gimple-expr.c,
13176 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
13177 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
13178 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
13179 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
13180 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
13181 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
13183 * pointer-set.c: Remove file.
13184 * pointer-set.h: Remove file.
13186 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13188 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
13189 * config/arm/types.md (f_sels, f_seld): Delete.
13191 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13193 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
13194 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
13195 (aarch64_movdi_<mode>high): Likewise.
13196 (aarch64_mov<mode>high_di): Likewise.
13197 (aarch64_movdi_<mode>low): Likewise.
13198 (aarch64_mov<mode>low_di): Likewise.
13199 (aarch64_movtilow_tilow): Likewise.
13200 Add comment explaining usage of fp,simd attributes and of
13201 TARGET_FLOAT and TARGET_SIMD.
13203 2014-08-07 Ian Bolton <ian.bolton@arm.com>
13204 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13206 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
13207 Use MOVN when one of the half-words is 0xffff.
13209 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
13211 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
13213 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13215 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
13216 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
13217 (rfs_str): String corresponding to RFS_* constants.
13218 (rank_for_schedule_stats_t): New typedef.
13219 (rank_for_schedule_stats): New static variable.
13220 (rfs_result): New static function.
13221 (rank_for_schedule): Track statistics for deciding heuristics.
13222 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
13224 (ready_sort): Use them for debug printouts.
13225 (schedule_block): Init statistics state. Print statistics on
13226 rank_for_schedule decisions.
13228 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13230 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
13232 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
13234 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
13237 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
13239 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
13240 function to not conflict.
13241 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
13242 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
13243 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
13244 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
13245 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
13248 2014-08-07 Marek Polacek <polacek@redhat.com>
13250 * fold-const.c (fold_binary_loc): Add folding of
13251 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
13253 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
13255 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
13256 instead of type size.
13257 (ASM_FINISH_DECLARE_OBJECT): Likewise.
13259 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
13261 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
13262 (*thumb1_movqi_insn): Likewise.
13263 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
13265 2014-08-07 Tom de Vries <tom@codesourcery.com>
13267 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
13268 (glibc_2_11_or_earlier): Remove effective-target keywords.
13270 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
13272 * config/arm/arm.c (bdesc_2arg): Fix typo.
13273 (arm_atomic_assign_expand_fenv): Remove The default implementation.
13275 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
13277 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
13279 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
13282 * haifa-sched.c (advance_one_cycle): Fix dump.
13283 (schedule_block): Don't advance cycle if we are already at the
13284 beginning of the cycle.
13286 2014-08-06 Martin Jambor <mjambor@suse.cz>
13289 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
13291 2014-08-06 Richard Biener <rguenther@suse.de>
13294 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
13296 (lto_input_tree): Pop SCCs here.
13298 2014-08-06 Richard Biener <rguenther@suse.de>
13300 PR tree-optimization/61320
13301 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
13302 handle misaligned loads.
13304 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
13306 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
13307 (aarch64_expand_vec_perm_const): Check for dup before zip.
13309 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13311 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
13312 CONST_INT_P instead of GET_CODE and compare.
13313 (aarch64_select_cc_mode): Likewise.
13314 (aarch64_print_operand): Likewise.
13315 (aarch64_rtx_costs): Likewise.
13316 (aarch64_simd_valid_immediate): Likewise.
13317 (aarch64_simd_check_vect_par_cnst_half): Likewise.
13318 (aarch64_simd_emit_pair_result_insn): Likewise.
13320 2014-08-05 David Malcolm <dmalcolm@redhat.com>
13322 * gdbhooks.py (find_gcc_source_dir): New helper function.
13323 (class PassNames): New class, locating and parsing passes.def.
13324 (class BreakOnPass): New command "break-on-pass".
13326 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
13328 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
13331 2014-08-05 Richard Biener <rguenther@suse.de>
13333 PR rtl-optimization/61672
13334 * emit-rtl.h (mem_attrs_eq_p): Declare.
13335 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
13336 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
13337 * cfgcleanup.c (merge_memattrs): Likewise.
13338 Include emit-rtl.h.
13340 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13342 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
13343 rather than singleton vectors.
13344 (vqdmlsls_lane_s32): Likewise.
13346 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13348 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
13349 Use VSDQ_HSI mode iterator.
13350 (aarch64_sqrdmulh_laneq<mode>): Likewise.
13351 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
13352 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
13353 Use BUILTIN_VDQHS macro.
13354 (sqrdmulh_laneq): Likewise.
13355 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
13356 (vqdmlals_laneq_s32): Likewise.
13357 (vqdmlslh_laneq_s16): Likewise.
13358 (vqdmlsls_laneq_s32): Likewise.
13359 (vqdmulhh_laneq_s16): Likewise.
13360 (vqdmulhs_laneq_s32): Likewise.
13361 (vqrdmulhh_laneq_s16): Likewise.
13362 (vqrdmulhs_laneq_s32): Likewise.
13364 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13366 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
13367 (vmuld_laneq_f64): Likewise.
13368 (vmuls_laneq_f32): Likewise.
13369 (vmul_n_f64): Likewise.
13370 (vmuld_lane_f64): Reimplement in C.
13371 (vmuls_lane_f32): Likewise.
13373 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13375 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
13377 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
13379 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13381 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
13382 (rbitsi2): Likewise.
13383 (*arm_rev): Set predicable and predicable_short_it attributes.
13385 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13387 * convert.c (convert_to_integer): Guard transformation to lrint by
13390 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
13392 * config/aarch64/aarch64-builtins.c
13393 (aarch64_simd_builtin_type_mode): Delete.
13394 (v8qi_UP): Remap to V8QImode.
13395 (v4hi_UP): Remap to V4HImode.
13396 (v2si_UP): Remap to V2SImode.
13397 (v2sf_UP): Remap to V2SFmode.
13398 (v1df_UP): Remap to V1DFmode.
13399 (di_UP): Remap to DImode.
13400 (df_UP): Remap to DFmode.
13401 (v16qi_UP):V16QImode.
13402 (v8hi_UP): Remap to V8HImode.
13403 (v4si_UP): Remap to V4SImode.
13404 (v4sf_UP): Remap to V4SFmode.
13405 (v2di_UP): Remap to V2DImode.
13406 (v2df_UP): Remap to V2DFmode.
13407 (ti_UP): Remap to TImode.
13408 (ei_UP): Remap to EImode.
13409 (oi_UP): Remap to OImode.
13410 (ci_UP): Map to CImode.
13411 (xi_UP): Remap to XImode.
13412 (si_UP): Remap to SImode.
13413 (sf_UP): Remap to SFmode.
13414 (hi_UP): Remap to HImode.
13415 (qi_UP): Remap to QImode.
13416 (aarch64_simd_builtin_datum): Make mode a machine_mode.
13417 (VAR1): Build builtin name.
13418 (aarch64_init_simd_builtins): Remove dead code.
13420 2014-08-05 Roman Gareev <gareevroman@gmail.com>
13422 * graphite-isl-ast-to-gimple.c:
13423 (set_options): New function.
13424 (scop_to_isl_ast): Add calling of set_options.
13426 2014-08-05 Jakub Jelinek <jakub@redhat.com>
13428 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
13429 (analyze_iv_to_split_insn): Don't initialize them.
13430 (get_ivts_expr): Removed.
13431 (allocate_basic_variable, insert_base_initialization): Use
13432 SET_SRC instead of *get_ivts_expr.
13433 (split_iv): Use &SET_SRC instead of get_ivts_expr.
13435 2014-08-05 Roman Gareev <gareevroman@gmail.com>
13437 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
13438 (translate_isl_ast_for_loop): Add checking of the
13439 flag_loop_parallelize_all.
13440 (ast_build_before_for): New function.
13441 (scop_to_isl_ast): Add checking of the
13442 flag_loop_parallelize_all.
13443 * graphite-dependences.c: Move the defenition of the
13444 scop_get_dependences from graphite-optimize-isl.c to this file.
13445 (apply_schedule_on_deps): Add checking of the ux's emptiness.
13446 (carries_deps): Add checking of the x's value.
13447 * graphite-optimize-isl.c: Move the defenition of the
13448 scop_get_dependences to graphite-dependences.c.
13449 * graphite-poly.h: Add declarations of scop_get_dependences
13452 2014-08-04 Rohit <rohitarulraj@freescale.com>
13455 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
13457 (alt_reg_names): Likewise.
13458 (rs6000_dwarf_register_span): For SPE high registers, replace
13459 dwarf register numbers with GCC hard register numbers.
13460 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
13461 (rs6000_dbx_register_number): For SPE high registers, return dwarf
13462 register number for the corresponding GCC hard register number.
13463 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
13464 newly added GCC hard register numbers for SPE high registers.
13465 (DWARF_FRAME_REGISTERS): Likewise.
13466 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
13467 (DWARF_FRAME_REGNUM): Likewise.
13468 (FIXED_REGISTERS): Likewise.
13469 (CALL_USED_REGISTERS): Likewise.
13470 (CALL_REALLY_USED_REGISTERS): Likewise.
13471 (REG_ALLOC_ORDER): Likewise.
13472 (enum reg_class): Likewise.
13473 (REG_CLASS_NAMES): Likewise.
13474 (REG_CLASS_CONTENTS): Likewise.
13475 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
13477 2014-08-04 Richard Biener <rguenther@suse.de>
13479 * gimple-fold.h (gimple_fold_builtin): Remove.
13480 * gimple-fold.c (gimple_fold_builtin): Make static.
13481 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
13482 fold_stmt, not gimple_fold_builtin.
13484 2014-08-04 Martin Liska <mliska@suse.cz>
13486 * cgraph.h (csi_end_p): Removed.
13487 (csi_next): Likewise.
13488 (csi_node): Likewise.
13489 (csi_start): Likewise.
13490 (cgraph_node_in_set_p): Likewise.
13491 (cgraph_node_set_size): Likewise.
13492 (vsi_end_p): Likewise.
13493 (vsi_next): Likewise.
13494 (vsi_node): Likewise.
13495 (vsi_start): Likewise.
13496 (varpool_node_set_size): Likewise.
13497 (cgraph_node_set_nonempty_p): Likewise.
13498 (varpool_node_set_nonempty_p): Likewise.
13499 * cgraphunit.c (cgraph_process_new_functions): vec replaces
13501 * ipa-inline-transform.c: Likewise.
13502 * ipa-utils.c (cgraph_node_set_new): Removed.
13503 (cgraph_node_set_add): Likewise.
13504 (cgraph_node_set_remove): Likewise.
13505 (cgraph_node_set_find): Likewise.
13506 (dump_cgraph_node_set): Likewise.
13507 (debug_cgraph_node_set): Likewise.
13508 (free_cgraph_node_set): Likewise.
13509 (varpool_node_set_new): Likewise.
13510 (varpool_node_set_add): Likewise.
13511 (varpool_node_set_remove): Likewise.
13512 (varpool_node_set_find): Likewise.
13513 (dump_varpool_node_set): Likewise.
13514 (free_varpool_node_set): Likewise.
13515 (debug_varpool_node_set): Likewise.
13516 * tree-emutls.c (struct tls_var_data):
13517 (emutls_index): Removed.
13518 (emutls_decl): Likewise.
13519 (gen_emutls_addr): Function implementation uses newly added
13520 hash_map<varpool_node *, tls_var_data>.
13521 (clear_access_vars): Likewise.
13522 (create_emultls_var): Likewise.
13523 (ipa_lower_emutls): Likewise.
13524 (reset_access): New function.
13526 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
13528 * config/i386/i386.c (ix86_option_override_internal): Add
13529 PTA_RDRND and PTA_MOVBE for bdver4.
13531 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13532 James Greenhalgh <james.greenhalgh@arm.com>
13534 * doc/md.texi (clrsb): Document.
13535 (clz): Change reference to x into operand 1.
13537 (popcount): Likewise.
13539 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13542 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
13543 move to subtarget in serial version if result is ignored.
13545 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13546 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13548 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
13549 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
13550 (sched_analyze_insn): Update use of try_group_insn to
13551 sched_macro_fuse_insns.
13552 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
13553 arguments that are not conditional jumps.
13555 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
13557 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
13558 family information. Handle BTVER2 cpu with cpuid family value.
13560 2014-08-04 Tom de Vries <tom@codesourcery.com>
13562 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
13563 (glibc_2_11_or_earlier): Document effective-target keywords.
13565 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
13567 * ipa-devirt.c (odr_type_warn_count): Add type.
13568 (possible_polymorphic_call_targets): Set it.
13569 (ipa_devirt): Use it.
13571 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
13573 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
13575 * ipa-devirt.c: Include hash-map.h
13576 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
13577 (clear_speculation): Break out of ...
13578 (get_class_context): ... here; speed up handling obviously useless
13580 (odr_type_warn_count, decl_warn_count): New structures.
13581 (final_warning_record): New structure.
13582 (final_warning_records): New static variable.
13583 (possible_polymorphic_call_targets): Cleanup handling of
13584 speculative info; do not build speculation when user do not care;
13585 record info about warnings when asked for.
13586 (add_decl_warning): New function.
13587 (type_warning_cmp): New function.
13588 (decl_warning_cmp): New function.
13589 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
13590 (gate): Enable pass when warnings are requested.
13591 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
13594 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
13596 * hash-map.h (default_hashmap_traits::mark_key_deleted):
13598 (hash_map::remove): New method.
13599 (hash_map::traverse): New method.
13600 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
13601 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
13602 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
13603 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
13604 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
13605 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
13608 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
13610 * hash-set.h: new File.
13611 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
13612 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
13613 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
13614 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
13615 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
13616 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
13617 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
13618 varpool.c: Use hash_set instead of pointer_set.
13620 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
13622 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
13624 2014-08-01 Jiong Wang <jiong.wang@arm.com>
13626 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
13627 for frame access when strict_p is false.
13629 2014-08-01 Renlin Li <renlin.li@arm.com>
13630 2014-08-01 Jiong Wang <jiong.wang@arm.com>
13632 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
13633 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
13634 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
13636 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
13638 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
13639 aarch64_mem_pair_offset.
13641 2014-08-01 Jiong Wang <jiong.wang@arm.com>
13643 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
13645 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
13646 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
13648 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
13650 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
13652 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
13654 PR regression/61510
13655 * cgraphunit.c (analyze_functions): Use get_create rather than get
13656 for decls which are clones of abstract functions.
13658 2014-08-01 Martin Liska <mliska@suse.cz>
13660 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
13661 * ipa-prop.h (count_formal_params): Global function created from static.
13662 * ipa-prop.c (count_formal_params): Likewise.
13663 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
13664 profiles for semantically equivalent functions.
13665 * passes.c (do_per_function): If we load body of a function
13666 during WPA, this condition should behave same.
13667 * varpool.c (ctor_for_folding): More tolerant assert for variable
13668 aliases created during WPA.
13670 2014-08-01 Martin Liska <mliska@suse.cz>
13672 * doc/invoke.texi (Options That Control Optimization): Documentation
13673 for -foptimize-strlen introduced. Optimization levels default options
13676 2014-08-01 Jakub Jelinek <jakub@redhat.com>
13678 * opts.c (common_handle_option): Handle -fsanitize=alignment.
13679 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
13680 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
13682 * stor-layout.h (min_align_of_type): New prototype.
13683 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
13684 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
13686 * ubsan.c: Include builtins.h.
13687 (ubsan_expand_bounds_ifn): Change return type to bool,
13688 always return true.
13689 (ubsan_expand_null_ifn): Change return type to bool, change
13690 argument to gimple_stmt_iterator *. Handle both null and alignment
13691 sanitization, take type from ckind argument's type rather than
13693 (instrument_member_call): Removed.
13694 (instrument_mem_ref): Remove t argument, add mem and base arguments.
13695 Handle both null and alignment sanitization, don't say whole
13696 struct access is member access. Build 3 argument IFN_UBSAN_NULL
13697 call instead of 2 argument.
13698 (instrument_null): Adjust instrument_mem_ref caller. Don't
13699 instrument calls here.
13700 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
13701 like SANITIZE_NULL.
13702 * stor-layout.c (min_align_of_type): New function.
13703 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
13704 Or it into SANITIZE_UNDEFINED.
13705 * doc/invoke.texi (-fsanitize=alignment): Document.
13707 2014-07-31 Andi Kleen <ak@linux.intel.com>
13709 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
13711 2014-07-31 Andi Kleen <ak@linux.intel.com>
13713 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
13715 (vn_reference_compute_hash): Dito.
13716 (vn_nary_op_compute_hash): Dito.
13717 (vn_phi_compute_hash): Dito.
13718 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
13720 2014-07-31 Andi Kleen <ak@linux.intel.com>
13722 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
13723 Rename to inchash:add_expr_commutative. Convert to inchash.
13724 (iterative_hash_hashable_expr): Rename to
13725 inchash:add_hashable_expr. Convert to inchash.
13726 (avail_expr_hash): Dito.
13728 2014-07-31 Andi Kleen <ak@linux.intel.com>
13730 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
13731 Convert to inchash.
13733 2014-07-31 Andi Kleen <ak@linux.intel.com>
13735 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
13737 2014-07-31 Andi Kleen <ak@linux.intel.com>
13739 * Makefile.in (OBJS): Add rtlhash.o
13740 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
13741 (loc_checksum): Dito.
13742 (loc_checksum_ordered): Dito.
13743 (hash_loc_operands): Dito.
13745 (hash_loc_list): Dito.
13746 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
13747 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
13748 * rtlhash.c: New file.
13749 * rtlhash.h: New file.
13751 2014-07-31 Andi Kleen <ak@linux.intel.com>
13753 * inchash.h (inchash): Change inchash class to namespace.
13754 (class hash): ... Rename from inchash.
13755 (add_object): Move from macro to class template.
13756 * lto-streamer-out.c (hash_tree): Change inchash
13758 * tree.c (build_type_attribute_qual_variant): Dito.
13759 (type_hash_list): Dito.
13760 (attribute_hash_list): Dito.
13761 (iterative_hstate_expr): Rename to inchash::add_expr
13762 (build_range_type_1): Change inchash to inchash::hash
13763 and use hash::add_expr.
13764 (build_array_type_1): Dito.
13765 (build_function_type): Dito
13766 (build_method_type_directly): Dito.
13767 (build_offset_type): Dito.
13768 (build_complex_type): Dito.
13769 (make_vector_type): Dito.
13770 * tree.h (iterative_hash_expr): Dito.
13772 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
13774 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
13776 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
13778 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
13779 correct alphabetical position.
13780 (vpaddd_f64): Rewrite using builtins.
13781 (vpaddd_s64): Move to correct alphabetical position.
13784 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
13787 * config/sh/sh.c (sh_legitimate_address_p,
13788 sh_legitimize_reload_address): Handle reg+reg address modes when
13789 ALLOW_INDEXED_ADDRESS is false.
13790 * config/sh/predicates.md (general_movsrc_operand,
13791 general_movdst_operand): Likewise.
13793 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
13795 * config/aarch64/aarch64-builtins.c
13796 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
13799 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
13801 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
13802 the generated mask based on BYTES_BIG_ENDIAN.
13803 (aarch64_simd_check_vect_par_cnst_half): New.
13804 * config/aarch64/aarch64-protos.h
13805 (aarch64_simd_check_vect_par_cnst_half): New.
13806 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
13807 the check out to aarch64_simd_check_vect_par_cnst_half.
13808 (vect_par_cnst_lo_half): Likewise.
13809 * config/aarch64/aarch64-simd.md
13810 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
13811 (move_hi_quad_<mode>): Always generate a low mask.
13813 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13815 * doc/invoke.texi (AVR Options): Add documentation about
13816 __AVR_DEVICE_NAME__ built-in macro.
13818 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
13821 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
13822 constraints are satisfied.
13823 (<shift>di3_neon): Likewise.
13825 2014-07-31 Richard Biener <rguenther@suse.de>
13827 PR tree-optimization/61964
13828 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
13829 by structural equality.
13831 2014-07-31 Yury Gribov <y.gribov@samsung.com>
13833 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
13834 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
13835 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
13837 * gcc.c (sanitize_spec_function): Support new option.
13838 (SANITIZER_SPEC): Remove now redundant check.
13839 * opts.c (common_handle_option): Support new option.
13840 (finish_options): Check for incompatibilities.
13841 * toplev.c (process_options): Split userspace-specific checks.
13843 2014-07-31 Richard Biener <rguenther@suse.de>
13845 * lto-streamer.h (struct output_block): Remove global.
13846 (struct data_in): Remove labels, num_named_labels and
13847 num_unnamed_labels.
13848 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
13849 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
13851 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
13854 * common.opt (-Wreturn-local-addr): Moved from c.opt.
13855 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
13856 (isolate_path): New argument to avoid inserting a trap.
13857 (find_implicit_erroneous_behaviour): Handle returning the address
13858 of a local variable.
13859 (find_explicit_erroneous_behaviour): Likewise.
13861 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
13864 * toplev.c (init_random_seed): Move piece of code never called to
13866 (set_random_seed): see above.
13868 2014-07-31 Tom de Vries <tom@codesourcery.com>
13870 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
13872 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
13874 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
13875 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
13877 2014-07-31 Richard Biener <rguenther@suse.de>
13879 * data-streamer.h (streamer_write_data_stream): Declare here,
13881 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
13882 * lto-cgraph.c (lto_output_node): Adjust.
13883 (lto_output_varpool_node): Likewise.
13884 * data-streamer-out.c (streamer_string_index): Likewise.
13885 (streamer_write_data_stream, lto_append_block): Move from ...
13886 * lto-section-out.c (lto_output_data_stream,
13887 lto_append_block): ... here.
13889 2014-07-30 Mike Stump <mikestump@comcast.net>
13891 * configure.ac: Also check for popen.
13892 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
13893 * configure: Regenerate.
13894 * config.in: Regenerate.
13896 2014-07-30 Martin Jambor <mjambor@suse.cz>
13898 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
13899 parameter to gimple.
13901 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13903 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
13904 address as second parameter to __tpf_eh_return routine.
13906 2014-07-30 Jiong Wang <jiong.wang@arm.com>
13908 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
13911 2014-07-30 Tom Tromey <tromey@redhat.com>
13914 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
13915 * doc/extend.texi (Type Attributes): Document designated_init
13918 2014-07-30 Roman Gareev <gareevroman@gmail.com>
13920 * graphite-isl-ast-to-gimple.c:
13921 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
13922 (gcc_expression_from_isl_expression): Pass type to
13923 gcc_expression_from_isl_ast_expr_id.
13925 2014-07-30 Richard Biener <rguenther@suse.de>
13927 * lto-streamer.h (lto_write_data): New function.
13928 * langhooks.c (lhd_append_data): Do not free block.
13929 * lto-section-out.c (lto_write_data): New function writing
13930 raw data to the current section.
13931 (lto_write_stream): Adjust for langhook semantic change.
13932 (lto_destroy_simple_output_block): Write header directly.
13933 * lto-opts.c (lto_write_options): Write options directly.
13934 * lto-streamer-out.c (produce_asm): Write heaeder directly.
13935 (lto_output_toplevel_asms): Likewise.
13936 (copy_function_or_variable): Copy data directly.
13937 (write_global_references): Output index table directly.
13938 (lto_output_decl_state_refs): Likewise.
13939 (write_symbol): Write data directly.
13940 (produce_symtab): Adjust.
13941 (produce_asm_for_decls): Output header and refs directly.
13943 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
13945 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
13946 to speculative_targets
13947 (get_class_context): Fix handling of contextes without outer type;
13948 avoid matching non-polymorphic types in LTO.
13949 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
13950 parameter to speculative_targetsp; handle speculation.
13951 (dump_possible_polymorphic_call_targets): Update dumping.
13953 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
13955 * common.opt (Wodr): Enable by default.
13957 2014-07-29 Olivier Hainque <hainque@adacore.com>
13959 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
13961 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
13964 * gengtype.c (strtoken): New function.
13965 (create_user_defined_type): Replace strtok with strtoken.
13967 2014-07-29 Nathan Sidwell <nathan@acm.org>
13969 * gcov-io.c (gcov_var): Make hidden.
13970 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
13971 (gcov_do_dump): Declare.
13972 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
13974 2014-07-29 Martin Jambor <mjambor@suse.cz>
13976 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
13977 parameter to gimple.
13978 (sra_modify_assign): Likewise.
13980 2014-07-29 Richard Biener <rguenther@suse.de>
13982 PR middle-end/52478
13983 * expr.c (expand_expr_real_2): Revert last change.
13985 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
13987 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
13988 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
13989 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
13991 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
13992 (contains_type_p): Forward declare.
13993 (polymorphic_call_target_hasher::hash): Hash speculative info.
13994 (polymorphic_call_target_hasher::equal): Compare speculative info.
13995 (get_class_context): Handle speuclation.
13996 (contains_type_p): Update.
13997 (get_polymorphic_call_info_for_decl): Update.
13998 (walk_ssa_copies): Break out from ...
13999 (get_polymorphic_call_info): ... here; set speculative context
14001 * ipa-prop.c (ipa_write_indirect_edge_info,
14002 ipa_read_indirect_edge_info): Stream speculative context.
14003 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
14004 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
14005 SPECULATIVE_MAYBE_DERIVED_TYPE).
14006 (possible_polymorphic_call_targets overriders): Update.
14007 (dump_possible_polymorphic_call_targets overriders): Update.
14008 (dump_possible_polymorphic_call_target_p overriders): Update.
14010 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
14012 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
14013 ipa-devirt path; fix thinko there.
14015 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
14017 * config/i386/i386.c (ix86_return_in_memory): Replace one
14018 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
14020 2014-07-28 Marek Polacek <polacek@redhat.com>
14022 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
14024 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
14026 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
14027 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
14028 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
14029 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
14030 (USE_LD_AS_NEEDED): Likewise.
14031 (ASM_APP_ON): Likewise.
14032 (ASM_APP_OFF): Likewise.
14033 (TARGET_POSIX_IO): Likewise.
14034 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
14035 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
14036 (USE_LD_AS_NEEDED): Likewise.
14037 (ASM_APP_ON): Likewise.
14038 (ASM_APP_OFF): Likewise.
14039 (TARGET_POSIX_IO): Likewise.
14041 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
14043 PR middle-end/61734
14044 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
14045 operators other than the equality operators.
14047 2014-07-28 Richard Biener <rguenther@suse.de>
14049 PR middle-end/52478
14050 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
14051 sure to register SImode ones, not only >= word_mode ones.
14052 * expr.c (expand_expr_real_2): When expanding -ftrapv
14053 binops do not use OPTAB_LIB_WIDEN.
14055 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
14057 PR middle-end/61919
14058 * tree-outof-ssa.c (insert_partition_copy_on_edge)
14059 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
14060 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
14061 inserting them in the insn stream.
14063 2014-07-28 Marek Polacek <polacek@redhat.com>
14065 PR middle-end/61913
14066 * common.opt (Wodr): Add Var.
14068 2014-07-28 Richard Biener <rguenther@suse.de>
14070 PR tree-optimization/61921
14071 * tree-ssa-structalias.c (create_variable_info_for_1): Check
14072 if there is a varpool node before dereferencing it.
14074 2014-07-28 Roman Gareev <gareevroman@gmail.com>
14076 * graphite-sese-to-poly.c:
14077 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
14078 id of the pbb), which contains pointer to the pbb1.
14080 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
14082 2014-07-28 Roman Gareev <gareevroman@gmail.com>
14084 * graphite-isl-ast-to-gimple.c:
14085 (graphite_create_new_guard): New function.
14086 (translate_isl_ast_node_if): New function.
14087 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
14089 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
14091 2014-07-27 Anthony Green <green@moxielogic.com>
14093 * config.gcc: Add moxie-*-moxiebox* configuration.
14094 * config/moxie/moxiebox.h: New file.
14096 2014-07-26 Andrew Pinski <apinski@cavium.com>
14098 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
14099 from the read only register.
14101 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
14103 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
14104 as the allocation class if it isn't likely to be spilled.
14106 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
14108 * rtl.h (tls_referenced_p): Declare.
14109 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
14110 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
14111 (mips_cannot_force_const_mem): Use tls_referenced_p.
14112 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
14113 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
14114 instead of pa_tls_referenced_p.
14115 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
14116 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
14117 (pa_legitimate_constant_p): Likewise.
14118 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
14119 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
14120 (rs6000_cannot_force_const_mem, rs6000_emit_move)
14121 (rs6000_address_for_altivec): Use tls_referenced_p instead of
14122 rs6000_tls_referenced_p.
14123 (rs6000_tls_symbol_ref_1): Delete.
14125 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
14128 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
14129 Optimize inverse of a VEC_CONCAT.
14131 2014-07-25 Xinliang David Li <davidxl@google.com>
14133 * params.def: New parameter.
14134 * coverage.c (get_coverage_counts): Check new flag.
14135 (coverage_compute_profile_id): Check new flag.
14136 (coverage_begin_function): Check new flag.
14137 (coverage_end_function): Check new flag.
14138 * value-prof.c (coverage_node_map_initialized_p): New function.
14139 (init_node_map): Populate map with all functions.
14140 * doc/invoke.texi: Document new parameter.
14142 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
14143 Richard Biener <rguenther@suse.de>
14145 * lto-streamer-out.c (struct sccs): Turn to ...
14146 (class DFS): ... this one; refactor the DFS walk so it can
14147 be re-done on per-SCC basis.
14148 (DFS::DFS): New constructor.
14149 (DFS::~DFS): New destructor.
14150 (hash_tree): Add new MAP argument holding in-SCC hash values;
14151 remove POINTER_TYPE hashing hack.
14152 (scc_entry_compare): Rename to ...
14153 (DFS::scc_entry_compare): ... this one.
14154 (hash_scc): Rename to ...
14155 (DFS::hash_scc): ... this one; pass output_block instead
14156 of streamer_cache; work harder to get unique and stable SCC
14158 (DFS_write_tree): Rename to ...
14159 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
14160 (lto_output_tree): Update.
14162 2014-07-25 Andi Kleen <ak@linux.intel.com>
14164 * lto-streamer-out.c (hash_tree): Convert to inchash.
14166 2014-07-25 Andi Kleen <ak@linux.intel.com>
14168 * tree.c (build_type_attribute_qual_variant): Use inchash.
14169 (type_hash_list): Dito.
14170 (attribute_hash_list): Dito
14171 (iterative_hstate_expr): Dito.
14172 (iterative_hash_expr): Dito.
14173 (build_range_type_1): Dito.
14174 (build_array_type_1): Dito.
14175 (build_function_type): Dito.
14176 (build_method_type_directly): Dito.
14177 (build_offset_type): Dito.
14178 (build_complex_type): Dito.
14179 (make_vector_type): Dito.
14180 * tree.h (iterative_hash_expr): Add compat wrapper.
14181 (iterative_hstate_expr): Add.
14183 2014-07-25 Andi Kleen <ak@linux.intel.com>
14185 * Makefile.in (OBJS): Add inchash.o.
14186 (PLUGIN_HEADERS): Add inchash.h.
14187 * ipa-devirt.c: Include inchash.h.
14188 * lto-streamer-out.c: Dito.
14189 * tree-ssa-dom.c: Dito.
14190 * tree-ssa-pre.c: Dito.
14191 * tree-ssa-sccvn.c: Dito.
14192 * tree-ssa-tail-merge.c: Dito.
14194 * tree.c (iterative_hash_hashval_t): Move to ...
14195 (iterative_hash_host_wide_int): Move to ...
14196 * inchash.c: Here. New file.
14197 * tree.h (iterative_hash_hashval_t): Move to ...
14198 (iterative_hash_host_wide_int): Move to ...
14199 * inchash.h: Here. New file.
14201 2014-07-25 Richard Biener <rguenther@suse.de>
14203 PR middle-end/61762
14204 PR middle-end/61894
14205 * fold-const.c (native_encode_int): Add and handle offset
14206 parameter to do partial encodings of expr.
14207 (native_encode_fixed): Likewise.
14208 (native_encode_real): Likewise.
14209 (native_encode_complex): Likewise.
14210 (native_encode_vector): Likewise.
14211 (native_encode_string): Likewise.
14212 (native_encode_expr): Likewise.
14213 * fold-const.c (native_encode_expr): Add offset parameter
14215 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
14216 (fold_ctor_reference): Handle all reads from tcc_constant
14219 2014-07-25 Richard Biener <rguenther@suse.de>
14221 * tree-inline.c (estimate_move_cost): Mark speed_p argument
14222 as possibly unused.
14224 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14226 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
14228 2014-07-24 Kyle McMartin <kyle@redhat.com>
14230 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
14232 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14234 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
14236 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
14238 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
14239 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
14240 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
14242 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14244 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
14245 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
14246 aggregate types. Instead, *all* aggregate types, except for single-
14247 element or homogeneous float/vector aggregates, are quadword-aligned
14248 if required by their type alignment. Issue -Wpsabi note when a type
14249 is now treated differently than before.
14251 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14253 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
14254 does not fit fully into floating-point registers, and there is still
14255 space in the register parameter area, use GPRs to pass those parts
14256 of the argument. Issue -Wpsabi note if any parameter is now treated
14257 differently than before.
14258 (rs6000_arg_partial_bytes): Update.
14260 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
14262 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
14264 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
14266 * rtl.h (target_rtl): Remove lang_dependent_initialized.
14267 * toplev.c (initialize_rtl): Don't use it. Move previously
14268 "language-dependent" calls to...
14269 (backend_init): ...here.
14270 (lang_dependent_init_target): Don't set lang_dependent_initialized.
14271 Assert that RTL initialization hasn't happend yet.
14273 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
14275 PR rtl-optimization/61629
14276 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
14277 they have already been initialized.
14279 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
14281 PR middle-end/61268
14282 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
14283 DECL_INCOMING_RTL and entry_parm.
14284 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
14285 * calls.c (load_register_parameters): Likewise argument values.
14286 (emit_library_call_value_1, store_one_arg): Likewise argument
14288 * config/i386/i386.c (assign_386_stack_local): Likewise the local
14290 * explow.c (validize_mem): Modify the argument in-place.
14292 2014-07-24 Jiong Wang <jiong.wang@arm.com>
14294 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
14295 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
14297 2014-07-24 Jiong Wang <jiong.wang@arm.com>
14299 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
14300 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
14302 2014-07-24 Jiong Wang <jiong.wang@arm.com>
14304 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
14305 (aarch64_save_callee_saves): New parameter "skip_wb".
14306 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
14308 2014-07-24 Jiong Wang <jiong.wang@arm.com>
14310 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
14312 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
14314 2014-07-24 Roman Gareev <gareevroman@gmail.com>
14316 * graphite-isl-ast-to-gimple.c:
14317 (graphite_create_new_loop): Add calling of isl_id_free to properly
14318 decrement reference counts.
14320 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
14322 2014-07-24 Martin Liska <mliska@suse.cz>
14323 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
14325 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
14326 (rs6000_code_end): Likewise.
14328 2014-07-24 Martin Liska <mliska@suse.cz>
14330 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
14331 symtab_node funtion used.
14332 (rs6000_xcoff_declare_object_name): Likewise.
14334 2014-07-24 Martin Liska <mliska@suse.cz>
14336 * cgraphunit.c (compile): Correct function used.
14338 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
14340 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
14343 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
14346 * varasm.c (bss_initializer_p): Handle offlined ctors.
14347 (align_variable, get_variable_align): Likewise.
14348 (make_decl_one_only): Likewise.
14349 (default_binds_local_p_1): Likewise.
14350 (decl_binds_to_current_def_p): Likewise.
14351 (get_variable_section): Get constructor if it is offlined.
14352 (assemble_variable_contents): Sanity check that the caller
14353 streamed in the ctor in LTO.
14355 2014-07-24 Roman Gareev <gareevroman@gmail.com>
14357 * graphite-isl-ast-to-gimple.c:
14358 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
14359 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
14360 isl_ast_op_pdiv_r to the different case.
14362 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
14364 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14366 PR middle-end/61876
14367 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
14368 when flag_errno_math is on.
14370 2014-07-24 Martin Liska <mliska@suse.cz>
14372 * cgraph.h (varpool_node):
14373 (availability get_availability (void)):
14374 created from cgraph_variable_initializer_availability
14375 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
14376 created from: cgraph_variable_initializer_availability
14377 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
14378 (void finalize_named_section_flags (void)):
14379 created from varpool_finalize_named_section_flags
14380 (bool assemble_decl (void)): created from varpool_assemble_decl
14381 (void analyze (void)): created from varpool_analyze_node
14382 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
14383 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
14384 (void remove_initializer (void)): created from varpool_remove_initializer
14385 (tree get_constructor (void)): created from varpool_get_constructor
14386 (bool externally_visible_p (void)): created from varpool_externally_visible_p
14387 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
14388 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
14389 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
14390 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
14391 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
14392 (static bool output_variables (void)): created from varpool_output_variables
14393 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
14394 created from varpool_extra_name_alias
14395 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
14396 (static void dump_varpool (FILE *f)): created from dump_varpool
14397 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
14398 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
14399 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
14400 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
14401 (void assemble_aliases (void)): created from assemble_aliases
14403 2014-07-24 Martin Liska <mliska@suse.cz>
14405 * cgraph.h (symtab_node):
14406 (void register_symbol (void)): created from symtab_register_node
14407 (void remove (void)): created from symtab_remove_node
14408 (void dump (FILE *f)): created from dump_symtab_node
14409 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
14410 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
14411 (struct ipa_ref *add_reference (symtab_node *referred_node,
14412 enum ipa_ref_use use_type)): created from add_reference
14413 (struct ipa_ref *add_reference (symtab_node *referred_node,
14414 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
14415 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
14416 gimple stmt)): created from maybe_add_reference
14417 (bool semantically_equivalent_p (symtab_node *target)): created from
14418 symtab_semantically_equivalent_p
14419 (void remove_from_same_comdat_group (void)): created from
14420 remove_from_same_comdat_group
14421 (void add_to_same_comdat_group (symtab_node *old_node)): created from
14422 symtab_add_to_same_comdat_group
14423 (void dissolve_same_comdat_group_list (void)): created from
14424 symtab_dissolve_same_comdat_group_list
14425 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
14426 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
14427 created from symtab_alias_ultimate_target
14428 (inline symtab_node *next_defined_symbol (void)): created from
14429 symtab_next_defined_symbol
14430 (bool resolve_alias (symtab_node *target)): created from
14431 symtab_resolve_alias
14432 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
14433 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
14434 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
14435 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
14436 (void set_section (const char *section)): created from set_section_1
14437 (enum availability get_availability (void)): created from symtab_node_availability
14438 (void make_decl_local (void)): created from symtab_make_decl_local
14439 (bool real_symbol_p (void)): created from symtab_read_node
14440 (can_be_discarded_p (void)): created from symtab_can_be_discarded
14441 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
14442 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
14443 symtab_in_same_comdat_p;
14444 (bool address_taken_from_non_vtable_p (void)): created from
14445 address_taken_from_non_vtable_p
14446 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
14447 (static void dump_table (FILE *)): created from dump_symtab
14448 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
14449 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
14450 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
14451 symtab_used_from_object_file_p
14452 (void dump_base (FILE *)): created from dump_symtab_base
14453 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
14454 (void unregister (void)): created from symtab_unregister_node
14455 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
14456 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
14457 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
14458 symtab_nonoverwritable_alias_1
14459 * cgraph.h (cgraph_node):
14460 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
14461 created from cgraph_remove_node_and_inline_clones
14462 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
14463 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
14464 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
14465 (cgraph_node *function_symbol (enum availability *avail = NULL)):
14466 created from cgraph_function_node
14467 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
14468 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
14469 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
14470 created from cgraph_create_clone
14471 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
14472 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
14473 created from cgraph_create_virtual_clone
14474 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
14475 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
14476 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
14477 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
14478 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
14479 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
14480 created from cgraph_function_version_info
14481 (struct cgraph_function_version_info *insert_new_function_version (void)):
14482 created from insert_new_cgraph_node_version
14483 (struct cgraph_function_version_info *function_version (void)): created from
14484 get_cgraph_node_version
14485 (void analyze (void)): created from analyze_function
14486 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
14487 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
14488 tree real_alias) cgraph_add_thunk
14489 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
14490 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
14491 created from cgraph_function_or_thunk_node
14492 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
14493 created from expand_thunk
14494 (void reset (void)): created from cgraph_reset_node
14495 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
14496 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
14497 (void remove (void)): created from cgraph_remove_node
14498 (void dump (FILE *f)): created from dump_cgraph_node
14499 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
14500 (bool get_body (void)): created from cgraph_get_body
14501 (void release_body (void)): created from cgraph_release_function_body
14502 (void unnest (void)): created from cgraph_unnest_node
14503 (void make_local (void)): created from cgraph_make_node_local
14504 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
14505 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
14506 gcov_type count, int freq)): created from cgraph_create_edge
14507 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
14508 gcov_type count, int freq)): created from cgraph_create_indirect_edge
14509 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
14510 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
14511 created from cgraph_create_edge_including_clones
14512 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
14513 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
14514 (void remove_callers (void)): created from cgraph_node_remove_callers
14515 (void remove_callees (void)): created from cgraph_node_remove_callees
14516 (enum availability get_availability (void)): created from cgraph_function_body_availability
14517 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
14518 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
14519 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
14520 (void call_duplication_hooks (cgraph_node *node2)): created from
14521 cgraph_call_node_duplication_hooks
14522 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
14523 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
14524 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
14525 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
14526 (void call_function_insertion_hooks (void)):
14527 created from cgraph_call_function_insertion_hooks
14528 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
14529 (bool local_p (void)): created from cgraph_local_node
14530 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
14531 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
14532 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
14533 (inline bool only_called_directly_or_aliased_p (void)):
14534 created from cgraph_only_called_directly_or_aliased_p
14535 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
14536 created from cgraph_will_be_removed_from_program_if_no_direct_calls
14537 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
14538 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
14539 (bool can_remove_if_no_direct_calls_p (void)):
14540 created from cgraph_can_remove_if_no_direct_calls_p
14541 (inline bool has_gimple_body_p (void)):
14542 created from cgraph_function_with_gimple_body_p
14543 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
14544 (static void dump_cgraph (FILE *f)): created from dump_cgraph
14545 (static inline void debug_cgraph (void)): created from debug_cgraph
14546 (static void record_function_versions (tree decl1, tree decl2)):
14547 created from record_function_versions
14548 (static void delete_function_version (tree decl)):
14549 created from delete_function_version
14550 (static void add_new_function (tree fndecl, bool lowered)):
14551 created from cgraph_add_new_function
14552 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
14553 (static cgraph_node * create (tree decl)): created from cgraph_create_node
14554 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
14555 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
14556 (static cgraph_node *get_for_asmname (tree asmname)):
14557 created from cgraph_node_for_asm
14558 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
14559 created from cgraph_same_body_alias
14560 (static bool used_from_object_file_p_worker (cgraph_node *node,
14561 void *): new function
14562 (static bool non_local_p (cgraph_node *node, void *)):
14563 created from cgraph_non_local_node_p_1
14564 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
14565 created from verify_cgraph
14566 (static bool make_local (cgraph_node *node, void *)):
14567 created from cgraph_make_node_local
14568 (static cgraph_node *create_alias (tree alias, tree target)):
14569 created from cgraph_create_function_alias
14570 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
14571 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
14572 created from cgraph_create_edge_1
14573 * cgraph.h (varpool_node):
14574 (void remove (void)): created from varpool_remove_node
14575 (void dump (FILE *f)): created from dump_varpool_node
14577 2014-07-24 Richard Biener <rguenther@suse.de>
14580 * tree-ssa-structalias.c (create_variable_info_for_1):
14581 Use varpool_get_constructor.
14582 (create_variable_info_for): Likewise.
14584 2014-07-24 Jiong Wang <jiong.wang@arm.com>
14586 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
14587 subtract outgoing area size when restoring stack_pointer_rtx.
14589 2014-07-24 Nick Clifton <nickc@redhat.com>
14591 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
14592 that operations are taking place in parallel.
14593 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
14595 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
14597 * omp-low.c (extract_omp_for_data): Add missing break statement.
14599 2014-07-24 Richard Biener <rguenther@suse.de>
14601 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
14602 * tree-inline.c (estimate_move_cost): Add speed_p parameter
14603 and adjust MOVE_RATIO query accordingly.
14604 (estimate_num_insns): Adjust callers.
14605 * ipa-prop.c (ipa_populate_param_decls): Likewise.
14606 * ipa-cp.c (gather_context_independent_values,
14607 estimate_local_effects): Likewise.
14608 * ipa-split.c (consider_split): Likewise.
14610 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
14612 * config/i386/driver-i386.c: Remove names of unused arguments and
14613 unnecessary unused attributes.
14614 * config/i386/host-mingw32.c: Likewise.
14615 * config/i386/i386.c: Likewise.
14616 * config/i386/winnt-stubs.c: Likewise.
14617 * config/i386/winnt.c: Likewise.
14619 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14621 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
14622 (aarch64_gen_loadwb_pair): New helper function.
14623 (aarch64_expand_epilogue): Simplify code using new helper functions.
14624 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
14626 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14628 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
14629 (aarch64_gen_storewb_pair): New helper function.
14630 (aarch64_expand_prologue): Simplify code using new helper functions.
14631 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
14633 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14635 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
14636 Rename to aarch64_save_callee_saves, remove restore code.
14637 (aarch64_restore_callee_saves): New function.
14639 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14641 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
14642 (aarch64_save_callee_saves): New function to handle reg save
14643 for both core and vectore regs.
14645 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14647 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
14648 (aarch64_gen_store_pair): New helper function.
14649 (aarch64_save_or_restore_callee_save_registers)
14650 (aarch64_save_or_restore_fprs): Use new helper functions.
14652 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14654 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
14655 (aarch64_save_or_restore_callee_save_registers)
14656 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
14658 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14660 * config/aarch64/aarch64.c
14661 (aarch64_save_or_restore_callee_save_registers)
14662 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
14664 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14666 * config/aarch64/aarch64.c
14667 (aarch64_save_or_restore_callee_save_registers)
14668 (aarch64_save_or_restore_fprs): Remove 'increment'.
14670 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14672 * config/aarch64/aarch64.c
14673 (aarch64_save_or_restore_callee_save_registers)
14674 (aarch64_save_or_restore_fprs): Use register offset in
14675 cfun->machine->frame.reg_offset.
14677 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14679 * config/aarch64/aarch64.c
14680 (aarch64_save_or_restore_callee_save_registers)
14681 (aarch64_save_or_restore_fprs): Remove base_rtx.
14683 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14685 * config/aarch64/aarch64.c
14686 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
14687 to 'start_offset'. Remove local variable 'start_offset'.
14689 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14691 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
14692 type to HOST_WIDE_INT.
14694 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14696 * config/aarch64/aarch64.c (aarch64_expand_prologue)
14697 (aarch64_save_or_restore_fprs)
14698 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
14700 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
14702 * config/arm/t-rtems-eabi: Add
14703 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
14704 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
14705 mbig-endian/mthumb/march=armv7-r, and
14706 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
14709 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
14710 Chris Johns <chrisj@rtems.org>
14711 Joel Sherrill <joel.sherrill@oarcorp.com>
14713 * config.gcc: Add nios2-*-rtems*.
14714 * config/nios2/rtems.h: New file.
14715 * gcc/config/nios2/t-rtems: New file.
14717 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
14720 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
14721 constant numbers, not general constants.
14722 (rs6000_expand_vector_init): Ditto.
14724 2014-07-23 Nathan Sidwell <nathan@acm.org>
14726 * gcov-tool.c (gcov_list): Declare here.
14727 (set_gcov_list): Remove.
14728 (gcov_output_files): Set gcov_list directly.
14730 2014-07-23 Host Schirmeier <horst@schirmeier.com>
14732 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
14734 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14736 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
14737 callee-saved registers are available for padding purpose
14738 and r3 is not mandatory, then prefer use those callee-saved
14741 2014-07-23 Richard Biener <rguenther@suse.de>
14743 * params.def (PARAM_MAX_COMBINE_INSNS): New.
14744 * combine.c: Include statistics.h and params.h.
14745 (combine_instructions): Guard three and four insn combines
14746 with max-combine-insns value. Record statistics for combines
14748 * doc/invoke.texi (max-combine-insns): Document new param.
14750 2014-07-23 Roman Gareev <gareevroman@gmail.com>
14752 * graphite-isl-ast-to-gimple.c:
14753 (translate_isl_ast_node_block): New function.
14754 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
14756 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
14757 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
14759 2014-07-23 Roman Gareev <gareevroman@gmail.com>
14761 * graphite-isl-ast-to-gimple.c:
14762 (get_max_schedule_dimensions): New function.
14763 (extend_schedule): Likewise.
14764 (generate_isl_schedule): Add calling of extend_schedule and
14765 get_max_schedule_dimensions.
14767 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14769 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
14770 (case UNSPEC): Handle UNSPEC_RBIT.
14772 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14774 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
14775 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
14777 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14779 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
14781 2014-07-22 Roman Gareev <gareevroman@gmail.com>
14783 * graphite-isl-ast-to-gimple.c:
14784 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
14785 (ivs_params_clear):
14786 (build_iv_mapping): New function.
14787 (translate_isl_ast_node_user): Likewise.
14788 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
14790 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
14791 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
14792 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
14794 2014-07-21 Bin Cheng <bin.cheng@arm.com>
14797 * config/arm/arm.md (setmem): New pattern.
14798 * config/arm/arm-protos.h (struct tune_params): New fields.
14799 (arm_gen_setmem): New prototype.
14800 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
14801 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
14802 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
14803 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
14804 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
14805 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
14806 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
14807 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
14808 (arm_const_inline_cost): New function.
14809 (arm_block_set_max_insns): New function.
14810 (arm_block_set_non_vect_profit_p): New function.
14811 (arm_block_set_vect_profit_p): New function.
14812 (arm_block_set_unaligned_vect): New function.
14813 (arm_block_set_aligned_vect): New function.
14814 (arm_block_set_unaligned_non_vect): New function.
14815 (arm_block_set_aligned_non_vect): New function.
14816 (arm_block_set_vect, arm_gen_setmem): New functions.
14818 2014-07-21 Bin Cheng <bin.cheng@arm.com>
14820 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
14822 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
14825 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
14826 out of #ifdef __OPTIMIZE__.
14828 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
14830 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
14831 different trapping status if -fnon-call-exceptions is enabled.
14833 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
14835 * expr.c (store_field): Handle VOIDmode for calls that return values
14836 in multiple locations.
14838 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14840 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
14841 (altivec_vsldoi_<mode>): Likewise.
14843 2014-07-20 Roman Gareev <gareevroman@gmail.com>
14845 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
14846 to the number of characters in the line.
14848 2014-07-20 Roman Gareev <gareevroman@gmail.com>
14850 * graphite-isl-ast-to-gimple.c: Add using of
14851 build_nonstandard_integer_type instead of int128_integer_type_node.
14853 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
14855 * toplev.c (output_stack_usage): Adjust the location of the warning.
14857 2014-07-19 Daniel Cederman <cederman@gaisler.com>
14859 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
14860 (*membar_storeload): Disable for LEON3.
14862 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14864 PR rtl-optimization/61461
14865 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
14867 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
14870 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
14871 Fix instruction constraint.
14872 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
14874 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
14876 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
14878 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
14880 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
14881 GNU coding standards.
14882 (nds32_register_move_cost): Likewise.
14883 (nds32_memory_move_cost): Likewise.
14884 (nds32_address_cost): Likewise.
14886 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14888 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
14890 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
14892 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
14893 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
14894 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
14895 (HAVE_sync_compare_and_swapqi): Define.
14896 (HAVE_sync_compare_and_swaphi): Likewise.
14897 (HAVE_sync_compare_and_swapsi): Likewise.
14899 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
14901 * config/mips/p5600.md: Add missing cpu tests.
14903 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14905 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
14906 (vmla_f64): Likewise.
14907 (vfms_f64): Likewise.
14908 (vmls_f64): Likewise.
14910 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14912 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
14913 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
14915 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14917 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
14918 (vmlal_high_lane_s32): Likewise.
14919 (vmlal_high_lane_u16): Likewise.
14920 (vmlal_high_lane_u32): Likewise.
14921 (vmlsl_high_lane_s16): Likewise.
14922 (vmlsl_high_lane_s32): Likewise.
14923 (vmlsl_high_lane_u16): Likewise.
14924 (vmlsl_high_lane_u32): Likewise.
14926 2014-07-17 Terry Guo <terry.guo@arm.com>
14928 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
14929 (alus_reg): Renamed to alus_sreg.
14930 * config/arm/arm-fixed.md: Change type of non-dsp instructions
14931 from alu_reg to alu_sreg. Change type of dsp instructions from
14932 alu_reg to alu_dsp_reg.
14933 * config/arm/thumb1.md: Likewise.
14934 * config/arm/thumb2.md: Likewise.
14935 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
14936 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
14937 with alu_sreg and alus_sreg.
14938 * config/arm/arm1026ejs.md (alu_op): Likewise.
14939 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
14940 * config/arm/arm926ejs.md (9_alu_op): Likewise.
14941 * config/arm/fa526.md (526_alu_op): Likewise.
14942 * config/arm/fa606te.md (606te_alu_op): Likewise.
14943 * config/arm/fa626te.md (626te_alu_op): Likewise.
14944 * config/arm/fa726te.md (726te_alu_op): Likewise.
14945 * config/arm/fmp626.md (mp626_alu_op): Likewise.
14946 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
14947 alu_sreg, alu_dsp_reg and alus_sreg.
14948 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
14949 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
14950 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
14951 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
14952 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
14953 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
14954 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
14955 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
14956 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
14957 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
14958 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
14959 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
14960 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
14961 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
14962 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
14963 alus_reg to alus_sreg.
14965 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
14967 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
14970 2014-07-17 Richard Biener <rguenther@suse.de>
14972 PR rtl-optimization/61801
14973 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
14974 don't set reg_pending_barrier if it appears in a debug-insn.
14976 2014-07-16 DJ Delorie <dj@redhat.com>
14978 * config/rx/rx.c (rx_option_override): Fix alignment values.
14979 (rx_align_for_label): Likewise.
14981 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
14984 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
14985 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
14986 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
14988 (cris_print_index, cris_print_operand, cris_constant_index_p)
14989 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
14990 (cris_address_cost): Ditto last CONSTANT_P.
14991 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
14992 callers changed. Yield cris_offsettable_symbol for non-PIC
14993 constant symbolic expressions including labels. Yield cris_unspec
14995 (cris_expand_pic_call_address): New parameter MARKERP. Set its
14996 target to pic_offset_table_rtx for calls that will likely go
14997 through PLT, const0_rtx when they can't. All callers changed.
14998 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
14999 symbolic expressions to be PICified. Remove second, redundant,
15000 assert on can_create_pseudo_p returning non-zero. Use
15001 replace_equiv_address_nv, not replace_equiv_address, for final
15003 * config/cris/cris.md ("movsi"): Move variable t to pattern
15004 toplevel. Adjust assert for new cris_symbol_type member. Use
15005 CONSTANT_P instead of CONSTANT_ADDRESS_P.
15006 ("*movsi_internal") <case 9>: Make check for valid unspec operands
15008 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
15009 ("call", "call_value"): Use second incoming operand as a marker
15010 for pic-offset-table-register being used.
15011 ("*expanded_call_non_v32", "*expanded_call_v32")
15012 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
15013 second incoming operand to CALL, match cris_call_type_marker.
15014 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
15015 ("*expanded_call_side"): Ditto. Fix typo in comment.
15016 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
15018 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
15019 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
15020 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
15021 users changed. Add members cris_offsettable_symbol and cris_unspec.
15022 (cris_symbol_type): Rename from cris_pic_symbol_type.
15023 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
15025 * config/cris/cris-protos.h (cris_symbol_type_of,
15026 cris_expand_pic_call_address): Adjust prototypes.
15027 (cris_legitimate_constant_p): New prototype.
15029 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
15030 an existing tmake_file. Don't add t-slibgcc and t-linux.
15032 2014-07-17 Jason Merrill <jason@redhat.com>
15035 * symtab.c (symtab_remove_from_same_comdat_group): Also
15036 set_comdat_group to NULL_TREE.
15037 (verify_symtab): Fix diagnostic.
15039 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
15042 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
15044 2014-07-16 Dodji Seketeli <dodji@redhat.com>
15046 Support location tracking for built-in macro tokens
15047 * input.h (is_location_from_builtin_token): New function declaration.
15048 * input.c (is_location_from_builtin_token): New function definition.
15049 * toplev.c (general_init): Tell libcpp what the pre-defined
15050 spelling location for built-in tokens is.
15052 2014-07-16 Jakub Jelinek <jakub@redhat.com>
15054 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
15055 on the FUNCTION_DECL.
15057 2014-07-16 Richard Biener <rguenther@suse.de>
15060 * doc/extend.texi (always_inline): Clarify.
15062 2014-07-15 Eric Christopher <echristo@gmail.com>
15064 * doc/invoke.texi (Link Options): Document -z option.
15066 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
15068 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
15069 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
15071 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
15073 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
15075 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
15077 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
15078 varpool_assemble_decl.
15079 * varpool.c (varpool_assemble_decl): Assert that node->definition is
15082 2014-07-15 Michael Matz <matz@suse.de>
15084 PR rtl-optimization/61772
15085 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
15087 2014-07-15 Richard Biener <rguenther@suse.de>
15089 * opts.c (default_options_table): Disable bit-ccp at -Og.
15091 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
15093 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
15095 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
15097 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
15098 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
15099 call langhook for unknown declaration.
15100 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
15101 * tree.h (DECL_ARGUMENTS): Update.
15102 * print-tree.c (print_node): Update.
15103 * tree-core.h (tree_decl_non_common): Remove arguments.
15104 (tree_function_decl): Add arguments.
15106 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
15108 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
15110 2014-07-14 Richard Biener <rguenther@suse.de>
15112 PR tree-optimization/61779
15113 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
15114 simplifying a condition.
15116 2014-07-14 Richard Biener <rguenther@suse.de>
15118 * builtins.c (c_strlen): Make only_value == 2 really only
15119 affect warning generation.
15121 2014-07-14 Richard Biener <rguenther@suse.de>
15123 PR tree-optimization/61757
15124 PR tree-optimization/61783
15125 PR tree-optimization/61787
15126 * tree-ssa-dom.c (record_equality): Revert canonicalization
15127 change and add comment.
15128 (propagate_rhs_into_lhs): Revert previous fix, removing
15129 loop depth restriction again.
15131 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15133 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
15134 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
15135 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
15136 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
15137 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
15138 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
15139 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
15141 2014-07-14 Richard Biener <rguenther@suse.de>
15143 * cgraph.h (decl_in_symtab_p): Make inline.
15145 2014-07-14 Jakub Jelinek <jakub@redhat.com>
15147 PR middle-end/61294
15148 * doc/invoke.texi (-Wmemset-transposed-args): Document.
15151 * config/i386/i386.c (classify_argument): Don't merge classes above
15154 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
15156 * cgraph.h (symtab_node): Add nonzero_address.
15157 (decl_in_symtab_p): Break out from ...
15158 (symtab_get_node): ... here.
15159 * fold-const.c: Include cgraph.h
15160 (tree_single_nonzero_warnv_p): Use symtab to determine
15161 if symbol is non-zero.
15162 * symtab.c (symtab_node::nonzero_address): New method.
15164 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
15166 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
15167 forgotten in previous commit.
15169 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
15171 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
15173 * ipa-devirt.c: Include stor-layout.h and intl.h
15174 (odr_subtypes_equivalent_p): New function.
15175 (warn_odr): New function.
15176 (warn_type_mismatch): New function.
15177 (odr_types_equivalent_p): New function.
15178 (add_type_duplicate): Use it.
15179 * common.opt (Wodr): New flag.
15180 * doc/invoke.texi (Wodr): Document new warning.
15182 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
15184 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
15185 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
15186 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
15187 (varpool_get_constructor): Push CTORS_IN timevar.
15188 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
15190 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
15192 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
15193 Remove VOID_FTYPE_PUSHORT.
15194 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
15195 Change code to USHORT_FTYPE_VOID.
15196 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
15197 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
15198 (ix86_atomic_assign_expand_fenv): Update for
15199 __builtin_ia32_fnstsw changes.
15200 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
15201 (fnstsw): Change operand 0 to nonimmediate operand.
15203 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
15205 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
15206 (varpool_get_constructor): New function.
15207 (varpool_ctor_useable_for_folding_p): Break out from ...
15208 (ctor_for_folding): ... here; use varpool_get_constructor.
15209 (varpool_assemble_decl): Likewise.
15210 * lto-streamer.h (struct output_block): Turn cgraph_node
15212 (lto_input_variable_constructor): Declare.
15213 * ipa-visibility.c (function_and_variable_visibility): Use
15214 varpool_get_constructor.
15215 * cgraph.h (varpool_get_constructor): Declare.
15216 (varpool_ctor_useable_for_folding_p): New function.
15217 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
15218 parameter; return error_mark_node for non-trivial constructors.
15219 (lto_write_tree_1, DFS_write_tree): Update use of
15220 get_symbol_initial_value.
15221 (output_function): Update initialization of symbol.
15222 (output_constructor): New function.
15223 (copy_function): Rename to ..
15224 (copy_function_or_variable): ... this one; handle vars too.
15225 (lto_output): Output variable sections.
15226 * lto-streamer-in.c (input_constructor): New function.
15227 (lto_read_body): Rename from ...
15228 (lto_read_body_or_constructor): ... this one; handle vars too.
15229 (lto_input_variable_constructor): New function.
15230 * ipa-prop.c (ipa_prop_write_jump_functions,
15231 ipa_prop_write_all_agg_replacement): Update.
15232 * lto-cgraph.c (compute_ltrans_boundary): Use it.
15233 (output_cgraph_opt_summary): Set symbol to NULL.
15235 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
15237 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
15238 non-polymorphic types.
15239 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
15240 * ipa-devirt.c (types_same_for_odr): Do not explode when one
15241 of types is not polymorphic.
15243 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
15245 * lra-constraints.c (remove_inheritance_pseudos): Process
15246 destination pseudo too.
15248 2014-07-11 Rong Xu <xur@google.com>
15250 * gcov-tool.c (gcov_output_files): Fix build error introduced in
15253 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15255 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
15256 * config/avr/avr-devices.c (AVR_MCU): Same.
15257 (avr_mcu_types): add text start value to end of device list.
15258 * config/avr/avr-mcus.def: Add text section start for all devices.
15259 (ata5782): Add new avr5 device.
15261 * config/avr/avr-tables.opt: Regenerate.
15262 * config/avr/avr.h: Add declaration for text section start handler.
15263 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
15265 (LINK_SPEC): Include text section start handler to linker spec.
15266 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
15267 pass -Ttext option to linker if the text section start for the device
15269 * config/avr/t-multilib: Regenerate.
15270 * doc/avr-mmcu.texi: Regenerate.
15272 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
15274 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
15275 * config/rs6000/aix52.h (LINK_SPEC): Same.
15276 * config/rs6000/aix53.h (LINK_SPEC): Same.
15277 * config/rs6000/aix61.h (LINK_SPEC): Same.
15278 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
15280 2014-07-11 Roman Gareev <gareevroman@gmail.com>
15282 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
15283 (graphite_verify): New function.
15284 (ivs_params_clear): New function.
15285 (gcc_expression_from_isl_ast_expr_id): New function.
15286 (gcc_expression_from_isl_expr_int): New function.
15287 (binary_op_to_tree): New function.
15288 (ternary_op_to_tree): New function.
15289 (unary_op_to_tree): New function.
15290 (nary_op_to_tree): New function.
15291 (gcc_expression_from_isl_expr_op): New function.
15292 (gcc_expression_from_isl_expression): New function.
15293 (graphite_create_new_loop): New function.
15294 (translate_isl_ast_for_loop): New function.
15295 (get_upper_bound): New function.
15296 (graphite_create_new_loop_guard): New function.
15297 (translate_isl_ast_node_for): New function.
15298 (translate_isl_ast): New function.
15299 (add_parameters_to_ivs_params): New function.
15300 (scop_to_isl_ast): New parameter ip.
15301 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
15303 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
15305 * config/xtensa/predicates.md (call expander): Update for
15306 DECL_SECTION_NAME being string.
15308 2014-07-11 Richard Biener <rguenther@suse.de>
15310 PR middle-end/61473
15311 * builtins.c (fold_builtin_memory_op): Inline memory moves that
15312 can be implemented with a single load followed by a single store.
15313 (c_strlen): Only warn when only_value is not 2.
15315 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
15317 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
15319 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
15322 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
15323 (*movhi_bytes): Likewise.
15324 (*arm_movqi_insn): Likewise.
15326 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
15329 * config/alpha/alpha.c: Include tree-pass.h, context.h
15330 and pass_manager.h.
15331 (pass_data_handle_trap_shadows): New pass.
15332 (pass_handle_trap_shadows::gate): New pass gate function.
15333 (make_pass_handle_trap_shadows): New function.
15334 (rest_of_handle_trap_shadows): Ditto.
15336 (alpha_align_insns_1): Rename from alpha_align_insns.
15337 (pass_data_align_insns): New pass.
15338 (pass_align_insns::gate): New pass gate function.
15339 (make_pass_aling_insns): New function.
15340 (rest_of_align_insns): Ditto.
15341 (alpha_align_insns): Ditto.
15343 (alpha_option_override): Declare handle_trap_shadows info
15344 and align_insns_info. Register handle_trap_shadows and align_insns
15346 (alpha_reorg): Do not call alpha_trap_shadows and
15347 alpha_align_insn from here.
15349 (alpha_pad_function_end): Do not skip BARRIERs.
15351 2014-07-10 Rong Xu <xur@google.com>
15353 Add gcov-tool: an offline gcda profile processing tool support.
15354 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
15355 (gcov_is_error): Ditto.
15356 (gcov_read_string): Ditto.
15357 (gcov_read_sync): Ditto.
15358 * gcov-io.h: Move counter defines to gcov-counter.def.
15359 * gcov-dump.c (tag_counters): Use gcov-counter.def.
15360 * coverage.c: Ditto.
15361 * gcov-tool.c: Offline gcda profile processing tool.
15362 (unlink_gcda_file): Remove one gcda file.
15363 (unlink_profile_dir): Remove gcda files from the profile path.
15364 (gcov_output_files): Output gcda files to an output dir.
15365 (profile_merge): Merge two profiles in directory.
15366 (print_merge_usage_message): Print merge usage.
15367 (merge_usage): Print merge usage and exit.
15368 (do_merge): Driver for profile merge sub-command.
15369 (profile_rewrite): Rewrite profile.
15370 (print_rewrite_usage_message): Print rewrite usage.
15371 (rewrite_usage): Print rewrite usage and exit.
15372 (do_rewrite): Driver for profile rewrite sub-command.
15373 (print_usage): Print gcov-info usage and exit.
15374 (print_version): Print gcov-info version.
15375 (process_args): Process arguments.
15376 (main): Main routine for gcov-tool.
15377 * Makefile.in: Build and install gcov-tool.
15378 * gcov-counter.def: New file split from gcov-io.h.
15379 * doc/gcc.texi: Include gcov-tool.texi.
15380 * doc/gcov-tool.texi: Document for gcov-tool.
15382 2014-07-10 Richard Biener <rguenther@suse.de>
15384 PR tree-optimization/61757
15385 * tree-ssa-dom.c (loop_depth_of_name): Restore.
15386 (propagate_rhs_into_lhs): Revert part of last change.
15388 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
15390 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
15393 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
15395 PR middle-end/53590
15396 * function.c (allocate_struct_function): Revert r188667 change.
15398 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
15400 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
15402 * doc/install.texi: Remove links to defunct package providers for
15405 2014-07-09 Tom de Vries <tom@codesourcery.com>
15407 * final.c (get_call_fndecl): Declare.
15408 (self_recursive_call_p): New function.
15409 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
15411 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15413 * ipa-devirt.c (record_node): Walk through aliases.
15415 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15417 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
15419 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15422 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
15424 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15426 * ipa-visibility.c (function_and_variable_visibility): Remove
15427 temporary hack disabling local aliases on AIX.
15429 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15431 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
15432 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
15434 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15436 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
15437 * rs6000/rs6000.c: Inline output of .set instruction.
15438 (declare_alias_data): New struct.
15439 (rs6000_declare_alias): New function.
15440 (rs6000_xcoff_declare_function_name): Use it.
15441 (rs6000_xcoff_declare_object_name): New function.
15442 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
15443 (ASM_OUTPUT_DEF): Turn to empty definition.
15445 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
15448 * hash-table.h: use hash_table::value_type instead of
15449 Descriptor::value_type in the return types of several methods.
15451 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
15453 * tree-pass.h (pass_data): Remove has_execute member.
15454 * passes.c (execute_one_pass): Don't check pass->has_execute.
15455 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15456 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15457 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15458 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15459 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15460 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
15461 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
15462 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
15463 gimple-low.c, gimple-ssa-isolate-paths.c,
15464 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
15465 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
15466 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
15467 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
15468 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
15469 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
15470 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
15471 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
15472 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
15473 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
15474 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
15475 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
15476 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15477 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15478 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15479 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15480 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15481 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15482 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15483 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15484 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15485 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15486 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
15487 web.c: Remove initializer for pass_data::has_execute.
15489 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
15491 * graphite-htab.h: Use hash_map instead of hash_table.
15492 * graphite-clast-to-gimple.c: Adjust.
15493 * passes.c: Use hash_map instead of hash_table.
15494 * sese.c: Likewise.
15495 * sese.h: Remove now unused code.
15497 2014-07-08 Sriraman Tallam <tmsriram@google.com>
15500 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
15503 2014-07-08 Jakub Jelinek <jakub@redhat.com>
15505 PR rtl-optimization/61673
15506 * combine.c (simplify_comparison): Test just mode's sign bit
15507 in tmode rather than the sign bit and any bits above it.
15509 2014-07-08 Roman Gareev <gareevroman@gmail.com>
15511 * graphite-isl-ast-to-gimple.c (generate_isl_context):
15512 Add __isl_give to the declaration.
15513 (generate_isl_schedule): Likewise.
15514 (scop_to_isl_ast): Likewise.
15516 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15518 * config/arm/arm.c (cortexa5_extra_costs): New table.
15519 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
15521 2014-07-08 Jakub Jelinek <jakub@redhat.com>
15523 PR tree-optimization/61725
15524 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
15525 range, use range_includes_zerop_p instead of integer_zerop on
15526 vr0->min, only use log2 of max if min is not negative.
15528 2014-07-08 Richard Biener <rguenther@suse.de>
15530 * tree-ssa-dom.h (loop_depth_of_name): Remove.
15531 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
15532 restriction on loop depth difference.
15533 (record_equality): Likewise.
15534 (propagate_rhs_into_lhs): Likewise. Simplify condition.
15535 (loop_depth_of_name): Remove.
15536 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
15537 restriction on loop depth difference.
15538 (init_copy_prop): Likewise.
15540 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15542 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
15544 (walk_aliased_vdefs): Likewise.
15545 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
15546 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
15547 (detect_type_change_from_memory_writes): Check if entry was reached.
15549 2014-07-08 Richard Biener <rguenther@suse.de>
15551 PR tree-optimization/61681
15552 * tree-ssa-structalias.c (find_what_var_points_to): Expand
15553 NONLOCAL inside ESCAPED.
15555 2014-07-08 Richard Biener <rguenther@suse.de>
15557 PR tree-optimization/61680
15558 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
15559 Handle properly all read-write dependences with group accesses.
15561 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
15563 PR tree-optimization/61576
15564 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
15565 block containing reduction statement is predecessor of phi basi block.
15567 2014-07-08 Marek Polacek <polacek@redhat.com>
15570 * fold-const.c (round_up_loc): Change the parameter type.
15572 * fold-const.h (round_up_loc): Adjust declaration.
15573 * stor-layout.c (finalize_record_size): Check for too large types.
15575 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
15577 * symtab.c: Include calls.h.
15578 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
15580 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
15582 * config/rs6000/rs6000.c (output_vec_const_move): Handle
15583 little-endian code generation.
15584 * config/rs6000/spe.md (spe_evmergehi): Rename to...
15585 (vec_perm00_v2si): ... this. Handle little-endian code generation.
15586 (spe_evmergehilo): Rename to...
15587 (vec_perm01_v2si): ... this. Handle little-endian code generation.
15588 (spe_evmergelo): Rename to...
15589 (vec_perm11_v2si): ... this. Handle little-endian code generation.
15590 (spe_evmergelohi): Rename to...
15591 (vec_perm10_v2si): ... this. Handle little-endian code generation.
15592 (spe_evmergehi, spe_evmergehilo): New expanders.
15593 (spe_evmergelo, spe_evmergelohi): Likewise.
15594 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
15595 (*frob_tf_ti): Likewise.
15596 (*frob_<mode>_di_2): Likewise.
15597 (*frob_tf_di_8_2): Likewise.
15598 (*frob_di_<mode>): Likewise.
15599 (*frob_ti_tf): Likewise.
15600 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
15601 (*frob_ti_<mode>_8_2): Likewise.
15602 (*frob_ti_tf_2): Likewise.
15603 (mov_si<mode>_e500_subreg0): Rename to...
15604 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
15606 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
15607 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
15608 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
15609 the big endianness only.
15610 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
15611 (*mov_si<mode>_e500_subreg0_2): Rename to...
15612 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
15613 big big endianness only.
15614 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
15615 (*mov_si<mode>_e500_subreg4): Rename to...
15616 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
15618 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
15619 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
15620 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
15621 the big endianness only.
15622 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
15624 (*mov_si<mode>_e500_subreg4_2): Rename to...
15625 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
15627 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
15628 (*mov_sitf_e500_subreg8): Rename to...
15629 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
15631 (*mov_sitf_e500_subreg8_le): New instruction pattern.
15632 (*mov_sitf_e500_subreg8_2): Rename to...
15633 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
15635 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
15636 (*mov_sitf_e500_subreg12): Rename to...
15637 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
15639 (*mov_sitf_e500_subreg12_le): New instruction pattern.
15640 (*mov_sitf_e500_subreg12_2): Rename to...
15641 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
15643 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
15645 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
15647 * asan.c (instrument_strlen_call): Do not instrument first byte
15648 in strlen if already instrumented.
15650 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15652 * config/arm/arm.opt (mwords-little-endian): Delete.
15653 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
15654 of TARGET_LITTLE_WORDS.
15655 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
15656 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
15658 * doc/invoke.texi: Remove references to -mwords-little-endian.
15660 2014-07-07 Jakub Jelinek <jakub@redhat.com>
15662 * expmed.c (struct init_expmed_rtl): Change all fields but
15663 pow2 and cint from struct rtx_def to rtx.
15664 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
15665 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
15668 2014-07-06 Marek Polacek <polacek@redhat.com>
15671 * doc/invoke.texi: Document -Wsizeof-array-argument.
15673 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
15675 * wide-int.h (wide_int_storage): Change declaration from struct
15678 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
15680 * cgraph.c (cgraph_create_indirect_edge): Update call of
15681 get_polymorphic_call_info.
15682 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
15683 (possible_polymorphic_call_targets): Add parameter call.
15684 (decl_maybe_in_construction_p): New predicate.
15685 (get_polymorphic_call_info): Add parameter call;
15686 use decl_maybe_in_construction_p.
15687 * gimple-fold.c (fold_gimple_assign): Update use of
15688 possible_polymorphic_call_targets.
15689 (gimple_fold_call): Likewise.
15690 * ipa-prop.c: Inlcude calls.h
15691 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
15692 (param_type_may_change_p): New predicate.
15693 (detect_type_change_from_memory_writes): Break out from ...
15694 (detect_type_change): ... this one; use param_type_may_change_p.
15695 (detect_type_change_ssa): Use param_type_may_change_p.
15696 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
15698 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
15701 * config/arm/arm-protos.h (arm_legitimate_address_p,
15702 arm_is_constant_pool_ref): Add prototypes.
15703 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
15704 (arm_is_constant_pool_ref) New function.
15705 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
15706 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
15707 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
15708 operand. Remove pool_range and neg_pool_range attributes.
15709 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
15710 pool_range and neg_pool_range attributes.
15711 * config/arm/constraints.md (Uh): New constraint.
15712 (Uq): Don't allow constant pool references.
15714 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
15716 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
15717 (move_lo_quad_internal_be_<mode>): Likewise.
15718 (move_lo_quad_<mode>): Convert to define_expand.
15719 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
15720 (aarch64_simd_move_hi_quad_be_<mode>): New.
15721 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
15722 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
15723 (aarch64_combinez_be<mode>): New.
15724 (aarch64_combine<mode>): Convert to define_expand.
15725 (aarch64_combine_internal<mode>): New.
15726 (aarch64_simd_combine<mode>): Remove bogus RTL description.
15728 2014-07-04 Tom de Vries <tom@codesourcery.com>
15730 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
15731 combination of earlyclobber and read/write modifiers.
15733 2014-07-04 Tom de Vries <tom@codesourcery.com>
15735 * config/aarch64/aarch64-simd.md
15736 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
15738 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
15741 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
15743 2014-07-04 Jakub Jelinek <jakub@redhat.com>
15745 PR middle-end/61654
15746 * cgraphunit.c (expand_thunk): Call free_dominance_info.
15748 PR tree-optimization/61684
15749 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
15750 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
15752 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
15753 Kito Cheng <kito@0xlab.org>
15754 Monk Chiang <sh.chiang04@gmail.com>
15756 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
15757 (nds32_symbol_load_store_p): Move to ...
15758 (nds32_fp_as_gp_check_available): Move to ...
15759 * config/nds32/nds32-fp-as-gp.c: ... here.
15760 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
15761 extern declaration.
15763 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
15764 Kito Cheng <kito@0xlab.org>
15765 Monk Chiang <sh.chiang04@gmail.com>
15767 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
15768 (nds32_expand_store_multiple): Move to ...
15769 (nds32_expand_movmemqi): Move to ...
15770 * config/nds32/nds32-memory-manipulation.c: ... here.
15772 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
15773 Kito Cheng <kito@0xlab.org>
15774 Monk Chiang <sh.chiang04@gmail.com>
15776 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
15777 (nds32_output_casesi_pc_relative): Move to ...
15778 (nds32_output_casesi): Move to ...
15779 (nds32_mem_format): Move to ...
15780 (nds32_output_16bit_store): Move to ...
15781 (nds32_output_16bit_load): Move to ...
15782 (nds32_output_32bit_store): Move to ...
15783 (nds32_output_32bit_load): Move to ...
15784 (nds32_output_32bit_load_s): Move to ...
15785 (nds32_output_stack_push): Move to ...
15786 (nds32_output_stack_pop): Move to ...
15787 * config/nds32/nds32-md-auxiliary.c: ... here.
15789 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
15790 Ling-Hua Tseng <uranus@tinlans.org>
15792 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
15793 the purpose of this file.
15795 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
15796 Kito Cheng <kito@0xlab.org>
15797 Monk Chiang <sh.chiang04@gmail.com>
15799 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
15800 (nds32_address_cost): Move implementation to ...
15801 * config/nds32/nds32-cost.c: ... here.
15802 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
15803 (nds32_address_cost_impl): Declare.
15805 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
15806 Kito Cheng <kito@0xlab.org>
15807 Monk Chiang <sh.chiang04@gmail.com>
15809 * config/nds32/nds32.c
15810 (nds32_consecutive_registers_load_store_p): Move to ...
15811 (nds32_valid_multiple_load_store): Move to ...
15812 (nds32_valid_stack_push_pop): Move to ...
15813 (nds32_can_use_bclr_p): Move to ...
15814 (nds32_can_use_bset_p): Move to ...
15815 (nds32_can_use_btgl_p): Move to ...
15816 (nds32_can_use_bitci_p): Move to ...
15817 * config/nds32/nds32-predicates.c: ... here.
15819 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
15820 Kito Cheng <kito@0xlab.org>
15821 Monk Chiang <sh.chiang04@gmail.com>
15823 * config/nds32/nds32.c
15824 (nds32_expand_builtin_null_ftype_reg): Move to ...
15825 (nds32_expand_builtin_reg_ftype_imm): Move to ...
15826 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
15827 (nds32_init_builtins): Move implementation to ...
15828 (nds32_expand_builtin): Move implementation to ...
15829 * config/nds32/nds32-intrinsic.c: ... here.
15830 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
15831 (nds32_expand_builtin_impl): Declare.
15833 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
15834 Kito Cheng <kito@0xlab.org>
15835 Monk Chiang <sh.chiang04@gmail.com>
15837 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
15838 (nds32_emit_section_tail_template): Move to ...
15839 (nds32_emit_isr_jmptbl_section): Move to ...
15840 (nds32_emit_isr_vector_section): Move to ...
15841 (nds32_emit_isr_reset_conten): Move to ...
15842 (nds32_check_isr_attrs_conflict): Move to ...
15843 (nds32_construct_isr_vectors_information): Move to ...
15844 (nds32_asm_file_start): Move implementation to ...
15845 (nds32_asm_file_end): Move implementation to ...
15846 * config/nds32/nds32-isr.c: ... here.
15847 * config/nds32/nds32-protos.h
15848 (nds32_check_isr_attrs_conflict): Declare.
15849 (nds32_construct_isr_vectors_information): Declare.
15850 (nds32_asm_file_start_for_isr): Declare.
15851 (nds32_asm_file_end_for_isr): Declare.
15853 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
15854 Kito Cheng <kito@0xlab.org>
15855 Monk Chiang <sh.chiang04@gmail.com>
15857 * config.gcc (nds32*): Add new modules to extra_objs.
15858 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
15859 (nds32be-*-*): Likewise.
15860 * config/nds32/nds32-cost.c: New file.
15861 * config/nds32/nds32-fp-as-gp.c: New file.
15862 * config/nds32/nds32-intrinsic.c: New file.
15863 * config/nds32/nds32-isr.c: New file.
15864 * config/nds32/nds32-md-auxiliary.c: New file.
15865 * config/nds32/nds32-memory-manipulation.c: New file.
15866 * config/nds32/nds32-pipelines-auxiliary.c: New file.
15867 * config/nds32/nds32-predicates.c: New file.
15868 * config/nds32/t-nds32: New file.
15870 2014-07-03 Jakub Jelinek <jakub@redhat.com>
15872 PR tree-optimization/61682
15873 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
15874 using cases and when one of the operands is equal to 1.
15876 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
15878 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
15879 ashr<mode>3): Correct mode of operands[2].
15880 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
15881 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
15882 Correct mode of operands[2]. Fix split condition.
15884 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
15886 * arm.md (arch): Add armv6_or_vfpv3.
15887 (arch_enabled): Add test for the above.
15888 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
15890 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
15892 2014-07-03 Jakub Jelinek <jakub@redhat.com>
15894 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
15895 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
15896 HWI 1 and negate the unsigned value.
15897 * expmed.c (expand_sdiv_pow2): For modes wider than word always
15898 use AND instead of shift.
15899 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
15901 2014-07-03 Marek Polacek <polacek@redhat.com>
15903 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
15904 (-fsanitize=float-divide-by-zero): Move to the table with
15905 -fsanitize=undefined suboptions.
15906 (-fsanitize=float-cast-overflow): Likewise.
15908 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
15910 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
15911 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
15914 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15916 * loop-invariant.c (struct invariant): Add a new member: eqno;
15917 (find_identical_invariants): Update eqno;
15918 (create_new_invariant): Init eqno;
15919 (get_inv_cost): Compute comp_cost with eqno;
15921 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
15923 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
15924 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
15925 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
15926 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
15927 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
15929 2014-07-02 Christian Bruel <christian.bruel@st.com>
15933 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
15934 (make_preds_opaque): Delete.
15935 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
15936 (commit_mode_sets): New function.
15937 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
15938 Process all modes at once.
15939 * basic-block.h (pre_edge_lcm_avs): Declare.
15940 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
15941 Call clear_aux_for_edges. Fix comments.
15942 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
15943 (pre_edge_rev_lcm): Idem.
15944 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
15946 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
15947 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
15949 * config/i386/i386.c (x96_emit_mode_set): Idem.
15950 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
15951 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
15952 (fpscr_toggle) Disallow from delay slot.
15953 * target.def (emit_mode_set): Add prev_mode parameter.
15954 * doc/tm.texi: Regenerate.
15956 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15958 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
15961 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
15963 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
15964 vtable_pointer_value_to_vtable): Constify.
15965 (contains_polymorphic_type_p): Declare.
15966 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
15967 vtable_pointer_value_to_vtable): Constify.
15968 (contains_polymorphic_type_p): New predicate.
15969 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
15971 (ipa_set_ancestor_jf): Likewise.
15972 (detect_type_change): Return false in easy cases.
15973 (compute_complex_assign_jump_func): Require type to contain
15975 (compute_known_type_jump_func): Likewise.
15977 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
15979 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
15981 (type_in_anonymous_namespace_p): Constify argument.
15982 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
15983 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
15984 (main_odr_variant): New function.
15985 (hash_type_name): Make static; update assert; do not ICE on
15987 (types_same_for_odr): Bring here from tree.c; simplify and remove
15988 old structural comparing code that doesn't work for templates.
15989 (odr_hasher::equal): Update assert.
15990 (add_type_duplicate): Return true when bases should be computed;
15991 replace incomplete loader by complete; do not output duplicated
15992 warnings; do not ICE on non-records; set odr_violated flag.
15993 (get_odr_type): Be ready to replace incomplete type by complete
15994 one; work on ODR variants instead of main variants; reorder item
15995 in array so bases have still smaller indexes.
15996 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
15997 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
15999 2014-07-01 Cary Coutant <ccoutant@google.com>
16001 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
16003 (resolve_addr_in_expr): When replacing the rtx in a location list
16004 entry, get a new address table entry.
16005 (dwarf2out_finish): Call index_location_lists even if there are no
16006 addr_index_table entries yet.
16008 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
16010 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
16011 change for not being obvious.
16013 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
16015 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
16018 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16020 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
16021 (vcagt_f64): Likewise.
16022 (vcale_f64): Likewise.
16023 (vcaled_f64): Likewise.
16024 (vcales_f32): Likewise.
16025 (vcalt_f64): Likewise.
16026 (vcaltd_f64): Likewise.
16027 (vcalts_f32): Likewise.
16029 2014-07-01 Marek Polacek <polacek@redhat.com>
16031 * doc/invoke.texi: Document -Wint-conversion.
16033 2014-07-01 Marek Polacek <polacek@redhat.com>
16036 * doc/invoke.texi: Document -Wincompatible-pointer-types.
16038 2014-07-01 Martin Liska <mliska@suse.cz>
16040 IPA REF alias refactoring
16041 * cgraph.h (iterate_direct_aliases): New function.
16042 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
16043 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
16044 FOR_EACH_ALIAS added.
16045 (cgraph_for_node_and_aliases): Likewise.
16046 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
16047 * ipa-inline.c (reset_edge_caches): Likewise.
16048 (update_caller_keys): Likewise.
16049 * trans-mem.c (ipa_tm_execute): Likewise.
16050 *varpool.c (varpool_analyze_node): Likewise.
16051 (varpool_for_node_and_aliases): Likewise.
16052 * ipa-ref.h (first_alias): New function.
16053 (last_alias): Likewise.
16054 (has_aliases_p): Likewise.
16055 * ipa-ref.c (ipa_ref::remove_reference): Removal function
16056 is sensitive to IPA_REF_ALIASes.
16057 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
16058 are put at the beginning of the list.
16059 (symtab_node::iterate_direct_aliases): New function.
16061 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16064 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
16066 (write_ts_type_common_tree_pointers): Do not stream fields not set
16067 for incomplete types; do not stream duplicated fields for variants;
16068 sanity check that variant and type match.
16069 (write_ts_type_non_common_tree_pointers): Likewise.
16070 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
16071 TYPE_SIZE whether type is complete.
16072 (lto_input_ts_type_common_tree_pointers): Do same changes as in
16073 write_ts_type_common_tree_pointers
16074 (lto_input_ts_type_non_common_tree_pointers): Likewise.
16076 2014-06-30 Joseph Myers <joseph@codesourcery.com>
16078 * var-tracking.c (add_stores): Return instead of asserting if old
16079 and new values for conditional store are the same.
16081 2014-06-30 Richard Henderson <rth@redhat.com>
16085 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
16086 the cfg if there were any changes.
16087 * passes.def: Revert move of peephole2 after reorder_blocks;
16088 move duplicate_computed_gotos before peephole2.
16090 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
16092 * except.c (emit_note_eh_region_end): New helper function.
16093 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
16094 emit EH_REGION_END note.
16095 * jump.c (cleanup_barriers): Do not split a call and its
16096 corresponding CALL_ARG_LOCATION note.
16098 2014-06-30 Jeff Law <law@redhat.com>
16100 PR tree-optimization/61607
16101 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
16102 deeper into the SSA_NAME_VALUE chain.
16104 2014-06-30 Marek Polacek <polacek@redhat.com>
16106 * convert.c (convert_to_integer): Don't instrument conversions if the
16107 function has no_sanitize_undefined attribute.
16108 * ubsan.c: Don't run the ubsan pass if the function has
16109 no_sanitize_undefined attribute.
16111 2014-06-30 Jakub Jelinek <jakub@redhat.com>
16113 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
16114 -fsanitize=undefined suboptions.
16116 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
16118 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
16119 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
16120 against bigendian and adjust indices.
16122 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
16124 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
16126 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
16129 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
16130 Add alternative; make early clobber. Adjust both split patterns
16131 to use operand 0 as the working register.
16133 2014-06-30 Jakub Jelinek <jakub@redhat.com>
16135 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
16136 as ira_object_id_map might be NULL, or 1.
16138 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16140 * loop-invariant.c (get_inv_cost): Handle register class.
16141 (gain_for_invariant): Check the register pressure of the inv
16142 and its overlapped register class, other than all.
16144 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
16146 * doc/invoke.texi (Optimize Options): Fix descriptions of
16147 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
16149 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
16151 * doc/extend.texi (Function Attributes): Update 'naked' attribute
16154 2014-06-29 Tobias Grosser <tobias@grosser.es>
16157 * graphite-isl-ast-to-gimple.c: Add missing guards.
16159 2014-06-29 Roman Gareev <gareevroman@gmail.com>
16161 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
16162 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
16163 * flag-types.h: Add new enum fgraphite_generator.
16164 * graphite-isl-ast-to-gimple.c: New.
16165 * graphite-isl-ast-to-gimple.h: New.
16166 * graphite.c (graphite_transform_loops): Add choice of Graphite
16167 code generator, which depends on flag_graphite_code_gen.
16169 2014-06-29 Roman Gareev <gareevroman@gmail.com>
16171 * graphite-dependences.c (subtract_commutative_associative_deps):
16172 Add NULL checking of the following variables: must_raw_no_source,
16173 may_raw_no_source, must_war_no_source, may_war_no_source,
16174 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
16175 must_war, may_war, must_waw, may_waw.
16177 2014-06-29 Roman Gareev <gareevroman@gmail.com>
16179 * graphite-clast-to-gimple.c: gloog is renamed to
16180 graphite_regenerate_ast_cloog. gloog_error is renamed to
16181 graphite_regenerate_error.
16182 * graphite-clast-to-gimple.h: The definition of the struct
16183 bb_pbb_def is moved to graphite-htab.h.
16184 Add inclusion of the hash-table.h.
16185 * graphite-htab.h: The declaration of the function gloog is moved
16186 to graphite-clast-to-gimple.h and renamed to
16187 graphite_regenerate_ast_cloog.
16188 * graphite.c (graphite_transform_loops): gloog is renamed
16189 to graphite_regenerate_ast_cloog.
16191 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16193 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
16195 (write_ts_type_common_tree_pointers): Do not stream fields not set
16196 for incomplete types; do not stream duplicated fields for variants;
16197 sanity check that variant and type match.
16198 (write_ts_type_non_common_tree_pointers): Likewise.
16199 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
16200 TYPE_SIZE whether type is complete.
16201 (lto_input_ts_type_common_tree_pointers): Do same changes as in
16202 write_ts_type_common_tree_pointers
16203 (lto_input_ts_type_non_common_tree_pointers): Likewise.
16205 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16207 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
16209 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16211 * tree-inline.c (remap_type_1): Do not duplicate fields
16212 that are shared in between type and its main variant.
16214 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16216 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
16218 (ipa_set_ancestor_jf) Likewise.
16219 (check_stmt_for_type_change): Check that we work on main variant.
16220 (detect_type_change): Look into main variant.
16221 (compute_known_type_jump_func): Check that main variant has BINFO.
16223 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16225 * ipa-devirt.c (set_type_binfo): New function.
16226 (add_type_duplicate): Use it.
16227 (get_odr_type): Sanity check that binfos points to main variants.
16228 (get_class_context): Be sure the context's outer_type is main variant.
16229 (contains_type_p): Walk main variant.
16230 (get_polymorphic_call_info_for_decl): Set outer_type to be
16232 (get_polymorphic_call_info): Likewise.
16233 (possible_polymorphic_call_targets): Sanity check that we operate
16236 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16238 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
16240 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16242 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
16243 accidental change due to wide-int branch merge.
16245 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16247 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
16248 compressed debug support.
16249 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
16250 * configure: Regenerate.
16251 * config.in: Regenerate.
16252 * common.opt (compressed_debug_sections): New enum.
16253 (gz, gz=): New options.
16254 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
16255 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
16256 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
16257 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
16258 LINK_COMPRESS_DEBUG_SPEC.
16259 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
16260 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
16261 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
16262 (Debugging Options): Document -gz[=type].
16264 2014-06-27 Martin Jambor <mjambor@suse.cz>
16267 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
16268 args_to_skip, use those from node instead. Copy args_to_skip and
16269 combined_args_to_skip from node to the new thunk.
16270 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
16271 (cgraph_create_virtual_clone): Moved computation of
16272 combined_args_to_skip...
16273 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
16275 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
16277 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
16278 redundant diagnostic machinary.
16280 2014-06-27 Richard Biener <rguenther@suse.de>
16282 * tree-ssa-math-opts.c (bswap_replace): Fix
16283 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
16285 2014-06-27 Martin Liska <mliska@suse.cz>
16287 * gimple.h (gimple_location_safe): New function introduced.
16288 * cgraphunit.c (walk_polymorphic_call_targets): Usage
16289 of gimple_location_safe replaces gimple_location.
16290 (gimple_fold_call): Likewise.
16291 * ipa-devirt.c (ipa_devirt): Likewise.
16292 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
16293 * ipa.c (walk_polymorphic_call_targets): Likewise.
16294 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
16296 2014-06-27 Jakub Jelinek <jakub@redhat.com>
16298 PR tree-optimization/57233
16299 PR tree-optimization/61299
16300 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
16302 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
16303 would be lowered to scalar shifts, check if corresponding
16304 shifts and vector BIT_IOR_EXPR are supported and don't lower
16305 or lower just to narrower vector type in that case.
16306 * expmed.c (expand_shift_1): Fix up handling of vector
16307 shifts and rotates.
16309 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
16312 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
16314 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
16316 * doc/invoke.texi (-fsemantic-interposition): Document.
16317 * common.opt (fsemantic-interposition): New flag.
16318 * varasm.c (decl_replaceable_p): Use it.
16320 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16323 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
16324 extraction other than index 3.
16326 2014-06-26 Teresa Johnson <tejohnson@google.com>
16328 * doc/invoke.texi: Fix typo.
16329 * dumpfile.c: Add support for documented -fdump-* options
16330 optimized/missed/note/optall.
16332 2014-06-26 Martin Jambor <mjambor@suse.cz>
16334 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
16335 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
16336 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
16337 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
16338 * opts.c (default_options_optimization): Set
16339 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
16340 * doc/invoke.texi (allow-load-data-races)
16341 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
16342 (allow-store-data-races): Document the new default.
16344 2014-06-26 Martin Jambor <mjambor@suse.cz>
16346 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
16347 renamed to ipa_impossible_devirt_target. Fix typo.
16348 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
16349 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
16350 ipa_impossible_devirt_target.
16352 2014-06-26 Richard Biener <rguenther@suse.de>
16354 PR tree-optimization/61607
16355 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
16356 explaining why we restrict copies on loop depth.
16357 * tree-ssa-dom.c (cprop_operand): Remove restriction on
16359 (record_equivalences_from_phis): Instead add it here.
16361 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
16363 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
16364 (LTO_WRAPPER_OBJS): New variable.
16365 (lto-wrapper$(exeext)): Use it.
16366 * collect2.c: Include "collect-utils.h".
16367 (verbose, debug): Remove variables.
16368 (at_file_supplied): No longer static.
16369 (tool_name): New variable.
16370 (do_wait, fork_execute, maybe_unlink): Don't declare.
16371 (tool_cleanup): No longer static.
16372 (notice): Remove function.
16373 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
16374 fork_execute calls.
16375 (collect_wait, do_wait, collect_execute): Remove functions.
16376 (maybe_unlink): No longer static.
16377 * collect2.h (verbose, debug): Don't declare.
16378 (at_file_supplied): Declare.
16379 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
16381 (collect_execute): Replace with implementation from collect2, plus a
16382 new arg use_atfile. All callers changed.
16383 (collect_wait): Replace with implementation from collect2.
16384 (maybe_unlink_file): Remove function.
16385 (fork_execute): Replace with implementation from collect2, plus a
16386 new arg use_atfile. All callers changed.
16387 (do_wait): Add call to utils_cleanup to the error path.
16388 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
16389 (tool_cleanup): Adjust declarations.
16390 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
16391 * tlink.c: Include "collect-utils.h".
16392 (tlink_execute): New arg use_atfile. All callers changed.
16393 (tlink_init, tlink_execute): Remove declarations.
16395 * collect-utils.c (save_temps): New variable.
16396 (do_wait): Use it instead of debug. Use fatal_error.
16397 * collect-utils.h (save_temps): Declare.
16398 * collect2.c (verbose): Rename from vflag. All uses changed.
16399 (tool_cleanup): New function, copied from collect_atexit.
16400 (collect_atexit, handler): Just call it.
16401 * collect2.h (verbose): Declaration renamed from vflag.
16402 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
16405 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
16406 (lto-wrapper$(exeext)): Link with collect-utils.o.
16407 * collect-utils.c: New file.
16408 * collect-utils.h: New file.
16409 * lto-wrapper.c: Include "collect-utils.h".
16410 (args_name): Delete variable.
16411 (tool_name): New variable.
16412 (tool_cleanup): New function.
16413 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
16414 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
16415 (fork_execute): Remove functions.
16417 2014-06-26 Nick Clifton <nickc@redhat.com>
16419 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
16421 * doc/extend.texi (Function Attributes): Fix typo in description
16422 of RX vector attribute.
16424 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
16426 * config.gcc (supported_defaults): Error when passing either
16427 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
16429 2014-06-26 Richard Biener <rguenther@suse.de>
16431 * tree-ssa-dom.c (cprop_operand): Remove restriction on
16432 propagating volatile pointers.
16434 2014-06-26 Richard Biener <rguenther@suse.de>
16436 PR tree-optimization/61607
16437 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
16438 loop if we redirected its latch edge.
16439 (thread_block_1): Do not cancel loops prematurely.
16441 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
16443 * toplev.c (backend_init_target): Move init_emit_regs and
16445 (backend_init) ... here; skip ira_init_once and backend_init_target.
16446 (target_reinit) ... and here; clear
16447 this_target_rtl->lang_dependent_initialized.
16448 (lang_dependent_init_target): Clear
16449 this_target_rtl->lang_dependent_initialized;
16450 break out rtl initialization to ...
16451 (initialize_rtl): ... here; call also backend_init_target
16453 * toplev.h (initialize_rtl): New function.
16454 * function.c: Include toplev.h
16455 (init_function_start): Call initialize_rtl.
16456 * rtl.h (target_rtl): Add target_specific_initialized,
16457 lang_dependent_initialized.
16459 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
16460 Jakub Jelinek <jakub@redhat.com>
16462 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
16464 2014-06-25 Tom de Vries <tom@codesourcery.com>
16466 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
16468 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
16470 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
16471 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
16472 Issue a strict overflow warning if appropriate.
16474 2014-06-25 Martin Liska <mliska@suse.cz>
16476 IPA REF refactoring
16477 * Makefile.in: Removed header file (ipa-ref-inline.h).
16478 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
16480 (cgraph_speculative_call_info): Likewise.
16481 (cgraph_for_node_thunks_and_aliases): Likewise.
16482 (cgraph_for_node_and_aliases): Likewise.
16483 (verify_cgraph_node): Likewise.
16484 * cgraph.h: Batch of IPA REF functions become member functions of
16485 symtab_node: add_reference, maybe_add_reference, clone_references,
16486 clone_referring, clone_reference, find_reference,
16487 remove_stmt_references, remove_all_references,
16488 remove_all_referring, dump_references, dump_referring,
16489 has_alias_p, iterate_reference, iterate_referring.
16490 * cgraphbuild.c (record_reference): New IPA REF function used.
16491 (record_type_list): Likewise.
16492 (record_eh_tables): Likewise.
16493 (mark_address): Likewise.
16494 (mark_load): Likewise.
16495 (mark_store): Likewise.
16496 (pass_build_cgraph_edges): Likewise.
16497 (rebuild_cgraph_edge): Likewise.
16498 (cgraph_rebuild_references): Likewise.
16499 (pass_remove_cgraph_callee_edges): Likewise.
16500 * cgraphclones.c (cgraph_clone_node): Likewise.
16501 (cgraph_create_virtual_clone): Likewise.
16502 (cgraph_materialize_clone): Likewise.
16503 (cgraph_materialize_all_clones): Likewise.
16504 * cgraphunit.c (cgraph_reset_node): Likewise.
16505 (cgraph_reset_node): Likewise.
16506 (analyze_function): Likewise.
16507 (assemble_thunks_and_aliases): Likewise.
16508 (expand_function): Likewise.
16509 * ipa-comdats.c (propagate_comdat_group): Likewise.
16510 (enqueue_references): Likewise.
16511 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
16512 (create_specialized_node): Likewise.
16513 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
16514 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
16515 * ipa-inline.c (reset_edge_caches): Likewise.
16516 (update_caller_keys): Likewise.
16517 (execute): Likewise.
16518 * ipa-prop.c (remove_described_reference): Likewise.
16519 (propagate_controlled_uses): Likewise.
16520 (ipa_edge_duplication_hook): Likewise.
16521 (ipa_modify_call_arguments): Likewise.
16522 * ipa-pure-const.c (propagate_pure_const): Likewise.
16523 * ipa-ref-inline.h: Header file removed, functions moved
16524 to symtab_node class.
16525 * ipa-ref.c (remove_reference): New class member function.
16526 (cannot_lead_to_return): New class member function.
16527 (referring_ref_list): Likewise.
16528 (referred_ref_list): Likewise.
16529 Rest of functions moved to symtab_node class.
16530 * ipa-ref.h: New member functions remove_reference,
16531 cannot_lead_to_return, referring_ref_list, referred_ref_list added
16533 ipa_ref_list class has new member functions: first_reference,
16534 first_referring, clear, nreferences.
16535 * ipa-reference.c (analyze_function): New IPA REF function used.
16536 (write_node_summary_p): Likewise.
16537 (ipa_reference_write_optimization_summary): Likewise.
16538 * ipa-split.c (split_function): Likewise.
16539 * ipa-utils.c (ipa_reverse_postorder): Likewise.
16540 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
16541 (function_and_variable_visibility): Likewise.
16542 * ipa.c (has_addr_references_p): Likewise.
16543 (process_references): Argument type changed.
16544 (symtab_remove_unreachable_nodes): New IPA REF function used.
16545 (process_references): Likewise.
16546 (set_writeonly_bit): Likewise.
16547 * lto-cgraph.c: Implementation of new symtab_node member functions
16548 that uses new IPA REF functions.
16549 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
16551 * lto-streamer-out.c (output_symbol_p): Likewise.
16552 * lto-streamer.h (referenced_from_this_partition_p): Argument type
16554 * symtab.c: Implementation of new IPA REF API.
16555 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
16556 (ipa_tm_create_version): Likewise.
16557 (ipa_tm_execute): Likewise.
16558 * tree-emutls.c (gen_emutls_addr): Likewise.
16559 * tree-inline.c (copy_bb): Likewise.
16560 (delete_unreachable_blocks_update_callgraph): Likewise.
16561 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
16562 (varpool_for_node_and_aliases): Likewise.
16564 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
16566 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
16568 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
16571 * fold-const.c (fold_checksum_tree): Use a hash_table of const
16572 tree_node * instead of tree_node *.
16574 (print_fold_checksum): Likewise.
16575 (fold_check_failed): Likewise.
16576 (debug_fold_checksum): Likewise.
16577 (fold_build1_stat_loc): Likewise.
16578 (fold_build2_stat_loc): Likewise.
16579 (fold_build3_stat_loc): Likewise.
16580 (fold_build_call_array_loc): Likewise.
16582 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
16584 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
16585 implementation with call to...
16586 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
16588 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
16591 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
16593 PR tree-optimization/57742
16594 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
16595 after replacing the statement.
16597 2014-06-25 Nick Clifton <nickc@redhat.com>
16599 * config/v850/v850.c (GHS_default_section_names): Change to const
16601 (GHS_current_section_names): Likewise.
16602 (v850_insert_attributes): Do not build strings, just assign the
16603 names directly. Change the type of 'chosen_section' to const
16605 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
16606 directly to the array entry.
16607 * config/v850/v850.h (GHS_default_section_names): Change to const
16609 (GHS_current_section_names): Likewise.
16611 2014-06-25 Jakub Jelinek <jakub@redhat.com>
16613 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
16614 (LANG_HOOKS_DECLS): Add it.
16615 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
16617 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
16618 * langhooks.h (struct lang_hooks_for_decls): Add
16619 omp_clause_linear_ctor hook.
16620 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
16621 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
16622 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
16623 combined simd loop use omp_clause_linear_ctor hook.
16625 2014-06-24 Cong Hou <congh@google.com>
16627 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
16628 pattern recognition.
16629 (type_conversion_p): PROMOTION is true if it's a type promotion
16630 conversion, and false otherwise. Return true if the given expression
16631 is a type conversion one.
16632 * tree-vectorizer.h: Adjust the number of patterns.
16633 * tree.def: Add SAD_EXPR.
16634 * optabs.def: Add sad_optab.
16635 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
16636 * expr.c (expand_expr_real_2): Likewise.
16637 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
16638 * gimple.c (get_gimple_rhs_num_ops): Likewise.
16639 * optabs.c (optab_for_tree_code): Likewise.
16640 * tree-cfg.c (estimate_operator_cost): Likewise.
16641 * tree-ssa-operands.c (get_expr_operands): Likewise.
16642 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
16643 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
16644 * doc/generic.texi: Add document for SAD_EXPR.
16645 * doc/md.texi: Add document for ssad and usad.
16647 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
16649 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
16650 qualification in cast.
16652 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
16654 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
16655 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
16656 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
16657 (tree_function_decl): ... here.
16658 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
16659 streaming of vindex to ...
16660 (write_ts_function_decl_tree_pointers): ... here.
16661 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
16662 Do not stream DECL_VINDEX.
16663 (lto_input_ts_function_decl_tree_pointers): Stream it here.
16665 2014-06-24 Catherine Moore <clm@codesourcery.com>
16666 Sandra Loosemore <sandra@codesourcery.com>
16668 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
16669 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
16670 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
16672 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
16674 * doc/invoke.texi (Warning Options): Remove duplicated
16675 -Wmaybe-uninitialized.
16677 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
16679 PR tree-optimization/57742
16680 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
16681 (handle_builtin_malloc, handle_builtin_memset): New functions.
16682 (strlen_optimize_stmt): Call them.
16683 * passes.def: Move strlen after loop+dom but before vrp.
16685 2014-06-24 Jakub Jelinek <jakub@redhat.com>
16688 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
16689 model family 6 CPU with has_longmode never use a CPU without
16692 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
16695 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
16698 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
16700 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
16701 * dominance.c (iterate_fix_dominators): Use hash_map instead of
16703 * hash-map.h: New file.
16704 * ipa-comdats.c: Use hash_map instead of pointer_map.
16706 * lto-section-out.c: Adjust.
16707 * lto-streamer.h: Replace pointer_map with hash_map.
16708 * symtab.c (verify_symtab): Likewise.
16709 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
16710 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
16711 * tree-streamer.h: Likewise.
16712 * tree-streamer.c: Adjust.
16713 * pointer-set.h: Remove pointer_map.
16715 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
16717 * hash-table.h: Add a template arg to choose between storing values
16718 and storing pointers to values, and then provide partial
16719 specializations for both.
16720 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
16721 should store, not the type values should point to.
16722 * tree-into-ssa.c (var_info_hasher): Likewise.
16723 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
16724 * tree-complex.c: Adjust.
16725 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
16726 table instead of int_tree_map *.
16727 * tree-parloops.c: Adjust.
16728 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
16729 type is being stored.
16730 * tree-vectorizer.c: Adjust.
16732 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
16734 * hash-table.h: Remove a layer of indirection from hash_table so that
16735 it contains the hash table's data instead of a pointer to the data.
16736 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
16737 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
16738 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
16739 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
16740 fold-const.c, gcse.c, ggc-common.c,
16741 gimple-ssa-strength-reduction.c, gimplify.c,
16742 graphite-clast-to-gimple.c, graphite-dependences.c,
16743 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
16744 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
16745 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
16746 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
16747 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
16748 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
16749 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
16750 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
16751 tree-ssa-live.c, tree-ssa-loop-im.c,
16752 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
16753 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
16754 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
16755 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
16756 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
16757 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
16758 vtable-verify.c, vtable-verify.h: Adjust.
16760 2014-06-24 Richard Biener <rguenther@suse.de>
16762 PR tree-optimization/61572
16763 * tree-ssa-sink.c (statement_sink_location): Do not sink
16764 loads from hard registers.
16766 2014-06-24 Jakub Jelinek <jakub@redhat.com>
16768 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
16769 not mentioned in clauses use private clause if the iterator is
16770 declared in #pragma omp for simd, and when adding lastprivate
16771 instead, add it to the outer #pragma omp for too. Diagnose
16772 if the variable is private in outer context. For simd collapse > 1
16773 loops, replace all iterators with temporaries.
16774 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
16775 same even in collapse > 1 loops.
16777 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
16778 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
16780 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
16781 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
16783 (gimplify_adjust_omp_clauses): Likewise.
16784 * omp-low.c (lower_rec_simd_input_clauses,
16785 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
16786 safelen the same as safelen(1).
16787 * tree-nested.c (convert_nonlocal_omp_clauses,
16788 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
16789 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
16790 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
16791 Fixup handling of GIMPLE_OMP_TARGET.
16792 (convert_tramp_reference_stmt, convert_gimple_call): Handle
16795 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
16797 PR tree-optimization/61554
16798 * tree-ssa-propagate.c: Include "bitmap.h".
16799 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
16800 properly update constructor/destructor.
16801 (substitute_and_fold_dom_walker::before_dom_children):
16802 Remove call to gimple_purge_dead_eh_edges, add bb->index to
16803 need_eh_cleaup instead.
16804 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
16807 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
16809 * varpool.c (dump_varpool_node): Dump used_by_single_function.
16810 * tree-pass.h (make_pass_ipa_single_use): New pass.
16811 * cgraph.h (used_by_single_function): New flag.
16812 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
16814 * passes.def (pass_ipa_single_use): Scedule.
16815 * ipa.c (BOTTOM): New macro.
16816 (meet): New function
16817 (propagate_single_user): New function.
16818 (ipa_single_use): New function.
16819 (pass_data_ipa_single_use): New pass.
16820 (pass_ipa_single_use): New pass.
16821 (pass_ipa_single_use::gate): New gate.
16822 (make_pass_ipa_single_use): New function.
16824 2014-06-23 Kai Tietz <ktietz@redhat.com>
16827 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
16828 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
16830 2014-06-23 Richard Biener <rguenther@suse.de>
16832 * tree-ssa-loop.c (gate_loop): New function.
16833 (pass_tree_loop::gate): Call it.
16834 (pass_data_tree_no_loop, pass_tree_no_loop,
16835 make_pass_tree_no_loop): New.
16836 * tree-vectorizer.c: Include tree-scalar-evolution.c
16837 (pass_slp_vectorize::execute): Initialize loops and SCEV if
16839 (pass_slp_vectorize::clone): New method.
16840 * timevar.def (TV_TREE_NOLOOP): New.
16841 * tree-pass.h (make_pass_tree_no_loop): Declare.
16842 * passes.def (pass_tree_no_loop): New pass group with
16845 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
16848 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
16849 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
16851 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
16853 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
16854 "yes" where needed.
16856 2014-06-23 Alan Modra <amodra@gmail.com>
16859 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
16860 to zero on debug statements.
16862 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
16865 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
16866 Ignore third operand if present by marking qualifier_internal.
16868 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
16870 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
16872 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
16873 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
16874 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
16875 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
16876 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
16877 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
16878 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
16879 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
16880 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
16881 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
16882 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
16883 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
16884 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
16885 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
16886 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
16887 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
16888 logic in GCC vector extensions
16890 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
16891 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
16892 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
16893 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
16894 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
16895 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
16896 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
16897 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
16898 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
16899 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
16901 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
16903 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
16906 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
16907 (vget_low_s64): Use __GET_LOW macro.
16908 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
16909 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
16910 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
16911 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
16912 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
16914 (vcombine_s64): Use GCC vector extensions; remove cast.
16915 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
16916 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
16917 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
16918 Fix type signature; remove cast.
16920 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
16923 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
16925 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
16927 (BUILTIN_VD1): New.
16928 (BUILTIN_VD_RE): Remove.
16929 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
16930 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
16931 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
16932 variant but not df.
16933 (vreinterpretv1df*, vreinterpret*v1df): New.
16934 (vreinterpretdf*, vreinterpret*df): Remove.
16935 * config/aarch64/aarch64-simd.md (aarch64_create,
16936 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
16937 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
16939 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
16940 (vcreate_f64): Remove cast, use v1df builtin.
16941 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
16942 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
16943 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
16944 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
16945 vmov_n_f64, vst1_f64): Use gcc vector extensions.
16946 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
16947 add range check using __builtin_aarch64_im_lane_boundsi.
16948 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
16949 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
16950 type signature, use gcc vector extensions.
16951 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
16952 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
16953 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
16954 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
16955 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
16956 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
16957 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
16958 vreinterpret_u64_f64): Use v1df builtin not df.
16960 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
16962 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
16965 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
16967 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
16970 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16972 * loop-invariant.c (pre_check_invariant_p): New function.
16973 (find_invariant_insn): Call pre_check_invariant_p.
16975 2014-06-22 Richard Henderson <rth@redhat.com>
16978 * compare-elim.c (struct comparison): Add eh_note.
16979 (find_comparison_dom_walker::before_dom_children): Don't eliminate
16980 a redundant comparison in a different EH region. Purge EH edges if
16983 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
16985 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
16986 (var_shift): Use it.
16987 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
16988 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
16989 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
16990 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
16991 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
16992 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
16993 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
16994 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
16995 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
16996 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
16997 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
16998 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
16999 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
17000 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
17001 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
17002 *rotldi3_internal15be): Use the new attribute. Merge register and
17003 integer alternatives.
17005 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
17007 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
17008 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
17009 split, *ashrdi3_internal3 and split): Delete, merge into...
17010 (ashr<mode>3): New expander.
17011 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
17012 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
17014 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
17016 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
17017 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
17018 *rotldi3_internal3 and split): Delete, merge into...
17019 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
17020 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
17021 Use "rotlw" extended mnemonic.
17023 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
17025 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
17026 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
17027 and split, *ashldi3_internal3 and split): Delete, merge into...
17028 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
17029 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
17031 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
17033 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
17034 (lshrsi3, two anonymous define_insns and define_splits,
17035 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
17036 *lshrdi3_internal3 and split): Delete, merge into...
17037 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
17038 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
17040 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
17042 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
17043 Remove "O" alternative.
17045 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
17047 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
17048 (mips_move_from_gpr_cost): Likewise.
17049 (mips_register_move_cost): Update accordingly.
17050 (mips_secondary_reload_class): Remove name of in_p.
17052 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
17055 * config/i386/i386.md (x86_64_shrd, x86_shrd,
17056 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
17058 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17060 * config/nios2/nios2.c: Include "builtins.h".
17062 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
17064 * cgraph.h (tls_model_names): New variable.
17065 * print-tree.c (print_node): Simplify.
17066 * varpool.c (tls_model_names): New variable.
17067 (dump_varpool_node): Output tls model.
17069 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
17071 * ipa-visibility.c (function_and_variable_visibility): Disable
17072 temporarily local aliases for some targets.
17074 2014-06-20 Marek Polacek <polacek@redhat.com>
17076 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
17077 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
17078 into SANITIZE_UNDEFINED.
17079 * doc/invoke.texi: Describe -fsanitize=bounds.
17080 * gimplify.c (gimplify_call_expr): Add gimplification of internal
17081 functions created in the FEs.
17082 * internal-fn.c: Move "internal-fn.h" after "tree.h".
17083 (expand_UBSAN_BOUNDS): New function.
17084 * internal-fn.def (UBSAN_BOUNDS): New internal function.
17085 * internal-fn.h: Don't define internal functions here.
17086 * opts.c (common_handle_option): Add -fsanitize=bounds.
17087 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
17088 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
17089 * tree-core.h: Define internal functions here.
17090 (struct tree_base): Add ifn field.
17091 * tree-pretty-print.c: Include "internal-fn.h".
17092 (dump_generic_node): Handle functions without CALL_EXPR_FN.
17093 * tree.c (get_callee_fndecl): Likewise.
17094 (build_call_expr_internal_loc): New function.
17095 * tree.def (CALL_EXPR): Update description.
17096 * tree.h (CALL_EXPR_IFN): Define.
17097 (build_call_expr_internal_loc): Declare.
17098 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
17100 (ubsan_type_descriptor): Change bool parameter to enum
17101 ubsan_print_style. Adjust the code. Add handling of
17103 (ubsan_expand_bounds_ifn): New function.
17104 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
17105 (ubsan_build_overflow_builtin): Likewise.
17106 (instrument_bool_enum_load): Likewise.
17107 (ubsan_instrument_float_cast): Likewise.
17108 * ubsan.h (enum ubsan_print_style): New enum.
17109 (ubsan_expand_bounds_ifn): Declare.
17110 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
17112 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
17114 * config/rs6000/rs6000.md: Append `DONE' to preparation
17115 statements of `bswap' pattern splitters.
17117 2014-06-20 Tom de Vries <tom@codesourcery.com>
17119 * target.def (call_fusage_contains_non_callee_clobbers): Update
17121 * doc/tm.texi: Regenerate.
17123 2014-06-20 Yury Gribov <y.gribov@samsung.com>
17124 Max Ostapenko <m.ostapenko@partner.samsung.com>
17127 * asan.c (instrument_strlen_call): Fixed instrumentation of
17130 2014-06-20 Martin Jambor <mjambor@suse.cz>
17133 * ipa-prop.c (impossible_devirt_target): New function.
17134 (try_make_edge_direct_virtual_call): Use it, also instead of
17137 2014-06-20 Yury Gribov <y.gribov@samsung.com>
17138 Max Ostapenko <m.ostapenko@partner.samsung.com>
17141 * asan.c (build_check_stmt): Add condition.
17143 2014-06-20 Martin Jambor <mjambor@suse.cz>
17146 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
17149 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17151 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
17153 (VCONQ): Make comment more helpful.
17155 * config/aarch64/aarch64-simd.md
17156 (aarch64_sqdmulh_lane<mode>):
17157 Use VCOND for operands 2. Update lane checking and flipping logic.
17158 (aarch64_sqrdmulh_lane<mode>): Likewise.
17159 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
17160 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
17161 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
17162 attribute of operand 3 to VCOND.
17163 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
17164 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
17165 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
17166 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
17167 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
17168 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
17170 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
17171 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
17172 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
17173 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
17174 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
17175 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
17176 operand to VCOND. Update lane flipping and bounds checking logic.
17177 (aarch64_sqdmlal2_lane<mode>): Likewise.
17178 (aarch64_sqdmlsl_lane<mode>): Likewise.
17179 (aarch64_sqdmull_lane<mode>): Likewise.
17180 (aarch64_sqdmull2_lane<mode>): Likewise.
17181 (aarch64_sqdmlal_laneq<mode>):
17182 Replace VCON usage with VCONQ.
17183 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
17184 (aarch64_sqdmlal2_laneq<mode>): Emit
17185 aarch64_sqdmlal2_laneq<mode>_internal insn.
17186 Replace VCON with VCONQ.
17187 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
17188 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
17189 (aarch64_sqdmull_laneq<mode>): Emit
17190 aarch64_sqdmull_laneq<mode>_internal insn.
17191 Replace VCON with VCONQ.
17192 (aarch64_sqdmull2_laneq<mode>): Emit
17193 aarch64_sqdmull2_laneq<mode>_internal insn.
17194 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
17195 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
17196 of 3rd argument to int16x4_t.
17197 (vqdmlalh_lane_s16): Likewise.
17198 (vqdmlslh_lane_s16): Likewise.
17199 (vqdmull_high_lane_s16): Likewise.
17200 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
17201 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
17202 (vqdmlsl_lane_s16): Likewise.
17203 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
17204 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
17205 (vqdmlals_lane_s32): Likewise.
17206 (vqdmlsls_lane_s32): Likewise.
17207 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
17208 (vqdmulls_lane_s32): Likewise.
17209 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
17210 (vqdmlsl_lane_s32): Likewise.
17211 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
17212 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
17213 (vqrdmulhh_lane_s16): Likewise.
17214 (vqdmlsl_high_lane_s16): Likewise.
17215 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
17216 (vqdmlsl_high_lane_s32): Likewise.
17217 (vqrdmulhs_lane_s32): Likewise.
17219 2014-06-20 Tom de Vries <tom@codesourcery.com>
17221 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
17222 get_call_reg_set_usage.
17224 2014-06-20 Tom de Vries <tom@codesourcery.com>
17226 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
17227 it contains all call_used_regs.
17229 2014-06-20 Tom de Vries <tom@codesourcery.com>
17231 * final.c (collect_fn_hard_reg_usage): Add and use variable
17232 function_used_regs.
17234 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
17236 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
17237 (set_init_priority, get_init_priority, set_fini_priority,
17238 get_fini_priority): New methods.
17239 * tree.c (init_priority_for_decl): Remove.
17240 (init_ttree): Do not initialize init priority.
17241 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
17242 (decl_priority_info): Remove.
17243 (decl_init_priority_insert): Rewrite.
17244 (decl_fini_priority_insert): Rewrite.
17245 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
17246 tree_priority_map_marked_p): Remove.
17247 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
17248 * lto-streamer-out.c (hash_tree): Do not hash priorities.
17249 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
17250 not output priorities.
17251 (pack_ts_function_decl_value_fields): Likewise.
17252 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
17253 not input priorities.
17254 (unpack_ts_function_decl_value_fields): Likewise.
17255 * symtab.c (symbol_priority_map): Declare.
17256 (init_priority_hash): Declare.
17257 (symtab_unregister_node): Unregister from priority hash, too.
17258 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
17260 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
17261 (symbol_priority_info): New function.
17262 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
17264 * tree-core.h (tree_priority_map): Remove.
17266 2014-06-20 Jakub Jelinek <jakub@redhat.com>
17268 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
17269 0xff to uint64_t before shifting it up.
17271 2014-06-20 Julian Brown <julian@codesourcery.com>
17272 Chung-Lin Tang <cltang@codesourcery.com>
17274 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
17275 TARGET_THUMB1_ONLY. Add comments.
17277 2014-06-19 Tom de Vries <tom@codesourcery.com>
17279 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
17280 return type to void.
17281 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
17283 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17285 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
17286 as "move", from depends_on.
17288 2014-06-19 Terry Guo <terry.guo@arm.com>
17290 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
17293 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
17295 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
17297 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
17299 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
17302 * config/sh/sh.c (prepare_move_operands): Don't process TLS
17303 addresses here if reload in progress or completed.
17305 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
17307 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
17308 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
17309 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
17310 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
17311 (mips_register_priority): New function that implements the target
17312 hook TARGET_REGISTER_PRIORITY.
17313 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
17314 (mips_lra_p): Likewise for TARGET_LRA_P.
17315 (TARGET_REGISTER_PRIORITY): Define macro.
17316 (TARGET_SPILL_CLASS): Likewise.
17317 (TARGET_LRA_P): Likewise.
17318 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
17320 (REG_CLASS_NAMES): Likewise.
17321 (REG_CLASS_CONTENTS): Likewise.
17322 (BASE_REG_CLASS): Use M16_SP_REGS.
17323 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
17324 New set attribute to enable alternatives depending on the register
17326 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
17327 (*lea64): Disable pattern for MIPS16.
17328 * config/mips/mips.opt (mlra): New option.
17330 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
17332 * lra-constraints.c (base_to_reg): New function.
17333 (process_address): Use new function.
17335 2014-06-18 Tom de Vries <tom@codesourcery.com>
17337 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
17338 * config/aarch64/aarch64.c
17339 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
17340 (aarch64_emit_call_insn): New function.
17341 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
17343 * config/aarch64/aarch64.md (define_expand "call_internal")
17344 (define_expand "call_value_internal", define_expand "sibcall_internal")
17345 (define_expand "sibcall_value_internal"): New.
17346 (define_expand "call", define_expand "call_value")
17347 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
17348 expand variant and aarch64_emit_call_insn.
17350 2014-06-18 Radovan Obradovic <robradovic@mips.com>
17351 Tom de Vries <tom@codesourcery.com>
17353 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
17354 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
17356 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
17357 clobbers to CALL_INSN_FUNCTION_USAGE.
17358 (define_expand "sibcall_internal")
17359 (define_expand "sibcall_value_internal"): New.
17360 (define_expand "call", define_expand "call_value"): Add argument to
17361 arm_emit_call_insn.
17362 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
17363 (define_expand "sibcall_value"): Use sibcall_value_internal and
17364 arm_emit_call_insn.
17366 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17368 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
17370 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17372 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
17375 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17377 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
17378 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
17379 annotations. Fix DWARF information.
17381 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17383 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
17384 __udivmoddi4, and fixups for negative operands.
17386 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17388 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
17390 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17392 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
17395 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17397 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
17400 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17402 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
17403 describing register usage on function entry and exit.
17405 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17407 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
17408 (__aeabi_ldivmod): Fix whitespace.
17410 2014-06-18 Andreas Schwab <schwab@suse.de>
17412 * doc/md.texi (Standard Names): Use @itemx for grouped items.
17413 Remove blank line after @item.
17415 2014-06-18 Richard Henderson <rth@redhat.com>
17418 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
17420 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17422 * config/arm/arm.c (neon_vector_mem_operand): Allow register
17423 POST_MODIFY for neon loads and stores.
17424 (arm_print_operand): Output post-index register for neon loads and
17427 2014-06-18 Richard Biener <rguenther@suse.de>
17429 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
17431 2014-06-18 Richard Biener <rguenther@suse.de>
17433 * tree-pass.h (make_pass_dce_loop): Remove.
17434 * passes.def: Replace pass_dce_loop with pass_dce.
17435 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
17436 changed free niter estimates and reset the scev cache.
17437 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
17438 make_pass_dce_loop): Remove.
17439 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
17440 (fini_copy_prop): Return whether something changed. Always
17441 let substitute_and_fold perform DCE and free niter estimates
17442 and reset the scev cache if so.
17443 (execute_copy_prop): If sth changed schedule cleanup-cfg.
17444 (pass_data_copy_prop): Do not unconditionally schedule
17445 cleanup-cfg or update-ssa.
17447 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
17449 PR tree-optimization/61518
17450 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
17451 reduction var is used in reduction stmt or phi-function only.
17453 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17455 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
17457 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
17459 PR tree-optimization/61517
17460 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
17461 whose rhs's first tree is the source expression instead of the
17463 (find_bswap_or_nop): Likewise.
17464 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
17465 gimple stmt whose rhs's first tree is the source. In the memory source
17466 case, move the stmt to be replaced close to one of the original load to
17467 avoid the problem of a store between the load and the stmt's original
17469 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
17472 2014-06-18 Andreas Schwab <schwab@suse.de>
17474 PR rtl-optimization/54555
17475 * postreload.c (move2add_use_add2_insn): Substitute
17476 STRICT_LOW_PART only if it is cheaper.
17478 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
17480 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
17481 Do not use unspec as call operand. Use memory_operand instead of
17482 memory_nox32_operand and add "m" operand constraint. Disable
17483 pattern for TARGET_X32.
17484 (*sibcall_pop_memory): Ditto.
17485 (*sibcall_value_memory): Ditto.
17486 (*sibcall_value_pop_memory): Ditto.
17487 (sibcall peepholes): Merge SImode and DImode patterns using
17488 W mode iterator. Use memory_operand instead of memory_nox32_operand.
17489 Disable pattern for TARGET_X32. Check if eliminated register is
17490 really dead after call insn. Generate call RTX without unspec operand.
17491 (sibcall_value peepholes): Ditto.
17492 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
17493 instead of memory_nox32_operand. Check if eliminated register is
17494 really dead after call insn. Generate call RTX without unspec operand.
17495 (sibcall_value_pop peepholes): Ditto.
17496 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
17498 2014-06-18 Terry Guo <terry.guo@arm.com>
17501 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
17504 2014-06-18 Olivier Hainque <hainque@adacore.com>
17506 * tree-core.h (tree_block): Add an "end_locus" field, allowing
17507 memorization of the end of block source location.
17508 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
17509 * gimplify.c (gimplify_bind_expr): Propagate the block start and
17510 end source location info we have on the block entry/exit code we
17513 2014-06-18 Richard Biener <rguenther@suse.de>
17515 * common.opt (fssa-phiopt): New option.
17516 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
17518 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
17519 * doc/invoke.texi (-fssa-phiopt): Document.
17521 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17523 * genattrtab.c (n_bypassed): New variable.
17524 (process_bypasses): Initialise n_bypassed.
17525 Count number of bypassed reservations.
17526 (make_automaton_attrs): Allocate space for bypassed reservations
17527 rather than number of bypasses.
17529 2014-06-18 Richard Biener <rguenther@suse.de>
17531 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
17532 we propagated anything.
17533 (substitute_and_fold_dom_walker::before_dom_children): Something
17534 changed if we propagated into PHI arguments.
17535 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
17538 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
17540 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
17542 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
17543 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
17544 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
17545 Introduces alternative way of loads group permutaions.
17546 (vect_transform_grouped_load): Try alternative way of permutations.
17548 2014-06-18 Jakub Jelinek <jakub@redhat.com>
17550 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
17551 changed in ORT_TARGET region, don't jump to do_outer.
17552 (struct gimplify_adjust_omp_clauses_data): New type.
17553 (gimplify_adjust_omp_clauses_1): Adjust for data being
17554 a struct gimplify_adjust_omp_clauses_data pointer instead
17555 of tree *. Pass pre_p as a new argument to
17556 lang_hooks.decls.omp_finish_clause hook.
17557 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
17558 splay_tree_foreach to pass both list_p and pre_p.
17559 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
17560 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
17561 gimplify_adjust_omp_clauses callers.
17562 * langhooks.c (lhd_omp_finish_clause): New function.
17563 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
17564 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
17565 * langhooks.h (struct lang_hooks_for_decls): Add a new
17566 gimple_seq * argument to omp_finish_clause hook.
17567 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
17568 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
17569 (scan_omp_parallel, lower_omp_for): When adding
17570 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
17571 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
17572 * tree-nested.c (convert_nonlocal_omp_clauses,
17573 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
17574 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
17576 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
17578 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
17579 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
17581 2014-06-17 Xinliang David Li <davidxl@google.com>
17583 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
17584 * passes.c (pass_init_dump_file): Do not set initialize
17585 flag to false unconditionally.
17587 2014-06-17 Richard Biener <rguenther@suse.de>
17589 * genopinit.c (main): Use vec<>::qsort method.
17590 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
17592 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
17594 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
17596 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
17597 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
17598 (mips_move_to_gpr_cost): Remove ST_REGS case.
17599 (mips_move_from_gpr_cost): Likewise.
17600 (mips_register_move_cost): Likewise.
17601 (mips_secondary_reload_class): Likewise.
17603 2014-06-17 Richard Biener <rguenther@suse.de>
17605 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
17606 (pass_all_optimizations): Move 3rd copy-prop pass from after
17607 fre to before ifcombine/phiopt.
17609 2014-06-17 Richard Biener <rguenther@suse.de>
17611 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
17612 and allow all blocks to be forwarders.
17614 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
17617 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
17618 variable 'size'; calculate 'size' right in the front; use
17619 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
17620 pcum->aapcs_stack_words.
17622 2014-06-17 Nick Clifton <nickc@redhat.com>
17624 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
17625 (umulhi3, mulsidi3, umulsidi3): Likewise.
17627 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
17629 PR middle-end/61508
17630 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
17631 check for section name.
17633 2014-06-17 Richard Biener <rguenther@suse.de>
17635 * tree-ssa-propagate.c: Include domwalk.h.
17636 (substitute_and_fold): Outline main worker into a domwalker ...
17637 (substitute_and_fold_dom_walker::before_dom_children): ... here.
17638 Schedule stmts we can fully propagate for removal. Remove
17640 (substitute_and_fold): Apply a dominator walk to perform
17641 substitution. Process stmts scheduled for removal here.
17643 2014-06-17 Richard Biener <rguenther@suse.de>
17645 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
17646 of PHI node moving.
17648 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
17650 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
17651 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
17652 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
17653 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
17654 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
17656 (get_fpscr) : Likewise.
17658 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
17660 PR rtl-optimization/61325
17661 * lra-constraints.c (valid_address_p): Add forward declaration.
17662 (simplify_operand_subreg): Check address validity before and after
17663 alter_reg of memory subreg.
17665 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
17667 * config/i386/i386.c (decide_alg): Correctly handle
17668 maximum size of stringop algorithm.
17670 2014-06-16 Yury Gribov <y.gribov@samsung.com>
17672 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
17674 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
17676 PR rtl-optimization/61522
17677 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
17679 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
17682 * symtab.c (symtab_node::reset_section): New method.
17683 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
17685 * cgraph.h (reset_section): Declare.
17686 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
17687 do not consider comdat locals.
17688 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
17690 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
17691 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
17692 reset sections of symbols dragged out of the comdats.
17693 (function_and_variable_visibility): Reset sections of
17696 2014-06-16 Richard Biener <rguenther@suse.de>
17698 PR tree-optimization/61482
17699 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
17700 [-INF(OVF), +INF(OVF)] range.
17702 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
17704 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
17705 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
17706 handling 32-bit multiplication.
17708 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
17710 PR middle-end/61430
17711 * lra-lives.c (process_bb_lives): Skip creating copy during
17712 insn scan when src/dest has constrained to same regno.
17714 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
17716 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
17717 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
17719 2014-06-16 Yury Gribov <y.gribov@samsung.com>
17721 * asan.c (check_func): New function.
17722 (maybe_create_ssa_name): Likewise.
17723 (build_check_stmt_with_calls): Likewise.
17724 (use_calls_p): Likewise.
17725 (report_error_func): Change interface.
17726 (build_check_stmt): Allow non-integer lengths; add support
17728 (asan_instrument): Likewise.
17729 (instrument_mem_region_access): Moved code to build_check_stmt.
17730 (instrument_derefs): Likewise.
17731 (instrument_strlen_call): Likewise.
17732 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
17733 * doc/invoke.texi: Describe new parameter.
17734 * params.def: Define new parameter.
17735 * params.h: Likewise.
17736 * sanitizer.def: Describe new builtins.
17738 2014-06-16 Richard Biener <rguenther@suse.de>
17740 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17741 Make all defs available at the end.
17742 (eliminate): If we remove a PHI node schedule cfg-cleanup.
17744 2014-06-18 Jakub Jelinek <jakub@redhat.com>
17747 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
17749 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
17752 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
17753 initialization. Replace remaining use of uid.
17755 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
17757 * c-family/c-common.c (handle_tls_model_attribute): Use
17758 set_decl_tls_model.
17759 * c-family/c-common.c (handle_tls_model_attribute): Use
17760 set_decl_tls_model.
17761 * cgraph.h (struct varpool_node): Add tls_model.
17762 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
17763 * tree.h (DECL_TLS_MODEL): Update.
17764 (DECL_THREAD_LOCAL_P): Check that variable is static.
17765 (decl_tls_model): Declare.
17766 (set_decl_tls_model): Declare.
17767 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
17768 set symbol prorperties.
17769 (get_emutls_init_templ_addr): Cleanup.
17770 (new_emutls_decl): Update.
17771 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
17772 (lto_input_varpool_node): Likewise.
17773 * lto-streamer-out.c (hash_tree): Likewise.
17774 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
17775 not stream DECL_TLS_MODEL.
17776 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
17777 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
17779 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
17781 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
17783 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
17785 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
17786 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
17788 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
17789 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
17790 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
17791 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
17792 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
17793 (df_get_artificial_defs, df_get_artificial_uses)
17794 (df_single_def, df_single_use): Update accordingly.
17795 (df_refs_chain_dump): Take the first element in a linked list as
17796 parameter, rather than a pointer to an array of pointers.
17797 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
17798 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
17799 (df_chain_create_bb_process_use): Likewise.
17800 (df_md_bb_local_compute_process_def): Likewise.
17801 * fwprop.c (process_defs, process_uses): Likewise.
17802 (register_active_defs, update_uses): Likewise.
17803 (forward_propagate_asm): Update for new df_ref linking.
17804 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
17805 (df_null_ref_rec, df_null_mw_rec): Likewise.
17806 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
17808 (df_scan_free_bb_info): Remove check for null artificial_defs.
17809 (df_install_ref_incremental): Adjust for new df_ref linking.
17810 Use a single-element insertion rather than a full sort.
17811 (df_ref_chain_delete_du_chain): Take the first element
17812 in a linked list as parameter, rather than a pointer to an array of
17814 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
17815 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
17816 (df_insn_info_delete): Remove check for null defs and call to
17817 df_scan_free_mws_vec.
17818 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
17819 null rather than df_null_*_rec.
17820 (df_insn_rescan_debug_internal): Likewise, and update null
17821 checks in the same way. Remove check for null defs.
17822 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
17823 Move a single element rather doing a full sort.
17824 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
17826 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
17827 Initialize df_ref and df_mw_hardreg lists to null rather than
17829 (df_ref_compare): Take df_refs as parameter, transferring the
17830 old interface to...
17831 (df_ref_ptr_compare): ...this new function.
17832 (df_sort_and_compress_refs): Update accordingly.
17833 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
17834 old interface to...
17835 (df_mw_ptr_compare): ...this new function.
17836 (df_sort_and_compress_mws): Update accordingly.
17837 (df_install_refs, df_install_mws): Return a linked list rather than
17838 an array of pointers.
17839 (df_refs_add_to_chains): Assert that old lists are empty rather
17841 (df_insn_refs_verify): Don't handle null defs speciailly.
17842 * web.c (union_match_dups): Update for new df_ref linking.
17844 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
17846 * df.h (df_ref_create, df_ref_remove): Delete.
17847 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
17848 (df_ref_remove): Likewise.
17850 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
17852 * df.h (df_single_def, df_single_use): New functions.
17853 * ira.c (find_moveable_pseudos): Use them.
17855 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
17857 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
17858 * df-problems.c (df_note_bb_compute): Use it.
17859 * regstat.c (regstat_bb_compute_ri): Likewise.
17861 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
17863 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
17864 * cse.c (cse_extended_basic_block): Use them.
17865 * dce.c (mark_artificial_use): Likewise.
17866 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
17867 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
17868 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
17869 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
17870 (df_simulate_initialize_backwards): Likewise.
17871 (df_simulate_finalize_backwards): Likewise.
17872 (df_simulate_initialize_forwards): Likewise.
17873 (df_md_simulate_artificial_defs_at_top): Likewise.
17874 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
17875 * regrename.c (init_rename_info): Likewise.
17876 * regstat.c (regstat_bb_compute_ri): Likewise.
17877 (regstat_bb_compute_calls_crossed): Likewise.
17879 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
17881 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
17882 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
17883 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
17884 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
17885 * combine.c (create_log_links): Likewise.
17886 * compare-elim.c (find_flags_uses_in_insn): Likewise.
17887 (try_eliminate_compare): Likewise.
17888 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
17889 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
17890 (remove_reg_equal_equiv_notes_for_defs): Likewise.
17891 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
17892 (word_dce_process_block, dce_process_block): Likewise.
17893 * ddg.c (def_has_ccmode_p): Likewise.
17894 * df-core.c (df_bb_regno_first_def_find): Likewise.
17895 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
17896 * df-problems.c (df_rd_simulate_one_insn): Likewise.
17897 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
17898 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
17899 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
17900 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
17901 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
17902 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
17903 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
17904 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
17905 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
17906 * fwprop.c (local_ref_killed_between_p): Likewise.
17907 (all_uses_available_at, free_load_extend): Likewise.
17908 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
17909 * hw-doloop.c (scan_loop): Likewise.
17910 * ifcvt.c (dead_or_predicable): Likewise.
17911 * init-regs.c (initialize_uninitialized_regs): Likewise.
17912 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
17913 (process_bb_node_lives): Likewise.
17914 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
17915 (find_moveable_pseudos): Likewise.
17916 * loop-invariant.c (check_dependencies, record_uses): Likewise.
17917 * recog.c (peep2_find_free_register): Likewise.
17918 * ree.c (get_defs): Likewise.
17919 * regstat.c (regstat_bb_compute_ri): Likewise.
17920 (regstat_bb_compute_calls_crossed): Likewise.
17921 * sched-deps.c (find_inc, find_mem): Likewise.
17922 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
17923 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
17924 * shrink-wrap.c (requires_stack_frame_p): Likewise.
17925 (prepare_shrink_wrap): Likewise.
17926 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
17927 * web.c (union_defs, pass_web::execute): Likewise.
17928 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
17929 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
17931 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
17933 * lra-assign.c (assign_by_spills): Add code to assign vector regs
17934 to inheritance pseudos.
17935 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
17937 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
17940 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
17941 (BU_MISC_2): Rename to ...
17942 (BU_LDBL128_2): ... this.
17943 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
17944 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
17945 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
17946 RS6000_BTM_LDBL128.
17947 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
17948 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
17949 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
17950 (unpacktf_1): Likewise.
17951 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
17952 (__builtin_longdouble_dw1): Likewise.
17953 * doc/sourcebuild.texi (longdouble128): Document.
17955 2014-06-13 Jeff Law <law@redhat.com>
17957 PR rtl-optimization/61094
17958 PR rtl-optimization/61446
17959 * ree.c (combine_reaching_defs): Get the mode for the copy from
17960 the extension insn rather than the defining insn.
17962 2014-06-13 Dehao Chen <dehao@google.com>
17964 * dwarf2out.c (add_linkage_name): Emit more linkage name.
17966 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
17968 * doc/install.texi (--enable-linker-plugin-configure-flags)
17969 (--enable-linker-plugin-flags): Document new flags.
17971 2014-06-13 Martin Jambor <mjambor@suse.cz>
17974 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
17975 cache_token if returning early.
17977 2014-06-13 Nick Clifton <nickc@redhat.com>
17979 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
17980 requested alignment is active.
17981 (LABEL_ALIGN): Likewise.
17982 (LOOP_ALIGN): Likewise.
17984 2014-06-13 Richard Biener <rguenther@suse.de>
17986 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17987 Rewrite to propagate the VN result into all uses where
17988 possible and to remove stmts becoming dead because of that.
17989 (eliminate): Generalize stmt removal handling, remove in
17990 reverse dominator order to support proper debug stmt
17991 generation. Update stmts before removing stmts.
17992 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
17994 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
17996 PR tree-optimization/61375
17997 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
17998 symbolic number cannot be represented in an uint64_t.
17999 (find_bswap_or_nop_1): Likewise.
18001 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
18003 * symtab.c (symtab_node::reset_section): New method.
18004 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
18006 * cgraph.h (reset_section): Declare.
18007 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
18008 do not consider comdat locals.
18009 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
18011 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
18012 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
18013 reset sections of symbols dragged out of the comdats.
18014 (function_and_variable_visibility): Reset sections of
18017 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
18019 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
18020 to use symtab and decl_binds_to_current_def_p
18021 * tree-vectorizer.c (increase_alignment): Increase alignment
18022 of alias target, too.
18024 2014-06-12 Jakub Jelinek <jakub@redhat.com>
18026 PR middle-end/61486
18027 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
18028 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
18029 if outer combined construct is distribute.
18030 (gimplify_omp_for): For OMP_DISTRIBUTE set
18031 gimplify_omp_ctxp->distribute.
18032 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
18033 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
18034 mapping into decl map.
18036 2014-06-12 Jason Merrill <jason@redhat.com>
18038 * common.opt (fabi-version): Change default to 0.
18040 2014-06-12 Jason Merrill <jason@redhat.com>
18042 * toplev.c (process_options): Reject -fabi-version=1.
18044 2014-06-12 Jeff Law <law@redhat.com>
18046 PR tree-optimization/61009
18047 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
18048 value when we stop processing a block due to problematic PHIs.
18050 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
18052 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
18053 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
18054 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
18055 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
18056 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
18057 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
18058 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
18059 are not in the spec.
18061 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
18064 * config/aarch64/aarch64-modes.def: Add V1DFmode.
18065 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
18068 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
18070 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
18072 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
18075 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
18076 loading from address spaces.
18078 2014-06-12 Martin Liska <mliska@suse.cz>
18081 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
18082 statement is reachable.
18084 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
18086 * symtab.c (section_hash): New hash.
18087 (symtab_unregister_node): Clear section before freeing.
18088 (hash_section_hash_entry): New haser.
18089 (eq_sections): New function.
18090 (symtab_node::set_section_for_node): New method.
18091 (set_section_1): Update.
18092 (symtab_node::set_section): Take string instead of tree as parameter.
18093 (symtab_resolve_alias): Update.
18094 * cgraph.h (section_hash_entry_d): New structure.
18095 (section_hash_entry): New typedef.
18096 (cgraph_node): Change comdat_group_ to x_comdat_group,
18097 change section_ to x_section and turn into section_hash_entry;
18098 update accestors; put set_section_for_node offline.
18099 * tree.c (decl_section_name): Turn into string.
18100 (set_decl_section_name): Change parameter to be string.
18101 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
18102 * sdbout.c (sdbout_one_type): Update.
18103 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
18104 * varasm.c (IN_NAMED_SECTION, get_named_section,
18105 resolve_unique_section, hot_function_section, get_named_text_section,
18106 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
18107 make_decl_rtl, default_unique_section): Update.
18108 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
18109 (c6x_elf_unique_section): Update.
18110 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
18111 * config/pa/pa.c (pa_function_section): Update.
18112 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
18113 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
18114 * config/arc/arc.c (arc_in_small_data_p): Update.
18115 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
18116 * config/mcore/mcore.c (mcore_unique_section): Update.
18117 * config/mips/mips.c (mips16_build_function_stub): Update.
18118 (mips16_build_call_stub): Update.
18119 (mips_function_rodata_section): Update.
18120 (mips_in_small_data_p): Update.
18121 * config/score/score.c (score_in_small_data_p): Update.
18122 * config/rx/rx.c (rx_in_small_data): Update.
18123 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
18124 (rs6000_xcoff_asm_named_section): Update.
18125 (rs6000_xcoff_unique_section): Update.
18126 * config/frv/frv.c (frv_string_begins_with): Update.
18127 (frv_in_small_data_p): Update.
18128 * config/v850/v850.c (v850_encode_data_area): Update.
18129 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
18130 (bfin_handle_l1_data_attribute): Update.
18131 (bfin_handle_l2_attribute): Update.
18132 * config/mep/mep.c (mep_unique_section): Update.
18133 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
18135 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
18136 (h8300_handle_tiny_data_attribute): Update.
18137 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
18138 (m32r_in_small_data_p): Update.
18139 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
18140 * config/i386/i386.c (ix86_in_large_data_p): Update.
18141 * config/i386/winnt.c (i386_pe_unique_section): Update.
18142 * config/darwin.c (darwin_function_section): Update.
18143 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
18144 * tree-emutls.c (get_emutls_init_templ_addr): Update.
18145 (new_emutls_decl): Update.
18146 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
18147 input_varpool_node): Update.
18148 (ead_string_cst): Turn to ...
18149 (read_string): ... this one.
18150 * dwarf2out.c (secname_for_decl): Update.
18151 * asan.c (asan_protect_global): Update.
18153 2014-06-11 DJ Delorie <dj@redhat.com>
18155 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
18157 * config/rx/rx.c (rx_option_override): Likewise.
18158 (rx_align_for_label): Likewise.
18160 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
18162 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
18164 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
18167 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18169 * common.md: New file.
18170 * doc/md.texi: Update description of generic, machine-independent
18172 * config/s390/constraints.md (e): Delete.
18173 * Makefile.in (md_file): Include common.md.
18174 * config/m32c/t-m32c (md_file): Likewise.
18175 * genpreds.c (general_mem): New array.
18176 (generic_constraint_letters): Remove constraints now defined by
18178 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
18179 Allow the first character to be '<' or '>' as well.
18180 * genoutput.c (general_mem): New array.
18181 (indep_constraints): Remove constraints now defined by common.md.
18182 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
18183 Remove special handling of 'm'.
18184 * ira-costs.c (record_reg_classes): Remove special handling of
18185 constraints now defined by common.md.
18186 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
18187 * ira-lives.c (single_reg_class): Likewise.
18188 (ira_implicitly_set_insn_hard_regs): Likewise.
18189 * lra-constraints.c (reg_class_from_constraints): Likewise.
18190 (process_alt_operands, process_address, curr_insn_transform): Likewise.
18191 * postreload.c (reload_cse_simplify_operands): Likewise.
18192 * reload.c (push_secondary_reload, scratch_reload_class)
18193 (find_reloads, alternative_allows_const_pool_ref): Likewise.
18194 * reload1.c (maybe_fix_stack_asms): Likewise.
18195 * targhooks.c (default_secondary_reload): Likewise.
18196 * stmt.c (parse_output_constraint): Likewise.
18197 * recog.c (preprocess_constraints): Likewise.
18198 (constrain_operands, peep2_find_free_register): Likewise.
18199 (asm_operand_ok): Likewise, but add a comment saying why 'o'
18200 must be handled specially.
18202 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18204 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
18205 * genpreds.c (have_const_dbl_constraints): Delete.
18206 (add_constraint): Don't set it.
18207 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
18208 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
18209 constraints using the lookup_constraint logic.
18210 * ira-lives.c (single_reg_class): Likewise.
18211 * ira.c (ira_setup_alts): Likewise.
18212 * lra-constraints.c (process_alt_operands): Likewise.
18213 * recog.c (asm_operand_ok, constrain_operands): Likewise.
18214 * reload.c (find_reloads): Likewise.
18216 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18218 * genpreds.c (const_int_start, const_int_end): New variables.
18219 (choose_enum_order): Output CONST_INT constraints before memory
18221 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
18223 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
18224 * ira.c (ira_setup_alts): Likewise.
18225 * lra-constraints.c (process_alt_operands): Likewise.
18226 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
18227 * reload.c (find_reloads): Likewise.
18229 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18231 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
18232 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
18233 * recog.c (preprocess_constraints): Update accordingly.
18235 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18237 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
18238 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
18239 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
18240 * genpreds.c (print_type_tree): New function.
18241 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
18242 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
18243 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
18244 Write out enum constraint_type and get_constraint_type.
18245 * lra-constraints.c (satisfies_memory_constraint_p): Take a
18246 constraint_num rather than a constraint string.
18247 (satisfies_address_constraint_p): Likewise.
18248 (reg_class_from_constraints): Avoid old constraint macros.
18249 (process_alt_operands, process_address_1): Likewise.
18250 (curr_insn_transform): Likewise.
18251 * ira-costs.c (record_reg_classes): Likewise.
18252 (record_operand_costs): Likewise.
18253 * ira-lives.c (single_reg_class): Likewise.
18254 (ira_implicitly_set_insn_hard_regs): Likewise.
18255 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
18256 * postreload.c (reload_cse_simplify_operands): Likewise.
18257 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
18258 (constrain_operands, peep2_find_free_register): Likewise.
18259 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
18260 (find_reloads, alternative_allows_const_pool_ref): Likewise.
18261 * reload1.c (maybe_fix_stack_asms): Likewise.
18262 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
18263 * targhooks.c (default_secondary_reload): Likewise.
18264 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
18265 to EXTRA_CONSTRAINT_STR.
18266 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
18268 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18270 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
18271 (write_constraint_satisfied_p_array): ...this new function.
18272 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
18274 (write_insn_preds_c): Update accordingly.
18276 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18278 * genpreds.c (write_lookup_constraint): Rename to...
18279 (write_lookup_constraint_1): ...this.
18280 (write_lookup_constraint_array): New function.
18281 (write_tm_preds_h): Define lookup_constraint as an inline function
18282 that uses write_lookup_constraint_array where possible.
18283 (write_insn_preds_c): Update for the changes above.
18285 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18287 * doc/md.texi (regclass_for_constraint): Rename to...
18288 (reg_class_for_constraint): ...this.
18289 * genpreds.c (num_constraints, enum_order, register_start)
18290 (register_end, satisfied_start, memory_start, memory_end)
18291 (address_start, address_end): New variables.
18292 (add_constraint): Count the number of constraints.
18293 (choose_enum_order): New function.
18294 (write_enum_constraint_num): Iterate over enum_order.
18295 (write_regclass_for_constraint): Rename to...
18296 (write_reg_class_for_constraint_1): ...this and update output
18298 (write_constraint_satisfied_p): Rename to...
18299 (write_constraint_satisfied_p_1): ...this and update output
18300 accordingly. Do nothing if all extra constraints are register
18302 (write_insn_extra_memory_constraint): Delete.
18303 (write_insn_extra_address_constraint): Delete.
18304 (write_range_function): New function.
18305 (write_tm_preds_h): Define constraint_satisfied_p and
18306 reg_class_for_constraint as inline functions that do a range check
18307 before calling the out-of-line function. Use write_range_function
18308 to implement insn_extra_{register,memory,address}_constraint,
18309 the first of which is new.
18310 (write_insn_preds_c): Update after above changes to write_* functions.
18311 (main): Call choose_enum_order.
18313 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
18315 PR tree-optimization/61306
18316 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
18317 expression instead of its size.
18318 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
18319 false to prevent optimization when the result is unpredictable due to
18320 arithmetic right shift of signed type with highest byte is set.
18321 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
18322 (init_symbolic_number): Likewise.
18323 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
18324 when the result is unpredictable due to sign extension.
18326 2014-06-11 Terry Guo <terry.guo@arm.com>
18328 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
18329 (*thumb1_addsi3): Ditto.
18330 (*thumb_subdi3): Ditto.
18331 (thumb1_subsi3_insn): Ditto.
18332 (*thumb_mulsi3): Ditto.
18333 (*thumb_mulsi3_v6): Ditto.
18334 (*thumb1_andsi3_insn): Ditto.
18335 (thumb1_bicsi3): Ditto.
18336 (*thumb1_iorsi3_insn): Ditto.
18337 (*thumb1_xorsi3_insn): Ditto.
18338 (*thumb1_ashlsi3): Ditto.
18339 (*thumb1_ashrsi3): Ditto.
18340 (*thumb1_lshrsi3): Ditto.
18341 (*thumb1_rotrsi3): Ditto.
18342 (*thumb1_negdi2): Ditto.
18343 (*thumb1_negsi2): Ditto.
18344 (*thumb1_abssi2): Ditto.
18345 (*thumb1_neg_abssi2): Ditto.
18346 (*thumb1_one_cmplsi2): Ditto.
18347 (*thumb1_zero_extendhisi2): Ditto.
18348 (*thumb1_zero_extendqisi2): Ditto.
18349 (*thumb1_zero_extendqisi2_v6): Ditto.
18350 (thumb1_extendhisi2): Ditto.
18351 (thumb1_extendqisi2): Ditto.
18352 (*thumb1_movdi_insn): Ditto.
18353 (*thumb1_movsi_insn): Ditto.
18354 (*thumb1_movhi_insn): Ditto.
18355 (thumb_movhi_clobber): Ditto.
18356 (*thumb1_movqi_insn): Ditto.
18357 (*thumb1_movhf): Ditto.
18358 (*thumb1_movsf_insn): Ditto.
18359 (*thumb_movdf_insn): Ditto.
18360 (movmem12b): Ditto.
18362 (cbranchqi4): Ditto.
18363 (cbranchsi4_insn): Ditto.
18364 (cbranchsi4_scratch): Ditto.
18365 (*negated_cbranchsi4): Ditto.
18366 (*tbit_cbranch): Ditto.
18367 (*tlobits_cbranch): Ditto.
18368 (*tstsi3_cbranch): Ditto.
18369 (*cbranchne_decr1): Ditto.
18370 (*addsi3_cbranch): Ditto.
18371 (*addsi3_cbranch_scratch): Ditto.
18372 (*thumb_cmpdi_zero): Ditto.
18373 (cstoresi_eq0_thumb1): Ditto.
18374 (cstoresi_ne0_thumb1): Ditto.
18375 (*cstoresi_eq0_thumb1_insn): Ditto.
18376 (*cstoresi_ne0_thumb1_insn): Ditto.
18377 (cstoresi_nltu_thumb1): Ditto.
18378 (cstoresi_ltu_thumb1): Ditto.
18379 (thumb1_addsi3_addgeu): Ditto.
18380 (*thumb_jump): Ditto.
18381 (*call_reg_thumb1_v5): Ditto.
18382 (*call_reg_thumb1): Ditto.
18383 (*call_value_reg_thumb1_v5): Ditto.
18384 (*call_value_reg_thumb1): Ditto.
18385 (*call_insn): Ditto.
18386 (*call_value_insn): Ditto.
18387 (thumb1_casesi_internal_pic): Ditto.
18388 (thumb1_casesi_dispatch): Ditto.
18389 (*thumb1_indirect_jump): Ditto.
18390 (prologue_thumb1_interwork): Ditto.
18391 (*epilogue_insns): Ditto.
18392 (consttable_1): Ditto.
18393 (consttable_2): Ditto.
18394 (tablejump): Ditto.
18395 (*thumb1_tablejump): Ditto.
18396 (thumb_eh_return): Ditto.
18397 (define_peephole2): Two of them are thumb1 only and got moved into
18398 new file thumb1.md.
18399 (define_split): Six of them are thumb1 only and got moved into new
18401 * config/arm/thumb1.md: New file comprised of above thumb1 only
18404 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18406 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
18407 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
18409 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
18410 (aarch64_crc_builtin_datum): New struct.
18411 (aarch64_crc_builtin_data): New.
18412 (aarch64_init_crc32_builtins): New function.
18413 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
18414 (aarch64_crc32_expand_builtin): New.
18415 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
18416 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
18417 __ARM_FEATURE_CRC32 when appropriate.
18418 (TARGET_CRC32): Define.
18419 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
18420 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
18421 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
18422 (aarch64_<crc_variant>): New pattern.
18423 * config/aarch64/arm_acle.h: New file.
18424 * config/aarch64/iterators.md (CRC): New int iterator.
18425 (crc_variant, crc_mode): New int attributes.
18426 * doc/aarch64-acle-intrinsics.texi: New file.
18427 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
18428 Include aarch64-acle-intrinsics.texi.
18430 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
18432 * tree-vect-data-refs.c (vect_grouped_store_supported): New
18433 check for stores group of length 3.
18434 (vect_permute_store_chain): New permutations for stores group of
18436 * tree-vect-stmts.c (vect_model_store_cost): Change cost
18437 of vec_perm_shuffle for the new permutations.
18439 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
18441 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
18442 table rewriting temporarily on targets not supporting ONE_ONLY.
18444 2014-06-11 Richard Biener <rguenther@suse.de>
18446 PR middle-end/61437
18448 2014-06-04 Richard Biener <rguenther@suse.de>
18450 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
18451 TREE_PUBLIC and DECL_EXTERNAL decls.
18453 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
18455 * varasm.c (set_implicit_section): New function.
18456 (resolve_unique_section): Use it to set implicit section
18458 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
18459 (default_function_section): Likewise.
18460 (decl_binds_to_current_def_p): Constify argument.
18461 * varasm.h (decl_binds_to_current_def_p): Update prototype.
18462 * asan.c (asan_protect_global): Use
18463 symtab_get_node (decl)->implicit_section.
18464 * symtab.c (dump_symtab_base): Dump implicit sections.
18465 (verify_symtab_base): Verify sanity of sectoins and comdats.
18466 (symtab_resolve_alias): Alias share the section of its target.
18467 (set_section_1): New function.
18468 (symtab_node::set_section): Move here, recurse to aliases.
18469 (verify_symtab): Check for duplicated symtab lists.
18470 * tree-core.h (implicit_section_name_p): Remove.
18471 * tree-vect-data-refs.c: Include varasm.h.
18472 (vect_can_force_dr_alignment_p): Fix conditional on when
18473 decl bints to current definition; use
18474 symtab_get_node (decl)->implicit_section.
18475 * cgraph.c (cgraph_make_node_local_1): Fix section set.
18476 * cgraph.h (struct symtab_node): Add implicit_section.
18477 (set_section): Rename to ...
18478 (set_section_for_node): ... this one.
18479 (set_section): Declare.
18480 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
18481 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
18482 input_overwrite_node, input_varpool_node): Stream implicit_section.
18483 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
18484 removal; it will fail in LTO.
18486 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18488 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
18489 Change second alternative type to f_mcr.
18490 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
18491 and 12th alternatives' types to f_mcr and f_mrc.
18492 (*movdi_aarch64): Same for 12th and 13th alternatives.
18493 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
18494 (aarch64_movtilow_tilow): Change type to fmov.
18496 2014-06-10 Jiong Wang <jiong.wang@arm.com>
18498 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
18499 (aarch64_save_or_restore_callee_save_registers): Fix layout.
18501 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18503 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
18505 (aarch64_sqrdmulh_lane<mode>): Likewise.
18506 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
18507 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
18508 (aarch64_sqdmulh_laneq<mode>): New expander.
18509 (aarch64_sqrdmulh_laneq<mode>): Likewise.
18510 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
18511 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
18512 (aarch64_sqdmulh_lane<mode>): New expander.
18513 (aarch64_sqrdmulh_lane<mode>): Likewise.
18514 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
18515 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
18516 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
18517 (aarch64_sqdmlal_laneq<mode>): Likewise.
18518 (aarch64_sqdmlsl_lane<mode>): Likewise.
18519 (aarch64_sqdmlsl_laneq<mode>): Likewise.
18520 (aarch64_sqdmlal2_lane<mode>): Likewise.
18521 (aarch64_sqdmlal2_laneq<mode>): Likewise.
18522 (aarch64_sqdmlsl2_lane<mode>): Likewise.
18523 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
18524 (aarch64_sqdmull_lane<mode>): Likewise.
18525 (aarch64_sqdmull_laneq<mode>): Likewise.
18526 (aarch64_sqdmull2_lane<mode>): Likewise.
18527 (aarch64_sqdmull2_laneq<mode>): Likewise.
18529 2014-06-10 Richard Biener <rguenther@suse.de>
18531 PR tree-optimization/61438
18532 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
18533 (eliminate_dom_walker::before_dom_children): Only try to inhibit
18534 insertion of IVs if running PRE.
18535 (eliminate): Adjust.
18536 (pass_pre::execute): Likewise.
18537 (pass_fre::execute): Likewise.
18539 2014-06-10 Richard Biener <rguenther@suse.de>
18541 PR middle-end/61456
18542 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
18543 Do not use the main variant for the type comparison.
18544 (ncr_compar): Likewise.
18545 (nonoverlapping_component_refs_p): Likewise.
18547 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
18549 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
18550 REG_CFA_RESTORE mode.
18552 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
18554 * config/i386/i386.c (expand_vec_perm_pblendv): New.
18555 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
18556 expand_vec_perm_pblendv.
18558 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18560 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
18562 Simplify description of __crc32d and __crc32cd intrinsics.
18563 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
18566 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
18569 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
18570 * config.in: Regenerate.
18571 * configure: Likewise.
18573 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
18575 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
18577 (intersect_static_var_sets): Remove.
18578 (propagate): Do not prune local statics.
18580 2014-06-10 Jakub Jelinek <jakub@redhat.com>
18583 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
18584 Set lastprivate_firstprivate even if omp_private_outer_ref
18585 langhook returns true.
18586 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
18587 langhook, call unshare_expr on new_var and call
18588 build_outer_var_ref to get the last argument.
18590 2014-06-10 Marek Polacek <polacek@redhat.com>
18593 * doc/extend.texi: Add cindex for transparent_union.
18595 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
18597 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
18598 init_symbolic_number ().
18600 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
18602 PR middle-end/61141
18603 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
18604 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
18605 (verify_rtl_sharing): Likewise.
18607 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
18610 * tree.c (build_qualified_type): Use a canonical type for
18613 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18615 * config/arm/arm-modes.def: Remove XFmode.
18617 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
18620 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
18621 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
18622 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
18623 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
18624 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
18625 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
18626 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
18627 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
18628 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
18630 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
18632 * tree-core.h (tree_decl_with_vis): Remove section_name.
18634 2014-06-09 Kito Cheng <kito@0xlab.org>
18636 * ira.c (ira): Don't call init_caller_save if LRA enabled
18637 since LRA use its own infrastructure to handle that.
18639 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
18641 * symtab.c (dump_symtab_base): Update dumping.
18642 (symtab_make_decl_local): Clear only DECL_COMDAT.
18643 * tree-vect-data-refs.c (Check that variable is static before
18644 tampering with sections.
18645 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
18646 (cgraph_create_virtual_clone): Likewise.
18647 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
18648 (decl_section_name, set_decl_section_name): New accessors.
18649 (find_decls_types_r): Do not walk section name
18650 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
18651 (decl_comdat_group, decl_comdat_group_id): Constify.
18652 (decl_section_name, set_decl_section_name): Update.
18653 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
18654 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
18655 (cgraph_make_node_local_1): Clear section and comdat group.
18656 * cgraph.h (set_comdat_group): Sanity check.
18657 (get_section, set_section): New.
18658 * ipa-comdats.c (ipa_comdats): Use get_section.
18659 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
18660 * lto-streamer-out.c: Do not follow section names.
18661 * c-family/c-common.c (handle_section_attribute): Update.
18662 * lto-cgraph.c (lto_output_node): Output section.
18663 (lto_output_varpool_node): Likewise.
18664 (read_comdat_group): Rename to ...
18665 (read_identifier): ... this one.
18666 (read_string_cst): New function.
18667 (input_node, input_varpool_node): Input section names.
18668 * tree-emutls.c (get_emutls_init_templ_addr): Update.
18669 (new_emutls_decl): Update.
18670 (secname_for_decl): Check section names only of static vars.
18671 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
18672 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
18673 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
18674 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
18675 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
18676 * config/mcore/mcore.c (mcore_unique_section): Likewise.
18677 * config/mips/mips.c (mips16_build_function_stub): Likewise.
18678 * config/v850/v850.c (v850_insert_attributes): Likewise.
18679 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
18681 (h8300_handle_tiny_data_attribute): Likewise.
18682 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
18683 (bfin_handle_l2_attribute): Likewise.
18685 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
18687 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
18688 remove static initializer.
18690 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
18692 * varasm.c (use_blocks_for_decl_p): Check symbol table
18693 instead of alias attribute.
18694 (place_block_symbol): Recurse on aliases.
18696 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
18698 * ipa-visibility.c: Include varasm.h
18699 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
18701 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
18703 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
18704 outputting aliases.
18706 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
18708 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
18709 from test_insn into GGC space escape via SET_SRC.
18711 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
18713 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
18714 call statement, if any.
18715 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
18716 statements, if any. Tidy up.
18718 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
18721 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
18722 iterators, VSX_D that handles 64-bit types, and VSX_LE that
18723 handles swapping the two 64-bit double words on little endian
18724 systems. Include V1TImode and optionally TImode in VSX_LE so that
18725 these types are properly swapped. Change all of the insns and
18726 splits that do the 64-bit swaps to use VSX_LE.
18727 (vsx_le_perm_load_<mode>): Likewise.
18728 (vsx_le_perm_store_<mode>): Likewise.
18729 (splitters for little endian memory operations): Likewise.
18730 (vsx_xxpermdi2_le_<mode>): Likewise.
18731 (vsx_lxvd2x2_le_<mode>): Likewise.
18732 (vsx_stxvd2x2_le_<mode>): Likewise.
18734 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
18737 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
18738 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
18739 and corresponding splitters. Zero extend general register
18740 or memory input operand to XMM temporary. Enable for
18741 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
18742 (floatunssi<mode>2): Update expander predicate.
18744 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
18746 PR rtl-optimization/61325
18747 * lra-constraints.c (process_address_1): Check scale equal to one
18748 to prevent transformation: base + scale * index => base + new_reg.
18750 2014-06-06 Richard Biener <rguenther@suse.de>
18752 PR tree-optimization/59299
18753 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
18755 (nearest_common_dominator_of_uses): Likewise.
18756 (statement_sink_location): Adjust. Support sinking loads.
18758 2014-06-06 Martin Jambor <mjambor@suse.cz>
18760 * ipa-prop.c (get_place_in_agg_contents_list): New function.
18761 (build_agg_jump_func_from_list): Likewise.
18762 (determine_known_aggregate_parts): Renamed to
18763 determine_locally_known_aggregate_parts. Moved some functionality
18764 to the two functions above, removed bound checks.
18766 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
18768 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
18769 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
18770 (aarch64_progress_pointer): Likewise.
18771 (aarch64_copy_one_part_and_move_pointers): Likewise.
18772 (aarch64_expand_movmen): Likewise.
18773 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
18774 * config/aarch64/aarch64.md (movmem<mode>): New.
18776 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
18778 * targhooks.c (default_add_stmt_cost): Call target specific
18779 hook instead of default one.
18781 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
18783 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
18784 endianness instead of host endianness.
18785 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
18788 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
18791 * function.c (instantiate_decls): Process the saved static chain.
18792 (expand_function_start): If not optimizing, save the static chain
18794 * tree-nested.c (convert_all_function_calls): Always create the static
18795 chain for nested functions if not optimizing.
18797 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
18799 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
18801 2014-06-06 Richard Biener <rguenther@suse.de>
18803 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
18804 (construct_init_block): Likewise.
18805 (construct_exit_block): Likewise.
18806 (pass_expand::execute): Likewise.
18807 * graphite.c (graphite_transforms): Replace check for current_loops
18808 with a check for > 1 loops.
18809 (pass_graphite_transforms::execute): Adjust.
18810 * ipa-split.c (split_function): Remove check for current_loops.
18811 * omp-low.c (expand_parallel_call): Likewise.
18812 (expand_omp_for_init_counts): Likewise.
18813 (extract_omp_for_update_vars): Likewise.
18814 (expand_omp_for_generic): Likewise.
18815 (expand_omp_sections): Likewise.
18816 (expand_omp_target): Likewise.
18817 * tracer.c (tail_duplicate): Likewise.
18818 (pass_tracer::execute): Likewise.
18819 * trans-mem.c (expand_transaction): Likewise.
18820 * tree-complex.c (expand_complex_div_wide): Likewise.
18821 * tree-eh.c (lower_resx): Likewise.
18822 (cleanup_empty_eh_merge_phis): Likewise.
18823 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
18824 current_loops with a check for > 1 loops.
18825 (pass_predcom::execute): Adjust.
18826 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
18827 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
18828 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
18829 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
18830 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
18831 * tree-switch-conversion.c (process_switch): Likewise.
18832 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
18833 * tree-vrp.c (vrp_visit_phi_node): Likewise.
18834 (execute_vrp): Likewise.
18835 * ubsan.c (ubsan_expand_null_ifn): Likewise.
18837 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
18839 * rtl.h (insn_location): Declare.
18840 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
18841 with UNKNOWN_LOCATION.
18842 * emit-rtl.c (insn_location): New function.
18843 * final.c (notice_source_line): Check that the instruction has a
18844 location before retrieving it and use insn_location.
18845 * modulo-sched.c (loop_single_full_bb_p): Likewise.
18846 * print-rtl.c (print_rtx): Likewise.
18848 2014-06-06 Richard Biener <rguenther@suse.de>
18850 * passes.def: Move 2nd VRP pass before phi-only-cprop.
18852 2014-06-06 Christian Bruel <christian.bruel@st.com>
18854 PR tree-optimization/43934
18855 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
18858 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
18860 * ira-lives.c (single_reg_class): Add missing break. Explicitly
18861 return NO_REGS for extra address and memory constraints. Handle
18862 operands that match (or are equivalent to something that matches)
18863 extra constant constraints. Ignore other non-register operands.
18865 2014-06-06 Alan Modra <amodra@gmail.com>
18868 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
18869 * doc/tm.texi: Regenerate.
18870 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
18871 Use throughout in place of REG_PARM_STACK_SPACE.
18872 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
18873 "incoming" param. Pass to rs6000_function_parms_need_stack.
18874 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
18875 prototype_p when incoming. Use function decl when incoming
18876 to handle K&R style functions.
18877 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
18878 (INCOMING_REG_PARM_STACK_SPACE): Define.
18880 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18883 * cfgexpand.c (expand_debug_expr): Use address space of nested
18884 TREE_TYPE for ADDR_EXPR and MEM_REF.
18886 2014-06-05 Jeff Law <law@redhat.com>
18888 PR tree-optimization/61289
18889 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
18890 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
18891 looking for those which match LHS. All callers changed.
18892 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
18893 parameters and code which manipulated them. All callers changed.
18894 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
18895 and DST_MAP parameters. Simplify invalidation code by just calling
18896 invalidate_equivalences. All callers changed.
18897 (thread_across_edge): Simplify now that we don't need to maintain
18898 the map of equivalences to invalidate.
18900 2014-06-05 Kai Tietz <ktietz@redhat.com>
18901 Richard Henderson <rth@redhat.com>
18904 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
18905 checking for !TARGET_X32.
18906 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
18907 (sibcall_intern): New define_insn, plus required peepholes.
18908 (sibcall_pop_intern): Likewise.
18909 (sibcall_value_intern): Likewise.
18910 (sibcall_value_pop_intern): Likewise.
18912 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
18914 * tree-inline.c (tree_function_versioning): Check DF info existence
18915 before accessing it.
18917 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
18919 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
18921 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
18922 aarch64_frame hard_fp_offset and frame_size.
18923 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
18924 frame_size; remove original_frame_size.
18925 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
18926 (aarch64_initial_elimination_offset): Remove frame_size and
18927 offset. Use aarch64_frame frame_size.
18929 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
18930 Jiong Wang <jiong.wang@arm.com>
18931 Renlin <renlin.li@arm.com>
18933 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
18934 initialization of R30 offset. Update offset. Iterate core
18935 regisers upto X30. Remove X29, X30 specific code.
18937 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
18938 Jiong Wang <jiong.wang@arm.com>
18940 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
18941 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
18942 (aarch64_register_saved_on_entry): Adjust test.
18944 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
18946 * config/aarch64/aarch64.h (machine_function): Move
18947 saved_varargs_size from here...
18948 (aarch64_frame): ... to here.
18950 * config/aarch64/aarch64.c (aarch64_expand_prologue)
18951 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
18952 (aarch64_initial_elimination_offset)
18953 (aarch64_setup_incoming_varargs): Adjust location of
18954 saved_varargs_size.
18956 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
18958 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
18961 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
18962 Prachi Godbole <Prachi.Godbole@imgtec.com>
18964 * config/mips/mips-cpus.def: Add definition for p5600. Updated
18965 mips32r5 entry to use PROCESSOR_P5600.
18966 * config/mips/mips-tables.opt: Regenerate.
18967 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
18968 * config/mips/mips.c (mips_fmadd_bypass): New function.
18969 (mips_rtx_cost_data): Add costs for p5600.
18970 (mips_issue_rate): Add support for p5600.
18971 (mips_multipass_dfa_lookahead): Likewise.
18972 * config/mips/mips.h (TUNE_P5600): New define.
18973 (TUNE_MACC_CHAINS): Add TUNE_P5600.
18974 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
18975 * config/mips/mips.md: Include p5600.md.
18976 (processor): Add p5600.
18977 * config/mips/p5600.md: New file.
18979 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
18981 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
18982 * config/i386/predicates.md (palignr_operand): New.
18983 Indicates if permutation is suitable for palignr instruction.
18985 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
18987 PR tree-optimization/61319
18988 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
18989 stmt belongs to loop.
18991 2014-06-05 Richard Biener <rguenther@suse.de>
18993 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
18994 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
18995 (lookup_tmp_var): Adjust.
18996 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
18998 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19000 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
19002 2014-06-05 Marek Polacek <polacek@redhat.com>
19005 * doc/invoke.texi: Document -Wlogical-not-parentheses.
19007 2014-06-04 Tom de Vries <tom@codesourcery.com>
19009 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
19012 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
19014 PR tree-optimization/61385
19015 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
19017 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
19019 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
19020 changed to use fatal_error.
19021 (main): Ensure lto_wrapper_cleanup is run atexit.
19023 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
19025 * lra-constraints.c (valid_address_p): Move earlier in file.
19026 (address_eliminator): New structure.
19027 (satisfies_memory_constraint_p): New function.
19028 (satisfies_address_constraint_p): Likewise.
19029 (process_alt_operands, process_address, curr_insn_transform): Use them.
19031 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
19033 * lra-int.h (lra_static_insn_data): Make operand_alternative a
19035 (target_lra_int, default_target_lra_int, this_target_lra_int)
19036 (op_alt_data): Delete.
19037 * lra.h (lra_init): Delete.
19038 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
19039 (init_insn_code_data_once): Remove op_alt_data handling.
19040 (finish_insn_code_data_once): Likewise.
19041 (init_op_alt_data): Delete.
19042 (get_static_insn_data): Initialize operand_alternative to null.
19043 (free_insn_recog_data): Cast operand_alternative before freeing it.
19044 (setup_operand_alternative): Take the operand_alternative as
19045 parameter and assume it isn't already cached in the static
19047 (lra_set_insn_recog_data): Update accordingly.
19048 (lra_init): Delete.
19049 * ira.c (ira_init): Don't call lra_init.
19050 * target-globals.h (this_target_lra_int): Declare.
19051 (target_globals): Remove lra_int.
19052 (restore_target_globals): Update accordingly.
19053 * target-globals.c: Don't include lra-int.h.
19054 (default_target_globals, save_target_globals): Remove lra_int.
19056 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
19058 * recog.h (operand_alternative): Convert reg_class, reject,
19059 matched and matches into bitfields.
19060 (preprocess_constraints): New overload.
19061 (preprocess_insn_constraints): New function.
19062 (preprocess_constraints): Take the insn as parameter.
19063 (recog_op_alt): Change into a pointer.
19064 (target_recog): Add x_op_alt.
19065 * recog.c (asm_op_alt): New variable.
19066 (recog_op_alt): Change into a pointer.
19067 (preprocess_constraints): New overload, replacing the old function
19068 definition with one that doesn't use global state.
19069 (preprocess_insn_constraints): New function.
19070 (preprocess_constraints): Use them. Take the insn as parameter.
19071 Use asm_op_alt for asms.
19072 (recog_init): Free existing x_op_alt entries.
19073 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
19075 (make_early_clobber_and_input_conflicts): Likewise.
19076 (process_bb_node_lives): Pass the insn to process_constraints.
19077 * reg-stack.c (check_asm_stack_operands): Likewise.
19078 (subst_asm_stack_regs): Likewise.
19079 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
19080 * regrename.c (build_def_use): Likewise.
19081 * sched-deps.c (sched_analyze_insn): Likewise.
19082 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
19083 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
19084 (note_invalid_constants): Likewise.
19085 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
19086 (ix86_legitimate_combined_insn): Make operand_alternative pointer
19089 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
19091 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
19092 * ira-lives.c (check_and_make_def_conflict): Check for disabled
19094 (make_early_clobber_and_input_conflicts): Likewise.
19095 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
19097 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
19099 * recog.h (alternative_class): New function.
19100 (which_op_alt): Return a const recog_op_alt.
19101 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
19102 (subst_asm_stack_regs): Likewise.
19103 * config/arm/arm.c (note_invalid_constants): Likewise.
19104 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
19105 the operand_alternative; use alternative class instead.
19106 * sel-sched.c (get_reg_class): Likewise.
19107 * regrename.c (build_def_use): Likewise.
19108 (hide_operands, restore_operands, record_out_operands): Update type
19111 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
19113 * recog.h (recog_op_alt): Convert to a flat array.
19114 (which_op_alt): New function.
19115 * recog.c (recog_op_alt): Convert to a flat array.
19116 (preprocess_constraints): Update accordingly, grouping all
19117 operands of the same alternative together, rather than the
19119 * ira-lives.c (check_and_make_def_conflict): Likewise.
19120 (make_early_clobber_and_input_conflicts): Likewise.
19121 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
19122 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
19123 (subst_asm_stack_regs): Likewise.
19124 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
19125 * regrename.c (hide_operands, record_out_operands): Likewise.
19126 (build_def_use): Likewise.
19127 * sel-sched.c (get_reg_class): Likewise.
19128 * config/arm/arm.c (note_invalid_constants): Likewise.
19130 2014-06-04 Jason Merrill <jason@redhat.com>
19134 * gimplify.c (gimplify_arg): Non-static.
19135 * gimplify.h: Declare it.
19137 2014-06-04 Richard Biener <rguenther@suse.de>
19139 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
19140 TREE_PUBLIC and DECL_EXTERNAL decls.
19142 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
19144 * regcprop.c (copyprop_hardreg_forward_1): Account for
19145 HARD_REGNO_CALL_PART_CLOBBERED.
19147 2014-06-04 Richard Biener <rguenther@suse.de>
19149 * configure.ac: Check whether the underlying type of int64_t
19150 is long or long long.
19151 * configure: Regenerate.
19152 * config.in: Likewise.
19153 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
19154 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
19156 2014-06-04 Richard Biener <rguenther@suse.de>
19158 PR tree-optimization/60098
19159 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
19161 (dse_optimize_stmt): Simplify, now that we found a kill
19164 2014-06-04 Richard Biener <rguenther@suse.de>
19166 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
19167 of accesses with non-invariant address.
19169 2014-06-04 Martin Liska <mliska@suse.cz>
19171 * cgraph.h (cgraph_make_wrapper): New function introduced.
19172 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
19173 * ipa-inline.h (inline_analyze_function): The function is global.
19174 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
19176 2014-06-04 Martin Liska <mliska@suse.cz>
19178 * tree.h (private_lookup_attribute_starting): New function.
19179 (lookup_attribute_starting): Likewise.
19180 * tree.c (private_lookup_attribute_starting): Likewise.
19182 2014-06-04 Martin Liska <mliska@suse.cz>
19184 * cgraph.h (expand_thunk): New argument added.
19185 (address_taken_from_non_vtable_p): New global function.
19186 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
19187 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
19188 * cgraphunit.c (analyze_function): Likewise.
19189 (assemble_thunks_and_aliases): Argument added to call.
19190 (expand_thunk): New argument forces to produce GIMPLE thunk.
19192 2014-06-04 Martin Liska <mliska@suse.cz>
19194 * coverage.h (coverage_compute_cfg_checksum): Argument added.
19195 * coverage.c (coverage_compute_cfg_checksum): Likewise.
19196 * profile.c (branch_prob): Likewise.
19198 2014-06-04 Martin Jambor <mjambor@suse.cz>
19201 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
19202 handler for switch on an ipa_ref_use enum.
19203 * ipa-reference.c (analyze_function): Likewise.
19205 2014-06-04 Kai Tietz <ktietz@redhat.com>
19207 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
19208 from old call-instruction.
19210 2014-06-04 Bin Cheng <bin.cheng@arm.com>
19212 * config/aarch64/aarch64.c (aarch64_classify_address)
19213 (aarch64_legitimize_reload_address): Support full addressing modes
19215 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
19216 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
19218 2014-06-03 Andrew Pinski <apinski@cavium.com>
19220 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
19223 2014-06-03 Andrew Pinski <apinski@cavium.com>
19225 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
19226 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
19228 2014-06-03 Kai Tietz <ktietz@redhat.com>
19230 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
19233 2014-06-03 Dehao Chen <dehao@google.com>
19235 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
19238 2014-06-03 Marek Polacek <polacek@redhat.com>
19241 * doc/invoke.texi: Document -Wswitch-bool.
19242 * function.c (stack_protect_epilogue): Cast controlling expression of
19244 * gengtype.c (walk_type): Generate switch expression with its
19245 controlling expression cast to int.
19247 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
19249 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
19251 * config/avr/avr-tables.opt: Regenerate.
19252 * config/avr/t-multilib: Regenerate.
19253 * doc/avr-mmcu.texi: Regenerate.
19255 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
19256 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19258 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
19259 (ata6617c, ata664251): Add new avr35 devices.
19260 (ata6612c): Add new avr4 device.
19261 (ata6613c, ata6614q): Add new avr5 devices.
19262 * config/avr/avr-tables.opt: Regenerate.
19263 * config/avr/t-multilib: Regenerate.
19264 * doc/avr-mmcu.texi: Regenerate.
19266 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
19268 * gcc/config/aarch64/aarch64-builtins.c
19269 (aarch64_types_binop_ssu_qualifiers): New static data.
19270 (TYPES_BINOP_SSU): Define.
19271 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
19272 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
19273 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
19274 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
19275 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
19276 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
19277 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
19278 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
19279 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
19280 suffix to builtin function name, remove cast.
19281 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
19282 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
19283 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
19285 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
19287 * gcc/config/aarch64/aarch64-builtins.c
19288 (aarch64_types_binop_uus_qualifiers,
19289 aarch64_types_shift_to_unsigned_qualifiers,
19290 aarch64_types_unsigned_shiftacc_qualifiers): Define.
19291 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
19292 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
19293 sqshlu_n, uqshl_n): Update qualifiers.
19294 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
19295 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
19296 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
19297 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
19298 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
19299 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
19300 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
19301 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
19302 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
19303 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
19304 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
19305 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
19306 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
19307 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
19308 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
19309 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
19310 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
19311 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
19312 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
19313 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
19314 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
19315 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
19316 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
19317 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
19318 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
19319 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
19320 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
19322 2014-06-03 Teresa Johnson <tejohnson@google.com>
19324 * tree-sra.c (modify_function): Record caller nodes after rebuild.
19326 2014-06-02 Jason Merrill <jason@redhat.com>
19329 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
19331 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
19333 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
19336 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
19338 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
19340 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
19341 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
19342 * config/aarch64/iterators.md (REVERSE): New iterator.
19343 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
19344 (rev_op): New int_attribute.
19345 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
19346 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
19347 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
19348 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
19349 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
19350 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
19351 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
19352 Replace temporary __asm__ with __builtin_shuffle.
19354 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
19356 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
19358 * config/mips/mips-tables.opt: Regenerate.
19359 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
19360 to use mips_isa_rev rather than ISA_MIPS32R2.
19361 * config/mips/mips.h (ISA_MIPS32R3): New define.
19362 (ISA_MIPS32R5): New define.
19363 (ISA_MIPS64R3): New define.
19364 (ISA_MIPS64R5): New define.
19365 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
19366 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
19367 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
19369 (MIPS_ISA_SYNCI_SPEC): Likewise.
19370 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
19371 (LINK_SPEC): Added mips32r3 and mips32r5.
19372 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
19373 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
19374 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
19375 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
19376 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
19377 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
19378 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
19380 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
19382 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
19384 * config/mips/mips.opt (mxpa): New option.
19385 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
19388 2014-06-03 Martin Jambor <mjambor@suse.cz>
19391 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
19394 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
19396 PR tree-optimization/61328
19397 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
19398 initialization from find_bswap_or_nop_1.
19399 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
19400 in source_expr2 before using the size value the function sets. Also
19401 make use of init_symbolic_number () in both the old place and
19402 find_bswap_or_nop_load () to avoid reading uninitialized memory when
19403 doing recursion in the GIMPLE_BINARY_RHS case.
19405 2014-06-03 Richard Biener <rguenther@suse.de>
19407 PR tree-optimization/61383
19408 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
19411 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
19413 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
19414 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
19415 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
19416 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
19418 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
19419 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
19420 * system.h: ...here and make it unconditional.
19421 * target.def (conditional_register_usage): Mention
19422 define_register_constraint instead of old-style constraint macros.
19423 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
19424 * doc/tm.texi: Regenerate.
19425 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
19426 protected by !USE_MD_CONSTRAINTS.
19427 * config/frv/frv.md: Remove quote from old version of documentation.
19428 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
19429 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
19430 CONST_DOUBLE_OK_FOR_LETTER.
19431 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
19433 2014-06-02 Andrew Pinski <apinski@cavium.com>
19435 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
19436 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
19437 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
19438 file whose name depends on -mabi= and -mbig-endian.
19439 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
19440 Handle LP64 better and handle ilp32 too.
19441 (MULTILIB_OPTIONS): Delete.
19442 (MULTILIB_DIRNAMES): Delete.
19444 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
19446 * expr.h: Remove prototypes of functions defined in builtins.c.
19447 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
19448 Remove prototypes of functions defined in builtins.c.
19449 * builtins.h: Update prototype list to include all exported functions.
19450 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
19451 no_c99_libc_has_function): Move to targhooks.c
19452 (build_string_literal, build_call_expr_loc_array,
19453 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
19455 (expand_builtin_object_size, fold_builtin_object_size): Make static.
19456 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
19457 no_c99_libc_has_function): Relocate from builtins.c.
19458 * tree.c: Include builtins.h.
19459 (build_call_expr_loc_array, build_call_expr_loc_vec,
19460 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
19462 * fold-const.h (fold_fma): Move prototype to builtins.h.
19463 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
19464 * asan.c: Include builtins.h.
19465 * cfgexpand.c: Likewise.
19466 * convert.c: Likewise.
19467 * emit-rtl.c: Likewise.
19468 * except.c: Likewise.
19469 * expr.c: Likewise.
19470 * fold-const.c: Likewise.
19471 * gimple-fold.c: Likewise.
19472 * gimple-ssa-strength-reduction.c: Likewise.
19473 * gimplify.c: Likewise.
19474 * ipa-inline.c: Likewise.
19475 * ipa-prop.c: Likewise.
19476 * lto-streamer-out.c: Likewise.
19477 * stmt.c: Likewise.
19478 * tree-inline.c: Likewise.
19479 * tree-object-size.c: Likewise.
19480 * tree-sra.c: Likewise.
19481 * tree-ssa-ccp.c: Likewise.
19482 * tree-ssa-forwprop.c: Likewise.
19483 * tree-ssa-loop-ivcanon.c: Likewise.
19484 * tree-ssa-loop-ivopts.c: Likewise.
19485 * tree-ssa-math-opts.c: Likewise.
19486 * tree-ssa-reassoc.c: Likewise.
19487 * tree-ssa-threadedge.c: Likewise.
19488 * tree-streamer-in.c: Likewise.
19489 * tree-vect-data-refs.c: Likewise.
19490 * tree-vect-patterns.c: Likewise.
19491 * tree-vect-stmts.c: Likewise.
19492 * config/aarch64/aarch64.c: Likewise.
19493 * config/alpha/alpha.c: Likewise.
19494 * config/arc/arc.c: Likewise.
19495 * config/arm/arm.c: Likewise.
19496 * config/avr/avr.c: Likewise.
19497 * config/bfin/bfin.c: Likewise.
19498 * config/c6x/c6x.c: Likewise.
19499 * config/cr16/cr16.c: Likewise.
19500 * config/cris/cris.c: Likewise.
19501 * config/epiphany/epiphany.c: Likewise.
19502 * config/fr30/fr30.c: Likewise.
19503 * config/frv/frv.c: Likewise.
19504 * config/h8300/h8300.c: Likewise.
19505 * config/i386/i386.c: Likewise.
19506 * config/i386/winnt.c: Likewise.
19507 * config/ia64/ia64.c: Likewise.
19508 * config/iq2000/iq2000.c: Likewise.
19509 * config/lm32/lm32.c: Likewise.
19510 * config/m32c/m32c.c: Likewise.
19511 * config/m32r/m32r.c: Likewise.
19512 * config/m68k/m68k.c: Likewise.
19513 * config/mcore/mcore.c: Likewise.
19514 * config/mep/mep.c: Likewise.
19515 * config/microblaze/microblaze.c: Likewise.
19516 * config/mips/mips.c: Likewise.
19517 * config/mmix/mmix.c: Likewise.
19518 * config/mn10300/mn10300.c: Likewise.
19519 * config/moxie/moxie.c: Likewise.
19520 * config/msp430/msp430.c: Likewise.
19521 * config/nds32/nds32.c: Likewise.
19522 * config/pa/pa.c: Likewise.
19523 * config/pdp11/pdp11.c: Likewise.
19524 * config/picochip/picochip.c: Likewise.
19525 * config/rl78/rl78.c: Likewise.
19526 * config/rs6000/rs6000.c: Likewise.
19527 * config/rx/rx.c: Likewise.
19528 * config/s390/s390.c: Likewise.
19529 * config/score/score.c: Likewise.
19530 * config/sh/sh.c: Likewise.
19531 * config/sparc/sparc.c: Likewise.
19532 * config/spu/spu.c: Likewise.
19533 * config/stormy16/stormy16.c: Likewise.
19534 * config/tilegx/tilegx.c: Likewise.
19535 * config/tilepro/tilepro.c: Likewise.
19536 * config/v850/v850.c: Likewise.
19537 * config/vax/vax.c: Likewise.
19538 * config/xtensa/xtensa.c: Likewise.
19540 2014-06-02 Jeff Law <law@redhat.com>
19542 PR rtl-optimization/61094
19543 * ree.c (combine_reaching_defs): Do not reextend an insn if it
19544 was marked as do_no_reextend. If a copy is needed to eliminate
19545 an extension, then mark it as do_not_reextend.
19547 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
19549 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
19551 2014-06-02 Richard Henderson <rth@redhat.com>
19554 * config/alpha/alpha.c (print_operand_address): Allow symbolic
19555 addresses inside asms. Use output_operand_lossage instead of
19558 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
19561 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
19562 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
19564 2014-06-02 Tom de Vries <tom@codesourcery.com>
19566 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
19567 case that x has VOIDmode.
19569 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
19571 * varasm.c (copy_constant): Delete function.
19572 (build_constant_desc): Don't call it.
19574 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19577 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
19578 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
19579 with immediate_operand.
19581 2014-06-02 Andreas Schwab <schwab@suse.de>
19583 * config/ia64/ia64.c
19584 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
19585 pending_data_specs first.
19587 2014-06-02 Richard Biener <rguenther@suse.de>
19589 PR tree-optimization/61378
19590 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
19591 valueized_anything.
19593 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
19595 * config/i386/constraints.md (Bw): Rename from 'w'.
19596 (Bz): Rename from 'z'.
19597 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
19599 2014-06-01 Kai Tietz <ktietz@redhat.com>
19602 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
19603 * config/i386/i386.md (sibcall_insn_operand): Use Bs
19604 instead of m constraint.
19606 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
19608 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
19609 a separate alternative where the scratch operand 2 is marked as
19612 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
19614 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
19615 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
19616 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
19617 and __builtins_arm_get_fpscr.
19618 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
19619 __builtins_arm_get_fpscr.
19620 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
19621 __builtins_arm_ldfpscr.
19622 (arm_atomic_assign_expand_fenv): New function.
19623 * config/arm/vfp.md (set_fpscr): New pattern.
19624 (get_fpscr) : Likewise.
19625 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
19627 * doc/extend.texi (AARCH64 Built-in Functions) : Document
19628 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
19630 2014-05-30 Jakub Jelinek <jakub@redhat.com>
19632 * asan.c (report_error_func): Add SLOW_P argument, use
19633 BUILT_IN_ASAN_*_N if set.
19634 (build_check_stmt): Likewise.
19635 (instrument_derefs): If T has insufficient alignment,
19636 force same handling as for odd sizes.
19638 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
19639 BUILT_IN_ASAN_REPORT_STORE_N): New.
19640 * asan.c (struct asan_mem_ref): Change access_size type to
19642 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
19643 update_mem_ref_hash_table): Likewise.
19644 (asan_mem_ref_hasher::hash): Hash in a HWI.
19645 (report_error_func): Change size_in_bytes argument to HWI.
19646 Use *_N builtins if size_in_bytes is larger than 16 or not power of
19648 (build_shadow_mem_access): New function.
19649 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
19650 Handle size_in_bytes not power of two or larger than 16.
19651 (instrument_derefs): Don't give up if size_in_bytes is not
19652 power of two or is larger than 16.
19654 2014-05-30 Kai Tietz <ktietz@redhat.com>
19657 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
19658 for sibling-tail-calls.
19659 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
19661 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
19662 (sibcall_insn_operand): Add check for sibcall_memory_operand.
19664 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19666 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
19667 * config/avr/avr-tables.opt: Regenerate.
19668 * config/avr/t-multilib: Regenerate.
19669 * doc/avr-mmcu.texi: Regenerate.
19671 2014-05-30 Ian Lance Taylor <iant@google.com>
19673 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
19676 2014-05-30 Tom de Vries <tom@codesourcery.com>
19678 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
19681 2014-05-30 Tom de Vries <tom@codesourcery.com>
19683 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
19684 * lra.c (initialize_lra_reg_info_element): Add init of
19685 actual_call_used_reg_set field.
19686 (lra): Call lra_create_live_ranges before lra_inheritance for
19688 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
19690 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
19691 instead of call_used_reg_set for -fuse-caller-save.
19692 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
19694 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19696 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
19698 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
19700 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
19702 * ira.c (ira_get_dup_out_num): Check for output operands at
19703 the start of the loop. Handle cases where an included alternative
19704 follows an excluded one.
19706 2014-05-29 Mike Stump <mikestump@comcast.net>
19709 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
19710 post ld passes when lto is used.
19712 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
19714 PR rtl-optimization/61325
19715 * lra-constraints.c (process_address): Rename to process_address_1.
19716 (process_address): New function.
19718 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
19720 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
19721 TYPES_BINOPV): New static data.
19722 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
19724 * config/aarch64/aarch64-simd.md (aarch64_ext,
19725 aarch64_im_lane_boundsi): New patterns.
19726 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
19728 (aarch64_evpc_ext): New function.
19730 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
19732 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
19733 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
19734 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
19735 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
19736 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
19738 2014-05-29 Tom de Vries <tom@codesourcery.com>
19740 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
19742 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
19743 Richard Sandiford <rdsandiford@googlemail.com>
19745 * arm/iterators.md (shiftable_ops): New code iterator.
19746 (t2_binop0, arith_shift_insn): New code attributes.
19747 * arm/predicates.md (shift_nomul_operator): New predicate.
19748 * arm/arm.md (insn_enabled): Delete.
19749 (enabled): Remove insn_enabled test.
19750 (*arith_shiftsi): Delete. Replace with ...
19751 (*<arith_shift_insn>_multsi): ... new pattern.
19752 (*<arith_shift_insn>_shiftsi): ... new pattern.
19753 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
19755 2014-05-29 Radovan Obradovic <robradovic@mips.com>
19756 Tom de Vries <tom@codesourcery.com>
19758 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
19759 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
19761 (mips_split_call): Use POST_CALL_TMP_REG.
19762 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
19764 2014-05-29 Tom de Vries <tom@codesourcery.com>
19766 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
19767 with #ifdef STACK_REGS.
19769 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
19771 * varasm.c (get_variable_section): Walk aliases.
19772 (place_block_symbol): Walk aliases.
19774 2014-05-28 Tom de Vries <tom@codesourcery.com>
19777 2014-05-28 Tom de Vries <tom@codesourcery.com>
19779 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
19780 * lra.c (initialize_lra_reg_info_element): Add init of
19781 actual_call_used_reg_set field.
19782 (lra): Call lra_create_live_ranges before lra_inheritance for
19784 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
19786 * lra-constraints.c (need_for_call_save_p): Use
19787 actual_call_used_reg_set instead of call_used_reg_set for
19789 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
19791 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
19793 * doc/md.texi: Document that the % constraint character must
19794 be at the beginning of the string.
19795 * genoutput.c (validate_insn_alternatives): Check that '=',
19796 '+' and '%' only appear at the beginning of a constraint.
19797 * ira.c (commutative_constraint_p): Delete.
19798 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
19799 at the start of the string.
19800 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
19802 * config/arm/neon.md (bicdi3_neon): Likewise.
19803 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
19804 (slt_si, sltu_si): Likewise.
19805 * config/vax/vax.md (sbcdi3): Likewise.
19806 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
19807 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
19808 (mul64): Move '%' to beginning of constraint.
19809 * config/arm/arm.md (*xordi3_insn): Likewise.
19810 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
19811 (xorsi3): Likewise.
19813 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
19815 * doc/md.texi: Document the restrictions on the "enabled" attribute.
19817 2014-05-28 Jason Merrill <jason@redhat.com>
19820 * cgraph.h (symtab_node::get_comdat_group_id): New.
19821 * cgraphunit.c (analyze_functions): Call it.
19822 * symtab.c (dump_symtab_node): Likewise.
19823 * tree.c (decl_comdat_group_id): New.
19824 * tree.h: Declare it.
19825 * lto-streamer-out.c (write_symbol): Use it.
19826 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
19828 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
19830 PR bootstrap/PR61146
19831 * wide-int.cc: Do not include longlong.h when compiling with clang.
19833 2014-05-28 Richard Biener <rguenther@suse.de>
19835 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
19836 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
19837 (vrp_visit_assignment_or_call): Print less vertical space.
19838 (vrp_visit_stmt): Likewise.
19839 (vrp_visit_phi_node): Likewise. For a PHI argument with
19840 VR_VARYING range consider recording it as copy.
19842 2014-05-28 Richard Biener <rguenther@suse.de>
19845 2014-05-28 Richard Biener <rguenther@suse.de>
19847 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
19849 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
19851 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
19852 sufficiently aligned and an offset is used at the same time.
19853 (expand_expr_real_1): Likewise.
19855 2014-05-28 Richard Biener <rguenther@suse.de>
19857 PR middle-end/61045
19858 * fold-const.c (fold_comparison): When folding
19859 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
19860 the sign of the remaining constant operand stays the same.
19862 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
19864 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
19865 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
19866 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
19868 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
19869 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
19870 (m32bit-doubles) Likewise.
19871 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
19872 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
19875 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19877 * configure.ac ($gcc_cv_ld_clearcap): New test.
19878 * configure: Regenerate.
19879 * config.in: Regenerate.
19880 * config/sol2.opt (mclear-hwcap): New option.
19881 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
19882 * config/sol2-clearcap.map: Moved here from
19883 testsuite/gcc.target/i386/clearcap.map.
19884 * config/sol2-clearcapv2.map: Move here from
19885 gcc.target/i386/clearcapv2.map.
19886 * config/t-sol2 (install): Depend on install-clearcap-map.
19887 (install-clearcap-map): New target.
19888 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
19891 2014-05-28 Richard Biener <rguenther@suse.de>
19893 * hwint.h (*_HALF_WIDE_INT*): Move to ...
19894 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
19895 ... here and remove the rest.
19896 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
19898 2014-05-28 Richard Biener <rguenther@suse.de>
19900 PR tree-optimization/61335
19901 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
19902 new range fails, drop to varying.
19904 2014-05-28 Olivier Hainque <hainque@adacore.com>
19906 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
19907 (CPP_SPEC): Add entry for -mcpu=8548.
19908 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
19909 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
19911 2014-05-28 Tom de Vries <tom@codesourcery.com>
19913 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
19914 * lra.c (initialize_lra_reg_info_element): Add init of
19915 actual_call_used_reg_set field.
19916 (lra): Call lra_create_live_ranges before lra_inheritance for
19918 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
19920 * lra-constraints.c (need_for_call_save_p): Use
19921 actual_call_used_reg_set instead of call_used_reg_set for
19923 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
19925 2014-05-28 Radovan Obradovic <robradovic@mips.com>
19926 Tom de Vries <tom@codesourcery.com>
19928 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
19930 (@item -fuse-caller-save): New item.
19932 2014-05-28 Radovan Obradovic <robradovic@mips.com>
19933 Tom de Vries <tom@codesourcery.com>
19935 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
19936 OPT_fuse_caller_save.
19938 2014-05-28 Radovan Obradovic <robradovic@mips.com>
19939 Tom de Vries <tom@codesourcery.com>
19941 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
19942 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
19943 get_call_reg_set_usage.
19944 * resource.c (mark_set_resources, mark_target_live_regs): Use
19945 get_call_reg_set_usage.
19946 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
19948 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
19949 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
19950 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
19951 * ira-build.c (ira_create_allocno): Init
19952 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
19953 (create_cap_allocno, propagate_allocno_info)
19954 (propagate_some_info_from_allocno)
19955 (copy_info_to_removed_store_destinations): Handle
19956 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
19957 * ira-costs.c (ira_tune_allocno_costs): Use
19958 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
19960 2014-05-28 Radovan Obradovic <robradovic@mips.com>
19961 Tom de Vries <tom@codesourcery.com>
19963 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
19964 and function_used_regs_valid fields.
19965 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
19966 find_all_hard_reg_sets.
19967 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
19968 (get_call_reg_set_usage): New function.
19969 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
19970 * regs.h (get_call_reg_set_usage): Declare.
19972 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
19975 * config/dbx.h (License): Add Runtime Library Exception.
19976 * config/newlib-stdint.h (License): Same.
19977 * config/rtems.h (License): Same
19978 * config/initfini-array.h (License): Same
19979 * config/v850/v850.h (License): Same.
19980 * config/v850/v850-opts.h (License): Same
19981 * config/v850/rtems.h (License): Same.
19983 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
19986 * doc/extend.texi (Local Labels): Note that label differences are
19987 not supported for AVR.
19989 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
19990 Olivier Hainque <hainque@adacore.com>
19992 * rtl.h (set_for_reg_notes): Declare.
19993 * emit-rtl.c (set_for_reg_notes): New function.
19994 (set_unique_reg_note): Use it.
19995 * optabs.c (add_equal_note): Likewise
19997 2014-05-27 Andrew Pinski <apinski@cavium.com>
19999 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
20000 Use <w> for the register in assembly template.
20001 (stack_protect_test): Use the mode of operands[0] for the result.
20002 (stack_protect_test_<mode>): Use <w> for the register
20003 in assembly template.
20005 2014-05-27 DJ Delorie <dj@redhat.com>
20007 * config/rx/rx.c (add_vector_labels): New.
20008 (rx_output_function_prologue): Call it.
20009 (rx_handle_func_attribute): Don't require empty arguments.
20010 (rx_handle_vector_attribute): New.
20011 (rx_attribute_table): Add "vector" attribute.
20012 * doc/extend.texi (interrupt, vector): Document new/changed
20013 RX-specific attributes.
20015 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
20017 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
20019 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
20020 predicate to detect a negative quotient.
20022 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
20024 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
20025 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
20026 Add X - Y CMP 0 to X CMP Y transformation.
20027 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
20029 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
20031 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
20034 2014-05-27 Steve Ellcey <sellcey@mips.com>
20036 * config/mips/mips.c: Add include of cgraph.h.
20038 2014-05-27 Richard Biener <rguenther@suse.de>
20040 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
20042 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
20045 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
20046 * config/arm/arm-cores.def (License): Same.
20047 * config/arm/arm-opts.h (License): Same.
20048 * config/arm/aout.h (License): Same.
20049 * config/arm/bpabi.h (License): Same.
20050 * config/arm/elf.h (License): Same.
20051 * config/arm/linux-elf.h (License): Same.
20052 * config/arm/linux-gas.h (License): Same.
20053 * config/arm/netbsd-elf.h (License): Same.
20054 * config/arm/uclinux-eabi.h (License): Same.
20055 * config/arm/uclinux-elf.h (License): Same.
20056 * config/arm/vxworks.h (License): Same.
20058 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20060 * config/arm/neon.md (neon_bswap<mode>): New pattern.
20061 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
20062 (arm_init_neon_builtins): Handle NEON_BSWAP.
20063 Define required type nodes.
20064 (arm_expand_neon_builtin): Handle NEON_BSWAP.
20065 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
20066 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
20067 * config/arm/iterators.md (VDQHSD): New mode iterator.
20069 2014-05-27 Richard Biener <rguenther@suse.de>
20071 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
20072 Try using literal operands when comparing value-ranges failed.
20074 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
20076 * ira.c (commutative_operand): Adjust for change to recog_data.
20077 [Missing from previous commit.]
20079 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
20081 * system.h (TEST_BIT): New macro.
20082 * recog.h (alternative_mask): New type.
20083 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
20084 (recog_data_d): Replace alternative_enabled_p array with
20085 enabled_alternatives.
20086 (target_recog): New structure.
20087 (default_target_recog, this_target_recog): Declare.
20088 (get_enabled_alternatives, recog_init): Likewise.
20089 * recog.c (default_target_recog, this_target_recog): New variables.
20090 (get_enabled_alternatives): New function.
20091 (extract_insn): Use it.
20092 (recog_init): New function.
20093 (preprocess_constraints, constrain_operands): Adjust for change to
20095 * postreload.c (reload_cse_simplify_operands): Likewise.
20096 * reload.c (find_reloads): Likewise.
20097 * ira-costs.c (record_reg_classes): Likewise.
20098 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
20099 all alternatives after a disabled one would be skipped.
20100 (ira_implicitly_set_insn_hard_regs): Likewise.
20101 * ira.c (ira_setup_alts): Adjust for change to recog_data.
20102 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
20103 with enabled_alternatives.
20104 * lra.c (free_insn_recog_data): Update accordingly.
20105 (lra_update_insn_recog_data): Likewise.
20106 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
20107 * lra-constraints.c (process_alt_operands): Likewise. Handle
20108 only_alternative as part of the enabled mask.
20109 * target-globals.h (this_target_recog): Declare.
20110 (target_globals): Add a recog field.
20111 (restore_target_globals): Restore this_target_recog.
20112 * target-globals.c: Include recog.h.
20113 (default_target_globals): Initialize recog field.
20114 (save_target_globals): Likewise.
20115 * reginfo.c (reinit_regs): Call recog_init.
20116 * toplev.c (backend_init_target): Likewise.
20118 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
20120 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
20121 rather than any named insn's code.
20123 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
20126 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
20127 * config/arm/arm-cores.def (License): Same.
20129 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
20131 * tree.h (decl_comdat_group): Declare.
20132 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
20133 * tree.c (decl_comdat_group): Here.
20135 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
20137 PR rtl-optimization/61222
20138 * combine.c (simplify_shift_const_1): When moving a PLUS outside
20139 the shift, truncate the PLUS operand to the result mode.
20141 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
20144 * config/i386/i386.c (ix86_rtx_costs)
20145 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
20148 2014-05-26 Martin Jambor <mjambor@suse.cz>
20150 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
20153 2014-05-26 Richard Biener <rguenther@suse.de>
20155 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
20156 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
20157 Provide specializations.
20158 (wi::int_traits <HOST_WIDE_INT>,
20159 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
20161 2014-05-26 Alan Modra <amodra@gmail.com>
20164 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
20165 params and return a bool. Remove dead code. Update comment.
20166 Assert we have a const_int source. Remove bogus code from
20167 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
20168 handling of constants > 2G and reg_equal note, from..
20169 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
20170 return value. Update comment. If we can, use a new pseudo
20171 for intermediate calculations.
20172 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
20174 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
20175 call to rs6000_emit_set_const in splitter.
20176 (movdi_internal64+2, +3): Likewise.
20178 2014-05-26 Richard Biener <rguenther@suse.de>
20180 * system.h: Define __STDC_FORMAT_MACROS before
20181 including inttypes.h.
20182 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
20183 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
20184 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
20185 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
20186 HOST_WIDEST_INT_C): Remove.
20187 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
20188 if C99 inttypes.h is not available.
20189 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
20190 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
20191 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
20192 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
20193 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
20194 (struct output_info): Likewise.
20195 (print_statistics): Adjust.
20196 (dump_bitmap_statistics): Likewise.
20197 * bt-load.c (migrate_btr_defs): Print with PRId64.
20198 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
20199 (MAX_SAFE_MULTIPLIER): Adjust.
20200 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
20201 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
20202 dump_cgraph_node): Likewise.
20203 * final.c (dump_basic_block_info): Likewise.
20204 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
20205 * gcov.c (format_gcov): Likewise.
20206 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
20208 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
20209 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
20210 (inline_small_functions, dump_overall_stats, dump_inline_stats):
20211 Use PRId64 for dumping.
20212 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
20213 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
20214 (add_allocno_hard_regs): Adjust.
20215 * loop-doloop.c (doloop_modify): Print using PRId64.
20216 * loop-iv.c (inverse): Compute in uint64_t.
20217 (determine_max_iter, iv_number_of_iterations): Likewise.
20218 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
20219 Print using PRId64.
20220 * lto-streamer-out.c (write_symbol): Use uint64_t.
20221 * mcf.c (CAP_INFINITY): Use int64_t maximum.
20222 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
20223 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
20224 * modulo-sched.c (const_iteration_count): Use int64_t.
20225 (sms_schedule): Dump using PRId64.
20226 * predict.c (dump_prediction): Likewise.
20227 * pretty-print.h (pp_widest_integer): Remove.
20228 * profile.c (get_working_sets, is_edge_inconsistent,
20229 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
20230 * tree-pretty-print.c (pp_double_int): Remove case handling
20231 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
20232 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
20234 (pass_optimize_bswap::execute): Remove restriction on hosts.
20235 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
20236 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
20237 * tree.c (widest_int_cst_value): Remove.
20238 * tree.h (widest_int_cst_value): Likewise.
20239 * value-prof.c (dump_histogram_value): Print using PRId64.
20240 * gengtype.c (main): Also inject int64_t.
20241 * ggc-page.c (struct max_alignment): Use int64_t.
20242 * alloc-pool.c (struct allocation_object_def): Likewise.
20243 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
20245 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
20246 * doc/tm.texi: Regenerated.
20247 * gengtype-lex.l (IWORD): Handle [u]int64_t.
20248 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
20249 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
20250 mmix_output_register_setting): Use [u]int64_t in prototypes.
20251 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
20252 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
20253 mmix_output_octa, mmix_output_shifted_value): Adjust.
20254 (mmix_intval): Adjust. Remove unreachable case.
20255 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
20257 2014-05-26 Richard Biener <rguenther@suse.de>
20259 * configure.ac: Drop __int64 type check. Insist that we
20260 found uint64_t and int64_t.
20261 * hwint.h (HOST_BITS_PER___INT64): Remove.
20262 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
20263 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
20264 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
20265 (HOST_WIDEST_FAST_INT): Remove __int64 case.
20266 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
20267 for dst_q_src_df_rms_cdt.
20268 * configure: Regenerate.
20269 * config.in: Likewise.
20271 2014-05-26 Michael Tautschnig <mt@debian.org>
20274 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
20275 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
20277 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20279 PR rtl-optimization/61278
20280 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
20282 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20284 PR rtl-optimization/61220
20285 Part of PR rtl-optimization/61225
20286 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
20287 insn; skip split_edge for a block with only one successor.
20289 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20291 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
20294 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20296 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
20297 (update_vtable_references): New function.
20298 (function_and_variable_visibility): Rewrite also vtable initializers.
20299 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
20301 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20303 * ggc.h (ggc_grow): New function.
20304 * ggc-none.c (ggc_grow): New function.
20305 * ggc-page.c (ggc_grow): Likewise.
20307 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20309 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
20310 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
20311 comdat_can_be_unshared_p, cgraph_externally_visible_p,
20312 varpool_externally_visible_p, can_replace_by_local_alias,
20313 update_visibility_by_resolution_info, function_and_variable_visibility,
20314 pass_data_ipa_function_and_variable_visibility,
20315 make_pass_ipa_function_and_variable_visibility,
20316 whole_program_function_and_variable_visibility,
20317 pass_data_ipa_whole_program_visibility,
20318 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
20319 * cgraph.h (cgraph_local_node_p): Declare.
20320 * ipa-visibility.c: New file.
20321 * Makefile.in (OBJS): Add ipa-visiblity.o
20323 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20325 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
20326 that var decl is available.
20328 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20330 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
20331 symtab_node pointer.
20332 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
20333 (find_decls_types_r): Do not walk COMDAT_GROUP.
20334 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
20335 * varasm.c (make_decl_one_only): Use set_comdat_group;
20336 create node if needed.
20337 * ipa-inline-transform.c (save_inline_function_body): Update
20338 way we decl->symtab mapping.
20339 * symtab.c (symtab_hash, hash_node, eq_node
20340 symtab_insert_node_to_hashtable): Remove.
20341 (symtab_register_node): Update.
20342 (symtab_unregister_node): Update.
20343 (symtab_get_node): Reimplement as inline function.
20344 (symtab_add_to_same_comdat_group): Update.
20345 (symtab_dissolve_same_comdat_group_list): Update.
20346 (dump_symtab_base): Update.
20347 (verify_symtab_base): Update.
20348 (symtab_make_decl_local): Update.
20349 (fixup_same_cpp_alias_visibility): Update.
20350 (symtab_nonoverwritable_alias): Update.
20351 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
20352 * ipa.c (update_visibility_by_resolution_info): UPdate.
20353 * bb-reorder.c: Include cgraph.h
20354 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
20355 with comdat groups.
20356 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
20357 * cgraph.c (cgraph_get_create_node): Update.
20358 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
20360 (symtab_get_node): Make inline.
20361 (symtab_insert_node_to_hashtable): Remove.
20362 (symtab_can_be_discarded): Update.
20363 (decl_comdat_group): New function.
20364 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
20366 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
20368 (read_comdat_group): New function.
20369 (input_node, input_varpool_node): Use it.
20370 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
20372 * mips.c (mips_start_unique_function): Likewise.
20373 (ix86_code_end): Likewise.
20374 (rs6000_code_end): Likweise.
20375 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
20377 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20379 * gengtype-state.c (fatal_reading_state): Bring offline.
20380 * optabs.c (widening_optab_handler): Bring offline.
20381 * optabs.h (widening_optab_handler): Likewise.
20382 * final.c (get_attr_length_1): Likewise.
20384 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20386 * sched-int.h (sd_iterator_cond): Manually tail recurse.
20388 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20390 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
20391 (ppc440-compare): Include shift with dot.
20392 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
20393 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
20395 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
20397 (e6500_sfx2): Include it.
20398 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
20399 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
20400 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
20401 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
20402 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
20403 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
20404 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
20405 *lshiftrt_internal1le, *lshiftrt_internal1be,
20406 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
20407 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
20408 *rotldi3_internal10le, *rotldi3_internal10be,
20409 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
20410 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
20411 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
20412 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
20413 define_insns): Use type "shift" in the appropriate alternatives.
20415 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20417 * config/rs6000/rs6000.md (type): Add "logical". Delete
20419 (dot): Adjust comment.
20420 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
20421 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
20422 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
20423 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
20424 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
20425 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
20426 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
20427 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
20429 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
20430 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
20431 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
20432 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
20433 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
20434 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
20435 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
20436 * config/rs6000/8540.md (ppc8540_su): Adjust.
20437 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20438 cell-cmp-microcoded): Adjust.
20439 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
20440 * config/rs6000/e500mc.md (e500mc_su): Adjust.
20441 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
20442 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
20443 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
20444 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
20445 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
20446 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
20447 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
20449 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
20450 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
20451 Adjust. Adjust comment.
20452 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
20453 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
20455 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20457 * config/rs6000/rs6000.md (type): Add "add".
20458 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
20459 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
20460 define_insns): Use it.
20461 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
20463 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
20464 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
20465 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
20466 * config/rs6000/601.md (ppc601-integer): Adjust.
20467 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
20468 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
20469 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
20470 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
20471 * config/rs6000/8540.md (ppc8540_su): Adjust.
20472 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20473 cell-cmp-microcoded): Adjust.
20474 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
20475 * config/rs6000/e500mc.md (e500mc_su): Adjust.
20476 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
20477 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
20478 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
20479 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
20480 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
20481 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
20482 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
20484 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
20485 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
20486 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
20487 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
20489 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20491 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
20492 "delayed_compare", "var_delayed_compare".
20493 (var_shift): New attribute.
20494 (cell_micro): Adjust.
20495 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
20496 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
20497 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
20498 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
20499 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
20500 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
20501 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
20502 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
20503 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
20504 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
20505 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
20506 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
20507 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
20508 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
20509 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
20510 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
20511 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
20512 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
20513 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
20514 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
20515 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
20516 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
20517 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
20518 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
20519 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
20521 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
20522 * config/rs6000/440.md (ppc440-integer): Adjust.
20523 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
20524 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
20525 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
20526 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
20527 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
20528 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
20529 * config/rs6000/8540.md (ppc8540_su): Adjust.
20530 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20531 cell-cmp-microcoded): Adjust.
20532 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
20533 * config/rs6000/e500mc.md (e500mc_su): Adjust.
20534 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
20535 e500mc64_delayed): Adjust.
20536 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
20537 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
20538 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
20539 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
20540 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
20541 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
20542 power6-delayed-compare, power6-var-delayed-compare): Adjust.
20543 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
20544 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
20546 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
20547 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
20549 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20551 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
20552 (bits): New mode_attr.
20553 (idiv_ldiv): Delete mode_attr.
20554 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
20555 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
20556 rs6000_adjust_priority, is_nonpipeline_insn,
20557 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
20559 * config/rs6000/40x.md (ppc403-idiv): Adjust.
20560 * config/rs6000/440.md (ppc440-idiv): Adjust.
20561 * config/rs6000/476.md (ppc476-idiv): Adjust.
20562 * config/rs6000/601.md (ppc601-idiv): Adjust.
20563 * config/rs6000/603.md (ppc603-idiv): Adjust.
20564 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
20565 ppc620-ldiv): Adjust.
20566 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
20567 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
20568 * config/rs6000/8540.md (ppc8540_divide): Adjust.
20569 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
20570 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
20571 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
20572 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
20573 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
20574 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
20575 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
20576 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
20577 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
20578 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
20579 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
20580 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
20581 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
20582 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
20583 * config/rs6000/titan.md (titan_fxu_div): Adjust.
20585 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20587 * config/rs6000/rs6000.md (type): Delete "insert_word",
20588 "insert_dword". Add "insert".
20589 (size): Update comment.
20590 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
20591 insn_must_be_first_in_group): Adjust.
20592 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
20593 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
20594 *insvsi_internal6, insvdi_internal): Adjust.
20596 * config/rs6000/40x.md (ppc403-integer): Adjust.
20597 * config/rs6000/440.md (ppc440-integer): Adjust.
20598 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
20599 * config/rs6000/601.md (ppc601-integer): Adjust.
20600 * config/rs6000/603.md (ppc603-integer): Adjust.
20601 * config/rs6000/6xx.md (ppc604-integer): Adjust.
20602 * config/rs6000/7450.md (ppc7450-integer): Adjust.
20603 * config/rs6000/7xx.md (ppc750-integer): Adjust.
20604 * config/rs6000/8540.md (ppc8540_su): Adjust.
20605 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
20606 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
20607 * config/rs6000/e500mc.md (e500mc_su): Adjust.
20608 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
20609 * config/rs6000/e5500.md (e5500_sfx): Adjust.
20610 * config/rs6000/e6500.md (e6500_sfx): Adjust.
20611 * config/rs6000/mpc.md (mpccore-integer): Adjust.
20612 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
20613 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
20614 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
20615 * config/rs6000/power7.md (power7-integer): Adjust.
20616 * config/rs6000/power8.md (power8-1cyc): Adjust.
20617 * config/rs6000/rs64.md (rs64a-integer): Adjust.
20618 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
20620 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20622 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
20623 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
20624 (size): New attribute.
20625 (dot): New attribute.
20626 (cell_micro): Adjust.
20627 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
20628 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
20629 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
20630 umuldi3_highpart): Adjust.
20631 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
20632 rs6000_adjust_priority, is_nonpipeline_insn,
20633 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
20635 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
20636 ppc405-imul3): Adjust.
20637 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
20638 * config/rs6000/476.md (ppc476-imul): Adjust.
20639 * config/rs6000/601.md (ppc601-imul): Adjust.
20640 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
20641 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
20642 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
20643 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
20644 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
20646 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
20647 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
20648 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
20649 cell-imul): Adjust.
20650 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
20651 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
20652 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
20653 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
20654 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
20655 * config/rs6000/mpc.md (mpccore-imul): Adjust.
20656 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
20657 power4-lmul, power4-imul, power4-imul3): Adjust.
20658 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
20659 power5-lmul, power5-imul, power5-imul3): Adjust.
20660 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
20661 power6-lmul, power6-imul, power6-imul3): Adjust.
20662 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
20663 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
20665 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
20666 rs64a-lmul): Adjust.
20667 * config/rs6000/titan.md (titan_imul): Adjust.
20669 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20671 * config/rs6000/rs6000.md (type): Add new value "halfmul".
20672 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
20673 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
20674 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
20675 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
20676 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
20677 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
20678 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
20679 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
20680 * config/rs6000/titan.md: Delete nonsensical comment.
20681 (titan_imul): Add type imul3.
20682 (titan_mulhw): Remove type imul3; add type halfmul.
20684 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20686 * config/rs6000/rs6000.md (type): Reorder, reformat.
20688 2014-05-23 Martin Jambor <mjambor@suse.cz>
20690 PR tree-optimization/53787
20691 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
20692 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
20693 analysis_done, update all uses.
20694 * ipa-prop.c: Include domwalk.h
20695 (param_analysis_info): Removed.
20696 (param_aa_status): New type.
20697 (ipa_bb_info): Likewise.
20698 (func_body_info): Likewise.
20699 (ipa_get_bb_info): New function.
20700 (aa_overwalked): Likewise.
20701 (find_dominating_aa_status): Likewise.
20702 (parm_bb_aa_status_for_bb): Likewise.
20703 (parm_preserved_before_stmt_p): Changed to use new param AA info.
20704 (load_from_unmodified_param): Accept func_body_info as a parameter
20705 instead of parms_ainfo.
20706 (parm_ref_data_preserved_p): Changed to use new param AA info.
20707 (parm_ref_data_pass_through_p): Likewise.
20708 (ipa_load_from_parm_agg_1): Likewise. Update callers.
20709 (compute_complex_assign_jump_func): Changed to use new param AA info.
20710 (compute_complex_ancestor_jump_func): Likewise.
20711 (ipa_compute_jump_functions_for_edge): Likewise.
20712 (ipa_compute_jump_functions): Removed.
20713 (ipa_compute_jump_functions_for_bb): New function.
20714 (ipa_analyze_indirect_call_uses): Likewise, moved variable
20716 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
20717 and info, moved variable declarations down.
20718 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
20720 (ipa_analyze_stmt_uses): Likewise.
20721 (ipa_analyze_params_uses): Removed.
20722 (ipa_analyze_params_uses_in_bb): New function.
20723 (ipa_analyze_controlled_uses): Likewise.
20724 (free_ipa_bb_info): Likewise.
20725 (analysis_dom_walker): New class.
20726 (ipa_analyze_node): Handle node-specific forbidden analysis,
20727 initialize and free func_body_info, use dominator walker.
20728 (ipcp_modif_dom_walker): New class.
20729 (ipcp_transform_function): Create and free func_body_info, use
20730 ipcp_modif_dom_walker, moved a lot of functionality there.
20732 2014-05-23 Marek Polacek <polacek@redhat.com>
20733 Jakub Jelinek <jakub@redhat.com>
20735 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
20736 * gcc.c (sanitize_spec_function): Likewise.
20737 * convert.c (convert_to_integer): Include "ubsan.h". Add
20738 floating-point to integer instrumentation.
20739 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
20740 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
20741 SANITIZE_NONDEFAULT.
20742 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
20743 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
20744 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
20745 * ubsan.c: Include "realmpfr.h" and "dfp.h".
20746 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
20747 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
20748 float/double/long double.
20749 (ubsan_instrument_float_cast): New function.
20750 * ubsan.h (ubsan_instrument_float_cast): Declare.
20752 2014-05-23 Jiong Wang <jiong.wang@arm.com>
20754 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
20756 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
20757 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
20758 Adjust for tailcalling through registers.
20759 * config/aarch64/aarch64.h (enum reg_class): New caller save
20761 (REG_CLASS_NAMES): Likewise.
20762 (REG_CLASS_CONTENTS): Likewise.
20763 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
20764 Allow tailcalling without decls.
20766 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
20768 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
20769 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
20771 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
20772 gsi, and variables v_* to v*.
20774 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
20776 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
20778 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
20780 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
20781 * omp-low.c: Update accordingly.
20783 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
20784 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
20785 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
20786 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
20787 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
20788 GF_OMP_TARGET_KIND_UPDATE.
20790 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
20791 Explicitly enumerate the expected region types.
20793 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
20796 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
20797 documentation; the old documentation didn't clearly state the
20798 constraints on the contents of the pointed-to storage.
20800 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20802 Fix bootstrap error on ia64
20803 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
20804 Return default value.
20806 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
20808 PR tree-optimization/54733
20809 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
20811 (find_bswap_or_nop_load): New.
20812 (find_bswap_1): Renamed to ...
20813 (find_bswap_or_nop_1): This. Also add support for memory source.
20814 (find_bswap): Renamed to ...
20815 (find_bswap_or_nop): This. Also add support for memory source and
20816 detection of bitwise operations equivalent to load in target
20818 (execute_optimize_bswap): Likewise. Also move its leading comment back
20819 in place and split statement transformation into ...
20820 (bswap_replace): This.
20822 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
20824 PR rtl-optimization/61215
20825 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
20826 simplify_gen_subreg until final substitution.
20828 2014-05-23 Alan Modra <amodra@gmail.com>
20831 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
20832 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
20833 Use "Y" constraint rather than "m".
20835 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
20837 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
20839 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
20840 New function declaration.
20841 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
20842 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
20843 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
20844 (aarch64_init_builtins) : Initialize builtins
20845 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
20846 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
20847 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
20848 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
20849 and __builtins_aarch64_set_fpsr.
20850 (aarch64_atomic_assign_expand_fenv): New function.
20851 * config/aarch64/aarch64.md (set_fpcr): New pattern.
20852 (get_fpcr) : Likewise.
20853 (set_fpsr) : Likewise.
20854 (get_fpsr) : Likewise.
20855 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
20856 and UNSPECV_SET_FPSR.
20857 * doc/extend.texi (AARCH64 Built-in Functions) : Document
20858 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
20859 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
20861 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
20863 PR rtl-optimization/60969
20864 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
20865 constraints. Set up mem cost for NO_REGS case.
20867 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
20869 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
20871 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
20873 * config/darwin.c: Include "lto-section-names.h".
20874 (LTO_SEGMENT_NAME): Don't define.
20875 * config/i386/winnt.c: Include "lto-section-names.h".
20876 * lto-streamer.c: Include "lto-section-names.h".
20877 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
20878 * lto-wrapper.c: Include "lto-section-names.h".
20879 (LTO_SECTION_NAME_PREFIX): Don't define.
20880 * lto-section-names.h: New file.
20881 * cgraphunit.c: Include "lto-section-names.h".
20883 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
20885 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
20887 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
20890 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
20892 2014-05-22 Nick Clifton <nickc@redhat.com>
20894 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
20896 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
20898 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
20899 -> (T)A transformation to integer types.
20901 2014-05-22 Teresa Johnson <tejohnson@google.com>
20903 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
20904 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
20905 (gcov_rewrite): Use gcov_nonruntime_assert.
20906 (gcov_open): Ditto.
20907 (gcov_write_words): Ditto.
20908 (gcov_write_length): Ditto.
20909 (gcov_read_words): Use gcov_nonruntime_assert, and remove
20910 gcc_assert from IN_LIBGCOV code.
20911 (gcov_read_summary): Use gcov_error to flag profile corruption.
20912 (gcov_sync): Use gcov_nonruntime_assert.
20913 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
20914 (gcov_histo_index): Use gcov_nonruntime_assert.
20915 (static void gcov_histogram_merge): Ditto.
20916 (compute_working_sets): Ditto.
20917 * gcov-io.h (gcov_nonruntime_assert): Define.
20918 (gcov_error): Define for !IN_LIBGCOV
20920 2014-05-22 Richard Biener <rguenther@suse.de>
20922 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
20923 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
20924 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
20925 and deallocation site.
20926 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20927 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
20928 passing through the incoming points-to set.
20929 (handle_lhs_call): Use flags argument instead of recomputing it.
20930 (find_func_aliases_for_call): Call handle_lhs_call with proper
20933 2014-05-22 Jakub Jelinek <jakub@redhat.com>
20935 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
20936 all padding bits in REAL_VALUE_TYPE are cleared.
20938 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20940 Cleanup and improve multipass_dfa_lookahead_guard
20941 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
20942 (core2i7_first_cycle_multipass_begin,)
20943 (core2i7_first_cycle_multipass_issue,)
20944 (core2i7_first_cycle_multipass_backtrack): Update signature.
20945 * config/ia64/ia64.c
20946 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
20947 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
20948 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
20950 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
20951 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
20953 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
20955 * doc/tm.texi: Regenerate.
20957 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
20958 * haifa-sched.c (ready_try): Make signed to allow negative values.
20959 (rebug_ready_list_1): Update.
20960 (choose_ready): Simplify.
20961 (sched_extend_ready_list): Update.
20963 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20965 Remove IA64 speculation tweaking flags
20966 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
20967 speculation tuning flags.
20968 (msched-prefer-non-data-spec-insns,)
20969 (msched-prefer-non-control-spec-insns): Obsolete options.
20970 * haifa-sched.c (choose_ready): Remove handling of
20971 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
20972 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
20973 and PREFER_NON_DATA_SPEC.
20974 * sel-sched.c (process_spec_exprs): Remove handling of
20975 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
20977 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20979 Improve scheduling debug output
20980 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
20981 (advance_one_cycle): Update.
20982 (schedule_insn, queue_to_ready): Add debug printouts.
20983 (debug_ready_list_1): New static function.
20984 (debug_ready_list): Update.
20985 (max_issue): Add debug printouts.
20986 (dump_insn_stream): New static function.
20987 (schedule_block): Use it. Also better indent printouts.
20989 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20991 Fix sched_insn debug counter
20992 * haifa-sched.c (schedule_insn): Update.
20993 (struct haifa_saved_data): Add nonscheduled_insns_begin.
20994 (save_backtrack_point, restore_backtrack_point): Update.
20995 (first_nonscheduled_insn): New static function.
20996 (queue_to_ready, choose_ready): Use it.
20997 (schedule_block): Init nonscheduled_insns_begin.
20998 (sched_emit_insn): Update.
21001 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
21003 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
21005 (aarch64_secondary_reload) : LikeWise.
21006 (aarch64_class_max_nregs) : Remove CORE_REGS.
21007 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
21008 (REG_CLASS_NAMES) : Likewise.
21009 (REG_CLASS_CONTENTS) : LikeWise.
21010 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
21012 2014-05-21 Guozhi Wei <carrot@google.com>
21015 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
21017 (vqdmulhq_n_s16): Likewise.
21019 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
21021 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
21023 2014-05-21 Marek Polacek <polacek@redhat.com>
21026 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
21028 2014-05-21 Martin Jambor <mjambor@suse.cz>
21030 * doc/invoke.texi (Optimize Options): Document parameters
21031 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
21032 ipa-cp-array-index-hint-bonus.
21034 2014-05-21 Mark Wielaard <mjw@redhat.com>
21037 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
21038 version >= 3 or not strict DWARF.
21039 * langhooks.h (struct lang_hooks_for_types): Add
21040 enum_underlying_base_type.
21041 * langhooks.c (lhd_enum_underlying_base_type): New function.
21042 * gcc/langhooks.h (struct lang_hooks_for_types): Add
21043 enum_underlying_base_type.
21044 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
21045 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
21046 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
21048 2014-05-21 Richard Biener <rguenther@suse.de>
21050 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
21052 2014-05-21 John Marino <gnugcc@marino.st>
21054 * config.gcc (*-*-dragonfly*): New target.
21055 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
21056 * configure: Regenerate.
21057 * config/dragonfly-stdint.h: New.
21058 * config/dragonfly.h: New.
21059 * config/dragonfly.opt: New.
21060 * config/i386/dragonfly.h: New.
21061 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
21063 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21065 * tree.def (VOID_CST): New.
21066 * tree-core.h (TI_VOID): New.
21067 * tree.h (void_node): New.
21068 * tree.c (tree_node_structure_for_code, tree_code_size)
21069 (iterative_hash_expr): Handle VOID_CST.
21070 (build_common_tree_nodes): Initialize void_node.
21072 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
21074 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
21076 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
21078 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
21081 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
21082 flag_reorder_blocks_and_partition.
21083 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
21085 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
21088 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
21090 (*addc_r_t): Add new insn_and_split.
21092 2014-05-21 Jakub Jelinek <jakub@redhat.com>
21094 PR middle-end/61252
21095 * omp-low.c (handle_simd_reference): New function.
21096 (lower_rec_input_clauses): Use it. Defer adding reference
21097 initialization even for reduction without placeholder if in simd,
21098 handle it properly later on.
21100 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
21102 PR tree-optimization/60899
21103 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
21104 assume all static symbols will have definition wile parsing and
21105 check the do have definition later in compilation; check that
21106 variable referring symbol will be output before concluding that
21107 reference is safe; be conservative for referring local statics;
21108 be more precise about when comdat is output in other partition.
21110 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
21113 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
21115 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
21116 (ipa_inline): Loop inline_to_all_callers until no more aliases
21119 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
21121 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
21122 set writeonly flag only for vars actually written to.
21124 2014-05-20 Dehao Chen <dehao@google.com>
21126 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
21127 and callee count to get clone count.
21128 * tree-inline.c (expand_call_inline): Use callee count instead of bb
21129 count in copy_body.
21131 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
21133 PR rtl-optimization/61243
21134 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
21136 2014-05-20 Xinliang David Li <davidxl@google.com>
21138 * cgraphunit.c (walk_polymorphic_call_targets): Add
21139 dbgcnt and fopt-info support.
21140 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
21141 * ipa-devirt.c (ipa_devirt): Ditto.
21142 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
21143 * ipa.c (walk_polymorphic_call_targets): Ditto.
21144 * gimple-fold.c (fold_gimple_assign): Ditto.
21145 (gimple_fold_call): Ditto.
21146 * dbgcnt.def: New counter.
21148 2014-05-20 DJ Delorie <dj@redhat.com>
21150 * config/msp430/msp430.md (split): Don't allow subregs when
21151 splitting SImode adds.
21152 (andneghi): Fix subtraction logic.
21153 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
21155 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
21157 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
21159 * except.c (switch_to_exception_section, resolve_unique_section,
21160 get_named_text_section, default_function_rodata_section,
21161 align_variable, get_block_for_decl, default_section_type_flags):
21162 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
21163 * symtab.c (symtab_add_to_same_comdat_group,
21164 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
21165 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
21167 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
21168 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
21169 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
21170 (c6x_function_in_section_p): Likewise.
21171 * config/darwin.c (machopic_select_section): Likewise.
21172 * config/arm/arm.c (arm_function_in_section_p): Likewise.
21173 * config/mips/mips.c (mips_function_rodata_section): Likewise.
21174 * config/mep/mep.c (mep_select_section): LIkewise.
21175 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
21177 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
21179 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
21180 EH region of calls to pure functions that can throw an exception.
21181 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
21182 (copy_reference_ops_from_call): Also copy the EH region of the call if
21183 it can throw an exception.
21185 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21187 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
21188 nested VEC_SELECTs that are inverses of each other.
21190 2014-05-20 Richard Biener <rguenther@suse.de>
21192 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
21193 (extract_and_process_scc_for_name): not here.
21194 (cond_dom_walker::before_dom_children): Only process
21195 stmts that end the BB in interesting ways.
21196 (run_scc_vn): Mark param uses as visited.
21198 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21200 * config/arm/arm.md (arith_shiftsi): Do not predicate for
21203 2014-05-20 Nick Clifton <nickc@redhat.com>
21205 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
21206 (msp430_gimplify_va_arg_expr): New function.
21207 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
21209 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
21210 operand 0 in order to prevent confusion about the number of
21211 registers involved.
21213 2014-05-20 Richard Biener <rguenther@suse.de>
21215 PR tree-optimization/61221
21216 * tree-ssa-pre.c (el_to_update): Remove.
21217 (eliminate_dom_walker::before_dom_children): Handle released
21218 VDEFs by value-numbering them to the associated VUSE. Update
21219 stmt immediately for substituted call address.
21220 (eliminate): Remove delayed stmt updating code.
21221 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
21222 possibly late re-numbered vuses.
21223 (vn_reference_lookup_2): Adjust.
21224 (vn_reference_lookup_pieces): Likewise.
21225 (vn_reference_lookup): Likewise.
21227 2014-05-20 Richard Biener <rguenther@suse.de>
21229 * config.gcc: Remove need_64bit_hwint.
21230 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
21231 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
21233 * config.in: Regenerate.
21234 * configure: Likewise.
21236 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
21238 * doc/extend.texi: Create Label Attributes section,
21239 move all label attributes into it and reference it.
21241 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
21243 * arm.c (thumb1_reorg): When scanning backwards skip anything
21244 that's not a proper insn.
21246 2014-05-19 Richard Biener <rguenther@suse.de>
21248 PR tree-optimization/61221
21249 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21250 Do nothing for unreachable blocks.
21251 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
21252 Improve unreachability detection.
21254 2014-05-19 Richard Biener <rguenther@suse.de>
21256 PR tree-optimization/61209
21257 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
21259 2014-05-19 Nick Clifton <nickc@redhat.com>
21261 * except.c (init_eh): Fix computation of builtin setjmp buffer
21262 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
21264 2014-05-19 Richard Biener <rguenther@suse.de>
21266 PR tree-optimization/61184
21267 * tree-vrp.c (is_negative_overflow_infinity): Use
21268 TREE_OVERFLOW_P and do that check first.
21269 (is_positive_overflow_infinity): Likewise.
21270 (is_overflow_infinity): Likewise.
21271 (vrp_operand_equal_p): Properly treat operands with
21272 differing overflow as not equal.
21274 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
21276 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
21277 shift simplification where it was intended.
21279 2014-05-19 Christian Bruel <christian.bruel@st.com>
21282 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
21284 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
21287 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
21290 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
21292 * reg-notes.def (CROSSING_JUMP): Likewise.
21293 * rtl.h (rtx_def): Update comment for jump flag.
21294 (CROSSING_JUMP_P): Define.
21295 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
21296 of a REG_CROSSING_JUMP note.
21297 * cfghooks.c (tidy_fallthru_edges): Likewise.
21298 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
21299 * emit-rtl.c (try_split): Likewise.
21300 * haifa-sched.c (sched_create_recovery_edges): Likewise.
21301 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
21302 * jump.c (redirect_jump_2): Likewise.
21303 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
21304 (relax_delay_slots): Likewise.
21305 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
21306 (bbit_di): Likewise.
21307 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
21308 * config/sh/sh.md (jump_compact): Likewise.
21309 * bb-reorder.c (rotate_loop): Likewise.
21310 (pass_duplicate_computed_gotos::execute): Likewise.
21311 (add_reg_crossing_jump_notes): Rename to...
21312 (update_crossing_jump_flags): ...this.
21313 (pass_partition_blocks::execute): Update accordingly.
21315 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
21317 * tree.h: Remove extraneous template <>.
21319 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
21321 * ipa.c (symtab_remove_unreachable_nodes): Remove
21322 symbol from comdat group if its body was eliminated.
21323 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
21324 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
21325 (symtab_unregister_node): ... this one.
21326 (verify_symtab_base): More strict checking of comdats.
21327 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
21329 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
21331 * tree-pass.h (make_pass_ipa_comdats): New pass.
21332 * timevar.def (TV_IPA_COMDATS): New timevar.
21333 * passes.def (pass_ipa_comdats): Add.
21334 * Makefile.in (OBJS): Add ipa-comdats.o
21335 * ipa-comdats.c: New file.
21337 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
21339 * ipa.c (update_visibility_by_resolution_info): New function.
21340 (function_and_variable_visibility): Use it.
21342 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
21344 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
21346 (FOR_EACH_DEFINED_SYMBOL): New macro.
21347 (varpool_first_static_initializer, varpool_next_static_initializer,
21348 varpool_first_defined_variable, varpool_next_defined_variable):
21350 (symtab_in_same_comdat_p): Correctly deal with inline functions.
21352 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
21354 * ggc-page.c (ggc_handle_finalizers): Add comment.
21356 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
21358 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
21359 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
21360 (ggc_internal_cleared_alloc): Likewise.
21361 * ggc-page.c (finalizer): New class.
21362 (vec_finalizer): Likewise.
21363 (globals::finalizers): New member.
21364 (globals::vec_finalizers): Likewise.
21365 (ggc_internal_alloc): Record the finalizer if any for the block being
21367 (ggc_handle_finalizers): New function.
21368 (ggc_collect): Call ggc_handle_finalizers.
21369 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
21371 (ggc_internal_cleared_alloc): Likewise.
21372 (finalize): New function.
21373 (need_finalization_p): Likewise.
21374 (ggc_alloc): Install the type's destructor as the finalizer if it
21375 might do something.
21376 (ggc_cleared_alloc): Likewise.
21377 (ggc_vec_alloc): Likewise.
21378 (ggc_cleared_vec_alloc): Likewise.
21380 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
21382 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
21384 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
21386 * alias.c (record_alias_subset): Adjust.
21387 * bitmap.c (bitmap_element_allocate): Likewise.
21388 (bitmap_gc_alloc_stat): Likewise.
21389 * cfg.c (init_flow): Likewise.
21390 (alloc_block): Likewise.
21391 (unchecked_make_edge): Likewise.
21392 * cfgloop.c (alloc_loop): Likewise.
21393 (flow_loops_find): Likewise.
21394 (rescan_loop_exit): Likewise.
21395 * cfgrtl.c (init_rtl_bb_info): Likewise.
21396 * cgraph.c (insert_new_cgraph_node_version): Likewise.
21397 (cgraph_allocate_node): Likewise.
21398 (cgraph_create_edge_1): Likewise.
21399 (cgraph_allocate_init_indirect_info): Likewise.
21400 * cgraphclones.c (cgraph_clone_edge): Likewise.
21401 * cgraphunit.c (add_asm_node): Likewise.
21402 (init_lowered_empty_function): Likewise.
21403 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
21404 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
21405 (alpha_use_linkage): Likewise.
21406 * config/arc/arc.c (arc_init_machine_status): Likewise.
21407 * config/arm/arm.c (arm_init_machine_status): Likewise.
21408 * config/avr/avr.c (avr_init_machine_status): Likewise.
21409 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
21410 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
21411 * config/cris/cris.c (cris_init_machine_status): Likewise.
21412 * config/darwin.c (machopic_indirection_name): Likewise.
21413 (darwin_build_constant_cfstring): Likewise.
21414 (darwin_enter_string_into_cfstring_table): Likewise.
21415 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
21416 * config/frv/frv.c (frv_init_machine_status): Likewise.
21417 * config/i386/i386.c (get_dllimport_decl): Likewise.
21418 (ix86_init_machine_status): Likewise.
21419 (assign_386_stack_local): Likewise.
21420 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
21421 (i386_pe_maybe_record_exported_symbol): Likewise.
21422 (i386_pe_record_stub): Likewise.
21423 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
21424 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
21425 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
21426 (m32c_note_pragma_address): Likewise.
21427 * config/mep/mep.c (mep_init_machine_status): Likewise.
21428 (mep_note_pragma_flag): Likewise.
21429 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
21430 (mips16_local_alias): Likewise.
21431 (mips_init_machine_status): Likewise.
21432 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
21433 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
21434 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
21435 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
21436 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
21437 * config/pa/pa.c (pa_init_machine_status): Likewise.
21438 (pa_get_deferred_plabel): Likewise.
21439 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
21440 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
21441 (rs6000_init_machine_status): Likewise.
21442 (output_toc): Likewise.
21443 * config/s390/s390.c (s390_init_machine_status): Likewise.
21444 * config/score/score.c (score_output_external): Likewise.
21445 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
21446 * config/spu/spu.c (spu_init_machine_status): Likewise.
21447 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
21448 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
21449 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
21450 * coverage.c (coverage_end_function): Likewise.
21451 * dbxout.c (dbxout_init): Likewise.
21452 * doc/gty.texi: Don't mention variable_size attribute.
21453 * dwarf2cfi.c (new_cfi): Adjust.
21454 (new_cfi_row): Likewise.
21455 (copy_cfi_row): Likewise.
21456 (create_cie_data): Likewise.
21457 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
21458 (new_loc_descr): Likewise.
21459 (find_AT_string_in_table): Likewise.
21460 (add_addr_table_entry): Likewise.
21461 (new_die): Likewise.
21462 (add_var_loc_to_decl): Likewise.
21463 (clone_die): Likewise.
21464 (clone_as_declaration): Likewise.
21465 (break_out_comdat_types): Likewise.
21466 (new_loc_list): Likewise.
21467 (add_loc_descr_to_each): Likewise.
21468 (add_location_or_const_value_attribute): Likewise.
21469 (add_linkage_name): Likewise.
21470 (lookup_filename): Likewise.
21471 (dwarf2out_var_location): Likewise.
21472 (new_line_info_table): Likewise.
21473 (dwarf2out_init): Likewise.
21474 (mem_loc_descriptor): Likewise.
21475 (loc_descriptor): Likewise.
21476 (add_const_value_attribute): Likewise.
21477 (tree_add_const_value_attribute): Likewise.
21478 (comp_dir_string): Likewise.
21479 (dwarf2out_vms_debug_main_pointer): Likewise.
21480 (string_cst_pool_decl): Likewise.
21481 * emit-rtl.c (set_mem_attrs): Likewise.
21482 (get_reg_attrs): Likewise.
21483 (start_sequence): Likewise.
21484 (init_emit): Likewise.
21485 (init_emit_regs): Likewise.
21486 * except.c (init_eh_for_function): Likewise.
21487 (gen_eh_region): Likewise.
21488 (gen_eh_region_catch): Likewise.
21489 (gen_eh_landing_pad): Likewise.
21490 (add_call_site): Likewise.
21491 * function.c (add_frame_space): Likewise.
21492 (insert_temp_slot_address): Likewise.
21493 (assign_stack_temp_for_type): Likewise.
21494 (get_hard_reg_initial_val): Likewise.
21495 (allocate_struct_function): Likewise.
21496 (prepare_function_start): Likewise.
21497 (types_used_by_var_decl_insert): Likewise.
21498 * gengtype.c (variable_size_p): Remove function.
21499 (enum alloc_quantity): Remove enum.
21500 (write_typed_alloc_def): Remove function.
21501 (write_typed_struct_alloc_def): Likewise.
21502 (write_typed_typedef_alloc_def): Likewise.
21503 (write_typed_alloc_defns): Likewise.
21505 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
21506 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
21507 * ggc.h (ggc_alloc): new function.
21508 (ggc_cleared_alloc): Likewise.
21509 (ggc_vec_alloc): Template on type of vector element, and remove
21510 element size argument.
21511 (ggc_cleared_vec_alloc): Likewise.
21512 * gimple.c (gimple_build_omp_for): Adjust.
21513 (gimple_copy): Likewise.
21514 * ipa-cp.c (get_replacement_map): Likewise.
21515 (find_aggregate_values_for_callers_subset): Likewise.
21516 (known_aggs_to_agg_replacement_list): Likewise.
21517 * ipa-devirt.c (get_odr_type): Likewise.
21518 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
21519 (read_agg_replacement_chain): Likewise.
21520 * loop-iv.c (get_simple_loop_desc): Likewise.
21521 * lto-cgraph.c (input_node_opt_summary): Likewise.
21522 * lto-section-in.c (lto_new_in_decl_state): Likewise.
21523 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
21524 (input_eh_region): Likewise.
21525 (input_eh_lp): Likewise.
21526 (input_cfg): Likewise.
21527 * optabs.c (set_optab_libfunc): Likewise.
21528 (init_tree_optimization_optabs): Likewise.
21529 (set_conv_libfunc): Likewise.
21530 * passes.c (do_per_function_toporder): Likewise.
21531 * rtl.h: Don't use variable_size gty attribute.
21532 * sese.c (if_region_set_false_region): Adjust.
21533 * stringpool.c (gt_pch_save_stringpool): Likewise.
21534 * target-globals.c (save_target_globals): Likewise.
21535 * toplev.c (general_init): Likewise.
21536 * trans-mem.c (record_tm_replacement): Likewise.
21537 (split_bb_make_tm_edge): Likewise.
21538 * tree-cfg.c (move_sese_region_to_fn): Likewise.
21539 * tree-data-ref.h (lambda_vector_new): Likewise.
21540 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
21541 * tree-iterator.c (tsi_link_before): Likewise.
21542 (tsi_link_after): Likewise.
21543 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
21544 * tree-ssa-loop-niter.c (record_estimate): Likewise.
21545 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
21546 * tree-ssa-operands.h: Don't use variable_size gty attribute.
21547 * tree-ssa.c (init_tree_ssa): Adjust.
21548 * tree-ssanames.c (set_range_info): Likewise.
21549 (get_ptr_info): Likewise.
21550 (duplicate_ssa_name_ptr_info): Likewise.
21551 (duplicate_ssa_name_range_info): Likewise.
21552 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
21553 (unpack_ts_fixed_cst_value_fields): Likewise.
21554 * tree.c (build_fixed): Likewise.
21555 (build_real): Likewise.
21556 (build_string): Likewise.
21557 (decl_priority_info): Likewise.
21558 (decl_debug_expr_insert): Likewise.
21559 (decl_value_expr_insert): Likewise.
21560 (decl_debug_args_insert): Likewise.
21561 (type_hash_add): Likewise.
21562 (build_omp_clause): Likewise.
21563 * ubsan.c (decl_for_type_insert): Likewise.
21564 * varasm.c (get_unnamed_section): Likewise.
21565 (get_noswitch_section): Likewise.
21566 (get_section): Likewise.
21567 (get_block_for_section): Likewise.
21568 (create_block_symbol): Likewise.
21569 (build_constant_desc): Likewise.
21570 (create_constant_pool): Likewise.
21571 (force_const_mem): Likewise.
21572 (record_tm_clone_pair): Likewise.
21573 * varpool.c (varpool_create_empty_node): Likewise.
21575 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
21577 * dwarf2out.c (tree_add_const_value_attribute): Call
21578 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
21579 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
21580 instead of ggc_internal_<x>alloc_stat.
21581 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
21582 (ggc_realloc): Likewise.
21583 * ggc-none.c (ggc_internal_alloc): Likewise.
21584 (ggc_internal_cleared_alloc): Likewise.
21585 * ggc-page.c: Likewise.
21586 * ggc.h (ggc_internal_alloc_stat): Likewise.
21587 (ggc_internal_alloc): Remove macro.
21588 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
21589 (ggc_internal_cleared_alloc): Remove macro.
21590 (GGC_RESIZEVEC): Adjust.
21591 (ggc_resizevar): Remove macro.
21592 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
21593 (ggc_internal_cleared_vec_alloc_stat): Likewise.
21594 (ggc_internal_vec_cleared_alloc): Remove macro.
21595 (ggc_alloc_atomic_stat): Drop _stat suffix.
21596 (ggc_alloc_atomic): Remove macro.
21597 (ggc_alloc_cleared_atomic): Remove macro.
21598 (ggc_alloc_string_stat): Drop _stat suffix.
21599 (ggc_alloc_string): Remove macro.
21600 (ggc_alloc_rtx_def_stat): Adjust.
21601 (ggc_alloc_tree_node_stat): Likewise.
21602 (ggc_alloc_cleared_tree_node_stat): Likewise.
21603 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
21604 (ggc_alloc_cleared_simd_clone_stat): Likewise.
21605 * gimple.c (gimple_build_omp_for): Likewise.
21606 (gimple_copy): Likewise.
21607 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
21608 * toplev.c (realloc_for_line_map): Adjust.
21609 * tree-data-ref.h (lambda_vector_new): Likewise.
21610 * tree-phinodes.c (allocate_phi_node): Likewise.
21611 * tree.c (grow_tree_vec_stat): Likewise.
21612 * vec.h (va_gc::reserve): Adjust.
21614 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
21616 * config/microblaze/microblaze.c (break_handler): New Declaration.
21617 (microblaze_break_function_p,microblaze_is_break_handler): New.
21618 (compute_frame_size): Use microblaze_break_function_p.
21619 Add the test of break_handler.
21620 (microblaze_function_prologue) : Add the test of variable
21621 break_handler. Check the fnname by BREAK_HANDLER_NAME.
21622 (microblaze_function_epilogue) : Add the test of break_handler.
21623 (microblaze_globalize_label) : Add the test of break_handler.
21624 Check the name by BREAK_HANDLER_NAME.
21626 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
21628 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
21629 microblaze_is_break_handler test.
21630 (call_internal1,call_value_intern): Use microblaze_break_function_p.
21631 Use SYMBOL_REF_DECL.
21633 * config/microblaze/microblaze-protos.h
21634 (microblaze_break_function_p,microblaze_is_break_handler):
21637 * doc/extend.texi (MicroBlaze break_handler Functions): Document
21638 new MicroBlaze break_handler functions.
21640 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
21642 * doc/extend.texi (Size of an asm): Move node text according
21643 to its @menu entry position.
21645 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
21647 PR tree-optimization/61140
21648 PR tree-optimization/61150
21649 PR tree-optimization/61197
21650 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
21652 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
21654 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
21656 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
21658 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
21659 __SIZEOF_INT128__ is defined.
21661 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
21663 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
21664 (rs6000_delegitimize_address): Use it.
21666 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
21668 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
21669 inplace argument. Store the new address in the original MEM when true.
21670 * emit-rtl.c (change_address_1): Likewise.
21671 (adjust_address_1, adjust_automodify_address_1, offset_address):
21672 Update accordingly.
21673 * rtl.h (plus_constant): Add an inplace argument.
21674 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
21675 when true. Avoid generating (plus X (const_int 0)).
21676 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
21677 in-place. Pass true to plus_constant.
21678 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
21680 2014-05-16 Dehao Chen <dehao@google.com>
21682 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
21684 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
21687 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
21689 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
21691 2014-05-16 Dehao Chen <dehao@google.com>
21693 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
21694 optimize_function_for_size_p.
21695 * regs.h (REG_FREQ_FROM_BB): Likewise.
21697 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
21700 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
21701 negt_reg_operand cases.
21702 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
21704 * config/sh/predicates.md (cbranch_treg_value): Simplify.
21706 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
21708 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
21711 2014-05-16 David Malcolm <dmalcolm@redhat.com>
21714 2014-04-29 David Malcolm <dmalcolm@redhat.com>
21716 * tree-cfg.c (dump_function_to_file): Dump the return type of
21717 functions, in a line to itself before the function body, mimicking
21718 the layout of a C function.
21720 2014-05-16 Dehao Chen <dehao@google.com>
21722 * cfghooks.c (make_forwarder_block): Use direct computation to
21723 get fall-through edge's count and frequency.
21725 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
21727 * config/arc/arc.c (arc_init): Fix typo in error message.
21728 * config/i386/i386.c (ix86_expand_builtin): Likewise.
21729 (split_stack_prologue_scratch_regno): Likewise.
21730 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
21731 word from error message.
21733 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
21735 * ira-costs.c: Fix typo in comment.
21737 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
21739 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
21741 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
21743 * varpool.c (dump_varpool_node): Dump write-only flag.
21744 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
21746 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
21747 write-only variables.
21748 * ipa.c (process_references): New function.
21749 (set_readonly_bit): New function.
21750 (set_writeonly_bit): New function.
21751 (clear_addressable_bit): New function.
21752 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
21753 fix handling of aliases.
21754 * cgraph.h (struct varpool_node): Add writeonly flag.
21756 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
21758 PR rtl-optimization/60969
21759 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
21760 Calculate costs for this case.
21762 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
21764 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
21765 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
21767 2014-05-16 Richard Biener <rguenther@suse.de>
21769 PR tree-optimization/61194
21770 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
21771 bool patterns ending in a COND_EXPR.
21773 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21775 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
21777 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21779 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
21780 where we were unable to cost an RTX.
21782 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21784 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
21787 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21788 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21790 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
21792 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21793 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21795 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
21796 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
21798 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21799 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21801 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
21804 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21805 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21807 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
21810 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21811 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21813 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
21814 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
21816 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21817 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21819 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
21820 rotates and shifts.
21822 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21823 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21825 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
21826 ZERO_EXTEND and SIGN_EXTEND better.
21828 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21829 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21831 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
21832 logical operations.
21834 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21835 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21837 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
21838 costs when costing loads and stores to memory.
21840 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21841 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
21843 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
21846 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21848 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
21850 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21851 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21853 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
21855 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
21857 (aarch64_rtx_mult_cost): New.
21858 (aarch64_rtx_costs): Use it, refactor as appropriate.
21860 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21861 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21863 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
21864 emit instructions, return number of instructions which would
21866 (aarch64_add_constant): Update call to aarch64_build_constant.
21867 (aarch64_output_mi_thunk): Likewise.
21868 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
21871 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21873 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
21874 (TARGET_RTX_COSTS): Call it.
21876 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21878 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
21879 (cortexa57_vector_cost): Likewise.
21880 (cortexa57_tunings): Use them.
21882 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21884 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
21885 (cpu_addrcost_table): Use it.
21886 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
21887 (aarch64_address_cost): Rewrite using aarch64_classify_address,
21890 2014-05-16 Richard Biener <rguenther@suse.de>
21892 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
21893 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
21894 (visit_phi): Ignore edges marked as not executable.
21895 (class cond_dom_walker): New.
21896 (cond_dom_walker::before_dom_children): Value-number
21897 control statements and mark successor edges as not
21898 executable if possible.
21899 (run_scc_vn): First walk all control statements in
21900 dominator order, marking edges as not executable.
21901 * tree-inline.c (copy_edges_for_bb): Be not confused
21902 about random edge flags.
21904 2014-05-16 Richard Biener <rguenther@suse.de>
21906 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
21908 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
21911 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
21912 (__TM_simple_begin): Use it.
21913 (__TM_begin): Likewise.
21915 2014-05-15 Martin Jambor <mjambor@suse.cz>
21918 * ipa-prop.c (update_indirect_edges_after_inlining): Check
21919 type_preserved flag when the indirect edge is polymorphic.
21921 2014-05-15 Martin Jambor <mjambor@suse.cz>
21923 PR tree-optimization/61090
21924 * tree-sra.c (sra_modify_expr): Pass the current gsi to
21925 build_ref_for_model.
21927 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21929 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
21930 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
21932 2014-05-15 Jakub Jelinek <jakub@redhat.com>
21934 PR tree-optimization/61158
21935 * fold-const.c (fold_binary_loc): If X is zero-extended and
21936 shiftc >= prec, make sure zerobits is all ones instead of
21937 invoking undefined behavior.
21939 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21941 * regcprop.h: New file.
21942 * regcprop.c (skip_debug_insn_p): New decl.
21943 (replace_oldest_value_reg): Check skip_debug_insn_p.
21944 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
21945 * shrink-wrap.c: Include regcprop.h.
21946 (prepare_shrink_wrap): Call
21947 copyprop_hardreg_forward_bb_without_debug_insn.
21949 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21951 * shrink-wrap.h: Update comment.
21952 * shrink-wrap.c: Update comment.
21953 (next_block_for_reg): Rename to live_edge_for_reg.
21954 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
21955 (move_insn_for_shrink_wrap): Split live_edge.
21956 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
21958 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
21960 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
21962 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
21963 * config/sparc/sparc.md (fptype_ut699): New attribute.
21964 (in_branch_delay): Return false if -mfix-ut699 is specified and
21965 fptype_ut699 is set to single.
21966 (truncdfsf2): Add fptype_ut699 attribute.
21967 (fix_truncdfsi2): Likewise.
21968 (floatsisf2): Change fptype attribute.
21969 (fix_truncsfsi2): Likewise.
21970 (negtf2_notv9): Delete.
21971 (negtf2_v9): Likewise.
21972 (negtf2_hq): New instruction.
21973 (negtf2): New instruction and splitter.
21974 (negdf2_notv9): Rewrite.
21975 (abstf2_notv9): Delete.
21976 (abstf2_hq_v9): Likewise.
21977 (abstf2_v9): Likewise.
21978 (abstf2_hq): New instruction.
21979 (abstf2): New instruction and splitter.
21980 (absdf2_notv9): Rewrite.
21982 2014-05-14 Cary Coutant <ccoutant@google.com>
21985 * opts.c (common_handle_option): Don't special-case "-g".
21986 (set_debug_level): Default to at least level 2 with "-g".
21988 2014-05-14 DJ Delorie <dj@redhat.com>
21990 * config/msp430/msp430.c (msp430_builtin): Add
21991 MSP430_BUILTIN_DELAY_CYCLES.
21992 (msp430_init_builtins): Register void __delay_cycles(long long).
21993 (msp430_builtin_decl): Add it.
21994 (cg_magic_constant): New.
21995 (msp430_expand_delay_cycles): New.
21996 (msp430_expand_builtin): Call it.
21997 (msp430_print_operand_raw): Change integer printing from "int" to
21999 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
22000 (delay_cycles_start): New.
22001 (delay_cycles_end): New.
22002 (delay_cycles_32): New.
22003 (delay_cycles_32x): New.
22004 (delay_cycles_16): New.
22005 (delay_cycles_16x): New.
22006 (delay_cycles_2): New.
22007 (delay_cycles_1): New.
22008 * doc/extend.texi: Document __delay_cycles().
22010 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
22012 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
22013 length attribute computation.
22015 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
22018 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
22020 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
22023 * config/sparc/sparc.md: Fix types of low and high in DI constant
22024 splitter. Use gen_int_mode in some other splitters.
22026 2014-05-14 Martin Jambor <mjambor@suse.cz>
22029 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
22031 2014-05-14 James Norris <jnorris@codesourcery.com>
22033 * omp-low.c (expand_parallel_call): Remove shadow variable.
22034 (expand_omp_taskreg): Likewise.
22036 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
22038 * common/config/i386/i386-common.c
22039 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
22040 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
22041 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
22042 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
22043 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
22044 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
22045 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
22046 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
22047 xsavecintrin.h, xsavesintrin.h.
22048 (x86_64-*-*): Ditto.
22049 * config/i386/clflushoptintrin.h: New.
22050 * config/i386/xsavecintrin.h: Ditto.
22051 * config/i386/xsavesintrin.h: Ditto.
22052 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
22053 (bit_XSAVES): Ditto.
22054 (bit_XSAVES): Ditto.
22055 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
22056 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
22058 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22059 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
22060 OPTION_MASK_ISA_XSAVES.
22061 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
22062 -mxsavec, -mxsaves.
22063 (PTA_CLFLUSHOPT) Define.
22064 (PTA_XSAVEC): Ditto.
22065 (PTA_XSAVES): Ditto.
22066 (ix86_option_override_internal): Handle new options.
22067 (ix86_valid_target_attribute_inner_p): Ditto.
22068 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
22069 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
22070 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
22071 (bdesc_special_args): Add __builtin_ia32_xsaves,
22072 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
22073 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
22074 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
22075 (ix86_expand_builtin): Handle new builtins.
22076 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
22077 (TARGET_CLFLUSHOPT_P): Ditto.
22078 (TARGET_XSAVEC): Ditto.
22079 (TARGET_XSAVEC_P): Ditto.
22080 (TARGET_XSAVES): Ditto.
22081 (TARGET_XSAVES_P): Ditto.
22082 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
22083 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
22084 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
22086 (ANY_XRSTOR64): Ditto.
22088 (xrstor): Change into <xrstor>.
22089 (xrstor_rex64): Change into <xrstor>_rex64.
22090 (xrstor64): Change into <xrstor>64
22092 * config/i386/i386.opt (mclflushopt): New.
22095 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
22097 * doc/invoke.texi: Document new options.
22099 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
22101 PR rtl-optimization/60866
22102 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
22103 Default it to -1. Pass it down to init_simplejump_data.
22104 (init_simplejump_data): New parameter old_seqno. Pass it down
22105 to get_seqno_for_a_jump.
22106 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
22107 initializing new jump seqno as a last resort. Add comment.
22108 (sel_redirect_edge_and_branch): Save old seqno of the conditional
22109 jump and pass it down to sel_init_new_insn.
22110 (sel_redirect_edge_and_branch_force): Likewise.
22112 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
22114 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
22115 shifted values to avoid build warning.
22117 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
22119 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
22120 * cfgrtl.c (rtl_merge_blocks): Fix comment.
22121 (cfg_layout_merge_blocks): Likewise.
22122 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
22124 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
22126 PR rtl-optimization/60901
22127 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
22128 bb predecessor belongs to the same scheduling region. Adjust comment.
22130 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
22132 * doc/sourcebuild.texi: (dfp_hw): Document.
22133 (p8vector_hw): Likewise.
22134 (powerpc_eabi_ok): Likewise.
22135 (powerpc_elfv2): Likewise.
22136 (powerpc_htm_ok): Likewise.
22137 (ppc_recip_hw): Likewise.
22138 (vsx_hw): Likewise.
22140 2014-05-13 Cary Coutant <ccoutant@google.com>
22142 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
22144 2014-05-13 David Malcolm <dmalcolm@redhat.com>
22146 * gengtype-parse.c (require3): Eliminate in favor of...
22148 (require_template_declaration): Update to support optional single *
22151 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
22152 (create_user_defined_type): Handle a single level of explicit
22153 pointerness within template arguments.
22154 (struct write_types_data): Add field "kind".
22155 (filter_type_name): Handle "*" character.
22156 (write_user_func_for_structure_ptr): Require a write_types_data
22157 rather than just a prefix string, so that we can look up the kind
22158 of the wtd and use it as an index into wrote_user_func_for_ptr,
22159 ensuring that such functions are written at most once. Support
22160 subclasses by invoking the marking function of the ultimate base class.
22161 (write_user_func_for_structure_body): Require a write_types_data
22162 rather than just a prefix string, so that we can pass this to
22163 write_user_func_for_structure_ptr.
22164 (write_func_for_structure): Likewise.
22165 (ggc_wtd): Add initializer of new "kind" field.
22166 (pch_wtd): Likewise.
22168 * gengtype.h (enum write_types_kinds): New.
22169 (struct type): Add field wrote_user_func_for_ptr to the "s"
22172 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
22174 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
22175 instead of const_binop.
22176 (fold_binary_loc): Likewise.
22178 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
22180 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
22181 calculation to match get_ref_base_and_extent.
22183 2014-05-13 Catherine Moore <clm@codesourcery.com>
22184 Sandra Loosemore <sandra@codesourcery.com>
22186 * configure.ac: Fix assembly for explicit JALR relocation check.
22187 * configure: Regenerate.
22189 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22191 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
22192 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
22193 Remove associated type declarations and initialisations.
22194 (arm_expand_neon_builtin): Likewise.
22195 (neon_emit_pair_result_insn): Delete.
22196 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
22197 * config/arm/neon.md (neon_vtrn<mode>): Delete.
22198 (neon_vzip<mode>): Likewise.
22199 (neon_vuzp<mode>): Likewise.
22201 2014-05-13 Richard Biener <rguenther@suse.de>
22204 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
22205 it needs revisiting whether the call still may be tail-called.
22207 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22209 * rtl.def (SYMBOL_REF): Remove middle "0" field.
22210 * rtl.h (block_symbol): Reduce number of fields to 2.
22211 (rtx_def): Add u2.symbol_ref_flags.
22212 (SYMBOL_REF_FLAGS): Use it.
22213 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
22214 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
22215 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
22216 Lower index of SYMBOL_REF_DATA.
22217 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
22218 Print SYMBOL_REF_FLAGS at the same time.
22219 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
22221 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22223 * rtl.def (VAR_LOCATION): Remove "i" field.
22224 * rtl.h (rtx_def): Add u2.var_location_status.
22225 (PAT_VAR_LOCATION_STATUS): Use it.
22226 (gen_rtx_VAR_LOCATION): Declare.
22227 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
22228 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
22229 * var-tracking.c (emit_note_insn_var_location): Remove casts.
22231 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22233 * rtl.def (scratch): Fix outdated comment and remove "0" field.
22234 * gengtype.c (adjust_field_rtx_def): Update accordingly.
22236 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22238 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
22239 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
22240 * rtl.h (rtx_def): Add insn_uid to u2 field.
22241 (RTX_FLAG_CHECK8): Delete in favor of...
22242 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
22243 (INSN_DELETED_P): Update accordingly.
22244 (INSN_UID): Use u2.insn_uid.
22245 (INSN_CHAIN_CODE_P): Define.
22246 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
22247 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
22248 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
22249 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
22250 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
22251 indices accordingly.
22252 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
22253 Update indices for insn-chain rtxes.
22254 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
22255 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
22256 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
22257 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
22258 * combine.c (try_combine): Likewise.
22259 * ira.c (setup_prohibited_mode_move_regs): Likewise.
22261 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22263 * rtl.def (REG): Remove middle field.
22264 * rtl.h (rtx_def): Add orignal_regno to u2.
22265 (ORIGINAL_REGNO): Use it instead of field 1.
22266 (REG_ATTRS): Lower field index accordingly.
22267 * gengtype.c (adjust_field_rtx_def): Remove handling of
22268 ORIGINAL_REGNO. Move REG_ATTRS index down.
22269 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
22270 code that prints the REGNO.
22272 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22274 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
22277 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22279 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
22281 2014-05-13 Bin Cheng <bin.cheng@arm.com>
22283 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
22284 (alloc_iv): Lower base expressions containing ADDR_EXPR.
22286 2014-05-13 Ian Bolton <ian.bolton@arm.com>
22288 * config/aarch64/aarch64-protos.h
22289 (aarch64_hard_regno_caller_save_mode): New prototype.
22290 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
22292 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
22294 2014-05-13 Christian Bruel <christian.bruel@st.com>
22296 * target.def (mode_switching): New hook vector.
22297 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
22298 (mode_exit, modepriority_to_mode): Likewise.
22299 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
22300 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22301 * target.h: Include tm.h and hard-reg-set.h.
22302 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
22303 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
22304 * doc/tm.texi Regenerate.
22305 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
22306 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22307 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
22308 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
22309 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
22310 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22311 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
22312 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
22313 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
22314 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
22315 (ix86_emit_mode_set): Hookify.
22316 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
22318 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22319 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
22320 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
22321 (epiphany_mode_priority_to_mode): Remove declaration.
22322 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
22323 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
22324 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
22326 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
22327 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
22328 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
22330 2014-05-13 Jakub Jelinek <jakub@redhat.com>
22333 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
22334 is const0_rtx, return immediately. Don't test count == 0 when
22337 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22339 * Makefile.in: add shrink-wrap.o.
22340 * config/i386/i386.c: include "shrink-wrap.h"
22341 * function.c: Likewise.
22342 (requires_stack_frame_p, next_block_for_reg,
22343 move_insn_for_shrink_wrap, prepare_shrink_wrap,
22344 dup_block_and_redirect): Move to shrink-wrap.c
22345 (thread_prologue_and_epilogue_insns): Extract three code segments
22346 as functions in shrink-wrap.c
22347 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
22349 * shrink-wrap.c: New file.
22350 * shrink-wrap.h: New file.
22352 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
22354 * doc/extend.texi: Reflect current numbers of pragmas. Remove
22355 reference to Solaris.
22357 2014-05-12 Mike Stump <mikestump@comcast.net>
22360 * genattrtab.c (filename): Add.
22361 (convert_set_attr_alternative): Improve error message.
22362 (check_defs): Restore read_md_filename for error messages.
22363 (gen_insn): Save filename.
22365 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
22367 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
22368 -fno-local-ivars and -fivar-visibility.
22369 * c-family/c.opt: Make -Wshadow also implicitly enable
22372 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
22374 * doc/tm.texi: Remove reference to deleted macro.
22375 * doc/tm.texi.in: Likewise.
22377 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22380 * config/avr/avr.c (avr_out_store_psi): Use correct constant
22383 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
22386 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
22387 * config/arm/aout.h (License): Same.
22388 * config/arm/bpabi.h (License): Same.
22389 * config/arm/elf.h (License): Same.
22390 * config/arm/linux-elf.h (License): Same.
22391 * config/arm/linux-gas.h (License): Same.
22392 * config/arm/netbsd-elf.h (License): Same.
22393 * config/arm/uclinux-eabi.h (License): Same.
22394 * config/arm/uclinux-elf.h (License): Same.
22395 * config/arm/vxworks.h (License): Same.
22397 2014-05-11 Jakub Jelinek <jakub@redhat.com>
22399 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
22400 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
22401 number of operands to 3.
22402 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
22403 * tree-nested.c (convert_nonlocal_omp_clauses,
22404 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
22405 * gimplify.c (gimplify_scan_omp_clauses): Handle
22406 OMP_CLAUSE_LINEAR_STMT.
22407 * omp-low.c (lower_rec_input_clauses): Fix typo.
22408 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
22409 cast between Fortran boolean_type_node and C _Bool if
22412 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
22414 PR tree-optimization/61136
22415 * wide-int.h (multiple_of_p): Define a version that doesn't return
22417 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
22418 integer_zerop/const_binop pair.
22419 (multiple_of_p): Likewise, converting both operands to widest_int
22422 2014-05-09 Teresa Johnson <tejohnson@google.com>
22424 * cgraphunit.c (analyze_functions): Use correct dump file.
22426 2014-05-09 Florian Weimer <fweimer@redhat.com>
22428 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
22430 (stack_protect_return_slot_p): New function.
22431 (expand_used_vars): Call stack_protect_decl_p and
22432 stack_protect_return_slot_p for -fstack-protector-strong.
22434 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
22435 Andrew Haley <aph@redhat.com>
22436 Richard Sandiford <rdsandiford@googlemail.com>
22438 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
22441 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
22443 PR middle-end/61111
22444 * fold-const.c (fold_binary_loc): Changed width of mask.
22446 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
22448 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
22449 unsigned int initializers for regno_in, regno_out.
22451 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
22454 * config/avr/avr.md (cc): Add new attribute set_vzn.
22455 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
22456 Set cc insn attribute to set_vzn instead of set_zn for alternatives
22457 with INC, DEC or NEG.
22458 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
22459 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
22460 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
22462 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22465 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22467 * wide-int.cc (UTItype): Define.
22468 (UDWtype): Define for appropriate W_TYPE_SIZE.
22470 2014-05-09 Richard Biener <rguenther@suse.de>
22472 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
22473 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
22474 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
22475 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
22476 ssa_propagate): Adjust.
22478 2014-05-08 Jeff Law <law@redhat.com>
22480 PR tree-optimization/61009
22481 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
22482 tri-state rather than a boolean. When a block is too big to
22483 thread through, inform caller via negative return value.
22484 (thread_across_edge): If a block was too big for normal threading,
22485 then it's too big for a joiner too, so remove temporary equivalences
22486 and return immediately.
22488 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
22489 Matthias Klose <doko@ubuntu.com>
22492 * optc-gen.awk: Fix option handling for -Wunused-parameter.
22494 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
22497 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
22499 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
22502 * config/alpha/alpha.c: Include gimple-iterator.h.
22503 (alpha_gimple_fold_builtin): New function. Move
22504 ALPHA_BUILTIN_UMULH folding from ...
22505 (alpha_fold_builtin): ... here.
22506 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
22508 2014-05-08 Wei Mi <wmi@google.com>
22511 * config/i386/i386.c (ix86_compute_frame_layout): Update
22512 preferred_stack_boundary for call, expanded from tls descriptor.
22513 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
22514 to depend on SP register.
22515 (*tls_local_dynamic_base_32_gnu): Ditto.
22516 (*tls_local_dynamic_32_once): Ditto.
22517 (tls_global_dynamic_64_<mode>): Set
22518 ix86_tls_descriptor_calls_expanded_in_cfun.
22519 (tls_local_dynamic_base_64_<mode>): Ditto.
22520 (tls_global_dynamic_32): Set
22521 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
22522 to depend on SP register.
22523 (tls_local_dynamic_base_32): Ditto.
22525 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22527 * config/arm/arm_neon.h: Update comment.
22528 * config/arm/neon-docgen.ml: Delete.
22529 * config/arm/neon-gen.ml: Delete.
22530 * doc/arm-neon-intrinsics.texi: Update comment.
22532 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22534 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
22536 (vand, vorr, veor, vorn, vbic): Remove.
22537 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
22539 (neon_vsub_unspec): Likewise.
22540 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
22542 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22544 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
22545 (vadd_s16): Likewise.
22546 (vadd_s32): Likewise.
22547 (vadd_f32): Likewise.
22548 (vadd_u8): Likewise.
22549 (vadd_u16): Likewise.
22550 (vadd_u32): Likewise.
22551 (vadd_s64): Likewise.
22552 (vadd_u64): Likewise.
22553 (vaddq_s8): Likewise.
22554 (vaddq_s16): Likewise.
22555 (vaddq_s32): Likewise.
22556 (vaddq_s64): Likewise.
22557 (vaddq_f32): Likewise.
22558 (vaddq_u8): Likewise.
22559 (vaddq_u16): Likewise.
22560 (vaddq_u32): Likewise.
22561 (vaddq_u64): Likewise.
22562 (vmul_s8): Likewise.
22563 (vmul_s16): Likewise.
22564 (vmul_s32): Likewise.
22565 (vmul_f32): Likewise.
22566 (vmul_u8): Likewise.
22567 (vmul_u16): Likewise.
22568 (vmul_u32): Likewise.
22569 (vmul_p8): Likewise.
22570 (vmulq_s8): Likewise.
22571 (vmulq_s16): Likewise.
22572 (vmulq_s32): Likewise.
22573 (vmulq_f32): Likewise.
22574 (vmulq_u8): Likewise.
22575 (vmulq_u16): Likewise.
22576 (vmulq_u32): Likewise.
22577 (vsub_s8): Likewise.
22578 (vsub_s16): Likewise.
22579 (vsub_s32): Likewise.
22580 (vsub_f32): Likewise.
22581 (vsub_u8): Likewise.
22582 (vsub_u16): Likewise.
22583 (vsub_u32): Likewise.
22584 (vsub_s64): Likewise.
22585 (vsub_u64): Likewise.
22586 (vsubq_s8): Likewise.
22587 (vsubq_s16): Likewise.
22588 (vsubq_s32): Likewise.
22589 (vsubq_s64): Likewise.
22590 (vsubq_f32): Likewise.
22591 (vsubq_u8): Likewise.
22592 (vsubq_u16): Likewise.
22593 (vsubq_u32): Likewise.
22594 (vsubq_u64): Likewise.
22595 (vand_s8): Likewise.
22596 (vand_s16): Likewise.
22597 (vand_s32): Likewise.
22598 (vand_u8): Likewise.
22599 (vand_u16): Likewise.
22600 (vand_u32): Likewise.
22601 (vand_s64): Likewise.
22602 (vand_u64): Likewise.
22603 (vandq_s8): Likewise.
22604 (vandq_s16): Likewise.
22605 (vandq_s32): Likewise.
22606 (vandq_s64): Likewise.
22607 (vandq_u8): Likewise.
22608 (vandq_u16): Likewise.
22609 (vandq_u32): Likewise.
22610 (vandq_u64): Likewise.
22611 (vorr_s8): Likewise.
22612 (vorr_s16): Likewise.
22613 (vorr_s32): Likewise.
22614 (vorr_u8): Likewise.
22615 (vorr_u16): Likewise.
22616 (vorr_u32): Likewise.
22617 (vorr_s64): Likewise.
22618 (vorr_u64): Likewise.
22619 (vorrq_s8): Likewise.
22620 (vorrq_s16): Likewise.
22621 (vorrq_s32): Likewise.
22622 (vorrq_s64): Likewise.
22623 (vorrq_u8): Likewise.
22624 (vorrq_u16): Likewise.
22625 (vorrq_u32): Likewise.
22626 (vorrq_u64): Likewise.
22627 (veor_s8): Likewise.
22628 (veor_s16): Likewise.
22629 (veor_s32): Likewise.
22630 (veor_u8): Likewise.
22631 (veor_u16): Likewise.
22632 (veor_u32): Likewise.
22633 (veor_s64): Likewise.
22634 (veor_u64): Likewise.
22635 (veorq_s8): Likewise.
22636 (veorq_s16): Likewise.
22637 (veorq_s32): Likewise.
22638 (veorq_s64): Likewise.
22639 (veorq_u8): Likewise.
22640 (veorq_u16): Likewise.
22641 (veorq_u32): Likewise.
22642 (veorq_u64): Likewise.
22643 (vbic_s8): Likewise.
22644 (vbic_s16): Likewise.
22645 (vbic_s32): Likewise.
22646 (vbic_u8): Likewise.
22647 (vbic_u16): Likewise.
22648 (vbic_u32): Likewise.
22649 (vbic_s64): Likewise.
22650 (vbic_u64): Likewise.
22651 (vbicq_s8): Likewise.
22652 (vbicq_s16): Likewise.
22653 (vbicq_s32): Likewise.
22654 (vbicq_s64): Likewise.
22655 (vbicq_u8): Likewise.
22656 (vbicq_u16): Likewise.
22657 (vbicq_u32): Likewise.
22658 (vbicq_u64): Likewise.
22659 (vorn_s8): Likewise.
22660 (vorn_s16): Likewise.
22661 (vorn_s32): Likewise.
22662 (vorn_u8): Likewise.
22663 (vorn_u16): Likewise.
22664 (vorn_u32): Likewise.
22665 (vorn_s64): Likewise.
22666 (vorn_u64): Likewise.
22667 (vornq_s8): Likewise.
22668 (vornq_s16): Likewise.
22669 (vornq_s32): Likewise.
22670 (vornq_s64): Likewise.
22671 (vornq_u8): Likewise.
22672 (vornq_u16): Likewise.
22673 (vornq_u32): Likewise.
22674 (vornq_u64): Likewise.
22676 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22678 * wide-int.cc (UTItype): Define.
22679 (UDWtype): Define for appropriate W_TYPE_SIZE.
22681 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
22683 PR tree-optimization/59100
22684 * tree-ssa-phiopt.c: Include tree-inline.h.
22685 (neutral_element_p, absorbing_element_p): New functions.
22686 (value_replacement): Handle conditional binary operations with a
22687 neutral or absorbing element.
22689 2014-05-08 Richard Biener <rguenther@suse.de>
22691 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
22692 folding the expression.
22693 (valueize_expr): Remove.
22694 (visit_reference_op_load): Do not valueize the result of
22696 (simplify_binary_expression): Likewise.
22697 (simplify_unary_expression): Likewise.
22699 2014-05-08 Richard Biener <rguenther@suse.de>
22701 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
22702 looking at TYPE_ARG_TYPES.
22704 2014-05-08 Richard Biener <rguenther@suse.de>
22706 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
22707 pointer propagation special-case.
22709 2014-05-08 Bin Cheng <bin.cheng@arm.com>
22711 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
22712 core part of address expressions.
22714 2014-05-08 Alan Modra <amodra@gmail.com>
22717 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
22718 loads and stores when -mno-strict-align at any alignment.
22719 (expand_block_clear): Similarly. Also correct calculation of
22722 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
22724 PR middle-end/39246
22725 * tree-complex.c (expand_complex_move): Keep line info when expanding
22727 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
22728 of complex expression. Use new argument to display correct location
22729 for values coming from phi statement.
22730 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
22731 (warn_uninitialized_phi): Pass location of phi argument to
22733 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
22734 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
22736 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
22738 * config/rs6000/predicates.md (indexed_address_mem): New.
22739 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
22740 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
22741 fpstore_ux, fpstore_u.
22742 (sign_extend, indexed, update): New.
22743 (cell_micro): Adjust.
22744 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
22745 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
22746 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
22747 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
22748 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
22749 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
22750 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
22751 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
22752 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
22753 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
22754 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
22755 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
22756 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
22757 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
22758 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
22760 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
22761 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
22762 *vsx_extract_<mode>_store): Adjust.
22763 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
22764 is_cracked_insn, insn_must_be_first_in_group,
22765 insn_must_be_last_in_group): Adjust.
22767 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
22769 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
22770 ppc440-fpstore): Adjust.
22771 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
22772 ppc476-fpstore): Adjust.
22773 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
22774 ppc601-fpstore): Adjust.
22775 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
22777 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
22779 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
22780 ppc7450-fpstore): Adjust.
22781 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
22782 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
22783 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
22785 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
22786 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
22787 cell-fpstore, cell-fpstore-update): Adjust.
22788 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
22789 ppce300c3_store, ppce300c3_fpstore): Adjust.
22790 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
22791 e500mc_fpstore): Adjust.
22792 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
22793 e500mc64_store, e500mc64_fpstore): Adjust.
22794 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
22795 e5500_fpstore): Adjust.
22796 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
22797 e6500_fpstore): Adjust.
22798 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
22800 * config/rs6000/power4.md (power4-load, power4-load-ext,
22801 power4-load-ext-update, power4-load-ext-update-indexed,
22802 power4-load-update-indexed, power4-load-update, power4-fpload,
22803 power4-fpload-update, power4-store, power4-store-update,
22804 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
22806 * config/rs6000/power5.md (power5-load, power5-load-ext,
22807 power5-load-ext-update, power5-load-ext-update-indexed,
22808 power5-load-update-indexed, power5-load-update, power5-fpload,
22809 power5-fpload-update, power5-store, power5-store-update,
22810 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
22812 * config/rs6000/power6.md (power6-load, power6-load-ext,
22813 power6-load-update, power6-load-update-indexed,
22814 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
22815 power6-fpload-update, power6-store, power6-store-update,
22816 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
22818 * config/rs6000/power7.md (power7-load, power7-load-ext,
22819 power7-load-update, power7-load-update-indexed,
22820 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
22821 power7-fpload-update, power7-store, power7-store-update,
22822 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
22824 * config/rs6000/power8.md (power8-load, power8-load-update,
22825 power8-load-ext, power8-load-ext-update, power8-fpload,
22826 power8-fpload-update, power8-store, power8-store-update-indexed,
22827 power8-fpstore, power8-fpstore-update): Adjust.
22828 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
22830 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
22831 titan_lsu_store, titan_lsu_fpstore): Adjust.
22832 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
22834 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
22837 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
22838 unrolled byte insns. Emit address increments after move insns.
22840 2014-05-07 David Malcolm <dmalcolm@redhat.com>
22842 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
22843 const_gimple, rather than a gimple.
22844 (gimple_call_builtin_p): Likewise, for the three variants.
22846 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
22847 (gimple_call_builtin_p): Likewise, for the three variants.
22849 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22851 PR tree-optimization/61095
22852 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
22854 2014-05-07 Richard Biener <rguenther@suse.de>
22856 PR tree-optimization/61034
22857 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
22858 (maybe_skip_until): Use translate to take into account
22859 lattices when trying to do disambiguations.
22860 (get_continuation_for_phi_1): Likewise.
22861 (get_continuation_for_phi): Adjust for added translate arguments.
22862 (walk_non_aliased_vuses): Likewise.
22863 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
22864 (walk_non_aliased_vuses): Likewise.
22865 (call_may_clobber_ref_p_1): Declare.
22866 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
22867 calls. Stop early if we are only supposed to disambiguate.
22868 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
22870 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
22872 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
22873 Emit an error when the function has arguments.
22875 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
22877 * cfgloop.h (unswitch_loops): Remove.
22878 * doc/passes.texi: Remove references to loop-unswitch.c
22879 * timevar.def (TV_LOOP_UNSWITCH): Remove.
22881 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
22883 * tree-vect-data-refs.c (vect_grouped_load_supported): New
22884 check for loads group of length 3.
22885 (vect_permute_load_chain): New permutations for loads group of
22887 * tree-vect-stmts.c (vect_model_load_cost): Change cost
22888 of vec_perm_shuffle for the new permutations.
22890 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
22892 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
22893 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
22894 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
22895 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
22896 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
22897 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
22898 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
22899 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
22901 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
22903 * loop-unswitch.c: Delete.
22905 2014-05-07 Richard Biener <rguenther@suse.de>
22907 * config.gcc: Always set need_64bit_hwint to yes.
22909 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
22911 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
22912 of using optimize_size.
22914 2014-05-06 Mike Stump <mikestump@comcast.net>
22916 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
22918 2014-05-06 Joseph Myers <joseph@codesourcery.com>
22920 * config/i386/sse.md (*mov<mode>_internal)
22921 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
22922 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
22923 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
22924 (*<code><mode>3, *andnot<mode>3<mask_name>)
22925 (<mask_codefor><code><mode>3<mask_name>): Only consider
22926 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
22928 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
22931 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
22933 * lra-constraints.c (valid_address_p): Move earlier in file.
22934 Add a constraint argument to the address_info version.
22935 (satisfies_memory_constraint_p): New function.
22936 (satisfies_address_constraint_p): Likewise.
22937 (process_alt_operands, curr_insn_transform): Use them.
22938 (process_address): Pass the constraint to valid_address_p when
22939 checking address operands.
22941 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
22943 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
22944 to their respective blocks. Fix inadvertent use of "node".
22946 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
22948 * emit-rtl.c (init_derived_machine_modes): New functionm, split
22950 (init_emit_once): ...here.
22951 * rtl.h (init_derived_machine_modes): Declare.
22952 * toplev.c (do_compile): Call it even if no_backend.
22954 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
22955 Mike Stump <mikestump@comcast.net>
22956 Richard Sandiford <rdsandiford@googlemail.com>
22957 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22959 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
22960 (rtx_equal_for_memref_p): Update comment.
22961 (adjust_offset_for_component_ref): Use wide-int interfaces.
22962 * builtins.c (get_object_alignment_2): Likewise.
22963 (c_readstr): Likewise.
22964 (target_char_cast): Add comment.
22965 (determine_block_size): Use wide-int interfaces.
22966 (expand_builtin_signbit): Likewise.
22967 (fold_builtin_int_roundingfn): Likewise.
22968 (fold_builtin_bitop): Likewise.
22969 (fold_builtin_bswap): Likewise.
22970 (fold_builtin_logarithm): Use signop.
22971 (fold_builtin_pow): Likewise.
22972 (fold_builtin_memory_op): Use wide-int interfaces.
22973 (fold_builtin_object_size): Likewise.
22974 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
22975 nb_iterations_estimate.
22976 (record_niter_bound): Use wide-int interfaces.
22977 (get_estimated_loop_iterations_int): Likewise.
22978 (get_estimated_loop_iterations): Likewise.
22979 (get_max_loop_iterations): Likewise.
22980 * cfgloop.h: Include wide-int.h.
22981 (struct nb_iter_bound): Change bound to widest_int.
22982 (struct loop): Change nb_iterations_upper_bound and
22983 nb_iterations_estimate to widest_int.
22984 (record_niter_bound): Switch to use widest_int.
22985 (get_estimated_loop_iterations): Likewise.
22986 (get_max_loop_iterations): Likewise.
22987 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
22988 update for wide-int.
22989 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
22990 * combine.c (try_combine): Likewise.
22991 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
22992 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
22994 (aarch64_float_const_representable_p): Likewise.
22995 * config/arc/arc.c: Include wide-int.h.
22996 (arc_can_use_doloop_p): Use wide-int interfaces.
22997 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
22998 (vfp3_const_double_index): Likewise.
22999 * config/avr/avr.c (avr_out_round): Likewise.
23000 (avr_fold_builtin): Likewise.
23001 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
23002 (bfin_can_use_doloop_p): Likewise.
23003 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
23004 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
23005 * config/i386/i386.c: Include wide-int.h.
23006 (ix86_data_alignment): Use wide-int interfaces.
23007 (ix86_local_alignment): Likewise.
23008 (ix86_emit_swsqrtsf): Update real_from_integer.
23009 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
23010 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
23011 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
23012 (zero_constant): Likewise.
23013 (input_operand): Likewise.
23014 (splat_input_operand): Likewise.
23015 (non_logical_cint_operand): Change const_double to const_wide_int.
23016 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
23017 (easy_altivec_constant): Remove comment.
23018 (paired_expand_vector_init): Use CONSTANT_P.
23019 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
23020 (rs6000_emit_move): Update checks.
23021 (rs6000_aggregate_candidate): Use wide-int interfaces.
23022 (rs6000_expand_ternop_builtin): Likewise.
23023 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
23024 (rs6000_assemble_integer): Likewise.
23025 (rs6000_hash_constant): Likewise.
23026 (output_toc): Likewise.
23027 (rs6000_rtx_costs): Likewise.
23028 (rs6000_emit_swrsqrt); Update call to real_from_integer.
23029 * config/rs6000/rs6000-c.c: Include wide-int.h.
23030 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
23031 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
23032 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
23033 Handle CONST_WIDE_INT.
23034 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
23035 Use tree_fits_uhwi_p.
23036 * config/sparc/sparc.c: Include wide-int.h.
23037 (sparc_fold_builtin): Use wide-int interfaces.
23038 * config/vax/vax.c: Include wide-int.h.
23039 (vax_float_literal): Use real_from_integer.
23040 * coretypes.h (struct hwivec_def): New.
23042 (const_hwivec): New.
23043 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
23044 (equiv_constant): Handle CONST_WIDE_INT.
23045 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
23046 (cselib_hash_rtx): Handle CONST_WIDE_INT.
23047 * dbxout.c (stabstr_U): Use wide-int interfaces.
23048 (dbxout_type): Update to use cst_fits_shwi_p.
23049 * defaults.h (LOG2_BITS_PER_UNIT): Define.
23050 (TARGET_SUPPORTS_WIDE_INT): Add default.
23051 * dfp.c: Include wide-int.h.
23052 (decimal_real_to_integer2): Use wide-int interfaces and rename to
23053 decimal_real_to_integer.
23054 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
23055 decimal_real_to_integer.
23056 * doc/generic.texi (Constant expressions): Update for wide_int.
23057 * doc/rtl.texi (const_double): Likewise.
23058 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
23059 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
23060 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
23061 (REAL_VALUE_FROM_INT): Remove.
23062 (TARGET_SUPPORTS_WIDE_INT): New.
23063 * doc/tm.texi: Regenerate.
23064 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
23065 * double-int.h: Include wide-int.h.
23066 (struct wi::int_traits): New.
23067 * dwarf2out.c (get_full_len): New.
23068 (dw_val_equal_p): Add case dw_val_class_wide_int.
23069 (size_of_loc_descr): Likewise.
23070 (output_loc_operands): Likewise.
23071 (insert_double): Remove.
23072 (insert_wide_int): New.
23073 (add_AT_wide): New.
23074 (print_die): Add case dw_val_class_wide_int.
23075 (attr_checksum): Likewise.
23076 (attr_checksum_ordered): Likewise.
23077 (same_dw_val_p): Likewise.
23078 (size_of_die): Likewise.
23079 (value_format): Likewise.
23080 (output_die): Likewise.
23081 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
23083 (clz_loc_descriptor): Use wide-int interfaces.
23084 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
23085 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
23086 (round_up_to_align): Use wide-int interfaces.
23087 (field_byte_offset): Likewise.
23088 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
23089 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
23090 CONST_DOUBLE handling. Use wide-int interfaces.
23091 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
23092 (gen_enumeration_type_die): Use add_AT_wide.
23093 (hash_loc_operands): Add case dw_val_class_wide_int.
23094 (compare_loc_operands): Likewise.
23095 * dwarf2out.h: Include wide-int.h.
23096 (wide_int_ptr): New.
23097 (enum dw_val_class): Add dw_val_class_wide_int.
23098 (struct dw_val_struct): Add val_wide.
23099 * emit-rtl.c (const_wide_int_htab): New.
23100 (const_wide_int_htab_hash): New.
23101 (const_wide_int_htab_eq): New.
23102 (lookup_const_wide_int): New.
23103 (const_double_htab_hash): Use wide-int interfaces.
23104 (const_double_htab_eq): Likewise.
23105 (rtx_to_double_int): Conditionally compile for wide-int.
23106 (immed_double_int_const): Rename to immed_wide_int_const and
23107 update for wide-int.
23108 (immed_double_const): Conditionally compile for wide-int.
23109 (init_emit_once): Use wide-int interfaces.
23110 * explow.c (plus_constant): Likewise.
23111 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
23112 (lshift_value): Use wide-int interfaces.
23113 (expand_mult): Likewise.
23114 (choose_multiplier): Likewise.
23115 (expand_smod_pow2): Likewise.
23116 (make_tree): Likewise.
23117 * expr.c (convert_modes): Consolidate handling of constants.
23118 Use wide-int interfaces.
23119 (emit_group_load_1): Add note.
23120 (store_expr): Update comment.
23121 (get_inner_reference): Use wide-int interfaces.
23122 (expand_constructor): Update comment.
23123 (expand_expr_real_2): Use wide-int interfaces.
23124 (expand_expr_real_1): Likewise.
23125 (reduce_to_bit_field_precision): Likewise.
23126 (const_vector_from_tree): Likewise.
23127 * final.c: Include wide-int-print.h.
23128 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
23129 * fixed-value.c: Include wide-int.h.
23130 (fixed_from_string): Use wide-int interfaces.
23131 (fixed_to_decimal): Likewise.
23132 (fixed_convert_from_real): Likewise.
23133 (real_convert_from_fixed): Likewise.
23134 * fold-const.h (mem_ref_offset): Return an offset_int.
23135 (div_if_zero_remainder): Remove code parameter.
23136 * fold-const.c (div_if_zero_remainder): Remove code parameter.
23137 Use wide-int interfaces.
23138 (may_negate_without_overflow_p): Use wide-int interfaces.
23139 (negate_expr_p): Likewise.
23140 (fold_negate_expr): Likewise.
23141 (int_const_binop_1): Likewise.
23142 (const_binop): Likewise.
23143 (fold_convert_const_int_from_int): Likewise.
23144 (fold_convert_const_int_from_real): Likewise.
23145 (fold_convert_const_int_from_fixed): Likewise.
23146 (fold_convert_const_fixed_from_int): Likewise.
23147 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
23148 (sign_bit_p): Use wide-int interfaces.
23149 (make_range_step): Likewise.
23150 (build_range_check): Likewise. Pass an integer of the correct type
23151 instead of using integer_one_node.
23152 (range_predecessor): Pass an integer of the correct type instead
23153 of using integer_one_node.
23154 (range_successor): Likewise.
23155 (merge_ranges): Likewise.
23156 (unextend): Use wide-int interfaces.
23157 (extract_muldiv_1): Likewise.
23158 (fold_div_compare): Likewise.
23159 (fold_single_bit_test): Likewise.
23160 (fold_sign_changed_comparison): Likewise.
23161 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
23162 (fold_plusminus_mult_expr): Use wide-int interfaces.
23163 (native_encode_int): Likewise.
23164 (native_interpret_int): Likewise.
23165 (fold_unary_loc): Likewise.
23166 (pointer_may_wrap_p): Likewise.
23167 (size_low_cst): Likewise.
23168 (mask_with_tz): Likewise.
23169 (fold_binary_loc): Likewise.
23170 (fold_ternary_loc): Likewise.
23171 (multiple_of_p): Likewise.
23172 (tree_call_nonnegative_warnv_p): Update calls to
23173 tree_int_cst_min_precision and real_from_integer.
23174 (fold_negate_const): Use wide-int interfaces.
23175 (fold_abs_const): Likewise.
23176 (fold_relational_const): Use tree_int_cst_lt.
23177 (round_up_loc): Use wide-int interfaces.
23178 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
23179 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
23180 * gengtype.c: Remove include of double-int.h.
23181 (do_typedef): Use wide-int interfaces.
23182 (open_base_files): Add wide-int.h.
23183 (main): Add offset_int and widest_int typedefs.
23184 * gengtype-lex.l: Handle "^".
23185 (CXX_KEYWORD): Add "static".
23186 * gengtype-parse.c (require3): New.
23187 (require_template_declaration): Handle constant template arguments
23188 and nested templates.
23189 * gengtype-state.c: Don't include "double-int.h".
23190 * genpreds.c (write_one_predicate_function): Update comment.
23191 (write_tm_constrs_h): Add check for hval and lval use in
23193 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
23194 (add_to_sequence): Likewise.
23195 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
23196 and const_double_operand.
23197 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
23199 * gimple-fold.c (get_base_constructor): Likewise.
23200 (fold_array_ctor_reference): Likewise.
23201 (fold_nonarray_ctor_reference): Likewise.
23202 (fold_const_aggregate_ref_1): Likewise.
23203 (gimple_val_nonnegative_real_p): Likewise.
23204 (gimple_fold_indirect_ref): Likewise.
23205 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
23206 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
23207 (struct slsr_cand_d): Change index to be widest_int.
23208 (struct incr_info_d): Change incr to be widest_int.
23209 (alloc_cand_and_find_basis): Use wide-int interfaces.
23210 (slsr_process_phi): Likewise.
23211 (backtrace_base_for_ref): Likewise. Return a widest_int.
23212 (restructure_reference): Take a widest_int instead of a double_int.
23213 (slsr_process_ref): Use wide-int interfaces.
23214 (create_mul_ssa_cand): Likewise.
23215 (create_mul_imm_cand): Likewise.
23216 (create_add_ssa_cand): Likewise.
23217 (create_add_imm_cand): Take a widest_int instead of a double_int.
23218 (slsr_process_add): Use wide-int interfaces.
23219 (slsr_process_cast): Likewise.
23220 (slsr_process_copy): Likewise.
23221 (dump_candidate): Likewise.
23222 (dump_incr_vec): Likewise.
23223 (replace_ref): Likewise.
23224 (cand_increment): Likewise. Return a widest_int.
23225 (cand_abs_increment): Likewise.
23226 (replace_mult_candidate): Take a widest_int instead of a double_int.
23227 (replace_unconditional_candidate): Use wide-int interfaces.
23228 (incr_vec_index): Take a widest_int instead of a double_int.
23229 (create_add_on_incoming_edge): Likewise.
23230 (create_phi_basis): Use wide-int interfaces.
23231 (replace_conditional_candidate): Likewise.
23232 (record_increment): Take a widest_int instead of a double_int.
23233 (record_phi_increments): Use wide-int interfaces.
23234 (phi_incr_cost): Take a widest_int instead of a double_int.
23235 (lowest_cost_path): Likewise.
23236 (total_savings): Likewise.
23237 (analyze_increments): Use wide-int interfaces.
23238 (ncd_with_phi): Take a widest_int instead of a double_int.
23239 (ncd_of_cand_and_phis): Likewise.
23240 (nearest_common_dominator_for_cands): Likewise.
23241 (insert_initializers): Use wide-int interfaces.
23242 (all_phi_incrs_profitable): Likewise.
23243 (replace_one_candidate): Likewise.
23244 (replace_profitable_candidates): Likewise.
23245 * godump.c: Include wide-int-print.h.
23246 (go_output_typedef): Use wide-int interfaces.
23247 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
23248 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
23249 (build_loop_iteration_domains): Likewise.
23250 * hooks.h: Include wide-int.h rather than double-int.h.
23251 (hook_bool_dint_dint_uint_bool_true): Delete.
23252 (hook_bool_wint_wint_uint_bool_true): Declare.
23253 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
23254 (hook_bool_wint_wint_uint_bool_true): New.
23255 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
23257 (ubsan_expand_si_overflow_mul_check): Likewise.
23258 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
23259 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
23260 (get_ancestor_addr_info): Likewise.
23261 (ipa_modify_call_arguments): Likewise.
23262 * loop-doloop.c (doloop_modify): Likewise.
23263 (doloop_optimize): Likewise.
23264 * loop-iv.c (iv_number_of_iterations): Likewise.
23265 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
23266 (unroll_loop_constant_iterations): Likewise.
23267 (decide_unroll_runtime_iterations): Likewise.
23268 (unroll_loop_runtime_iterations): Likewise.
23269 (decide_peel_simple): Likewise.
23270 (decide_unroll_stupid): Likewise.
23271 * lto-streamer-in.c (streamer_read_wi): Add.
23272 (input_cfg): Use wide-int interfaces.
23273 (lto_input_tree_1): Likewise.
23274 * lto-streamer-out.c (streamer_write_wi): Add.
23275 (hash_tree): Use wide-int interfaces.
23276 (output_cfg): Likewise.
23277 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
23278 (GTFILES): Add wide-int.h and signop.h.
23279 (TAGS): Look for .cc files too.
23280 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
23281 * optabs.c (expand_subword_shift): Likewise.
23282 (expand_doubleword_shift): Likewise.
23283 (expand_absneg_bit): Likewise.
23284 (expand_copysign_absneg): Likewise.
23285 (expand_copysign_bit): Likewise.
23286 * postreload.c (reload_cse_simplify_set): Likewise.
23287 * predict.c (predict_iv_comparison): Likewise.
23288 * pretty-print.h: Include wide-int-print.h.
23290 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
23291 * print-tree.c: Include wide-int-print.h.
23292 (print_node_brief): Use wide-int interfaces.
23293 (print_node): Likewise.
23294 * read-rtl.c (validate_const_wide_int): New.
23295 (read_rtx_code): Add CONST_WIDE_INT case.
23296 * real.c: Include wide-int.h.
23297 (real_to_integer2): Delete.
23298 (real_to_integer): New function, returning a wide_int.
23299 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
23300 (ten_to_ptwo): Update call to real_from_integer.
23301 (real_digit): Likewise.
23302 * real.h: Include signop.h, wide-int.h and insn-modes.h.
23303 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
23304 (REAL_VALUE_TO_INT): Delete.
23305 (real_to_integer): Declare a wide-int form.
23306 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
23307 * recog.c (const_int_operand): Improve comment.
23308 (const_scalar_int_operand): New.
23309 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
23310 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
23311 (split_double): Likewise.
23312 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
23313 (rtx_size): Likewise.
23314 (rtx_alloc_stat_v): New.
23315 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
23316 (cwi_output_hex): New.
23317 (iterative_hash_rtx): Handle CONST_WIDE_INT.
23318 (cwi_check_failed_bounds): New.
23319 * rtl.def (CONST_WIDE_INT): New.
23320 * rtl.h: Include <utility> and wide-int.h.
23321 (struct hwivec_def): New.
23322 (CWI_GET_NUM_ELEM): New.
23323 (CWI_PUT_NUM_ELEM): New.
23324 (struct rtx_def): Add num_elem and hwiv.
23325 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
23326 (CASE_CONST_UNIQUE): Likewise.
23327 (CASE_CONST_ANY): Likewise.
23328 (CONST_SCALAR_INT_P): Likewise.
23329 (CONST_WIDE_INT_P): New.
23331 (HWIVEC_CHECK): New.
23332 (cwi_check_failed_bounds): New.
23334 (HWIVEC_CHECK): New.
23335 (CONST_WIDE_INT_VEC) New.
23336 (CONST_WIDE_INT_NUNITS) New.
23337 (CONST_WIDE_INT_ELT) New.
23338 (rtx_mode_t): New type.
23339 (wi::int_traits <rtx_mode_t>): New.
23341 (wi::min_value): New.
23342 (wi::max_value): New.
23344 (const_wide_int_alloc): New.
23345 (immed_wide_int_const): New.
23346 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
23347 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
23348 * signop.h: New file.
23349 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
23350 (simplify_const_unary_operation): Use wide-int interfaces.
23351 (simplify_binary_operation_1): Likewise.
23352 (simplify_const_binary_operation): Likewise.
23353 (simplify_const_relational_operation): Likewise.
23354 (simplify_immed_subreg): Likewise.
23355 * stmt.c (expand_case): Likewise.
23356 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
23357 signop rather than a bool.
23358 * stor-layout.c (layout_type): Use wide-int interfaces.
23359 (initialize_sizetypes): Update calls to
23360 set_min_and_max_values_for_integral_type.
23361 (set_min_and_max_values_for_integral_type): Take a signop rather
23362 than a bool. Use wide-int interfaces.
23363 (fixup_signed_type): Update accordingly. Remove
23364 HOST_BITS_PER_DOUBLE_INT limit.
23365 (fixup_unsigned_type): Likewise.
23366 * system.h (STATIC_CONSTANT_P): New.
23367 (STATIC_ASSERT): New.
23368 * target.def (can_use_doloop_p): Take widest_ints rather than
23370 * target.h: Include wide-int.h rather than double-int.h.
23371 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
23373 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
23374 rather than INT_CST_LT_UNSIGNED.
23375 (can_use_doloop_if_innermost): Take widest_ints rather than
23377 * tree-affine.c: Include wide-int-print.h.
23378 (double_int_ext_for_comb): Delete.
23379 (wide_int_ext_for_comb): New.
23380 (aff_combination_zero): Use wide-int interfaces.
23381 (aff_combination_const): Take a widest_int instead of a double_int.
23382 (aff_combination_elt): Use wide-int interfaces.
23383 (aff_combination_scale): Take a widest_int instead of a double_int.
23384 (aff_combination_add_elt): Likewise.
23385 (aff_combination_add_cst): Likewise.
23386 (aff_combination_add): Use wide-int interfaces.
23387 (aff_combination_convert): Likewise.
23388 (tree_to_aff_combination): Likewise.
23389 (add_elt_to_tree): Take a widest_int instead of a double_int.
23390 (aff_combination_to_tree): Use wide-int interfaces.
23391 (aff_combination_remove_elt): Likewise.
23392 (aff_combination_add_product): Take a widest_int instead of
23394 (aff_combination_mult): Use wide-int interfaces.
23395 (aff_combination_expand): Likewise.
23396 (double_int_constant_multiple_p): Delete.
23397 (wide_int_constant_multiple_p): New.
23398 (aff_combination_constant_multiple_p): Take a widest_int pointer
23399 instead of a double_int pointer.
23400 (print_aff): Use wide-int interfaces.
23401 (get_inner_reference_aff): Take a widest_int pointer
23402 instead of a double_int pointer.
23403 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
23404 * tree-affine.h: Include wide-int.h.
23405 (struct aff_comb_elt): Change type of coef to widest_int.
23406 (struct affine_tree_combination): Change type of offset to widest_int.
23407 (double_int_ext_for_comb): Delete.
23408 (wide_int_ext_for_comb): New.
23409 (aff_combination_const): Use widest_int instead of double_int.
23410 (aff_combination_scale): Likewise.
23411 (aff_combination_add_elt): Likewise.
23412 (aff_combination_constant_multiple_p): Likewise.
23413 (get_inner_reference_aff): Likewise.
23414 (aff_comb_cannot_overlap_p): Likewise.
23415 (aff_combination_zero_p): Use wide-int interfaces.
23416 * tree.c: Include tree.h.
23417 (init_ttree): Use make_int_cst.
23418 (tree_code_size): Removed code for INTEGER_CST case.
23419 (tree_size): Add INTEGER_CST case.
23420 (make_node_stat): Update comment.
23421 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
23422 (build_int_cst_type): Use wide-int interfaces.
23423 (double_int_to_tree): Likewise.
23424 (double_int_fits_to_tree_p): Delete.
23425 (force_fit_type_double): Delete.
23426 (force_fit_type): New.
23427 (int_cst_hash_hash): Use wide-int interfaces.
23428 (int_cst_hash_eq): Likewise.
23429 (build_int_cst_wide): Delete.
23430 (wide_int_to_tree): New.
23431 (cache_integer_cst): Use wide-int interfaces.
23432 (build_low_bits_mask): Likewise.
23433 (cst_and_fits_in_hwi): Likewise.
23434 (real_value_from_int_cst): Likewise.
23435 (make_int_cst_stat): New.
23436 (integer_zerop): Use wide_int interfaces.
23437 (integer_onep): Likewise.
23438 (integer_all_onesp): Likewise.
23439 (integer_pow2p): Likewise.
23440 (integer_nonzerop): Likewise.
23441 (tree_log2): Likewise.
23442 (tree_floor_log2): Likewise.
23443 (tree_ctz): Likewise.
23444 (int_size_in_bytes): Likewise.
23445 (mem_ref_offset): Return an offset_int rather than a double_int.
23446 (build_type_attribute_qual_variant): Use wide_int interfaces.
23447 (type_hash_eq): Likewise
23448 (tree_int_cst_equal): Likewise.
23449 (tree_int_cst_lt): Delete.
23450 (tree_int_cst_compare): Likewise.
23451 (tree_fits_shwi_p): Use wide_int interfaces.
23452 (tree_fits_uhwi_p): Likewise.
23453 (tree_int_cst_sign_bit): Likewise.
23454 (tree_int_cst_sgn): Likewise.
23455 (tree_int_cst_min_precision): Take a signop rather than a bool.
23456 (simple_cst_equal): Use wide_int interfaces.
23457 (compare_tree_int): Likewise.
23458 (iterative_hash_expr): Likewise.
23459 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
23461 (get_type_static_bounds): Use wide_int interfaces.
23462 (tree_int_cst_elt_check_failed): New.
23463 (build_common_tree_nodes): Reordered to set prec before filling in
23465 (int_cst_value): Check cst_and_fits_in_hwi.
23466 (widest_int_cst_value): Use wide_int interfaces.
23467 (upper_bound_in_type): Likewise.
23468 (lower_bound_in_type): Likewise.
23469 (num_ending_zeros): Likewise.
23470 (drop_tree_overflow): Likewise.
23471 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
23472 (gen_conditions_for_pow_cst_base): Likewise.
23473 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
23474 (group_case_labels_stmt): Use wide-int interfaces.
23475 (verify_gimple_assign_binary): Likewise.
23476 (print_loop): Likewise.
23477 * tree-chrec.c (tree_fold_binomial): Likewise.
23478 * tree-core.h (struct tree_base): Add int_length.
23479 (struct tree_int_cst): Change rep of value.
23480 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
23481 (dr_may_alias_p): Likewise.
23482 (max_stmt_executions_tree): Likewise.
23483 * tree.def (INTEGER_CST): Update comment.
23484 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
23485 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
23486 * tree-dump.c: Include wide-int.h and wide-int-print.h.
23487 (dequeue_and_dump): Use wide-int interfaces.
23488 * tree.h: Include wide-int.h.
23489 (NULL_TREE): Moved to earlier loc in file.
23490 (TREE_INT_CST_ELT_CHECK): New.
23491 (tree_int_cst_elt_check_failed): New.
23493 (TREE_INT_CST): Delete.
23494 (TREE_INT_CST_LOW): Use wide-int interfaces.
23495 (TREE_INT_CST_HIGH): Delete.
23496 (TREE_INT_CST_NUNITS): New.
23497 (TREE_INT_CST_EXT_NUNITS): Likewise.
23498 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
23499 (TREE_INT_CST_ELT): Likewise.
23500 (INT_CST_LT): Delete.
23501 (tree_int_cst_elt_check): New (two forms).
23502 (type_code_size): Update comment.
23503 (make_int_cst_stat, make_int_cst): New.
23504 (tree_to_double_int): Delete.
23505 (double_int_fits_to_tree_p): Delete.
23506 (force_fit_type_double): Delete.
23507 (build_int_cstu): Replace with out-of-line function.
23508 (build_int_cst_wide): Delete.
23509 (tree_int_cst_lt): Define inline.
23510 (tree_int_cst_le): New.
23511 (tree_int_cst_compare): Define inline.
23512 (tree_int_cst_min_precision): Take a signop rather than a bool.
23513 (wi::int_traits <const_tree>): New.
23514 (wi::int_traits <tree>): New.
23515 (wi::extended_tree): New.
23516 (wi::int_traits <wi::extended_tree>): New.
23517 (wi::to_widest): New.
23518 (wi::to_offset): New.
23519 (wi::fits_to_tree_p): New.
23520 (wi::min_value): New.
23521 (wi::max_value): New.
23522 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
23523 (copy_tree_body_r): Likewise.
23524 * tree-object-size.c (compute_object_offset): Likewise.
23525 (addr_object_size): Likewise.
23526 * tree-predcom.c: Include wide-int-print.h.
23527 (struct dref_d): Change type of offset to widest_int.
23528 (dump_dref): Call wide-int printer.
23529 (aff_combination_dr_offset): Use wide-int interfaces.
23530 (determine_offset): Take a widest_int pointer rather than a
23531 double_int pointer.
23532 (split_data_refs_to_components): Use wide-int interfaces.
23533 (suitable_component_p): Likewise.
23534 (order_drefs): Likewise.
23535 (add_ref_to_chain): Likewise.
23536 (valid_initializer_p): Likewise.
23537 (determine_roots_comp): Likewise.
23538 * tree-pretty-print.c: Include wide-int-print.h.
23539 (dump_generic_node): Use wide-int interfaces.
23540 * tree-sra.c (sra_ipa_modify_expr): Likewise.
23541 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
23542 (move_fixed_address_to_symbol): Likewise.
23543 (move_hint_to_base): Likewise.
23544 (move_pointer_to_base): Likewise.
23545 (move_variant_to_index): Likewise.
23546 (most_expensive_mult_to_index): Likewise.
23547 (addr_to_parts): Likewise.
23548 (copy_ref_info): Likewise.
23549 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
23550 (indirect_refs_may_alias_p): Likewise.
23551 (stmt_kills_ref_p_1): Likewise.
23552 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
23553 * tree-ssa-ccp.c: Update comment at top of file. Include
23555 (struct prop_value_d): Change type of mask to widest_int.
23556 (extend_mask): New function.
23557 (dump_lattice_value): Use wide-int interfaces.
23558 (get_default_value): Likewise.
23559 (set_constant_value): Likewise.
23560 (set_value_varying): Likewise.
23561 (valid_lattice_transition): Likewise.
23562 (set_lattice_value): Likewise.
23563 (value_to_double_int): Delete.
23564 (value_to_wide_int): New.
23565 (get_value_from_alignment): Use wide-int interfaces.
23566 (get_value_for_expr): Likewise.
23567 (do_dbg_cnt): Likewise.
23568 (ccp_finalize): Likewise.
23569 (ccp_lattice_meet): Likewise.
23570 (bit_value_unop_1): Use widest_ints rather than double_ints.
23571 (bit_value_binop_1): Likewise.
23572 (bit_value_unop): Use wide-int interfaces.
23573 (bit_value_binop): Likewise.
23574 (bit_value_assume_aligned): Likewise.
23575 (evaluate_stmt): Likewise.
23576 (ccp_fold_stmt): Likewise.
23577 (visit_cond_stmt): Likewise.
23578 (ccp_visit_stmt): Likewise.
23579 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
23580 (constant_pointer_difference): Likewise.
23581 (associate_pointerplus): Likewise.
23582 (combine_conversions): Likewise.
23583 * tree-ssa-loop.h: Include wide-int.h.
23584 (struct tree_niter_desc): Change type of max to widest_int.
23585 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
23586 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
23587 (remove_redundant_iv_tests): Likewise.
23588 (canonicalize_loop_induction_variables): Likewise.
23589 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
23590 (constant_multiple_of): Take a widest_int pointer instead of
23591 a double_int pointer.
23592 (get_computation_aff): Use wide-int interfaces.
23593 (ptr_difference_cost): Likewise.
23594 (difference_cost): Likewise.
23595 (get_loop_invariant_expr_id): Likewise.
23596 (get_computation_cost_at): Likewise.
23597 (iv_elimination_compare_lt): Likewise.
23598 (may_eliminate_iv): Likewise.
23599 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
23600 instead of double_int.
23601 (max_loop_iterations): Likewise.
23602 (max_stmt_executions): Likewise.
23603 (estimated_stmt_executions): Likewise.
23604 * tree-ssa-loop-niter.c: Include wide-int-print.h.
23605 (split_to_var_and_offset): Use wide-int interfaces.
23606 (determine_value_range): Likewise.
23607 (bound_difference_of_offsetted_base): Likewise.
23608 (bounds_add): Take a widest_int instead of a double_int.
23609 (number_of_iterations_ne_max): Use wide-int interfaces.
23610 (number_of_iterations_ne): Likewise.
23611 (number_of_iterations_lt_to_ne): Likewise.
23612 (assert_loop_rolls_lt): Likewise.
23613 (number_of_iterations_lt): Likewise.
23614 (number_of_iterations_le): Likewise.
23615 (number_of_iterations_cond): Likewise.
23616 (number_of_iterations_exit): Likewise.
23617 (finite_loop_p): Likewise.
23618 (derive_constant_upper_bound_assign): Likewise.
23619 (derive_constant_upper_bound): Return a widest_int.
23620 (derive_constant_upper_bound_ops): Likewise.
23621 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
23622 (record_estimate): Take a widest_int rather than a double_int.
23623 (record_nonwrapping_iv): Use wide-int interfaces.
23624 (double_int_cmp): Delete.
23625 (wide_int_cmp): New.
23626 (bound_index): Take a widest_int rather than a double_int.
23627 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
23628 (maybe_lower_iteration_bound): Likewise.
23629 (estimate_numbers_of_iterations_loop): Likewise.
23630 (estimated_loop_iterations): Take a widest_int pointer than than
23631 a double_int pointer.
23632 (estimated_loop_iterations_int): Use wide-int interfaces.
23633 (max_loop_iterations): Take a widest_int pointer than than
23634 a double_int pointer.
23635 (max_loop_iterations_int): Use wide-int interfaces.
23636 (max_stmt_executions): Take a widest_int pointer than than
23637 a double_int pointer.
23638 (estimated_stmt_executions): Likewise.
23639 (n_of_executions_at_most): Use wide-int interfaces.
23640 (scev_probably_wraps_p): Likewise.
23641 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
23642 to real_to_integer.
23643 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
23645 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
23646 double_ints. Adjust for trailing_wide_ints <3> representation.
23647 (set_nonzero_bits): Likewise.
23648 (get_range_info): Return wide_ints rather than double_ints.
23649 Adjust for trailing_wide_ints <3> representation.
23650 (get_nonzero_bits): Likewise.
23651 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
23653 * tree-ssanames.h (struct range_info_def): Replace min, max and
23654 nonzero_bits with a trailing_wide_ints <3>.
23655 (set_range_info): Use wide_int_refs rather than double_ints.
23656 (set_nonzero_bits): Likewise.
23657 (get_range_info): Return wide_ints rather than double_ints.
23658 (get_nonzero_bits): Likewise.
23659 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
23660 * tree-ssa-pre.c (phi_translate_1): Likewise.
23661 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
23662 (acceptable_pow_call): Likewise.
23663 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
23665 (vn_reference_fold_indirect): Likewise.
23666 (vn_reference_maybe_forwprop_address): Likewise.
23667 (valueize_refs_1): Likewise.
23668 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
23669 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
23670 tree_int_cst_lt and tree_int_cst_le.
23671 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
23673 (streamer_alloc_tree): Likewise.
23674 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
23675 (streamer_write_tree_header): Likewise.
23676 (streamer_write_integer_cst): Likewise.
23677 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
23678 (build_constructors): Likewise.
23679 (array_value_type): Likewise.
23680 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
23681 (vect_check_gather): Likewise.
23682 * tree-vect-generic.c (build_replicated_const): Likewise.
23683 (expand_vector_divmod): Likewise.
23684 * tree-vect-loop.c (vect_transform_loop): Likewise.
23685 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
23686 (vect_do_peeling_for_alignment): Likewise.
23687 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
23688 * tree-vrp.c: Include wide-int.h.
23689 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
23690 (extract_range_from_assert): Use wide-int interfaces.
23691 (vrp_int_const_binop): Likewise.
23692 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
23693 double_int pointers.
23694 (ranges_from_anti_range): Use wide-int interfaces.
23695 (quad_int_cmp): Delete.
23696 (quad_int_pair_sort): Likewise.
23697 (extract_range_from_binary_expr_1): Use wide-int interfaces.
23698 (extract_range_from_unary_expr_1): Likewise.
23699 (adjust_range_with_scev): Likewise.
23700 (masked_increment): Take and return wide_ints rather than double_ints.
23701 (register_edge_assert_for_2): Use wide-int interfaces.
23702 (check_array_ref): Likewise.
23703 (search_for_addr_array): Likewise.
23704 (maybe_set_nonzero_bits): Likewise.
23705 (union_ranges): Pass an integer of the correct type instead of
23706 using integer_one_node.
23707 (intersect_ranges): Likewise.
23708 (simplify_truth_ops_using_ranges): Likewise.
23709 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
23710 (range_fits_type_p): Likewise.
23711 (simplify_cond_using_ranges): Likewise. Take a signop rather than
23713 (simplify_conversion_using_ranges): Use wide-int interfaces.
23714 (simplify_float_conversion_using_ranges): Likewise.
23715 (vrp_finalize): Likewise.
23716 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
23717 (gimple_stringops_transform): Likewise.
23718 * varasm.c (decode_addr_const): Likewise.
23719 (const_hash_1): Likewise.
23720 (const_rtx_hash_1): Likewise
23721 (output_constant): Likewise.
23722 (array_size_for_constructor): Likewise.
23723 (output_constructor_regular_field): Likewise.
23724 (output_constructor_bitfield): Likewise.
23725 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
23726 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
23728 * gencheck.c: Define BITS_PER_UNIT.
23729 * wide-int.cc: New.
23731 * wide-int-print.cc: New.
23732 * wide-int-print.h: New.
23734 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23736 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
23738 2014-05-06 Richard Biener <rguenther@suse.de>
23740 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
23741 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
23742 (TODO_verify_all): Adjust.
23743 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
23744 TODO_verify_stmts and TODO_verify_rtl_sharing.
23745 * bb-reorder.c: Likewise.
23746 * cfgexpand.c: Likewise.
23747 * cprop.c: Likewise.
23749 * function.c: Likewise.
23750 * fwprop.c: Likewise.
23751 * gcse.c: Likewise.
23752 * gimple-ssa-isolate-paths.c: Likewise.
23753 * gimple-ssa-strength-reduction.c: Likewise.
23754 * ipa-split.c: Likewise.
23755 * loop-init.c: Likewise.
23756 * loop-unroll.c: Likewise.
23757 * lower-subreg.c: Likewise.
23758 * modulo-sched.c: Likewise.
23759 * postreload-gcse.c: Likewise.
23760 * predict.c: Likewise.
23761 * recog.c: Likewise.
23762 * sched-rgn.c: Likewise.
23763 * store-motion.c: Likewise.
23764 * tracer.c: Likewise.
23765 * trans-mem.c: Likewise.
23766 * tree-call-cdce.c: Likewise.
23767 * tree-cfg.c: Likewise.
23768 * tree-cfgcleanup.c: Likewise.
23769 * tree-complex.c: Likewise.
23770 * tree-eh.c: Likewise.
23771 * tree-emutls.c: Likewise.
23772 * tree-if-conv.c: Likewise.
23773 * tree-into-ssa.c: Likewise.
23774 * tree-loop-distribution.c: Likewise.
23775 * tree-object-size.c: Likewise.
23776 * tree-parloops.c: Likewise.
23777 * tree-pass.h: Likewise.
23778 * tree-sra.c: Likewise.
23779 * tree-ssa-ccp.c: Likewise.
23780 * tree-ssa-copy.c: Likewise.
23781 * tree-ssa-copyrename.c: Likewise.
23782 * tree-ssa-dce.c: Likewise.
23783 * tree-ssa-dom.c: Likewise.
23784 * tree-ssa-dse.c: Likewise.
23785 * tree-ssa-forwprop.c: Likewise.
23786 * tree-ssa-ifcombine.c: Likewise.
23787 * tree-ssa-loop-ch.c: Likewise.
23788 * tree-ssa-loop-ivcanon.c: Likewise.
23789 * tree-ssa-loop.c: Likewise.
23790 * tree-ssa-math-opts.c: Likewise.
23791 * tree-ssa-phiopt.c: Likewise.
23792 * tree-ssa-phiprop.c: Likewise.
23793 * tree-ssa-pre.c: Likewise.
23794 * tree-ssa-reassoc.c: Likewise.
23795 * tree-ssa-sink.c: Likewise.
23796 * tree-ssa-strlen.c: Likewise.
23797 * tree-ssa-tail-merge.c: Likewise.
23798 * tree-ssa-uncprop.c: Likewise.
23799 * tree-switch-conversion.c: Likewise.
23800 * tree-tailcall.c: Likewise.
23801 * tree-vect-generic.c: Likewise.
23802 * tree-vectorizer.c: Likewise.
23803 * tree-vrp.c: Likewise.
23804 * tsan.c: Likewise.
23805 * var-tracking.c: Likewise.
23806 * bt-load.c: Likewise.
23807 * cfgcleanup.c: Likewise.
23808 * combine-stack-adj.c: Likewise.
23809 * combine.c: Likewise.
23810 * compare-elim.c: Likewise.
23811 * config/epiphany/resolve-sw-modes.c: Likewise.
23812 * config/i386/i386.c: Likewise.
23813 * config/mips/mips.c: Likewise.
23814 * config/s390/s390.c: Likewise.
23815 * config/sh/sh_treg_combine.cc: Likewise.
23816 * config/sparc/sparc.c: Likewise.
23819 * final.c: Likewise.
23820 * ifcvt.c: Likewise.
23821 * mode-switching.c: Likewise.
23822 * passes.c: Likewise.
23823 * postreload.c: Likewise.
23825 * reg-stack.c: Likewise.
23826 * regcprop.c: Likewise.
23827 * regrename.c: Likewise.
23830 2014-05-06 Richard Biener <rguenther@suse.de>
23832 PR middle-end/61070
23833 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
23834 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
23836 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
23839 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
23841 2014-05-05 Radovan Obradovic <robradovic@mips.com>
23842 Tom de Vries <tom@codesourcery.com>
23844 * target.def (call_fusage_contains_non_callee_clobbers): New
23846 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
23848 (@node Miscellaneous Register Hooks): New node.
23849 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
23850 * doc/tm.texi: Regenerate.
23852 2014-05-05 Marek Polacek <polacek@redhat.com>
23855 * opts.c (common_handle_option): Call error_at instead of warning_at.
23857 2014-05-05 Richard Biener <rguenther@suse.de>
23859 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
23860 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
23861 under the TODO_verify_il umbrella.
23863 2014-05-05 Richard Biener <rguenther@suse.de>
23865 * passes.c (execute_function_todo): Move TODO_verify_flow under
23866 the TODO_verify_ul umbrella.
23868 2014-05-05 Richard Biener <rguenther@suse.de>
23870 PR middle-end/61010
23871 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
23872 X & CST away from a CST that is the mask of a mode.
23874 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23876 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
23877 int argument to enum machine_mode.
23878 (picochip_class_max_nregs): Ditto.
23879 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
23880 (picochip_class_max_nregs): Ditto.
23882 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23884 * target.def: Add new target hook.
23885 * doc/tm.texi: Regenerate.
23886 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
23887 * targhooks.c (default_keep_leaf_when_profiled): New function.
23889 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
23890 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
23892 2014-05-05 Bin Cheng <bin.cheng@arm.com>
23894 PR tree-optimization/60363
23895 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
23896 (copy_phi_args): New parameters. Call get_value_locus_in_path.
23897 (update_destination_phis): New parameter.
23898 (create_edge_and_update_destination_phis): Ditto.
23899 (ssa_fix_duplicate_block_edges): Pass new arguments.
23900 (thread_single_edge): Ditto.
23902 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
23904 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
23905 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
23906 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
23907 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
23908 Use RS6000_BTM_HARD_FLOAT.
23909 (BU_MISC_2): Likewise.
23910 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
23911 RS6000_BTM_HARD_FLOAT.
23912 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
23913 is explicitly used.
23914 (rs6000_invalid_builtin): Add hard floating builtin support.
23915 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
23916 hard float builtins.
23917 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
23919 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
23921 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
23922 Add missing function* argument.
23924 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
23926 * lra-constraints.c (valid_address_p): Move earlier in file.
23927 Add a constraint argument to the address_info version.
23928 (satisfies_memory_constraint_p): New function.
23929 (satisfies_address_constraint_p): Likewise.
23930 (process_alt_operands, curr_insn_transform): Use them.
23931 (process_address): Pass the constraint to valid_address_p when
23932 checking address operands.
23934 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
23936 * config/mips/mips.c (mips_isa_rev): New variable.
23937 (mips_set_architecture): Set it.
23938 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
23940 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
23941 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
23942 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
23943 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
23944 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
23945 conditions in terms of mips_isa_rev.
23946 (mips_isa_rev): Declare.
23948 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
23950 * config/sh/sh-mem.cc: Use tabs instead of spaces.
23951 (prob_unlikely, prob_likely): Make variables const.
23953 2014-05-03 Denis Chertykov <chertykov@gmail.com>
23955 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
23957 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
23959 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
23961 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
23963 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
23964 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
23965 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
23967 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
23968 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
23970 Replace usage of ROUND_REG with sh_round_reg.
23971 Use CEIL instead of ROUND_ADVANCE.
23973 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
23976 * config/sh/sh.c: Include stdlib headers before everything else.
23978 2014-05-02 Jakub Jelinek <jakub@redhat.com>
23980 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
23981 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
23982 (gimplify_adjust_omp_clauses): Simd region is never
23983 directly nested in combined parallel. Instead, for linear
23984 with copyin/copyout, if in combined for simd loop, make decl
23985 firstprivate/lastprivate on OMP_FOR.
23986 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
23987 expand_omp_for_static_chunk): When setting endvar, also set
23988 fd->loop.v to the same value.
23990 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23992 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
23994 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
23996 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
23999 2014-05-02 Marek Polacek <polacek@redhat.com>
24001 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
24003 2014-05-02 Kito Cheng <kito@0xlab.org>
24005 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
24006 to a C expression marco.
24007 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
24008 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
24009 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
24010 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
24011 HONOR_REG_ALLOC_ORDER.
24012 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
24014 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24016 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
24018 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24020 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
24022 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
24024 * tree-if-conv.c (is_cond_scalar_reduction): New function.
24025 (convert_scalar_cond_reduction): Likewise.
24026 (predicate_scalar_phi): Add recognition and transformation
24027 of simple conditioanl reduction to be vectorizable.
24029 2014-05-01 Marek Polacek <polacek@redhat.com>
24032 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
24034 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
24036 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
24037 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
24038 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
24039 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
24040 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
24041 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
24042 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
24043 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
24045 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
24047 * config/arc/arc.opt (mlra): Move comment above option name
24048 to avoid mis-parsing as language options.
24050 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24052 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
24053 * config/sol2.h: ... here.
24054 * config/sol2-10.h: Remove.
24056 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
24057 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
24058 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
24059 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
24060 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
24061 * config/sol2.h: ... here.
24062 (SECTION_NAME_FORMAT): Don't redefine.
24063 (STARTFILE_ARCH32_SPEC): Rename to ...
24064 (STARTFILE_ARCH_SPEC): ... this.
24065 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
24066 * config/sparc/sol2.h: ... here.
24067 (SECTION_NAME_FORMAT): Don't undef.
24068 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
24069 (SUBTARGET_EXTRA_SPECS): Remove.
24070 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
24072 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
24073 (MD_STARTFILE_PREFIX): Remove.
24074 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
24075 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
24076 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
24077 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
24078 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
24079 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
24080 * config/i386/sol2.h: ... here.
24081 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
24082 * config/i386/sol2-bi.h: Remove.
24083 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
24084 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
24086 * config/i386/t-sol2-64: Rename to ...
24087 * config/i386/t-sol2: ... this.
24088 * config/sparc/t-sol2-64: Rename to ...
24089 * config/sparc/t-sol2: ... this.
24091 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
24092 sol2_tm_file_head, sol2_tm_file_tail.
24093 Include ${cpu_type}/sol2.h before sol2.h.
24095 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
24096 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
24097 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
24098 Reflect i386/t-sol2-64 renaming.
24099 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
24100 Reflect sparc/t-sol2-64 renaming.
24102 2014-04-30 Richard Biener <rguenther@suse.de>
24104 * passes.c (execute_function_todo): Move TODO_verify_stmts
24105 and TODO_verify_ssa under the TODO_verify_il umbrella.
24106 * tree-ssa.h (verify_ssa): Adjust prototype.
24107 * tree-ssa.c (verify_ssa): Add parameter to tell whether
24108 we should verify SSA operands.
24109 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
24110 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
24111 whether we should verify whether not throwing stmts have EH info.
24112 * graphite-scop-detection.c (create_sese_edges): Adjust.
24113 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
24114 * tree-eh.c (lower_try_finally_switch): Do not add the
24115 default case label twice.
24117 2014-04-30 Marek Polacek <polacek@redhat.com>
24119 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
24120 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
24121 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
24122 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
24124 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
24126 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
24127 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
24128 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
24129 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
24130 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
24131 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
24132 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
24133 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
24135 2014-04-29 David Malcolm <dmalcolm@redhat.com>
24137 * tree-cfg.c (dump_function_to_file): Dump the return type of
24138 functions, in a line to itself before the function body, mimicking
24139 the layout of a C function.
24141 2014-04-29 Jakub Jelinek <jakub@redhat.com>
24143 PR tree-optimization/60971
24144 * tree-tailcall.c (process_assignment): Reject conversions which
24147 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
24149 * calls.c (initialize_argument_information): Always treat
24150 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
24151 (expand_call): Likewise.
24152 (emit_library_call_calue_1): Likewise.
24153 * expr.c (PUSH_ARGS_REVERSED): Do not define.
24154 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
24157 2014-04-29 Nick Clifton <nickc@redhat.com>
24159 * config/msp430/msp430.md (umulsidi): Fix typo.
24160 (mulhisi3): Enable even inside interrupt handlers.
24161 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
24162 bigger return address pushed in large mode.
24164 2014-04-29 Nick Clifton <nickc@redhat.com>
24166 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
24167 (arc_init_reg_tables): Use a machine_mode enum to iterate over
24169 * config/m32r/m32r.c (init_reg_tables): Likewise.
24170 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
24171 enum to hold the modes.
24173 2014-04-29 Richard Biener <rguenther@suse.de>
24175 * dominance.c (free_dominance_info): Add overload with
24176 function parameter.
24177 (dom_info_state): Likewise.
24178 (dom_info_available_p): Likewise.
24179 * basic-block.h (free_dominance_info, dom_info_state,
24180 dom_info_available_p): Declare overloads.
24181 * passes.c (execute_function_todo): Verify that verifiers
24182 don't change dominator info state. Drop dominator info
24183 for IPA pass invocations.
24184 * cgraph.c (release_function_body): Restore asserts that
24185 dominator information is released.
24187 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
24189 * doc/invoke.texi: Fix typo.
24190 * tree-vrp.c: Fix typos.
24191 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
24193 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24195 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
24197 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
24199 * config/aarch64/aarch64-builtins.c
24200 (aarch64_types_storestruct_lane_qualifiers): New.
24201 (TYPES_STORESTRUCT_LANE): Likewise.
24202 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
24203 (st3_lane): Likewise.
24204 (st4_lane): Likewise.
24205 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
24206 (vec_store_lanesci_lane<mode>): Likewise.
24207 (vec_store_lanesxi_lane<mode>): Likewise.
24208 (aarch64_st2_lane<VQ:mode>): Likewise.
24209 (aarch64_st3_lane<VQ:mode>): Likewise.
24210 (aarch64_st4_lane<VQ:mode>): Likewise.
24211 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
24212 * config/aarch64/arm_neon.h
24213 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
24214 use new macro arguments.
24215 (__ST3_LANE_FUNC): Likewise.
24216 (__ST4_LANE_FUNC): Likewise.
24217 * config/aarch64/iterators.md (V_TWO_ELEM): New.
24218 (V_THREE_ELEM): Likewise.
24219 (V_FOUR_ELEM): Likewise.
24221 2014-04-28 David Malcolm <dmalcolm@redhat.com>
24223 * doc/gimple.texi: Replace the description of the now-defunct
24224 union gimple_statement_d with a diagram showing the
24225 gimple_statement_base class hierarchy and its relationships to
24226 the GSS_ and GIMPLE_ enums.
24228 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
24230 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
24231 * config/aarch64/aarch64.c
24232 (aarch64_cannot_change_mode_class): Weaken conditions.
24233 (aarch64_modes_tieable_p): New.
24234 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
24236 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
24238 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24239 (loadsync_<mode>): Change mode.
24240 (load_quadpti, store_quadpti): New.
24241 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24242 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24244 2014-04-28 Martin Jambor <mjambor@suse.cz>
24246 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
24247 same alias type as the original statement.
24248 (subreplacement_assignment_data): New type.
24249 (handle_unscalarized_data_in_subtree): New type of parameter,
24250 generate new memory accesses with same alias type as the original
24252 (load_assign_lhs_subreplacements): Likewise.
24253 (sra_modify_constructor_assign): Generate new memory accesses with
24254 same alias type as the original statement.
24256 2014-04-28 Richard Biener <rguenther@suse.de>
24258 * tree-pass.h (TODO_verify_il): Define.
24259 (TODO_verify_all): Complete properly.
24260 * passes.c (execute_function_todo): Move existing loop-closed
24261 SSA verification under TODO_verify_il.
24262 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
24263 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
24264 Fix tree sharing issue.
24266 2014-04-28 Richard Biener <rguenther@suse.de>
24268 PR middle-end/60092
24269 * builtins.def (DEF_C11_BUILTIN): Add.
24270 (BUILT_IN_ALIGNED_ALLOC): Likewise.
24271 * coretypes.h (enum function_class): Add function_c11_misc.
24272 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
24273 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
24274 (call_may_clobber_ref_p_1): Likewise.
24275 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
24276 (mark_all_reaching_defs_necessary_1): Likewise.
24277 (propagate_necessity): Likewise.
24278 (eliminate_unnecessary_stmts): Likewise.
24279 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
24281 2014-04-28 Richard Biener <rguenther@suse.de>
24283 * tree-vrp.c (vrp_var_may_overflow): Remove.
24284 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
24285 with overflow immediately bump to one before that value and
24286 let iteration figure out overflow status.
24288 2014-04-28 Richard Biener <rguenther@suse.de>
24290 * configure.ac: Do valgrind header checks unconditionally.
24291 Add --enable-valgrind-annotations.
24292 * system.h: Guard valgrind header inclusion with
24293 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
24294 * alloc-pool.c (pool_alloc, pool_free): Use
24295 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
24296 to guard possibly dead code.
24297 * config.in: Regenerated.
24298 * configure: Likewise.
24300 2014-04-28 Jeff Law <law@redhat.com>
24302 PR tree-optimization/60902
24303 * tree-ssa-threadedge.c
24304 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
24305 over real defs when invalidating outputs from statements that do not
24306 produce useful outputs for threading.
24308 2014-04-28 Richard Biener <rguenther@suse.de>
24310 PR tree-optimization/60979
24311 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
24312 SCOPs that end in a block with a successor with abnormal
24315 2014-04-28 Richard Biener <rguenther@suse.de>
24317 * tree-pass.h (execute_pass_list): Adjust prototype.
24318 * passes.c (pass_manager::execute_early_local_passes): Adjust.
24319 (do_per_function): Change callback signature, push all actual
24320 work to the callbals.
24321 (do_per_function_toporder): Likewise.
24322 (execute_function_dump): Adjust.
24323 (execute_function_todo): Likewise.
24324 (clear_last_verified): Likewise.
24325 (verify_curr_properties): Likewise.
24326 (update_properties_after_pass): Likewise.
24327 (execute_pass_list_1): Split out from ...
24328 (execute_pass_list): ... here. Adjust.
24329 (execute_ipa_pass_list): Likewise.
24330 * cgraphunit.c (cgraph_add_new_function): Adjust.
24331 (analyze_function): Likewise.
24332 (expand_function): Likewise.
24333 * cgraph.c (release_function_body): Free dominance info
24334 here instead of asserting it was magically freed elsewhere.
24336 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
24338 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
24339 * configure: Regenerate.
24340 * config/sparc/sparc.opt (muser-mode): New option.
24341 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
24343 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
24344 * doc/invoke.texi (SPARC options): Document -muser-mode.
24346 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
24348 * cselib.c (find_slot_memmode): Delete.
24349 (cselib_hasher): Change compare_type to a struct.
24350 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
24352 (preserve_constants_and_equivs): Adjust for new compare_type.
24353 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
24354 (wrap_constant): Delete.
24355 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
24357 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
24359 * doc/install.texi (Building with profile feedback): Remove
24362 2014-04-26 Tom de Vries <tom@codesourcery.com>
24364 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
24367 2014-04-25 Cary Coutant <ccoutant@google.com>
24370 * dwarf2out.c (should_move_die_to_comdat): A type definition
24371 can contain a subprogram definition, but don't move it to a
24373 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
24374 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
24376 (clone_tree_hash): Rename to...
24377 (clone_tree_partial): ...this; change callers. Copy
24378 DW_TAG_subprogram DIEs as declarations.
24379 (copy_decls_walk): Don't copy children of a declaration into a
24382 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
24385 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
24388 2014-04-25 Jiong Wang <jiong.wang@arm.com>
24390 * config/arm/predicates.md (call_insn_operand): Add long_call check.
24391 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
24393 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
24396 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24398 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
24400 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24402 PR tree-optimization/60930
24403 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
24404 creating a multiply candidate by folding two constant
24405 multiplicands when the result overflows.
24407 2014-04-25 Jakub Jelinek <jakub@redhat.com>
24409 PR tree-optimization/60960
24410 * tree-vect-generic.c (expand_vector_operation): Only call
24411 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
24413 2014-04-25 Tom de Vries <tom@codesourcery.com>
24415 * expr.c (clobber_reg_mode): New function.
24416 * expr.h (clobber_reg): New function.
24418 2014-04-25 Tom de Vries <tom@codesourcery.com>
24420 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
24423 2014-04-25 Radovan Obradovic <robradovic@mips.com>
24424 Tom de Vries <tom@codesourcery.com>
24426 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
24428 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
24429 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
24430 new argument to find_all_hard_reg_sets call.
24432 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24434 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
24435 Use HOST_WIDE_INT_C for mask literal.
24436 (aarch_rev16_shleft_mask_imm_p): Likewise.
24438 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
24441 * config/sparc/sparc.md (ashlsi3_extend): Delete.
24443 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
24445 PR preprocessor/56540
24446 * config/i386/i386-c.c (ix86_target_macros): Define
24447 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
24449 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24451 * configure.ac (tga_func): Remove.
24452 (LIB_TLS_SPEC): Remove.
24453 * configure: Regenerate.
24454 * config.in: Regenerate.
24455 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
24457 2014-04-25 Richard Biener <rguenther@suse.de>
24460 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
24461 call stmt use/clobber sets during stmt walk instead of
24462 walking the possibly incomplete set of caller edges.
24464 2014-04-25 Richard Biener <rguenther@suse.de>
24467 * passes.c (apply_ipa_transforms): Inline into only caller ...
24468 (execute_one_pass): ... here. Properly bring in function
24469 bodies for nodes we want to apply IPA transforms to.
24471 2014-04-24 Cong Hou <congh@google.com>
24473 PR tree-optimization/60896
24474 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
24475 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
24476 (vect_mark_pattern_stmts): Set the def type of all statements in
24477 PATTERN_DEF_SEQ as vect_internal_def.
24479 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
24481 * doc/extend.texi (PowerPC Built-in Functions): Document new
24482 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
24483 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
24485 * config/rs6000/predicates.md (const_0_to_3_operand): New
24486 predicate to match 0..3 integer constants.
24488 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
24489 to support adding miscellaneous builtin functions.
24490 (BU_DFP_MISC_2): Likewise.
24491 (BU_P7_MISC_1): Likewise.
24492 (BU_P7_MISC_2): Likewise.
24493 (BU_P8V_MISC_3): Likewise.
24494 (BU_MISC_1): Likewise.
24495 (BU_MISC_2): Likewise.
24496 (DIVWE): Add extended divide builtin functions.
24497 (DIVWEO): Likewise.
24498 (DIVWEU): Likewise.
24499 (DIVWEUO): Likewise.
24501 (DIVDEO): Likewise.
24502 (DIVDEU): Likewise.
24503 (DIVDEUO): Likewise.
24504 (DXEX): Add decimal floating-point builtin functions.
24506 (DDEDPD): Likewise.
24507 (DDEDPDQ): Likewise.
24508 (DENBCD): Likewise.
24509 (DENBCDQ): Likewise.
24513 (DSCLIQ): Likewise.
24515 (DSCRIQ): Likewise.
24516 (CDTBCD): Add new BCD builtin functions.
24517 (CBCDTD): Likewise.
24518 (ADDG6S): Likewise.
24519 (BCDADD): Likewise.
24520 (BCDADD_LT): Likewise.
24521 (BCDADD_EQ): Likewise.
24522 (BCDADD_GT): Likewise.
24523 (BCDADD_OV): Likewise.
24524 (BCDSUB): Likewise.
24525 (BCDSUB_LT): Likewise.
24526 (BCDSUB_EQ): Likewise.
24527 (BCDSUB_GT): Likewise.
24528 (BCDSUB_OV): Likewise.
24529 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
24530 (UNPACK_TD): Likewise.
24531 (PACK_TF): Likewise.
24532 (UNPACK_TF): Likewise.
24533 (UNPACK_TF_0): Likewise.
24534 (UNPACK_TF_1): Likewise.
24535 (PACK_V1TI): Likewise.
24536 (UNPACK_V1TI): Likewise.
24538 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
24539 support for decimal floating point builtin functions.
24540 (rs6000_expand_ternop_builtin): Add checks for the new builtin
24541 functions that take constant arguments.
24542 (rs6000_invalid_builtin): Add decimal floating point builtin support.
24543 (rs6000_init_builtins): Setup long double, _Decimal64, and
24544 _Decimal128 types for new builtin functions.
24545 (builtin_function_type): Set the unsigned flags appropriately for
24546 the new builtin functions.
24547 (rs6000_opt_masks): Add support for decimal floating point builtin
24550 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
24551 floating point builtin functions.
24552 (RS6000_BTM_COMMON): Likewise.
24553 (RS6000_BTI_long_double): Likewise.
24554 (RS6000_BTI_dfloat64): Likewise.
24555 (RS6000_BTI_dfloat128): Likewise.
24556 (long_double_type_internal_node): Likewise.
24557 (dfloat64_type_internal_node): Likewise.
24558 (dfloat128_type_internal_node): Likewise.
24560 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
24561 2.07 bcd arithmetic instructions.
24562 (UNSPEC_BCDSUB): Likewise.
24563 (UNSPEC_BCD_OVERFLOW): Likewise.
24564 (UNSPEC_BCD_ADD_SUB): Likewise.
24565 (bcd_add_sub): Likewise.
24566 (BCD_TEST): Likewise.
24567 (bcd<bcd_add_sub>): Likewise.
24568 (bcd<bcd_add_sub>_test): Likewise.
24569 (bcd<bcd_add_sub>_test2): Likewise.
24570 (bcd<bcd_add_sub>_<code>): Likewise.
24571 (peephole2 for combined bcd ops): Likewise.
24573 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
24574 decimal floating point builtin functions.
24575 (UNSPEC_DENBCD): Likewise.
24576 (UNSPEC_DXEX): Likewise.
24577 (UNSPEC_DIEX): Likewise.
24578 (UNSPEC_DSCLI): Likewise.
24579 (UNSPEC_DSCRI): Likewise.
24580 (D64_D128): Likewise.
24581 (dfp_suffix): Likewise.
24582 (dfp_ddedpd_<mode>): Likewise.
24583 (dfp_denbcd_<mode>): Likewise.
24584 (dfp_dxex_<mode>): Likewise.
24585 (dfp_diex_<mode>): Likewise.
24586 (dfp_dscli_<mode>): Likewise.
24587 (dfp_dscri_<mode>): Likewise.
24589 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
24591 (UNSPEC_CDTBCD): Likewise.
24592 (UNSPEC_CBCDTD): Likewise.
24593 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
24594 (UNSPEC_DIVEO): Likewise.
24595 (UNSPEC_DIVEU): Likewise.
24596 (UNSPEC_DIVEUO): Likewise.
24597 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
24598 pack/unpack 128-bit types.
24599 (UNSPEC_PACK_128BIT): Likewise.
24600 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
24601 (udiv<mode>3): Use idiv_ldiv mode attribute.
24602 (div<mode>3): Likewise.
24603 (addg6s): Add new BCD builtin functions.
24604 (cdtbcd): Likewise.
24605 (cbcdtd): Likewise.
24606 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
24607 (div_extend): Likewise.
24608 (div<div_extend>_<mode>"): Likewise.
24609 (FP128_64): Add support for new builtin functions to pack/unpack
24611 (unpack<mode>): Likewise.
24612 (unpacktf_0): Likewise.
24613 (unpacktf_1): Likewise.
24614 (unpack<mode>_dm): Likewise.
24615 (unpack<mode>_nodm): Likewise.
24616 (pack<mode>): Likewise.
24617 (unpackv1ti): Likewise.
24618 (packv1ti): Likewise.
24620 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
24622 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
24625 2014-04-24 Jakub Jelinek <jakub@redhat.com>
24627 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
24628 * gimplify.c (omp_is_private): Change last argument's type to int.
24629 Only diagnose lastprivate if the simd argument is 1, only diagnose
24630 linear if the simd argument is 2.
24631 (gimplify_omp_for): Adjust omp_is_private callers. When adding
24632 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
24633 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
24634 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
24635 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
24636 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
24637 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
24638 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
24639 * tree-nested.c (convert_nonlocal_omp_clauses,
24640 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
24642 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
24645 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
24648 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
24650 * flag-types.h (enum ivar_visibility): Add.
24652 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
24654 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
24655 function * argument.
24657 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
24659 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
24661 2014-04-24 Radovan Obradovic <robradovic@mips.com>
24662 Tom de Vries <tom@codesourcery.com>
24664 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
24665 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
24667 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
24668 * emit-rtl.c (try_split): Same.
24670 2014-04-24 Radovan Obradovic <robradovic@mips.com>
24671 Tom de Vries <tom@codesourcery.com>
24673 * common.opt (fuse-caller-save): New option.
24675 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
24677 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
24678 elements for big-endian.
24680 2014-04-24 Richard Biener <rguenther@suse.de>
24682 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
24683 during TER and instead use the sepops interface for expanding
24684 non-GIMPLE_SINGLE_RHS.
24686 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24688 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
24689 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
24691 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24693 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
24694 assembler 64-bit option.
24695 * configure: Regenerate.
24697 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24699 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
24700 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
24701 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
24702 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
24703 (TARGET_CRYPTO): Take TARGET_SIMD into account.
24705 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24707 * config/aarch64/aarch64-builtins.c
24708 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
24709 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
24710 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
24711 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
24713 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
24714 (Vrevsuff): New mode attribute.
24716 2014-04-24 Terry Guo <terry.guo@arm.com>
24718 * config/arm/arm.h (machine_function): Define variable
24719 after_arm_reorg here.
24720 * config/arm/arm.c (after_arm_reorg): Remove the definition.
24721 (arm_split_constant): Update the way to access variable
24723 (arm_reorg): Ditto.
24724 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
24726 2014-04-23 Tom de Vries <tom@codesourcery.com>
24728 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
24730 2014-04-23 David Malcolm <dmalcolm@redhat.com>
24732 * is-a.h: Update comments to reflect the following changes to the
24733 "pointerness" of the API, making the template parameter match the
24734 return type, allowing use of is-a.h with typedefs of pointers.
24735 (is_a_helper::cast): Return a T rather then a pointer to a T, so
24736 that the return type matches the parameter to the is_a_helper.
24738 (dyn_cast): Likewise.
24740 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
24741 pointer from the is-a.h API.
24743 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
24744 (is_a_helper <cgraph_node *>::test): ...this, matching change to
24746 (is_a_helper <varpool_node>::test): Likewise, convert to...
24747 (is_a_helper <varpool_node *>::test): ...this.
24749 (varpool_first_variable): Update for removal of implicit pointer
24750 from the is-a.h API.
24751 (varpool_next_variable): Likewise.
24752 (varpool_first_static_initializer): Likewise.
24753 (varpool_next_static_initializer): Likewise.
24754 (varpool_first_defined_variable): Likewise.
24755 (varpool_next_defined_variable): Likewise.
24756 (cgraph_first_defined_function): Likewise.
24757 (cgraph_next_defined_function): Likewise.
24758 (cgraph_first_function): Likewise.
24759 (cgraph_next_function): Likewise.
24760 (cgraph_first_function_with_gimple_body): Likewise.
24761 (cgraph_next_function_with_gimple_body): Likewise.
24762 (cgraph_alias_target): Likewise.
24763 (varpool_alias_target): Likewise.
24764 (cgraph_function_or_thunk_node): Likewise.
24765 (varpool_variable_node): Likewise.
24766 (symtab_real_symbol_p): Likewise.
24767 * cgraphunit.c (referred_to_p): Likewise.
24768 (analyze_functions): Likewise.
24769 (handle_alias_pairs): Likewise.
24770 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
24771 * gimple-ssa.h (gimple_vuse_op): Likewise.
24772 (gimple_vdef_op): Likewise.
24773 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
24774 * gimple.c (gimple_build_asm_1): Likewise.
24775 (gimple_build_try): Likewise.
24776 (gimple_build_resx): Likewise.
24777 (gimple_build_eh_dispatch): Likewise.
24778 (gimple_build_omp_for): Likewise.
24779 (gimple_omp_for_set_clauses): Likewise.
24781 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
24782 (is_a_helper <gimple_statement_asm *>::test): ...this.
24783 (is_a_helper <gimple_statement_bind>::test): Convert to...
24784 (is_a_helper <gimple_statement_bind *>::test): ...this.
24785 (is_a_helper <gimple_statement_call>::test): Convert to...
24786 (is_a_helper <gimple_statement_call *>::test): ...this.
24787 (is_a_helper <gimple_statement_catch>::test): Convert to...
24788 (is_a_helper <gimple_statement_catch *>::test): ...this.
24789 (is_a_helper <gimple_statement_resx>::test): Convert to...
24790 (is_a_helper <gimple_statement_resx *>::test): ...this.
24791 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
24792 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
24793 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
24794 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
24795 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
24796 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
24797 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
24798 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
24799 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
24800 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
24801 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
24802 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
24803 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
24804 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
24805 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
24806 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
24807 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
24808 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
24809 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
24810 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
24811 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
24812 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
24813 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
24814 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
24815 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
24816 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
24817 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
24818 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
24819 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
24820 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
24821 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
24822 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
24823 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
24824 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
24825 (is_a_helper <gimple_statement_phi>::test): Convert to...
24826 (is_a_helper <gimple_statement_phi *>::test): ...this.
24827 (is_a_helper <gimple_statement_transaction>::test): Convert to...
24828 (is_a_helper <gimple_statement_transaction *>::test): ...this.
24829 (is_a_helper <gimple_statement_try>::test): Convert to...
24830 (is_a_helper <gimple_statement_try *>::test): ...this.
24831 (is_a_helper <gimple_statement_wce>::test): Convert to...
24832 (is_a_helper <gimple_statement_wce *>::test): ...this.
24833 (is_a_helper <const gimple_statement_asm>::test): Convert to...
24834 (is_a_helper <const gimple_statement_asm *>::test): ...this.
24835 (is_a_helper <const gimple_statement_bind>::test): Convert to...
24836 (is_a_helper <const gimple_statement_bind *>::test): ...this.
24837 (is_a_helper <const gimple_statement_call>::test): Convert to...
24838 (is_a_helper <const gimple_statement_call *>::test): ...this.
24839 (is_a_helper <const gimple_statement_catch>::test): Convert to...
24840 (is_a_helper <const gimple_statement_catch *>::test): ...this.
24841 (is_a_helper <const gimple_statement_resx>::test): Convert to...
24842 (is_a_helper <const gimple_statement_resx *>::test): ...this.
24843 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
24844 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
24845 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
24846 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
24847 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
24849 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
24851 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
24853 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
24855 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
24856 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
24857 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
24859 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
24860 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
24862 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
24863 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
24864 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
24865 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
24866 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
24867 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
24869 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
24870 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
24871 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
24872 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
24874 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
24875 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
24876 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
24877 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
24878 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
24879 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
24880 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
24881 (is_a_helper <const gimple_statement_phi>::test): Convert to...
24882 (is_a_helper <const gimple_statement_phi *>::test): ...this.
24883 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
24884 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
24885 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
24886 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
24887 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
24888 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
24889 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
24891 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
24893 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
24894 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
24896 (gimple_use_ops): Update for removal of implicit pointer from the
24898 (gimple_set_use_ops): Likewise.
24899 (gimple_vuse): Likewise.
24900 (gimple_vdef): Likewise.
24901 (gimple_vuse_ptr): Likewise.
24902 (gimple_vdef_ptr): Likewise.
24903 (gimple_set_vuse): Likewise.
24904 (gimple_set_vdef): Likewise.
24905 (gimple_omp_return_set_lhs): Likewise.
24906 (gimple_omp_return_lhs): Likewise.
24907 (gimple_omp_return_lhs_ptr): Likewise.
24908 (gimple_call_fntype): Likewise.
24909 (gimple_call_set_fntype): Likewise.
24910 (gimple_call_set_internal_fn): Likewise.
24911 (gimple_call_use_set): Likewise.
24912 (gimple_call_clobber_set): Likewise.
24913 (gimple_bind_vars): Likewise.
24914 (gimple_bind_set_vars): Likewise.
24915 (gimple_bind_body_ptr): Likewise.
24916 (gimple_bind_set_body): Likewise.
24917 (gimple_bind_add_stmt): Likewise.
24918 (gimple_bind_block): Likewise.
24919 (gimple_bind_set_block): Likewise.
24920 (gimple_asm_ninputs): Likewise.
24921 (gimple_asm_noutputs): Likewise.
24922 (gimple_asm_nclobbers): Likewise.
24923 (gimple_asm_nlabels): Likewise.
24924 (gimple_asm_input_op): Likewise.
24925 (gimple_asm_input_op_ptr): Likewise.
24926 (gimple_asm_output_op): Likewise.
24927 (gimple_asm_output_op_ptr): Likewise.
24928 (gimple_asm_set_output_op): Likewise.
24929 (gimple_asm_clobber_op): Likewise.
24930 (gimple_asm_set_clobber_op): Likewise.
24931 (gimple_asm_label_op): Likewise.
24932 (gimple_asm_set_label_op): Likewise.
24933 (gimple_asm_string): Likewise.
24934 (gimple_catch_types): Likewise.
24935 (gimple_catch_types_ptr): Likewise.
24936 (gimple_catch_handler_ptr): Likewise.
24937 (gimple_catch_set_types): Likewise.
24938 (gimple_catch_set_handler): Likewise.
24939 (gimple_eh_filter_types): Likewise.
24940 (gimple_eh_filter_types_ptr): Likewise.
24941 (gimple_eh_filter_failure_ptr): Likewise.
24942 (gimple_eh_filter_set_types): Likewise.
24943 (gimple_eh_filter_set_failure): Likewise.
24944 (gimple_eh_must_not_throw_fndecl): Likewise.
24945 (gimple_eh_must_not_throw_set_fndecl): Likewise.
24946 (gimple_eh_else_n_body_ptr): Likewise.
24947 (gimple_eh_else_e_body_ptr): Likewise.
24948 (gimple_eh_else_set_n_body): Likewise.
24949 (gimple_eh_else_set_e_body): Likewise.
24950 (gimple_try_eval_ptr): Likewise.
24951 (gimple_try_cleanup_ptr): Likewise.
24952 (gimple_try_set_eval): Likewise.
24953 (gimple_try_set_cleanup): Likewise.
24954 (gimple_wce_cleanup_ptr): Likewise.
24955 (gimple_wce_set_cleanup): Likewise.
24956 (gimple_phi_capacity): Likewise.
24957 (gimple_phi_num_args): Likewise.
24958 (gimple_phi_result): Likewise.
24959 (gimple_phi_result_ptr): Likewise.
24960 (gimple_phi_set_result): Likewise.
24961 (gimple_phi_arg): Likewise.
24962 (gimple_phi_set_arg): Likewise.
24963 (gimple_resx_region): Likewise.
24964 (gimple_resx_set_region): Likewise.
24965 (gimple_eh_dispatch_region): Likewise.
24966 (gimple_eh_dispatch_set_region): Likewise.
24967 (gimple_omp_critical_name): Likewise.
24968 (gimple_omp_critical_name_ptr): Likewise.
24969 (gimple_omp_critical_set_name): Likewise.
24970 (gimple_omp_for_clauses): Likewise.
24971 (gimple_omp_for_clauses_ptr): Likewise.
24972 (gimple_omp_for_set_clauses): Likewise.
24973 (gimple_omp_for_collapse): Likewise.
24974 (gimple_omp_for_index): Likewise.
24975 (gimple_omp_for_index_ptr): Likewise.
24976 (gimple_omp_for_set_index): Likewise.
24977 (gimple_omp_for_initial): Likewise.
24978 (gimple_omp_for_initial_ptr): Likewise.
24979 (gimple_omp_for_set_initial): Likewise.
24980 (gimple_omp_for_final): Likewise.
24981 (gimple_omp_for_final_ptr): Likewise.
24982 (gimple_omp_for_set_final): Likewise.
24983 (gimple_omp_for_incr): Likewise.
24984 (gimple_omp_for_incr_ptr): Likewise.
24985 (gimple_omp_for_set_incr): Likewise.
24986 (gimple_omp_for_pre_body_ptr): Likewise.
24987 (gimple_omp_for_set_pre_body): Likewise.
24988 (gimple_omp_parallel_clauses): Likewise.
24989 (gimple_omp_parallel_clauses_ptr): Likewise.
24990 (gimple_omp_parallel_set_clauses): Likewise.
24991 (gimple_omp_parallel_child_fn): Likewise.
24992 (gimple_omp_parallel_child_fn_ptr): Likewise.
24993 (gimple_omp_parallel_set_child_fn): Likewise.
24994 (gimple_omp_parallel_data_arg): Likewise.
24995 (gimple_omp_parallel_data_arg_ptr): Likewise.
24996 (gimple_omp_parallel_set_data_arg): Likewise.
24997 (gimple_omp_task_clauses): Likewise.
24998 (gimple_omp_task_clauses_ptr): Likewise.
24999 (gimple_omp_task_set_clauses): Likewise.
25000 (gimple_omp_task_child_fn): Likewise.
25001 (gimple_omp_task_child_fn_ptr): Likewise.
25002 (gimple_omp_task_set_child_fn): Likewise.
25003 (gimple_omp_task_data_arg): Likewise.
25004 (gimple_omp_task_data_arg_ptr): Likewise.
25005 (gimple_omp_task_set_data_arg): Likewise.
25006 (gimple_omp_taskreg_clauses): Likewise.
25007 (gimple_omp_taskreg_clauses_ptr): Likewise.
25008 (gimple_omp_taskreg_set_clauses): Likewise.
25009 (gimple_omp_taskreg_child_fn): Likewise.
25010 (gimple_omp_taskreg_child_fn_ptr): Likewise.
25011 (gimple_omp_taskreg_set_child_fn): Likewise.
25012 (gimple_omp_taskreg_data_arg): Likewise.
25013 (gimple_omp_taskreg_data_arg_ptr): Likewise.
25014 (gimple_omp_taskreg_set_data_arg): Likewise.
25015 (gimple_omp_task_copy_fn): Likewise.
25016 (gimple_omp_task_copy_fn_ptr): Likewise.
25017 (gimple_omp_task_set_copy_fn): Likewise.
25018 (gimple_omp_task_arg_size): Likewise.
25019 (gimple_omp_task_arg_size_ptr): Likewise.
25020 (gimple_omp_task_set_arg_size): Likewise.
25021 (gimple_omp_task_arg_align): Likewise.
25022 (gimple_omp_task_arg_align_ptr): Likewise.
25023 (gimple_omp_task_set_arg_align): Likewise.
25024 (gimple_omp_single_clauses): Likewise.
25025 (gimple_omp_single_clauses_ptr): Likewise.
25026 (gimple_omp_single_set_clauses): Likewise.
25027 (gimple_omp_target_clauses): Likewise.
25028 (gimple_omp_target_clauses_ptr): Likewise.
25029 (gimple_omp_target_set_clauses): Likewise.
25030 (gimple_omp_target_child_fn): Likewise.
25031 (gimple_omp_target_child_fn_ptr): Likewise.
25032 (gimple_omp_target_set_child_fn): Likewise.
25033 (gimple_omp_target_data_arg): Likewise.
25034 (gimple_omp_target_data_arg_ptr): Likewise.
25035 (gimple_omp_target_set_data_arg): Likewise.
25036 (gimple_omp_teams_clauses): Likewise.
25037 (gimple_omp_teams_clauses_ptr): Likewise.
25038 (gimple_omp_teams_set_clauses): Likewise.
25039 (gimple_omp_sections_clauses): Likewise.
25040 (gimple_omp_sections_clauses_ptr): Likewise.
25041 (gimple_omp_sections_set_clauses): Likewise.
25042 (gimple_omp_sections_control): Likewise.
25043 (gimple_omp_sections_control_ptr): Likewise.
25044 (gimple_omp_sections_set_control): Likewise.
25045 (gimple_omp_for_set_cond): Likewise.
25046 (gimple_omp_for_cond): Likewise.
25047 (gimple_omp_atomic_store_set_val): Likewise.
25048 (gimple_omp_atomic_store_val): Likewise.
25049 (gimple_omp_atomic_store_val_ptr): Likewise.
25050 (gimple_omp_atomic_load_set_lhs): Likewise.
25051 (gimple_omp_atomic_load_lhs): Likewise.
25052 (gimple_omp_atomic_load_lhs_ptr): Likewise.
25053 (gimple_omp_atomic_load_set_rhs): Likewise.
25054 (gimple_omp_atomic_load_rhs): Likewise.
25055 (gimple_omp_atomic_load_rhs_ptr): Likewise.
25056 (gimple_omp_continue_control_def): Likewise.
25057 (gimple_omp_continue_control_def_ptr): Likewise.
25058 (gimple_omp_continue_set_control_def): Likewise.
25059 (gimple_omp_continue_control_use): Likewise.
25060 (gimple_omp_continue_control_use_ptr): Likewise.
25061 (gimple_omp_continue_set_control_use): Likewise.
25062 (gimple_transaction_body_ptr): Likewise.
25063 (gimple_transaction_label): Likewise.
25064 (gimple_transaction_label_ptr): Likewise.
25065 (gimple_transaction_set_body): Likewise.
25066 (gimple_transaction_set_label): Likewise.
25068 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
25069 * ipa-inline-analysis.c (inline_write_summary): Likewise.
25070 * ipa-ref.c (ipa_record_reference): Likewise.
25071 * ipa-reference.c (analyze_function): Likewise.
25072 (ipa_reference_write_optimization_summary): Likewise.
25073 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
25074 (address_taken_from_non_vtable_p): Likewise.
25075 (comdat_can_be_unshared_p_1): Likewise.
25076 * lto-cgraph.c (lto_output_ref): Likewise.
25077 (add_references): Likewise.
25078 (compute_ltrans_boundary): Likewise.
25079 (output_symtab): Likewise.
25080 (input_ref): Likewise.
25081 (input_cgraph_1): Likewise.
25082 (output_cgraph_opt_summary): Likewise.
25083 * lto-streamer-out.c (lto_output): Likewise.
25084 (output_symbol_p): Likewise.
25085 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
25086 (lsei_start_function_in_partition): Likewise.
25087 (lsei_next_variable_in_partition): Likewise.
25088 (lsei_start_variable_in_partition): Likewise.
25089 * symtab.c (insert_to_assembler_name_hash): Likewise.
25090 (unlink_from_assembler_name_hash): Likewise.
25091 (symtab_unregister_node): Likewise.
25092 (symtab_remove_node): Likewise.
25093 (dump_symtab_node): Likewise.
25094 (verify_symtab_base): Likewise.
25095 (verify_symtab_node): Likewise.
25096 (symtab_make_decl_local): Likewise.
25097 (symtab_alias_ultimate_target): Likewise.
25098 (symtab_resolve_alias): Likewise.
25099 (symtab_get_symbol_partitioning_class): Likewise.
25100 * tree-phinodes.c (allocate_phi_node): Likewise.
25101 (reserve_phi_args_for_new_edge): Likewise.
25102 (remove_phi_args): Likewise.
25103 * varpool.c (varpool_node_for_asm): Likewise.
25104 (varpool_remove_unreferenced_decls): Likewise.
25106 2014-04-23 Jeff Law <law@redhat.com>
25108 PR tree-optimization/60902
25109 * tree-ssa-threadedge.c
25110 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
25111 invalidate outputs from statements that do not produce useful
25112 outputs for threading.
25114 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
25116 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
25117 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
25118 machine descriptions for Stack Smashing Protector.
25120 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
25122 * aarch64.md (<optab>_rol<mode>3): New pattern.
25123 (<optab>_rolsi3_uxtw): Likewise.
25124 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
25126 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
25128 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
25129 (arm_cortex_a12_tune): Likewise.
25131 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25133 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
25135 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25137 * config/arm/arm.md (arm_rev16si2): New pattern.
25138 (arm_rev16si2_alt): Likewise.
25139 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
25141 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25143 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
25144 (rev16<mode>2_alt): Likewise.
25145 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
25146 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
25147 (aarch_rev16_shleft_mask_imm_p): Likewise.
25148 (aarch_rev16_p_1): Likewise.
25149 (aarch_rev16_p): Likewise.
25150 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
25151 (aarch_rev16_shright_mask_imm_p): Likewise.
25152 (aarch_rev16_shleft_mask_imm_p): Likewise.
25154 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25156 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
25157 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
25159 (cortex_a53_extra_costs): Likewise.
25160 (cortex_a57_extra_costs): Likewise.
25161 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
25162 (cortexa7_extra_costs): Likewise.
25163 (cortexa8_extra_costs): Likewise.
25164 (cortexa12_extra_costs): Likewise.
25165 (cortexa15_extra_costs): Likewise.
25166 (v7m_extra_costs): Likewise.
25167 (arm_new_rtx_costs): Handle BSWAP.
25169 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25171 * config/arm/arm.c (cortexa8_extra_costs): New table.
25172 (arm_cortex_a8_tune): New tuning struct.
25173 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
25175 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25177 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
25179 2014-04-23 Richard Biener <rguenther@suse.de>
25181 * Makefile.in (OBJS): Remove loop-unswitch.o.
25182 * tree-pass.h (make_pass_rtl_unswitch): Remove.
25183 * passes.def (pass_rtl_unswitch): Likewise.
25184 * loop-init.c (gate_rtl_unswitch): Likewise.
25185 (rtl_unswitch): Likewise.
25186 (pass_data_rtl_unswitch): Likewise.
25187 (pass_rtl_unswitch): Likewise.
25188 (make_pass_rtl_unswitch): Likewise.
25189 * rtl.h (reversed_condition): Likewise.
25190 (compare_and_jump_seq): Likewise.
25191 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
25193 * loop-unroll.c (compare_and_jump_seq): Likewise.
25195 2014-04-23 Richard Biener <rguenther@suse.de>
25197 PR tree-optimization/60903
25198 * tree-ssa-loop-im.c (analyze_memory_references): Remove
25199 commented code block.
25200 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
25201 loop flags to newly created BBs and edges.
25203 2014-04-23 Nick Clifton <nickc@redhat.com>
25205 * config/msp430/msp430.c (msp430_handle_option): Move function
25207 (msp430_option_override): Simplify mcu and mcpu option handling.
25208 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
25209 support for -mhwmult command line option.
25210 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
25211 -mhwmult command line option.
25212 (msp430_hwmult_enabled): Delete.
25213 (msp43o_output_labelref): Add support for -mhwmult command line option.
25214 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
25215 (umulsidi3): Likewise.
25216 * config/msp430/msp430.opt (mmcu): Add Report attribute.
25217 (mcpu, mlarge, msmall): Likewise.
25218 (mhwmult): New option.
25219 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
25221 (msp430_is_f5_mcu): Remove prototype.
25222 (msp430_use_f5_series_hwmult): Add prototype.
25223 * config/msp430/msp430-opts.h: New file.
25224 * common/config/msp430: New directory.
25225 * common/config/msp430/msp430-common.c: New file.
25226 * config.gcc (msp430): Remove target_has_targetm_common.
25227 * doc/invoke.texi: Document -mhwmult command line option.
25229 2014-04-23 Nick Clifton <nickc@redhat.com>
25231 * config/i386/cygwin.h (ENDFILE_SPEC): Include
25232 default-manifest.o if it can be found in the search path.
25233 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
25235 2014-04-23 Terry Guo <terry.guo@arm.com>
25237 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
25239 2014-04-23 Richard Biener <rguenther@suse.de>
25241 PR middle-end/60895
25242 * tree-inline.c (declare_return_variable): Use mark_addressable.
25244 2014-04-23 Richard Biener <rguenther@suse.de>
25246 PR middle-end/60891
25247 * loop-init.c (loop_optimizer_init): Make sure to apply
25248 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
25250 2014-04-22 Jakub Jelinek <jakub@redhat.com>
25253 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
25255 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
25256 if flag_sanitize_undefined_trap_on_error.
25257 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
25258 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
25259 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
25260 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
25261 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
25262 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
25263 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
25264 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
25265 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
25266 * ubsan.c (ubsan_instrument_unreachable): Return
25267 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
25268 (ubsan_expand_null_ifn): Emit __builtin_trap ()
25269 if flag_sanitize_undefined_trap_on_error and
25270 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
25271 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
25272 instrument_bool_enum_load): Emit __builtin_trap () if
25273 flag_sanitize_undefined_trap_on_error and
25274 __builtin_handle_*_abort () if !flag_sanitize_recover.
25275 * doc/invoke.texi (-fsanitize-recover,
25276 -fsanitize-undefined-trap-on-error): Document.
25278 2014-04-22 Christian Bruel <christian.bruel@st.com>
25280 * config/sh/sh.md (mov<mode>): Replace movQIHI.
25281 Force immediates to SImode.
25283 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
25285 * config/nios2/nios2.md (UNSPEC_ROUND): New.
25286 (lroundsfsi2): New.
25287 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
25288 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
25289 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
25290 (nios2_fpu_insn): Add entry for round.
25291 (N2FPU_NO_ERRNO_P): Define.
25292 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
25294 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
25296 2014-04-22 Richard Henderson <rth@redhat.com>
25298 * config/aarch64/aarch64 (addti3, subti3): New expanders.
25299 (add<GPI>3_compare0): Remove leading * from name.
25300 (add<GPI>3_carryin): Likewise.
25301 (sub<GPI>3_compare0): Likewise.
25302 (sub<GPI>3_carryin): Likewise.
25303 (<su_optab>mulditi3): New expander.
25304 (multi3): New expander.
25305 (madd<GPI>): Remove leading * from name.
25307 2014-04-22 Martin Jambor <mjambor@suse.cz>
25309 * cgraphclones.c (cgraph_function_versioning): Copy
25310 ipa_transforms_to_apply instead of asserting it is empty.
25312 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
25315 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
25316 on count_exp to get mode.
25318 2014-04-22 Andrew Pinski <apinski@cavium.com>
25320 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
25321 Handle TLS for ILP32.
25322 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
25323 (tlsie_small_<mode>): this and handle PTR.
25324 (tlsie_small_sidi): New pattern.
25325 (tlsle_small): Change to an expand to handle ILP32.
25326 (tlsle_small_<mode>): New pattern.
25327 (tlsdesc_small): Rename to ...
25328 (tlsdesc_small_<mode>): this and handle PTR.
25330 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25332 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
25334 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
25336 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
25337 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
25338 (aarch64_types_signed_poly_qualifiers): Likewise.
25339 (aarch64_types_unsigned_signed_qualifiers): Likewise.
25340 (aarch64_types_poly_signed_qualifiers): Likewise.
25341 (TYPES_REINTERP_SS): Type macro added.
25342 (TYPES_REINTERP_SU): Likewise.
25343 (TYPES_REINTERP_SP): Likewise.
25344 (TYPES_REINTERP_US): Likewise.
25345 (TYPES_REINTERP_PS): Likewise.
25346 (aarch64_fold_builtin): New expression folding added.
25347 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
25348 Declarations removed.
25349 (REINTERP_SS): Declarations added.
25350 (REINTERP_US): Likewise.
25351 (REINTERP_PS): Likewise.
25352 (REINTERP_SU): Likewise.
25353 (REINTERP_SP): Likewise.
25354 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
25355 (vreinterpretq_p8_f64): Likewise.
25356 (vreinterpret_p16_f64): Likewise.
25357 (vreinterpretq_p16_f64): Likewise.
25358 (vreinterpret_f32_f64): Likewise.
25359 (vreinterpretq_f32_f64): Likewise.
25360 (vreinterpret_f64_f32): Likewise.
25361 (vreinterpret_f64_p8): Likewise.
25362 (vreinterpret_f64_p16): Likewise.
25363 (vreinterpret_f64_s8): Likewise.
25364 (vreinterpret_f64_s16): Likewise.
25365 (vreinterpret_f64_s32): Likewise.
25366 (vreinterpret_f64_s64): Likewise.
25367 (vreinterpret_f64_u8): Likewise.
25368 (vreinterpret_f64_u16): Likewise.
25369 (vreinterpret_f64_u32): Likewise.
25370 (vreinterpret_f64_u64): Likewise.
25371 (vreinterpretq_f64_f32): Likewise.
25372 (vreinterpretq_f64_p8): Likewise.
25373 (vreinterpretq_f64_p16): Likewise.
25374 (vreinterpretq_f64_s8): Likewise.
25375 (vreinterpretq_f64_s16): Likewise.
25376 (vreinterpretq_f64_s32): Likewise.
25377 (vreinterpretq_f64_s64): Likewise.
25378 (vreinterpretq_f64_u8): Likewise.
25379 (vreinterpretq_f64_u16): Likewise.
25380 (vreinterpretq_f64_u32): Likewise.
25381 (vreinterpretq_f64_u64): Likewise.
25382 (vreinterpret_s64_f64): Likewise.
25383 (vreinterpretq_s64_f64): Likewise.
25384 (vreinterpret_u64_f64): Likewise.
25385 (vreinterpretq_u64_f64): Likewise.
25386 (vreinterpret_s8_f64): Likewise.
25387 (vreinterpretq_s8_f64): Likewise.
25388 (vreinterpret_s16_f64): Likewise.
25389 (vreinterpretq_s16_f64): Likewise.
25390 (vreinterpret_s32_f64): Likewise.
25391 (vreinterpretq_s32_f64): Likewise.
25392 (vreinterpret_u8_f64): Likewise.
25393 (vreinterpretq_u8_f64): Likewise.
25394 (vreinterpret_u16_f64): Likewise.
25395 (vreinterpretq_u16_f64): Likewise.
25396 (vreinterpret_u32_f64): Likewise.
25397 (vreinterpretq_u32_f64): Likewise.
25399 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
25401 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
25402 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
25403 (vreinterpret_p8_s8): Likewise.
25404 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
25405 (vreinterpret_p8_s16): Likewise.
25406 (vreinterpret_p8_s32): Likewise.
25407 (vreinterpret_p8_s64): Likewise.
25408 (vreinterpret_p8_f32): Likewise.
25409 (vreinterpret_p8_u8): Likewise.
25410 (vreinterpret_p8_u16): Likewise.
25411 (vreinterpret_p8_u32): Likewise.
25412 (vreinterpret_p8_u64): Likewise.
25413 (vreinterpret_p8_p16): Likewise.
25414 (vreinterpretq_p8_s8): Likewise.
25415 (vreinterpretq_p8_s16): Likewise.
25416 (vreinterpretq_p8_s32): Likewise.
25417 (vreinterpretq_p8_s64): Likewise.
25418 (vreinterpretq_p8_f32): Likewise.
25419 (vreinterpretq_p8_u8): Likewise.
25420 (vreinterpretq_p8_u16): Likewise.
25421 (vreinterpretq_p8_u32): Likewise.
25422 (vreinterpretq_p8_u64): Likewise.
25423 (vreinterpretq_p8_p16): Likewise.
25424 (vreinterpret_p16_s8): Likewise.
25425 (vreinterpret_p16_s16): Likewise.
25426 (vreinterpret_p16_s32): Likewise.
25427 (vreinterpret_p16_s64): Likewise.
25428 (vreinterpret_p16_f32): Likewise.
25429 (vreinterpret_p16_u8): Likewise.
25430 (vreinterpret_p16_u16): Likewise.
25431 (vreinterpret_p16_u32): Likewise.
25432 (vreinterpret_p16_u64): Likewise.
25433 (vreinterpret_p16_p8): Likewise.
25434 (vreinterpretq_p16_s8): Likewise.
25435 (vreinterpretq_p16_s16): Likewise.
25436 (vreinterpretq_p16_s32): Likewise.
25437 (vreinterpretq_p16_s64): Likewise.
25438 (vreinterpretq_p16_f32): Likewise.
25439 (vreinterpretq_p16_u8): Likewise.
25440 (vreinterpretq_p16_u16): Likewise.
25441 (vreinterpretq_p16_u32): Likewise.
25442 (vreinterpretq_p16_u64): Likewise.
25443 (vreinterpretq_p16_p8): Likewise.
25444 (vreinterpret_f32_s8): Likewise.
25445 (vreinterpret_f32_s16): Likewise.
25446 (vreinterpret_f32_s32): Likewise.
25447 (vreinterpret_f32_s64): Likewise.
25448 (vreinterpret_f32_u8): Likewise.
25449 (vreinterpret_f32_u16): Likewise.
25450 (vreinterpret_f32_u32): Likewise.
25451 (vreinterpret_f32_u64): Likewise.
25452 (vreinterpret_f32_p8): Likewise.
25453 (vreinterpret_f32_p16): Likewise.
25454 (vreinterpretq_f32_s8): Likewise.
25455 (vreinterpretq_f32_s16): Likewise.
25456 (vreinterpretq_f32_s32): Likewise.
25457 (vreinterpretq_f32_s64): Likewise.
25458 (vreinterpretq_f32_u8): Likewise.
25459 (vreinterpretq_f32_u16): Likewise.
25460 (vreinterpretq_f32_u32): Likewise.
25461 (vreinterpretq_f32_u64): Likewise.
25462 (vreinterpretq_f32_p8): Likewise.
25463 (vreinterpretq_f32_p16): Likewise.
25464 (vreinterpret_s64_s8): Likewise.
25465 (vreinterpret_s64_s16): Likewise.
25466 (vreinterpret_s64_s32): Likewise.
25467 (vreinterpret_s64_f32): Likewise.
25468 (vreinterpret_s64_u8): Likewise.
25469 (vreinterpret_s64_u16): Likewise.
25470 (vreinterpret_s64_u32): Likewise.
25471 (vreinterpret_s64_u64): Likewise.
25472 (vreinterpret_s64_p8): Likewise.
25473 (vreinterpret_s64_p16): Likewise.
25474 (vreinterpretq_s64_s8): Likewise.
25475 (vreinterpretq_s64_s16): Likewise.
25476 (vreinterpretq_s64_s32): Likewise.
25477 (vreinterpretq_s64_f32): Likewise.
25478 (vreinterpretq_s64_u8): Likewise.
25479 (vreinterpretq_s64_u16): Likewise.
25480 (vreinterpretq_s64_u32): Likewise.
25481 (vreinterpretq_s64_u64): Likewise.
25482 (vreinterpretq_s64_p8): Likewise.
25483 (vreinterpretq_s64_p16): Likewise.
25484 (vreinterpret_u64_s8): Likewise.
25485 (vreinterpret_u64_s16): Likewise.
25486 (vreinterpret_u64_s32): Likewise.
25487 (vreinterpret_u64_s64): Likewise.
25488 (vreinterpret_u64_f32): Likewise.
25489 (vreinterpret_u64_u8): Likewise.
25490 (vreinterpret_u64_u16): Likewise.
25491 (vreinterpret_u64_u32): Likewise.
25492 (vreinterpret_u64_p8): Likewise.
25493 (vreinterpret_u64_p16): Likewise.
25494 (vreinterpretq_u64_s8): Likewise.
25495 (vreinterpretq_u64_s16): Likewise.
25496 (vreinterpretq_u64_s32): Likewise.
25497 (vreinterpretq_u64_s64): Likewise.
25498 (vreinterpretq_u64_f32): Likewise.
25499 (vreinterpretq_u64_u8): Likewise.
25500 (vreinterpretq_u64_u16): Likewise.
25501 (vreinterpretq_u64_u32): Likewise.
25502 (vreinterpretq_u64_p8): Likewise.
25503 (vreinterpretq_u64_p16): Likewise.
25504 (vreinterpret_s8_s16): Likewise.
25505 (vreinterpret_s8_s32): Likewise.
25506 (vreinterpret_s8_s64): Likewise.
25507 (vreinterpret_s8_f32): Likewise.
25508 (vreinterpret_s8_u8): Likewise.
25509 (vreinterpret_s8_u16): Likewise.
25510 (vreinterpret_s8_u32): Likewise.
25511 (vreinterpret_s8_u64): Likewise.
25512 (vreinterpret_s8_p8): Likewise.
25513 (vreinterpret_s8_p16): Likewise.
25514 (vreinterpretq_s8_s16): Likewise.
25515 (vreinterpretq_s8_s32): Likewise.
25516 (vreinterpretq_s8_s64): Likewise.
25517 (vreinterpretq_s8_f32): Likewise.
25518 (vreinterpretq_s8_u8): Likewise.
25519 (vreinterpretq_s8_u16): Likewise.
25520 (vreinterpretq_s8_u32): Likewise.
25521 (vreinterpretq_s8_u64): Likewise.
25522 (vreinterpretq_s8_p8): Likewise.
25523 (vreinterpretq_s8_p16): Likewise.
25524 (vreinterpret_s16_s8): Likewise.
25525 (vreinterpret_s16_s32): Likewise.
25526 (vreinterpret_s16_s64): Likewise.
25527 (vreinterpret_s16_f32): Likewise.
25528 (vreinterpret_s16_u8): Likewise.
25529 (vreinterpret_s16_u16): Likewise.
25530 (vreinterpret_s16_u32): Likewise.
25531 (vreinterpret_s16_u64): Likewise.
25532 (vreinterpret_s16_p8): Likewise.
25533 (vreinterpret_s16_p16): Likewise.
25534 (vreinterpretq_s16_s8): Likewise.
25535 (vreinterpretq_s16_s32): Likewise.
25536 (vreinterpretq_s16_s64): Likewise.
25537 (vreinterpretq_s16_f32): Likewise.
25538 (vreinterpretq_s16_u8): Likewise.
25539 (vreinterpretq_s16_u16): Likewise.
25540 (vreinterpretq_s16_u32): Likewise.
25541 (vreinterpretq_s16_u64): Likewise.
25542 (vreinterpretq_s16_p8): Likewise.
25543 (vreinterpretq_s16_p16): Likewise.
25544 (vreinterpret_s32_s8): Likewise.
25545 (vreinterpret_s32_s16): Likewise.
25546 (vreinterpret_s32_s64): Likewise.
25547 (vreinterpret_s32_f32): Likewise.
25548 (vreinterpret_s32_u8): Likewise.
25549 (vreinterpret_s32_u16): Likewise.
25550 (vreinterpret_s32_u32): Likewise.
25551 (vreinterpret_s32_u64): Likewise.
25552 (vreinterpret_s32_p8): Likewise.
25553 (vreinterpret_s32_p16): Likewise.
25554 (vreinterpretq_s32_s8): Likewise.
25555 (vreinterpretq_s32_s16): Likewise.
25556 (vreinterpretq_s32_s64): Likewise.
25557 (vreinterpretq_s32_f32): Likewise.
25558 (vreinterpretq_s32_u8): Likewise.
25559 (vreinterpretq_s32_u16): Likewise.
25560 (vreinterpretq_s32_u32): Likewise.
25561 (vreinterpretq_s32_u64): Likewise.
25562 (vreinterpretq_s32_p8): Likewise.
25563 (vreinterpretq_s32_p16): Likewise.
25564 (vreinterpret_u8_s8): Likewise.
25565 (vreinterpret_u8_s16): Likewise.
25566 (vreinterpret_u8_s32): Likewise.
25567 (vreinterpret_u8_s64): Likewise.
25568 (vreinterpret_u8_f32): Likewise.
25569 (vreinterpret_u8_u16): Likewise.
25570 (vreinterpret_u8_u32): Likewise.
25571 (vreinterpret_u8_u64): Likewise.
25572 (vreinterpret_u8_p8): Likewise.
25573 (vreinterpret_u8_p16): Likewise.
25574 (vreinterpretq_u8_s8): Likewise.
25575 (vreinterpretq_u8_s16): Likewise.
25576 (vreinterpretq_u8_s32): Likewise.
25577 (vreinterpretq_u8_s64): Likewise.
25578 (vreinterpretq_u8_f32): Likewise.
25579 (vreinterpretq_u8_u16): Likewise.
25580 (vreinterpretq_u8_u32): Likewise.
25581 (vreinterpretq_u8_u64): Likewise.
25582 (vreinterpretq_u8_p8): Likewise.
25583 (vreinterpretq_u8_p16): Likewise.
25584 (vreinterpret_u16_s8): Likewise.
25585 (vreinterpret_u16_s16): Likewise.
25586 (vreinterpret_u16_s32): Likewise.
25587 (vreinterpret_u16_s64): Likewise.
25588 (vreinterpret_u16_f32): Likewise.
25589 (vreinterpret_u16_u8): Likewise.
25590 (vreinterpret_u16_u32): Likewise.
25591 (vreinterpret_u16_u64): Likewise.
25592 (vreinterpret_u16_p8): Likewise.
25593 (vreinterpret_u16_p16): Likewise.
25594 (vreinterpretq_u16_s8): Likewise.
25595 (vreinterpretq_u16_s16): Likewise.
25596 (vreinterpretq_u16_s32): Likewise.
25597 (vreinterpretq_u16_s64): Likewise.
25598 (vreinterpretq_u16_f32): Likewise.
25599 (vreinterpretq_u16_u8): Likewise.
25600 (vreinterpretq_u16_u32): Likewise.
25601 (vreinterpretq_u16_u64): Likewise.
25602 (vreinterpretq_u16_p8): Likewise.
25603 (vreinterpretq_u16_p16): Likewise.
25604 (vreinterpret_u32_s8): Likewise.
25605 (vreinterpret_u32_s16): Likewise.
25606 (vreinterpret_u32_s32): Likewise.
25607 (vreinterpret_u32_s64): Likewise.
25608 (vreinterpret_u32_f32): Likewise.
25609 (vreinterpret_u32_u8): Likewise.
25610 (vreinterpret_u32_u16): Likewise.
25611 (vreinterpret_u32_u64): Likewise.
25612 (vreinterpret_u32_p8): Likewise.
25613 (vreinterpret_u32_p16): Likewise.
25614 (vreinterpretq_u32_s8): Likewise.
25615 (vreinterpretq_u32_s16): Likewise.
25616 (vreinterpretq_u32_s32): Likewise.
25617 (vreinterpretq_u32_s64): Likewise.
25618 (vreinterpretq_u32_f32): Likewise.
25619 (vreinterpretq_u32_u8): Likewise.
25620 (vreinterpretq_u32_u16): Likewise.
25621 (vreinterpretq_u32_u64): Likewise.
25622 (vreinterpretq_u32_p8): Likewise.
25623 (vreinterpretq_u32_p16): Likewise.
25625 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
25627 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
25629 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
25631 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
25632 (vqnegd_s64): Likewise.
25633 (vqabs_s64): Likewise.
25634 (vqabsd_s64): Likewise.
25636 2014-04-22 Richard Henderson <rth@redhat.com>
25638 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
25639 computation to the top of the loop.
25641 2014-04-22 Renlin <renlin.li@arm.com>
25642 Jiong Wang <jiong.wang@arm.com>
25644 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
25645 * config/aarch64/aarch64.c (aarch64_layout_frame)
25646 (aarch64_initial_elimination_offset): Likewise.
25648 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
25650 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
25653 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
25655 * machmode.h (bitwise_mode_for_mode): Declare.
25656 * stor-layout.h (bitwise_type_for_mode): Likewise.
25657 * stor-layout.c (bitwise_mode_for_mode): New function.
25658 (bitwise_type_for_mode): Likewise.
25659 * builtins.c (fold_builtin_memory_op): Use it instead of
25660 int_mode_for_mode and build_nonstandard_integer_type.
25662 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25664 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
25665 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
25666 (*-*-solaris2*): Simplify.
25667 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
25668 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
25669 *-*-solaris2.9* handling.
25671 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
25673 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
25674 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
25675 handling, simplify.
25676 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
25677 * configure: Regenerate.
25679 * config/i386/sol2-9.h: Remove.
25681 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
25682 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
25683 Remove Solaris 9 references.
25685 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
25687 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
25688 (floatuns<GPI:mode><GPF:mode>2): Remove.
25689 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
25690 and floatuns conversions.
25691 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
25692 and floatuns conversions.
25693 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
25694 (w1,w2): New mode attributes for inequal width conversions.
25696 2014-04-22 Renlin Li <Renlin.Li@arm.com>
25698 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
25699 the output asm format.
25701 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
25703 * config/aarch64/aarch64-simd.md
25704 (aarch64_cm<optab>di): Always split.
25705 (*aarch64_cm<optab>di): New.
25706 (aarch64_cmtstdi): Always split.
25707 (*aarch64_cmtstdi): New.
25709 2014-04-22 Jakub Jelinek <jakub@redhat.com>
25711 PR tree-optimization/60823
25712 * omp-low.c (ipa_simd_modify_function_body): Go through
25713 all SSA_NAMEs and for those refering to vector arguments
25714 which are going to be replaced adjust SSA_NAME_VAR and,
25715 if it is a default definition, change it into a non-default
25716 definition assigned at the beginning of function from new_decl.
25717 (ipa_simd_modify_stmt_ops): Rewritten.
25718 * tree-dfa.c (set_ssa_default_def): When removing default def,
25719 check for NULL loc instead of NULL *loc.
25721 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25723 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
25724 restrictions on core registers for DImode values in Thumb2.
25726 2014-04-22 Ian Bolton <ian.bolton@arm.com>
25728 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
25729 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
25731 2014-04-22 Ian Bolton <ian.bolton@arm.com>
25733 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
25734 (*iordi_notzesidi_di): Likewise.
25735 (*iordi_notsesidi_di): Likewise.
25737 2014-04-22 Ian Bolton <ian.bolton@arm.com>
25739 * config/arm/arm-protos.h (tune_params): New struct members.
25740 * config/arm/arm.c: Initialise tune_params per processor.
25741 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
25742 for speed, based on new tune_params.
25744 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
25746 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
25747 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
25748 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
25749 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
25750 * config/aarch64/arm_neon.h (vrnd_f64): Added.
25751 (vrnda_f64): Likewise.
25752 (vrndi_f64): Likewise.
25753 (vrndm_f64): Likewise.
25754 (vrndn_f64): Likewise.
25755 (vrndp_f64): Likewise.
25756 (vrndx_f64): Likewise.
25758 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25760 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
25761 GET_MODE_SIZE argument is enum machine_mode.
25763 2014-04-22 Jakub Jelinek <jakub@redhat.com>
25766 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
25767 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
25769 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
25771 PR middle-end/60281
25772 * asan.c (asan_emit_stack_protection): Force the base to align to
25773 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
25774 appropriate bits if STRICT_ALIGNMENT.
25775 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
25777 (expand_used_vars): Leave a space in the stack frame for alignment
25778 if STRICT_ALIGNMENT.
25780 2014-04-21 David Malcolm <dmalcolm@redhat.com>
25782 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
25784 (gimple_store_p): Likewise.
25785 (gimple_assign_load_p): Likewise.
25786 (gimple_assign_cast_p): Likewise.
25787 (gimple_clobber_p): Likewise.
25789 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
25790 rather than a gimple.
25791 (gimple_assign_cast_p): Likewise.
25793 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
25796 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
25797 If mode is DDmode and TARGET_E500_DOUBLE allow move.
25799 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
25800 more debug information for E500 if -mdebug=reg.
25802 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
25805 * config/i386/i386.c (ix86_expand_builtin)
25806 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
25807 register for target RTX.
25808 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
25810 2014-04-18 Cong Hou <congh@google.com>
25812 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
25813 the widen-mult pattern by handling two operands with different sizes,
25814 and operands whose size is smaller than half of the result type.
25816 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
25818 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
25819 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
25820 (do_estimate_edge_time): Compute it.
25821 * ipa-inline.c (want_inline_small_function_p): Bypass
25822 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
25824 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
25826 * ipa-inline.c (spec_rem): New static variable.
25827 (dump_overall_stats): New function.
25828 (dump_inline_stats): New function.
25830 2014-04-18 Richard Henderson <rth@redhat.com>
25832 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
25833 to GET_MODE_SIZE, not a reg_class_t.
25835 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25837 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
25838 (vsx_xxmrglw_<mode>): Likewise.
25840 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
25843 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
25844 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
25845 (rs6000_init_hard_regno_mode_ok): Likewise.
25847 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
25849 * ipa-inline.c (inline_small_functions): Account only non-cold
25851 * doc/invoke.texi (inline-unit-growth): Update documentation.
25853 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
25855 * config/rs6000/rs6000.md (addti3, subti3): New.
25857 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
25860 * config/i386/i386.c (ix86_expand_clear): Remove outdated
25861 comment. Check optimize_insn_for_size_p instead of
25862 optimize_insn_for_speed_p.
25864 2014-04-17 Martin Jambor <mjambor@suse.cz>
25866 * gimple-iterator.c (gsi_start_edge): New function.
25867 * gimple-iterator.h (gsi_start_edge): Declare.
25868 * tree-sra.c (single_non_eh_succ): New function.
25869 (disqualify_ops_if_throwing_stmt): Renamed to
25870 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
25871 having one non-EH successor BB.
25872 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
25873 generate loads into replacements.
25874 (sra_modify_assign): Likewise and and also use the simple path for
25876 (sra_modify_function_body): Commit statements on edges.
25878 2014-04-17 Richard Biener <rguenther@suse.de>
25880 PR middle-end/60849
25881 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
25882 comparison results and add clarifying comment.
25884 2014-04-17 Jakub Jelinek <jakub@redhat.com>
25886 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
25887 (blank_mode): Initialize it.
25888 (emit_mode_size_inline, emit_mode_nunits_inline,
25889 emit_mode_inner_inline): New functions.
25890 (emit_insn_modes_h): Call them and surround their output with
25891 #if GCC_VERSION >= 4001 ... #endif.
25892 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
25893 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
25894 mode_* arrays if the argument is __builtin_constant_p.
25895 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
25896 is enum machine_mode.
25898 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
25900 * passes.c (opt_pass::execute): Adjust.
25901 (pass_manager::execute_pass_mode_switching): Likewise.
25902 (early_local_passes::execute): Likewise.
25903 (execute_one_pass): Pass cfun to the pass's execute method.
25904 * tree-pass.h (opt_pass::execute): Add function * argument.
25905 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
25906 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
25907 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
25908 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
25909 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
25910 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
25911 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
25912 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
25913 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
25914 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
25915 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
25916 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
25917 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
25918 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
25919 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
25920 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
25921 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
25922 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
25923 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
25924 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
25925 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
25926 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
25927 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
25928 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
25929 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
25930 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
25931 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
25932 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
25933 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
25936 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
25938 * passes.c (opt_pass::gate): Take function * argument.
25939 (gate_all_early_local_passes): Merge into
25940 (early_local_passes::gate): this.
25941 (gate_all_early_optimizations): Merge into
25942 (all_early_optimizations::gate): this.
25943 (gate_all_optimizations): Mege into
25944 (all_optimizations::gate): this.
25945 (gate_all_optimizations_g): Merge into
25946 (all_optimizations_g::gate): this.
25947 (gate_rest_of_compilation): Mege into
25948 (rest_of_compilation::gate): this.
25949 (gate_postreload): Merge into
25950 (postreload::gate): this.
25951 (dump_one_pass): Pass cfun to the pass's gate method.
25952 (execute_ipa_summary_passes): Likewise.
25953 (execute_one_pass): Likewise.
25954 (ipa_write_summaries_2): Likewise.
25955 (ipa_write_optimization_summaries_1): Likewise.
25956 (ipa_read_summaries_1): Likewise.
25957 (ipa_read_optimization_summaries_1): Likewise.
25958 (execute_ipa_stmt_fixups): Likewise.
25959 * tree-pass.h (opt_pass::gate): Add function * argument.
25960 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
25961 combine-stack-adj.c, combine.c, compare-elim.c,
25962 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
25963 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
25964 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
25965 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
25966 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
25967 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
25968 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
25969 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
25970 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
25971 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
25972 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
25973 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
25974 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
25975 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
25976 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
25977 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
25978 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
25979 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
25980 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
25981 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
25982 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
25983 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
25984 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
25985 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
25986 var-tracking.c, vtable-verify.c, web.c: Adjust.
25988 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
25990 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
25991 * configure: Regenerate.
25993 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
25995 * passes.c (dump_one_pass): don't check pass->has_gate.
25996 (execute_ipa_summary_passes): Likewise.
25997 (execute_one_pass): Likewise.
25998 (ipa_write_summaries_2): Likewise.
25999 (ipa_write_optimization_summaries_1): Likewise.
26000 (ipa_read_optimization_summaries_1): Likewise.
26001 (execute_ipa_stmt_fixups): Likewise.
26002 * tree-pass.h (pass_data::has_gate): Remove.
26003 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
26004 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
26005 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
26006 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
26007 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
26008 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
26009 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
26010 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
26011 gimple-low.c, gimple-ssa-isolate-paths.c,
26012 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
26013 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
26014 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
26015 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
26016 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
26017 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
26018 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
26019 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
26020 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
26021 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
26022 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
26023 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
26024 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
26025 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
26026 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
26027 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
26028 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
26029 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
26030 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
26031 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
26032 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
26033 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
26036 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
26038 * pass_manager.h (pass_manager::register_dump_files_1): Remove
26040 * passes.c (pass_manager::register_dump_files_1): Merge into
26041 (pass_manager::register_dump_files): this, and remove its handling of
26042 properties since the pass always has the properties anyway.
26043 (pass_manager::pass_manager): Adjust.
26045 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
26047 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
26048 * passes.c (pass_manager::register_dump_files_1): Remove dead code
26049 dealing with properties.
26050 (pass_manager::register_dump_files): Adjust.
26052 2014-03-20 Mark Wielaard <mjw@redhat.com>
26054 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
26055 then represent the bound as normal constant value.
26057 2014-04-17 Jakub Jelinek <jakub@redhat.com>
26060 Forward port from 4.8 branch
26061 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
26063 * config/i386/bmiintrin.h (_blsi_u32): New.
26064 (_blsi_u64): Ditto.
26065 (_blsr_u32): Ditto.
26066 (_blsr_u64): Ditto.
26067 (_blsmsk_u32): Ditto.
26068 (_blsmsk_u64): Ditto.
26069 (_tzcnt_u32): Ditto.
26070 (_tzcnt_u64): Ditto.
26072 2014-04-17 Kito Cheng <kito@0xlab.org>
26074 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
26076 2014-04-17 Richard Biener <rguenther@suse.de>
26078 PR middle-end/60849
26079 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
26080 boolean results for comparisons.
26082 2014-04-17 Richard Biener <rguenther@suse.de>
26084 PR tree-optimization/60836
26085 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
26086 initial PHI args to be gimple values.
26088 2014-04-17 Richard Biener <rguenther@suse.de>
26090 PR tree-optimization/60841
26091 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
26092 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
26093 of stmts to SLP build.
26094 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
26095 (vect_analyze_slp): Likewise.
26096 (vect_analyze_slp_instance): Likewise.
26097 (vect_build_slp_tree): Limit overall SLP tree growth.
26098 * tree-vectorizer.h (vect_analyze_data_refs,
26099 vect_analyze_slp): Adjust prototypes.
26101 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
26103 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
26106 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
26108 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
26109 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
26110 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
26111 for TARGET_SLOW_PSHUFB
26113 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
26115 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
26116 * config/i386/i386.c (intel_cost): Ditto.
26118 2014-04-17 Joey Ye <joey.ye@arm.com>
26120 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
26122 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
26124 * opts.c (common_handle_option): Disable -fipa-reference coorectly
26125 with -fuse-profile.
26127 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
26129 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
26130 (type_all_derivations_known_p): New predicate.
26131 (type_all_ctors_visible_p): New predicate.
26132 (type_possibly_instantiated_p): New predicate.
26133 (get_odr_type): Compute all_derivations_known.
26134 (dump_odr_type): Dump the flag.
26135 (maybe_record_type): Cleanup.
26136 (record_target_from_binfo): Add bases_to_consider array;
26137 record bases for types w/o instances and skip CXX destructor.
26138 (possible_polymorphic_call_targets_1): Add bases_to_consider
26139 and consider_construction parameters; check if type may have instance.
26140 (get_polymorphic_call_info): Set maybe_in_construction to true
26141 when we know nothing.
26142 (record_targets_from_bases): Skip CXX destructors; they are
26143 never called for types in construction.
26144 (possible_polymorphic_call_targets): Do not record target when
26145 type may not have instance.
26147 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
26150 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
26151 external aliases alive, too.
26153 2014-04-16 Andrew Pinski <apinski@cavium.com>
26155 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
26158 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
26160 * final.c (compute_alignments): Do not apply loop alignment to a block
26161 falling through to the exit.
26163 2014-04-16 Catherine Moore <clm@codesourcery.com>
26165 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
26166 Adjust constraints for microMIPS store patterns.
26168 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
26170 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
26172 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
26174 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
26175 (append_use): Run at -O0.
26176 (append_vdef): Likewise.
26177 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
26178 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
26180 2014-04-16 Jakub Jelinek <jakub@redhat.com>
26182 PR tree-optimization/60844
26183 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
26184 (propagate_op_to_single_use, remove_visited_stmt_chain,
26185 linearize_expr, repropagate_negates, reassociate_bb): Use it
26186 instead of gsi_remove.
26188 2014-04-16 Martin Jambor <mjambor@suse.cz>
26190 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
26191 ipa_transforms_to_apply.
26192 (cgraph_function_versioning): Assert that old_node has empty
26193 ipa_transforms_to_apply.
26194 * trans-mem.c (ipa_tm_create_version): Likewise.
26195 * tree-inline.c (tree_function_versioning): Do not duplicate
26196 ipa_transforms_to_apply.
26198 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26201 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
26203 Pass necessary as flags on 64-bit Solaris/x86.
26204 Use lowercase relocs for x86_64-*-*.
26205 * configure: Regenerate.
26207 2014-04-15 Jan Hubicka <jh@suse.cz>
26209 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
26210 (maybe_record_node, likely_target_p): Use it.
26212 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26215 Revert following patch
26217 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
26220 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
26221 software floating point or no floating point registers, do not
26222 allow any type in the FPRs. Eliminate a test for SPE SIMD types
26223 in GPRs that occurs after we tested for GPRs that would never be
26226 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
26227 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
26228 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
26229 specifically allow DDmode, since that does not use the SPE SIMD
26232 2014-03-21 Mark Wielaard <mjw@redhat.com>
26234 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
26235 as unsigned or int depending on type and value used.
26237 2014-04-15 Richard Biener <rguenther@suse.de>
26239 PR rtl-optimization/56965
26240 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
26241 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
26243 * alias.c (true_dependence_1): Do not call
26244 nonoverlapping_component_refs_p.
26245 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
26246 nonoverlapping_component_refs_p.
26247 (indirect_refs_may_alias_p): Likewise.
26249 2014-04-15 Teresa Johnson <tejohnson@google.com>
26251 * cfg.c (dump_bb_info): Fix flags check.
26252 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
26254 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26256 PR rtl-optimization/60663
26257 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
26260 2014-04-15 Richard Biener <rguenther@suse.de>
26262 * lto-streamer.h (LTO_major_version): Bump to 4.
26264 2014-04-15 Richard Biener <rguenther@suse.de>
26266 * common.opt (lto_partition_model): New enum.
26267 (flto-partition=): Merge separate options with a single with argument,
26268 add -flto-partition=one support.
26269 * flag-types.h (enum lto_partition_model): Declare.
26270 * opts.c (finish_options): Remove duplicate -flto-partition=
26272 * lto-wrapper.c (run_gcc): Adjust.
26274 2014-04-15 Richard Biener <rguenther@suse.de>
26276 * alias.c (ncr_compar): New function.
26277 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
26279 2014-04-15 Richard Biener <rguenther@suse.de>
26281 * alias.c (record_component_aliases): Do not walk BINFOs.
26283 2014-04-15 Richard Biener <rguenther@suse.de>
26285 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
26286 Add struct function argument and adjust.
26287 (find_func_aliases_for_call): Likewise.
26288 (find_func_aliases): Likewise.
26289 (find_func_clobbers): Likewise.
26290 (intra_create_variable_infos): Likewise.
26291 (compute_points_to_sets): Likewise.
26292 (ipa_pta_execute): Adjust. Do not push/pop cfun.
26294 2014-04-15 Richard Biener <rguenther@suse.de>
26296 * tree.c (iterative_hash_expr): Use enum tree_code_class
26297 to store TREE_CODE_CLASS.
26298 (tree_block): Likewise.
26299 (tree_set_block): Likewise.
26300 * tree.h (fold_build_pointer_plus_loc): Use
26301 convert_to_ptrofftype_loc.
26303 2014-04-15 Jakub Jelinek <jakub@redhat.com>
26306 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
26309 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
26311 * cfgloop.h (struct loop): Move force_vectorize down.
26312 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
26313 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
26314 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
26315 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
26316 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
26317 * tree-core.h (enum annot_expr_kind): Add new kind values.
26318 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
26319 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
26321 * tree.def (ANNOTATE_EXPR): Tweak comment.
26323 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
26325 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
26328 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
26330 * tree.h (TYPE_IDENTIFIER): Declare.
26331 * tree.c (subrange_type_for_debug_p): Use it.
26332 * godump.c (go_format_type): Likewise.
26333 * dwarf2out.c (is_cxx_auto, modified_type_die,
26334 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
26335 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
26337 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
26340 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
26342 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
26344 * config/i386/i386.c (examine_argument): Return bool. Return true if
26345 parameter should be passed in memory.
26346 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
26347 (construct_container): Update calls to examine_argument.
26348 (function_arg_advance_64): Ditto.
26349 (return_in_memory_32): Merge with ix86_return_in_memory.
26350 (return_in_memory_64): Ditto.
26351 (return_in_memory_ms_64): Ditto.
26353 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
26355 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
26356 * coverage.c (coverage_compute_profile_id): Handle externally visible
26359 2014-04-14 Martin Jambor <mjambor@suse.cz>
26361 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
26362 DECL_DISREGARD_INLINE_LIMITS functions.
26364 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
26367 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
26369 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
26372 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
26373 optimize_insn_for_speed_p instead of
26374 optimize_function_for_speed_p.
26376 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
26378 * doc/invoke.texi (free): Document AArch64.
26380 2014-04-14 Richard Biener <rguenther@suse.de>
26382 PR tree-optimization/60042
26383 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
26384 (insert_into_preds_of_block): Do not prevent PHI insertion
26385 for REFERENCE exprs here ...
26386 (eliminate_dom_walker::before_dom_children): ... but prevent
26387 their use here under similar conditions when applied to the
26388 IL after PRE optimizations.
26390 2014-04-14 Richard Biener <rguenther@suse.de>
26392 * passes.def: Move early points-to after early SRA.
26394 2014-04-14 Richard Biener <rguenther@suse.de>
26396 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
26397 check for which sign-changes we allow when forwarding
26398 a converted value into a switch.
26400 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
26402 * stor-layout.c (place_field): Finalize non-constant offset for the
26405 2014-04-14 Richard Biener <rguenther@suse.de>
26407 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
26409 (expand_switch_using_bit_tests_p): Likewise.
26410 (process_switch): Compute and pass on speed_p based on the
26412 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
26413 optimize_bb_for_speed_p.
26415 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
26417 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
26418 * function.h (struct function): Rename has_force_vect_loops into
26419 has_force_vectorize_loops.
26420 * lto-streamer-in.c (input_cfg): Adjust for renaming.
26421 (input_struct_function_base): Likewise.
26422 * lto-streamer-out.c (output_cfg): Likewise.
26423 (output_struct_function_base): Likewise.
26424 * omp-low.c (expand_omp_simd): Likewise.
26425 * tree-cfg.c (move_sese_region_to_fn): Likewise.
26426 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
26427 (version_loop_for_if_conversion): Likewise.
26428 (tree_if_conversion): Likewise.
26429 (main_tree_if_conversion): Likewise.
26430 (gate_tree_if_conversion): Likewise.
26431 * tree-inline.c (copy_loops): Likewise.
26432 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
26433 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
26434 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
26435 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
26436 * tree-vectorizer.c (vectorize_loops): Likewise.
26437 * tree-vectorizer.h (unlimited_cost_model): Likewise.
26439 2014-04-14 Richard Biener <rguenther@suse.de>
26442 * lto-streamer-out.c (wrap_refs): New function.
26443 (lto_output): Wrap symbol references in global initializes in
26444 type-preserving MEM_REFs.
26446 2014-04-14 Christian Bruel <christian.bruel@st.com>
26448 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
26450 2014-04-14 Christian Bruel <christian.bruel@st.com>
26452 * config/sh/sh.md (setmemqi): New expand pattern.
26453 * config/sh/sh.h (CLEAR_RATIO): Define.
26454 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
26455 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
26457 2014-04-14 Richard Biener <rguenther@suse.de>
26459 PR middle-end/55022
26460 * fold-const.c (negate_expr_p): Don't negate directional rounding
26462 (fold_negate_expr): Likewise.
26464 2014-04-14 Richard Biener <rguenther@suse.de>
26466 PR tree-optimization/59817
26467 PR tree-optimization/60453
26468 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
26469 recursion to catch all CHRECs in the scalar evolution and restrict
26470 the predicate for the remains appropriately.
26472 2014-04-12 Catherine Moore <clm@codesourcery.com>
26474 * config/mips/constraints.md: Add new register constraint "kb".
26475 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
26476 (*movhi_internal): Likewise.
26477 (*movqi_internal): Likewise.
26478 * config/mips/mips.h (M16_STORE_REGS): New register class.
26479 (REG_CLASS_NAMES): Add M16_STORE_REGS.
26480 (REG_CLASS_CONTENTS): Likewise.
26481 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
26483 2014-04-11 Tobias Burnus <burnus@net-b.de>
26486 * doc/invoke.texi (-Wformat-signedness): Document it.
26487 (Wformat=2): Mention that this enables -Wformat-signedness.
26489 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
26491 * common/config/epiphany/epiphany-common.c
26492 (epiphany_option_optimization_table): Enable section anchors by
26493 default at -O1 or higher.
26494 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
26495 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
26496 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
26497 carries no extra cost.
26498 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
26499 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
26500 * config/epiphany/predicates.md (memclob_operand): New predicate.
26501 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
26502 Use memclob_operand predicate and X constraint for operand 3.
26504 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
26506 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
26507 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
26510 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
26512 PR rtl-optimization/60651
26513 * mode-switching.c (optimize_mode_switching): Make sure to emit
26514 sets of a lower numbered entity before sets of a higher numbered
26515 entity to a mode of the same or lower priority.
26516 When creating a seginfo for a basic block that starts with a code
26517 label, move the insertion point past the code label.
26518 (new_seginfo): Document and enforce requirement that
26519 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
26520 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
26521 * doc/tm.texi: Regenerate.
26523 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
26526 * config/arc/arc.c (arc_save_restore): Fix assert typo.
26528 2013-04-11 Jakub Jelinek <jakub@redhat.com>
26530 * BASE-VER: Set to 4.10.0.
26532 2014-04-11 Tobias Burnus <burnus@net-b.de>
26535 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
26536 * doc/gcc.texi (Service): Update description in the @menu
26537 * doc/invoke.texi (Option Summary): Remove misplaced and
26540 2014-04-11 Steve Ellcey <sellcey@mips.com>
26541 Jakub Jelinek <jakub@redhat.com>
26543 PR middle-end/60556
26544 * expr.c (convert_move): Use emit_store_flag_force instead of
26545 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
26548 2014-04-11 Richard Biener <rguenther@suse.de>
26550 PR middle-end/60797
26551 * varasm.c (assemble_alias): Avoid endless error reporting
26552 recursion by setting TREE_ASM_WRITTEN.
26554 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26556 * config/s390/s390.md: Add a splitter for NOT rtx.
26558 2014-04-11 Jakub Jelinek <jakub@redhat.com>
26560 PR rtl-optimization/60663
26561 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
26563 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
26564 Jakub Jelinek <jakub@redhat.com>
26567 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
26568 flag from decl_node to node.
26570 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26573 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
26574 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
26575 ameliorating the cases where it can be.
26577 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
26580 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
26582 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
26583 (loadsync_<mode>): Change mode.
26584 (load_quadpti, store_quadpti): New.
26585 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
26586 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
26587 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
26589 2014-04-09 Cong Hou <congh@google.com>
26592 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
26595 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26597 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
26598 instead of vnor to exploit possible fusion opportunity in the
26600 (altivec_expand_vec_perm_const_le): Likewise.
26602 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
26604 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
26605 (loadsync_<mode>): Change mode.
26606 (load_quadpti, store_quadpti): New.
26607 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
26608 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
26610 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
26613 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
26614 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
26615 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
26617 2014-04-08 Richard Biener <rguenther@suse.de>
26619 PR middle-end/60706
26620 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
26621 a 64bit widest int print double-int similar to on HWI64 hosts.
26623 2014-04-08 Richard Biener <rguenther@suse.de>
26625 PR tree-optimization/60785
26626 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
26627 default defs properly.
26629 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
26631 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
26632 (Weffc++): Likewise.
26634 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
26636 * ipa-devirt.c (maybe_record_node): When node is not recorded,
26637 set completep to false rather than true.
26639 2014-04-07 Douglas B Rupp <rupp@adacore.com>
26642 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
26643 ARM_TARGET2_DWARF_FORMAT.
26645 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
26648 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
26649 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
26652 2014-04-07 Richard Biener <rguenther@suse.de>
26654 PR tree-optimization/60766
26655 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
26656 (may_eliminate_iv): Convert cand_value_at result to desired type.
26658 2014-04-07 Jason Merrill <jason@redhat.com>
26661 * common.opt (-fno-gnu-unique): Add.
26662 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
26664 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26666 * haifa-sched.c: Fix outdated function reference and minor
26667 grammar errors in introductory comment.
26669 2014-04-07 Richard Biener <rguenther@suse.de>
26671 PR middle-end/60750
26672 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
26673 for noreturn calls.
26674 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
26676 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
26679 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
26680 size accounting for thunks.
26681 (pa_asm_output_mi_thunk): Use final_start_function() and
26682 final_end_function() to output function start and end directives.
26684 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
26686 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
26687 device specific ISA/ feature information. Remove short_sp and
26688 errata_skip ds. Add avr_device_specific_features enum to have device
26690 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
26691 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
26692 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
26693 updated device specific info.
26694 * config/avr/avr-mcus.def: Merge device specific details to
26695 dev_attribute field.
26696 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
26698 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
26699 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
26700 assembler if RMW isa supported by current device.
26701 * config/avr/genmultilib.awk: Update as device info structure changed.
26702 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
26704 2014-04-04 Cong Hou <congh@google.com>
26706 PR tree-optimization/60656
26707 * tree-vect-stmts.c (supportable_widening_operation):
26708 Fix a bug that elements in a vector with vect_used_by_reduction
26709 property are incorrectly reordered when the operation on it is not
26710 consistant with the one in reduction operation.
26712 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
26714 PR rtl-optimization/60155
26715 * gcse.c (record_set_data): New function.
26716 (single_set_gcse): New function.
26717 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
26718 (hoist_code): Likewise.
26719 (get_pressure_class_and_nregs): Likewise.
26721 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
26723 * explow.c (probe_stack_range): Emit a final optimization blockage.
26725 2014-04-04 Anthony Green <green@moxielogic.com>
26727 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
26730 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
26733 * lto-cgraph.c (input_overwrite_node): Check that partitioning
26734 flags are set only during streaming.
26735 * ipa.c (process_references, walk_polymorphic_call_targets,
26736 symtab_remove_unreachable_nodes): Drop bodies of always inline
26737 after early inlining.
26738 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
26740 2014-04-04 Jakub Jelinek <jakub@redhat.com>
26741 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26744 * dwarf2out.c (const_ok_for_output_1): Reject expressions
26747 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26750 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
26752 (cortex_a53_fdivd): Likewise.
26754 2014-04-04 Martin Jambor <mjambor@suse.cz>
26757 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
26758 Adjust all callers.
26759 * cgraph.c (clone_of_p): Also return true if thunks match.
26760 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
26761 cgraph_function_or_thunk_node and an obsolete comment.
26762 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
26764 (build_function_decl_skip_args): Likewise.
26765 (set_new_clone_decl_and_node_flags): New function.
26766 (duplicate_thunk_for_node): Likewise.
26767 (redirect_edge_duplicating_thunks): Likewise.
26768 (cgraph_clone_node): New parameter args_to_skip, pass it to
26769 redirect_edge_duplicating_thunks which is called instead of
26770 cgraph_redirect_edge_callee.
26771 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
26772 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
26774 2014-04-04 Jeff Law <law@redhat.com>
26777 * config/arm/predicates.md (const_int_I_operand): New predicate.
26778 (const_int_M_operand): Similarly.
26779 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
26781 (insv_t2, extv_reg, extzv_t2): Likewise.
26782 (load_multiple_with_writeback): Similarly for const_int_I_operand.
26783 (pop_multiple_with_writeback_and_return): Likewise.
26784 (vfp_pop_multiple_with_writeback): Likewise
26786 2014-04-04 Richard Biener <rguenther@suse.de>
26789 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
26790 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
26792 * gimplify.h (gimple_add_tmp_var_fn): Declare.
26793 * gimplify.c (gimple_add_tmp_var_fn): New function.
26794 * gimple-expr.h (create_tmp_reg_fn): Declare.
26795 * gimple-expr.c (create_tmp_reg_fn): New function.
26796 * gimple-low.c (record_vars_into): Don't change cfun.
26797 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
26798 code generation without cfun.
26800 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
26803 * Makefile.in (install-driver): Fix shell scripting.
26805 2014-04-03 Cong Hou <congh@google.com>
26807 PR tree-optimization/60505
26808 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
26809 threshold of number of iterations below which no vectorization
26811 * tree-vect-loop.c (new_loop_vec_info):
26812 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
26813 * tree-vect-loop.c (vect_analyze_loop_operations):
26814 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
26815 * tree-vect-loop.c (vect_transform_loop):
26816 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
26817 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
26818 of iterations of the loop and see if we should build the epilogue.
26820 2014-04-03 Richard Biener <rguenther@suse.de>
26822 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
26823 (streamer_tree_cache_create): Adjust.
26824 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
26825 to allow optional nodes array.
26826 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
26827 (streamer_tree_cache_append): Likewise.
26828 (streamer_tree_cache_create): Create nodes array optionally
26829 as specified by parameter.
26830 * lto-streamer-out.c (create_output_block): Avoid maintaining
26831 the node array in the writer cache.
26832 (DFS_write_tree): Remove assertion.
26833 (produce_asm_for_decls): Free the out decl state hash table early.
26834 * lto-streamer-in.c (lto_data_in_create): Adjust for
26835 streamer_tree_cache_create prototype change.
26837 2014-04-03 Richard Biener <rguenther@suse.de>
26839 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
26840 set TREE_CHAIN to NULL_TREE.
26842 2014-04-03 Richard Biener <rguenther@suse.de>
26844 PR tree-optimization/60740
26845 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
26846 over all GIMPLE_COND operands.
26848 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
26850 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
26851 (Weffc++): Remove Scott's numbering, merge lists and reference
26854 2014-04-03 Nick Clifton <nickc@redhat.com>
26856 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
26859 2014-04-03 Martin Jambor <mjambor@suse.cz>
26861 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
26862 mention gcc_unreachable before failing.
26863 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
26866 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
26869 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
26870 inconsistent code and instead mark the context inconsistent.
26871 (possible_polymorphic_call_targets): For inconsistent contexts
26872 return empty complete list.
26874 2014-04-02 Anthony Green <green@moxielogic.com>
26876 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
26877 (extendqisi2, extendhisi2): Define.
26878 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
26879 (WCHAR_TYPE): Change to unsigned int.
26881 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26883 PR tree-optimization/60733
26884 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
26885 insertion point for PHI candidates to be the end of the feeding
26886 block for the PHI argument.
26888 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
26890 PR rtl-optimization/60650
26891 * lra-constraints.c (process_alt_operands): Decrease reject for
26892 earlyclobber matching.
26894 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26896 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
26898 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26900 * config/spu/spu.c (pad_bb): Do not crash when the last
26901 insn is CODE_FOR_blockage.
26903 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26905 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
26906 lies outside the target mode.
26908 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
26911 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
26912 software floating point or no floating point registers, do not
26913 allow any type in the FPRs. Eliminate a test for SPE SIMD types
26914 in GPRs that occurs after we tested for GPRs that would never be
26917 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
26918 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
26919 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
26920 specifically allow DDmode, since that does not use the SPE SIMD
26923 2014-04-02 Richard Biener <rguenther@suse.de>
26925 PR middle-end/60729
26926 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
26927 MODE_INTs. Properly use negv_optab.
26928 (expand_abs): Likewise.
26930 2014-04-02 Richard Biener <rguenther@suse.de>
26933 * Makefile.in (install-driver): Guard extra installs with special
26936 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
26938 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26939 Document vec_vgbbd.
26941 2014-04-01 Richard Henderson <rth@redhat.com>
26944 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
26945 alternative enabled before register allocation.
26947 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
26949 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
26950 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
26952 (nios2_large_got_address): Remove unneeded 'sym' parameter.
26953 (nios2_got_address): Update nios2_large_got_address call site.
26954 (nios2_delegitimize_address): New function.
26955 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
26956 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
26957 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
26959 2014-04-01 Martin Husemann <martin@duskware.de>
26961 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
26964 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
26966 PR rtl-optimization/60604
26967 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
26968 check from register_operand.
26969 (register_operand): Redefine in terms of general_operand.
26970 (nonmemory_operand): Use register_operand for the non-constant cases.
26972 2014-04-01 Richard Biener <rguenther@suse.de>
26974 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
26976 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
26978 * doc/invoke.texi (mapp-regs): Clarify.
26980 2014-03-31 Ulrich Drepper <drepper@gmail.com>
26982 * config/i386/avx512fintrin.h (__v32hi): Define type.
26983 (__v64qi): Likewise.
26984 (_mm512_set1_epi8): Define.
26985 (_mm512_set1_epi16): Define.
26986 (_mm512_set4_epi32): Define.
26987 (_mm512_set4_epi64): Define.
26988 (_mm512_set4_pd): Define.
26989 (_mm512_set4_ps): Define.
26990 (_mm512_setr4_epi64): Define.
26991 (_mm512_setr4_epi32): Define.
26992 (_mm512_setr4_pd): Define.
26993 (_mm512_setr4_ps): Define.
26994 (_mm512_setzero_epi32): Define.
26996 2014-03-31 Martin Jambor <mjambor@suse.cz>
26998 PR middle-end/60647
26999 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
27000 callsite_arguments_match_p. Updated all callers. Also check types of
27001 corresponding formal parameters and actual arguments.
27002 (not_all_callers_have_enough_arguments_p) Renamed to
27003 some_callers_have_mismatched_arguments_p.
27005 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
27007 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
27009 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
27012 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
27015 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
27017 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
27018 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
27020 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
27021 Use FMAMODE_NOVF512 mode iterator.
27022 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
27023 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
27024 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
27025 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
27027 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
27028 Use VF_128_256 mode iterator.
27029 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
27032 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
27034 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
27035 static chain if needed.
27037 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
27040 * lra-constraints.c (index_part_to_reg): New.
27041 (process_address): Use it.
27043 2014-03-27 Jeff Law <law@redhat.com>
27044 Jakub Jelinek <jakub@redhat.com>
27047 * expr.c (do_tablejump): Use simplify_gen_binary rather than
27048 gen_rtx_{PLUS,MULT} to build up the address expression.
27050 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
27051 creating non-canonical RTL.
27053 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
27056 * ipa-inline.c (want_inline_small_function_p): Short circuit large
27057 functions; reorganize to make cheap checks first.
27058 (inline_small_functions): Do not estimate growth when dumping;
27060 * ipa-inline.h (inline_summary): Add min_size.
27061 (growth_likely_positive): New function.
27062 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
27063 (set_cond_stmt_execution_predicate): Cleanup.
27064 (estimate_edge_size_and_time): Compute min_size.
27065 (estimate_calls_size_and_time): Likewise.
27066 (estimate_node_size_and_time): Likewise.
27067 (inline_update_overall_summary): Update min_size.
27068 (do_estimate_edge_time): Likewise.
27069 (do_estimate_edge_size): Update.
27070 (do_estimate_edge_hints): Update.
27071 (growth_likely_positive): New function.
27073 2014-03-28 Jakub Jelinek <jakub@redhat.com>
27076 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
27077 also if addr has VOIDmode.
27079 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27081 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
27082 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
27084 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
27085 instructions as well as AdvancedSIMD loads.
27087 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27089 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
27090 Use crypto_aese type.
27091 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
27092 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
27093 crypto_aese, crypto_aesmc. Move to types.md.
27094 * config/arm/types.md (crypto_aes): Split into crypto_aese,
27096 * config/arm/iterators.md (crypto_type): Likewise.
27098 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
27100 * cgraph.c: Include expr.h and tree-dfa.h.
27101 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
27104 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
27107 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
27108 regs from checking multi-reg pseudos.
27110 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27112 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
27114 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27116 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
27117 if it would clobber the stack pointer, even temporarily.
27119 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
27121 * mode-switching.c: Make small adjustments to the top comment.
27123 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
27125 * config/rs6000/constraints.md (wD constraint): New constraint to
27126 match the constant integer to get the top DImode/DFmode out of a
27127 vector in a VSX register.
27129 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
27130 match the constant integer to get the top DImode/DFmode out of a
27131 vector in a VSX register.
27133 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
27136 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27139 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
27140 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
27142 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
27143 Optimize vec_extract of 64-bit values, where the value being
27144 extracted is in the top word, where we can use scalar
27145 instructions. Add direct move and store support. Combine the big
27146 endian/little endian vector select load support into a single insn.
27147 (vsx_extract_<mode>_internal1): Likewise.
27148 (vsx_extract_<mode>_internal2): Likewise.
27149 (vsx_extract_<mode>_load): Likewise.
27150 (vsx_extract_<mode>_store): Likewise.
27151 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
27152 combined into vsx_extract_<mode>_load.
27153 (vsx_extract_<mode>_one_le): Likewise.
27155 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
27156 define the top 64-bit vector element.
27158 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
27161 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27162 Document vec_vbpermq builtin.
27165 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
27166 enable use of xxsldwi and xxpermdi builtin functions.
27167 (vec_xxpermdi): Likewise.
27169 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27170 Document use of vec_xxsldwi and vec_xxpermdi builtins.
27172 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
27174 PR rtl-optimization/60650
27175 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
27177 (find_spills_for): New.
27178 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
27179 Spill all pseudos on the second iteration.
27181 2014-03-27 Marek Polacek <polacek@redhat.com>
27184 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
27187 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27189 * config/s390/s390.c (s390_can_use_return_insn): Check for
27190 call-saved FPRs on 31 bit.
27192 2014-03-27 Jakub Jelinek <jakub@redhat.com>
27194 PR middle-end/60682
27195 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
27196 if they need regimplification, just drop them instead of
27197 calling gimple_regimplify_operands on them.
27199 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
27202 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
27203 (aarch64_frame_pointer_required): Adjust logic.
27204 (aarch64_can_eliminate): Adjust logic.
27205 (aarch64_override_options_after_change): Adjust logic.
27207 2014-03-27 Dehao Chen <dehao@google.com>
27209 * ipa-inline.c (early_inliner): Update node's inline info.
27211 2014-03-26 Dehao Chen <dehao@google.com>
27213 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
27214 compiler inserted conditional jumps for NAN float check.
27216 2014-03-26 Jakub Jelinek <jakub@redhat.com>
27218 * ubsan.h (ubsan_create_data): Change second argument's type
27219 to const location_t *.
27220 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
27222 (ubsan_create_data): Change second argument to const location_t *PLOC.
27223 Create Loc field whenever PLOC is non-NULL.
27224 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
27225 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
27229 * real.c (real_to_integer2): Change type of low to UHWI.
27231 2014-03-26 Tobias Burnus <burnus@net-b.de>
27233 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
27234 (CILK_SELF_SPECS): New define.
27235 (driver_self_specs): Use it.
27237 2014-03-26 Richard Biener <rguenther@suse.de>
27239 * tree-pretty-print.c (percent_K_format): Implement special
27240 case for LTO and its stripped down BLOCK tree.
27242 2014-03-26 Jakub Jelinek <jakub@redhat.com>
27245 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
27247 * tree-vrp.c (simplify_internal_call_using_ranges): If only
27248 one range is range_int_cst_p, but not both, at least optimize
27249 addition/subtraction of 0 and multiplication by 0 or 1.
27250 * gimple-fold.c (gimple_fold_call): Fold
27251 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
27252 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
27253 INTEGER_CSTs, try to fold at least x * 0 and y - y.
27255 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
27257 PR rtl-optimization/60452
27258 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
27259 <case REG>: Return 1 for invalid offsets from the frame pointer.
27261 2014-03-26 Marek Polacek <polacek@redhat.com>
27264 * doc/extend.texi (C Extensions): Mention variable-length arrays in
27267 2014-03-26 Marek Polacek <polacek@redhat.com>
27270 * doc/extend.texi (Designated Inits): Describe what happens to omitted
27273 2014-03-26 Marek Polacek <polacek@redhat.com>
27276 * ira-color.c (update_conflict_hard_regno_costs): Perform the
27277 multiplication in unsigned type.
27279 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
27281 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
27283 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
27285 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
27287 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
27290 * cif-code.def (UNREACHABLE) New code.
27291 * ipa-inline.c (inline_small_functions): Skip edges to
27292 __builtlin_unreachable.
27293 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
27294 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
27295 predicate to __bulitin_unreachable.
27296 (set_cond_stmt_execution_predicate): Fix issue when
27297 invert_tree_comparison returns ERROR_MARK.
27298 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
27299 propagate to inline clones.
27300 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
27302 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
27303 * cgraphclones.c (cgraph_clone_node): If call destination is already
27304 ureachable, do not redirect it back.
27305 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
27308 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
27310 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
27311 Do not modify inline clones.
27313 2014-03-25 Jakub Jelinek <jakub@redhat.com>
27315 * config/i386/i386.md (general_sext_operand): New mode attr.
27316 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
27317 don't generate (sign_extend (const_int)).
27318 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
27319 operands[2]. Use We constraint instead of <i> and
27320 <general_sext_operand> predicate instead of <general_operand>.
27321 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
27322 * config/i386/constraints.md (We): New constraint.
27323 * config/i386/predicates.md (x86_64_sext_operand,
27324 sext_operand): New predicates.
27326 2014-03-25 Martin Jambor <mjambor@suse.cz>
27329 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
27330 inconsistent devirtualizations to __builtin_unreachable.
27332 2014-03-25 Marek Polacek <polacek@redhat.com>
27335 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
27337 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
27339 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
27340 order of elements for big-endian.
27342 2014-03-25 Richard Biener <rguenther@suse.de>
27344 PR middle-end/60635
27345 * gimplify-me.c (gimple_regimplify_operands): Update the
27348 2014-03-25 Martin Jambor <mjambor@suse.cz>
27351 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
27352 (lto_output_varpool_node): Likewise.
27353 (input_overwrite_node): Likewise.
27354 (input_varpool_node): Likewise.
27356 2014-03-25 Richard Biener <rguenther@suse.de>
27358 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
27359 (run_gcc): Likewise.
27361 2014-03-25 Jakub Jelinek <jakub@redhat.com>
27363 * combine.c (simplify_compare_const): Add MODE argument.
27364 Handle mode_width 0 as very large mode_width.
27365 (try_combine, simplify_comparison): Adjust callers.
27367 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
27368 type to avoid signed integer overflow.
27369 * explow.c (plus_constant): Likewise.
27371 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
27373 * doc/generic.texi: Correct typos.
27375 2014-03-24 Tobias Burnus <burnus@net-b.de>
27377 * doc/invoke.texi (-flto): Expand section about
27378 using static libraries with LTO.
27380 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27382 PR rtl-optimization/60501
27383 * optabs.def (addptr3_optab): New optab.
27384 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
27385 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
27386 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
27388 * lra.c (emit_add3_insn): Use the addptr pattern if available.
27390 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
27392 2014-03-24 Ulrich Drepper <drepper@gmail.com>
27394 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
27397 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
27398 (_mm256_undefined_ps): Define.
27399 (_mm256_undefined_pd): Define.
27400 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
27401 (_mm_undefined_pd): Define.
27402 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
27403 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
27404 (_mm512_undefined_ps): Define.
27405 (_mm512_undefined_pd): Define.
27406 Use _mm*_undefined_*.
27407 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
27409 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
27411 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
27412 (lshr_simd): DI mode added.
27413 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
27414 (aarch64_ushr_simddi): Likewise.
27415 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
27416 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
27417 (vshrd_n_u64): Likewise.
27419 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27421 * Makefile.in (s-macro_list): Depend on cc1.
27423 2014-03-23 Teresa Johnson <tejohnson@google.com>
27425 * ipa-utils.c (ipa_print_order): Use specified dump file.
27427 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
27429 PR rtl-optimization/60601
27430 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
27432 * gcc.c (eval_spec_function): Initialize save_growing_value.
27434 2014-03-22 Jakub Jelinek <jakub@redhat.com>
27437 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
27438 code == MINUS_EXPR, never swap op0 with op1.
27440 * toplev.c (init_local_tick): Avoid signed integer multiplication
27442 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
27443 shift by first operand's bitsize.
27445 2014-03-21 Jakub Jelinek <jakub@redhat.com>
27448 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
27449 redefine to 1 or 0.
27450 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
27451 TARGET_ISA_64BIT_P(x).
27453 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27455 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
27456 pattern for vector nor instead of subtract from splat(-1).
27457 (altivec_expand_vec_perm_const_le): Likewise.
27459 2014-03-21 Richard Henderson <rth@twiddle.net>
27462 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
27463 related insns after epilogue_completed.
27465 2014-03-21 Martin Jambor <mjambor@suse.cz>
27468 * cgraph.h (symtab_node): New flag body_removed.
27469 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
27470 when removing bodies.
27471 * symtab.c (dump_symtab_base): Dump body_removed flag.
27472 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
27473 had their bodies removed.
27475 2014-03-21 Martin Jambor <mjambor@suse.cz>
27478 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
27481 2014-03-21 Richard Biener <rguenther@suse.de>
27483 PR tree-optimization/60577
27484 * tree-core.h (struct tree_base): Document nothrow_flag use
27485 in DECL_NONALIASED.
27486 * tree.h (DECL_NONALIASED): New.
27487 (may_be_aliased): Adjust.
27488 * coverage.c (build_var): Set DECL_NONALIASED.
27490 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
27492 * expr.c (expand_expr_real_1): Remove outdated comment.
27494 2014-03-20 Jakub Jelinek <jakub@redhat.com>
27496 PR middle-end/60597
27497 * ira.c (adjust_cleared_regs): Call copy_rtx on
27498 *reg_equiv[REGNO (loc)].src_p before passing it to
27499 simplify_replace_fn_rtx.
27502 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
27503 into CONST, put pic register as first operand of PLUS. Use
27504 gen_const_mem for both 32-bit and 64-bit PIC got loads.
27506 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27508 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
27510 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
27512 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
27513 around for store forwarding issue in the FPU on the UT699.
27514 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
27515 loads and operations if -mfix-ut699 is specified.
27516 (divtf3_hq): Tweak attribute.
27517 (sqrttf2_hq): Likewise.
27519 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
27521 * calls.c (store_one_arg): Remove incorrect const qualification on the
27522 type of the temporary.
27523 * cfgexpand.c (expand_return): Likewise.
27524 * expr.c (expand_constructor): Likewise.
27525 (expand_expr_real_1): Likewise.
27527 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27529 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
27532 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
27535 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
27537 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
27539 * config/arm/aarch-common-protos.h
27540 (alu_cost_table): Fix spelling of "extend".
27541 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
27543 2014-03-19 Richard Biener <rguenther@suse.de>
27545 PR middle-end/60553
27546 * tree-core.h (tree_type_common): Re-order pointer members
27547 to reduce recursion depth during GC walks.
27549 2014-03-19 Marek Polacek <polacek@redhat.com>
27552 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
27553 before accessing it.
27555 2014-03-19 Richard Biener <rguenther@suse.de>
27558 * lto-streamer-in.c (input_function): In WPA stage do not drop
27561 2014-03-19 Jakub Jelinek <jakub@redhat.com>
27563 PR tree-optimization/60559
27564 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
27565 with build_zero_cst assignment.
27567 2014-03-18 Kai Tietz <ktietz@redhat.com>
27569 PR rtl-optimization/56356
27570 * sdbout.c (sdbout_parms): Verify that parms'
27571 incoming argument is valid.
27572 (sdbout_reg_parms): Likewise.
27574 2014-03-18 Richard Henderson <rth@redhat.com>
27577 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
27578 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
27579 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
27581 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
27583 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
27584 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
27585 Italicize plugin event names in description. Explain that
27586 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
27587 Remind that no GCC functions should be called after PLUGIN_FINISH.
27588 Explain what pragmas with expansion are.
27590 2014-03-18 Martin Liska <mliska@suse.cz>
27592 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
27593 gimple call statement is update.
27594 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
27595 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
27597 2014-03-18 Jakub Jelinek <jakub@redhat.com>
27600 * ubsan.c (ubsan_instrument_unreachable): Call
27601 initialize_sanitizer_builtins.
27602 (ubsan_pass): Likewise.
27605 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
27606 varpool_finalize_decl instead of rest_of_decl_compilation.
27608 2014-03-18 Richard Biener <rguenther@suse.de>
27610 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
27611 by using bitmap_and_compl instead of bitmap_and_compl_into.
27612 (df_rd_transfer_function): Likewise.
27614 2014-03-18 Richard Biener <rguenther@suse.de>
27616 * doc/lto.texi (fresolution): Fix typo.
27618 2014-03-18 Richard Biener <rguenther@suse.de>
27620 * doc/invoke.texi (flto): Update for changes in 4.9.
27622 2014-03-18 Richard Biener <rguenther@suse.de>
27624 * doc/loop.texi: Remove section on the removed lambda framework.
27625 Update loop docs with recent changes in preserving loop structure.
27627 2014-03-18 Richard Biener <rguenther@suse.de>
27629 * doc/lto.texi (-fresolution): Document.
27631 2014-03-18 Richard Biener <rguenther@suse.de>
27633 * doc/contrib.texi: Adjust my name.
27635 2014-03-18 Jakub Jelinek <jakub@redhat.com>
27638 * internal-fn.c: Include diagnostic-core.h.
27639 (expand_BUILTIN_EXPECT): New function.
27640 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
27641 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
27642 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
27643 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
27644 IFN_BUILTIN_EXPECT.
27645 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
27646 Revert 3 argument __builtin_expect code.
27647 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
27648 * gimple-fold.c (gimple_fold_call): Likewise.
27649 * tree.h (fold_builtin_expect): New prototype.
27650 * builtins.c (build_builtin_expect_predicate): Add predictor
27651 argument, if non-NULL, create 3 argument __builtin_expect.
27652 (fold_builtin_expect): No longer static. Add ARG2 argument,
27653 pass it through to build_builtin_expect_predicate.
27654 (fold_builtin_2): Adjust caller.
27655 (fold_builtin_3): Handle BUILT_IN_EXPECT.
27656 * internal-fn.def (BUILTIN_EXPECT): New.
27658 2014-03-18 Tobias Burnus <burnus@net-b.de>
27661 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
27662 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
27663 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
27665 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
27668 * predict.c (combine_predictions_for_bb): Fix up formatting.
27669 (expr_expected_value_1, expr_expected_value): Add predictor argument,
27670 fill what it points to if non-NULL.
27671 (tree_predict_by_opcode): Adjust caller, use the predictor.
27672 * predict.def (PRED_COMPARE_AND_SWAP): Add.
27674 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
27676 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
27677 proper constant for the store mode.
27679 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
27681 * symtab.c (change_decl_assembler_name): Fix transparent alias
27682 chain construction.
27684 2014-03-16 Renlin Li <Renlin.Li@arm.com>
27686 * config/aarch64/aarch64.c: Correct the comments about the
27687 aarch64 stack layout.
27689 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
27691 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
27692 check for GF_OMP_FOR_KIND_FOR.
27694 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
27696 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
27697 ymm and zmm register names.
27699 2014-03-17 Jakub Jelinek <jakub@redhat.com>
27702 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
27703 note creation for the 2010-08-31 changes.
27705 2014-03-17 Marek Polacek <polacek@redhat.com>
27707 PR middle-end/60534
27708 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
27709 as -fno-tree-loop-vectorize.
27710 (expand_omp_simd): Likewise.
27712 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
27714 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
27715 (eligible_for_call_delay): New prototype.
27716 * config/sparc/sparc.c (tls_call_delay): Rename into...
27717 (eligible_for_call_delay): ...this. Return false if the instruction
27718 cannot be put in the delay slot of a branch.
27719 (eligible_for_restore_insn): Simplify.
27720 (eligible_for_return_delay): Return false if the instruction cannot be
27721 put in the delay slot of a branch and simplify.
27722 (eligible_for_sibcall_delay): Return false if the instruction cannot be
27723 put in the delay slot of a branch.
27724 * config/sparc/sparc.md (fix_ut699): New attribute.
27725 (tls_call_delay): Delete.
27726 (in_call_delay): Reimplement.
27727 (eligible_for_sibcall_delay): Rename into...
27728 (in_sibcall_delay): ...this.
27729 (eligible_for_return_delay): Rename into...
27730 (in_return_delay): ...this.
27731 (in_branch_delay): Reimplement.
27732 (in_uncond_branch_delay): Delete.
27733 (in_annul_branch_delay): Delete.
27735 2014-03-14 Richard Henderson <rth@redhat.com>
27738 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
27739 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
27740 (*floathi<X87MODEF>2_i387_with_temp): Remove.
27741 (floathi splitters): Remove.
27742 (float<SWI48x>xf2): New pattern.
27743 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
27744 code that tried to handle DImode for 32-bit, but which was excluded
27745 by the pattern's condition. Drop allocation of stack temporary.
27746 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
27747 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
27748 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
27749 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
27750 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
27751 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
27752 (*float<SWI48><MODEF>2_sse_interunit): Remove.
27753 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
27754 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
27755 (*float<SWI48x><X87MODEF>2_i387): Remove.
27756 (all float _with_temp splitters): Remove.
27757 (*float<SWI48x><MODEF>2_i387): New pattern.
27758 (*float<SWI48><MODEF>2_sse): New pattern.
27759 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
27760 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
27762 2014-03-14 Jakub Jelinek <jakub@redhat.com>
27763 Marek Polacek <polacek@redhat.com>
27765 PR middle-end/60484
27766 * common.opt (dump_base_name_prefixed): New Variable.
27767 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
27768 if x_dump_base_name_prefixed is already set, set it at the end.
27770 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
27772 PR rtl-optimization/60508
27773 * lra-constraints.c (get_reload_reg): Add new parameter
27775 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
27776 Pass the new parameter values.
27778 2014-03-14 Richard Biener <rguenther@suse.de>
27780 * common.opt: Revert unintented changes from r205065.
27781 * opts.c: Likewise.
27783 2014-03-14 Richard Biener <rguenther@suse.de>
27785 PR middle-end/60518
27786 * cfghooks.c (split_block): Properly adjust all loops the
27787 block was a latch of.
27789 2014-03-14 Martin Jambor <mjambor@suse.cz>
27792 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
27795 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
27798 * config/avr/avr.c (avr_set_current_function): Pass function name
27799 through default_strip_name_encoding before sanity checking instead
27800 of skipping the first char of the assembler name.
27802 2014-03-13 Richard Henderson <rth@redhat.com>
27805 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
27806 (ix86_force_to_memory, ix86_free_from_memory): Remove.
27807 * config/i386/i386-protos.h: Likewise.
27808 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
27809 in the expander instead of a splitter.
27810 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
27811 any possibility of requiring a memory.
27812 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
27813 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
27814 (fp branch splitters): Update for ix86_split_fp_branch.
27815 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
27816 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
27817 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
27818 (*fop_<MODEF>_2_i387): Remove f/r alternative.
27819 (*fop_<MODEF>_3_i387): Likewise.
27820 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
27821 (splitters for the fop_* register patterns): Remove.
27822 (fscalexf4_i387): Rename from *fscalexf4_i387.
27823 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
27825 2014-03-13 Jakub Jelinek <jakub@redhat.com>
27827 PR tree-optimization/59779
27828 * tree-dfa.c (get_ref_base_and_extent): Use double_int
27829 type for bitsize and maxsize instead of HOST_WIDE_INT.
27831 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
27833 PR rtl-optimization/57320
27834 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
27835 the CFG after thread_prologue_and_epilogue_insns.
27837 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
27839 PR rtl-optimization/57189
27840 * lra-constraints.c (process_alt_operands): Disfavor spilling
27843 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
27845 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
27847 2014-03-13 Jakub Jelinek <jakub@redhat.com>
27849 PR tree-optimization/59025
27850 PR middle-end/60418
27851 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
27852 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
27854 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
27857 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
27858 calls of avr_out_plus_1.
27860 2014-03-13 Bin Cheng <bin.cheng@arm.com>
27862 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
27863 BB's single pred and update the father loop's latch info later.
27865 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
27867 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
27871 (VEC_base): Likewise.
27872 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
27873 registers, we need to swap double words in little endian mode.
27875 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
27876 to be a container mode for 128-bit integer operations added in ISA
27877 2.07. Unlike TImode and PTImode, the preferred register set is
27878 the Altivec/VMX registers for the 128-bit operations.
27880 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
27882 (rs6000_split_128bit_ok_p): Likewise.
27884 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
27885 macros for creating ISA 2.07 normal and overloaded builtin
27886 functions with 3 arguments.
27887 (BU_P8V_OVERLOAD_3): Likewise.
27888 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
27889 for use as overloaded functions.
27890 (VPERM_1TI_UNS): Likewise.
27891 (VSEL_1TI): Likewise.
27892 (VSEL_1TI_UNS): Likewise.
27893 (ST_INTERNAL_1ti): Likewise.
27894 (LD_INTERNAL_1ti): Likewise.
27895 (XXSEL_1TI): Likewise.
27896 (XXSEL_1TI_UNS): Likewise.
27897 (VPERM_1TI): Likewise.
27898 (VPERM_1TI_UNS): Likewise.
27899 (XXPERMDI_1TI): Likewise.
27900 (SET_1TI): Likewise.
27901 (LXVD2X_V1TI): Likewise.
27902 (STXVD2X_V1TI): Likewise.
27903 (VEC_INIT_V1TI): Likewise.
27904 (VEC_SET_V1TI): Likewise.
27905 (VEC_EXT_V1TI): Likewise.
27906 (EQV_V1TI): Likewise.
27907 (NAND_V1TI): Likewise.
27908 (ORC_V1TI): Likewise.
27909 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
27910 added in ISA 2.07. Add both normal 'altivec' builtins, and the
27911 overloaded builtin.
27912 (VADDUQM): Likewise.
27913 (VSUBCUQ): Likewise.
27914 (VADDEUQM): Likewise.
27915 (VADDECUQ): Likewise.
27916 (VSUBEUQM): Likewise.
27917 (VSUBECUQ): Likewise.
27919 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
27920 __int128_t and __uint128_t types.
27921 (__uint128_type): Likewise.
27922 (altivec_categorize_keyword): Add support for vector __int128_t,
27923 vector __uint128_t, vector __int128, and vector unsigned __int128
27924 as a container type for TImode operations that need to be done in
27925 VSX/Altivec registers.
27926 (rs6000_macro_to_expand): Likewise.
27927 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
27928 to support 128-bit integer instructions vaddcuq, vadduqm,
27929 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
27930 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
27932 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
27933 for V1TImode, and set up preferences to use VSX/Altivec registers.
27934 Setup VSX reload handlers.
27935 (rs6000_debug_reg_global): Likewise.
27936 (rs6000_init_hard_regno_mode_ok): Likewise.
27937 (rs6000_preferred_simd_mode): Likewise.
27938 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
27939 (easy_altivec_constant): Likewise.
27940 (output_vec_const_move): Likewise.
27941 (rs6000_expand_vector_set): Convert V1TImode set and extract to
27943 (rs6000_expand_vector_extract): Likewise.
27944 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
27946 (rs6000_const_vec): Add support for V1TImode.
27947 (rs6000_emit_le_vsx_load): Swap double words when loading or
27948 storing TImode/V1TImode.
27949 (rs6000_emit_le_vsx_store): Likewise.
27950 (rs6000_emit_le_vsx_move): Likewise.
27951 (rs6000_emit_move): Add support for V1TImode.
27952 (altivec_expand_ld_builtin): Likewise.
27953 (altivec_expand_st_builtin): Likewise.
27954 (altivec_expand_vec_init_builtin): Likewise.
27955 (altivec_expand_builtin): Likewise.
27956 (rs6000_init_builtins): Add support for V1TImode type. Add
27957 support for ISA 2.07 128-bit integer builtins. Define type names
27958 for the VSX/Altivec vector types.
27959 (altivec_init_builtins): Add support for overloaded vector
27960 functions with V1TImode type.
27961 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
27962 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
27964 (rs6000_split_128bit_ok_p): Likewise.
27965 (rs6000_handle_altivec_attribute): Create V1TImode from vector
27966 __int128_t and vector __uint128_t.
27968 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
27969 and mode attributes.
27971 (VSX_M2): Likewise.
27976 (VS_scalar): Likewise.
27977 (VS_double): Likewise.
27978 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
27980 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
27981 we support the ISA 2.07 128-bit integer arithmetic instructions.
27982 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
27983 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
27984 and TImode types for use with the builtin functions.
27985 (V1TI_type_node): Likewise.
27986 (unsigned_V1TI_type_node): Likewise.
27987 (intTI_type_internal_node): Likewise.
27988 (uintTI_type_internal_node): Likewise.
27990 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
27991 128-bit builtin functions.
27992 (UNSPEC_VADDEUQM): Likewise.
27993 (UNSPEC_VADDECUQ): Likewise.
27994 (UNSPEC_VSUBCUQ): Likewise.
27995 (UNSPEC_VSUBEUQM): Likewise.
27996 (UNSPEC_VSUBECUQ): Likewise.
27997 (VM): Add V1TImode to vector mode iterators.
27999 (VI_unit): Likewise.
28000 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
28001 (altivec_vaddcuq): Likewise.
28002 (altivec_vsubuqm): Likewise.
28003 (altivec_vsubcuq): Likewise.
28004 (altivec_vaddeuqm): Likewise.
28005 (altivec_vaddecuq): Likewise.
28006 (altivec_vsubeuqm): Likewise.
28007 (altivec_vsubecuq): Likewise.
28009 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
28011 (BOOL_128): Likewise.
28012 (BOOL_REGS_OUTPUT): Likewise.
28013 (BOOL_REGS_OP1): Likewise.
28014 (BOOL_REGS_OP2): Likewise.
28015 (BOOL_REGS_UNARY): Likewise.
28016 (BOOL_REGS_AND_CR0): Likewise.
28018 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
28019 128-bit integer builtin support.
28020 (vec_vadduqm): Likewise.
28021 (vec_vaddecuq): Likewise.
28022 (vec_vaddeuqm): Likewise.
28023 (vec_vsubecuq): Likewise.
28024 (vec_vsubeuqm): Likewise.
28025 (vec_vsubcuq): Likewise.
28026 (vec_vsubuqm): Likewise.
28028 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
28029 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
28030 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
28031 128-bit integer add/subtract to ISA 2.07.
28033 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
28035 * config/arc/arc.c (arc_predicate_delay_insns):
28036 Fix third argument passed to conditionalize_nonjump.
28038 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
28040 * config/aarch64/aarch64-builtins.c
28041 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
28042 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
28043 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
28044 instead of __builtin_lfloor.
28045 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
28047 2014-03-12 Jakub Jelinek <jakub@redhat.com>
28049 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
28050 (tree_ssa_ifcombine_bb_1): New function.
28051 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
28052 is an empty forwarder block to then_bb or vice versa and then_bb
28053 and else_bb are effectively swapped.
28055 2014-03-12 Christian Bruel <christian.bruel@st.com>
28058 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
28059 REG_CFA_DEF_CFA note.
28060 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
28061 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
28063 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
28065 PR tree-optimization/60454
28066 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
28068 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28070 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
28071 Do not define target_cpu_default2 to generic.
28072 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
28073 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
28074 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
28076 2014-03-12 Jakub Jelinek <jakub@redhat.com>
28077 Marc Glisse <marc.glisse@inria.fr>
28079 PR tree-optimization/60502
28080 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
28081 instead of build_low_bits_mask.
28083 2014-03-12 Jakub Jelinek <jakub@redhat.com>
28085 PR middle-end/60482
28086 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
28087 if there are multiple uses, but op doesn't live on E edge.
28088 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
28089 clobber stmts before __builtin_unreachable.
28091 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
28093 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
28094 hard_frame_pointer_rtx.
28095 * cse.c (cse_insn): Remove volatile check.
28096 * cselib.c (cselib_process_insn): Likewise.
28097 * dse.c (scan_insn): Likewise.
28099 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
28101 * config/arc/arc.c (conditionalize_nonjump): New function,
28103 (arc_ifcvt): ... this.
28104 (arc_predicate_delay_insns): Use it.
28106 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
28108 * config/arc/predicates.md (extend_operand): During/after reload,
28109 allow const_int_operand.
28110 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
28111 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
28112 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
28114 (umulsi3_highpart_i): Likewise.
28116 2014-03-11 Richard Biener <rguenther@suse.de>
28118 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
28119 Add asserts to guard possible wrong-code bugs.
28121 2014-03-11 Richard Biener <rguenther@suse.de>
28123 PR tree-optimization/60429
28124 PR tree-optimization/60485
28125 * tree-ssa-structalias.c (set_union_with_increment): Properly
28126 take into account all fields that overlap the shifted vars.
28127 (do_sd_constraint): Likewise.
28128 (do_ds_constraint): Likewise.
28129 (get_constraint_for_ptr_offset): Likewise.
28131 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
28133 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
28134 (nios2_compute_frame_layout):
28135 Add calculation of cfun->machine->fp_save_offset.
28136 (nios2_expand_prologue): Correct setting of frame pointer register
28138 (nios2_expand_epilogue): Update recovery of stack pointer from
28139 frame pointer accordingly.
28140 (nios2_initial_elimination_offset): Update calculation of offset
28141 for eliminating to HARD_FRAME_POINTER_REGNUM.
28143 2014-03-10 Jakub Jelinek <jakub@redhat.com>
28146 * ipa.c (symtab_remove_unreachable_nodes): Don't call
28147 cgraph_get_create_node on VAR_DECLs.
28149 2014-03-10 Richard Biener <rguenther@suse.de>
28151 PR middle-end/60474
28152 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
28154 2014-03-08 Douglas B Rupp <rupp@gnat.com>
28156 * config/vms/vms.opt (vms_float_format): New variable.
28158 2014-03-08 Tobias Burnus <burnus@net-b.de>
28160 * doc/invoke.texi (-fcilkplus): Update implementation status.
28162 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
28163 Richard Biener <rguenther@suse.de>
28165 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
28166 consistently accross all TUs.
28167 (run_gcc): Enable -fshort-double automatically at link at link-time
28168 and disallow override.
28170 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
28173 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
28174 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
28175 if they can't be used.
28177 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28179 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
28180 for Solaris 11/x86 ld.
28181 * configure: Regenerate.
28183 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28185 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
28186 (LIB_TLS_SPEC): Save as ld_tls_libs.
28187 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
28188 (HAVE_AS_IX86_TLSLDM): New test.
28189 * configure, config.in: Regenerate.
28190 * config/i386/i386.c (legitimize_tls_address): Fall back to
28191 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
28192 cannot support TLS_MODEL_LOCAL_DYNAMIC.
28193 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
28194 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
28196 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
28198 * common.opt (fira-loop-pressure): Mark as optimization.
28200 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
28202 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
28203 an OpenMP mappable type.
28205 2014-03-06 Matthias Klose <doko@ubuntu.com>
28207 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
28208 MULTILIB_OSDIRNAMES is not defined.
28210 2014-03-06 Jakub Jelinek <jakub@redhat.com>
28211 Meador Inge <meadori@codesourcery.com>
28214 * config/arm/arm.c (arm_tls_symbol_p): Remove.
28215 (arm_legitimize_address): Call legitimize_tls_address for any
28216 arm_tls_referenced_p expression, handle constant addend. Call it
28217 before testing for !TARGET_ARM.
28218 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
28220 2014-03-06 Richard Biener <rguenther@suse.de>
28222 PR middle-end/60445
28226 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
28228 * tree-streamer.c (record_common_node): Assert we don't record
28229 nodes with type double.
28230 (preload_common_node): Skip type double, complex double and double
28231 pointer since it is now frontend dependent due to fshort-double option.
28233 2014-03-06 Richard Biener <rguenther@suse.de>
28235 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
28236 or -fno-lto is specified and the linker has full plugin support.
28237 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
28238 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
28239 * lto-wrapper.c (merge_and_complain): Merge compile-time
28240 optimization levels.
28241 (run_gcc): And pass it through to the link options.
28243 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
28247 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
28249 * cselib.c (remove_useless_values): Skip to avoid quadratic
28250 behavior if the condition moved from...
28251 (cselib_process_insn): ... here holds.
28253 2014-03-05 Jakub Jelinek <jakub@redhat.com>
28256 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
28257 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
28260 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
28261 (TM_H): Add x86-tune.def.
28263 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28265 * config/aarch64/aarch64.c (generic_tunings):
28266 Use cortexa57_extra_costs.
28268 2014-03-05 Jakub Jelinek <jakub@redhat.com>
28271 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
28272 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
28273 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
28276 2014-03-04 Heiher <r@hev.cc>
28278 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
28279 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
28281 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
28283 * config/i386/predicates.md (const2356_operand): Change to ...
28284 (const2367_operand): ... this.
28285 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
28287 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28288 (*avx512pf_scatterpf<mode>sf): Ditto.
28289 (avx512pf_scatterpf<mode>df): Ditto.
28290 (*avx512pf_scatterpf<mode>df_mask): Ditto.
28291 (*avx512pf_scatterpf<mode>df): Ditto.
28292 * config/i386/i386.c (ix86_expand_builtin): Update
28293 incorrect hint operand error message.
28295 2014-03-04 Richard Biener <rguenther@suse.de>
28297 * lto-section-in.c (lto_get_section_data): Fix const cast.
28299 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
28301 * tree-streamer.c (record_common_node): Assert we don't record
28302 nodes with type double.
28303 (preload_common_node): Skip type double, complex double and double
28304 pointer since it is now frontend dependent due to fshort-double option.
28306 2014-03-04 Richard Biener <rguenther@suse.de>
28309 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
28310 (lto_input_toplevel_asms): Likewise.
28311 * lto-section-in.c (lto_get_section_data): Instead do it here
28314 2014-03-04 Richard Biener <rguenther@suse.de>
28316 PR tree-optimization/60382
28317 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
28318 dead PHIs a reduction.
28320 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
28322 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
28324 (_mm_prefetch): Move out of GCC target("sse") pragma.
28325 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
28326 GCC target("prfchw") pragma.
28327 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
28329 * config/i386/i386.c (ix86_option_override_internal): Enable
28330 -mprfchw with -mprefetchwt1.
28332 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
28334 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
28337 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
28339 * opts.h (CL_PCH_IGNORE): Define.
28340 * targhooks.c (option_affects_pch_p):
28341 Return false for options that have CL_PCH_IGNORE set.
28342 * opt-functions.awk: Process PchIgnore.
28343 * doc/options.texi: Document PchIgnore.
28345 * config/arc/arc.opt (misize): Add PchIgnore property.
28347 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28349 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
28350 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
28351 constraint on constants to permit them being loaded into
28352 GENERAL_REGS or BASE_REGS.
28354 2014-03-03 Nick Clifton <nickc@redhat.com>
28356 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
28357 anti-cacnonical alternatives.
28358 (negandhi3_real): New pattern.
28359 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
28361 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
28363 * config/avr/avr-mcus.def: Remove atxmega16x1.
28364 * config/avr/avr-tables.opt: Regenerate.
28365 * config/avr/t-multilib: Regenerate.
28366 * doc/avr-mmcu.texi: Regenerate.
28368 2014-03-03 Tobias Grosser <tobias@grosser.es>
28369 Mircea Namolaru <mircea.namolaru@inria.fr>
28371 PR tree-optimization/58028
28372 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
28375 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28377 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
28378 not handled by recognizers.
28380 2014-03-03 Jakub Jelinek <jakub@redhat.com>
28382 PR middle-end/60175
28383 * function.c (expand_function_end): Don't emit
28384 clobber_return_register sequence if clobber_after is a BARRIER.
28385 * cfgexpand.c (construct_exit_block): Append instructions before
28386 return_label to prev_bb.
28388 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28390 * config/rs6000/constraints.md: Document reserved use of "wc".
28392 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
28395 * ipa.c (function_and_variable_visibility): When dissolving comdat
28396 group, also set all symbols to local.
28398 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
28403 2013-12-14 Jan Hubicka <jh@suse.cz>
28404 PR middle-end/58477
28405 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
28407 2014-03-02 Jon Beniston <jon@beniston.com>
28413 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
28414 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
28415 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
28416 (simple_return, *simple_return): New patterns
28417 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
28418 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
28420 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
28422 * dwarf2out.c (gen_subprogram_die): Tidy.
28424 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
28427 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
28428 (*mov_t_msb_neg_negc): ... this new insn.
28430 2014-02-28 Jason Merrill <jason@redhat.com>
28433 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
28436 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
28439 * dwarf2out.c (decltype_auto_die): New static.
28440 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
28441 (gen_type_die_with_usage): Handle 'decltype(auto)'.
28442 (is_cxx_auto): Likewise.
28444 2014-02-28 Ian Bolton <ian.bolton@arm.com>
28446 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
28447 we are not using general regs only.
28449 2014-02-28 Richard Biener <rguenther@suse.de>
28452 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
28453 previous fix and only allow to remove trivial pre-headers
28454 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
28455 (remove_forwarder_block): Properly update the latch of a loop.
28457 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
28460 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
28461 (cselib_preserved_hash_table): New.
28462 (preserve_constants_and_equivs): Move preserved vals to it.
28463 (cselib_find_slot): Look it up first.
28464 (cselib_init): Initialize it.
28465 (cselib_finish): Release it.
28466 (dump_cselib_table): Dump it.
28468 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
28471 * cselib.c (remove_useless_values): Skip to avoid quadratic
28472 behavior if the condition moved from...
28473 (cselib_process_insn): ... here holds.
28475 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
28478 * var-tracking.c (vt_initialize): Apply the same condition to
28479 preserve the CFA base value.
28481 2014-02-28 Joey Ye <joey.ye@arm.com>
28484 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
28485 if reload in progress or completed.
28487 2014-02-28 Tobias Burnus <burnus@net-b.de>
28489 PR middle-end/60147
28490 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
28493 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
28495 * doc/tm.texi.in (Condition Code Status): Update documention for
28496 relative locations of cc0-setter and cc0-user.
28498 2014-02-27 Jeff Law <law@redhat.com>
28500 PR rtl-optimization/52714
28501 * combine.c (try_combine): When splitting an unrecognized PARALLEL
28502 into two independent simple sets, if I3 is a jump, ensure the
28503 pattern we place into I3 is a (set (pc) ...).
28505 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
28506 Jeff Law <law@redhat.com>
28508 PR rtl-optimization/49847
28509 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
28510 are in different blocks.
28511 * doc/tm.texi (Condition Code Status): Update documention for
28512 relative locations of cc0-setter and cc0-user.
28514 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
28517 * lra.c (lra_emit_add): Check SUBREG too.
28519 2014-02-27 Andreas Schwab <schwab@suse.de>
28521 * config/m68k/m68k.c (m68k_option_override): Disable
28522 -flive-range-shrinkage for classic m68k.
28523 (m68k_override_options_after_change): Likewise.
28525 2014-02-27 Marek Polacek <polacek@redhat.com>
28527 PR middle-end/59223
28528 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
28529 -Wmaybe-uninitialized.
28531 2014-02-27 Alan Modra <amodra@gmail.com>
28534 * reload1.c (emit_input_reload_insns): When reload_override_in,
28535 set old to rl->in_reg when rl->in_reg is a subreg.
28537 2014-02-26 Richard Biener <rguenther@suse.de>
28540 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
28542 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
28544 * common/config/i386/predicates.md (const1256_operand): Remove.
28545 (const2356_operand): New.
28546 (const_1_to_2_operand): Remove.
28547 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
28548 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28549 (*avx512pf_gatherpf<mode>sf): Ditto.
28550 (avx512pf_gatherpf<mode>df): Ditto.
28551 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28552 (*avx512pf_gatherpf<mode>df): Ditto.
28553 (avx512pf_scatterpf<mode>sf): Ditto.
28554 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28555 (*avx512pf_scatterpf<mode>sf): Ditto.
28556 (avx512pf_scatterpf<mode>df): Ditto.
28557 (*avx512pf_scatterpf<mode>df_mask): Ditto.
28558 (*avx512pf_scatterpf<mode>df): Ditto.
28559 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
28561 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
28563 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
28564 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
28565 (_mm512_mask_testn_epi64_mask): Move to ...
28566 * config/i386/avx512cdintrin.h: Here.
28567 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
28568 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
28569 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
28570 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
28571 TARGET_AVX512F from TARGET_AVX512CD.
28573 2014-02-26 Richard Biener <rguenther@suse.de>
28576 * ipa.c (walk_polymorphic_call_targets): Properly guard
28577 call to inline_update_overall_summary.
28579 2014-02-26 Bin Cheng <bin.cheng@arm.com>
28582 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
28583 and latches only if requested. Fix latch if it is removed.
28584 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
28585 LOOPS_HAVE_PREHEADERS.
28587 2014-02-25 Andrew Pinski <apinski@cavium.com>
28589 * builtins.c (expand_builtin_thread_pointer): Create a new target
28590 when the target is NULL.
28592 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
28594 PR rtl-optimization/60317
28595 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
28596 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
28597 * lra-assigns.c: Include params.h.
28598 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
28599 other reload pseudos considerations.
28601 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28603 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
28604 to use canonical form for nor<mode>3.
28606 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28609 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
28612 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
28614 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
28615 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
28616 (ix86_handle_option): Handle OPT_mprefetchwt1.
28617 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
28618 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
28620 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
28621 OPTION_MASK_ISA_PREFETCHWT1.
28622 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
28623 (PTA_PREFETCHWT1): New.
28624 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
28625 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
28626 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
28627 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
28628 (*prefetch_avx512pf_<mode>_: Change into ...
28629 (*prefetch_prefetchwt1_<mode>: This.
28630 * config/i386/i386.opt (mprefetchwt1): New.
28631 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
28632 (_mm_prefetch): Handle intent to write.
28633 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
28635 2014-02-25 Richard Biener <rguenther@suse.de>
28637 PR middle-end/60291
28638 * emit-rtl.c (mem_attrs_htab): Remove.
28639 (mem_attrs_htab_hash): Likewise.
28640 (mem_attrs_htab_eq): Likewise.
28641 (set_mem_attrs): Always allocate new mem-attrs when something changed.
28642 (init_emit_once): Do not allocate mem_attrs_htab.
28644 2014-02-25 Richard Biener <rguenther@suse.de>
28647 * lto-opts.c (lto_write_options): Output non-explicit conservative
28648 -fwrapv, -fno-trapv and -fno-strict-overflow.
28649 * lto-wrapper.c (merge_and_complain): Handle merging those options.
28650 (run_gcc): And pass them through.
28652 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
28654 * sel-sched.c (calculate_new_fences): New parameter ptime.
28655 Calculate it as a maximum over all fence cycles.
28656 (sel_sched_region_2): Adjust the call to calculate_new_fences.
28657 Print the final schedule timing when sched_verbose.
28659 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
28661 PR rtl-optimization/60292
28662 * sel-sched.c (fill_vec_av_set): Do not reset target availability
28663 bit fot the fence instruction.
28665 2014-02-24 Alangi Derick <alangiderick@gmail.com>
28667 * calls.h: Fix typo in comment.
28669 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
28671 * config/pa/pa.c (pa_output_move_double): Don't valididate when
28672 adjusting offsetable addresses.
28674 2014-02-24 Guozhi Wei <carrot@google.com>
28676 * sparseset.h (sparseset_pop): Fix the wrong index.
28678 2014-02-24 Walter Lee <walt@tilera.com>
28680 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
28681 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
28683 * common/config/tilegx/tilegx-common.c
28684 (TARGET_DEFAULT_TARGET_FLAGS): Define.
28685 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
28686 (LINK_SPEC): Ditto.
28687 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
28688 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
28689 (tilegx_gimplify_va_arg_expr): Handle big endian.
28690 (tilegx_expand_unaligned_load): Ditto.
28691 (tilegx_expand_unaligned_store): Ditto.
28692 (TARGET_RETURN_IN_MSB): New.
28693 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
28694 (TARGET_ENDIAN_DEFAULT): New.
28695 (TARGET_BIG_ENDIAN): Handle big endian.
28696 (BYTES_BIG_ENDIAN): Ditto.
28697 (WORDS_BIG_ENDIAN): Ditto.
28698 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
28699 (ENDIAN_SPEC): New.
28700 (EXTRA_SPECS): New.
28701 * config/tilegx/tilegx.md (extv): Handle big endian.
28703 (insn_st<n>): Ditto.
28704 (insn_st<n>_add<bitsuffix>): Ditto.
28705 (insn_stnt<n>): Ditto.
28706 (insn_stnt<n>_add<bitsuffix>):Ditto.
28707 (vec_interleave_highv8qi): Handle big endian.
28708 (vec_interleave_highv8qi_be): New.
28709 (vec_interleave_highv8qi_le): New.
28710 (insn_v1int_h): Handle big endian.
28711 (vec_interleave_lowv8qi): Handle big endian.
28712 (vec_interleave_lowv8qi_be): New.
28713 (vec_interleave_lowv8qi_le): New.
28714 (insn_v1int_l): Handle big endian.
28715 (vec_interleave_highv4hi): Handle big endian.
28716 (vec_interleave_highv4hi_be): New.
28717 (vec_interleave_highv4hi_le): New.
28718 (insn_v2int_h): Handle big endian.
28719 (vec_interleave_lowv4hi): Handle big endian.
28720 (vec_interleave_lowv4hi_be): New.
28721 (vec_interleave_lowv4hi_le): New.
28722 (insn_v2int_l): Handle big endian.
28723 (vec_interleave_highv2si): Handle big endian.
28724 (vec_interleave_highv2si_be): New.
28725 (vec_interleave_highv2si_le): New.
28726 (insn_v4int_h): Handle big endian.
28727 (vec_interleave_lowv2si): Handle big endian.
28728 (vec_interleave_lowv2si_be): New.
28729 (vec_interleave_lowv2si_le): New.
28730 (insn_v4int_l): Handle big endian.
28731 * config/tilegx/tilegx.opt (mbig-endian): New option.
28732 (mlittle-endian): New option.
28733 * doc/install.texi: Document tilegxbe-linux.
28734 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
28736 2014-02-24 Martin Jambor <mjambor@suse.cz>
28739 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
28740 there are no parameter descriptors.
28742 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
28744 PR rtl-optimization/60268
28745 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
28746 initialization to ...
28747 (sched_rgn_init): ... here.
28748 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
28750 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
28752 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
28755 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
28757 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
28760 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
28762 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
28763 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
28765 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
28767 * config/microblaze/predicates.md: Add cmp_op predicate.
28768 * config/microblaze/microblaze.md: Add branch_compare instruction
28769 which uses cmp_op predicate and emits cmp insn before branch.
28770 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
28771 to microblaze_expand_conditional_branch and consolidate logic.
28772 (microblaze_expand_conditional_branch): emit branch_compare
28773 insn instead of handling cmp op separate from branch insn.
28775 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28777 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
28780 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28782 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
28783 define_insn with define_expand and new define_insn
28784 *altivec_lve<VI_char>x_internal.
28785 (altivec_stve<VI_char>x): Replace define_insn with define_expand
28786 and new define_insn *altivec_stve<VI_char>x_internal.
28787 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
28789 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
28791 (altivec_expand_stvex_be): New function.
28793 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
28795 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
28796 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
28797 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
28798 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
28800 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
28803 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
28804 instead of emit_move_insn.
28806 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28808 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
28809 vspltw with vsldoi.
28810 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
28811 gen_altivec_vsumsws.
28813 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28815 * config/rs6000/altivec.md (altivec_lvxl): Rename as
28816 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
28817 (altivec_lvxl_<mode>): New define_expand incorporating
28818 -maltivec=be semantics where needed.
28819 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
28820 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
28821 semantics where needed.
28822 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
28823 (altivec_stvx_<mode>): New define_expand incorporating
28824 -maltivec=be semantics where needed.
28825 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
28826 VM2 iterator instead of V4SI.
28827 (altivec_stvxl_<mode>): New define_expand incorporating
28828 -maltivec=be semantics where needed.
28829 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
28830 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
28831 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
28832 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
28833 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
28834 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
28835 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
28836 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
28837 ALTIVEC_BUILTIN_STVXL.
28838 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
28839 (altivec_expand_stvx_be): Likewise.
28840 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
28841 (altivec_expand_lvx_be): Likewise.
28842 (altivec_expand_stvx_be): Likewise.
28843 (altivec_expand_builtin): Add cases for
28844 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
28845 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
28846 (altivec_init_builtins): Add definitions for
28847 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
28848 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
28850 2014-02-21 Catherine Moore <clm@codesourcery.com>
28852 * doc/invoke.texi (mvirt, mno-virt): Document.
28853 * config/mips/mips.opt (mvirt): New option.
28854 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
28856 2014-02-21 Richard Biener <rguenther@suse.de>
28858 PR tree-optimization/60276
28859 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
28860 (STMT_VINFO_MIN_NEG_DIST): New macro.
28861 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
28862 STMT_VINFO_MIN_NEG_DIST.
28863 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
28864 made for negative dependence distances still hold.
28866 2014-02-21 Richard Biener <rguenther@suse.de>
28868 PR middle-end/60291
28869 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
28870 DECL_INITIAL for globals not in the current function context.
28872 2014-02-21 Jakub Jelinek <jakub@redhat.com>
28874 PR tree-optimization/56490
28875 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
28876 * tree-ssa-uninit.c: Include params.h.
28877 (compute_control_dep_chain): Add num_calls argument, return false
28878 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
28879 num_calls to recursive call.
28880 (find_predicates): Change dep_chain into normal array,
28881 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
28882 variable and adjust compute_control_dep_chain caller.
28883 (find_def_preds): Likewise.
28885 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
28887 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
28888 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
28890 2014-02-21 Nick Clifton <nickc@redhat.com>
28892 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
28893 (pushhi1): Likewise.
28894 (popqi1): Add mode to pre_dec.
28895 (pophi1): Likewise.
28897 2014-02-21 Jakub Jelinek <jakub@redhat.com>
28899 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
28900 mode for mask of V8SFmode permutation.
28902 2014-02-20 Richard Henderson <rth@redhat.com>
28905 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
28906 a new pseudo for OLDVAL.
28908 2014-02-20 Jakub Jelinek <jakub@redhat.com>
28911 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
28912 gen_reg_rtx if d->testing_p.
28913 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
28914 if d->testing_p and we will certainly return true.
28915 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
28918 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
28920 * emit-rtl.c (gen_reg_rtx): Assert that
28921 crtl->emit.regno_pointer_align_length is non-zero.
28923 2014-02-20 Richard Henderson <rth@redhat.com>
28926 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
28927 on failure the store back into EXPECT.
28929 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
28930 Sandra Loosemore <sandra@codesourcery.com>
28932 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
28933 * config/nios2/nios2.c (nios2_function_profiler): Add
28934 -fPIC (flag_pic == 2) support.
28935 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
28936 (nios2_large_offset_p): New function.
28937 (nios2_unspec_reloc_p): Move up position, update to use
28938 nios2_large_offset_p.
28939 (nios2_unspec_address): Remove function.
28940 (nios2_unspec_offset): New function.
28941 (nios2_large_got_address): New function.
28942 (nios2_got_address): Add large offset support.
28943 (nios2_legitimize_tls_address): Update usage of removed and new
28945 (nios2_symbol_binds_local_p): New function.
28946 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
28947 (nios2_legitimize_address): Update to use nios2_large_offset_p.
28948 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
28949 (nios2_print_operand): Merge H/L processing, add hiadj/lo
28950 processing for (const (unspec ...)).
28951 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
28953 2014-02-20 Richard Biener <rguenther@suse.de>
28955 * tree-cfg.c (replace_uses_by): Mark altered BBs before
28956 doing the substitution.
28957 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
28959 2014-02-20 Martin Jambor <mjambor@suse.cz>
28962 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
28963 info when checking whether lattices are bottom.
28965 2014-02-20 Richard Biener <rguenther@suse.de>
28967 PR middle-end/60221
28968 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
28971 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
28974 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
28975 parameter specifying the scaling.
28976 (inline_call): Update.
28977 (want_inline_recursively): Guard division by zero.
28978 (recursive_inlining): Update.
28979 * ipa-inline.h (clone_inlined_nodes): Update.
28981 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
28984 * config/i386/i386.c (classify_argument): Pass structures of size
28985 64 bytes or less in register.
28987 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
28988 Kirill Yukhin <kirill.yukhin@intel.com>
28990 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
28991 (_mm_rcp28_round_ss): Ditto.
28992 (_mm_rsqrt28_round_sd): Ditto.
28993 (_mm_rsqrt28_round_ss): Ditto.
28994 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
28995 (_mm_rcp14_round_ss): Ditto.
28996 (_mm_rsqrt14_round_sd): Ditto.
28997 (_mm_rsqrt14_round_ss): Ditto.
28998 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
28999 the first input operand, get rid of match_dup.
29000 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
29002 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
29004 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
29005 operand as the first input operand, set type attribute.
29006 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
29007 Set type attribute.
29008 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
29009 operand as the first input operand, set type attribute.
29011 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29013 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
29016 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
29019 * config/i386/i386.c (construct_container): Remove TFmode check
29020 for X86_64_INTEGER_CLASS.
29022 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
29025 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
29026 only when -Wpsabi is enabled.
29028 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
29031 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
29032 passing arrays in registers are the same as for structs, so remove the
29033 special case for them.
29035 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
29037 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
29038 destination type, extract only the valid bits if the source type is not
29039 integral and has a different mode.
29041 2014-02-19 Richard Biener <rguenther@suse.de>
29044 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
29047 2014-02-19 Richard Biener <rguenther@suse.de>
29050 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
29051 (ipa_modify_call_arguments): Emit an argument load explicitely and
29052 preserve virtual SSA form there and for the replacement call.
29053 Do not update SSA form nor free dominance info.
29055 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
29057 * ipa.c (function_and_variable_visibility): Also clear WEAK
29058 flag when disolving COMDAT_GROUP.
29060 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
29062 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
29063 * ipa-prop.c (ipa_set_jf_known_type): Return early when
29064 not devirtualizing.
29065 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
29066 do more sanity checks.
29067 (detect_type_change): Return true when giving up early.
29068 (compute_complex_assign_jump_func): Fix type parameter of
29069 ipa_set_ancestor_jf.
29070 (compute_complex_ancestor_jump_func): Likewise.
29071 (update_jump_functions_after_inlining): Fix updating of
29073 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
29075 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
29077 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
29078 inline clones when edge disappears.
29080 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
29083 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
29084 Split 64-bit moves into 2 patterns. Do not allow the use of
29085 direct move for TDmode in little endian, since the decimal value
29086 has little endian bytes within a word, but the 64-bit pieces are
29087 ordered in a big endian fashion, and normal subreg's of TDmode are
29089 (mov<mode>_64bit_dm): Likewise.
29090 (movtd_64bit_nodm): Likewise.
29092 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
29094 PR tree-optimization/60174
29095 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
29096 statement of an SSA_NAME that occurs in an abnormal PHI node.
29098 2014-02-18 Jakub Jelinek <jakub@redhat.com>
29101 * final.c (SEEN_BB): Remove.
29102 (SEEN_NOTE, SEEN_EMITTED): Renumber.
29103 (final_scan_insn): Don't force_source_line on second
29104 NOTE_INSN_BASIC_BLOCK.
29106 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
29109 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
29110 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
29111 (type_natural_mode): Warn ABI change when %zmm register is not
29112 available for AVX512F vector value passing.
29114 2014-02-18 Kai Tietz <ktietz@redhat.com>
29117 * config/i386/i386.c (ix86_expand_prologue): Use value in
29118 rax register as displacement when restoring %r10 or %rax.
29119 Fix wrong offset when restoring both registers.
29121 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
29123 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
29124 assertion with conditional return.
29126 2014-02-18 Jakub Jelinek <jakub@redhat.com>
29127 Uros Bizjak <ubizjak@gmail.com>
29130 * config/i386/driver-i386.c (host_detect_local_cpu): If
29131 YMM state is not saved by the OS, also clear has_f16c. Move
29132 CPUID 0x80000001 handling before YMM state saving checking.
29134 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
29136 PR rtl-optimization/58960
29137 * haifa-sched.c (alloc_global_sched_pressure_data): New,
29138 factored out from ...
29139 (sched_init): ... here.
29140 (free_global_sched_pressure_data): New, factored out from ...
29141 (sched_finish): ... here.
29142 * sched-int.h (free_global_sched_pressure_data): Declare.
29143 * sched-rgn.c (nr_regions_initial): New static global.
29144 (haifa_find_rgns): Initialize it.
29145 (schedule_region): Disable sched-pressure for the newly
29148 2014-02-17 Richard Biener <rguenther@suse.de>
29150 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
29151 release SSA defs of pattern stmts.
29153 2014-02-17 Richard Biener <rguenther@suse.de>
29155 * tree-inline.c (expand_call_inline): Release the virtual
29156 operand defined by the call we are about to inline.
29158 2014-02-17 Richard Biener <rguenther@suse.de>
29160 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
29162 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
29163 Ilya Tocar <ilya.tocar@intel.com>
29165 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
29166 arguments order in builtin.
29167 (_mm512_permutexvar_epi64): Ditto.
29168 (_mm512_mask_permutexvar_epi64): Ditto
29169 (_mm512_maskz_permutexvar_epi32): Ditto
29170 (_mm512_permutexvar_epi32): Ditto
29171 (_mm512_mask_permutexvar_epi32): Ditto
29173 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29175 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
29176 (p8_vmrgow): Likewise.
29178 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29180 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
29183 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
29186 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
29187 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
29188 into 64-bit and 32-bit moves. On 64-bit moves, add support for
29189 using direct move instructions on ISA 2.07. Also adjust
29190 instruction length for 64-bit.
29191 (mov<mode>_64bit, TFmode/TDmode): Likewise.
29192 (mov<mode>_32bit, TFmode/TDmode): Likewise.
29194 2014-02-15 Alan Modra <amodra@gmail.com>
29198 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
29199 find_replacement on parts of insn rtl that might be reloaded.
29201 2014-02-15 Richard Biener <rguenther@suse.de>
29203 PR tree-optimization/60183
29204 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
29205 (tree_ssa_phiprop): Calculate and free post-dominators.
29207 2014-02-14 Jeff Law <law@redhat.com>
29209 PR rtl-optimization/60131
29210 * ree.c (get_extended_src_reg): New function.
29211 (combine_reaching_defs): Use it rather than assuming location of REG.
29212 (find_and_remove_re): Verify first operand of extension is
29213 a REG before adding the insns to the copy list.
29215 2014-02-14 Roland McGrath <mcgrathr@google.com>
29217 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
29218 * configure: Regenerated.
29219 * config.in: Regenerated.
29220 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
29221 instead of ASM_SHORT.
29223 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
29224 Richard Earnshaw <rearnsha@arm.com>
29226 PR rtl-optimization/59535
29227 * lra-constraints.c (process_alt_operands): Encourage alternative
29228 when unassigned pseudo class is superset of the alternative class.
29229 (inherit_reload_reg): Don't inherit when optimizing for code size.
29230 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
29231 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
29232 modes not less than 4 for Thumb1.
29234 2014-02-14 Kyle McMartin <kyle@redhat.com>
29237 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
29239 2014-02-14 Richard Biener <rguenther@suse.de>
29241 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
29242 (get_frame_arg): Drop the assert with langhook types_compatible_p.
29243 Do not strip INDIRECT_REFs.
29245 2014-02-14 Richard Biener <rguenther@suse.de>
29248 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
29249 DECL_FUNCTION_SPECIFIC_TARGET.
29250 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
29251 * tree-streamer-out.c (pack_ts_target_option): Remove.
29252 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
29253 (write_ts_function_decl_tree_pointers): Do not stream
29254 DECL_FUNCTION_SPECIFIC_TARGET.
29255 * tree-streamer-in.c (unpack_ts_target_option): Remove.
29256 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
29257 (lto_input_ts_function_decl_tree_pointers): Do not stream
29258 DECL_FUNCTION_SPECIFIC_TARGET.
29260 2014-02-14 Jakub Jelinek <jakub@redhat.com>
29262 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
29263 (get_initial_def_for_induction, vectorizable_induction): Ignore
29264 debug stmts when looking for exit_phi.
29265 (vectorizable_live_operation): Fix up condition.
29267 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
29269 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
29270 nreverse() because it changes the content of original tree list.
29272 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
29274 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
29275 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
29277 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
29279 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
29280 GNU coding standards.
29282 2014-02-13 Jakub Jelinek <jakub@redhat.com>
29285 * dwarf2out.c (gen_subprogram_die): Don't call
29286 add_calling_convention_attribute if subr_die is old_die.
29288 2014-02-13 Sharad Singhai <singhai@google.com>
29290 * doc/optinfo.texi: Fix order of nodes.
29292 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
29294 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
29295 operands[2], not operands[3].
29297 2014-02-13 Richard Biener <rguenther@suse.de>
29300 * doc/install.texi (ISL): Update recommended version to 0.12.2,
29301 mention the possibility of an in-tree build.
29302 (CLooG): Update recommended version to 0.18.1, mention the
29303 possibility of an in-tree build and clarify that the ISL
29304 bundled with CLooG does not work.
29306 2014-02-13 Jakub Jelinek <jakub@redhat.com>
29309 * expr.c (compress_float_constant): If x is a hard register,
29310 extend into a pseudo and then move to x.
29312 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
29314 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
29315 caused by bad second argument to warning_at() with -mhotpatch and
29316 nested functions (e.g. with gfortran).
29318 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
29320 * opts.c (option_name): Remove "enabled by default" rider.
29322 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
29324 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
29326 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
29327 Uros Bizjak <ubizjak@gmail.com>
29330 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
29331 * configure: Regenerated.
29333 2014-02-12 Richard Biener <rguenther@suse.de>
29335 * vec.c (vec_prefix::calculate_allocation): Move as
29336 inline variant to vec.h.
29337 (vec_prefix::calculate_allocation_1): New out-of-line version.
29338 * vec.h (vec_prefix::calculate_allocation_1): Declare.
29339 (vec_prefix::m_has_auto_buf): Rename to ...
29340 (vec_prefix::m_using_auto_storage): ... this.
29341 (vec_prefix::calculate_allocation): Inline the easy cases
29342 and dispatch to calculate_allocation_1 which doesn't need the
29344 (va_heap::reserve): Use gcc_checking_assert.
29345 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
29346 m_using_auto_storage.
29347 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
29349 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
29350 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
29351 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
29353 2014-02-12 Richard Biener <rguenther@suse.de>
29355 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
29356 when we found a dependence.
29358 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
29360 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
29362 (maybe_fold_stmt): ... into this new function.
29363 * omp-low.c (lower_omp): Update comment.
29365 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
29368 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
29371 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
29373 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
29374 identifiers in comments.
29375 (cortexa53_extra_costs): Likewise.
29376 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
29377 (cortexa7_extra_costs): Likewise.
29378 (cortexa12_extra_costs): Likewise.
29379 (cortexa15_extra_costs): Likewise.
29380 (v7m_extra_costs): Likewise.
29382 2014-02-12 Richard Biener <rguenther@suse.de>
29384 PR middle-end/60092
29385 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
29386 of posix_memalign being successful.
29387 (lower_stmt): Restrict lowering of posix_memalign to when
29388 -ftree-bit-ccp is enabled.
29390 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29392 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
29394 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
29396 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
29398 PR rtl-optimization/60116
29399 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
29400 other_insn once the combination has been validated.
29402 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
29405 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
29407 * ipa-devirt.c: Include demangle.h
29408 (odr_violation_reported): New static variable.
29409 (add_type_duplicate): Update odr_violations.
29410 (maybe_record_node): Add completep parameter; update it.
29411 (record_target_from_binfo): Add COMPLETEP parameter;
29412 update it as needed.
29413 (possible_polymorphic_call_targets_1): Likewise.
29414 (struct polymorphic_call_target_d): Add nonconstruction_targets;
29415 rename FINAL to COMPLETE.
29416 (record_targets_from_bases): Sanity check we found the binfo;
29417 fix COMPLETEP updating.
29418 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
29419 parameter, fix computing of COMPLETEP.
29420 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
29421 at LTO time do demangling.
29422 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
29423 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
29425 (gimple_get_virt_method_for_binfo): Likewise.
29426 * gimple-fold.h (gimple_get_virt_method_for_binfo,
29427 gimple_get_virt_method_for_vtable): Update prototypes.
29429 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
29432 * genautomata.c (add_presence_absence): Fix typo with
29433 {final_}presence_list.
29435 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
29438 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
29439 for VSX/Altivec vectors that land in GPR registers.
29441 2014-02-11 Richard Henderson <rth@redhat.com>
29442 Jakub Jelinek <jakub@redhat.com>
29445 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
29446 around drhs if type conversion to lacc->type is not useless.
29448 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29450 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
29452 (cortex-a57.cortex-a53): Likewise.
29453 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
29455 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29457 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
29460 2014-02-11 Renlin Li <Renlin.Li@arm.com>
29462 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
29463 add_options_for_arm_vfp3.
29465 2014-02-11 Jeff Law <law@redhat.com>
29467 PR middle-end/54041
29468 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
29469 object with an undesirable mode.
29471 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29474 * config/i386/sol2-9.h: New file.
29475 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
29476 *-*-solaris2.9*): Use it.
29478 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
29480 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
29481 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
29483 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
29485 * config/microblaze/microblaze.c: Extend mcpu version format
29487 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
29489 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
29491 2014-02-10 Richard Henderson <rth@redhat.com>
29494 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
29495 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
29496 ms-abi vs -mno-accumulate-outgoing-args.
29497 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
29498 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
29501 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
29503 PR middle-end/60080
29504 * cfgexpand.c (expand_asm_operands): Attach source location to
29505 ASM_INPUT rtx objects.
29506 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
29508 2014-02-10 Nick Clifton <nickc@redhat.com>
29510 * config/mn10300/mn10300.c (popcount): New function.
29511 (mn10300_expand_prologue): Include saved registers in stack usage
29514 2014-02-10 Jeff Law <law@redhat.com>
29516 PR middle-end/52306
29517 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
29518 when changing the SET_DEST of a prior insn to avoid an input reload.
29520 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29522 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
29523 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
29524 -mcall-openbsd, or -mcall-linux.
29525 (CC1_ENDIAN_BIG_SPEC): Remove.
29526 (CC1_ENDIAN_LITTLE_SPEC): Remove.
29527 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
29528 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
29529 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
29530 and %cc1_endian_default.
29531 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
29533 2014-02-10 Richard Biener <rguenther@suse.de>
29535 PR tree-optimization/60115
29536 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
29537 MEM_REF handling. Properly verify that the accesses are not
29538 out of the objects bound.
29540 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29542 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
29545 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
29547 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
29548 proper constants and fix formatting.
29549 (possible_polymorphic_call_targets): Fix formatting.
29551 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
29552 Ilya Tocar <ilya.tocar@intel.com>
29554 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
29555 (_mm512_loadu_epi32): Renamed into...
29556 (_mm512_loadu_si512): This.
29557 (_mm512_storeu_epi32): Renamed into...
29558 (_mm512_storeu_si512): This.
29559 (_mm512_maskz_ceil_ps): Removed.
29560 (_mm512_maskz_ceil_pd): Ditto.
29561 (_mm512_maskz_floor_ps): Ditto.
29562 (_mm512_maskz_floor_pd): Ditto.
29563 (_mm512_floor_round_ps): Ditto.
29564 (_mm512_floor_round_pd): Ditto.
29565 (_mm512_ceil_round_ps): Ditto.
29566 (_mm512_ceil_round_pd): Ditto.
29567 (_mm512_mask_floor_round_ps): Ditto.
29568 (_mm512_mask_floor_round_pd): Ditto.
29569 (_mm512_mask_ceil_round_ps): Ditto.
29570 (_mm512_mask_ceil_round_pd): Ditto.
29571 (_mm512_maskz_floor_round_ps): Ditto.
29572 (_mm512_maskz_floor_round_pd): Ditto.
29573 (_mm512_maskz_ceil_round_ps): Ditto.
29574 (_mm512_maskz_ceil_round_pd): Ditto.
29575 (_mm512_expand_pd): Ditto.
29576 (_mm512_expand_ps): Ditto.
29577 * config/i386/i386.c (ix86_builtins): Remove
29578 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
29579 (bdesc_args): Ditto.
29580 * config/i386/predicates.md (const1256_operand): New.
29581 (const_1_to_2_operand): Ditto.
29582 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
29583 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
29584 (*avx512pf_gatherpf<mode>sf): Ditto.
29585 (avx512pf_gatherpf<mode>df): Ditto.
29586 (*avx512pf_gatherpf<mode>df_mask): Ditto.
29587 (*avx512pf_gatherpf<mode>df): Ditto.
29588 (avx512pf_scatterpf<mode>sf): Ditto.
29589 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
29590 (*avx512pf_scatterpf<mode>sf): Ditto.
29591 (avx512pf_scatterpf<mode>df): Ditto.
29592 (*avx512pf_scatterpf<mode>df_mask): Ditto.
29593 (*avx512pf_scatterpf<mode>df): Ditto.
29594 (avx512f_expand<mode>): Removed.
29595 (<shift_insn><mode>3<mask_name>): Change predicate type.
29597 2014-02-08 Jakub Jelinek <jakub@redhat.com>
29599 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
29600 not at the end of datarefs vector use ordered_remove to avoid
29601 reordering datarefs vector.
29604 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
29605 mark local addressable non-static vars as GOVD_PRIVATE
29606 instead of GOVD_LOCAL.
29607 * omp-low.c (lower_omp_for): Move gimple_bind_vars
29608 and BLOCK_VARS of gimple_bind_block to new_stmt rather
29611 PR middle-end/60092
29612 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
29613 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
29614 assume_aligned or alloc_align attributes.
29615 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
29616 arguments. Handle also assume_aligned and alloc_align attributes.
29617 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
29618 calls to functions with assume_aligned or alloc_align attributes.
29619 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
29621 2014-02-08 Terry Guo <terry.guo@arm.com>
29623 * doc/invoke.texi: Document ARM -march=armv7e-m.
29625 2014-02-08 Jakub Jelinek <jakub@redhat.com>
29627 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
29628 flag on __cilkrts_rethrow builtin.
29631 * ipa-cp.c (determine_versionability): Fail at -O0
29632 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
29633 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
29636 2014-02-04 Jakub Jelinek <jakub@redhat.com>
29639 * tree-inline.c (copy_forbidden): Fail for
29640 __attribute__((optimize (0))) functions.
29642 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
29644 * varpool.c: Include pointer-set.h.
29645 (varpool_remove_unreferenced_decls): Variables in other partitions
29646 will not be output; be however careful to not lose information
29647 about partitioning.
29649 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
29651 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
29652 lookup in the vtable constructor.
29654 2014-02-07 Jeff Law <law@redhat.com>
29657 * config/m68k/m68k.md (ashldi_extsi): Turn into a
29658 define_insn_and_split.
29660 * ipa-inline.c (inline_small_functions): Fix typos.
29662 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29664 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
29665 (s390_can_use_return_insn): Declare.
29666 * config/s390/s390.h (EPILOGUE_USES): Define.
29667 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
29669 (s390_chunkify_start): Handle return JUMP_LABELs.
29670 (s390_early_mach): Emit a main_pool instruction on the entry edge.
29671 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
29672 (s390_can_use_return_insn): New functions.
29673 (s390_fix_long_loop_prediction): Handle conditional returns.
29674 (TARGET_SET_UP_BY_PROLOGUE): Define.
29675 * config/s390/s390.md (ANY_RETURN): New code iterator.
29676 (*creturn, *csimple_return, return, simple_return): New patterns.
29678 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29680 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
29681 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
29682 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
29683 REG_CFA_RESTORE list when deciding not to restore a register.
29685 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29687 * config/s390/s390.c: Include tree-pass.h and context.h.
29688 (s390_early_mach): New function, split out from...
29689 (s390_emit_prologue): ...here.
29690 (pass_data_s390_early_mach): New pass structure.
29691 (pass_s390_early_mach): New class.
29692 (s390_option_override): Create and register early_mach pass.
29693 Move to end of file.
29695 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29697 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
29698 to match for the exit block.
29700 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29702 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
29703 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
29704 Reject misaligned operands.
29706 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29708 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
29710 2014-02-07 Richard Biener <rguenther@suse.de>
29712 PR middle-end/60092
29713 * gimple-low.c (lower_builtin_posix_memalign): New function.
29714 (lower_stmt): Call it to lower posix_memalign in a way
29715 to make alignment info accessible.
29717 2014-02-07 Jakub Jelinek <jakub@redhat.com>
29720 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
29721 __builtin_setjmp_receiver.
29723 2014-02-07 Richard Biener <rguenther@suse.de>
29725 PR middle-end/60092
29726 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
29727 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
29728 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
29729 Handle BUILT_IN_POSIX_MEMALIGN.
29730 (find_func_clobbers): Likewise.
29731 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
29732 (call_may_clobber_ref_p_1): Likewise.
29734 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
29737 * ipa-devirt.c (record_target_from_binfo): Remove overactive
29740 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
29743 * lto-cgraph.c (lto_output_node): Use
29744 symtab_get_symbol_partitioning_class.
29745 (lto_output_varpool_node): likewise.
29746 (symtab_get_symbol_partitioning_class): Move here from
29747 lto/lto-partition.c
29748 * cgraph.h (symbol_partitioning_class): Likewise.
29749 (symtab_get_symbol_partitioning_class): Declare.
29751 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
29753 * ggc.h (ggc_internal_cleared_alloc): New macro.
29754 * vec.h (vec_safe_copy): Handle memory stats.
29755 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
29756 * target-globals.c (save_target_globals): Likewise.
29758 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
29761 * expr.c (emit_move_resolve_push): Export; be bit more selective
29762 on when to clear alias set.
29763 * expr.h (emit_move_resolve_push): Declare.
29764 * function.h (struct function): Add tail_call_marked.
29765 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
29766 * config/i386/i386-protos.h (ix86_expand_push): Remove.
29767 * config/i386/i386.md (TImode move expander): De not call
29769 (FP push expanders): Preserve memory attributes.
29770 * config/i386/sse.md (push<mode>1): Remove.
29771 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
29772 (ix86_expand_push): Remove.
29773 * config/i386/mmx.md (push<mode>1): Remove.
29775 2014-02-06 Jakub Jelinek <jakub@redhat.com>
29777 PR rtl-optimization/60030
29778 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
29779 lopart with paradoxical subreg before shifting it up by hprec.
29781 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29783 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
29784 Remove extra newline at end of file.
29785 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
29786 (arm_issue_rate): Handle cortexa57.
29787 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
29788 (cortex-a57.cortex-a53): Likewise.
29790 2014-02-06 Jakub Jelinek <jakub@redhat.com>
29793 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
29794 don't record in REG_FRAME_RELATED_EXPR registers not set in that
29796 (arm_expand_prologue): Adjust all callers.
29797 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
29798 info, registers also at the lowest numbered registers side. Use
29799 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
29803 * var-tracking.c (adjust_mems): Before adding a SET to
29804 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
29806 2014-02-06 Alan Modra <amodra@gmail.com>
29809 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
29810 change SDmode to DDmode when lra_in_progress.
29812 2014-02-06 Jakub Jelinek <jakub@redhat.com>
29814 PR middle-end/59150
29815 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
29816 free_data_ref on the dr first, and before goto again also set dr
29817 to the next dr. For simd_lane_access, free old datarefs[i] before
29818 overwriting it. For get_vectype_for_scalar_type failure, don't
29819 free_data_ref if simd_lane_access.
29821 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
29824 * tree.h (opts_for_fn): New inline function.
29825 (opt_for_fn): Define.
29826 * config/i386/i386.c (ix86_function_regparm): Use
29827 opt_for_fn (decl, optimize) instead of optimize.
29829 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
29831 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
29832 for SYMBOL_REF in large memory model.
29834 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29836 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
29837 and crypto support.
29838 (cortex-a57): Likewise.
29839 (cortex-a57.cortex-a53): Likewise.
29841 2014-02-06 Yury Gribov <y.gribov@samsung.com>
29842 Kugan Vivekanandarajah <kuganv@linaro.org>
29844 * config/arm/arm.c (arm_vector_alignment_reachable): Check
29846 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
29848 2014-02-06 Richard Biener <rguenther@suse.de>
29850 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
29851 set_loop_copy and initialize_original_copy_tables.
29853 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
29855 * config/aarch64/aarch64-simd.md
29856 (aarch64_ashr_simddi): Change QI to SI.
29858 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
29859 Jakub Jelinek <jakub@redhat.com>
29861 PR middle-end/60013
29862 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
29865 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29867 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
29868 CODE_FOR_altivec_vpku[hw]um to
29869 CODE_FOR_altivec_vpku[hw]um_direct.
29870 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
29871 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
29872 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
29873 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
29875 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29877 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
29878 generation for -maltivec=be.
29879 (altivec_vsumsws): Simplify redundant test.
29881 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29883 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
29884 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
29885 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
29886 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
29887 gen_altivec_vpkuwum.
29888 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
29890 (altivec_vpks<VI_char>ss): Likewise.
29891 (altivec_vpks<VI_char>us): Likewise.
29892 (altivec_vpku<VI_char>us): Likewise.
29893 (altivec_vpku<VI_char>um): Likewise.
29894 (altivec_vpku<VI_char>um_direct): New (copy of
29895 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
29897 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
29898 target is little endian and -maltivec=be is not specified.
29899 (*altivec_vupkhs<VU_char>_direct): New (copy of
29900 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
29901 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
29902 target is little endian and -maltivec=be is not specified.
29903 (*altivec_vupkls<VU_char>_direct): New (copy of
29904 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
29905 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
29906 little endian and -maltivec=be is not specified.
29907 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
29908 little endian and -maltivec=be is not specified.
29910 2014-02-05 Richard Henderson <rth@redhat.com>
29913 * combine-stack-adj.c: Revert r206943.
29914 * sched-int.h (struct deps_desc): Add last_args_size.
29915 * sched-deps.c (init_deps): Initialize it.
29916 (sched_analyze_insn): Add OUTPUT dependencies between insns that
29917 contain REG_ARGS_SIZE notes.
29919 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
29921 * lto-cgraph.c (asm_nodes_output): Make global.
29922 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
29923 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
29924 (driver_handle_option): Handle OPT_fwpa.
29926 2014-02-05 Jakub Jelinek <jakub@redhat.com>
29929 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
29930 a comment typo and formatting issue. If odr_hash hasn't been
29931 created, return vNULL and set *completep to false.
29933 PR middle-end/57499
29934 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
29935 bb with no successors.
29937 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
29940 * doc/invoke.texi (-march): Clarify documentation for ARM.
29941 (-mtune): Likewise.
29944 2014-02-05 Richard Biener <rguenther@suse.de>
29946 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
29947 when not vectorizing because of too many alias checks.
29948 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
29949 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
29951 2014-02-05 Nick Clifton <nickc@redhat.com>
29953 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
29954 accept extended registers in any mode when compiling for the MN10300.
29956 2014-02-05 Yury Gribov <y.gribov@samsung.com>
29958 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
29959 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
29960 sanitization attributes.
29961 (can_inline_edge_p): Likewise.
29962 (sanitize_attrs_match_for_inline_p): New function.
29964 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
29966 * ipa-prop.c (detect_type_change): Shor circuit testing of
29967 type changes on THIS pointer.
29969 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
29972 * config/pa/pa.c (legitimize_tls_address): Return original address
29973 if not passed a SYMBOL_REF rtx.
29974 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
29976 (pa_emit_move_sequence): Simplify TLS source operands.
29977 (pa_legitimate_constant_p): Reject all TLS constants.
29978 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
29979 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
29981 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
29983 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
29984 groups when we know they are controlled by LTO.
29985 * varasm.c (default_binds_local_p_1): If object is in other partition,
29986 it will be resolved locally.
29988 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
29990 * config/host-linux.c (linux_gt_pch_use_address): Don't
29991 use SSIZE_MAX because it is not always defined.
29993 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
29996 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
29997 threshold for pseudo splitting.
29998 (update_ebb_live_info): Process call argument hard registers and
29999 hard registers from insn definition too.
30000 (max_small_class_regs_num): New constant.
30001 (inherit_in_ebb): Update live hard regs through EBBs. Update
30002 reloads_num only for small register classes. Don't split for
30005 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
30008 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
30011 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
30013 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
30014 visibility is safe.
30016 2014-02-04 Marek Polacek <polacek@redhat.com>
30018 * gdbinit.in (pel): Define.
30020 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
30022 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
30025 2014-02-04 Richard Biener <rguenther@suse.de>
30028 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
30029 in function context local.
30030 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
30031 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
30032 similar to LTO_imported_decl_ref.
30034 2014-02-04 Jakub Jelinek <jakub@redhat.com>
30036 PR tree-optimization/60002
30037 * cgraphclones.c (build_function_decl_skip_args): Clear
30038 DECL_LANG_SPECIFIC.
30040 PR tree-optimization/60023
30041 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
30042 false to gsi_replace.
30043 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
30044 has been in some EH region and vec_stmt could throw, add
30045 vec_stmt into the same EH region.
30046 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
30047 has no lhs, ignore it.
30048 * internal-fn.c (expand_MASK_LOAD): Likewise.
30051 * tree-inline.c (copy_forbidden): Fail for
30052 __attribute__((optimize (0))) functions.
30055 * omp-low.c (simd_clone_struct_copy): If from->inbranch
30056 is set, copy one less argument.
30057 (expand_simd_clones): Don't subtract clone_info->inbranch
30058 from simd_clone_struct_alloc argument.
30060 PR rtl-optimization/57915
30061 * recog.c (simplify_while_replacing): If all unary/binary/relational
30062 operation arguments are constant, attempt to simplify those.
30064 PR middle-end/59261
30065 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
30066 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
30068 2014-02-04 Richard Biener <rguenther@suse.de>
30070 PR tree-optimization/60012
30071 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
30072 TBAA disambiguation to all DDRs.
30074 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30077 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
30078 (LINK_SPEC): Use it for -shared, -shared-libgcc.
30080 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
30083 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
30085 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
30087 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
30088 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
30090 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
30093 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
30094 to figure out targets of polymorphic calls with known decl.
30095 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
30096 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
30097 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
30098 (get_polymorphic_call_info): ... here.
30099 (get_polymorphic_call_info_from_invariant): New function.
30101 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
30103 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
30104 lookup via vtable pointer; check for type consistency
30105 and turn inconsitent facts into UNREACHABLE.
30106 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
30107 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
30108 type inconsistent querries; return UNREACHABLE instead.
30110 2014-02-03 Richard Henderson <rth@twiddle.net>
30113 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
30114 already processed this node.
30115 (normalize_one_pred_1): Pass along mark_set.
30116 (normalize_one_pred): Create and destroy a pointer_set_t.
30117 (normalize_one_pred_chain): Likewise.
30119 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
30121 PR gcov-profile/58602
30122 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
30124 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
30127 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
30128 -fno-devirtualize; try to devirtualize by the knowledge of
30129 virtual table pointer given by aggregate propagation.
30130 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
30131 (ipa_print_node_jump_functions): Dump also offset that
30132 is relevant for polymorphic calls.
30133 (determine_known_aggregate_parts): Add arg_type parameter; use it
30134 instead of determining the type from pointer type.
30135 (ipa_compute_jump_functions_for_edge): Update call of
30136 determine_known_aggregate_parts.
30137 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
30138 (gimple_get_virt_method_for_binfo): ... here; simplify using
30139 vtable_pointer_value_to_vtable.
30140 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
30141 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
30142 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
30143 (vtable_pointer_value_to_vtable): Break out from ...; handle also
30145 (vtable_pointer_value_to_binfo): ... here.
30146 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
30148 2014-02-03 Teresa Johnson <tejohnson@google.com>
30150 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
30151 redef of outer loop index variable.
30153 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
30157 * doc/extend.texi (Function Attributes): Typo.
30159 2014-02-03 Cong Hou <congh@google.com>
30161 PR tree-optimization/60000
30162 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
30163 if the vectorized statement is a store. A store statement can only
30164 appear at the end of pattern statements.
30166 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
30168 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
30169 (ix86_option_override_internal): Default long double to 64-bit for
30170 32-bit Bionic and to 128-bit for 64-bit Bionic.
30172 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
30173 TARGET_LONG_DOUBLE_128 is true.
30174 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
30176 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
30177 (mlong-double-64): Negate -mlong-double-128.
30178 (mlong-double-128): New option.
30180 * config/i386/i386-c.c (ix86_target_macros): Define
30181 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
30183 * doc/invoke.texi: Document -mlong-double-128.
30185 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
30187 PR rtl-optimization/60024
30188 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
30190 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
30192 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
30194 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
30196 PR rtl-optimization/57662
30197 * sel-sched.c (code_motion_path_driver): Do not mark already not
30198 existing blocks in the visiting bitmap.
30200 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
30202 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
30203 on the insn being emitted.
30205 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
30206 Will Deacon <will.deacon@arm.com>
30208 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
30210 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30212 * config/arm/arm-tables.opt: Regenerate.
30214 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30216 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
30217 for vector types other than V16QImode.
30218 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
30219 define_expand, and call altivec_expand_vec_perm_le when producing
30220 code with little endian element order.
30221 (*altivec_vperm_<mode>_internal): New insn having previous
30222 behavior of altivec_vperm_<mode>.
30223 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
30224 altivec_expand_vec_perm_le when producing code with little endian
30226 (*altivec_vperm_<mode>_uns_internal): New insn having previous
30227 behavior of altivec_vperm_<mode>_uns.
30229 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30231 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
30232 (altivec_vsumsws): Add handling for -maltivec=be with a little
30234 (altivec_vsumsws_direct): New.
30235 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
30236 gen_altivec_vsumsws.
30238 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
30240 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
30241 vtable_pointer_value_to_binfo): New functions.
30242 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
30243 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
30245 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
30247 * config/nios2/nios2.md (load_got_register): Initialize GOT
30248 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
30249 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
30251 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
30253 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
30254 preserverd by passthrough, do not propagate the type.
30256 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
30258 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
30259 (mips_atomic_assign_expand_fenv): New function.
30260 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
30262 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
30264 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
30265 (__builtin_mips_set_fcsr): Likewise.
30266 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
30267 MIPS_USI_FTYPE_VOID.
30268 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
30269 (mips16_expand_set_fcsr): Likewise.
30270 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
30271 (mips16_set_fcsr_stub): Likewise.
30272 (mips16_get_fcsr_one_only_stub): New class.
30273 (mips16_set_fcsr_one_only_stub): Likewise.
30274 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
30275 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
30276 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
30277 (hard_float): New availability predicate.
30278 (mips_builtins): Add get_fcsr and set_fcsr.
30279 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
30280 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
30281 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
30282 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
30283 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
30286 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
30288 * config/mips/mips.c (mips_one_only_stub): New class.
30289 (mips_need_mips16_rdhwr_p): Replace with...
30290 (mips16_rdhwr_stub): ...this new variable.
30291 (mips16_stub_call_address): New function.
30292 (mips16_rdhwr_one_only_stub): New class.
30293 (mips_expand_thread_pointer): Use mips16_stub_call_address.
30294 (mips_output_mips16_rdhwr): Delete.
30295 (mips_finish_stub): New function.
30296 (mips_code_end): Use it to handle rdhwr stubs.
30298 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
30301 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
30302 when calculating size of integer atomic types.
30304 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
30306 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
30308 2014-02-01 Jakub Jelinek <jakub@redhat.com>
30310 PR tree-optimization/60003
30311 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
30312 * profile.c (branch_prob): Use gimple_call_builtin_p
30313 to check for BUILT_IN_SETJMP_RECEIVER.
30314 * tree-inline.c (copy_bb): Call notice_special_calls.
30316 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
30319 * lra-constraints.c (process_alt_operands): Update reload_sum only
30322 2014-01-31 Richard Henderson <rth@redhat.com>
30324 PR middle-end/60004
30325 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
30326 until after else_eh is processed.
30328 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
30330 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
30331 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
30332 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
30333 in smmintrin.h, remove them.
30334 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
30335 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
30336 * config/i386/i386.md (ROUND_SAE): Fix value.
30337 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
30338 (const48_operand): New.
30339 * config/i386/subst.md (round), (round_expand): Use
30340 const_4_or_8_to_11_operand.
30341 (round_saeonly), (round_saeonly_expand): Use const48_operand.
30343 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
30345 * config/i386/constraints.md (Yk): Swap meaning with k.
30346 * config/i386/i386.md (movhi_internal): Change Yk to k.
30347 (movqi_internal): Ditto.
30348 (*k<logic><mode>): Ditto.
30351 (kandn<mode>): Ditto.
30352 (*<code>hi_1): Ditto.
30353 (*<code>qi_1): Ditto.
30354 (kxnor<mode>): Ditto.
30355 (kortestzhi): Ditto.
30356 (kortestchi): Ditto.
30358 (*one_cmplhi2_1): Ditto.
30359 (*one_cmplqi2_1): Ditto.
30360 * config/i386/sse.md (): Change k to Yk.
30361 (avx512f_load<mode>_mask): Ditto.
30362 (avx512f_blendm<mode>): Ditto.
30363 (avx512f_store<mode>_mask): Ditto.
30364 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
30365 (avx512f_storedqu<mode>_mask): Ditto.
30366 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
30368 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
30369 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
30370 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
30371 (avx512f_maskcmp<mode>3): Ditto.
30372 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
30373 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
30374 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
30375 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
30376 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
30377 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
30378 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
30379 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
30380 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
30381 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
30382 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
30383 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
30384 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
30385 (vec_extract_lo_<mode>_maskm): Ditto.
30386 (vec_extract_hi_<mode>_maskm): Ditto.
30387 (avx512f_vternlog<mode>_mask): Ditto.
30388 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
30389 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
30390 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
30391 (avx512f_<code>v8div16qi2_mask): Ditto.
30392 (avx512f_<code>v8div16qi2_mask_store): Ditto.
30393 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
30394 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
30395 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
30396 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
30397 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
30398 (*avx512pf_gatherpf<mode>df_mask): Ditto.
30399 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
30400 (*avx512pf_scatterpf<mode>df_mask): Ditto.
30401 (avx512cd_maskb_vec_dupv8di): Ditto.
30402 (avx512cd_maskw_vec_dupv16si): Ditto.
30403 (avx512f_vpermi2var<mode>3_maskz): Ditto.
30404 (avx512f_vpermi2var<mode>3_mask): Ditto.
30405 (avx512f_vpermi2var<mode>3_mask): Ditto.
30406 (avx512f_vpermt2var<mode>3_maskz): Ditto.
30407 (*avx512f_gathersi<mode>): Ditto.
30408 (*avx512f_gathersi<mode>_2): Ditto.
30409 (*avx512f_gatherdi<mode>): Ditto.
30410 (*avx512f_gatherdi<mode>_2): Ditto.
30411 (*avx512f_scattersi<mode>): Ditto.
30412 (*avx512f_scatterdi<mode>): Ditto.
30413 (avx512f_compress<mode>_mask): Ditto.
30414 (avx512f_compressstore<mode>_mask): Ditto.
30415 (avx512f_expand<mode>_mask): Ditto.
30416 * config/i386/subst.md (mask): Change k to Yk.
30417 (mask_scalar_merge): Ditto.
30420 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
30422 * doc/extend.texi (Vector Extensions): Document ?: in C++.
30424 2014-01-31 Richard Biener <rguenther@suse.de>
30426 PR middle-end/59990
30427 * builtins.c (fold_builtin_memory_op): Make sure to not
30428 use a floating-point mode or a boolean or enumeral type for
30429 the copy operation.
30431 2014-01-30 DJ Delorie <dj@redhat.com>
30433 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
30434 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
30435 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
30436 whenever main() has an epilogue.
30438 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30440 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
30441 unused variable "field".
30442 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
30443 (vsx_mergeh_<mode>): Likewise.
30444 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
30445 (altivec_vmrghh): Likewise.
30446 (altivec_vmrghw): Likewise.
30447 (altivec_vmrglb): Likewise.
30448 (altivec_vmrglh): Likewise.
30449 (altivec_vmrglw): Likewise.
30450 (altivec_vspltb): Add missing uses.
30451 (altivec_vsplth): Likewise.
30452 (altivec_vspltw): Likewise.
30453 (altivec_vspltsf): Likewise.
30455 2014-01-30 Jakub Jelinek <jakub@redhat.com>
30458 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
30459 frame related instructions.
30461 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
30463 PR rtl-optimization/59959
30464 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
30465 any reload of register whose subreg is invalid.
30467 2014-01-30 Jakub Jelinek <jakub@redhat.com>
30469 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
30470 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
30471 Add missing return type - void.
30473 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30475 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
30476 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
30477 remove element index adjustment for endian (now handled in vsx.md
30479 (altivec_expand_vec_perm_const): Use
30480 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
30481 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
30482 (vsx_xxspltw_<mode>): Adjust element index for little endian.
30483 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
30484 define_expand and a new define_insn *altivec_vspltb_internal;
30485 adjust for -maltivec=be on a little endian target.
30486 (altivec_vspltb_direct): New.
30487 (altivec_vsplth): Divide into a define_expand and a new
30488 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
30489 little endian target.
30490 (altivec_vsplth_direct): New.
30491 (altivec_vspltw): Divide into a define_expand and a new
30492 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
30493 little endian target.
30494 (altivec_vspltw_direct): New.
30495 (altivec_vspltsf): Divide into a define_expand and a new
30496 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
30497 a little endian target.
30499 2014-01-30 Richard Biener <rguenther@suse.de>
30501 PR tree-optimization/59993
30502 * tree-ssa-forwprop.c (associate_pointerplus): Check we
30503 can propagate form the earlier stmt and avoid the transform
30504 when the intermediate result is needed.
30506 2014-01-30 Alangi Derick <alangiderick@gmail.com>
30508 * README.Portability: Fix typo.
30510 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
30512 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
30513 comparison_operator with ordered_comparison_operator.
30515 2014-01-30 Nick Clifton <nickc@redhat.com>
30517 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
30518 Rename to mn10300_store_multiple_regs.
30519 * config/mn10300/mn10300.c: Likewise.
30520 * config/mn10300/mn10300.md (store_movm): Fix typo: call
30521 store_multiple_regs.
30522 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
30523 Call mn10300_store_multiple_regs.
30525 2014-01-30 Nick Clifton <nickc@redhat.com>
30526 DJ Delorie <dj@redhat.com>
30528 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
30529 %fp 2 to keep registers after it properly word-aligned.
30530 (rl78_alloc_physical_registers_umul): Handle the case where both
30531 input operands are the same.
30533 2014-01-30 Richard Biener <rguenther@suse.de>
30535 PR tree-optimization/59903
30536 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
30539 2014-01-30 Jason Merrill <jason@redhat.com>
30542 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
30545 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
30547 2014-01-30 Richard Biener <rguenther@suse.de>
30549 PR tree-optimization/59951
30550 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
30552 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
30555 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
30556 SFmode to DFmode case.
30558 2014-01-29 DJ Delorie <dj@redhat.com>
30560 * config/msp430/msp430.opt (-minrt): New.
30561 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
30563 (ENDFILE_SPEC): Likewise.
30565 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
30567 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
30568 (estimate_function_body_sizes): Use it.
30570 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
30573 * dwarf2out.c (is_cxx_auto): New.
30574 (is_base_type): Use it.
30575 (gen_type_die_with_usage): Likewise.
30577 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30579 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
30580 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
30581 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
30582 -maltivec=be with LE targets.
30583 (vsx_mergeh_<mode>): Likewise.
30584 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
30585 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
30586 (altivec_vmrghb): Replace with define_expand and new
30587 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
30588 (altivec_vmrghb_direct): New define_insn.
30589 (altivec_vmrghh): Replace with define_expand and new
30590 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
30591 (altivec_vmrghh_direct): New define_insn.
30592 (altivec_vmrghw): Replace with define_expand and new
30593 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
30594 (altivec_vmrghw_direct): New define_insn.
30595 (*altivec_vmrghsf): Adjust for endianness.
30596 (altivec_vmrglb): Replace with define_expand and new
30597 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
30598 (altivec_vmrglb_direct): New define_insn.
30599 (altivec_vmrglh): Replace with define_expand and new
30600 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
30601 (altivec_vmrglh_direct): New define_insn.
30602 (altivec_vmrglw): Replace with define_expand and new
30603 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
30604 (altivec_vmrglw_direct): New define_insn.
30605 (*altivec_vmrglsf): Adjust for endianness.
30606 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
30607 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
30608 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
30609 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
30610 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
30611 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
30612 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
30613 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
30615 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
30617 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
30618 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
30621 2014-01-29 Richard Biener <rguenther@suse.de>
30623 PR tree-optimization/58742
30624 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
30625 associate_pointerplus_align.
30626 (associate_pointerplus_diff): New function.
30627 (associate_pointerplus): Likewise. Call associate_pointerplus_align
30628 and associate_pointerplus_diff.
30630 2014-01-29 Richard Biener <rguenther@suse.de>
30632 * lto-streamer.h (LTO_major_version): Bump to 3.
30633 (LTO_minor_version): Reset to 0.
30635 2014-01-29 Renlin Li <Renlin.Li@arm.com>
30637 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
30638 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
30639 (arm_file_start): Generate correct asm header for armv7ve.
30640 * config/arm/bpabi.h: Add multilib support for armv7ve.
30641 * config/arm/driver-arm.c: Change the architectures of cortex-a7
30642 and cortex-a15 to armv7ve.
30643 * config/arm/t-aprofile: Add multilib support for armv7ve.
30644 * doc/invoke.texi: Document -march=armv7ve.
30646 2014-01-29 Richard Biener <rguenther@suse.de>
30648 PR tree-optimization/58742
30649 * tree-ssa-forwprop.c (associate_plusminus): Return true
30650 if we changed sth, defer EH cleanup to ...
30651 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
30652 (simplify_mult): New function.
30654 2014-01-29 Jakub Jelinek <jakub@redhat.com>
30656 PR middle-end/59917
30657 PR tree-optimization/59920
30658 * tree.c (build_common_builtin_nodes): Remove
30659 __builtin_setjmp_dispatcher initialization.
30660 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
30661 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
30662 instead of gsi_after_labels + manually skipping debug stmts.
30663 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
30664 ignore bbs with IFN_ABNORMAL_DISPATCHER.
30665 * tree-inline.c (copy_edges_for_bb): Remove
30666 can_make_abnormal_goto argument, instead add abnormal_goto_dest
30667 argument. Ignore computed_goto_p stmts. Don't call
30668 make_abnormal_goto_edges. If a call might need abnormal edges
30669 for non-local gotos, see if it already has an edge to
30670 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
30671 with true argument, don't do anything then, otherwise add
30672 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
30673 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
30675 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
30676 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
30677 (lower_stmt): Don't set data->calls_builtin_setjmp.
30678 (lower_builtin_setjmp): Adjust comment.
30679 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
30680 * tree-cfg.c (found_computed_goto): Remove.
30681 (factor_computed_gotos): Remove.
30682 (make_goto_expr_edges): Return bool, true for computed gotos.
30683 Don't call make_abnormal_goto_edges.
30684 (build_gimple_cfg): Don't set found_computed_goto, don't call
30685 factor_computed_gotos.
30686 (computed_goto_p): No longer static.
30687 (make_blocks): Don't set found_computed_goto.
30688 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
30689 (make_edges): If make_goto_expr_edges returns true, push bb
30690 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
30691 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
30692 vector. Record mapping between bbs and OpenMP regions if there
30693 are any, adjust make_gimple_omp_edges caller. Call
30694 handle_abnormal_edges.
30695 (make_abnormal_goto_edges): Remove.
30696 * tree-cfg.h (make_abnormal_goto_edges): Remove.
30697 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
30698 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
30699 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
30700 * internal-fn.def (ABNORMAL_DISPATCHER): New.
30701 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
30702 filling *region also set *region_idx to (*region)->entry->index.
30705 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
30706 For REGs set ORIGINAL_REGNO.
30708 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
30710 * doc/md.texi: Mention that a target shouldn't implement
30711 vec_widen_(s|u)mul_even/odd pair if it is less efficient
30714 2014-01-29 Jakub Jelinek <jakub@redhat.com>
30716 PR tree-optimization/59594
30717 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
30718 a copy of the datarefs vector rather than the vector itself.
30720 2014-01-28 Jason Merrill <jason@redhat.com>
30723 * dwarf2out.c (auto_die): New static.
30724 (gen_type_die_with_usage): Handle C++1y 'auto'.
30725 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
30728 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
30731 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
30732 (SPEC_X32): Likewise.
30733 (SPEC_64): Likewise.
30734 * config/i386/i386.c (ix86_option_override_internal): Turn off
30735 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
30737 (x86_file_start): Output .code16gcc for TARGET_16BIT.
30738 * config/i386/i386.h (TARGET_16BIT): New macro.
30739 (TARGET_16BIT_P): Likewise.
30740 * config/i386/i386.opt: Add m16.
30741 * doc/invoke.texi: Document -m16.
30743 2014-01-28 Jakub Jelinek <jakub@redhat.com>
30745 PR preprocessor/59935
30746 * input.c (location_get_source_line): Bail out on when line number
30747 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
30749 2014-01-28 Richard Biener <rguenther@suse.de>
30751 PR tree-optimization/58742
30752 * tree-ssa-forwprop.c (associate_plusminus): Handle
30753 pointer subtraction of the form (T)(P + A) - (T)P.
30755 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30757 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
30760 2014-01-28 Richard Biener <rguenther@suse.de>
30763 2014-01-28 Richard Biener <rguenther@suse.de>
30765 PR rtl-optimization/45364
30766 PR rtl-optimization/59890
30767 * var-tracking.c (local_get_addr_clear_given_value): Handle
30768 already cleared slot.
30769 (val_reset): Handle not allocated local_get_addr_cache.
30770 (vt_find_locations): Use post-order on the inverted CFG.
30772 2014-01-28 Richard Biener <rguenther@suse.de>
30774 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
30776 2014-01-28 Richard Biener <rguenther@suse.de>
30778 PR rtl-optimization/45364
30779 PR rtl-optimization/59890
30780 * var-tracking.c (local_get_addr_clear_given_value): Handle
30781 already cleared slot.
30782 (val_reset): Handle not allocated local_get_addr_cache.
30783 (vt_find_locations): Use post-order on the inverted CFG.
30785 2014-01-28 Alan Modra <amodra@gmail.com>
30787 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
30788 * configure.ac <recursive call for build != host>: Define
30789 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
30790 and LD_FOR_BUILD too.
30791 * configure: Regenerate.
30793 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
30795 * config/i386/i386.c (get_builtin_code_for_version): Separate
30796 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
30797 Broadwell from Haswell.
30799 2014-01-27 Steve Ellcey <sellcey@mips.com>
30801 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
30802 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
30803 * config/mips/mips.c (mips_option_override): Change setting
30805 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
30806 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
30807 Change from Mask to Var.
30809 2014-01-27 Jeff Law <law@redhat.com>
30811 * ipa-inline.c (inline_small_functions): Fix typo.
30813 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
30815 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
30816 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
30817 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
30818 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
30819 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
30820 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
30821 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
30822 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
30823 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
30824 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
30825 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
30826 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
30827 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
30828 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
30829 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
30830 (_mm512_storeu_epi64): Ditto.
30831 (_mm512_cmpge_epi32_mask): Ditto.
30832 (_mm512_cmpge_epu32_mask): Ditto.
30833 (_mm512_cmpge_epi64_mask): Ditto.
30834 (_mm512_cmpge_epu64_mask): Ditto.
30835 (_mm512_cmple_epi32_mask): Ditto.
30836 (_mm512_cmple_epu32_mask): Ditto.
30837 (_mm512_cmple_epi64_mask): Ditto.
30838 (_mm512_cmple_epu64_mask): Ditto.
30839 (_mm512_cmplt_epi32_mask): Ditto.
30840 (_mm512_cmplt_epu32_mask): Ditto.
30841 (_mm512_cmplt_epi64_mask): Ditto.
30842 (_mm512_cmplt_epu64_mask): Ditto.
30843 (_mm512_cmpneq_epi32_mask): Ditto.
30844 (_mm512_cmpneq_epu32_mask): Ditto.
30845 (_mm512_cmpneq_epi64_mask): Ditto.
30846 (_mm512_cmpneq_epu64_mask): Ditto.
30847 (_mm512_expand_pd): Ditto.
30848 (_mm512_expand_ps): Ditto.
30849 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
30850 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
30851 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
30852 * config/i386/i386.c (ix86_builtins): Add
30853 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
30854 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
30855 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
30856 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
30857 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
30858 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
30859 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
30860 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
30861 IX86_BUILTIN_PMOVUSQW512_MEM.
30862 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
30863 __builtin_ia32_pmovsqd512mem_mask,
30864 __builtin_ia32_pmovqd512mem_mask,
30865 __builtin_ia32_pmovusqw512mem_mask,
30866 __builtin_ia32_pmovsqw512mem_mask,
30867 __builtin_ia32_pmovqw512mem_mask,
30868 __builtin_ia32_pmovusdw512mem_mask,
30869 __builtin_ia32_pmovsdw512mem_mask,
30870 __builtin_ia32_pmovdw512mem_mask,
30871 __builtin_ia32_pmovqb512mem_mask,
30872 __builtin_ia32_pmovusqb512mem_mask,
30873 __builtin_ia32_pmovsqb512mem_mask,
30874 __builtin_ia32_pmovusdb512mem_mask,
30875 __builtin_ia32_pmovsdb512mem_mask,
30876 __builtin_ia32_pmovdb512mem_mask.
30877 (bdesc_args): Add __builtin_ia32_expanddf512,
30878 __builtin_ia32_expandsf512.
30879 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
30880 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
30881 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
30882 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
30883 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
30884 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
30885 (avx512f_<code>v8div16qi2_mask_store): This.
30886 (avx512f_expand<mode>): New.
30888 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
30890 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
30892 (_mm512_mask_prefetch_i64gather_pd): Ditto.
30893 (_mm512_prefetch_i32scatter_pd): Ditto.
30894 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
30895 (_mm512_prefetch_i64scatter_pd): Ditto.
30896 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
30897 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
30898 (_mm512_mask_prefetch_i64gather_ps): Ditto.
30899 (_mm512_prefetch_i32scatter_ps): Ditto.
30900 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
30901 (_mm512_prefetch_i64scatter_ps): Ditto.
30902 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
30903 * config/i386/i386-builtin-types.def: Define
30904 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
30905 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
30906 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
30907 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
30908 IX86_BUILTIN_SCATTERPFQPD.
30909 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
30910 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
30911 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
30912 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
30913 __builtin_ia32_scatterpfqps.
30914 (ix86_expand_builtin): Expand new built-ins.
30915 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
30916 fix memory access data type.
30917 (*avx512pf_gatherpf<mode>_mask): Ditto.
30918 (*avx512pf_gatherpf<mode>): Ditto.
30919 (avx512pf_scatterpf<mode>): Ditto.
30920 (*avx512pf_scatterpf<mode>_mask): Ditto.
30921 (*avx512pf_scatterpf<mode>): Ditto.
30922 (GATHER_SCATTER_SF_MEM_MODE): New.
30923 (avx512pf_gatherpf<mode>df): Ditto.
30924 (*avx512pf_gatherpf<mode>df_mask): Ditto.
30925 (*avx512pf_scatterpf<mode>df): Ditto.
30927 2014-01-27 Jakub Jelinek <jakub@redhat.com>
30930 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
30931 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
30934 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
30936 * common/config/arm/arm-common.c
30937 (arm_rewrite_mcpu): Handle multiple names.
30939 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
30941 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
30943 * gimple-builder.h (create_gimple_tmp): Delete.
30945 2014-01-27 Christian Bruel <christian.bruel@st.com>
30947 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
30950 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
30952 * config/pa/pa.md (call): Generate indirect long calls to non-local
30953 functions when outputing 32-bit code.
30954 (call_value): Likewise except for special call to buggy powf function.
30956 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
30957 portable runtime and PIC indirect calls.
30958 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
30959 and PIC call sequences. Use ldo instead of blr to set return register
30960 in PIC call sequence.
30962 2014-01-25 Walter Lee <walt@tilera.com>
30964 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
30965 avoid clobbering a live register.
30967 2014-01-25 Walter Lee <walt@tilera.com>
30969 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
30970 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
30971 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
30972 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
30974 2014-01-25 Walter Lee <walt@tilera.com>
30976 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
30977 arguments on even registers.
30978 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
30980 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
30981 (BIGGEST_ALIGNMENT): Ditto.
30982 (BIGGEST_FIELD_ALIGNMENT): Ditto.
30984 2014-01-25 Walter Lee <walt@tilera.com>
30986 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
30987 insns before bundling.
30988 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
30990 2014-01-25 Walter Lee <walt@tilera.com>
30992 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
30993 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
30994 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
30996 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
30998 * config/mips/constraints.md (kl): Delete.
30999 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
31000 define expands, using...
31001 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
31002 instructions for MIPS16.
31003 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
31004 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
31006 2014-01-25 Walter Lee <walt@tilera.com>
31008 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
31012 2014-01-25 Walter Lee <walt@tilera.com>
31014 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
31015 (TARGET_EXPAND_TO_RTL_HOOK): Define.
31017 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
31019 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
31022 2014-01-25 Jakub Jelinek <jakub@redhat.com>
31024 * print-rtl.c (in_call_function_usage): New var.
31025 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
31026 EXPR_LIST mode as mode and not as reg note name.
31028 PR middle-end/59561
31029 * cfgloopmanip.c (copy_loop_info): If
31030 loop->warned_aggressive_loop_optimizations, make sure
31031 the flag is set in target loop too.
31033 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
31035 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
31037 * builtins.def: Likewise.
31038 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
31039 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
31040 * ira.c (ira_setup_eliminable_regset): Likewise.
31041 * omp-low.c (gate_expand_omp): Likewise.
31042 (execute_lower_omp): Likewise.
31043 (diagnose_sb_0): Likewise.
31044 (gate_diagnose_omp_blocks): Likewise.
31045 (simd_clone_clauses_extract): Likewise.
31048 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31050 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
31051 correction for little endian...
31052 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
31055 2014-01-24 Jeff Law <law@redhat.com>
31057 PR tree-optimization/59919
31058 * tree-vrp.c (find_assert_locations_1): Do not register asserts
31059 for non-returning calls.
31061 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
31063 * common/config/aarch64/aarch64-common.c
31064 (aarch64_rewrite_mcpu): Handle multiple names.
31065 * config/aarch64/aarch64.h
31066 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
31068 2014-01-24 Dodji Seketeli <dodji@redhat.com>
31070 * input.c (add_file_to_cache_tab): Handle the case where fopen
31073 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
31076 * config/i386/i386.md (pushsf splitter): Get stack adjustment
31077 from push operand if code of push isn't PRE_DEC.
31079 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
31082 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
31083 -mquad-memory-atomic. Update -mquad-memory documentation to say
31084 it is only used for non-atomic loads/stores.
31086 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
31087 -mquad-memory or -mquad-memory-atomic switches.
31089 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
31090 -mquad-memory-atomic to ISA 2.07 support.
31092 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
31093 to separate support of normal quad word memory operations (ldq, stq)
31094 from the atomic quad word memory operations.
31096 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
31097 support to separate non-atomic quad word operations from atomic
31098 quad word operations. Disable non-atomic quad word operations in
31099 little endian mode so that we don't have to swap words after the
31100 load and before the store.
31101 (quad_load_store_p): Add comment about atomic quad word support.
31102 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
31103 options printed with -mdebug=reg.
31105 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
31106 -mquad-memory-atomic as the test for whether we have quad word
31107 atomic instructions.
31108 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
31109 or -mp8-vector are used, allow byte/half-word atomic operations.
31111 * config/rs6000/sync.md (load_lockedti): Insure that the address
31112 is a proper indexed or indirect address for the lqarx instruction.
31113 On little endian systems, swap the hi/lo registers after the lqarx
31115 (load_lockedpti): Use indexed_or_indirect_operand predicate to
31116 insure the address is valid for the lqarx instruction.
31117 (store_conditionalti): Insure that the address is a proper indexed
31118 or indirect address for the stqcrx. instruction. On little endian
31119 systems, swap the hi/lo registers before doing the stqcrx.
31121 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
31122 insure the address is valid for the stqcrx. instruction.
31124 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
31125 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
31126 type of quad memory support is available.
31128 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
31130 PR regression/59915
31131 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
31132 there is a danger of looping.
31134 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
31136 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
31137 force flag_ira_loop_pressure if set via command line.
31139 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
31141 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
31142 (ashr_simd): New builtin handling DI mode.
31143 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
31144 (aarch64_sshr_simddi): New match pattern.
31145 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
31146 (vshrd_n_s64): Likewise.
31147 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
31149 2014-01-23 Nick Clifton <nickc@redhat.com>
31151 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
31152 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
31153 favour of mcu specific scripts.
31154 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
31157 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
31158 Alex Velenko <Alex.Velenko@arm.com>
31160 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
31161 (vaddv_s16): Likewise.
31162 (vaddv_s32): Likewise.
31163 (vaddv_u8): Likewise.
31164 (vaddv_u16): Likewise.
31165 (vaddv_u32): Likewise.
31166 (vaddvq_s8): Likewise.
31167 (vaddvq_s16): Likewise.
31168 (vaddvq_s32): Likewise.
31169 (vaddvq_s64): Likewise.
31170 (vaddvq_u8): Likewise.
31171 (vaddvq_u16): Likewise.
31172 (vaddvq_u32): Likewise.
31173 (vaddvq_u64): Likewise.
31174 (vaddv_f32): Likewise.
31175 (vaddvq_f32): Likewise.
31176 (vaddvq_f64): Likewise.
31177 (vmaxv_f32): Likewise.
31178 (vmaxv_s8): Likewise.
31179 (vmaxv_s16): Likewise.
31180 (vmaxv_s32): Likewise.
31181 (vmaxv_u8): Likewise.
31182 (vmaxv_u16): Likewise.
31183 (vmaxv_u32): Likewise.
31184 (vmaxvq_f32): Likewise.
31185 (vmaxvq_f64): Likewise.
31186 (vmaxvq_s8): Likewise.
31187 (vmaxvq_s16): Likewise.
31188 (vmaxvq_s32): Likewise.
31189 (vmaxvq_u8): Likewise.
31190 (vmaxvq_u16): Likewise.
31191 (vmaxvq_u32): Likewise.
31192 (vmaxnmv_f32): Likewise.
31193 (vmaxnmvq_f32): Likewise.
31194 (vmaxnmvq_f64): Likewise.
31195 (vminv_f32): Likewise.
31196 (vminv_s8): Likewise.
31197 (vminv_s16): Likewise.
31198 (vminv_s32): Likewise.
31199 (vminv_u8): Likewise.
31200 (vminv_u16): Likewise.
31201 (vminv_u32): Likewise.
31202 (vminvq_f32): Likewise.
31203 (vminvq_f64): Likewise.
31204 (vminvq_s8): Likewise.
31205 (vminvq_s16): Likewise.
31206 (vminvq_s32): Likewise.
31207 (vminvq_u8): Likewise.
31208 (vminvq_u16): Likewise.
31209 (vminvq_u32): Likewise.
31210 (vminnmv_f32): Likewise.
31211 (vminnmvq_f32): Likewise.
31212 (vminnmvq_f64): Likewise.
31214 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
31216 * config/aarch64/aarch64-simd.md
31217 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
31218 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
31219 (*aarch64_mul3_elt<mode>): Likewise.
31220 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
31221 (*aarch64_mul3_elt_to_64v2df): Likewise.
31222 (*aarch64_mla_elt<mode>): Likewise.
31223 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
31224 (*aarch64_mls_elt<mode>): Likewise.
31225 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
31226 (*aarch64_fma4_elt<mode>): Likewise.
31227 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
31228 (*aarch64_fma4_elt_to_64v2df): Likewise.
31229 (*aarch64_fnma4_elt<mode>): Likewise.
31230 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
31231 (*aarch64_fnma4_elt_to_64v2df): Likewise.
31232 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
31233 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
31234 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
31235 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
31236 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
31237 (aarch64_sqdmull_lane<mode>_internal): Likewise.
31238 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
31240 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
31242 * config/aarch64/aarch64-simd.md
31243 (aarch64_be_checked_get_lane<mode>): New define_expand.
31244 * config/aarch64/aarch64-simd-builtins.def
31245 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
31246 New builtin definition.
31247 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
31248 Use new safe be builtin.
31250 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
31252 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
31254 (aarch64_be_st1<mode>): Likewise.
31255 (aarch_ld1<VALL:mode>): Define_expand modified.
31256 (aarch_st1<VALL:mode>): Likewise.
31257 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
31258 (UNSPEC_ST1): Likewise.
31260 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
31262 * config/microblaze/microblaze.md: Add trap insn and attribute
31264 2014-01-23 Dodji Seketeli <dodji@redhat.com>
31266 PR preprocessor/58580
31267 * input.h (location_get_source_line): Take an additional line_size
31269 (void diagnostics_file_cache_fini): Declare new function.
31270 * input.c (struct fcache): New type.
31271 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
31272 New static constants.
31273 (diagnostic_file_cache_init, total_lines_num)
31274 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
31275 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
31276 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
31277 (get_next_line, read_next_line, goto_next_line, read_line_num):
31278 New static function definitions.
31279 (diagnostic_file_cache_fini): New function.
31280 (location_get_source_line): Take an additional output line_len
31281 parameter. Re-write using lookup_or_add_file_to_cache_tab and
31283 * diagnostic.c (diagnostic_finish): Call
31284 diagnostic_file_cache_fini.
31285 (adjust_line): Take an additional input parameter for the length
31286 of the line, rather than calculating it with strlen.
31287 (diagnostic_show_locus): Adjust the use of
31288 location_get_source_line and adjust_line with respect to their new
31289 signature. While displaying a line now, do not stop at the first
31290 null byte. Rather, display the zero byte as a space and keep
31291 going until we reach the size of the line.
31292 * Makefile.in: Add vec.o to OBJS-libcommon
31294 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
31295 Ilya Tocar <ilya.tocar@intel.com>
31297 * config/i386/avx512fintrin.h (_mm512_kmov): New.
31298 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
31299 (__builtin_ia32_kmov16): Ditto.
31300 * config/i386/i386.md (UNSPEC_KMOV): New.
31303 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
31305 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
31306 (_mm512_storeu_si512): Ditto.
31308 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
31311 * rtl.h (get_referenced_operands): Declare.
31312 * recog.c (get_referenced_operands): New function.
31313 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
31314 operands have been referenced when recording LO_SUM references.
31316 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
31318 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
31320 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
31322 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
31323 Enable for generic and recent AMD targets.
31325 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
31327 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
31328 ARG_SIZE note when adjustment was eliminated.
31330 2014-01-22 Jeff Law <law@redhat.com>
31332 PR tree-optimization/59597
31333 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
31334 in file. Accept new argument REGISTERING and use it to modify
31335 dump output appropriately.
31336 (register_jump_thread): Corresponding changes.
31337 (mark_threaded_blocks): Reinstate code to cancel unprofitable
31338 thread paths involving joiner blocks. Add code to dump cancelled
31339 jump threading paths.
31341 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
31343 PR rtl-optimization/59477
31344 * lra-constraints.c (inherit_in_ebb): Process call for living hard
31345 regs. Update reloads_num and potential_reload_hard_regs for all insns.
31347 2014-01-22 Tom Tromey <tromey@redhat.com>
31349 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
31351 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
31353 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
31355 PR rtl-optimization/59896
31356 * lra-constraints.c (process_alt_operands): Check unused note for
31357 matched operands of insn with no output reloads.
31359 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
31361 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
31362 (mips_move_from_gpr_cost): Likewise.
31364 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
31366 PR rtl-optimization/59858
31367 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
31368 ira_class_hard_regs_num.
31369 (process_alt_operands): Increase reject for dying matched operand.
31371 2014-01-21 Jakub Jelinek <jakub@redhat.com>
31374 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
31375 smaller than size, perform several stores or loads and stores
31376 at dst + count - size to store or copy all of size bytes, rather
31377 than just last modesize bytes.
31379 2014-01-20 DJ Delorie <dj@redhat.com>
31381 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
31382 that CLOBBERs are REGs before propogating their values.
31384 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
31386 PR middle-end/59789
31387 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
31388 (cgraph_inline_failed_type): New function.
31389 * cgraph.h (DEFCIFCODE): Add type.
31390 (cgraph_inline_failed_type_t): New enum.
31391 (cgraph_inline_failed_type): New prototype.
31392 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
31393 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
31394 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
31395 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
31396 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
31397 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
31398 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
31399 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
31400 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
31401 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
31402 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
31403 OPTIMIZATION_MISMATCH.
31404 * tree-inline.c (expand_call_inline): Emit errors during
31405 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
31407 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
31410 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
31411 mode attribute in insn output.
31413 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
31415 * output.h (output_constant): Delete.
31416 * varasm.c (output_constant): Make private.
31418 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
31420 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
31422 2014-01-20 Jakub Jelinek <jakub@redhat.com>
31424 PR middle-end/59860
31425 * tree.h (fold_builtin_strcat): New prototype.
31426 * builtins.c (fold_builtin_strcat): No longer static. Add len
31427 argument, if non-NULL, don't call c_strlen. Optimize
31428 directly into __builtin_memcpy instead of __builtin_strcpy.
31429 (fold_builtin_2): Adjust fold_builtin_strcat caller.
31430 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
31432 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
31434 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
31435 for SImode_address_operand operands, having only a REG argument.
31437 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
31439 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
31440 loader name using mbig-endian.
31441 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
31443 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
31445 * doc/invoke.texi (-march): Clarify documentation for AArch64.
31446 (-mtune): Likewise.
31449 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
31451 * config/aarch64/aarch64-protos.h
31452 (aarch64_cannot_change_mode_class_ptr): Declare.
31453 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
31454 aarch64_cannot_change_mode_class_ptr): New.
31455 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
31456 backend hook aarch64_cannot_change_mode_class.
31458 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
31460 * common/config/aarch64/aarch64-common.c
31461 (aarch64_handle_option): Don't handle any option order logic here.
31462 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
31463 selected_cpu, warn on architecture version mismatch.
31464 (aarch64_override_options): Fix parsing order for option strings.
31466 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
31467 Iain Sandoe <iain@codesourcery.com>
31470 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
31471 warning. Amend comment to reflect current functionality.
31473 2014-01-20 Richard Biener <rguenther@suse.de>
31475 PR middle-end/59860
31476 * builtins.c (fold_builtin_strcat): Remove case better handled
31477 by tree-ssa-strlen.c.
31479 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
31481 * config/aarch64/aarch64.opt
31482 (mcpu, march, mtune): Make case-insensitive.
31484 2014-01-20 Jakub Jelinek <jakub@redhat.com>
31487 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
31488 if operands[1] is a REG or ZERO_EXTEND of a REG.
31490 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
31492 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
31494 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
31496 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
31497 long non-pic millicode calls.
31499 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
31501 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
31503 2014-01-19 Kito Cheng <kito@0xlab.org>
31505 * builtins.c (expand_movstr): Check movstr expand done or fail.
31507 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
31508 H.J. Lu <hongjiu.lu@intel.com>
31511 * config/i386/i386.md (*lea<mode>): Zero-extend return register
31512 to DImode for zero-extended addresses.
31514 2014-01-19 Jakub Jelinek <jakub@redhat.com>
31516 PR rtl-optimization/57763
31517 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
31518 on the new indirect jump_insn and increment LABEL_NUSES (label).
31520 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
31524 * config.gcc (x86_archs): New variable.
31525 (x86_64_archs): Likewise.
31526 (x86_cpus): Likewise.
31527 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
31528 --with-arch/--with-cpu= options.
31529 Support --with-arch=/--with-cpu={nehalem,westmere,
31530 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
31532 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
31534 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
31535 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
31537 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
31539 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
31541 2014-01-18 Jakub Jelinek <jakub@redhat.com>
31544 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
31545 clear cpp_get_options (parse_in)->warn_unused_macros for
31546 ix86_target_macros_internal with cpp_define.
31548 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
31550 * jump.c (delete_related_insns): Keep (use (insn))s.
31551 * reorg.c (redundant_insn): Check for barriers too.
31553 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
31555 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
31557 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
31559 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
31560 call to $$dyncall when TARGET_LONG_CALLS is true.
31562 2014-01-17 Jeff Law <law@redhat.com>
31564 * ree.c (combine_set_extension): Temporarily disable test for
31565 changing number of hard registers.
31567 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
31569 PR middle-end/58125
31570 * ipa-inline-analysis.c (inline_free_summary):
31571 Do not free summary of aliases.
31573 2014-01-17 Jakub Jelinek <jakub@redhat.com>
31575 PR middle-end/59706
31576 * gimplify.c (gimplify_expr): Use create_tmp_var
31577 instead of create_tmp_var_raw. If cond doesn't have
31578 integral type, don't add the IFN_ANNOTATE builtin at all.
31580 2014-01-17 Martin Jambor <mjambor@suse.cz>
31583 * ipa-cp.c (prev_edge_clone): New variable.
31584 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
31585 Also resize prev_edge_clone vector.
31586 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
31587 (ipcp_edge_removal_hook): New function.
31588 (ipcp_driver): Register ipcp_edge_removal_hook.
31590 2014-01-17 Andrew Pinski <apinski@cavium.com>
31591 Steve Ellcey <sellcey@mips.com>
31594 * config/mips/mips.c (mips_print_operand): Check operand mode instead
31597 2014-01-17 Jeff Law <law@redhat.com>
31599 PR middle-end/57904
31600 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
31601 so that pass_ccp runs first.
31603 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
31605 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
31606 (ix86_adjust_cost): Use !TARGET_XXX.
31607 (do_reorder_for_imul): Likewise.
31608 (swap_top_of_ready_list): Likewise.
31609 (ix86_sched_reorder): Likewise.
31611 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
31613 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
31614 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
31615 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
31616 (intel_memset): New. Duplicate slm_memset.
31617 (intel_cost): New. Duplicate slm_cost.
31618 (m_INTEL): New macro.
31619 (processor_target_table): Add "intel".
31620 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
31621 with PROCESSOR_INTEL for "intel".
31622 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
31623 PROCESSOR_SILVERMONT.
31624 (ix86_issue_rate): Likewise.
31625 (ix86_adjust_cost): Likewise.
31626 (ia32_multipass_dfa_lookahead): Likewise.
31627 (swap_top_of_ready_list): Likewise.
31628 (ix86_sched_reorder): Likewise.
31629 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
31630 instead of TARGET_OPT_AGU.
31631 * config/i386/i386.h (TARGET_INTEL): New.
31632 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
31633 (processor_type): Add PROCESSOR_INTEL.
31634 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
31635 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
31637 2014-01-17 Marek Polacek <polacek@redhat.com>
31640 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
31643 2014-01-17 Richard Biener <rguenther@suse.de>
31645 PR tree-optimization/46590
31646 * opts.c (default_options_table): Add entries for
31647 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
31648 all enabled at -O1 but not for -Og.
31649 * common.opt (fbranch-count-reg): Remove Init(1).
31650 (fmove-loop-invariants): Likewise.
31651 (ftree-pta): Likewise.
31653 2014-01-17 Jakub Jelinek <jakub@redhat.com>
31655 * config/i386/i386.c (ix86_data_alignment): For compatibility with
31656 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
31657 decls to at least the GCC 4.8 used alignments.
31660 * tree-nested.c (convert_nonlocal_reference_stmt,
31661 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
31662 of GIMPLE_BIND stmts, adjust associated decls.
31664 2014-01-17 Richard Biener <rguenther@suse.de>
31666 PR tree-optimization/46590
31667 * vec.h (vec<>::bseach): New member function implementing
31668 binary search according to C89 bsearch.
31669 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
31670 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
31671 bitmap pointer again. Make accesses_in_loop a flat array.
31672 (mem_ref_obstack): New global.
31673 (outermost_indep_loop): Adjust for mem_ref->stored changes.
31674 (mark_ref_stored): Likewise.
31675 (ref_indep_loop_p_2): Likewise.
31676 (set_ref_stored_in_loop): New helper function.
31677 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
31678 (memref_free): Adjust.
31679 (record_mem_ref_loc): Simplify.
31680 (gather_mem_refs_stmt): Adjust.
31681 (sort_locs_in_loop_postorder_cmp): New function.
31682 (analyze_memory_references): Sort accesses_in_loop after
31683 loop postorder number.
31684 (find_ref_loc_in_loop_cmp): New function.
31685 (for_all_locs_in_loop): Find relevant cluster of locs in
31686 accesses_in_loop and iterate without recursion.
31687 (execute_sm): Avoid uninit warning.
31688 (struct ref_always_accessed): Simplify.
31689 (ref_always_accessed::operator ()): Likewise.
31690 (ref_always_accessed_p): Likewise.
31691 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
31692 loop postorder numbers here.
31693 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
31696 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
31699 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
31700 on decls for which assemble_alias has been called.
31702 2014-01-17 Nick Clifton <nickc@redhat.com>
31704 * config/msp430/msp430.opt: (mcpu): New option.
31705 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
31706 (msp430_option_override): Parse target_cpu. If the MCU name
31707 matches a generic string, clear target_mcu.
31708 (msp430_attr): Allow numeric interrupt values up to 63.
31709 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
31710 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
31712 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
31714 * config/msp430/msp430.md (popm): Use %J rather than %I.
31715 (addsi3): Use msp430_nonimmediate_operand for operand 2.
31716 (addhi_cy_i): Use immediate_operand for operand 2.
31717 * doc/invoke.texi: Document -mcpu option.
31719 2014-01-17 Richard Biener <rguenther@suse.de>
31721 PR rtl-optimization/38518
31722 * df.h (df_analyze_loop): Declare.
31723 * df-core.c: Include cfgloop.h.
31724 (df_analyze_1): Split out main part of df_analyze.
31725 (df_analyze): Adjust.
31726 (loop_inverted_post_order_compute): New function.
31727 (loop_post_order_compute): Likewise.
31728 (df_analyze_loop): New function avoiding whole-function
31729 postorder computes.
31730 * loop-invariant.c (find_defs): Use df_analyze_loop.
31731 (find_invariants): Adjust.
31732 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
31734 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
31736 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
31737 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
31739 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
31741 * ipa-ref.c (ipa_remove_stmt_references): Fix references
31742 traversal when removing references.
31744 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
31747 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
31749 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
31751 PR middle-end/56791
31752 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
31753 pushing a reload for an autoinc when we had previously reloaded an
31754 inner part of the address.
31756 2014-01-16 Jakub Jelinek <jakub@redhat.com>
31758 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
31760 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
31761 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
31762 when not giving up or versioning for alias only because of
31764 (vect_analyze_data_ref_dependences): Set to true.
31765 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
31767 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
31768 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
31771 PR middle-end/58344
31772 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
31775 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
31776 operand 0 predicate for gathers, use a new pseudo as subtarget.
31778 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
31780 PR middle-end/59609
31781 * lra-constraints.c (process_alt_operands): Add printing debug info.
31782 Check absence of input/output reloads for matched operands too.
31784 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
31786 PR rtl-optimization/59835
31787 * ira.c (ira_init_register_move_cost): Increase cost for
31790 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
31792 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
31794 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
31797 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
31798 non-register objects. Use gen_(high/low)part more consistently.
31801 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
31804 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
31805 endian support, remove tests for WORDS_BIG_ENDIAN.
31806 (p8_mfvsrd_3_<mode>): Likewise.
31807 (reload_gpr_from_vsx<mode>): Likewise.
31808 (reload_gpr_from_vsxsf): Likewise.
31809 (p8_mfvsrd_4_disf): Likewise.
31811 2014-01-16 Richard Biener <rguenther@suse.de>
31813 PR rtl-optimization/46590
31814 * lcm.c (compute_antinout_edge): Use postorder iteration.
31815 (compute_laterin): Use inverted postorder iteration.
31817 2014-01-16 Nick Clifton <nickc@redhat.com>
31819 PR middle-end/28865
31820 * varasm.c (output_constant): Return the number of bytes actually
31822 (output_constructor_array_range): Update the field size with the
31823 number of bytes emitted by output_constant.
31824 (output_constructor_regular_field): Likewise. Also do not
31825 complain if the total number of bytes emitted is now greater
31826 than the expected fieldpos.
31827 * output.h (output_constant): Update prototype and descriptive comment.
31829 2014-01-16 Marek Polacek <polacek@redhat.com>
31831 PR middle-end/59827
31832 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
31833 it is error_mark_node.
31835 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
31837 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
31838 VALID_AVX256_REG_OR_OI_MODE.
31840 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
31842 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
31843 current procedure should be profiled.
31845 2014-01-15 Andrew Pinski <apinski@cavium.com>
31847 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
31848 of moving from/to the STACK_REG register class.
31850 2014-01-15 Richard Henderson <rth@redhat.com>
31853 * reginfo.c (global_regs_decl): Globalize.
31854 * rtl.h (global_regs_decl): Declare.
31855 * ira.c (do_reload): Diagnose frame_pointer_needed and it
31856 reserved via global_regs.
31858 2014-01-15 Teresa Johnson <tejohnson@google.com>
31860 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
31862 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
31864 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
31865 and vmulosh rather than call gen_vec_widen_smult_*.
31866 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
31867 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
31868 (vec_widen_smult_even_v16qi): Likewise.
31869 (vec_widen_umult_even_v8hi): Likewise.
31870 (vec_widen_smult_even_v8hi): Likewise.
31871 (vec_widen_umult_odd_v16qi): Likewise.
31872 (vec_widen_smult_odd_v16qi): Likewise.
31873 (vec_widen_umult_odd_v8hi): Likewise.
31874 (vec_widen_smult_odd_v8hi): Likewise.
31875 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
31876 vmuloub rather than call gen_vec_widen_umult_*.
31877 (vec_widen_umult_lo_v16qi): Likewise.
31878 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
31879 vmulosb rather than call gen_vec_widen_smult_*.
31880 (vec_widen_smult_lo_v16qi): Likewise.
31881 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
31882 rather than call gen_vec_widen_umult_*.
31883 (vec_widen_umult_lo_v8hi): Likewise.
31884 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
31885 rather than call gen_vec_widen_smult_*.
31886 (vec_widen_smult_lo_v8hi): Likewise.
31888 2014-01-15 Jeff Law <law@redhat.com>
31890 PR tree-optimization/59747
31891 * ree.c (find_and_remove_re): Properly handle case where a second
31892 eliminated extension requires widening a copy created for elimination
31893 of a prior extension.
31894 (combine_set_extension): Ensure that the number of hard regs needed
31895 for a destination register does not change when we widen it.
31897 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
31899 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
31900 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
31901 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
31902 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
31903 (avr-*-rtems*): Likewise.
31904 (bfin*-rtems*): Likewise.
31905 (moxie-*-rtems*): Likewise.
31906 (h8300-*-rtems*): Likewise.
31907 (i[34567]86-*-rtems*): Likewise.
31908 (lm32-*-rtems*): Likewise.
31909 (m32r-*-rtems*): Likewise.
31910 (m68k-*-rtems*): Likewise.
31911 (microblaze*-*-rtems*): Likewise.
31912 (mips*-*-rtems*): Likewise.
31913 (powerpc-*-rtems*): Likewise.
31914 (sh-*-rtems*): Likewise.
31915 (sparc-*-rtems*): Likewise.
31916 (sparc64-*-rtems*): Likewise.
31917 (v850-*-rtems*): Likewise.
31918 (m32c-*-rtems*): Likewise.
31920 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
31922 PR rtl-optimization/59511
31923 * ira.c (ira_init_register_move_cost): Use memory costs for some
31924 cases of register move cost calculations.
31925 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
31926 instead of BB frequency.
31927 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
31928 * lra-assigns.c (find_hard_regno_for): Ditto.
31930 2014-01-15 Richard Biener <rguenther@suse.de>
31932 PR tree-optimization/59822
31933 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
31934 (vectorizable_load): Use it to hoist defs of uses of invariant
31935 loads out of the loop.
31937 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
31938 Kugan Vivekanandarajah <kuganv@linaro.org>
31941 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
31944 2014-01-15 Richard Biener <rguenther@suse.de>
31946 PR rtl-optimization/59802
31947 * lcm.c (compute_available): Use inverted postorder to seed
31948 the initial worklist.
31950 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31953 * config/s390/s390.c (s390_preferred_reload_class): Don't return
31954 ADDR_REGS for invalid symrefs in non-PIC code.
31956 2014-01-15 Jakub Jelinek <jakub@redhat.com>
31959 * builtins.c (determine_block_size): Initialize *probable_max_size
31960 even if len_rtx is CONST_INT.
31962 2014-01-14 Andrew Pinski <apinski@cavium.com>
31964 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
31965 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
31966 (cortexa53_tunings): Likewise.
31967 (aarch64_sched_issue_rate): New function.
31968 (TARGET_SCHED_ISSUE_RATE): Define.
31970 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
31972 * ira-costs.c (find_costs_and_classes): Add missed
31973 ira_init_register_move_cost_if_necessary.
31975 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
31978 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
31980 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
31983 * config/i386/i386.c (type_natural_mode): Add a bool parameter
31984 to indicate if type is used for function return value. Warn ABI
31985 change if the vector mode isn't available for function return value.
31986 (ix86_function_arg_advance): Pass false to type_natural_mode.
31987 (ix86_function_arg): Likewise.
31988 (ix86_gimplify_va_arg): Likewise.
31989 (function_arg_32): Don't warn ABI change.
31990 (ix86_function_value): Pass true to type_natural_mode.
31991 (ix86_return_in_memory): Likewise.
31992 (ix86_struct_value_rtx): Removed.
31993 (TARGET_STRUCT_VALUE_RTX): Likewise.
31995 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
31997 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
31998 converting a conditional jump into a conditional return.
32000 2014-01-14 Richard Biener <rguenther@suse.de>
32002 PR tree-optimization/58921
32003 PR tree-optimization/59006
32004 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
32005 hoisting invariant stmts.
32006 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
32007 invariant loads on the preheader edge if possible.
32009 2014-01-14 Joey Ye <joey.ye@arm.com>
32011 * doc/plugin.texi (Building GCC plugins): Update to C++.
32013 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
32015 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
32016 (_mm_rcp28_round_ss): Ditto.
32017 (_mm_rsqrt28_round_sd): Ditto.
32018 (_mm_rsqrt28_round_ss): Ditto.
32019 (_mm_rcp28_sd): Ditto.
32020 (_mm_rcp28_ss): Ditto.
32021 (_mm_rsqrt28_sd): Ditto.
32022 (_mm_rsqrt28_ss): Ditto.
32023 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
32024 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
32025 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
32026 (IX86_BUILTIN_RCP28SD): Ditto.
32027 (IX86_BUILTIN_RCP28SS): Ditto.
32028 (IX86_BUILTIN_RSQRT28SD): Ditto.
32029 (IX86_BUILTIN_RSQRT28SS): Ditto.
32030 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
32031 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
32032 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
32033 (ix86_expand_special_args_builtin): Expand new FTYPE.
32034 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
32035 (srcp14<mode>): Make insn unary.
32036 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
32037 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
32038 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
32039 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
32040 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
32041 Fix rounding: make it SAE only.
32042 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
32044 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
32046 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
32047 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
32048 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
32049 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
32050 (round_saeonly_mask_scalar_operand4): Ditto.
32051 (round_saeonly_mask_scalar_op3): Ditto.
32052 (round_saeonly_mask_scalar_op4): Ditto.
32054 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32056 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
32057 Implement -maltivec=be for vec_insert and vec_extract.
32059 2014-01-10 DJ Delorie <dj@redhat.com>
32061 * config/msp430/msp430.md (call_internal): Don't allow memory
32062 references with SP as the base register.
32063 (call_value_internal): Likewise.
32064 * config/msp430/constraints.md (Yc): New. For memory references
32065 that don't use SP as a base register.
32067 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
32068 "an integer without a # prefix"
32069 * config/msp430/msp430.md (epilogue_helper): Use it.
32071 2014-01-13 Jakub Jelinek <jakub@redhat.com>
32074 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
32075 AVX512F gather builtins.
32076 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
32077 on gather decls with INTEGER_TYPE masktype.
32078 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
32079 directly into the builtin rather than hoisting it before loop.
32081 PR tree-optimization/59387
32082 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
32083 (scev_const_prop): If folded_casts and type has undefined overflow,
32084 use force_gimple_operand instead of force_gimple_operand_gsi and
32085 for each added stmt if it is assign with
32086 arith_code_with_undefined_signed_overflow, call
32087 rewrite_to_defined_overflow.
32088 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
32089 gimple-fold.h instead.
32090 (arith_code_with_undefined_signed_overflow,
32091 rewrite_to_defined_overflow): Moved to ...
32092 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
32093 rewrite_to_defined_overflow): ... here. No longer static.
32094 Include gimplify-me.h.
32095 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
32096 rewrite_to_defined_overflow): New prototypes.
32098 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32100 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
32102 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
32104 * builtins.c (get_object_alignment_2): Minor tweak.
32105 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
32107 2014-01-13 Christian Bruel <christian.bruel@st.com>
32109 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
32110 optimized non constant lengths.
32112 2014-01-13 Jakub Jelinek <jakub@redhat.com>
32115 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
32116 load as __atomic_load_N if possible.
32118 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
32120 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
32122 (rs6000_expand_builtin): Adjust call.
32124 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
32127 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
32128 * config/rs6000/rs6000.c: Include target-globals.h.
32129 (rs6000_set_current_function): Instead of doing target_reinit
32130 unconditionally, use save_target_globals_default_opts and
32131 restore_target_globals.
32133 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
32135 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
32136 (rs6000_expand_builtin): Handle mffs and mtfsf.
32137 (rs6000_init_builtins): Define mffs and mtfsf.
32138 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
32139 (rs6000_mffs): New pattern.
32140 (rs6000_mtfsf): New pattern.
32142 2014-01-11 Bin Cheng <bin.cheng@arm.com>
32144 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
32145 Start narrowing with START. Apply candidate-use pair
32146 and check overall cost in narrowing.
32147 (iv_ca_prune): Pass new argument.
32149 2014-01-10 Jeff Law <law@redhat.com>
32151 PR middle-end/59743
32152 * ree.c (combine_reaching_defs): Ensure the defining statement
32153 occurs before the extension when optimizing extensions with
32154 different source and destination hard registers.
32156 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
32159 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
32160 vtables into the type inheritance graph.
32162 2014-01-10 Jakub Jelinek <jakub@redhat.com>
32164 PR rtl-optimization/59754
32165 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
32166 modes in the REGNO != REGNO case.
32168 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32170 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
32172 2014-01-10 Jakub Jelinek <jakub@redhat.com>
32174 PR tree-optimization/59745
32175 * tree-predcom.c (tree_predictive_commoning_loop): Call
32176 free_affine_expand_cache if giving up because components is NULL.
32178 * target-globals.c (save_target_globals): Allocate < 4KB structs using
32179 GC in payload of target_globals struct instead of allocating them on
32180 the heap and the larger structs separately using GC.
32181 * target-globals.h (struct target_globals): Make regs, hard_regs,
32182 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
32183 of GTY((skip)) and change type to void *.
32184 (reset_target_globals): Cast loads from those fields to corresponding
32187 2014-01-10 Steve Ellcey <sellcey@mips.com>
32190 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
32191 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
32192 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
32194 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
32197 * aarch64-modes.def (CC_Zmode): New flags mode.
32198 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
32199 represents an equality.
32200 (aarch64_get_condition_code): Handle CC_Zmode.
32201 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
32203 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32205 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
32206 extraction in good case.
32208 2014-01-10 Richard Biener <rguenther@suse.de>
32210 PR tree-optimization/59374
32211 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
32212 checking after SLP discovery. Mark stmts not participating
32213 in any SLP instance properly.
32215 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32217 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
32218 when handling a SET rtx.
32220 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32222 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
32223 (cortex-a57): Likewise.
32224 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
32226 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32228 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
32229 non-iwmmxt builtins.
32231 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
32235 * ipa-devirt.c record_target_from_binfo): Take as argument
32236 stack of binfos and lookup matching one for virtual inheritance.
32237 (possible_polymorphic_call_targets_1): Update.
32239 2014-01-10 Huacai Chen <chenhc@lemote.com>
32241 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
32242 kernel strings for Loongson-2E/2F/3A.
32244 2014-01-10 Jakub Jelinek <jakub@redhat.com>
32246 PR middle-end/59670
32247 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
32248 is_gimple_call before calling gimple_call_internal_p.
32250 2014-01-09 Steve Ellcey <sellcey@mips.com>
32252 * Makefile.in (TREE_FLOW_H): Remove.
32253 (TREE_SSA_H): Add file names from tree-flow.h.
32254 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
32255 * tree.h: Remove tree-flow.h reference.
32256 * hash-table.h: Remove tree-flow.h reference.
32257 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
32258 reference with tree-ssa-loop.h.
32260 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32262 * doc/invoke.texi: Add -maltivec={be,le} options, and document
32263 default element-order behavior for -maltivec.
32264 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
32265 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
32266 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
32267 when targeting big endian, at least for now.
32268 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
32270 2014-01-09 Jakub Jelinek <jakub@redhat.com>
32272 PR middle-end/47735
32273 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
32274 var satisfies use_register_for_decl, just take into account type
32275 alignment, rather than decl alignment.
32277 PR tree-optimization/59622
32278 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
32279 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
32280 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
32281 Don't devirtualize for inplace at all. For targets.length () == 1,
32282 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
32284 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
32286 * config/i386/i386.md (cpu): Remove the unused btver1.
32288 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
32290 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
32292 2014-01-09 Jakub Jelinek <jakub@redhat.com>
32295 * tree-core.h (struct target_globals): New forward declaration.
32296 (struct tree_target_option): Add globals field.
32297 * tree.h (TREE_TARGET_GLOBALS): Define.
32298 (prepare_target_option_nodes_for_pch): New prototype.
32299 * target-globals.h (struct target_globals): Define even if
32300 !SWITCHABLE_TARGET.
32301 * tree.c (prepare_target_option_node_for_pch,
32302 prepare_target_option_nodes_for_pch): New functions.
32303 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
32304 * config/i386/i386.c: Include target-globals.h.
32305 (ix86_set_current_function): Instead of doing target_reinit
32306 unconditionally, use save_target_globals_default_opts and
32307 restore_target_globals.
32309 2014-01-09 Richard Biener <rguenther@suse.de>
32311 PR tree-optimization/59715
32312 * tree-cfg.h (split_critical_edges): Declare.
32313 * tree-cfg.c (split_critical_edges): Export.
32314 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
32316 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
32318 * cfgexpand.c (expand_stack_vars): Optionally disable
32319 asan stack protection.
32320 (expand_used_vars): Likewise.
32321 (partition_stack_vars): Likewise.
32322 * asan.c (asan_emit_stack_protection): Optionally disable
32323 after return stack usage.
32324 (instrument_derefs): Optionally disable memory access instrumentation.
32325 (instrument_builtin_call): Likewise.
32326 (instrument_strlen_call): Likewise.
32327 (asan_protect_global): Optionally disable global variables protection.
32328 * doc/invoke.texi: Added doc for new options.
32329 * params.def: Added new options.
32330 * params.h: Likewise.
32332 2014-01-09 Jakub Jelinek <jakub@redhat.com>
32334 PR rtl-optimization/59724
32335 * ifcvt.c (cond_exec_process_if_block): Don't call
32336 flow_find_head_matching_sequence with 0 longest_match.
32337 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
32338 non-active insns if !stop_after.
32339 (try_head_merge_bb): Revert 2014-01-07 changes.
32341 2014-01-08 Jeff Law <law@redhat.com>
32343 * ree.c (get_sub_rtx): New function, extracted from...
32344 (merge_def_and_ext): Here.
32345 (combine_reaching_defs): Use get_sub_rtx.
32347 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
32349 * cgraph.h (varpool_variable_node): Do not choke on null node.
32351 2014-01-08 Catherine Moore <clm@codesourcery.com>
32353 * config/mips/mips.md (simple_return): Attempt to use JRC
32355 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
32357 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
32359 PR rtl-optimization/59137
32360 * reorg.c (steal_delay_list_from_target): Call update_block for
32362 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
32364 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32366 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
32367 two duplicate entries.
32369 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
32372 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
32374 * config/mips/mips.c (mips_truncated_op_cost): New function.
32375 (mips_rtx_costs): Adjust test for BADDU.
32376 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
32378 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
32380 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
32381 (*baddu_si): ...this new pattern.
32383 2014-01-08 Jakub Jelinek <jakub@redhat.com>
32386 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
32388 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
32390 PR middle-end/57748
32391 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
32393 (expand_expr, expand_normal): Adjust.
32394 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
32395 inner_reference_p. Use inner_reference_p to expand inner references.
32396 (store_expr): Adjust.
32397 * cfgexpand.c (expand_call_stmt): Adjust.
32399 2014-01-08 Rong Xu <xur@google.com>
32401 * gcov-io.c (gcov_var): Move from gcov-io.h.
32402 (gcov_position): Ditto.
32403 (gcov_is_error): Ditto.
32404 (gcov_rewrite): Ditto.
32405 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
32406 only part to libgcc/libgcov.h.
32408 2014-01-08 Marek Polacek <polacek@redhat.com>
32410 PR middle-end/59669
32411 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
32413 2014-01-08 Marek Polacek <polacek@redhat.com>
32416 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
32418 2014-01-08 Jakub Jelinek <jakub@redhat.com>
32420 PR rtl-optimization/59649
32421 * stor-layout.c (get_mode_bounds): For BImode return
32422 0 and STORE_FLAG_VALUE.
32424 2014-01-08 Richard Biener <rguenther@suse.de>
32426 PR middle-end/59630
32427 * gimple.h (is_gimple_builtin_call): Remove.
32428 (gimple_builtin_call_types_compatible_p): New.
32429 (gimple_call_builtin_p): New overload.
32430 * gimple.c (is_gimple_builtin_call): Remove.
32431 (validate_call): Rename to ...
32432 (gimple_builtin_call_types_compatible_p): ... this and export. Also
32433 check return types.
32434 (validate_type): New static function.
32435 (gimple_call_builtin_p): New overload and adjust.
32436 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
32437 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
32438 (gimple_fold_stmt_to_constant_1): Likewise.
32439 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
32441 2014-01-08 Richard Biener <rguenther@suse.de>
32443 PR middle-end/59471
32444 * gimplify.c (gimplify_expr): Gimplify register-register type
32445 VIEW_CONVERT_EXPRs to separate stmts.
32447 2014-01-07 Jeff Law <law@redhat.com>
32449 PR middle-end/53623
32450 * ree.c (combine_set_extension): Handle case where source
32451 and destination registers in an extension insn are different.
32452 (combine_reaching_defs): Allow source and destination registers
32453 in extension to be different under limited circumstances.
32454 (add_removable_extension): Remove restriction that the
32455 source and destination registers in the extension are the same.
32456 (find_and_remove_re): Emit a copy from the extension's
32457 destination to its source after the defining insn if
32458 the source and destination registers are different.
32460 PR middle-end/59285
32461 * ifcvt.c (merge_if_block): If we are merging a block with more than
32462 one successor with a block with no successors, remove any BARRIER
32463 after the second block.
32465 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
32467 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
32469 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
32472 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
32473 for 14-bit register offsets when INT14_OK_STRICT is false.
32475 2014-01-07 Roland Stigge <stigge@antcom.de>
32476 Michael Meissner <meissner@linux.vnet.ibm.com>
32479 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
32480 Only check TFmode for SPE constants. Don't check TImode or TDmode.
32482 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
32484 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
32487 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
32489 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
32490 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
32491 rtx is const0_rtx or not.
32493 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
32496 * target-globals.c (save_target_globals): Remove this_fn_optab
32498 * toplev.c: Include optabs.h.
32499 (target_reinit): Temporarily restore the global options if another
32500 set of options are in force.
32502 2014-01-07 Jakub Jelinek <jakub@redhat.com>
32504 PR rtl-optimization/58668
32505 * cfgcleanup.c (flow_find_cross_jump): Don't count
32506 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
32507 to determine what is counted.
32508 (flow_find_head_matching_sequence): Use active_insn_p to determine
32510 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
32512 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
32513 determine what is counted.
32515 PR tree-optimization/59643
32516 * tree-predcom.c (split_data_refs_to_components): If one dr is
32517 read and one write, determine_offset fails and the write isn't
32518 in the bad component, just put the read into the bad component.
32520 2014-01-07 Mike Stump <mikestump@comcast.net>
32521 Jakub Jelinek <jakub@redhat.com>
32524 * tree-core.h (struct tree_optimization_option): Change optabs
32525 type from unsigned char * to void *.
32526 * optabs.c (init_tree_optimization_optabs): Adjust
32527 TREE_OPTIMIZATION_OPTABS initialization.
32529 2014-01-06 Jakub Jelinek <jakub@redhat.com>
32532 * config/i386/i386.h (struct machine_function): Add
32533 no_drap_save_restore field.
32534 * config/i386/i386.c (ix86_save_reg): Use
32535 !cfun->machine->no_drap_save_restore instead of
32536 crtl->stack_realign_needed.
32537 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
32538 this function clears frame_pointer_needed. Set
32539 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
32540 and DRAP reg is needed.
32542 2014-01-06 Marek Polacek <polacek@redhat.com>
32545 * doc/implement-c.texi: Mention that other integer types are
32546 permitted as bit-field types in strictly conforming mode.
32548 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
32550 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
32551 is newly allocated.
32553 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
32555 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
32557 2014-01-06 Martin Jambor <mjambor@suse.cz>
32560 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
32562 * ipa-prop.c (ipa_print_node_params): Fix indentation.
32564 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
32568 * var-tracking.c (add_stores): Preserve the value of the source even if
32569 we don't record the store.
32571 2014-01-06 Terry Guo <terry.guo@arm.com>
32573 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
32575 2014-01-05 Iain Sandoe <iain@codesourcery.com>
32578 * config/darwin.c (darwin_function_section): Adjust return values to
32579 correspond to optimisation changes made in r206070.
32581 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
32583 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
32584 from prefetch_block tune setting.
32585 (nocona_cost): Correct size of prefetch block to 64.
32587 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
32589 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
32590 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
32591 used to save the static chain register in the computation of the offset
32592 from which the FP registers need to be restored.
32594 2014-01-04 Jakub Jelinek <jakub@redhat.com>
32596 PR tree-optimization/59519
32597 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
32598 ICE if get_current_def (current_new_name) is already non-NULL, as long
32599 as it is a phi result of some other phi in *new_exit_bb that has
32602 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
32603 or vmovdqu* for misaligned_operand.
32604 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
32605 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
32606 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
32607 aligned_mem for AVX512F masked aligned load and store builtins and for
32608 non-temporal moves.
32610 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
32612 PR tree-optimization/59651
32613 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
32614 Address range for negative step should be added by TYPE_SIZE_UNIT.
32616 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
32618 * config/m68k/m68k.c (handle_move_double): Handle pushes with
32619 overlapping registers also for registers other than the stack pointer.
32621 2014-01-03 Marek Polacek <polacek@redhat.com>
32624 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
32627 2014-01-03 Jakub Jelinek <jakub@redhat.com>
32630 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
32633 * config/i386/i386.md (MODE_SIZE): New mode attribute.
32634 (push splitter): Use <P:MODE_SIZE> instead of
32635 GET_MODE_SIZE (<P:MODE>mode).
32636 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
32637 (mov -1, reg peephole2): Likewise.
32638 * config/i386/sse.md (*mov<mode>_internal,
32639 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
32640 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
32641 *<code><mode>3, *andnot<mode>3<mask_name>,
32642 <mask_codefor><code><mode>3<mask_name>): Likewise.
32643 * config/i386/subst.md (mask_mode512bit_condition,
32644 sd_mask_mode512bit_condition): Likewise.
32646 2014-01-02 Xinliang David Li <davidxl@google.com>
32648 PR tree-optimization/59303
32649 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
32650 (dump_predicates): Better output format.
32651 (pred_equal_p): New function.
32652 (is_neq_relop_p): Ditto.
32653 (is_neq_zero_form_p): Ditto.
32654 (pred_expr_equal_p): Ditto.
32655 (pred_neg_p): Ditto.
32656 (simplify_pred): Ditto.
32657 (simplify_preds_2): Ditto.
32658 (simplify_preds_3): Ditto.
32659 (simplify_preds_4): Ditto.
32660 (simplify_preds): Ditto.
32661 (push_pred): Ditto.
32662 (push_to_worklist): Ditto.
32663 (get_pred_info_from_cmp): Ditto.
32664 (is_degenerated_phi): Ditto.
32665 (normalize_one_pred_1): Ditto.
32666 (normalize_one_pred): Ditto.
32667 (normalize_one_pred_chain): Ditto.
32668 (normalize_preds): Ditto.
32669 (normalize_cond_1): Remove function.
32670 (normalize_cond): Ditto.
32671 (is_gcond_subset_of): Ditto.
32672 (is_subset_of_any): Ditto.
32673 (is_or_set_subset_of): Ditto.
32674 (is_and_set_subset_of): Ditto.
32675 (is_norm_cond_subset_of): Ditto.
32676 (pred_chain_length_cmp): Ditto.
32677 (convert_control_dep_chain_into_preds): Type change.
32678 (find_predicates): Ditto.
32679 (find_def_preds): Ditto.
32680 (destroy_predicates_vecs): Ditto.
32681 (find_matching_predicates_in_rest_chains): Ditto.
32682 (use_pred_not_overlap_with_undef_path_pred): Ditto.
32683 (is_pred_expr_subset): Ditto.
32684 (is_pred_chain_subset_of): Ditto.
32685 (is_included_in): Ditto.
32686 (is_superset_of): Ditto.
32688 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
32690 Update copyright years.
32692 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
32694 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
32695 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
32696 config/arc/arc.md, config/arc/arc.opt,
32697 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
32698 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
32699 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
32700 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
32701 config/linux-protos.h, config/linux.c, config/winnt-c.c,
32702 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
32703 vtable-verify.c, vtable-verify.h: Use the standard form for the
32706 2014-01-02 Tobias Burnus <burnus@net-b.de>
32708 * gcc.c (process_command): Update copyright notice dates.
32709 * gcov-dump.c: Ditto.
32711 * doc/cpp.texi: Bump @copying's copyright year.
32712 * doc/cppinternals.texi: Ditto.
32713 * doc/gcc.texi: Ditto.
32714 * doc/gccint.texi: Ditto.
32715 * doc/gcov.texi: Ditto.
32716 * doc/install.texi: Ditto.
32717 * doc/invoke.texi: Ditto.
32719 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
32721 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
32723 2014-01-01 Jakub Jelinek <jakub@redhat.com>
32725 * config/i386/sse.md (*mov<mode>_internal): Guard
32726 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
32728 PR rtl-optimization/59647
32729 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
32730 new_rtx into UNSIGNED_FLOAT rtxes.
32732 Copyright (C) 2014 Free Software Foundation, Inc.
32734 Copying and distribution of this file, with or without modification,
32735 are permitted in any medium without royalty provided the copyright
32736 notice and this notice are preserved.