1 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
4 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
5 in instruction sequence.
7 2014-09-25 Nick Clifton <nickc@redhat.com>
10 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
11 in instruction sequence.
13 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
17 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
19 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
20 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21 Anna Tikhonova <anna.tikhonova@intel.com>
22 Ilya Tocar <ilya.tocar@intel.com>
23 Andrey Turetskiy <andrey.turetskiy@intel.com>
24 Ilya Verbin <ilya.verbin@intel.com>
25 Kirill Yukhin <kirill.yukhin@intel.com>
26 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
30 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
31 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
32 (define_expand "<avx512>_perm<mode>_mask"): ... this.
33 Use VI8F_256_512 mode iterator.
34 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
35 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
37 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
38 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
39 Anna Tikhonova <anna.tikhonova@intel.com>
40 Ilya Tocar <ilya.tocar@intel.com>
41 Andrey Turetskiy <andrey.turetskiy@intel.com>
42 Ilya Verbin <ilya.verbin@intel.com>
43 Kirill Yukhin <kirill.yukhin@intel.com>
44 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
47 (define_insn "avx_movshdup256<mask_name>"): Add masking.
48 (define_insn "sse3_movshdup<mask_name>"): Ditto.
49 (define_insn "avx_movsldup256<mask_name>"): Ditto.
50 (define_insn "sse3_movsldup<mask_name>"): Ditto.
51 (define_insn "vec_dupv2df<mask_name>"): Ditto.
52 (define_insn "*vec_concatv2df"): Add EVEX version.
54 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
55 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
56 Anna Tikhonova <anna.tikhonova@intel.com>
57 Ilya Tocar <ilya.tocar@intel.com>
58 Andrey Turetskiy <andrey.turetskiy@intel.com>
59 Ilya Verbin <ilya.verbin@intel.com>
60 Kirill Yukhin <kirill.yukhin@intel.com>
61 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
64 (define_insn "vec_set<mode>_0"): Add EVEX version.
66 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
67 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
68 Anna Tikhonova <anna.tikhonova@intel.com>
69 Ilya Tocar <ilya.tocar@intel.com>
70 Andrey Turetskiy <andrey.turetskiy@intel.com>
71 Ilya Verbin <ilya.verbin@intel.com>
72 Kirill Yukhin <kirill.yukhin@intel.com>
73 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
77 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
79 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
80 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
81 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
82 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
83 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
84 (define_expand "sse2_cvtpd2ps_mask): New.
85 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
86 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
88 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
89 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
90 Anna Tikhonova <anna.tikhonova@intel.com>
91 Ilya Tocar <ilya.tocar@intel.com>
92 Andrey Turetskiy <andrey.turetskiy@intel.com>
93 Ilya Verbin <ilya.verbin@intel.com>
94 Kirill Yukhin <kirill.yukhin@intel.com>
95 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
98 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
99 (ufix_notruncv8dfv8si2_mask_round): ... this.
101 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
102 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
103 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
104 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
105 (define_expand "sse2_cvtpd2dq"): Delete.
106 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
107 make 2nd operand const0 vector.
108 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
110 (define_mode_attr pd2udqsuff): New.
112 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
113 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
114 (define_insn "*avx_cvttpd2dq256_2"): Delete.
115 (define_expand "sse2_cvttpd2dq"): Ditto.
116 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
117 make 2nd operand const0 vector.
119 2014-09-25 Jakub Jelinek <jakub@redhat.com>
121 PR tree-optimization/63341
122 * tree-vectorizer.h (vect_create_data_ref_ptr,
123 vect_create_addr_base_for_vector_ref): Add another tree argument
124 defaulting to NULL_TREE.
125 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
126 argument, pass it down to vect_create_addr_base_for_vector_ref.
127 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
128 add that to base_offset too if non-NULL.
129 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
130 for dr_explicit_realign_optimized set it to vector byte size
131 - 1 instead of setting offset, pass byte_offset down to
132 vect_create_data_ref_ptr.
134 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
136 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
137 forgotten debug output; canonicalize querries more wtih LTO.
139 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
141 * cgraph.h (class ipa_polymorphic_call_context): Move here from
142 ipa-utils.h; add stream_int and stream_out methods.
143 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
144 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
145 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
147 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
148 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
149 ipa_polymorphic_call_context::clear_speculation,
150 ipa_polymorphic_call_context::clear_outer_type): Move here from
152 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
153 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
154 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
155 ipa_polymorphic_call_context::clear_speculation,
156 ipa_polymorphic_call_context::clear_outer_type): Likewise.
157 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
159 (ipa_polymorphic_call_context::stream_out): New method.
160 (ipa_polymorphic_call_context::stream_in): New method.
161 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
162 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
164 (ipa_analyze_call_uses): Simplify.
165 (update_indirect_edges_after_inlining): Do not care about outer_type.
166 (ipa_write_indirect_edge_info): Update.
167 (ipa_write_indirect_edge_info): Likewise.
168 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
169 (dump_edge_flags): Break out from ...
170 (cgraph_node::dump): ... here; dump indirect edges.
172 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
174 * ipa-utils.h (polymorphic_call_context): Add
175 metdhos dump, debug and clear_outer_type.
176 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
177 (ipa_polymorphic_call_context::clear_outer_type): New method.
178 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
179 * ipa-devirt.c (types_odr_comparable): New function.
180 (types_must_be_same_for_odr): New function.
181 (odr_subtypes_equivalent_p): Simplify.
182 (possible_placement_new): Break out from ...
183 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
184 be more cuatious about returning false in cases the context may be
185 valid in derived type or via placement new.
186 (contains_type_p): Clear maybe_derived_type
187 (ipa_polymorphic_call_context::dump): New method.
188 (ipa_polymorphic_call_context::debug): New method.
189 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
190 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
191 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
192 (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
193 to suceed on all valid cases; remove confused sanity check.
194 (dump_possible_polymorphic_call_targets): Simplify.
196 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
198 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
199 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
200 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
201 varpool.c: Rename all instances of DECL_ABSTRACT to
204 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
206 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
207 special handling for stores whose SET_SRC is an UNSPEC (such as
210 2014-09-24 Jiong Wang <jiong.wang@arm.com>
212 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
213 !REG_P (src) to release more instruction sink opportunities.
215 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
217 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
218 move costs for 128-bit types.
220 2014-09-24 Martin Jambor <mjambor@suse.cz>
222 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
223 when duplicating a PASS_THROUGH jump function when creating a
226 2014-09-24 Marek Polacek <polacek@redhat.com>
230 * asan.c (maybe_instrument_call): Add default case.
231 * ipa-pure-const.c (special_builtin_state): Likewise.
232 * predict.c (expr_expected_value_1): Likewise.
233 * lto-streamer-out.c (write_symbol): Initialize variable.
235 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
237 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
239 (vmuld_laneq_f64): Likewise.
240 (vmuls_lane_f32): Likewise.
241 (vmuls_laneq_f32): Likewise.
243 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
246 * varpool.c (varpool_node::add): Pass decl attributes
249 2014-09-24 Jakub Jelinek <jakub@redhat.com>
252 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
254 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
256 PR tree-optimization/63266
257 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
258 marker for unknown byte value.
259 (MARKER_MASK): New macro.
260 (MARKER_BYTE_UNKNOWN): New macro.
261 (HEAD_MARKER): New macro.
262 (do_shift_rotate): Mark bytes with unknown values due to sign
263 extension when doing an arithmetic right shift. Replace hardcoded
264 mask for marker by new MARKER_MASK macro.
265 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
268 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
269 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
270 Anna Tikhonova <anna.tikhonova@intel.com>
271 Ilya Tocar <ilya.tocar@intel.com>
272 Andrey Turetskiy <andrey.turetskiy@intel.com>
273 Ilya Verbin <ilya.verbin@intel.com>
274 Kirill Yukhin <kirill.yukhin@intel.com>
275 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
279 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
281 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
282 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
284 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
285 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
286 Anna Tikhonova <anna.tikhonova@intel.com>
287 Ilya Tocar <ilya.tocar@intel.com>
288 Andrey Turetskiy <andrey.turetskiy@intel.com>
289 Ilya Verbin <ilya.verbin@intel.com>
290 Kirill Yukhin <kirill.yukhin@intel.com>
291 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
294 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
295 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
296 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
297 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
298 (define_expand "avx512vl_pshuflw_mask"): New.
299 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
300 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
301 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
302 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
303 (define_expand "avx512vl_pshufhw_mask"): New.
304 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
306 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
307 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
308 Anna Tikhonova <anna.tikhonova@intel.com>
309 Ilya Tocar <ilya.tocar@intel.com>
310 Andrey Turetskiy <andrey.turetskiy@intel.com>
311 Ilya Verbin <ilya.verbin@intel.com>
312 Kirill Yukhin <kirill.yukhin@intel.com>
313 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
316 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
317 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
318 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
319 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
320 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
322 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
324 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
325 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
327 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
328 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
329 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
330 (define_expand "avx512vl_pshufd_mask"): New.
331 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
333 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
334 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
335 Anna Tikhonova <anna.tikhonova@intel.com>
336 Ilya Tocar <ilya.tocar@intel.com>
337 Andrey Turetskiy <andrey.turetskiy@intel.com>
338 Ilya Verbin <ilya.verbin@intel.com>
339 Kirill Yukhin <kirill.yukhin@intel.com>
340 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
343 (CODE_FOR_avx2_extracti128): Rename to ...
344 (CODE_FOR_avx_vextractf128v4di): this.
345 (CODE_FOR_avx2_inserti128): Rename to ...
346 (CODE_FOR_avx_vinsertf128v4di): this.
347 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
348 CODE_FOR_avx_vextractf128v4di.
349 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
350 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
351 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
352 CODE_FOR_avx512vl_vinsertv8si.
355 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
356 AVX512_VEC mode iterator.
358 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
361 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
362 AVX512_VEC_2 mode iterator.
363 (define_insn "vec_set_lo_<mode><mask_name>"): New.
364 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
365 (define_expand "avx512vl_vinsert<mode>"): Ditto.
366 (define_insn "avx2_vec_set_lo_v4di"): Delete.
367 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
368 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
369 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
370 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
371 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
372 (define_expand "avx2_extracti128"): Delete.
373 (define_expand "avx2_inserti128"): Ditto.
375 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
376 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
377 Anna Tikhonova <anna.tikhonova@intel.com>
378 Ilya Tocar <ilya.tocar@intel.com>
379 Andrey Turetskiy <andrey.turetskiy@intel.com>
380 Ilya Verbin <ilya.verbin@intel.com>
381 Kirill Yukhin <kirill.yukhin@intel.com>
382 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
385 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
386 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
387 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
388 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
389 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
390 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
391 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
392 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
393 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
394 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
395 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
396 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
397 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
399 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
401 PR rtl-optimization/63210
402 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
403 HARD_REGNO is not available for CONFLICT_A.
405 2014-09-23 Andi Kleen <ak@linux.intel.com>
407 * cgraph.h (symtab_node): Add no_reorder attribute.
408 (symbol_table::output_asm_statements): Remove.
409 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
410 (cgraph_node::create_version_clone): Dito.
411 (symbol_table::output_asm_statements): Remove.
412 * trans-mem.c (ipa_tm_create_version_alias): Dito.
413 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
414 (output_in_order): Add no_reorder flag. Only handle no_reorder
416 (symbol_table::compile): Add separate pass for no_reorder nodes.
417 (process_common_attributes): Set no_reorder flag in symtab node.
419 (process_function_and_variable_attributes): Pass symtab nodes to
420 process_common_attributes.
421 * doc/extend.texi (no_reorder): Document no_reorder attribute.
422 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
423 (lto_output_varpool_node): Dito.
424 (input_overwrite_node): Dito.
425 (input_varpool_node): Dito.
426 * varpool.c (varpool_node::add): Set no_reorder attribute.
427 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
428 (symbol_table::output_variables): Dito.
429 * symtab.c (symtab_node::dump_base): Print no_reorder.
431 2014-09-23 Jiong Wang <jiong.wang@arm.com>
433 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
436 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
438 * configure: Regenerate.
440 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
442 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
443 when result_mode == shift_mode.
445 2014-09-23 Kostya Serebryany <kcc@google.com>
447 Update to match the changed asan API.
448 * asan.c (asan_global_struct): Update the __asan_global definition
449 to match the new API.
450 (asan_add_global): Ditto.
451 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
454 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
456 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
457 refine the constraints used on 32/64-bit floating point moves.
462 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
463 (BOOL_REGS_OP1): Likewise.
464 (BOOL_REGS_OP2): Likewise.
465 (BOOL_REGS_UNARY): Likewise.
466 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
467 32/64-bit floating point moves. Do not use wa, instead use ww/ws
468 for moves involving VSX registers. Do not use constraints that
469 target VSX registers for decimal types.
470 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
471 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
473 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
475 * tree.h (int_bit_position): Turn into inline function;
476 implement using wide int.
477 * tree.c (int_bit_position): Remove.
479 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
482 * target-globals.c (target_globals::~target_globals): Fix location
483 of ira_int destruction.
485 2014-09-23 Renlin Li <renlin.li@arm.com>
487 * config/aarch64/aarch64.md (return): New.
488 (simple_return): Likewise.
489 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
490 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
492 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
494 * common/config/aarch64/aarch64-common.c:
495 (default_options aarch_option_optimization_table):
496 Default to -fsched-pressure.
498 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
500 * cfgcleanup.c (try_optimize_cfg): Do not remove label
501 with LABEL_PRESERVE_P flag set.
503 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
504 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
505 Anna Tikhonova <anna.tikhonova@intel.com>
506 Ilya Tocar <ilya.tocar@intel.com>
507 Andrey Turetskiy <andrey.turetskiy@intel.com>
508 Ilya Verbin <ilya.verbin@intel.com>
509 Kirill Yukhin <kirill.yukhin@intel.com>
510 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
513 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
514 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
515 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
516 (define_insn "sse2_shufpd_v2df_mask"): New.
518 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
519 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
520 Anna Tikhonova <anna.tikhonova@intel.com>
521 Ilya Tocar <ilya.tocar@intel.com>
522 Andrey Turetskiy <andrey.turetskiy@intel.com>
523 Ilya Verbin <ilya.verbin@intel.com>
524 Kirill Yukhin <kirill.yukhin@intel.com>
525 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
528 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
529 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
530 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
531 (define_insn "sse_shufps_v4sf_mask"): New.
533 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
534 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
535 Anna Tikhonova <anna.tikhonova@intel.com>
536 Ilya Tocar <ilya.tocar@intel.com>
537 Andrey Turetskiy <andrey.turetskiy@intel.com>
538 Ilya Verbin <ilya.verbin@intel.com>
539 Kirill Yukhin <kirill.yukhin@intel.com>
540 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
543 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
544 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
545 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
546 (define_insn "unpcklps128_mask"): New.
548 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
549 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
550 Anna Tikhonova <anna.tikhonova@intel.com>
551 Ilya Tocar <ilya.tocar@intel.com>
552 Andrey Turetskiy <andrey.turetskiy@intel.com>
553 Ilya Verbin <ilya.verbin@intel.com>
554 Kirill Yukhin <kirill.yukhin@intel.com>
555 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
558 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
559 (define_insn "avx512vl_unpckhpd128_mask"): New.
560 (define_expand "avx_movddup256<mask_name>"): Add masking.
561 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
562 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
563 (define_insn "avx512vl_unpcklpd128_mask"): New.
565 2014-09-22 Joseph Myers <joseph@codesourcery.com>
567 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
568 * doc/tm.texi: Regenerate.
569 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
570 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
571 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
573 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
574 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
575 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
576 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
577 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
579 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
580 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
581 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
582 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
583 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
584 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
585 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
586 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
587 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
588 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
589 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
592 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
594 * tree-ssa-ccp.c (prop_value_d): Rename to ...
595 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
596 * ipa-prop.c (struct type_change_info): Rename to ...
597 (prop_type_change_info): ... this; update uses.
598 * ggc-page.c (globals): Rename to ...
599 (static struct ggc_globals): ... this; update uses.
600 * tree-ssa-loop-im.c (mem_ref): Rename to ...
601 (im_mem_ref): ... this; update uses.
602 * ggc-common.c (loc_descriptor): Rename to ...
603 (ggc_loc_descriptor): ... this; update uses.
604 * lra-eliminations.c (elim_table): Rename to ...
605 (lra_elim_table): ... this; update uses.
606 * bitmap.c (output_info): Rename to ...
607 (bitmap_output_info): ... this; update uses.
608 * gcse.c (expr): Rename to ...
609 (gcse_expr) ... this; update uses.
610 (occr): Rename to ...
611 (gcse_occr): .. this; update uses.
612 * tree-ssa-copy.c (prop_value_d): Rename to ...
613 (prop_value_t): ... this.
614 * predict.c (block_info_def): Rename to ...
615 (block_info): ... this; update uses.
616 (edge_info_def): Rename to ...
617 (edge_info): ... this; update uses.
618 * profile.c (bb_info): Rename to ...
619 (bb_profile_info): ... this; update uses.
620 * alloc-pool.c (output_info): Rename to ...
621 (pool_output_info): ... this; update uses.
622 * ipa-cp.c (topo_info): Rename to ..
623 (ipa_topo_info): ... this; update uses.
624 * tree-nrv.c (nrv_data): Rename to ...
625 (nrv_data_t): ... this; update uses.
626 * ipa-split.c (bb_info): Rename to ...
627 (split_bb_info): ... this one.
628 * profile.h (edge_info): Rename to ...
629 (edge_profile_info): ... this one; update uses.
630 * dse.c (bb_info): Rename to ...
631 (dse_bb_info): ... this one; update uses.
632 * cprop.c (occr): Rename to ...
633 (cprop_occr): ... this one; update uses.
634 (expr): Rename to ...
635 (cprop_expr): ... this one; update uses.
637 2014-09-22 Jason Merrill <jason@redhat.com>
639 * Makefile.in (check-parallel-%): Add @.
641 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
643 * config/aarch64/geniterators.sh: New.
644 * config/aarch64/iterators.md (VDQF_DF): New.
645 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
646 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
648 2014-09-22 Peter A. Bigot <pab@pabigot.com>
650 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
651 -lnosys when -msim absent.
653 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
655 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
657 2014-09-22 Richard Biener <rguenther@suse.de>
659 * gimplify.c (gimplify_init_constructor): Do not leave
660 non-GIMPLE vector constructors around.
661 * tree-cfg.c (verify_gimple_assign_single): Verify that
662 CONSTRUCTORs have gimple elements.
664 2014-09-22 Jakub Jelinek <jakub@redhat.com>
667 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
668 insert a debug source bind stmt setting DEBUG_EXPR_DECL
669 instead of a normal gimple assignment stmt.
671 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
673 * config/bfin/bfin.md: Fix use of constraints in define_split.
675 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
677 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
678 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
680 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
682 * hard-reg-set.h: Include hash-table.h.
683 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
685 * target-globals.c (target_globals::~target_globals): Call
687 * rtl.h (subreg_shape): New structure.
688 (shape_of_subreg): New function.
689 (simplifiable_subregs): Declare.
690 * reginfo.c (simplifiable_subreg): New structure.
691 (simplifiable_subregs_hasher): Likewise.
692 (simplifiable_subregs): New function.
693 (invalid_mode_changes): Delete.
694 (alid_mode_changes, valid_mode_changes_obstack): New variables.
695 (record_subregs_of_mode): Remove subregs_of_mode parameter.
696 Record valid mode changes in valid_mode_changes.
697 (find_subregs_of_mode): Remove subregs_of_mode parameter.
698 Update calls to record_subregs_of_mode.
699 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
700 handling. Initialize new variables. Update call to
701 find_subregs_of_mode.
702 (invalid_mode_change_p): Check new variables instead of
703 invalid_mode_changes.
704 (finish_subregs_of_mode): Finalize new variables instead of
705 invalid_mode_changes.
706 (target_hard_regs::finalize): New function.
707 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
708 even when CLASS_CANNOT_CHANGE_MODE is undefined.
710 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
712 * combine.c (subst): Use simplify_subreg_regno rather than
713 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
715 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
717 * rtl.h (subreg_info): Expand commentary
718 * rtlanal.c (subreg_get_info): Likewise.
720 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
722 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
723 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
724 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
726 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
728 * config/arm/arm.c: #include "tm-constrs.h"
729 (thumb1_size_rtx_costs): Adjust rtx costs.
731 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
733 * configure.ac (target_header_dir): Move block defining
734 this to before the block setting inhibit_libc.
735 (inhibit_libc): When considering $with_headers, just
736 check it it's explicitly "no". If not, also check if
737 $target_header_dir/stdio.h is present. If not, set
739 * configure: Regenerate.
741 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
743 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
745 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
747 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
748 insn for divides by integer powers of two.
749 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
750 (mod<mode>3): Fix formatting.
751 (three anonymous define_insn and two define_split): Delete.
753 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
755 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
756 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
757 (floatdisf2_internal2): Ditto.
758 (ashrdi3_no_power): Ditto. Fix formatting.
760 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
762 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
763 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
766 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
768 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
769 constant, use addsi3 directly.
770 (three anonymous define_insn, two define_split): Delete.
771 (sub<mode>3): Move. Do not allow constant second operand.
772 Generate different insn for constant first operand.
773 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
774 (subf<mode>3_imm): New.
775 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
776 (*plus_ltu<mode>): Only handle registers.
777 (*plus_ltu<mode>_1): New. Handle integer third operand.
778 (*plus_gtu<mode>): Only handle registers.
779 (*plus_gtu<mode>_1): New. Handle integer third operand.
781 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
783 * config/rs6000/rs6000.md (iorxor): New code_iterator.
784 (iorxor): New code_attr.
785 (IORXOR): New code_attr.
786 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
787 (ior<mode>3, xor<mode>3): Delete.
788 (<iorxor><mode>3): New.
789 (splitter for "big" integer ior, xor): New.
790 (*bool<mode>3): Move. Also handle AND.
791 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
792 (splitter for "big" integer ior, xor): Delete.
794 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
796 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
797 (two anonymous define_insn and two define_split): Delete.
798 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
800 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
802 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
803 (two anonymous define_insn and two define_split): Delete.
804 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
806 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
808 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
810 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
812 * config/rs6000/predicates.md (ca_operand): Allow subregs.
813 (input_operand): Do not allow ca_operand.
814 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
815 carry bit, allow SImode and Pmode.
816 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
818 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
820 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
821 clobbered registers using clobber_reg. Remove UNSPEC decoration.
822 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
823 (*call_rex64_ms_sysv): Remove.
824 (*call_value_rex64_ms_sysv): Ditto.
825 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
827 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
829 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
832 2014-09-20 Andreas Schwab <schwab@suse.de>
834 * config/ia64/ia64.md: Remove constraints from define_split
837 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
839 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
840 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
841 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
842 (get_dynamic_type): Remove.
843 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
844 (clear_speculation): Bring to ipa-deivrt.h
845 (get_class_context): Rename to ...
846 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
847 (contains_type_p): Update.
848 (get_dynamic_type): Rename to ...
849 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
850 (possible_polymorphic_call_targets): UPdate.
851 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
852 * ipa-prop.c (ipa_analyze_call_uses): Update.
854 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
856 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
857 privatize dynamic TLS variables.
859 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
861 * diagnostic.c (warning_n): New function.
862 * diagnostic-core.h (warning_n): Declare.
863 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
864 output dynamic counts when available.
866 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
868 PR tree-optimization/63255
869 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
870 issue in setting body_removed flag.
872 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
875 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
876 that visibility change is possible
877 (handle_weakref_attribute): Likewise.
878 * cgraph.h (symtab_node): Add method get_create and
879 field refuse_visibility_changes.
880 (symtab_node::get_create): New method.
881 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
882 * varasm.c (mark_weak): Verify that visibility change is
885 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
887 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
888 for base_reg_operand to be common between LO_SUM and PLUS.
889 (fusion_gpr_mem_combo): New predicate to match a fused address
890 that combines the addis and memory offset address.
892 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
894 (emit_fusion_gpr_load): Likewise.
896 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
897 signature to pass each argument separately, rather than
898 using an operands array. Rewrite the insns found by peephole2 to
899 be a single insn, rather than hoping the insns will still be
900 together when the peephole pass is done. Drop being called via a
902 (emit_fusion_gpr_load): Change calling signature to be called from
903 the fusion_gpr_load_<mode> insns with a combined memory address
904 instead of the peephole pass passing the addis and offset
907 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
909 (power8 fusion peephole): Drop support for doing power8 via a
910 normal peephole that was created by the peephole2 pass.
911 (power8 fusion peephole2): Create a new insn with the fused
912 address, so that the fused operation is kept together after
913 register allocation is done.
914 (fusion_gpr_load_<mode>): Likewise.
916 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
919 * tree.c (need_assembler_name_p): Do not mangle variadic types.
921 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
923 * recog.c (scratch_operand): Do not simply allow all hard registers:
924 only allow those that are allocatable.
926 2014-09-19 Felix Yang <felix.yang@huawei.com>
928 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
929 comments and fix spacing to conform to coding style.
931 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
933 * genrecog.c (validate_pattern): Allow empty constraints in
936 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
938 * dwarf2out.c (decl_ultimate_origin): Update comment.
939 * tree.c (block_ultimate_origin): Same.
941 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
943 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
944 Update GCC version name to GCC 5.
945 (rs6000_function_arg_boundary): Likewise.
946 (rs6000_function_arg): Likewise.
948 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
950 * config/sh/sh.md: Fix use of constraints in define_split.
952 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
955 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
957 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
959 * doc/md.texi (Modifiers): Consistently use "read/write"
960 nomenclature rather than "input/output".
961 * genrecog.c (constraints_supported_in_insn_p): New.
962 (validate_pattern): If needed, also check constraints on
963 MATCH_SCRATCH operands.
964 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
965 operands with no '=' or '+' modifier.
967 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
969 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
970 scratch register as written.
972 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
974 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
977 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
979 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
982 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
985 * config/s390/s390.c (s390_emit_epilogue): When doing the return
986 address load optimization force s390_optimize_prologue to leave it
987 that way. Only do the optimization if we already decided to push
988 r14 into a stack slot.
990 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
992 * asan.c (build_check_stmt): Alignment arg was added.
993 (asan_expand_check_ifn): Optimization for alignment >= 8.
995 2014-09-19 Olivier Hainque <hainque@adacore.com>
997 * config/i386/vxworksae.h: Remove obsolete definitions.
998 (STACK_CHECK_PROTECT): Define.
999 * config/i386/vx-common.h: Remove. Merge contents within
1000 config/i386/vxworks.h.
1001 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
1004 2014-09-19 Olivier Hainque <hainque@adacore.com>
1006 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
1007 * config/rs6000/t-vxworksmils: New file.
1008 * config/rs6000/vxworksmils.h: New file.
1010 2014-09-19 Olivier Hainque <hainque@adacore.com>
1012 * varasm.c (default_section_type_flags): Flag .persistent.bss
1013 sections as SECTION_BSS.
1015 2014-09-19 Nick Clifton <nickc@redhat.com>
1017 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
1018 pop'ed registers so that DCE does not eliminate them.
1020 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
1023 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
1025 2014-09-18 Joseph Myers <joseph@codesourcery.com>
1027 * system.h (LIBGCC2_TF_CEXT): Poison.
1028 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
1029 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
1030 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
1031 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
1032 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
1033 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
1034 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
1035 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
1036 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
1038 2014-09-19 Kito Cheng <kito@0xlab.org>
1040 * except.h: Fix header guard.
1041 * addresses.h: Add missing header guard.
1042 * cfghooks.h: Likewise.
1043 * collect-utils.h: Likewise.
1044 * collect2-aix.h: Likewise.
1045 * conditions.h: Likewise.
1046 * cselib.h: Likewise.
1047 * dwarf2asm.h: Likewise.
1048 * graphds.h: Likewise.
1049 * graphite-scop-detection.h: Likewise.
1050 * gsyms.h: Likewise.
1051 * hw-doloop.h: Likewise.
1052 * incpath.h: Likewise.
1053 * ipa-inline.h: Likewise.
1054 * ipa-ref.h: Likewise.
1055 * ira-int.h: Likewise.
1057 * lra-int.h: Likewise.
1059 * lto-section-names.h: Likewise.
1060 * read-md.h: Likewise.
1061 * reload.h: Likewise.
1062 * rtl-error.h: Likewise.
1063 * sdbout.h: Likewise.
1064 * targhooks.h: Likewise.
1065 * tree-affine.h: Likewise.
1066 * xcoff.h: Likewise.
1067 * xcoffout.h: Likewise.
1069 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
1072 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
1075 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
1078 * lra.c (lra): Call recog_init.
1080 2014-09-18 Jakub Jelinek <jakub@redhat.com>
1083 * asan.c (transform_statements): Don't instrument clobber statements.
1085 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1087 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
1088 to neon_load1_1reg<q>.
1090 2014-09-17 Jakub Jelinek <jakub@redhat.com>
1093 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
1094 if there are only debug stmts after the noreturn call, instead
1095 remove the debug stmts.
1097 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
1099 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
1100 (odr_types_equivalent_p): Use pair hash.
1101 (odr_subtypes_equivalent_p): Likewise, do structural compare
1102 on ODR types that may be mismatched.
1103 (warn_odr): Support warning when only one field is given.
1104 (odr_types_equivalent_p): Strenghten comparsions made;
1106 (add_type_duplicate): Update VISITED hash set.
1108 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
1110 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
1111 Enable selection of 'posix' or no thread model.
1113 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
1115 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
1116 when architecture is older than ARMv7.
1118 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
1121 * config/pa/pa.c (pa_function_value): Directly handle aggregates
1122 that fit exactly in a word or double word.
1124 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
1126 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
1129 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1130 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1131 Anna Tikhonova <anna.tikhonova@intel.com>
1132 Ilya Tocar <ilya.tocar@intel.com>
1133 Andrey Turetskiy <andrey.turetskiy@intel.com>
1134 Ilya Verbin <ilya.verbin@intel.com>
1135 Kirill Yukhin <kirill.yukhin@intel.com>
1136 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1138 * config/i386/i386.c
1139 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
1140 * config/i386/sse.md
1141 (define_mode_iterator VI48F_256): New.
1142 (define_mode_attr extract_type): Ditto.
1143 (define_mode_attr extract_suf): Ditto.
1144 (define_mode_iterator AVX512_VEC): Ditto.
1146 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
1148 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
1150 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
1152 (define_mode_attr extract_type_2): Ditto.
1153 (define_mode_attr extract_suf_2): Ditto.
1154 (define_mode_iterator AVX512_VEC_2): Ditto.
1156 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
1157 AVX512_VEC_2 mode iterator.
1158 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
1159 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
1160 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
1161 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
1162 (define_split for V16FI mode): Ditto.
1163 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
1164 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
1165 (define_split for VI8F_256 mode): Ditto.
1166 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
1167 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
1168 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
1169 (define_split for VI4F_256 mode): Ditto.
1170 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
1171 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
1172 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
1173 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
1174 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
1175 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
1176 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
1177 Update `type' attribute, remove explicit `memory' attribute calculation.
1179 2014-09-16 Kito Cheng <kito@0xlab.org>
1181 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
1182 ira_spilled_reg_stack_slots_num if using lra.
1183 (do_reload): Remove release ira_spilled_reg_stack_slots part.
1184 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
1185 make sure not using lra.
1186 (ira_reuse_stack_slot): Likewise.
1187 (ira_mark_new_stack_slot): Likewise.
1189 2014-09-15 Andi Kleen <ak@linux.intel.com>
1191 * function.c (allocate_struct_function): Force
1192 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
1193 profiling is disabled.
1195 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
1197 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
1198 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
1199 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
1200 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
1201 macro with statically checked member functions.
1202 * rtl.h (rtx_insn::deleted): New method.
1203 (rtx_insn::set_deleted): Likewise.
1204 (rtx_insn::set_undeleted): Likewise.
1205 (INSN_DELETED_P): Remove.
1207 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
1209 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
1210 result of emit_jump_insn_before to a new variable.
1211 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
1212 (mark_jump_label_1): Likewise.
1213 (mark_jump_label_asm): Likewise.
1214 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
1215 * rtl.h (mark_jump_label): Adjust.
1217 2014-09-15 Jakub Jelinek <jakub@redhat.com>
1219 * Makefile.in (dg_target_exps): Remove.
1220 (check_gcc_parallelize): Change to just an upper bound number.
1221 (check-%-subtargets): Always print the non-parallelized goals.
1222 (check_p_vars, check_p_comma, check_p_subwork): Remove.
1223 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
1224 check_p_numbers3, check_p_numbers4, check_p_numbers5,
1225 check_p_numbers6): New variables.
1226 (check_p_numbers): Set to sequence from 1 to 9999.
1227 (check_p_subdirs): Set to sequence from 1 to minimum of
1228 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
1230 (check-%, check-parallel-%): Rewritten so that for parallelized
1231 testing each job runs all the *.exp files, with
1232 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
1234 2014-09-15 David Malcolm <dmalcolm@redhat.com>
1236 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
1238 (arc_sets_cc_p): Likewise.
1239 * config/arc/arc.c (arc_print_operand): Use methods of
1240 "final_sequence" for clarity, and to enable strengthening of
1241 locals "jump" and "delay" from rtx to rtx_insn *.
1242 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
1243 rtx_insn *; use method of rtx_sequence for typesafety.
1244 (arc_get_insn_variants): Use insn method of rtx_sequence for
1246 (arc_pad_return): Likewise.
1247 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
1248 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
1249 dyn_cast to rtx_sequence *, using insn method for typesafety.
1250 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
1251 rtx_sequence * and use insn method when invoking get_attr_length.
1252 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
1253 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
1254 rtx_sequence *, introducing a local "seq", using its insn method
1255 from typesafety and clarity.
1256 (add_sched_insns_for_speculation): Strengthen local "next" from
1258 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
1259 (predicate_insn): Likewise.
1260 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
1262 * config/cris/cris.c (cris_notice_update_cc): Likewise.
1263 * config/epiphany/epiphany-protos.h
1264 (extern void epiphany_insert_mode_switch_use): Likewise for param
1266 (get_attr_sched_use_fpu): Likewise for param.
1267 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
1268 Likewise for param "insn".
1269 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
1270 param "insn" of "target_insert_mode_switch_use" callback.
1271 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
1272 (frv_issues_to_branch_unit_p): Likewise.
1273 (frv_pack_insn_p): Likewise.
1274 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
1275 const rtx * (i.e. mutable rtx_def * const *) to
1277 * config/i386/i386-protos.h (standard_sse_constant_opcode):
1278 Strengthen first param from rtx to rtx_insn *.
1279 (output_fix_trunc): Likewise.
1280 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
1281 (output_fix_trunc): Likewise.
1282 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
1284 (min_insn_size): Likewise for param "insn".
1285 (get_mem_group): Likewise.
1287 (get_insn_path): Likewise.
1288 (get_insn_group): Likewise.
1289 (count_num_restricted): Likewise.
1290 (fits_dispatch_window): Likewise.
1291 (add_insn_window): Likewise.
1292 (add_to_dispatch_window): Likewise.
1293 (debug_insn_dispatch_info_file): Likewise.
1294 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
1296 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
1297 "cmp" and local "prev".
1298 (m32c_output_compare): Likewise for param "insn".
1299 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
1300 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
1301 (define_predicate "large_insn_p"): Likewise.
1302 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
1303 param from rtx to rtx_insn *.
1304 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
1305 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
1306 (m68k_sched_attr_size): Likewise.
1307 (sched_get_opxy_mem_type): Likewise for param "insn".
1308 (m68k_sched_attr_op_mem): Likewise.
1309 (sched_mem_operand_p): Likewise.
1310 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
1311 * config/mep/mep.c (mep_multi_slot): Likewise.
1312 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
1314 (mips_sync_loop_insns): Likewise.
1315 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
1316 method of "final_sequence" for typesafety.
1317 (mips_process_sync_loop): Strengthen param "insn" from rtx to
1319 (mips_output_sync_loop): Likewise.
1320 (mips_sync_loop_insns): Likewise.
1321 (mips_74k_agen_init): Likewise.
1322 (mips_sched_init): Use NULL rather than NULL_RTX when working with
1324 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
1325 Strengthen param "insn" from rtx to rtx_insn *.
1326 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
1328 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
1330 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
1331 "insn". Use method of rtx_sequence for typesafety.
1332 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
1334 (branch_needs_nop_p): Likewise.
1335 (use_skip_p): Likewise.
1336 (pa_insn_refs_are_delayed): Likewise.
1337 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
1338 for locals "insn", "ninsn".
1339 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
1341 (is_cracked_insn): Likewise.
1342 (is_branch_slot_insn): Likewise.
1343 (is_nonpipeline_insn): Likewise.
1344 (insn_terminates_group_p): Likewise.
1345 (insn_must_be_first_in_group): Likewise.
1346 (insn_must_be_last_in_group): Likewise.
1347 (force_new_group): Likewise for param "next_insn".
1348 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
1350 (s390_sched_score): Likewise.
1351 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
1352 (rtx sfunc_uses_reg): Likewise for sole param.
1353 * config/sh/sh.c (sh_print_operand): Use insn method of
1354 final_sequence for typesafety.
1355 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
1356 Use insn method of final_sequence for typesafety.
1357 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
1358 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
1360 (eligible_for_return_delay): Likewise.
1361 (eligible_for_sibcall_delay): Likewise.
1362 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
1363 (eligible_for_return_delay): Likewise.
1364 (eligible_for_sibcall_delay): Likewise.
1365 * config/stormy16/stormy16-protos.h
1366 (xstormy16_output_cbranch_hi): Likewise for final param.
1367 (xstormy16_output_cbranch_si): Likewise.
1368 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
1369 (xstormy16_output_cbranch_si): Likewise.
1370 * config/v850/v850-protos.h (notice_update_cc): Likewise.
1371 * config/v850/v850.c (notice_update_cc): Likewise.
1373 * final.c (get_attr_length_1): Strengthen param "insn" and param
1374 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
1375 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
1376 (get_attr_min_length): Likewise.
1377 (shorten_branches): Likewise for signature of locals "length_fun"
1378 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
1379 from a checked cast and use its methods for clarity and to enable
1380 strengthening local "inner_insn" from rtx to rtx_insn *.
1381 * genattr.c (gen_attr): When writing out the prototypes of the
1382 various generated "get_attr_" functions, strengthen the params of
1383 the non-const functions from rtx to rtx_insn *.
1384 Similarly, strengthen the params of insn_default_length,
1385 insn_min_length, insn_variable_length_p, insn_current_length.
1386 (main): Similarly, strengthen the param of num_delay_slots,
1387 internal_dfa_insn_code, insn_default_latency, bypass_p,
1388 insn_latency, min_issue_delay, print_reservation,
1389 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
1390 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
1391 to hook_int_rtx_insn_unreachable.
1392 * genattrtab.c (write_attr_get): When writing out the generated
1393 "get_attr_" functions, strengthen the param "insn" from rtx to
1394 rtx_insn *, eliminating a checked cast.
1395 (make_automaton_attrs): When writing out prototypes of
1396 "internal_dfa_insn_code_", "insn_default_latency_" functions
1397 and the "internal_dfa_insn_code" and "insn_default_latency"
1398 callbacks, strengthen their params from rtx to rtx_insn *
1399 * genautomata.c (output_internal_insn_code_evaluation): When
1400 writing out code, add a checked cast from rtx to rtx_insn * when
1401 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
1402 (output_dfa_insn_code_func): Strengthen param of generated
1403 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
1404 (output_trans_func): Likewise for generated function
1406 (output_internal_insn_latency_func): When writing out generated
1407 function "internal_insn_latency", rename params from "insn" and
1408 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
1409 locals "insn" and "insn2" as rtx_insn * with checked casts once
1410 we've proven that we're not dealing with const0_rtx.
1411 (output_insn_latency_func): Strengthen param of generated
1412 function "insn_latency" from rtx to rtx_insn *.
1413 (output_print_reservation_func): Likewise for generated function
1414 "print_reservation".
1415 (output_insn_has_dfa_reservation_p): Likewise for generated
1416 function "insn_has_dfa_reservation_p".
1417 * hooks.c (hook_int_rtx_unreachable): Rename to...
1418 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
1419 from rtx to rtx_insn *.
1420 * hooks.h (hook_int_rtx_unreachable): Likewise.
1421 (extern int hook_int_rtx_insn_unreachable): Likewise.
1422 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
1423 (get_attr_min_length): Likewise.
1424 * recog.c (get_enabled_alternatives): Likewise.
1425 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
1426 * reorg.c (find_end_label): Introduce local rtx "pat" and
1427 strengthen local "insn" from rtx to rtx_insn *.
1428 (redundant_insn): Use insn method of "seq" rather than element for
1429 typesafety; strengthen local "control" from rtx to rtx_insn *.
1430 * resource.c (mark_referenced_resources): Add checked cast to
1431 rtx_insn * within INSN/JUMP_INSN case.
1432 (mark_set_resources): Likewise.
1433 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
1436 2014-09-15 David Malcolm <dmalcolm@redhat.com>
1438 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
1439 param "label" from rtx to rtx_insn *.
1440 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
1442 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
1443 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
1444 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
1445 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
1446 * final.c (default_label_align_after_barrier_max_skip): Strengthen
1447 param from rtx to rtx_insn *.
1448 (default_loop_align_max_skip): Likewise.
1449 (default_label_align_max_skip): Likewise.
1450 (default_jump_align_max_skip): Likewise.
1451 * target.def (label_align_after_barrier_max_skip): Likewise.
1452 (loop_align_max_skip): Likewise.
1453 (label_align_max_skip): Likewise.
1454 (jump_align_max_skip): Likewise.
1455 * targhooks.h (default_label_align_after_barrier_max_skip):
1457 (default_loop_align_max_skip): Likewise.
1458 (default_label_align_max_skip): Likewise.
1459 (default_jump_align_max_skip): Likewise.
1461 2014-09-15 David Malcolm <dmalcolm@redhat.com>
1463 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
1464 from const_rtx to const rtx_insn *. Update union members from rtx
1466 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
1467 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
1468 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
1469 strengthen both params from const_rtx to const rtx_insn *.
1470 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
1471 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
1472 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
1474 * target.def (can_follow_jump): Strengthen both params from
1475 const_rtx to const rtx_insn *, and update default implementation
1476 from hook_bool_const_rtx_const_rtx_true to
1477 hook_bool_const_rtx_insn_const_rtx_insn_true.
1479 2014-09-15 David Malcolm <dmalcolm@redhat.com>
1481 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
1482 "insn" from rtx to rtx_insn *.
1483 * sched-int.h (deps_start_bb): Likewise for 2nd param.
1485 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1486 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1487 Anna Tikhonova <anna.tikhonova@intel.com>
1488 Ilya Tocar <ilya.tocar@intel.com>
1489 Andrey Turetskiy <andrey.turetskiy@intel.com>
1490 Ilya Verbin <ilya.verbin@intel.com>
1491 Kirill Yukhin <kirill.yukhin@intel.com>
1492 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1494 * config/i386/sse.md
1495 (define_insn "vcvtph2ps<mask_name>"): Add masking.
1496 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
1497 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
1498 (define_expand "vcvtps2ph_mask"): New.
1499 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
1500 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
1501 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
1503 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1504 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1505 Anna Tikhonova <anna.tikhonova@intel.com>
1506 Ilya Tocar <ilya.tocar@intel.com>
1507 Andrey Turetskiy <andrey.turetskiy@intel.com>
1508 Ilya Verbin <ilya.verbin@intel.com>
1509 Kirill Yukhin <kirill.yukhin@intel.com>
1510 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1512 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
1514 (define_mode_iterator VI24_AVX512BW_1): Ditto.
1515 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
1516 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
1517 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
1518 also for TARGET_AVX512VL.
1519 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
1521 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
1523 * doc/install.texi (Options specification): add
1524 --disable-libsanitizer item.
1526 2014-09-14 James Clarke <jrtc27@jrtc27.com>
1527 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1530 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
1532 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
1533 kernel version check to avoid incrementing it after every major OS X
1535 (darwin_default_min_version): Avoid static memory buffer.
1537 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
1539 * tree.c (need_assembler_name_p): Store C++ type mangling only
1542 2014-09-13 Marek Polacek <polacek@redhat.com>
1544 * tree.c (protected_set_expr_location): Don't check whether T is
1547 2014-09-12 DJ Delorie <dj@redhat.com>
1549 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
1550 (extend_and_shift1_hipsi2): Likewise.
1551 (extend_and_shift2_hipsi2): Likewise.
1553 2014-09-12 David Malcolm <dmalcolm@redhat.com>
1555 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
1556 with NULL when dealing with an insn.
1557 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
1558 from rtx to rtx_insn *.
1559 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
1560 const_rtx to const rtx_insn *.
1561 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
1563 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
1565 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
1568 2014-09-12 Joseph Myers <joseph@codesourcery.com>
1570 * target.def (libgcc_floating_mode_supported_p): New hook.
1571 * targhooks.c (default_libgcc_floating_mode_supported_p): New
1573 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
1574 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
1575 (LIBGCC2_HAS_TF_MODE): Remove.
1576 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
1577 * doc/tm.texi: Regenerate.
1578 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
1580 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
1581 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
1582 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
1583 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
1584 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1585 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
1586 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
1587 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
1588 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
1589 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
1591 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
1592 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1593 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1594 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1595 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1596 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1597 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1598 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
1599 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
1600 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
1601 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1602 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
1603 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
1604 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
1606 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
1608 (ia64_libgcc_floating_mode_supported_p): New function.
1609 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
1610 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
1611 (IA64_NO_LIBGCC_TFMODE): Define.
1612 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
1613 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
1615 (pdp11_scalar_mode_supported_p): New function.
1616 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
1617 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
1619 2014-09-12 Richard Biener <rguenther@suse.de>
1622 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
1624 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
1626 * tree.c (integer_each_onep): New function.
1627 * tree.h (integer_each_onep): Declare it.
1628 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
1629 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
1630 (X & 1) == 0 for vector and complex.
1632 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
1634 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
1636 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
1637 cost to spilling from integer to FP registers.
1639 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
1641 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
1643 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
1644 are now handled correctly.
1646 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
1648 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
1649 handling of CALLER_SAVE_REGS and POINTER_REGS.
1651 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
1653 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
1654 the number of hard registers.
1656 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
1657 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1658 Anna Tikhonova <anna.tikhonova@intel.com>
1659 Ilya Tocar <ilya.tocar@intel.com>
1660 Andrey Turetskiy <andrey.turetskiy@intel.com>
1661 Ilya Verbin <ilya.verbin@intel.com>
1662 Kirill Yukhin <kirill.yukhin@intel.com>
1663 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1665 * config/i386/sse.md
1666 (define_mode_iterator VI48_AVX512VL): New.
1667 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
1668 "avx512f_vternlog<mode>_maskz" and update mode iterator.
1669 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
1670 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
1671 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
1672 "avx512f_vternlog<mode>_mask" and update mode iterator.
1673 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
1674 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
1676 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
1677 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
1678 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
1679 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
1680 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
1681 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
1683 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
1684 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1685 Anna Tikhonova <anna.tikhonova@intel.com>
1686 Ilya Tocar <ilya.tocar@intel.com>
1687 Andrey Turetskiy <andrey.turetskiy@intel.com>
1688 Ilya Verbin <ilya.verbin@intel.com>
1689 Kirill Yukhin <kirill.yukhin@intel.com>
1690 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1692 * config/i386/sse.md (VI128_256): Delete.
1693 (define_mode_iterator VI124_256): New.
1694 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
1695 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
1696 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
1697 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
1698 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
1699 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
1700 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
1701 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
1703 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
1704 in presence of AVX-512.
1706 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
1707 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1708 Anna Tikhonova <anna.tikhonova@intel.com>
1709 Ilya Tocar <ilya.tocar@intel.com>
1710 Andrey Turetskiy <andrey.turetskiy@intel.com>
1711 Ilya Verbin <ilya.verbin@intel.com>
1712 Kirill Yukhin <kirill.yukhin@intel.com>
1713 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1715 * config/i386/sse.md
1716 (define_expand "<avx512>_gathersi<mode>"): Rename from
1717 "avx512f_gathersi<mode>".
1718 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
1719 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
1720 (define_expand "<avx512>_gatherdi<mode>"): Rename from
1721 "avx512f_gatherdi<mode>".
1722 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
1723 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
1725 (define_expand "<avx512>_scattersi<mode>"): Rename from
1726 "avx512f_scattersi<mode>".
1727 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
1728 (define_expand "<avx512>_scatterdi<mode>"): Rename from
1729 "avx512f_scatterdi<mode>".
1730 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
1732 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
1734 * ira.h (ira_finish_once): Delete.
1735 * ira-int.h (target_ira_int::~target_ira_int): Declare.
1736 (target_ira_int::free_ira_costs): Likewise.
1737 (target_ira_int::free_register_move_costs): Likewise.
1738 (ira_finish_costs_once): Delete.
1739 * ira.c (free_register_move_costs): Replace with...
1740 (target_ira_int::free_register_move_costs): ...this new function.
1741 (target_ira_int::~target_ira_int): Define.
1742 (ira_init): Call free_register_move_costs as a member function rather
1743 than a global function.
1744 (ira_finish_once): Delete.
1745 * ira-costs.c (free_ira_costs): Replace with...
1746 (target_ira_int::free_ira_costs): ...this new function.
1747 (ira_init_costs): Call free_ira_costs as a member function rather
1748 than a global function.
1749 (ira_finish_costs_once): Delete.
1750 * target-globals.c (target_globals::~target_globals): Call the
1751 target_ira_int destructor.
1752 * toplev.c: Include lra.h.
1753 (finalize): Call lra_finish_once rather than ira_finish_once.
1755 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
1757 * common.opt (flto-odr-type-merging): New flag.
1758 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
1759 (types_same_for_odr): Likewise.
1760 (odr_subtypes_equivalent_p): Likewise.
1761 (add_type_duplicate): Do not walk type variants.
1762 (register_odr_type): New function.
1763 * ipa-utils.h (register_odr_type): Declare.
1764 (odr_type_p): New function.
1765 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
1767 * doc/invoke.texi (-flto-odr-type-merging): Document.
1768 * tree.c (need_assembler_name_p): Compute ODR names when asked
1770 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
1772 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
1775 * config/i386/i386.c (ix86_option_override_internal): Also turn
1776 off OPTION_MASK_ABI_X32 for -m16.
1778 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
1780 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
1783 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
1786 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
1787 Directly forward to __*_DENORM_MIN__.
1789 2014-09-11 David Malcolm <dmalcolm@redhat.com>
1791 * rtl.h (LABEL_REF_LABEL): New macro.
1793 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
1794 of XEXP (, 0), where we know that we have a LABEL_REF.
1795 * cfgbuild.c (make_edges): Likewise.
1796 (purge_dead_tablejump_edges): Likewise.
1797 * cfgexpand.c (convert_debug_memory_address): Likewise.
1798 * cfgrtl.c (patch_jump_insn): Likewise.
1799 * combine.c (distribute_notes): Likewise.
1800 * cse.c (hash_rtx_cb): Likewise.
1801 (exp_equiv_p): Likewise.
1802 (fold_rtx): Likewise.
1803 (check_for_label_ref): Likewise.
1804 * cselib.c (rtx_equal_for_cselib_1): Likewise.
1805 (cselib_hash_rtx): Likewise.
1806 * emit-rtl.c (mark_label_nuses): Likewise.
1807 * explow.c (convert_memory_address_addr_space): Likewise.
1808 * final.c (output_asm_label): Likewise.
1809 (output_addr_const): Likewise.
1810 * gcse.c (add_label_notes): Likewise.
1811 * genconfig.c (walk_insn_part): Likewise.
1812 * genrecog.c (validate_pattern): Likewise.
1813 * ifcvt.c (cond_exec_get_condition): Likewise.
1814 (noce_emit_store_flag): Likewise.
1815 (noce_get_alt_condition): Likewise.
1816 (noce_get_condition): Likewise.
1817 * jump.c (maybe_propagate_label_ref): Likewise.
1818 (mark_jump_label_1): Likewise.
1819 (redirect_exp_1): Likewise.
1820 (rtx_renumbered_equal_p): Likewise.
1821 * lra-constraints.c (operands_match_p): Likewise.
1822 * reload.c (operands_match_p): Likewise.
1823 (find_reloads): Likewise.
1824 * reload1.c (set_label_offsets): Likewise.
1825 * reorg.c (get_branch_condition): Likewise.
1826 * rtl.c (rtx_equal_p_cb): Likewise.
1827 (rtx_equal_p): Likewise.
1828 * rtlanal.c (reg_mentioned_p): Likewise.
1829 (rtx_referenced_p): Likewise.
1830 (get_condition): Likewise.
1831 * sched-vis.c (print_value): Likewise.
1832 * varasm.c (const_hash_1): Likewise.
1833 (compare_constant): Likewise.
1834 (const_rtx_hash_1): Likewise.
1835 (output_constant_pool_1): Likewise.
1837 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
1839 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
1840 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
1842 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
1843 cr6_test_for_lt_reverse): Ditto.
1845 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
1848 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
1850 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
1852 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
1853 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
1854 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
1855 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
1858 (aarch64_fold_builtin): Remove all reinterpret cases.
1860 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
1862 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
1864 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
1865 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
1866 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
1867 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
1868 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
1869 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
1870 aarch64_reinterpretv2df<mode>): Delete.
1872 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
1874 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
1875 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
1876 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
1877 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
1878 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
1879 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
1880 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
1881 vreinterpret_u32_f64): Use cast.
1883 * config/aarch64/iterators.md (VD_RE): Delete.
1885 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
1887 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
1888 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
1889 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
1890 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
1891 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
1892 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
1893 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
1894 Replace inline assembler with __aarch64_vset_lane_any.
1896 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
1898 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
1900 (vmull_high_lane_s32): Likewise.
1901 (vmull_high_lane_u16): Likewise.
1902 (vmull_high_lane_u32): Likewise.
1904 2014-09-11 Jason Merrill <jason@redhat.com>
1907 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
1909 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
1912 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
1913 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
1914 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
1916 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1917 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1918 Anna Tikhonova <anna.tikhonova@intel.com>
1919 Ilya Tocar <ilya.tocar@intel.com>
1920 Andrey Turetskiy <andrey.turetskiy@intel.com>
1921 Ilya Verbin <ilya.verbin@intel.com>
1922 Kirill Yukhin <kirill.yukhin@intel.com>
1923 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1925 * config/i386/sse.md
1926 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
1927 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
1928 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
1930 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
1931 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
1933 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
1935 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
1936 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
1937 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
1938 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
1939 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
1940 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
1941 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
1942 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
1944 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
1946 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
1947 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
1948 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
1950 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
1952 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
1953 to access removed nodes.
1955 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
1957 PR tree-optimization/63186
1958 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
1959 (mark_nonssa_use): Likewise.
1960 (verify_non_ssa_vars): Verify all header blocks for label
1963 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1964 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1965 Anna Tikhonova <anna.tikhonova@intel.com>
1966 Ilya Tocar <ilya.tocar@intel.com>
1967 Andrey Turetskiy <andrey.turetskiy@intel.com>
1968 Ilya Verbin <ilya.verbin@intel.com>
1969 Kirill Yukhin <kirill.yukhin@intel.com>
1970 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1972 * config/i386/sse.md
1973 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
1974 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
1975 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
1976 "<avx2_avx512f>_permvar<mode><mask_name>".
1977 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
1978 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
1979 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
1980 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
1982 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
1983 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
1984 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
1985 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
1987 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1989 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
1990 V2DF, V4SF, DF, and DI modes.
1991 (vsx_fmav2df2): Likewise.
1992 (vsx_float_fix_<mode>2): Likewise.
1993 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
1995 2014-09-10 Xinliang David Li <davidxl@google.com>
1998 * config/arm/arm.md (movcond_addsi): Handle case where source
1999 and target operands are the same.
2001 2014-09-10 David Malcolm <dmalcolm@redhat.com>
2003 * final.c (this_is_asm_operands): Strengthen this variable from
2004 rtx to const rtx_insn *.
2005 * output.h (this_is_asm_operands): Likewise.
2006 * rtl-error.c (location_for_asm): Strengthen param "insn" from
2007 const_rtx to const rtx_insn *.
2008 (diagnostic_for_asm): Likewise.
2009 * rtl-error.h (error_for_asm): Likewise.
2010 (warning_for_asm): Likewise.
2012 2014-09-10 David Malcolm <dmalcolm@redhat.com>
2014 * genextract.c (print_header): When writing out insn_extract to
2015 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
2016 * recog.h (insn_extract): Strengthen the param from rtx to
2019 2014-09-10 Mike Stump <mikestump@comcast.net>
2021 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
2024 2014-09-10 Martin Jambor <mjambor@suse.cz>
2026 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
2027 (analyze): Do not set analyze flag if expand_thunk returns false;.
2028 (create_wrapper): Likewise.
2029 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
2031 2014-09-10 Martin Jambor <mjambor@suse.cz>
2034 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
2035 new decl properly. Analyze the new thunk if it is expanded.
2037 2014-09-10 Andreas Schwab <schwab@suse.de>
2039 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
2040 [USED_FOR_TARGET]: Define.
2042 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
2044 * config/mips/mips.c (mips_secondary_reload_class): Handle
2047 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
2049 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
2052 2014-09-10 Jakub Jelinek <jakub@redhat.com>
2054 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
2055 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
2056 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
2057 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
2058 flag_delete_null_pointer_checks for them.
2059 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
2060 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
2061 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
2062 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
2063 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
2065 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
2066 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
2067 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
2068 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
2069 * doc/invoke.texi (-fsanitize=nonnull-attribute,
2070 -fsanitize=returns-nonnull-attribute): Document.
2072 * ubsan.h (struct ubsan_mismatch_data): Removed.
2073 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
2074 * ubsan.c (ubsan_source_location): For unknown locations,
2075 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
2076 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
2077 Allow more than one location and arbitrary extra arguments passed
2078 in ... instead of through MISMATCH pointer.
2079 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
2080 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
2081 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
2084 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
2085 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2086 Anna Tikhonova <anna.tikhonova@intel.com>
2087 Ilya Tocar <ilya.tocar@intel.com>
2088 Andrey Turetskiy <andrey.turetskiy@intel.com>
2089 Ilya Verbin <ilya.verbin@intel.com>
2090 Kirill Yukhin <kirill.yukhin@intel.com>
2091 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2093 * config/i386/sse.md
2094 (define_mode_iterator VI48F): New.
2095 (define_insn "<avx512>_compress<mode>_mask"): Rename from
2096 "avx512f_compress<mode>_mask" and update mode iterator.
2097 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
2098 "avx512f_compressstore<mode>_mask" and update mode iterator.
2099 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
2100 "avx512f_expand<mode>_maskz" and update mode iterator.
2101 (define_insn "<avx512>_expand<mode>_mask"): Rename from
2102 "avx512f_expand<mode>_mask" and update mode iterator.
2104 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
2105 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2106 Anna Tikhonova <anna.tikhonova@intel.com>
2107 Ilya Tocar <ilya.tocar@intel.com>
2108 Andrey Turetskiy <andrey.turetskiy@intel.com>
2109 Ilya Verbin <ilya.verbin@intel.com>
2110 Kirill Yukhin <kirill.yukhin@intel.com>
2111 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2113 * config/i386/i386.c
2114 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
2115 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
2116 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
2117 avx512dq_rangepv4sf_mask.
2118 * config/i386/sse.md
2119 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
2121 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
2122 (define_insn "reduces<mode>"): Ditto.
2123 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
2125 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
2126 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
2127 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
2129 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
2130 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2131 Anna Tikhonova <anna.tikhonova@intel.com>
2132 Ilya Tocar <ilya.tocar@intel.com>
2133 Andrey Turetskiy <andrey.turetskiy@intel.com>
2134 Ilya Verbin <ilya.verbin@intel.com>
2135 Kirill Yukhin <kirill.yukhin@intel.com>
2136 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2138 * config/i386/i386.c
2139 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
2140 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
2141 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
2142 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
2143 avx512vl_getmantv2df_mask.
2144 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
2145 avx512f_vgetmantv4sf_round.
2146 * config/i386/sse.md
2147 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
2148 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
2150 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
2151 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
2152 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
2153 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
2155 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
2156 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
2157 update mode iterator.
2159 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
2160 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
2163 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
2164 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
2165 update mode iterator.
2166 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
2167 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
2170 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
2171 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
2173 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
2174 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
2175 update mode iterator.
2176 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
2177 "avx512f_getmant<mode><round_saeonly_name>".
2179 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
2182 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
2184 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
2185 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2186 Anna Tikhonova <anna.tikhonova@intel.com>
2187 Ilya Tocar <ilya.tocar@intel.com>
2188 Andrey Turetskiy <andrey.turetskiy@intel.com>
2189 Ilya Verbin <ilya.verbin@intel.com>
2190 Kirill Yukhin <kirill.yukhin@intel.com>
2191 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2193 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
2194 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
2195 (define_mode_iterator FMAMODE_AVX512): New.
2196 (define_mode_iterator FMAMODE): Remove conditions.
2197 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
2198 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
2199 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
2201 (define_mode_iterator FMAMODE_NOVF512): Remove.
2202 (define_insn "*fma_fmadd_<mode>"): Rename from
2203 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
2204 FMAMODE mode iterator.
2205 (define_mode_iterator VF_SF_AVX512VL): New.
2206 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
2207 Use VF_SF_AVX512VL mode iterator.
2208 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
2209 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
2211 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
2212 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2214 (define_insn "*fma_fmsub_<mode>"): Rename from
2215 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
2216 FMAMODE mode iterator.
2217 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
2218 Use VF_SF_AVX512VL mode iterator.
2219 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
2220 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
2222 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
2223 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2225 (define_insn "*fma_fnmadd_<mode>"): Rename from
2226 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
2227 use FMAMODE mode iterator.
2228 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
2229 Use VF_SF_AVX512VL mode iterator.
2230 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
2231 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
2233 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
2234 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2236 (define_insn "*fma_fnmsub_<mode>"): Rename from
2237 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
2238 FMAMODE mode iterator.
2239 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
2240 Use VF_SF_AVX512VL mode iterator.
2241 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
2242 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
2244 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
2245 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2247 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
2248 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
2249 use VF_AVX512VL mode iterator.
2250 (define_insn "*fma_fmaddsub_<mode>"): Rename from
2251 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
2253 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
2254 Use VF_SF_AVX512VL mode iterator.
2255 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
2256 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
2258 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
2259 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2261 (define_insn "*fma_fmsubadd_<mode>"): Rename from
2262 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
2263 remove usage of subst.
2264 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
2265 Use VF_SF_AVX512VL mode iterator.
2266 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
2267 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
2269 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
2270 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2273 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
2276 * calls.c (precompute_arguments): Check
2277 promoted_for_signed_and_unsigned_p and set the promoted mode.
2278 (promoted_for_signed_and_unsigned_p): New function.
2279 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
2280 and set the promoted mode.
2281 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
2282 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
2283 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
2285 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2287 * opth-gen.awk: Generate mapping from cpp message reasons to the
2288 options that enable them.
2289 * doc/options.texi (CppReason): Document.
2291 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2293 * doc/invoke.texi (Wnormalized=): Update.
2295 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
2298 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
2299 operands. Split off the constant operand alternative to ...
2300 (*bool<mode>3_imm): New.
2302 2014-09-09 David Malcolm <dmalcolm@redhat.com>
2304 * rtl.h (single_set_2): Strengthen first param from const_rtx to
2305 const rtx_insn *, and move prototype to above...
2306 (single_set): ...this. Convert this from a macro to an inline
2307 function, enforcing the requirement that the param is a const
2309 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
2311 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
2312 Strengthen both params from rtx to rtx_insn *.
2313 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
2314 Likewise; introduce locals "producer_set", "consumer_set", using
2315 them in place of "producer" and "consumer" when dealing with SET
2317 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
2318 when invoking single_set in region guarded by INSN_P.
2319 (avr_out_bitop): Likewise.
2320 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
2321 region guarded by GET_CODE check, using methods to strengthen
2322 local "this_insn" from rtx to rtx_insn *, and for clarity.
2323 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
2324 Strengthen local "insn" from rtx to rtx_insn *.
2325 (define_insn_and_split "xload<mode>_A"): Likewise.
2326 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
2328 (find_load): Likewise for return type.
2329 (workaround_speculation): Likewise for both locals named
2331 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
2333 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
2335 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
2337 * config/h8300/h8300.c (notice_update_cc): Likewise.
2338 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
2339 "insn" and "dep_insn".
2340 (exact_store_load_dependency): Likewise for both params.
2341 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
2342 since this now clashes with inline function. Instead, delay
2343 calling single_set until the point where its needed, and then
2344 assign the result to "compare_set" and rework the conditional that
2346 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
2347 local "last" from rtx to rtx_insn *.
2348 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
2350 (mips_store_data_bypass_p): Likewise for both params.
2351 * config/mips/mips.c (mips_load_store_insns): Likewise for second
2353 (mips_store_data_bypass_p): Likewise for both params.
2354 (mips_orphaned_high_part_p): Likewise for param "insn".
2355 * config/mn10300/mn10300.c (extract_bundle): Likewise.
2356 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
2357 Introduce local rtx "insn2_pat".
2358 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
2360 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
2361 Introduce local rtx "set", using it in place of "insn" for the
2362 result of single_set. This appears to fix a bug, since the call
2363 to find_regno_note on a SET does nothing.
2364 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
2365 params from rtx to rtx_insn *.
2366 (set_to_load_agen): Likewise.
2367 * config/s390/s390.c (s390_label_align): Likewise for local
2368 "prev_insn". Introduce new rtx locals "set" and "src", using
2369 them in place of "prev_insn" for the results of single_set
2370 and SET_SRC respectively.
2371 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
2372 Introduce new rtx local "set" using in place of "jump" for the
2373 result of single_set. Use SET_SRC (set) rather than plain
2375 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
2377 (noncall_uses_reg): Likewise.
2378 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
2379 guarded by GET_CODE check, using its methods for clarity, and to
2380 enable strengthening local "this_insn" from rtx to rtx_insn *.
2381 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
2382 "insn" from rtx to rtx_insn *.
2383 (define_expand "umulhisi3"): Likewise.
2384 (define_expand "smulsi3_highpart"): Likewise.
2385 (define_expand "umulsi3_highpart"): Likewise.
2386 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
2387 local "after". Replace GET_CODE check with a dyn_cast,
2388 introducing new local rtx_sequence * "seq", using insn method for
2391 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
2392 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
2393 place of "insn" once we're dealing with patterns rather than the
2395 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
2396 (scan_trace): Likewise for local "elt", updating lookups within
2397 sequence to use insn method rather than element method.
2398 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
2400 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
2401 * ifcvt.c (noce_try_abs): Likewise for local "insn".
2402 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
2403 invoking single_set.
2404 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
2405 "insn" from rtx to rtx_insn *.
2406 (skip_usage_debug_insns): Likewise for return type, adding a
2408 (check_secondary_memory_needed_p): Likewise for local "insn".
2409 (inherit_reload_reg): Likewise.
2410 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
2411 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
2413 (store_data_bypass_p): Likewise for both params.
2414 (if_test_bypass_p): Likewise.
2415 * recog.h (store_data_bypass_p): Likewise for both params.
2416 (if_test_bypass_p): Likewise.
2417 * reload.c (find_equiv_reg): Likewise for local "where".
2418 * reorg.c (delete_jump): Likewise for param "insn".
2419 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
2420 to const rtx_insn *.
2421 * store-motion.c (replace_store_insn): Likewise for param "del".
2422 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
2423 and use its methods for clarity, and to strengthen local "del"
2424 from rtx to rtx_insn *.
2425 (build_store_vectors): Use insn method of "st" when calling
2426 replace_store_insn for typesafety and clarity.
2428 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2430 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
2431 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
2432 on how to make it legal in future.
2434 2014-09-09 David Malcolm <dmalcolm@redhat.com>
2436 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
2438 (restinsn): Likewise.
2439 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
2441 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
2443 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
2445 (arc_hazard): Likewise for both params.
2446 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
2447 checked casts to rtx_sequence * and uses of the insn method for
2449 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
2450 (arc_adjust_insn_length): Likewise for param "insn".
2451 (struct insn_length_parameters_s): Likewise for first param of
2452 "get_variants" callback field.
2453 (arc_get_insn_variants): Likewise for first param and local
2454 "inner". Replace a check of GET_CODE with a dyn_cast to
2455 rtx_sequence *, using methods for type-safety and clarity.
2456 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
2457 rtx_sequence * and uses of the insn method for type-safety when
2458 invoking arc_adjust_insn_length.
2459 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
2461 (arm_address_offset_is_imm): Likewise.
2462 (struct tune_params): Likewise for params 1 and 3 of the
2463 "sched_adjust_cost" callback field.
2464 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
2465 params 1 and 3 ("insn" and "dep").
2466 (xscale_sched_adjust_cost): Likewise.
2467 (fa726te_sched_adjust_cost): Likewise.
2468 (cortexa7_older_only): Likewise for param "insn".
2469 (cortexa7_younger): Likewise.
2470 (arm_attr_length_move_neon): Likewise.
2471 (arm_address_offset_is_imm): Likewise.
2472 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
2473 * config/avr/avr.c (avr_notice_update_cc): Likewise.
2474 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
2475 (workaround_speculation): Likewise for local "last_condjump".
2476 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
2477 (shadow_or_blockage_p): Likewise.
2478 (get_unit_reqs): Likewise.
2479 (get_unit_operand_masks): Likewise.
2480 (c6x_registers_update): Likewise.
2481 (returning_call_p): Likewise.
2482 (can_use_callp): Likewise.
2483 (convert_to_callp): Likewise.
2484 (find_last_same_clock): Likwise for local "t".
2485 (reorg_split_calls): Likewise for local "shadow".
2486 (hwloop_pattern_reg): Likewise for param "insn".
2487 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
2488 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
2489 (frv_extract_membar): Likewise.
2490 (frv_optimize_membar_local): Strengthen param "last_membar" from
2491 rtx * to rtx_insn **.
2492 (frv_optimize_membar_global): Strengthen param "membar" from rtx
2494 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
2496 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
2497 both params from rtx to rtx_insn *.
2498 (ia64_ld_address_bypass_p): Likewise.
2499 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
2501 (ia64_safe_type): Likewise.
2502 (group_barrier_needed): Likewise.
2503 (safe_group_barrier_needed): Likewise.
2504 (ia64_single_set): Likewise.
2505 (is_load_p): Likewise.
2506 (record_memory_reference): Likewise.
2507 (get_mode_no_for_insn): Likewise.
2508 (important_for_bundling_p): Likewise.
2509 (unknown_for_bundling_p): Likewise.
2510 (ia64_st_address_bypass_p): Likewise for both params.
2511 (ia64_ld_address_bypass_p): Likewise.
2512 (expand_vselect): Introduce new local rtx_insn * "insn", using it
2513 in place of rtx "x" after the emit_insn call.
2514 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
2515 Strengthen param from rtx to rtx_insn *.
2516 (ix86_agi_dependent): Likewise for both params.
2517 (ix86_attr_length_immediate_default): Likewise for param 1.
2518 (ix86_attr_length_address_default): Likewise for param.
2519 (ix86_attr_length_vex_default): Likewise for param 1.
2520 * config/i386/i386.c (ix86_attr_length_immediate_default):
2521 Likewise for param "insn".
2522 (ix86_attr_length_address_default): Likewise.
2523 (ix86_attr_length_vex_default): Likewise.
2524 (ix86_agi_dependent): Likewise for both params.
2525 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
2526 (vselect_insn): Likewise for this variable.
2527 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
2529 (m68k_sched_attr_opy_type): Likewise.
2530 * config/m68k/m68k.c (sched_get_operand): Likewise.
2531 (sched_attr_op_type): Likewise.
2532 (m68k_sched_attr_opx_type): Likewise.
2533 (m68k_sched_attr_opy_type): Likewise.
2534 (sched_get_reg_operand): Likewise.
2535 (sched_get_mem_operand): Likewise.
2536 (m68k_sched_address_bypass_p): Likewise for both params.
2537 (sched_get_indexed_address_scale): Likewise.
2538 (m68k_sched_indexed_address_bypass_p): Likewise.
2539 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
2540 (m68k_sched_indexed_address_bypass_p): Likewise.
2541 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
2542 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
2544 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
2545 params from rtx to rtx_insn *.
2546 (mips_fmadd_bypass): Likewise.
2547 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
2548 (mips_linked_madd_p): Likewise.
2549 (mips_macc_chains_last_hilo): Likewise for this variable.
2550 (mips_macc_chains_record): Likewise for param.
2551 (vr4130_last_insn): Likewise for this variable.
2552 (vr4130_swap_insns_p): Likewise for both params.
2553 (mips_ls2_variable_issue): Likewise for param.
2554 (mips_need_noat_wrapper_p): Likewise for param "insn".
2555 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
2556 in place of "x" after the emit_insn.
2557 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
2558 params from rtx to rtx_insn *.
2559 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
2560 (pa_combine_instructions): Introduce local "par" for result of
2561 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
2563 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
2564 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
2565 (rl78_alloc_physical_registers_op1): Likewise.
2566 (rl78_alloc_physical_registers_op2): Likewise.
2567 (rl78_alloc_physical_registers_ro1): Likewise.
2568 (rl78_alloc_physical_registers_cmp): Likewise.
2569 (rl78_alloc_physical_registers_umul): Likewise.
2570 (rl78_alloc_address_registers_macax): Likewise.
2571 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
2572 * config/s390/predicates.md (execute_operation): Likewise for
2574 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
2576 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
2577 (addr_generation_dependency_p): Likewise for param "insn".
2578 (s390_agen_dep_p): Likewise for both params.
2579 (s390_fpload_toreg): Likewise for param "insn".
2580 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
2581 * config/sh/sh.c (sh_loop_align): Likewise for param and local
2583 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
2584 * config/sh/sh_treg_combine.cc
2585 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
2587 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
2588 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
2589 "and_insn", "load", "shift".
2590 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
2592 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
2593 for XEXP (note, 0) of the REG_CC_SETTER note.
2594 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
2595 rtx_insn *, eliminating a checked cast made redundant by this.
2596 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
2598 * genattr.c (main): When writing out the prototype to
2599 const_num_delay_slots, strengthen the param from rtx to
2601 * genattrtab.c (write_const_num_delay_slots): Likewise when
2602 writing out the implementation of const_num_delay_slots.
2603 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
2604 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
2605 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
2606 favor of new rtx locals "src" and "set" and new local rtx_insn *
2608 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
2610 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
2611 locals "cond", "if_then_else", "set" and new rtx_insn * locals
2613 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
2614 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
2615 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
2616 the top-level scope, replacing with new more tightly-scoped rtx
2617 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
2618 "new_insn", "copy_of_insn_b", and make local rtx "set" more
2620 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
2622 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
2624 (ira_setup_alts): Likewise for param "insn".
2625 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
2626 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
2628 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
2629 new more-tightly scoped rtx locals "add3_insn", "insn",
2630 "add2_insn" and rtx_insn * "move_insn".
2631 * postreload-gcse.c (eliminate_partially_redundant_load): Add
2632 checked cast on result of gen_move_insn when invoking
2634 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
2636 (verify_changes): Add a checked cast on "object" when invoking
2638 (extract_insn_cached): Strengthen param "insn" from rtx to
2640 (extract_constrain_insn_cached): Likewise.
2641 (extract_insn): Likewise.
2642 * recog.h (insn_invalid_p): Likewise for param 1.
2643 (recog_memoized): Likewise for param.
2644 (extract_insn): Likewise.
2645 (extract_constrain_insn_cached): Likewise.
2646 (extract_insn_cached): Likewise.
2647 * reload.c (can_reload_into): Likewise for local "test_insn".
2648 * reload.h (cleanup_subreg_operands): Likewise for param.
2649 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
2650 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
2651 result of emit_insn. Remove a checked cast made redundant by this
2653 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
2655 * sel-sched.c (get_reg_class): Likewise.
2657 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
2658 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2660 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
2661 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
2663 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
2665 2014-09-09 David Malcolm <dmalcolm@redhat.com>
2667 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
2668 const rtx_insn *, and from rtx to rtx_insn * for the other
2670 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
2671 INSN_LOCATION, since we know INSN_P holds.
2672 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
2673 (insn_file): Likewise.
2674 (insn_scope): Likewise.
2675 (insn_location): Likewise.
2677 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
2678 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
2679 for the result of gen_load_const_gp.
2680 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
2681 param from rtx to rtx_insn *.
2682 * config/rs6000/rs6000.c (output_call): Likewise.
2683 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
2684 introducing a checked cast to rtx_sequence * and use of the insn
2686 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
2687 from rtx to rtx_insn *.
2688 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
2689 (insn_line): Likewise.
2690 (insn_file): Likewise.
2691 (insn_location): Likewise.
2692 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
2693 from rtx to rtx_insn *.
2694 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
2695 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
2696 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
2698 * reorg.c (relax_delay_slots): Strengthen locals named "after"
2699 from rtx to rtx_insn *; use methods of "pat" for type-safety.
2701 2014-09-09 David Malcolm <dmalcolm@redhat.com>
2703 * combine.c (try_combine): Eliminate checked cast on result of
2705 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
2706 autogenerated one by strengthening the return type and params 2 and 3
2707 from rtx to rtx_insn *, and by naming the params.
2708 * gengenrtl.c (special_rtx): Add INSN to those that are
2710 * rtl.h (gen_rtx_INSN): New prototype.
2712 2014-09-09 David Malcolm <dmalcolm@redhat.com>
2714 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
2716 (no_equiv): Likewise.
2717 (update_equiv_regs): Likewise.
2718 (setup_reg_equiv): Likewise. Strengthen locals "elem",
2719 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
2720 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
2722 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
2723 from rtx to rtx_insn_list *.
2724 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
2725 rtx_insn_list * and use methods for clarity and typesafety.
2726 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
2728 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
2729 redundant check on INSN_P (insns): this cannot hold, as "insns" is
2730 an INSN_LIST, not an insn.
2731 (reverse_equiv_p): Strengthen local "insns" from rtx to
2732 rtx_insn_list * and use methods for clarity and typesafety.
2733 (contains_reloaded_insn_p): Likewise for local "list".
2735 2014-09-09 Jiong Wang <jiong.wang@arm.com>
2737 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
2738 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
2739 (arm_builtin_vectorized_function): Likewise.
2740 * config/arm/arm_neon_builtins.def: New macro for copysignf.
2741 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
2743 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
2745 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
2746 * builtins.h (default_target_builtins): Likewise.
2747 * gcse.h (default_target_gcse): Likewise.
2748 * target-globals.h (target_globals): Add a destructor. Convert
2749 void-pointer fields back to their real type and change from
2750 GTY((atomic)) to GTY((skip)).
2751 (restore_target_globals): Remove casts accordingly.
2752 * target-globals.c (save_target_globals): Use XCNEW rather than
2753 ggc_internal_cleared_alloc to allocate non-GC structures.
2754 Use ggc_cleared_alloc to allocate the target_globals structure
2756 (target_globals::~target_globals): Define.
2758 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2760 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
2761 mnemonic instead of fldmfdd.
2762 * config/arm/arm.c (vfp_output_fstmd): Rename to...
2763 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
2764 Output vpush when address register is SP.
2765 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
2766 (vfp_output_vstmd): ... This.
2767 * config/arm/vfp.md (push_multi_vfp): Update call to
2770 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2772 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
2774 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2776 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
2777 (*sqrtdf2_vfp): Likewise.
2778 (*cmpsf_vfp): Likewise.
2779 (*cmpsf_trap_vfp): Likewise.
2780 (*cmpdf_vfp): Likewise.
2781 (*cmpdf_trap_vfp): Likewise.
2783 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2785 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
2786 (*truncdfsf2_vfp): Likewise.
2787 (*truncsisf2_vfp): Likewise.
2788 (*truncsidf2_vfp): Likewise.
2789 (fixuns_truncsfsi2): Likewise.
2790 (fixuns_truncdfsi2): Likewise.
2791 (*floatsisf2_vfp): Likewise.
2792 (*floatsidf2_vfp): Likewise.
2793 (floatunssisf2): Likewise.
2794 (floatunssidf2): Likewise.
2796 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2798 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
2799 (*muldf3_vfp): Likewise.
2800 (*mulsf3negsf_vfp): Likewise.
2801 (*muldf3negdf_vfp): Likewise.
2802 (*mulsf3addsf_vfp): Likewise.
2803 (*muldf3adddf_vfp): Likewise.
2804 (*mulsf3subsf_vfp): Likewise.
2805 (*muldf3subdf_vfp): Likewise.
2806 (*mulsf3negsfaddsf_vfp): Likewise.
2807 (*fmuldf3negdfadddf_vfp): Likewise.
2808 (*mulsf3negsfsubsf_vfp): Likewise.
2809 (*muldf3negdfsubdf_vfp): Likewise.
2811 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2813 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
2814 (*absdf2_vfp): Likewise.
2815 (*negsf2_vfp): Likewise.
2816 (*negdf2_vfp): Likewise.
2817 (*addsf3_vfp): Likewise.
2818 (*adddf3_vfp): Likewise.
2819 (*subsf3_vfp): Likewise.
2820 (*subdf3_vfp): Likewise.
2821 (*divsf3_vfp): Likewise.
2822 (*divdf3_vfp): Likewise.
2824 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2826 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
2828 (arm_print_operand): Don't convert real values to decimal
2829 representation in default case.
2830 (fp_immediate_constant): Delete.
2831 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
2832 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
2834 (*thumb2_movsi_vfp): Likewise.
2835 (*movdi_vfp): Likewise.
2836 (*movdi_vfp_cortexa8): Likewise.
2837 (*movhf_vfp_neon): Likewise.
2838 (*movhf_vfp): Likewise.
2839 (*movsf_vfp): Likewise.
2840 (*thumb2_movsf_vfp): Likewise.
2841 (*movdf_vfp): Likewise.
2842 (*thumb2_movdf_vfp): Likewise.
2843 (*movsfcc_vfp): Likewise.
2844 (*thumb2_movsfcc_vfp): Likewise.
2845 (*movdfcc_vfp): Likewise.
2846 (*thumb2_movdfcc_vfp): Likewise.
2848 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
2850 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
2854 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2857 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
2858 Use qualifier_immediate for last operand. Rename to...
2859 (aarch64_types_ternop_lane_qualifiers): ... This.
2860 (TYPES_QUADOP): Rename to...
2861 (TYPES_TERNOP_LANE): ... This.
2862 (aarch64_simd_expand_args): Return const0_rtx when encountering user
2863 error. Change return of 0 to return of NULL_RTX.
2864 (aarch64_crc32_expand_builtin): Likewise.
2865 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
2866 ICE when expanding unknown builtin.
2867 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
2868 TERNOP_LANE qualifiers.
2869 (sqdmlsl_lane): Likewise.
2870 (sqdmlal_laneq): Likewise.
2871 (sqdmlsl_laneq): Likewise.
2872 (sqdmlal2_lane): Likewise.
2873 (sqdmlsl2_lane): Likewise.
2874 (sqdmlal2_laneq): Likewise.
2875 (sqdmlsl2_laneq): Likewise.
2877 2014-09-09 Nick Clifton <nickc@redhat.com>
2879 * doc/invoke.texi (Optimization Options): Add missing @gol to the
2881 (S/390 and zSeries Options): Remove superfluous word from the
2882 description of the -mhotpatch option.
2884 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
2886 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
2887 * ira.c: #include "shrink-wrap.h"
2888 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
2889 * ifcvt.c: #include "shrink-wrap.h"
2890 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
2892 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
2894 * common/config/picochip/picochip-common.c: Remove.
2895 * config.gcc: Remove support for picochip.
2896 * config/picochip/constraints.md: Remove.
2897 * config/picochip/dfa_space.md: Remove.
2898 * config/picochip/dfa_speed.md: Remove.
2899 * config/picochip/picochip-protos.h: Remove.
2900 * config/picochip/picochip.c: Remove.
2901 * config/picochip/picochip.h: Remove.
2902 * config/picochip/picochip.md: Remove.
2903 * config/picochip/picochip.opt: Remove.
2904 * config/picochip/predicates.md: Remove.
2905 * config/picochip/t-picochip: Remove.
2906 * doc/md.texi: Don't document picochi.
2908 2014-09-08 David Malcolm <dmalcolm@redhat.com>
2910 * basic-block.h (control_flow_insn_p): Strengthen param from
2911 const_rtx to const rtx_insn *.
2912 * cfgbuild.c (control_flow_insn_p): Likewise.
2914 2014-09-08 David Malcolm <dmalcolm@redhat.com>
2916 * gcse.c (modify_mem_list): Strengthen this variable from
2917 vec<rtx> * to vec<rtx_insn *> *.
2918 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
2920 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
2921 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
2922 (record_last_mem_set_info): Strengthen param "insn" from rtx to
2924 (record_last_set_info): Likewise for local "last_set_insn".
2926 2014-09-08 DJ Delorie <dj@redhat.com>
2928 * doc/invoke.texi (MSP430 Options): Add -minrt.
2930 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2932 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
2933 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
2934 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
2936 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
2938 (adjust_splat): New function.
2939 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
2940 (dump_swap_insn_table): Add case for SH_SPLAT.
2942 2014-09-08 Richard Biener <rguenther@suse.de>
2945 * tree-inline.c (copy_loops): The source loop header should
2947 (tree_function_versioning): If loops need fixup after removing
2948 unreachable blocks fix them.
2949 * omp-low.c (simd_clone_adjust): Do not add incr block to
2950 loop under construction.
2952 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
2954 * config/aarch64/aarch64-builtins.c
2955 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
2957 2014-09-08 Joseph Myers <joseph@codesourcery.com>
2959 * config/i386/cygming.h (TF_SIZE): Remove.
2960 * config/i386/darwin.h (TF_SIZE): Remove.
2961 * config/i386/dragonfly.h (TF_SIZE): Remove.
2962 * config/i386/freebsd.h (TF_SIZE): Remove.
2963 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
2964 * config/i386/openbsdelf.h (TF_SIZE): Remove.
2965 * config/i386/sol2.h (TF_SIZE): Remove.
2966 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
2967 * config/ia64/linux.h (TF_SIZE): Remove.
2968 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
2969 * doc/tm.texi: Regenerate.
2970 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
2972 2014-09-08 Joseph Myers <joseph@codesourcery.com>
2974 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
2976 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
2978 * doc/tm.texi: Regenerate.
2979 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
2981 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
2982 * config/cris/cris.h (__make_dp): Remove.
2984 2014-09-08 Richard Biener <rguenther@suse.de>
2987 * cfgloop.c (mark_loop_for_removal): Track former header
2989 * cfgloop.h (struct loop): Add former_header member unconditionally.
2990 * loop-init.c (fix_loop_structure): Enable bogus loop removal
2991 diagnostic unconditionally.
2993 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
2996 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
2997 constraint for operand0 and remove write only modifier from operand3.
2999 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
3001 PR rtl-optimization/62208
3002 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
3003 rather than const0_rtx in eq/ne-xor simplifications.
3005 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
3007 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
3008 (arc_output_mi_thunk): Likewise.
3010 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
3011 arguments to silence bogus warning.
3013 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
3016 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
3018 2014-09-06 Tom de Vries <tom@codesourcery.com>
3020 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
3021 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
3022 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
3024 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
3027 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
3028 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
3030 2014-09-05 Easwaran Raman <eraman@google.com>
3032 PR rtl-optimization/62146
3033 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
3034 hoisted instruction unconditional.
3036 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
3039 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
3040 Do not allow any_mask_operand for operands[2].
3041 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
3043 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3045 * config/arc/arc.c (arc_print_operand): Use insn method of
3046 final_sequence for type-safety.
3047 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
3048 "insn" from rtx to rtx_insn *.
3049 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
3050 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
3051 Likewise for locals "branch", "label".
3052 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
3053 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
3054 (same_cmp_following_p): Likewise for locals "i2", "i3".
3055 * config/sh/sh_optimize_sett_clrt.cc
3056 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
3057 param "cbranch_insn".
3058 * function.c (convert_jumps_to_returns): Likewis for local "jump".
3059 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
3060 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
3062 (condjump_p): Likewise.
3063 (condjump_in_parallel_p): Likewise.
3065 (any_uncondjump_p): Likewise.
3066 (any_condjump_p): Likewise.
3067 (condjump_label): Likewise.
3068 (returnjump_p): Strengthen param "insn" from rtx to
3070 (onlyjump_p): Strengthen param "insn" from const_rtx to
3072 (jump_to_label_p): Likewise.
3073 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
3074 (invert_jump): Likewise.
3075 * reorg.c (simplejump_or_return_p): Add checked cast when calling
3077 (get_jump_flags): Strengthen param "insn" from rtx to
3079 (get_branch_condition): Likewise.
3080 (condition_dominates_p): Likewise.
3081 (make_return_insns): Move declaration of local "pat" earlier, to
3082 after we've handled NONJUMP_INSN_P and non-sequences, using its
3083 methods to simplify the code and for type-safety.
3084 * rtl.h (find_constant_src): Strengthen param from const_rtx to
3086 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
3087 (condjump_p): Strengthen param from const_rtx to
3089 (any_condjump_p): Likewise.
3090 (any_uncondjump_p): Likewise.
3092 (condjump_label): Likewise.
3093 (simplejump_p): Likewise.
3094 (returnjump_p): Likewise.
3095 (onlyjump_p): Likewise.
3096 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
3097 (invert_jump): Likewise.
3098 (condjump_in_parallel_p): Strengthen param from const_rtx to
3100 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
3101 to const rtx_insn *.
3102 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
3103 to const rtx_insn *.
3104 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
3106 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3108 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
3109 above the conditional, and convert the check on GET_CODE to a
3110 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
3111 the conditional. Simplify the conditional by using methods of
3114 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3116 * haifa-sched.c (check_clobbered_conditions): Strengthen local
3117 "link" from rtx to rtx_insn_list *, and use its methods for
3118 clarity and type-safety.
3119 (toggle_cancelled_flags): Likewise.
3120 (restore_last_backtrack_point): Likewise.
3121 (queue_to_ready): Use insn method of "link" in one place.
3122 (schedule_block): Strengthen local "link" from rtx to
3123 rtx_insn_list *, and use its methods for clarity and type-safety.
3125 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3127 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
3128 param "insn" from const_rtx to const rtx_insn *.
3129 (sched_get_reverse_condition_uncached): Likewise.
3130 (sched_get_condition_with_rev): Likewise.
3131 (sched_has_condition_p): Likewise.
3132 (sched_insns_conditions_mutex_p): Likewise for both params.
3133 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
3134 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
3135 (setup_insn_reg_uses): Move local "list" to be more tightly
3136 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
3137 its methods for clarity and type-safety.
3138 (sched_analyze_1): Strengthen local "pending" from rtx to
3139 rtx_insn_list *, and local "pending_mem" from rtx to
3140 rtx_expr_list *. Use methods of each for clarity and type-safety.
3141 (sched_analyze_2): Likewise.
3142 (sched_analyze_insn): Likewise.
3144 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
3145 param from const_rtx to const rtx_insn *.
3146 (sched_insns_conditions_mutex_p): Likewise for both params.
3147 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
3150 * system.h (CONST_CAST_RTX_INSN): New macro.
3152 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3154 * recog.c (peep2_attempt): Strengthen return type from rtx to
3156 (peep2_update_life): Likewise for params "last", "prev", removing
3157 a checked cast made redundant by this.
3158 (peephole2_optimize): Likewise for local "last".
3160 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3162 * basic-block.h (set_block_for_insn): Eliminate this macro in
3164 * rtl.h (set_block_for_insn): New inline function, imposing the
3165 requirement that the "insn" param is an rtx_insn *.
3167 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3169 * caller-save.c (setup_save_areas): Strengthen local "insn" from
3171 * final.c (get_call_reg_set_usage): Likewise for first param,
3172 eliminating a checked cast.
3173 * regs.h (get_call_reg_set_usage): Likewise for first param.
3174 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
3175 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
3176 cast, replacing references to "x" with "call_insn" where
3178 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
3179 rtx_insn *, adding a checked cast.
3181 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3183 * output.h (final_scan_insn): Strengthen first param from rtx to
3186 * final.c (final_scan_insn): Likewise, renaming it back from
3187 "uncast_insn" to "insn", eliminating the checked cast.
3189 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
3190 "vec" with an rtx_sequence * "seq", taking a copy of
3191 "final_sequence", and using methods of "seq" for clarity, and for
3192 type-safety in the calls to final_scan_insn.
3193 * config/mips/mips.c (mips_output_conditional_branch): Use methods
3194 of "final_sequence" for clarity, and for type-safety in the call to
3196 * config/sh/sh.c (print_slot): Strengthen param from rtx to
3197 rtx_sequence * and rename from "insn" to "seq".
3199 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3201 * jump.c (delete_related_insns): Introduce a new local "table" by
3202 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
3203 get_labels method of "table" to simplify access to the labels in
3206 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3208 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
3209 f_minmaxs, f_minmaxd types.
3211 2014-09-05 Richard Biener <rguenther@suse.de>
3213 * cfgloop.c (mark_loop_for_removal): Record former header
3214 when ENABLE_CHECKING.
3215 * cfgloop.h (strut loop): Add former_header member when
3217 * loop-init.c (fix_loop_structure): Sanity check loops
3218 marked for removal if they re-appeared.
3220 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3222 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
3223 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
3225 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
3226 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
3227 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
3228 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
3229 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
3230 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
3231 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
3232 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
3233 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
3234 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
3235 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
3236 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
3237 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
3238 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
3239 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
3240 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
3241 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
3242 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
3243 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
3244 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
3245 with int{32,16,8}_t.
3247 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3249 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
3250 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
3251 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
3252 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
3253 Remove temporary __asm__ and reimplement.
3255 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3257 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
3258 handling cmge, cmgt, cmeq, cmtst.
3260 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
3261 cmlt, cmgeu, cmgtu, cmtst): Remove.
3263 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
3264 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
3265 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
3266 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
3268 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3270 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
3272 (aarch64_fold_builtin): Update pattern for cmtst.
3274 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
3277 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
3279 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
3280 Switch operands, separate out more cases, refactor.
3282 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
3284 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
3285 argument; rename old version to...
3286 (aarch64_const_vec_all_same_in_range_p): ...this.
3287 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
3289 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
3291 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3293 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
3294 Remove qualifier_const_pointer, update comment.
3296 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3298 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
3300 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3302 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
3303 varargs with pointer parameter.
3304 (aarch64_simd_expand_builtin): pass pointer into previous.
3306 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3308 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
3311 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3313 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
3314 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
3315 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
3316 Replace temporary asm with call to builtin.
3317 (vrbit_p8, vrbitq_p8): New functions.
3319 2014-09-05 Richard Biener <rguenther@suse.de>
3321 * cfgloop.c (mark_loop_for_removal): New function.
3322 * cfgloop.h (mark_loop_for_removal): Declare.
3323 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
3324 (merge_blocks): Likewise.
3325 (duplicate_block): Likewise.
3326 * except.c (sjlj_emit_dispatch_table): Likewise.
3327 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
3328 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
3329 (thread_through_loop_header): Likewise.
3331 2014-09-05 Richard Biener <rguenther@suse.de>
3334 * fold-const.c (try_move_mult_to_index): Remove.
3335 (fold_binary_loc): Do not call it.
3336 * tree-data-ref.c (dr_analyze_indices): Strip conversions
3337 from the base object again.
3339 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
3341 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
3344 2014-09-05 Bin Cheng <bin.cheng@arm.com>
3347 * config/arm/arm.md (setmem): New pattern.
3348 * config/arm/arm-protos.h (struct tune_params): New fields.
3349 (arm_gen_setmem): New prototype.
3350 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
3351 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
3352 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
3353 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
3354 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
3355 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
3356 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
3357 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
3358 (arm_const_inline_cost): New function.
3359 (arm_block_set_max_insns): New function.
3360 (arm_block_set_non_vect_profit_p): New function.
3361 (arm_block_set_vect_profit_p): New function.
3362 (arm_block_set_unaligned_vect): New function.
3363 (arm_block_set_aligned_vect): New function.
3364 (arm_block_set_unaligned_non_vect): New function.
3365 (arm_block_set_aligned_non_vect): New function.
3366 (arm_block_set_vect, arm_gen_setmem): New functions.
3368 2014-09-05 Bin Cheng <bin.cheng@arm.com>
3370 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
3372 2014-09-05 Bin Cheng <bin.cheng@arm.com>
3374 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
3376 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
3378 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
3380 * valtrack.h: Adjust.
3382 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
3384 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
3386 (emit_jump_insn_before_noloc): Likewise.
3387 (emit_call_insn_before_noloc): Likewise.
3388 (emit_label_before): Likewise.
3389 (emit_label_after): Likewise.
3390 (emit_insn_before_setloc): Likewise.
3391 (emit_jump_insn_before_setloc): Likewise.
3392 (emit_call_insn_before_setloc): Likewise.
3393 (emit_call_insn_before): Likewise.
3396 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3398 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
3399 rtx_insn *, eliminating a checked cast.
3401 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3403 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
3404 const_rtx to const rtx_insn *.
3405 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
3408 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3410 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
3411 fixup_args_size_notes.
3412 * expr.c (fixup_args_size_notes): Strengthen first two params from
3413 rtx to rtx_insn *, eliminating a checked cast.
3414 * rtl.h (fixup_args_size_notes): Strengthen first two params from
3417 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3419 * haifa-sched.c (get_ready_element): Strengthen return type from
3421 * sched-int.h (get_ready_element): Likewise.
3423 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
3426 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
3427 indexed_or_indirect_operand instead of memory_operand.
3428 (floatsi<mode>2_lfiwzx_mem): Ditto.
3430 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
3432 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
3433 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
3434 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
3436 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
3438 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
3440 (get_last_nonnote_insn): Likewise.
3441 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
3442 * resource.c (find_basic_block): Likewise.
3444 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
3447 2014-09-04 David Malcolm <dmalcolm@redhat.com>
3449 * genattr.c (main): Within the prototype of insn_latency written
3450 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
3451 * genautomata.c (output_internal_maximal_insn_latency_func):
3452 Within the implementation of insn_latency written out to
3453 insn-automata.c, strengthen both params from rtx to rtx_insn *,
3454 eliminating a pair of checked casts.
3456 2014-09-04 David Malcolm <dmalcolm@redhat.com>
3458 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
3461 * rtl.h (eh_returnjump_p): Likewise.
3463 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
3465 * Makefile.in (TAGS): Handle constructs in timevar.def.
3467 2014-09-04 Guozhi Wei <carrot@google.com>
3470 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
3471 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
3472 it into two patterns.
3473 (move_lo_quad_internal_be_<mode>): Likewise.
3475 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3477 * doc/options.texi: Document that Var and Init are required if CPP
3479 * optc-gen.awk: Require Var and Init if CPP is given.
3480 * common.opt (Wpedantic): Use Init.
3482 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3484 * config/rs6000/rs6000.c (special_handling_values): Add
3486 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
3487 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
3488 as swappable with special handling SH_EXTRACT. Remove
3489 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
3491 (adjust_extract): New function.
3492 (handle_special_swappables): Add default to case statement; add
3493 case for SH_EXTRACT that calls adjust_extract.
3494 (dump_swap_insn_table): Handle SH_EXTRACT.
3496 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3498 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
3499 selection of 0th memory doubleword, regardless of endianness.
3501 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3503 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
3505 2014-09-04 Alan Modra <amodra@gmail.com>
3508 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
3511 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
3513 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
3514 * targhooks.c (default_dwarf_frame_reg_mode): New function.
3515 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
3516 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
3517 * doc/tm.texi: Regenerate.
3518 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
3519 selection logic to default_dwarf_frame_reg_mode.
3521 2014-09-03 Marek Polacek <polacek@redhat.com>
3523 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
3526 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
3528 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
3529 the automodified register.
3531 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
3533 * output.h (get_some_local_dynamic_name): Declare.
3534 * final.c (some_local_dynamic_name): New variable.
3535 (get_some_local_dynamic_name): New function.
3536 (final_end_function): Clear some_local_dynamic_name.
3537 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
3538 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
3539 (print_operand): Report an error if '%&' is used inappropriately.
3540 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
3541 (get_some_local_dynamic_name_1): Delete.
3542 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
3543 (rs6000_get_some_local_dynamic_name): Delete.
3544 (rs6000_get_some_local_dynamic_name_1): Delete.
3545 (print_operand): Report an error if '%&' is used inappropriately.
3546 * config/s390/s390.c (machine_function): Remove some_ld_name.
3547 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
3548 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
3549 * config/sparc/sparc.c: Include rtl-iter.h.
3550 (machine_function): Remove some_ld_name.
3551 (sparc_print_operand): Report an error if '%&' is used inappropriately.
3552 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
3554 2014-09-03 Richard Henderson <rth@redhat.com>
3556 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
3557 (aarch64_popwb_pair_reg): Remove.
3558 (aarch64_set_frame_expr): Remove.
3559 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
3560 the restore ops performed by the insns generated.
3561 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
3562 insn. Perform the calls_eh_return addition later; do not attempt to
3563 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
3564 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
3565 special markup at all. Load cfun->machine->frame.hard_fp_offset
3566 into a local variable.
3567 (aarch64_frame_pointer_required): Don't check calls_alloca.
3569 2014-09-03 Richard Biener <rguenther@suse.de>
3571 * opts.c (default_options_optimization): Adjust
3572 max-combine-insns to 2 for -Og.
3574 2014-09-03 Martin Jambor <mjambor@suse.cz>
3577 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
3578 pass-trough jump functions correctly.
3580 2014-09-03 Martin Jambor <mjambor@suse.cz>
3583 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
3584 created replacements in ascending order of offsets.
3585 (known_aggs_to_agg_replacement_list): Likewise.
3587 2014-09-03 Martin Liska <mliska@suse.cz>
3589 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
3590 is set to set uninitialized value for vnresult.
3592 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3594 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
3595 for TARGET_MUST_PASS_IN_STACK.
3597 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3599 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
3600 for TARGET_ARG_PARTIAL_BYTES.
3602 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3604 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
3605 instructions for varargs implementation.
3606 (nds32_expand_epilogue): Emit stack adjustment instructions for
3607 varargs implementation.
3609 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3611 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
3612 optimization detection.
3614 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3616 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
3618 (nds32_function_arg_advance): Deal with nameless arguments.
3619 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
3620 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
3621 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
3623 2014-09-03 Richard Biener <rguenther@suse.de>
3625 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
3626 (struct bb_bitmap_sets): Remove deferred member.
3627 (BB_DEFERRED): Remove.
3628 (defer_or_phi_translate_block): Remove.
3629 (compute_antic_aux): Remove deferring of blocks, assert
3630 proper iteration order.
3631 (compute_antic): Do not set BB_DEFERRED.
3632 (eliminate): Allocate el_avail of proper size initially.
3634 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3636 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
3637 according to the value of crtl->args.pretend_args_size.
3639 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3641 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
3642 varargs information.
3644 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3646 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
3647 implementation for TARGET_SETUP_INCOMING_VARARGS.
3648 (nds32_strict_argument_naming): Refine comment.
3649 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
3650 Define for future implementation.
3652 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
3654 * config/i386/adxintrin.h (_subborrow_u32): New.
3655 (_addcarry_u32): Ditto.
3656 (_subborrow_u64): Ditto.
3657 (_addcarry_u64): Ditto.
3658 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
3660 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
3661 __builtin_ia32_sbb_u64
3663 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3665 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
3667 (nds32_function_arg_advance): Likewise.
3668 (nds32_init_cumulative_args): Likewise.
3669 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
3670 (NDS32_FIRST_GPR_REGNUM): Define.
3671 (NDS32_LAST_GPR_REGNUM): Define.
3672 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
3673 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
3674 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
3675 (machine_function): Use GRP-specific stuff.
3677 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3679 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
3680 (nds32_expand_epilogue): Likewise.
3681 (nds32_expand_prologue_v3push): Likewise.
3682 (nds32_expand_epilogue_v3pop): Likewise.
3684 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3686 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
3687 v3push/v3pop for variadic function.
3688 * config/nds32/nds32.md (prologue, epilogue): Likewise.
3690 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3692 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
3693 Check rtx for varargs implementation.
3694 (nds32_output_stack_pop): Likewise.
3695 * config/nds32/nds32-protos.h: Have a rtx argument for
3696 nds32_output_stack_push and nds32_output_stack_pop.
3697 * config/nds32/nds32.md: Likewise.
3699 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3701 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
3702 to check if FUNC is an interrupt service routine.
3703 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
3705 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3707 * config/nds32/nds32.h (machine_function): Add some fields for variadic
3708 arguments implementation.
3710 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3712 * config/nds32/nds32-predicates.c
3713 (nds32_valid_stack_push_pop): Rename to ...
3714 (nds32_valid_stack_push_pop_p): ... this.
3715 * config/nds32/nds32-protos.h: Likewise.
3716 * config/nds32/predicates.md: Likewise.
3718 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3720 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
3721 (nds32_emit_stack_v3push): ... this.
3722 (nds32_gen_stack_v3pop): Rename to ...
3723 (nds32_emit_stack_v3pop): ... this and consider CFA restore
3726 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3728 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
3729 (nds32_emit_stack_push_multiple): ... this.
3730 (nds32_gen_stack_pop_multiple): Rename to ...
3731 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
3734 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3737 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
3738 and add a second splitter to handle the remaining cases.
3740 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3742 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
3744 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
3746 * cfgexpand.c (label_rtx_for_bb): Change type to
3747 hash_map<basic_block, rtx_code_label *> *.
3748 (expand_gimple_basic_block): Adjust.
3749 (pass_expand::execute): Likewise.
3751 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
3753 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
3754 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
3755 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
3756 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
3757 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
3758 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
3759 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
3762 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
3764 * alloc-pool.c: Include coretypes.h.
3765 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
3766 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
3767 hash_set instead of htab.
3768 * ggc-page.c (in_gc): New variable.
3769 (ggc_free): Do nothing if a collection is taking place.
3770 (ggc_collect): Set in_gc appropriately.
3771 * ggc.h (gt_ggc_mx(const char *)): New function.
3772 (gt_pch_nx(const char *)): Likewise.
3773 (gt_ggc_mx(int)): Likewise.
3774 (gt_pch_nx(int)): Likewise.
3775 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
3776 (hash_map::hash_entry::pch_nx): Likewise.
3777 (hash_map::hash_entry::pch_nx_helper): Likewise.
3778 (hash_map::hash_map): Adjust.
3779 (hash_map::create_ggc): New function.
3780 (gt_ggc_mx): Likewise.
3781 (gt_pch_nx): Likewise.
3782 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
3783 (default_hashset_traits::pch_nx): Likewise.
3784 (hash_set::hash_entry::ggc_mx): Likewise.
3785 (hash_set::hash_entry::pch_nx): Likewise.
3786 (hash_set::hash_entry::pch_nx_helper): Likewise.
3787 (hash_set::hash_set): Adjust.
3788 (hash_set::create_ggc): New function.
3789 (hash_set::elements): Likewise.
3790 (gt_ggc_mx): Likewise.
3791 (gt_pch_nx): Likewise.
3792 * hash-table.h (hash_table::hash_table): Adjust.
3793 (hash_table::m_ggc): New member.
3794 (hash_table::~hash_table): Adjust.
3795 (hash_table::expand): Likewise.
3796 (hash_table::empty): Likewise.
3797 (gt_ggc_mx): New function.
3798 (hashtab_entry_note_pointers): Likewise.
3799 (gt_pch_nx): Likewise.
3801 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3803 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
3804 built-in definition.
3805 (XVCVUXDDP_SCALE): Likewise.
3806 (XVCVDPSXDS_SCALE): Likewise.
3807 (XVCVDPUXDS_SCALE): Likewise.
3808 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3809 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
3810 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
3811 VSX_BUILTIN_XVCVDPUXDS_SCALE.
3812 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
3814 * config/rs6000/rs6000.c (real.h): New include.
3815 (rs6000_scale_v2df): New function.
3816 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
3817 (UNSPEC_VSX_XVCVUXDDP): Likewise.
3818 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
3819 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
3820 (vsx_xvcvsxddp_scale): New define_expand.
3821 (vsx_xvcvsxddp): New define_insn.
3822 (vsx_xvcvuxddp_scale): New define_expand.
3823 (vsx_xvcvuxddp): New define_insn.
3824 (vsx_xvcvdpsxds_scale): New define_expand.
3825 (vsx_xvcvdpsxds): New define_insn.
3826 (vsx_xvcvdpuxds_scale): New define_expand.
3827 (vsx_xvcvdpuxds): New define_insn.
3828 * doc/extend.texi (vec_ctf): Add new prototypes.
3829 (vec_cts): Likewise.
3830 (vec_ctu): Likewise.
3831 (vec_splat): Likewise.
3832 (vec_div): Likewise.
3833 (vec_mul): Likewise.
3835 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3838 * config/arm/neon.md
3839 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
3840 <v_cmp_result>): New pattern.
3841 * config/arm/iterators.md (NEON_VCVT): New int iterator.
3842 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
3843 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
3844 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
3845 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
3846 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
3848 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3851 * config/arm/iterators.md (FIXUORS): New code iterator.
3852 (VCVT): New int iterator.
3853 (su_optab): New code attribute.
3855 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
3857 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3859 * config/aarch64/predicates.md (aarch64_comparison_operation):
3860 New special predicate.
3861 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
3862 aarch64_comparison_operation instead of matching an operator.
3863 Update operand numbers.
3864 (csinc3<mode>_insn): Likewise.
3865 (*csinv3<mode>_insn): Likewise.
3866 (*csneg3<mode>_insn): Likewise.
3867 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
3868 * config/aarch64/aarch64.c (aarch64_get_condition_code):
3869 Return -1 instead of aborting on invalid condition codes.
3870 (aarch64_print_operand): Update aarch64_get_condition_code callsites
3871 to assert that the returned condition code is valid.
3872 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
3874 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
3876 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
3877 tree.def, and gimple.def
3879 2014-09-02 Jakub Jelinek <jakub@redhat.com>
3880 Balaji V. Iyer <balaji.v.iyer@intel.com>
3881 Igor Zamyatin <igor.zamyatin@intel.com>
3883 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
3884 (__cilkrts_cilk_for_64): Likewise.
3885 * cilk-common.c (declare_cilk_for_builtin): New function.
3886 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
3887 __cilkrts_cilk_for_64 bultins.
3888 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
3890 (cilk_for_32_fndecl): New define.
3891 (cilk_for_64_fndecl): Likewise.
3892 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
3893 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
3894 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
3895 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
3896 GF_OMP_FOR_COMBINED_INTO.
3897 * gimplify.c (gimplify_scan_omp_clauses): Added
3898 OMP_CLAUSE__CILK_FOR_COUNT_ case.
3899 (gimplify_adjust_omp_clauses): Ditto.
3900 (gimplify_omp_for): Added CILK_FOR case.
3901 (gimplify_expr): Ditto.
3902 * omp-low.c: Include cilk.h.
3903 (extract_omp_for_data): Set appropriate kind for
3904 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
3905 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
3906 (create_omp_child_function_name): Added second argument to handle
3908 (cilk_for_check_loop_diff_type): New function.
3909 (expand_cilk_for_call): Likewise.
3910 (expand_cilk_for): Likewise.
3911 (create_omp_child_function): Set cilk_for_count; handle the cases when
3912 it is true; call create_omp_child_function_name with second argument.
3913 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
3914 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
3915 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
3916 * tree-nested.c (convert_nonlocal_omp_clauses): Added
3917 OMP_CLAUSE__CILK_FOR_COUNT_ case.
3918 (convert_local_omp_clauses): Ditto.
3919 * tree-pretty-print.c (dump_omp_clause): Added
3920 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
3921 (dump_generic_node): Added CILK_FOR case.
3922 * tree.c (omp_clause_num_ops): New element
3923 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
3924 (omp_clause_code_name): New element _Cilk_for_count_.
3925 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
3926 * tree.def: Add tree code for CILK_FOR.
3928 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
3930 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
3931 (ppc403-compare): Add "exts with dot" case.
3932 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
3933 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
3934 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
3935 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
3936 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
3937 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
3938 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
3939 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
3940 cell-cmp-microcoded): Similarly.
3941 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
3942 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
3943 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
3944 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
3945 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
3946 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
3947 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
3948 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
3949 (power6-compare): Add "exts with dot" case.
3950 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
3951 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
3952 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
3954 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
3955 if avoiding Cell microcode.
3956 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
3957 (is_cracked_insn): Ditto.
3958 (insn_must_be_first_in_group): Ditto.
3959 * config/rs6000/rs6000.md (dot): Adjust comment.
3960 (cell_micro): Handle exts+dot.
3961 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
3962 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
3963 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
3964 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
3965 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
3966 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
3967 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
3969 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
3971 * config/rs6000/rs6000.md (QHSI): Delete.
3972 (EXTQI, EXTHI, EXTSI): New mode iterators.
3973 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
3974 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
3975 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
3976 9 anonymous instructions, and 8 splitters): Delete.
3977 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
3978 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
3979 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
3980 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
3981 *zero_extendsi<mode>2_dot2): New.
3983 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
3985 * config/rs6000/rs6000.md (any_extend): New code iterator.
3986 (u, su): New code attributes.
3987 (dmode, DMODE): New mode attributes.
3988 (<su>mul<mode>3_highpart): New.
3989 (*<su>mul<mode>3_highpart): New.
3990 (<su>mulsi3_highpart_le): New.
3991 (<su>muldi3_highpart_le): New.
3992 (<su>mulsi3_highpart_64): New.
3993 (<u>mul<mode><dmode>3): New.
3994 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
3996 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
3999 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
4001 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
4002 *mulsi3_internal2, and two splitters): Delete.
4003 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
4005 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
4007 2014-09-02 Richard Biener <rguenther@suse.de>
4009 PR tree-optimization/62695
4010 * tree-ssa-structalias.c (find_func_clobbers): Add missing
4013 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
4016 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
4018 2014-09-01 Andi Kleen <ak@linux.intel.com>
4020 * file-find.c (add_prefix_begin): Add.
4021 (do_add_prefix): Rename from add_prefix with first argument.
4022 (add_prefix): Add new wrapper.
4023 * file-find.h (add_prefix_begin): Add.
4024 * gcc-ar.c (main): Support -B option.
4026 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
4028 * genemit.c: Include dumpfile.h.
4029 (gen_split): Print name of splitter function to dump file.
4031 2014-09-01 Richard Biener <rguenther@suse.de>
4033 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
4034 Use stack auto_vecs for constraint expressions.
4035 (find_func_aliases_for_call): Likewise.
4036 (find_func_aliases): Likewise.
4037 (find_func_clobbers): Likewise.
4039 2014-09-01 Richard Biener <rguenther@suse.de>
4041 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
4042 operands vector in most cases. Remove redundant code.
4044 2014-09-01 Olivier Hainque <hainque@adacore.com>
4046 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
4047 $WIND_BASE instead of designating a harcoded arbitrary home dir.
4048 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
4050 2014-09-01 Richard Biener <rguenther@suse.de>
4052 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
4053 copy_reference_ops_from_call, vn_nary_op_compute_hash,
4054 vn_reference_compute_hash, vn_reference_insert): Remove.
4055 (vn_reference_lookup_call): New function.
4056 * tree-ssa-sccvn.c (vn_reference_compute_hash,
4057 copy_reference_ops_from_ref, copy_reference_ops_from_call,
4058 vn_reference_insert, vn_nary_op_compute_hash): Make static.
4059 (create_reference_ops_from_call): Remove.
4060 (vn_reference_lookup_3): Properly update shared_lookup_references.
4061 (vn_reference_lookup_pieces): Assert that we updated
4062 shared_lookup_references properly.
4063 (vn_reference_lookup): Likewise.
4064 (vn_reference_lookup_call): New function.
4065 (visit_reference_op_call): Use it. Avoid re-building the
4067 (visit_reference_op_load): Remove redundant lookup.
4068 (visit_reference_op_store): Perform special tail-merging work
4069 only when possibly doing tail-merging.
4070 (visit_use): Likewise.
4071 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
4073 2014-09-01 Jakub Jelinek <jakub@redhat.com>
4076 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
4077 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
4078 (find_inc): Revert 2014-08-13 change.
4080 2014-09-01 Marek Polacek <polacek@redhat.com>
4083 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
4084 Change the type of V to unsigned HOST_WIDE_INT.
4086 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
4088 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
4089 the size of byte markers.
4090 (do_shift_rotate): Fix confusion between host, target and marker byte
4092 (verify_symbolic_number_p): Likewise.
4093 (find_bswap_or_nop_1): Likewise.
4094 (find_bswap_or_nop): Likewise.
4096 2014-09-01 Olivier Hainque <hainque@adacore.com>
4098 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
4099 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
4101 2014-09-01 Jakub Jelinek <jakub@redhat.com>
4103 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
4104 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
4105 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
4107 2014-09-01 Yury Gribov <y.gribov@samsung.com>
4111 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
4112 (build_check_stmt): Likewise.
4113 (instrument_strlen_call): Likewise.
4114 (asan_expand_check_ifn): Likewise and fix types.
4115 (maybe_cast_to_ptrmode): New function.
4117 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4119 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
4121 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
4123 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
4125 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
4127 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
4128 prefix to function labels when generating fast indirect calls.
4130 2014-08-30 David Malcolm <dmalcolm@redhat.com>
4134 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
4135 param back from rtx_insn * to rtx. Rename param from "label" to
4136 "label_or_return", reintroducing "label" as an rtx_insn * after
4137 we've ensured it's not a RETURN.
4138 (first_active_target_insn): Likewise for return type and param;
4139 add a checked cast to rtx_insn * once we've ensured "insn" is not
4141 (steal_delay_list_from_target): Convert param "pnew_thread" back
4142 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
4144 (own_thread_p): Convert param "thread" back from an rtx_insn * to
4145 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
4146 cast once we've established we're not dealing with a RETURN,
4147 renaming subsequent uses of "thread" to "thread_insn".
4148 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
4150 (follow_jumps): Convert return type and param "label" from
4151 rtx_insn * back to rtx. Move initialization of "value" to after
4152 the handling for ANY_RETURN_P, adding a checked cast there to
4153 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
4154 rename to "this_label_or_return", reintroducing "this_label" as
4155 an rtx_insn * once we've handled the case where it could be an
4157 (fill_slots_from_thread): Rename param "thread" to
4158 "thread_or_return", converting from an rtx_insn * back to an rtx.
4159 Reintroduce name "thread" as an rtx_insn * local with a checked
4160 cast once we've handled the case of it being an ANY_RETURN_P.
4161 Convert local "new_thread" from an rtx_insn * back to an rtx.
4162 Add a checked cast when assigning to "trial" from "new_thread".
4163 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
4164 checked cast to rtx_insn * from "new_thread" when invoking
4166 (fill_eager_delay_slots): Convert locals "target_label",
4167 "insn_at_target" from rtx_insn * back to rtx.
4168 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
4169 (relax_delay_slots): Convert locals "trial", "target_label" from
4170 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
4171 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
4172 invoking update_block.
4173 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
4174 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
4176 * resource.h (mark_target_live_regs): Undo erroneous conversion
4177 of second param of r214693, converting it back from rtx_insn * to
4178 rtx, since it could be a RETURN.
4180 * resource.c (find_dead_or_set_registers): Similarly, convert
4181 param "jump_target" back from an rtx_insn ** to an rtx *, as we
4182 could be writing back a RETURN. Rename local rtx_insn * "next" to
4183 "next_insn", and introduce "lab_or_return" as a local rtx,
4184 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
4185 (mark_target_live_regs): Undo erroneous conversion
4186 of second param of r214693, converting it back from rtx_insn * to
4187 rtx, since it could be a RETURN. Rename it from "target" to
4188 "target_maybe_return", reintroducing the name "target" as a local
4189 rtx_insn * with a checked cast, after we've handled the case of
4192 2014-08-29 DJ Delorie <dj@redhat.com>
4194 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
4195 pointer size up to a power of two.
4196 * defaults.h (DWARF2_ADDR_SIZE): Round up.
4197 (POINTER_SIZE_UNITS): New, rounded up value.
4198 * dwarf2asm.c (size_of_encoded_value): Use it.
4199 (dw2_output_indirect_constant_1): Likewise.
4200 * expmed.c (init_expmed_one_conv): We now know the sizes of
4202 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
4203 * optabs.c (expand_float): Use precision, not size.
4204 (expand_fix): Likewise.
4205 * simplify-rtx (simplify_unary_operation_1): Likewise.
4206 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4207 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
4208 (default_assemble_integer) Likewise.
4209 (dump_tm_clone_pairs): Likewise.
4210 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
4211 * var-tracking.c (adjust_mems): Allow partial-int modes also.
4212 (prepare_call_arguments): Likewise.
4213 * stor-layout.c (finalize_type_size): Preserve precision.
4214 (layout_type): Use precision, not size.
4216 * expr.c (convert_move): If the target has an explicit converter,
4219 2014-08-29 David Malcolm <dmalcolm@redhat.com>
4221 * gdbinit.in: Skip various inline functions in rtl.h when
4224 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
4227 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
4229 2014-08-29 Richard Biener <rguenther@suse.de>
4231 PR tree-optimization/62291
4232 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
4233 exactly the vector size needed and use quick_push.
4234 (phi_translate_1): Adjust comment.
4235 (valid_in_sets): Remove block argument and remove pointless
4237 (dependent_clean): Adjust for removal of block argument.
4239 (compute_antic_aux): Likewise.
4240 (compute_partial_antic_aux): Likewise.
4242 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
4243 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4244 Anna Tikhonova <anna.tikhonova@intel.com>
4245 Ilya Tocar <ilya.tocar@intel.com>
4246 Andrey Turetskiy <andrey.turetskiy@intel.com>
4247 Ilya Verbin <ilya.verbin@intel.com>
4248 Kirill Yukhin <kirill.yukhin@intel.com>
4249 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4251 * config/i386/sse.md
4252 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
4253 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
4254 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
4255 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
4257 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
4258 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4259 Anna Tikhonova <anna.tikhonova@intel.com>
4260 Ilya Tocar <ilya.tocar@intel.com>
4261 Andrey Turetskiy <andrey.turetskiy@intel.com>
4262 Ilya Verbin <ilya.verbin@intel.com>
4263 Kirill Yukhin <kirill.yukhin@intel.com>
4264 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4266 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
4267 * config/i386/sse.md
4268 (define_mode_iterator VI4_128_8_256): New.
4269 (define_mode_iterator VI2_128_4_256): Ditto.
4270 (define_mode_iterator PMOV_DST_MODE): Rename into
4271 (define_mode_iterator PMOV_DST_MODE_1): this.
4272 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
4273 Use PMOV_DST_MODE_1 mode iterator.
4274 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
4276 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
4278 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
4279 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
4280 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
4281 (define_mode_iterator PMOV_DST_MODE_2): New.
4282 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
4283 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
4284 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
4286 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
4287 (define_mode_attr pmov_dst_3): Ditto.
4288 (define_mode_attr pmov_dst_zeroed_3): Ditto.
4289 (define_mode_attr pmov_suff_3): Ditto.
4290 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
4291 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
4292 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
4293 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
4294 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
4295 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
4296 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
4297 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
4298 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
4299 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
4300 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
4301 (define_mode_attr pmov_dst_4): Ditto.
4302 (define_mode_attr pmov_dst_zeroed_4): Ditto.
4303 (define_mode_attr pmov_suff_4): Ditto.
4304 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
4305 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
4306 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
4307 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
4308 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
4309 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
4310 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
4311 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
4312 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
4313 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
4314 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
4316 2014-08-29 Richard Biener <rguenther@suse.de>
4318 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
4319 NON_LVALUE_EXPR in gimple.
4321 2014-08-29 Richard Biener <rguenther@suse.de>
4324 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
4325 from previous refactoring.
4326 (gimple_fold_builtin_strncpy): Likewise.
4328 2014-08-29 David Malcolm <dmalcolm@redhat.com>
4331 * function.c (assign_parm_setup_reg): Remove erroneous checked
4332 cast to rtx_insn * on result of gen_extend_insn in favor of
4333 introducing a new local rtx "pat".
4335 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4337 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
4339 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
4341 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4343 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
4344 (next_insn): Likewise.
4345 * emit-rtl.c (next_insn): Likewise.
4346 (previous_insn): Likewise.
4347 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
4348 "insn" and "next" from rtx to rtx_insn *.
4349 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
4350 "insn", "insn1", "vliw_start", "prologue_end_note",
4351 "last_insn_in_packet".
4353 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4355 * shrink-wrap.h (active_insn_between): Strengthen both params from
4357 * function.c (active_insn_between): Likewise.
4359 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4361 * genattr.c (main): When writing out insn-attr.h, strengthen param
4362 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
4363 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
4364 writing out the definition of dfa_clear_single_insn_cache to the
4365 generated insn-automata.c
4367 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4369 * resource.h (clear_hashed_info_for_insn): Strengthen param from
4371 (incr_ticks_for_insn): Likewise.
4372 (init_resource_info): Likewise.
4374 * resource.c (init_resource_info): Likewise.
4375 (clear_hashed_info_for_insn): Likewise.
4376 (incr_ticks_for_insn): Likewise.
4378 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
4380 (steal_delay_list_from_target): Use methods of "seq".
4381 (try_merge_delay_insns): Use methods of "merged_insns".
4382 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
4383 (reorg_redirect_jump): Likewise for param "jump".
4385 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4387 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
4389 * config/s390/s390.c (s390_split_branches): Eliminate top-level
4390 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
4392 (s390_mainpool_finish): In three places, split out a local rtx
4393 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
4394 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
4395 and split another local rtx "insn" out into rtx "pat" and
4397 * config/sh/sh.c (output_branchy_insn): Rather than working
4398 directly on operands[9], introduce local rtx_code_label *
4399 variables named "lab" in two places, working on them, and then
4400 assigning them to operands[9], so that the intervening operations
4401 are known by the type system to be on insns.
4403 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4405 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
4408 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
4409 in invocation of INSN_HAS_LOCATION.
4411 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4413 * config/rs6000/altivec.h (vec_xl): New #define.
4414 (vec_xst): Likewise.
4415 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
4416 (XXSPLTD_V2DI): Likewise.
4417 (DIV_V2DI): Likewise.
4418 (UDIV_V2DI): Likewise.
4419 (MUL_V2DI): Likewise.
4420 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4421 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
4422 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
4423 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
4424 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
4425 (UNSPEC_VSX_DIVSD): Likewise.
4426 (UNSPEC_VSX_DIVUD): Likewise.
4427 (UNSPEC_VSX_MULSD): Likewise.
4428 (vsx_mul_v2di): New insn-and-split.
4429 (vsx_div_v2di): Likewise.
4430 (vsx_udiv_v2di): Likewise.
4431 (vsx_xxspltd_<mode>): New insn.
4433 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4435 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
4437 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
4438 (NEXT_INSN): Likewise.
4439 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
4440 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
4442 (no_labels_between_p): Likewise for both params.
4444 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
4445 cast when using NEXT_INSN on operands[2].
4446 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
4447 "insn" from rtx to rtx_insn *, adding a checked cast.
4448 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
4450 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
4452 (arc_text_label): Likewise for param "insn".
4453 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
4455 (arc_ccfsm_record_condition): Likewise for param "jump".
4456 (arc_text_label): Likewise for local "label".
4457 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
4458 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
4459 a method for typesafety. Add a checked cast.
4460 * config/arc/constraints.md (Clb): Add a checked cast when getting
4461 the CODE_LABEL from a LABEL_REF.
4462 * config/arm/arm.c (require_pic_register): Strengthen locals
4463 "seq", "insn" from rtx to rtx_insn *.
4464 (create_fix_barrier): Likewise for locals "selected", "next".
4465 (thumb1_reorg): Likewise for locals "prev", "insn".
4466 (arm_expand_prologue): Likewise for local "last".
4467 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
4469 (thumb2_output_casesi): Likewise for operands[2].
4470 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
4471 strengthen local "insn" from rtx to rtx_insn *.
4472 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
4473 type and param "insn".
4474 (find_prev_insn_start): Likewise.
4475 (hwloop_optimize): Likewise for locals "insn", "last_insn",
4477 (gen_one_bundle): Likewise for loal "t".
4478 (find_load): Likewise for param "insn".
4479 (workaround_speculation): Likewise for locals "insn", "next",
4480 "target", "next_tgt".
4481 * config/c6x/c6x.c (assign_reservations): Likewise for both params
4482 and for locals "insn", "within", "last".
4483 (count_unit_reqs): Likewise for params "head", "tail" and local
4485 (try_rename_operands): Likewise for params "head", "tail".
4486 (reshuffle_units): Likewise for locals "head", "tail", "insn".
4487 (struct c6x_sched_context): Likewise for fields
4488 "last_scheduled_insn", "last_scheduled_iter0".
4489 (init_sched_state): Replace NULL_RTX with NULL.
4490 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
4492 (undo_split_delayed_nonbranch): Likewise for param and for local
4494 (conditionalize_after_sched): Likewise for local "insn".
4495 (bb_earliest_end_cycle): Likewise.
4496 (filter_insns_above): Likewise for locals "insn", "next".
4497 (hwloop_optimize): Remove redundant checked cast.
4498 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
4499 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
4501 (cris_simple_epilogue): Likewise.
4502 (cris_expand_prologue): Likewise.
4503 (cris_expand_epilogue): Likewise.
4504 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
4505 local "insn" from rtx to rtx_insn *.
4506 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
4507 (struct frv_packet_group): Likewise for the elements within array
4508 fields "insns", "sorted", and for field "nop".
4509 (frv_packet): Likewise for the elements within array field
4511 (frv_add_insn_to_packet): Likewise for param "insn".
4512 (frv_insert_nop_in_packet): Likewise for param "insn" and local
4514 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
4515 (frv_sort_insn_group_1): Likewise for local "insn".
4516 (frv_optimize_membar_local): Likewise.
4517 (frv_align_label): Likewise for locals "x", "last", "barrier",
4519 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
4521 (ia64_sched_init): Likewise for local "insn".
4522 (scheduled_good_insn): Likewise for param "last".
4523 (struct _ia64_sched_context): Likewise for field
4524 "last_scheduled_insn".
4525 (ia64_init_sched_context): Replace NULL_RTX with NULL.
4526 (struct bundle_state): Likewise for field "insn".
4527 (issue_nops_and_insn): Likewise for param "insn".
4528 (get_next_important_insn): Likewise for return type and both
4530 (ia64_add_bundle_selector_before): Likewise for param "insn".
4531 (bundling): Likewise for params "prev_head_insn", "tail" and
4532 locals "insn", "next_insn", "b". Eliminate top-level local rtx
4533 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
4534 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
4535 Strengthen final param from rtx to rtx_insn *.
4536 (iq2000_move_1word): Likewise for second param.
4537 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
4538 param "cur_insn" and local "next_insn".
4539 (iq2000_move_1word): Likewise for param "insn".
4540 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
4541 casts when using NEXT_INSN on operands[1].
4542 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
4543 "insn" from rtx to rtx_insn *.
4544 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
4545 "x", introducing local rtx_insn * "insn" for when working with the
4546 CODE_LABEL of the LABEL_REF.
4547 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
4549 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
4551 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
4553 (conditionalize_block): Likewise for return type and param.
4554 (mcore_is_dead): Likewise for param "first" and local "insn".
4555 (emit_new_cond_insn): Likewise for return type.
4556 (conditionalize_block): Likewise for return type, param, and
4557 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
4559 (conditionalize_optimization): Likewise for local "insn".
4560 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
4562 * config/microblaze/microblaze.md: Add checked casts when using
4564 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
4565 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
4566 and rtx_insn * "insn".
4567 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
4568 checked cast when using NEXT_INSN on operands[2].
4569 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
4570 local "insn" from rtx to rtx_insn *.
4571 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
4573 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
4574 Add a checked cast when using NEXT_INSN on operands[1].
4575 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
4577 (pa_output_cbranch): Likewise for final param.
4578 (pa_output_lbranch): Likewise for second param.
4579 (pa_output_bb): Likewise for third param.
4580 (pa_output_bvb): Likewise.
4581 (pa_output_dbra): Likewise for second param.
4582 (pa_output_movb): Likewise.
4583 (pa_output_parallel_movb): Likewise.
4584 (pa_output_parallel_addb): Likewise.
4585 (pa_output_millicode_call): Likewise for first param.
4586 (pa_output_mul_insn): Likewise for second param.
4587 (pa_output_div_insn): Likewise for third param.
4588 (pa_output_mod_insn): Likewise for second param.
4589 (pa_jump_in_call_delay): Likewise for param.
4590 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
4591 (pa_output_div_insn): Likewise.
4592 (pa_output_mod_insn): Likewise.
4593 (pa_output_cbranch): Likewise.
4594 (pa_output_lbranch): Likewise.
4595 (pa_output_bb): Likewise.
4596 (pa_output_bvb): Likewise.
4597 (pa_output_dbra): Likewise.
4598 (pa_output_movb): Likewise.
4599 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
4600 to simplify and for typesafety.
4601 (pa_output_call): Use method of rtx_sequence *.
4602 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
4603 (pa_jump_in_call_delay): Likewise.
4604 (pa_output_parallel_movb): Likewise.
4605 (pa_output_parallel_addb): Likewise.
4606 (pa_following_call): Likewise.
4607 (pa_combine_instructions): Likewise for locals "anchor",
4609 (pa_can_combine_p): Likewise for params "anchor", "floater" and
4610 locals "start", "end".
4611 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
4612 param "insn" and local "local_insn".
4613 (picochip_final_prescan_insn): Likewise for local "local_insn".
4614 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
4616 (uses_TOC): Likewise.
4617 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
4618 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
4619 splitting out to more tightly-scoped locals, 3 as rtx and one as
4621 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
4623 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
4625 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
4627 (fixup_addr_diff_vecs): Likewise.
4628 (reg_unused_after): Likewise for param 2.
4629 (sh_can_redirect_branch): Likewise for both params.
4630 (check_use_sfunc_addr): Likewise for param 1.
4631 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
4632 (find_barrier): Likewise for local "last_got".
4633 (gen_block_redirect): Likewise for return type, param "jump" and
4634 locals "prev", "scan", "next", "insn".
4635 (struct far_branch): Likewise for fields "near_label",
4636 "insert_place", "far_label".
4637 (gen_far_branch): Likewise for local "jump".
4638 (fixup_addr_diff_vecs): Likewise for param "first" and locals
4640 (barrier_align): Likewise for param and for locals "prev", "x".
4641 Introduce local rtx_sequence * "prev_seq" and use insn method for
4642 typesafety and clarity.
4643 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
4644 (get_dest_uid): Likewise for local "dest".
4645 (split_branches): Likewise for locals "next", "beyond", "label",
4646 "block", "far_label". Add checked casts when assigning to
4647 bp->far_label and "far_label".
4648 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
4649 (sequence_insn_p): Likewise.
4650 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
4651 more loop-scoped rtx "insn" when walking LABEL_REFS.
4652 (sh_can_redirect_branch): Strengthen both params from rtx to
4654 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
4655 new local rtx_sequence * "seq" via a dyn_cast, and use a method
4656 for clarity and typesafety.
4657 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
4658 "insn" from rtx to rtx_insn *.
4659 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
4660 when using NEXT_INSN on the CODE_LABEL in operands[2].
4661 (define_insn "casesi_worker_2"): Likewise.
4662 (define_insn "casesi_shift_media"): Likewise.
4663 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
4665 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
4666 Strengthen field "insn" from rtx to rtx_insn *.
4667 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
4668 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
4669 param "start_insn" and local "start_insn".
4670 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
4672 (find_set_of_reg_bb): Likewise for param "insn".
4673 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
4674 (trace_reg_uses): Likewise for param "start_insn".
4675 (sh_treg_combine::cbranch_trace): Likewise for field
4677 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
4679 (sh_treg_combine::record_set_of_reg): Likewise for param
4680 "start_insn" and local "i".
4681 (sh_treg_combine::can_remove_cstore): Likewise for local
4683 (sh_treg_combine::try_optimize_cbranch): Likewise for param
4685 (sh_treg_combine::execute): Likewise for local "i".
4686 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
4688 (sparc_check_64): Likewise for second param.
4689 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
4690 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
4691 dyn_cast, using its insn method for typesafety and clarity.
4692 (empty_delay_slot): Strengthen param "insn" from rtx to
4694 (set_extends): Likewise.
4695 (sparc_check_64): Likewise.
4696 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
4697 for locals "seq", "last_insn".
4698 (combine_bnp): Likewise for param "insn".
4699 (xstormy16_reorg): Likewise for local "insn".
4700 * config/v850/v850.c (substitute_ep_register): Likewise for params
4701 "first_insn", "last_insn" and local "insn".
4702 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
4703 elements of "regs" array, and local "insn".
4704 * except.c (emit_note_eh_region_end): Likewise for param "insn".
4705 * final.c (final_sequence): Strengthen this global from rtx to
4707 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
4709 (final_scan_insn): Update assignment to "final_sequence" to be
4710 from "seq", the cast version of "body", for type-safety.
4711 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
4712 "insns" from rtx to rtx_insn *.
4713 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
4714 * genattr.c (main): When writing out generated insn-attr.h,
4715 strengthen params 1 and 3 of eligible_for_delay,
4716 eligible_for_annul_true, eligible_for_annul_false from rtx to
4718 * genattrtab.c (write_eligible_delay): Likewise when writing out
4719 generated insn-attrtab.c; also local "insn" the generated
4721 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
4723 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
4724 "start_label" from rtx to rtx_insn *.
4725 * ira.c (decrease_live_ranges_number): Likewise for local "p".
4726 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
4727 "insns" and local "insn".
4728 (validate_equiv_mem): Likewise for param "start" and local "insn".
4729 (memref_used_between_p): Likewise for params "start", "end" and
4731 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
4733 * loop-doloop.c (doloop_optimize): Within region guarded by
4734 INSN_P (doloop_pat), introduce a new local rtx_insn *
4735 "doloop_insn" via a checked cast, and use it for typesafety,
4736 eventually writing the value back into doloop_pat.
4737 * output.h (final_sequence): Strengthen this global from rtx to
4739 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
4740 reintroducing "insn" as an rtx_insn * via a checked cast.
4741 Strengthen param "attempt" and local "new_insn"from rtx to
4743 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
4745 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
4746 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
4747 "p" in favor of more tightly-scoped replacements, sometimes rtx
4748 and sometimes rtx_insn *, as appropriate.
4749 (delete_output_reload): Eliminate top-level rtx "i1", splitting
4750 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
4751 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
4752 local "trial" from rtx to rtx_insn *.
4753 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
4754 rtx to rtx_insn *. Strenghten local "pat" from rtx to
4755 rtx_sequence * and use methods for clarity and typesafety.
4756 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
4757 rtx to rtx_insn *. Strenghten local "li" from rtx to
4758 rtx_insn_list * and use its methods for clarity and typesafety.
4759 (steal_delay_list_from_target): Strengthen param "insn" from rtx
4761 (steal_delay_list_from_fallthrough): Likewise.
4762 (try_merge_delay_insns): Likewise for param "thread" and locals
4763 "trial", "next_trial", "delay_insn".
4764 (redundant_insn): Likewise for param "target" and local "trial".
4765 (own_thread_p): Likewise for param "thread" and locals
4766 "active_insn", "insn".
4767 (get_label_before): Likewise for param "insn".
4768 (fill_simple_delay_slots): Likewise for local "new_label"; use
4769 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
4770 (label_before_next_insn): Strengthen return type and local "insn"
4771 from rtx to rtx_insn *.
4772 (relax_delay_slots): Likewise for locals "other", "tmp".
4773 (make_return_insns): Likewise for param "first" and locals "insn",
4774 "jump_insn", "prev". Move declaration of "pat" to its assignment
4775 and strengthen from rtx to rtx_sequence *. Use its methods for
4776 clarity and typesafety.
4777 * rtlanal.c (no_labels_between_p): Strengthen params from
4778 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
4780 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
4781 from const_rtx to const rtx_insn *.
4782 (reg_set_between_p): Rename param "from_insn" to
4783 "uncast_from_insn", and reintroduce "from_insn" as a
4784 const rtx_insn * via a checked cast.
4785 (modified_between_p): Likewise for param "start" as "uncast_start".
4786 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
4787 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
4788 "tmp", head" from rtx to rtx_insn *.
4789 (recompute_rev_top_order): Likewise for local "insn".
4790 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
4791 * store-motion.c (build_store_vectors): Likewise for local "insn".
4792 Strengthen local "st" from rtx to rtx_insn_list * and use methods
4793 for clarity and typesafety.
4794 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
4796 (computation_cost): Likewise for local "seq".
4797 (get_address_cost): Likewise.
4799 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4801 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
4803 (label_is_jump_target_p): Likewise for second param.
4805 * rtlanal.c (tablejump_p): Likewise for param "insn".
4806 (label_is_jump_target_p): Likewise for param "jump_insn".
4808 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4810 * rtl.h (find_first_parameter_load): Strengthen return type and
4811 both params from rtx to rtx_insn *.
4812 * rtlanal.c (find_first_parameter_load): Strengthen return type,
4813 both params and locals "before", "first_set" from rtx to
4814 rtx_insn *. Remove now-redundant cast.
4815 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
4817 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4819 * rtl.h (find_last_value): Delete.
4820 * rtlanal.c (find_last_value): Delete.
4822 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4824 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
4825 from rtx to rtx_insn *.
4826 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
4827 rtx "note" with new local rtx_insn * "new_head" when calculating
4828 head insn of new basic block.
4829 * combine.c (combine_split_insns): Strengthen return type and local
4830 "ret" from rtx to rtx_insn *.
4831 (likely_spilled_retval_p): Likewise for locals "use" and "p".
4832 (try_combine): Eliminate local "m_split", splitting into new
4833 locals "m_split_insn" and "m_split_pat".
4834 (find_split_point): Strengthen local "seq" from rtx into
4836 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
4837 locals "label", "branch".
4838 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
4840 (define_expand "umulsi3_highpart"): Likewise for local "insn".
4841 * dse.c (note_add_store_info): Likewise for fields "first",
4843 (note_add_store): Likewise for local "insn".
4844 (emit_inc_dec_insn_before): Likewise for locals "insn",
4846 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
4847 (replace_read): Likewise for locals "insns", "this_insn".
4848 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
4849 (notice_eh_throw): Likewise for param "insn".
4850 (before_next_cfi_note): Likewise for return type, param, and local
4852 (connect_traces): Likewise for local "note".
4853 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
4854 (verify_rtl_sharing): Likewise.
4855 (unshare_all_rtl_in_chain): Likewise for param "insn".
4856 (get_first_nonnote_insn): Likewise for local "insn".
4857 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
4858 "seq" and use its methods to clarify things.
4859 (next_insn): Strengthen return type from rtx to rtx_insn *.
4860 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
4861 local rtx_insn * using a checked cast, dropping a checked cast
4862 made redundant by this change. Use a cast to and method of
4863 rtx_sequence to clarify the code.
4864 (previous_insn): Rename param "insn" to "uncast_insn" and
4865 reintroduce "insn" as a local rtx_insn * using a checked cast,
4866 dropping a checked cast made redundant by this change. Use a cast
4867 to and method of rtx_sequence to clarify the code.
4868 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
4869 reintroduce "insn" as a local rtx_insn * using a checked cast,
4870 dropping a checked cast made redundant by this change.
4871 (next_nonnote_insn_bb): Likewise.
4872 (prev_nonnote_insn): Likewise.
4873 (prev_nonnote_insn_bb): Likewise.
4874 (next_nondebug_insn): Likewise.
4875 (prev_nondebug_insn): Likewise.
4876 (next_nonnote_nondebug_insn): Likewise.
4877 (prev_nonnote_nondebug_insn): Likewise.
4878 (next_real_insn): Likewise.
4879 (prev_real_insn): Likewise.
4880 (next_active_insn): Likewise.
4881 (prev_active_insn): Likewise.
4882 (next_cc0_user): Likewise. Use rtx_sequence and a method for
4884 (prev_cc0_setter): Likewise.
4885 (try_split): Rename param "trial" to "uncast_trial" and
4886 reintroduce "insn" as a local rtx_insn * using a checked cast,
4887 dropping checked casts made redundant by this change.
4888 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
4890 (remove_insn): Rename param "insn" to "uncast_insn" and
4891 reintroduce "insn" as a local rtx_insn * using a checked cast.
4892 (emit_pattern_after_setloc): Likewise for param "after", as
4894 (emit_pattern_after): Likewise. Strengthen local "prev" from
4896 (emit_pattern_before_setloc): Rename param "before" to
4897 "uncast_before" and reintroduce "before" as a local rtx_insn *
4898 using a checked cast. Strengthen locals "first", "last" from
4900 (emit_pattern_before): Likewise rename/cast param "before" to
4901 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
4902 * except.c (copy_reg_eh_region_note_forward): Strengthen param
4903 "first" and local "insn" from rtx to rtx_insn *.
4904 (copy_reg_eh_region_note_backward): Likewise for param "last"
4906 * expr.c (fixup_args_size_notes): Rename param "last" to
4907 "uncast_last" and reintroduce "last" as a local rtx_insn *
4908 using a checked cast. Strengthen local "insn" from rtx to
4910 * function.c (set_insn_locations): Strengthen param "insn" from
4912 (record_insns): Likewise for param "insns" and local "tmp".
4913 (active_insn_between): Rename param "tail" to
4914 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
4915 using a checked cast.
4916 (thread_prologue_and_epilogue_insns): Split out top-level local
4917 rtx "seq" into three different rtx_insn * locals. Strengthen
4918 local "prologue_seq" from rtx to rtx_insn *.
4919 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
4920 from rtx to rtx_insn *.
4921 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
4922 (priority): Likewise for locals "prev_first", "twin".
4923 (setup_insn_max_reg_pressure): Likewise for param "after".
4924 (sched_setup_bb_reg_pressure_info): Likewise.
4925 (no_real_insns_p): Strengthen params from const_rtx to
4927 (schedule_block): Strengthen local "next_tail" from rtx to
4929 * ifcvt.c (find_active_insn_before): Strengthen return type and
4930 param "insn" from rtx to rtx_insn *.
4931 (find_active_insn_after): Likewise.
4932 (cond_exec_process_insns): Likewise for param "start" and local "insn".
4933 (cond_exec_process_if_block): Likewise for locals "then_start",
4934 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
4935 (noce_process_if_block): Likewise for local "jump".
4936 (merge_if_block): Likewise for two locals named "end".
4937 (cond_exec_find_if_block): Likewise for local "last_insn".
4938 * jump.c (delete_related_insns): Rename param "insn" to
4939 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
4940 checked cast. Strengthen local "p" from rtx to rtx_insn *.
4941 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
4943 (split_reg): Likewise.
4944 * lra.c (lra_process_new_insns): Likewise.
4945 * modulo-sched.c (permute_partial_schedule): Strengthen param
4946 "last" from rtx to rtx_insn *.
4947 * optabs.c (add_equal_note): Likewise for param "insns" and local
4949 (expand_binop_directly): Add checked casts to rtx_insn * within
4950 NEXT_INSN (pat) uses.
4951 (expand_unop_direct): Likewise.
4952 (maybe_emit_unop_insn): Likewise.
4953 * recog.c (peep2_attempt): Strengthen locals "last",
4954 "before_try", "x" from rtx to rtx_insn *.
4955 * reorg.c (optimize_skip): Strengthen return type and local
4956 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
4957 and locals "trial", "next_trial" from rtx to rtx_insn *.
4958 * resource.c (next_insn_no_annul): Strengthen return type and
4959 param "insn" from rtx to rtx_insn *. Use a cast to and method of
4960 rtx_sequence to clarify the code.
4961 (mark_referenced_resources): Add a checked cast to rtx_insn *
4962 within PREV_INSN (x).
4963 (find_dead_or_set_registers): Strengthen return type, param
4964 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
4965 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
4967 (mark_target_live_regs): Strengthen params "insns" and "target",
4968 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
4969 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
4971 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
4972 from rtx to rtx_insn *.
4973 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
4974 from rtx to rtx_insn *.
4975 (copy_reg_eh_region_note_backward): Likewise.
4976 (unshare_all_rtl_in_chain): Likewise for sole param.
4977 (dump_rtl_slim): Strengthen second and third params from const_rtx
4978 to const rtx_insn *.
4979 * sched-deps.c (sched_free_deps): Strengthen params "head" and
4980 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
4981 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
4982 "next_tail" from rtx to rtx_insn *.
4983 (begin_move_insn): Likewise for local "next".
4984 * sched-int.h (sched_free_deps): Likewise for first and second
4986 (no_real_insns_p): Strengthen both params from const_rtx to
4988 (sched_setup_bb_reg_pressure_info): Strengthen second params from
4990 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
4992 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
4993 and locals "insn", "tail" from const_rtx to const rtx_insn *.
4994 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
4996 (debug_rtl_slim): Strengthen params "first" and "last" from
4997 const_rtx to const rtx_insn *.
4998 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
4999 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
5000 (convert_to_simple_return): Likewise for param "returnjump".
5001 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
5003 (convert_to_simple_return): Likewise for param "returnjump".
5004 * valtrack.c (propagate_for_debug): Likewise for params
5006 * valtrack.h (propagate_for_debug): Likewise for second param.
5008 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5010 * output.h (insn_current_reference_address): Strengthen param
5011 from rtx to rtx_insn *.
5012 * final.c (insn_current_reference_address): Likewise.
5014 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5016 * basic-block.h (inside_basic_block_p): Strengthen param from
5017 const_rtx to const rtx_insn *.
5018 * cfgbuild.c (inside_basic_block_p): Likewise.
5020 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5022 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
5024 (get_trace_info): Likewise for param "insn".
5025 (save_point_p): Likewise.
5026 (maybe_record_trace_start): Likewise for both params.
5027 (maybe_record_trace_start_abnormal): Likewise.
5028 (create_trace_edges): Likewise for sole param and for three of the
5030 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
5031 to rtx_insn *, and update a call to pat->element to pat->insn.
5033 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5035 * function.h (struct expr_status): Convert field "x_forced_labels"
5036 from rtx_expr_list * to rtx_insn_list *.
5038 * cfgbuild.c (make_edges): Convert local "x" from an
5039 rtx_expr_list * to an rtx_insn_list *, replacing use of
5040 "element" method with "insn" method.
5041 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
5042 * except.c (sjlj_emit_dispatch_table): Replace use of
5043 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
5045 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
5046 rtx_expr_list * to an rtx_insn_list *, replacing use of
5047 "element" method with "insn" method.
5048 * reload1.c (set_initial_label_offsets): Likewise for local "x".
5049 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
5050 rtx_insn *, adding a checked cast. Replace use of
5051 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
5053 (expand_label): Likewise for local "label_r".
5055 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5057 * function.h (struct rtl_data): Convert field
5058 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
5060 * rtl.h (remove_node_from_insn_list): New prototype.
5062 * builtins.c (expand_builtin): When prepending to
5063 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
5065 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
5066 to rtx_insn_list *, and use its "insn" method rather than
5068 * cfgrtl.c (delete_insn): Use new function
5069 remove_node_from_insn_list rather than
5070 remove_node_from_expr_list.
5071 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
5072 to rtx_insn_list *, and use its "insn" method rather than
5074 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
5075 * reload1.c (set_initial_label_offsets): Likewise for local "x".
5076 * rtlanal.c (remove_node_from_insn_list): New function, adapted
5077 from remove_node_from_expr_list.
5078 * stmt.c (expand_label): When prepending to
5079 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
5082 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5084 * function.h (struct rtl_data): Strengthen fields "x_return_label"
5085 and "x_naked_return_label" from rtx to rtx_code_label *.
5087 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5089 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
5090 (SET_NEXT_INSN): Likewise.
5091 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
5093 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
5094 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
5095 to split out the SEQUENCE from local "bundle", strengthening the
5096 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
5097 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
5098 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
5099 and the type of the elements of the "slot" array from rtx to
5101 (reorg_split_calls): Likewise for locals "insn" and "next", and
5102 the type of the elements of the "slot" array.
5104 * config/frv/frv.c (frv_nops): Likewise for the elements of this
5106 (frv_function_prologue): Likewise for locals "insn", "next",
5108 (frv_register_nop): Introduce a local "nop_insn" to be the
5109 rtx_insn * containing rtx "nop".
5111 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
5112 used as an insn and sometimes as a pattern, so rename it to
5113 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
5114 using it where dealing with the core insn.
5116 * config/picochip/picochip.c (reorder_var_tracking_notes):
5117 Strengthen locals "insn", "next", "last_insn", "queue",
5118 "next_queue", "prev" from rtx to rtx_insn *.
5120 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
5121 the second param is an rtx_insn ** rather than an rtx **.
5122 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
5123 from rtx to rtx_sequence *, and introduce local named "sequence",
5124 using methods of rtx_sequence to clarify the code.
5125 (remove_insn): Introduce local rtx_sequence * named "sequence" and
5127 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
5128 Rename param "after" to "uncast_after", reintroducing "after" as a
5129 local rtx_insn * with a checked cast.
5130 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
5131 reintroducing "after" as a local rtx_insn * with a checked cast.
5132 Strengthen local "last" from rtx to rtx_insn * and remove the
5133 now-redundant checked casts.
5134 (copy_delay_slot_insn): Strengthen return type and param from rtx
5137 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
5138 "last" from rtx to rtx_insn *.
5140 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5142 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
5143 param from rtx to rtx_insn *.
5145 * emit-rtl.c (copy_delay_slot_insn): Likewise.
5147 * reorg.c (skip_consecutive_labels): Strengthen return type, param
5148 and local "insn" from rtx to rtx_insn *.
5149 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
5150 (unfilled_slots_next): Likewise.
5151 (function_return_label): Strengthen from rtx to rtx_code_label *.
5152 (function_simple_return_label): Likewise.
5153 (first_active_target_insn): Strengthen return type and param from
5155 (find_end_label): Strengthen return type from rtx to
5156 rtx_code_label *; strengthen locals as appropriate.
5157 (emit_delay_sequence): Strengthen return type, param "insn" and
5158 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
5159 and local "li" from rtx to rtx_insn_list *, using methods of
5160 rtx_insn_list for clarity and typesafety.
5161 (add_to_delay_list): Strengthen return type and param "insn" from
5162 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
5163 rtx_insn_list * and use methods of rtx_insn_list.
5164 (delete_from_delay_slot): Strengthen return type, param "insn",
5165 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
5166 Strengthen local "seq" from rtx to rtx_sequence *, and local
5167 "delay_list" from rtx to rtx_insn_list *, using methods of
5168 rtx_sequence for clarity and type-safety.
5169 (delete_scheduled_jump): Add checked cast when invoking
5170 delete_from_delay_slot. Strengthen local "trial" from rtx to
5172 (optimize_skip): Strengthen return type and local "delay_list"
5173 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
5175 (steal_delay_list_from_target): Strengthen return type, param
5176 "delay_list" and local "new_delay_list" from rtx to
5177 rtx_insn_list *. Strengthen param "seq" from rtx to
5178 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
5180 Split out local "temp" into multiple more-tightly scoped locals:
5181 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
5182 of rtx_insn_list and rtx_sequence for clarity and typesafety.
5183 Strengthen locals named "trial" from rtx to rtx_insn *.
5184 (steal_delay_list_from_fallthrough): Strengthen return type and
5185 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
5186 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
5187 Strengthen local "trial" from rtx to rtx_insn *.
5188 (try_merge_delay_insns): Strength local "merged_insns" from rtx
5189 to rtx_insn_list * and use its methods. Strengthen local "pat"
5190 from rtx to rtx_sequence * and use its methods. Strengthen locals
5191 "dtrial" and "new_rtx" from rtx to rtx_insn *.
5192 (get_label_before): Strengthen return type and local "label" from
5194 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
5195 "next_trial", "next", prev". Strengthen local "delay_list" from
5196 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
5198 (follow_jumps): Strengthen return type, param "label" and locals
5199 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
5200 (fill_slots_from_thread): Strengthen return type, param
5201 "delay_list" from rtx to rtx_insn_list *. Strengthen params
5202 "insn", "thread", "opposite_thread" and locals "new_thread",
5203 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
5204 "sequence" from a checked cast to rtx_sequence so that we can call
5205 steal_delay_list_from_target and steal_delay_list_from_fallthrough
5206 with an rtx_sequence *.
5207 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
5208 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
5209 Strengthen local "delay_list" from rtx to rtx_insn_list *.
5210 (relax_delay_slots): Strengthen param "first" and locals "insn",
5211 "next", "trial", "delay_insn", "target_label" from rtx to
5212 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
5213 Introduce a local "trial_seq" for PATTERN (trial) of type
5214 rtx_sequence *, in both cases using methods of rtx_sequence.
5215 (dbr_schedule): Strengthen param "first" and locals "insn",
5216 "next", "epilogue_insn" from rtx to rtx_insn *.
5218 2014-08-28 Richard Biener <rguenther@suse.de>
5220 PR tree-optimization/62283
5221 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5222 Do not peel loops for alignment where the vector loop likely
5223 doesn't run at least VF times.
5225 2014-08-28 Bin Cheng <bin.cheng@arm.com>
5227 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
5228 important_candidates. Consider all important candidates if
5229 IVS doesn't give any result. Remove check on ivs->upto.
5230 (try_add_cand_for): Call iv_ca_add_use only once.
5232 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5233 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5234 Anna Tikhonova <anna.tikhonova@intel.com>
5235 Ilya Tocar <ilya.tocar@intel.com>
5236 Andrey Turetskiy <andrey.turetskiy@intel.com>
5237 Ilya Verbin <ilya.verbin@intel.com>
5238 Kirill Yukhin <kirill.yukhin@intel.com>
5239 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5241 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
5242 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
5244 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
5245 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
5246 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
5247 (define_insn "*mul<mode>3"): Add EVEX version.
5249 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5250 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5251 Anna Tikhonova <anna.tikhonova@intel.com>
5252 Ilya Tocar <ilya.tocar@intel.com>
5253 Andrey Turetskiy <andrey.turetskiy@intel.com>
5254 Ilya Verbin <ilya.verbin@intel.com>
5255 Kirill Yukhin <kirill.yukhin@intel.com>
5256 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5258 * config/i386/sse.md
5259 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
5260 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
5261 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
5262 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
5263 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
5264 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
5265 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
5266 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
5267 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
5268 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
5269 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
5270 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
5271 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
5272 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
5273 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
5274 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
5276 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5277 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5278 Anna Tikhonova <anna.tikhonova@intel.com>
5279 Ilya Tocar <ilya.tocar@intel.com>
5280 Andrey Turetskiy <andrey.turetskiy@intel.com>
5281 Ilya Verbin <ilya.verbin@intel.com>
5282 Kirill Yukhin <kirill.yukhin@intel.com>
5283 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5285 * config/i386/sse.md
5286 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
5287 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
5288 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
5290 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5291 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5292 Anna Tikhonova <anna.tikhonova@intel.com>
5293 Ilya Tocar <ilya.tocar@intel.com>
5294 Andrey Turetskiy <andrey.turetskiy@intel.com>
5295 Ilya Verbin <ilya.verbin@intel.com>
5296 Kirill Yukhin <kirill.yukhin@intel.com>
5297 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5299 * config/i386/sse.md
5300 (define_mode_iterator VI128_256): New.
5301 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
5303 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5304 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5305 Anna Tikhonova <anna.tikhonova@intel.com>
5306 Ilya Tocar <ilya.tocar@intel.com>
5307 Andrey Turetskiy <andrey.turetskiy@intel.com>
5308 Ilya Verbin <ilya.verbin@intel.com>
5309 Kirill Yukhin <kirill.yukhin@intel.com>
5310 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5312 * config/i386/sse.md
5313 (define_mode_iterator VI8_256_512): New.
5314 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
5316 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
5317 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
5319 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
5321 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5323 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
5324 pointer to the cumulative reloc value and return the value for
5326 (compute_reloc_for_rtx): Take a const_rtx. Call
5327 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
5328 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
5329 for_each_rtx for the CONST case.
5331 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5333 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
5334 (mark_constants_in_pattern): ...this new function to iterate over
5336 (mark_constants): Update accordingly.
5338 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5340 * varasm.c: Include rtl-iter.h.
5341 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
5342 Remove the pointer to the cumulative hashval_t and just return
5343 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
5344 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
5345 Accumulate the hashval_ts here instead of const_rtx_hash_1.
5347 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5349 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
5350 Give real type of data parameter. Remove return value.
5351 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
5352 to iterate over subrtxes.
5354 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5356 * var-tracking.c (use_narrower_mode_test): Turn from being a
5357 for_each_rtx callback to being a function that examines each
5359 (adjust_mems): Update accordingly.
5361 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5363 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
5364 callback to being a function that examines each subrtx itself.
5365 Remove handling of null rtxes.
5366 (add_uses): Update accordingly.
5368 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5370 * var-tracking.c: Include rtl-iter.h.
5371 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
5372 to being a function that examines each subrtx itself.
5373 (use_type): Update accordingly.
5375 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5377 * store-motion.c: Include rtl-iter.h.
5378 (extract_mentioned_regs_1): Delete.
5379 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
5380 for_each_rtx to iterate over subrtxes.
5382 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5384 * sel-sched.c: Include rtl-iter.h
5385 (count_occurrences_1): Delete.
5386 (count_occurrences_equiv): Turn rtxes into const_rtxes.
5387 Use FOR_EACH_SUBRTX rather than for_each_rtx.
5389 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5391 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
5392 * rtlanal.c (tls_referenced_p_1): Delete.
5393 (tls_referenced_p): Take a const_rtx rather than an rtx.
5394 Use FOR_EACH_SUBRTX rather than for_each_rtx.
5396 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5398 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
5399 (for_each_inc_dec): Take an rtx rather than an rtx *.
5400 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
5401 (cselib_record_sets): Likewise.
5402 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
5403 (check_for_inc_dec): Likewise.
5404 * rtlanal.c (for_each_inc_dec_ops): Delete.
5405 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
5406 rather than a pointer to the memory address. Replace
5407 for_each_inc_dec_ops argument with separate function and data
5408 arguments. Abort on non-autoinc addresses.
5409 (for_each_inc_dec_find_mem): Delete.
5410 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
5411 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
5413 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5415 * rtl.h (find_all_hard_regs): Declare.
5416 * rtlanal.c (find_all_hard_regs): New function.
5417 (record_hard_reg_uses_1): Delete.
5418 (record_hard_reg_uses): Use find_all_hard_regs.
5420 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5422 * rtl.h (replace_label_data): Delete.
5423 (replace_label): Take the old label, new label and update-nuses flag
5424 as direct arguments. Return void.
5425 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
5426 * rtlanal.c (replace_label): Update interface as above. Handle
5427 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
5428 iterator. Use FOR_EACH_SUBRTX_PTR.
5430 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5432 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
5433 with const_rtx parameters.
5434 * varasm.c (get_pool_constant): Likewise.
5435 * rtlanal.c (rtx_referenced_p_1): Delete.
5436 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
5437 Assert that the rtx we're looking for is nonnull. Allow searches
5438 for constant pool SYMBOL_REFs.
5440 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5442 * reload1.c: Include rtl-iter.h.
5443 (note_reg_elim_costly): Turn from being a for_each_rtx callback
5444 to being a function that examines each subrtx itself.
5445 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
5447 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5449 * regcprop.c (cprop_find_used_regs_1): Delete.
5450 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
5452 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5454 * regcprop.c: Include rtl-iter.h.
5455 (kill_value): Take a const_rtx.
5456 (kill_autoinc_value): Turn from being a for_each_rtx callback
5457 to being a function that examines each subrtx itself.
5458 (copyprop_hardreg_forward_1): Update accordingly.
5460 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5462 * reg-stack.c: Include rtl-iter.h.
5463 (subst_stack_regs_in_debug_insn): Delete.
5464 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
5465 instead of for_each_rtx.
5467 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5469 * lower-subreg.c (find_decomposable_subregs): Turn from being
5470 a for_each_rtx callback to being a function that examines each
5471 subrtx itself. Remove handling of null rtxes.
5472 (decompose_multiword_subregs): Update accordingly.
5474 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5476 * lower-subreg.c (adjust_decomposed_uses): Delete.
5477 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
5478 Remove handling of null rtxes.
5480 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5482 * lower-subreg.c: Include rtl-iter.h.
5483 (resolve_subreg_use): Turn from being a for_each_rtx callback
5484 to being a function that examines each subrtx itself. Remove
5485 handling of null rtxes.
5486 (resolve_reg_notes, resolve_simple_move): Update accordingly.
5487 (decompose_multiword_subregs): Likewise.
5489 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5491 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
5492 to being a function that examines each subrtx itself.
5493 (simplify_using_condition, simplify_using_initial_values): Update
5496 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5498 * loop-iv.c: Include rtl-iter.h.
5499 (find_single_def_src): New function.
5500 (replace_single_def_regs): Turn from being a for_each_rtx callback
5501 to being a function that examines each subrtx itself.
5502 (replace_in_expr, simplify_using_initial_values): Update accordingly.
5504 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5506 * jump.c (eh_returnjump_p_1): Delete.
5507 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
5508 Remove handling of null rtxes.
5510 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5512 * jump.c: Include rtl-iter.h.
5513 (returnjump_p_1): Delete.
5514 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
5515 Remove handling of null rtxes.
5517 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5519 * ira.c: Include rtl-iter.h.
5520 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
5521 to being a function that examines each subrtx itself. Remove
5522 handling of null rtxes.
5523 (update_equiv_regs): Update call accordingly.
5525 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5527 * fwprop.c: Include rtl-iter.h.
5528 (varying_mem_p): Turn from being a for_each_rtx callback to being
5529 a function that examines each subrtx itself.
5530 (propagate_rtx): Update accordingly.
5532 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5534 * function.c: Include rtl-iter.h
5535 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
5536 callback to being a function that examines each subrtx itself.
5537 Return the changed flag.
5538 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
5539 (instantiate_virtual_regs): Update calls accordingly.
5541 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5543 * final.c: Include rtl-iter.h.
5544 (mark_symbol_ref_as_used): Delete.
5545 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
5548 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5550 * emit-rtl.c: Include rtl-iter.h.
5551 (find_auto_inc): Turn from being a for_each_rtx callback to being
5552 a function that examines each subrtx itself. Assume the first operand
5553 to an RTX_AUTOINC is the automodified register.
5554 (try_split): Update call accordingly.
5556 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5558 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
5559 Return a bool, inverting the result so that 0/false means "not ok".
5560 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
5561 subrtxes of a CONST.
5562 (mem_loc_descriptor, add_const_value_attribute)
5563 (resolve_addr_in_expr): Update calls accordingly.
5565 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5567 * dwarf2out.c: Include rtl-iter.h.
5568 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
5569 Remove unused data parameter. Return a bool, inverting the result
5570 so that 0/false means "not ok".
5571 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
5572 instead of for_each_rtx.
5574 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5576 * dse.c: Include rtl-iter.h.
5577 (check_mem_read_rtx): Change void * parameter to real type.
5578 Remove return value.
5579 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
5580 for_each_rtx. Don't handle null rtxes.
5582 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5584 * df-problems.c: Include rtl-iter.h.
5585 (find_memory): Turn from being a for_each_rtx callback to being
5586 a function that examines each subrtx itself. Continue to look for
5587 volatile references even after a nonvolatile one has been found.
5588 (can_move_insns_across): Update calls accordingly.
5590 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5592 * ddg.c (walk_mems_2, walk_mems_1): Delete.
5593 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
5594 to iterate over subrtxes. Return a bool rather than an int.
5596 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5598 * ddg.c: Include rtl-iter.h.
5599 (mark_mem_use_1): Rename to...
5600 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
5601 instead of for_each_rtx.
5602 (mem_read_insn_p): Update accordingly.
5604 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5606 * cse.c (change_cc_mode_args): Delete.
5607 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
5608 a function that examines each subrtx itself. Take the fields of
5609 change_cc_mode_args as argument and return void.
5610 (cse_change_cc_mode_insn): Update calls accordingly.
5612 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5614 * cse.c (is_dead_reg): Change argument to const_rtx.
5615 (dead_debug_insn_data): Delete.
5616 (is_dead_debug_insn): Expand commentary. Turn from being a
5617 for_each_rtx callback to being a function that examines
5618 each subrtx itself. Take the fields of dead_debug_insn_data
5620 (delete_trivially_dead_insns): Update call accordingly.
5622 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5624 * cse.c (check_for_label_ref): Move earlier in file. Turn from
5625 being a for_each_rtx callback to being a function that examines
5627 (cse_extended_basic_block): Update call accordingly.
5629 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5631 * cse.c (check_dependence_data): Delete.
5632 (check_dependence): Change from being a for_each_rtx callback to being
5633 a function that examines all subrtxes itself. Don't handle null rtxes.
5634 (invalidate): Update call accordingly.
5636 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5638 * cse.c: Include rtl-iter.h.
5639 (approx_reg_cost_1): Delete.
5640 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
5641 Don't handle null rtxes.
5643 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5645 * cfgcleanup.c: Include rtl-iter.h.
5646 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
5647 to being a function that examines each subrtx itself.
5648 (thread_jump): Update accordingly.
5650 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5652 * combine-stack-adj.c: Include rtl-iter.h.
5653 (record_stack_refs_data): Delete.
5654 (record_stack_refs): Turn from being a for_each_rtx callback
5655 to being a function that examines each subrtx itself.
5656 Take a pointer to the reflist. Invert sense of return value
5657 so that true means success and false means failure. Don't
5659 (combine_stack_adjustments_for_block): Update accordingly.
5661 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5663 * combine.c (record_truncated_value): Turn from being a for_each_rtx
5664 callback to a function that takes an rtx and returns a bool
5665 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
5668 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5670 * combine.c: Include rtl-iter.h.
5671 (unmentioned_reg_p_1): Delete.
5672 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
5673 Don't handle null rtxes.
5675 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5677 * calls.c: Include rtl-iter.h.
5678 (internal_arg_pointer_based_exp_1): Delete.
5679 (internal_arg_pointer_based_exp): Take a const_rtx.
5680 Use FOR_EACH_SUBRTX to iterate over subrtxes.
5682 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5684 * caller-save.c: Include rtl-iter.h.
5685 (add_used_regs_1): Delete.
5686 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
5687 to iterate over subrtxes. Assert that any remaining pseudos
5690 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5692 * bt-load.c: Include rtl-iter.h.
5693 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
5694 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
5695 to iterate over subrtxes.
5696 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
5697 find_btr_use rather than btr_referenced_p.
5699 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5701 * alias.c: Include rtl-iter.h.
5702 (refs_newer_value_cb): Delete.
5703 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
5705 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5707 * rtl-iter.h: New file.
5708 * rtlanal.c: Include it.
5709 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
5710 (generic_subrtx_iterator <T>::add_single_to_queue)
5711 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
5712 (generic_subrtx_iterator <T>::free_array): New functions.
5713 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
5714 (generic_subrtx_iterator <const_rtx_accessor>)
5715 (generic_subrtx_iterator <rtx_var_accessor>
5716 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
5717 (setup_reg_subrtx_bounds): New function.
5718 (init_rtlanal): Call it.
5720 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
5723 * config/sh/sh.md (ashlsi3): Handle negative shift count for
5725 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
5727 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
5729 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
5731 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5733 * rtl.h (JUMP_LABEL_AS_INSN): New.
5735 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5737 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
5739 (alloc_EXPR_LIST): Strengthen return type from rtx to
5741 (remove_free_EXPR_LIST_node): Likewise for param.
5742 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
5743 from rtx to rtx_expr_list *.
5744 * sched-int.h (struct deps_desc): Strengthen fields
5745 "pending_read_mems" and "pending_write_mems" from rtx to
5748 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
5749 rtx to rtx_expr_list *.
5750 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
5751 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
5753 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
5754 from rtx to rtx_expr_list *.
5755 * loop-iv.c (simplify_using_initial_values): Strengthen local
5756 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
5757 "pnote_next" from rtx * to rtx_expr_list **.
5758 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
5759 param "exprp" from rtx * to rtx_expr_list **.
5760 (add_insn_mem_dependence): Strengthen local "mem_list" from
5761 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
5763 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
5764 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
5765 param "old_mems_p" from rtx * to rtx_expr_list **.
5766 * var-tracking.c (struct adjust_mem_data): Strengthen field
5767 "side_effects" from rtx to rtx_expr_list *.
5768 (adjust_insn): Replace NULL_RTX with NULL when assigning to
5770 (prepare_call_arguments): Likewise.
5772 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5774 * function.h (struct rtl_data): Strengthen field
5775 "x_stack_slot_list" from rtx to rtx_expr_list *.
5777 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
5778 when assigning to stack_slot_list.
5780 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5782 * function.h (struct rtl_data): Strengthen field
5783 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
5784 * rtl.h (remove_node_from_expr_list): Strengthen second param from
5785 rtx * to rtx_expr_list **.
5787 * cfgbuild.c (make_edges): In loop over
5788 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
5789 rtx_expr_list *, and use methods of the latter class to clarify
5791 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
5792 rtx_expr_list *, and use methods of the latter class to clarify
5794 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
5795 * reload1.c (set_initial_label_offsets): Likewise for local "x".
5796 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
5797 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
5798 to rtx_expr_list *. Use methods of the latter class to clarify
5801 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5803 * function.h (struct expr_status): Strengthen field
5804 "x_forced_labels" from rtx to rtx_expr_list *.
5806 * cfgbuild.c (make_edges): Split local "x" into two locals,
5807 strengthening one from rtx to rtx_expr_list *, and using methods
5809 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
5810 loop over forced_labels, introduce strengthen it from rtx to
5811 rtx_expr_list *, using methods to clarify the code.
5812 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
5813 to rtx_expr_list *, using methods of said class to clarify the
5815 * reload1.c (set_initial_label_offsets): Split local "x" into two
5816 per-loop variables, strengthening the first from rtx to
5817 rtx_expr_list * and using methods.
5819 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5821 * coretypes.h (class rtx_expr_list): Add forward declaration.
5822 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
5823 * gengenrtl.c (special_rtx): Add EXPR_LIST.
5824 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
5825 invariant: GET_CODE (X) == EXPR_LIST.
5826 (is_a_helper <rtx_expr_list *>::test): New.
5827 (rtx_expr_list::next): New.
5828 (rtx_expr_list::element): New.
5829 (gen_rtx_EXPR_LIST): New.
5831 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5833 * varasm.c (mark_constants): Convert a GET_CODE check into a
5834 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
5835 Use methods of rtx_sequence to clarify the code.
5837 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5839 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
5840 local "seq" via a checked cast, and use methods of rtx_sequence
5841 to simplify the code.
5843 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5845 * resource.c (mark_referenced_resources): Strengthen local
5846 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
5847 using methods of rtx_sequence to clarify the code.
5848 (find_dead_or_set_registers): Within the switch statement, convert
5849 a GET_CODE check to a dyn_cast, introducing local "seq". Within
5850 the JUMP_P handling, introduce another local "seq", adding a
5851 checked cast to rtx_sequence *. In both cases, use methods of
5852 rtx_sequence to clarify the code.
5853 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
5854 via a checked cast, and use methods of rtx_sequence to simplify
5857 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5859 * reorg.c (redundant_insn): In two places in the function, replace
5860 a check of GET_CODE with a dyn_cast, introducing local "seq", and
5861 usings methods of rtx_sequence to clarify the code.
5863 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5865 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
5866 local "seq" with a checked cast, and use methods of rtx_sequence
5867 to clarify the code.
5869 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5871 * function.c (contains): Introduce local "seq" for PATTERN (insn),
5872 with a checked cast, in the region for where we know it's a
5873 SEQUENCE. Use methods of rtx_sequence.
5875 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5877 * final.c (get_attr_length_1): Replace GET_CODE check with a
5878 dyn_cast, introducing local "seq" and the use of methods of
5880 (shorten_branches): Likewise, introducing local "body_seq".
5881 Strengthen local "inner_insn" from rtx to rtx_insn *.
5882 (reemit_insn_block_notes): Replace GET_CODE check with a
5883 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
5884 Use methods of rtx_sequence.
5885 (final_scan_insn): Likewise, introducing local "seq" for when
5886 "body" is known to be a SEQUENCE, using its methods.
5888 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5890 * except.c (can_throw_external): Strengthen local "seq" from rtx
5891 to rtx_sequence *. Use methods of rtx_sequence.
5892 (insn_nothrow_p): Likewise.
5894 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5896 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
5897 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
5898 Use methods of rtx_sequence.
5899 (scan_trace): Likewise for local "pat".
5901 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5903 * coretypes.h (class rtx_sequence): Add forward declaration.
5904 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
5905 invariant: GET_CODE (X) == SEQUENCE.
5906 (is_a_helper <rtx_sequence *>::test): New.
5907 (is_a_helper <const rtx_sequence *>::test): New.
5908 (rtx_sequence::len): New.
5909 (rtx_sequence::element): New.
5910 (rtx_sequence::insn): New.
5912 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5914 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
5916 (alloc_INSN_LIST): Strengthen return type from rtx to
5918 (copy_INSN_LIST): Likewise for return type and param.
5919 (concat_INSN_LIST): Likewise for both params and return type.
5920 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
5921 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
5922 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
5923 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
5925 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
5926 "implicit_sets", "control_uses", "clobbers" from rtx to
5928 (struct deps_desc): Likewise for fields "pending_read_insns",
5929 "pending_write_insns", "pending_jump_insns",
5930 "last_pending_memory_flush", "last_function_call",
5931 "last_function_call_may_noreturn", "sched_before_next_call",
5932 "sched_before_next_jump".
5933 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
5934 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
5936 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
5937 from rtx to rtx_insn_list *.
5938 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
5941 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
5942 to rtx_insn_list **.
5943 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
5945 (queue_insn): Likewise for local "link".
5946 (struct haifa_saved_data): Strengthen field "insn_queue" from
5947 rtx * to rtx_insn_list **.
5948 (save_backtrack_point): Update allocation of save->insn_queue to
5949 reflect the strengthening of elements from rtx to rtx_insn_list *.
5950 (queue_to_ready): Strengthen local "link" from rtx to
5951 rtx_insn_list *; use methods "next" and "insn" when traversing the
5953 (early_queue_to_ready): Likewise for locals "link", "next_link",
5955 (schedule_block): Update allocation of insn_queue to reflect the
5956 strengthening of elements from rtx to rtx_insn_list *. Strengthen
5957 local "link" from rtx to rtx_insn_list *, and use methods when
5959 (add_to_speculative_block): Strengthen locals "twins" and
5960 "next_node" from rtx to rtx_insn_list *, and use methods when
5961 working with them. Strengthen local "twin" from rtx to
5962 rtx_insn *, eliminating a checked cast.
5963 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
5964 from rtx to rtx_insn_list *, and use methods when working with
5967 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
5968 from rtx to rtx_insn_list *, adding a checked cast.
5969 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
5971 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
5972 "newlink" from rtx to rtx_insn_list *. Strengthen local
5973 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
5974 from rtx to rtx_insn *.
5975 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
5976 from rtx to rtx_insn_list *. Use methods of the latter class.
5977 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
5978 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
5979 (remove_free_INSN_LIST_node): Strengthen return type and local
5980 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
5981 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
5982 rtx_insn_list *, using "insn" method.
5984 * sched-deps.c (add_dependence_list): Strengthen param "list"
5985 from rtx to rtx_insn_list *, and use methods when working with it.
5986 (add_dependence_list_and_free): Strengthen param "listp" from
5987 rtx * to rtx_insn_list **.
5988 (remove_from_dependence_list): Strenghten param "listp" from rtx *
5989 to rtx_insn_list **, and use methods when working with *listp.
5990 (remove_from_both_dependence_lists): Strengthen param "listp" from
5991 rtx * to rtx_insn_list **
5992 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
5993 to rtx_insn_list **. Eliminate local "link", in favor of two new
5994 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
5996 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
5997 by introducing local "cond_deps".
5998 (remove_from_deps): Strengthen param "insn" from rtx to
6001 * sched-rgn.c (concat_insn_mem_list): Strengthen param
6002 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
6003 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
6004 Use methods of rtx_insn_list.
6006 * store-motion.c (struct st_expr): Strengthen fields
6007 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
6008 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
6010 (find_moveable_store): Split out "tmp" into multiple more-tightly
6011 scoped locals. Use methods of rtx_insn_list *.
6012 (compute_store_table): Strengthen local "tmp" from rtx to
6013 rtx_insn *. Use methods of rtx_insn_list *.
6015 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6017 * coretypes.h (class rtx_insn_list): Add forward declaration.
6018 * rtl.h (class rtx_insn_list): New subclass of rtx_def
6019 (is_a_helper <rtx_insn_list *>::test): New.
6020 (rtx_insn_list::next): New.
6021 (rtx_insn_list::insn): New.
6022 (gen_rtx_INSN_LIST): Add prototype.
6023 * emit-rtl.c (gen_rtx_INSN_LIST): New.
6024 * gengenrtl.c (special_rtx): Add INSN_LIST.
6026 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6028 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
6029 "prev" from rtx to rtx_insn *.
6031 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6033 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
6034 functions. Require merely an rtx for now, not an rtx_insn *.
6035 (BLOCK_FOR_INSN): Likewise.
6036 (INSN_LOCATION): Likewise.
6037 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
6039 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6041 * rtl.h (PATTERN): Convert this macro into a pair of inline
6042 functions, for now, requiring const_rtx and rtx.
6044 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6046 * target.def (unwind_emit): Strengthen param "insn" from rtx to
6048 (final_postscan_insn): Likewise.
6049 (adjust_cost): Likewise.
6050 (adjust_priority): Likewise.
6051 (variable_issue): Likewise.
6052 (macro_fusion_pair_p): Likewise.
6053 (dfa_post_cycle_insn): Likewise.
6054 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
6055 (first_cycle_multipass_issue): Likewise.
6056 (dfa_new_cycle): Likewise.
6057 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
6058 (speculate_insn): Likewise for param "insn".
6059 (gen_spec_check): Likewise for params "insn" and "label".
6060 (get_insn_spec_ds): Likewise for param "insn".
6061 (get_insn_checked_ds): Likewise.
6062 (dispatch_do): Likewise.
6063 (dispatch): Likewise.
6064 (cannot_copy_insn_p): Likewise.
6065 (invalid_within_doloop): Likewise.
6066 (legitimate_combined_insn): Likewise.
6070 * doc/tm.texi: Automatically updated to reflect changes to
6073 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
6075 (schedule_block): Likewise.
6076 (sched_init): Likewise.
6077 (sched_speculate_insn): Strengthen param "insn" from rtx to
6079 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
6081 * hooks.c (hook_bool_rtx_true): Rename to...
6082 hook_bool_rtx_insn_true): ...this, and strengthen first param from
6084 (hook_constcharptr_const_rtx_null): Rename to...
6085 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
6086 first param from const_rtx to const rtx_insn *.
6087 (hook_bool_rtx_int_false): Rename to...
6088 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
6089 param from rtx to rtx_insn *.
6090 (hook_void_rtx_int): Rename to...
6091 (hook_void_rtx_insn_int): ...this, and strengthen first param from
6094 * hooks.h (hook_bool_rtx_true): Rename to...
6095 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
6097 (hook_bool_rtx_int_false): Rename to...
6098 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
6099 param from rtx to rtx_insn *.
6100 (hook_void_rtx_int): Rename to...
6101 (hook_void_rtx_insn_int): ...this, and strengthen first param from
6103 (hook_constcharptr_const_rtx_null): Rename to...
6104 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
6105 first param from const_rtx to const rtx_insn *.
6107 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
6108 and local "prev" from rtx to rtx_insn *.
6110 * sched-int.h (sched_speculate_insn): Strengthen first param from
6113 * sel-sched.c (create_speculation_check): Likewise for local "label".
6114 * targhooks.c (default_invalid_within_doloop): Strengthen param
6115 "insn" from const_rtx to const rtx_insn *.
6116 * targhooks.h (default_invalid_within_doloop): Strengthen param
6117 from const_rtx to const rtx_insn *.
6119 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
6120 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
6122 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
6124 (arc_invalid_within_doloop): Likewise, with const.
6126 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
6127 (arm_cannot_copy_insn_p): Likewise for param "insn".
6128 (arm_unwind_emit): Likewise.
6130 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
6133 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
6134 (c6x_variable_issue): Likewise. Removed now-redundant checked
6136 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
6138 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
6139 Likewise for param "insn".
6140 (epiphany_mode_after): Likewise.
6141 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
6142 params "insn", "dep_insn".
6143 (epiphany_mode_needed): Likewise for param "insn".
6144 (epiphany_mode_after): Likewise.
6146 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
6147 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
6148 (ix86_avx_u128_mode_needed): Likewise.
6149 (ix86_i387_mode_needed): Likewise.
6150 (ix86_mode_needed): Likewise.
6151 (ix86_avx_u128_mode_after): Likewise.
6152 (ix86_mode_after): Likewise.
6153 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
6154 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
6155 (ix86_adjust_priority): Likewise for param "insn".
6156 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
6157 (do_dispatch): Likewise.
6158 (has_dispatch): Likewise.
6159 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
6161 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
6162 reflect renaming of default hook implementation from
6163 hook_constcharptr_const_rtx_null to
6164 hook_constcharptr_const_rtx_insn_null.
6165 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
6167 (ia64_variable_issue): Likewise for param "insn".
6168 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
6169 (ia64_dfa_new_cycle): Likewise.
6170 (ia64_get_insn_spec_ds): Likewise.
6171 (ia64_get_insn_checked_ds): Likewise.
6172 (ia64_speculate_insn): Likewise.
6173 (ia64_gen_spec_check): Likewise for params "insn", "label".
6174 (ia64_asm_unwind_emit): Likewise for param "insn".
6176 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
6178 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
6180 (m68k_sched_variable_issue): Likewise for param "insn".
6182 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
6185 * config/microblaze/microblaze.c (microblaze_adjust_cost):
6186 Likewise for params "insn", "dep".
6188 * config/mips/mips.c (mips_adjust_cost): Likewise.
6189 (mips_variable_issue): Likewise for param "insn".
6190 (mips_final_postscan_insn): Likewise.
6192 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
6193 for params "insn", "dep".
6195 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
6197 (pa_adjust_priority): Likewise for param "insn".
6199 * config/picochip/picochip.c (picochip_sched_adjust_cost):
6200 Likewise for params "insn", "dep_insn".
6202 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
6204 (rs6000_variable_issue): Likewise.
6205 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
6206 (rs6000_debug_adjust_cost): Likewise.
6207 (rs6000_adjust_priority): Likewise for param "insn".
6208 (rs6000_use_sched_lookahead_guard): Likewise.
6209 (get_next_active_insn): Likewise for return type and both params.
6210 (redefine_groups): Likewise for params "prev_head_insn", "tail"
6211 and locals "insn", "next_insn".
6212 (pad_groups): Likewise.
6214 * config/s390/s390.c (s390_adjust_priority): Likewise for param
6216 (s390_cannot_copy_insn_p): Likewise.
6217 (s390_sched_variable_issue): Likewise for third param, eliminating
6219 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
6220 default hook implementation from hook_constcharptr_const_rtx_null
6221 to hook_constcharptr_const_rtx_insn_null.
6223 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
6224 from rtx to rtx_insn *.
6225 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
6226 (sh_variable_issue): Likewise for param "insn".
6227 (sh_dfa_new_cycle): Likewise.
6228 (sh_mode_needed): Likewise.
6229 (sh_mode_after): Likewise.
6231 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
6232 params "insn", "dep_insn".
6233 (hypersparc_adjust_cost): Likewise.
6234 (sparc_adjust_cost): Likewise.
6236 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
6237 param, eliminated checked cast.
6238 (spu_sched_adjust_cost): Likewise for first and third params.
6240 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
6241 params "insn" and "dep_insn" from rtx to rtx_insn *.
6243 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
6245 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6247 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
6248 (set_is_load_p): ...this, updating to work on a SET pattern rather
6250 (is_store_insn): Rename to...
6251 (set_is_store_p): ...this, updating to work on a SET pattern
6252 rather than an insn.
6253 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
6254 top of function to where it is needed. Rewrite the bogus
6255 condition that checks for "insn" and "dep" being PARALLEL to
6256 instead use single_set, introducing locals "insn_set" and
6257 "dep_set". Given that we only ever returned "cost" for a non-pair
6258 of SETs, bail out early if we don't have a pair of SET.
6259 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
6260 use the new locals "insn_set" and "dep_set", and update calls to
6261 is_load_insn and is_store_insn to be calls to set_is_load_p and
6264 2014-08-27 Guozhi Wei <carrot@google.com>
6267 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
6268 amount before using it.
6270 2014-08-27 Richard Biener <rguenther@suse.de>
6272 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
6273 get_maxval_strlen inside a more useful API.
6274 (gimple_fold_builtin_with_strlen): Remove and fold into ...
6275 (gimple_fold_builtin): ... caller.
6276 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
6277 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
6278 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
6279 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
6280 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
6281 gimple_fold_builtin_sprintf): Adjust to compute maxval
6284 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
6287 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
6289 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6290 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6291 Anna Tikhonova <anna.tikhonova@intel.com>
6292 Ilya Tocar <ilya.tocar@intel.com>
6293 Andrey Turetskiy <andrey.turetskiy@intel.com>
6294 Ilya Verbin <ilya.verbin@intel.com>
6295 Kirill Yukhin <kirill.yukhin@intel.com>
6296 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6298 * config/i386/sse.md
6299 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
6300 Use `concat_tg_mode' attribute to determine asm register size.
6302 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6303 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6304 Anna Tikhonova <anna.tikhonova@intel.com>
6305 Ilya Tocar <ilya.tocar@intel.com>
6306 Andrey Turetskiy <andrey.turetskiy@intel.com>
6307 Ilya Verbin <ilya.verbin@intel.com>
6308 Kirill Yukhin <kirill.yukhin@intel.com>
6309 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6311 * config/i386/sse.md
6312 (define_mode_iterator VI48_AVX512VL): New.
6313 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
6314 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
6315 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
6316 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6317 with VI1): Change mode iterator.
6318 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6319 with VI_ULOADSTORE_BW_AVX512VL): New.
6320 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6321 with VI_ULOADSTORE_F_AVX512VL): Ditto.
6322 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6323 with VI1): Change mode iterator.
6324 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6325 with VI_ULOADSTORE_BW_AVX512VL): New.
6326 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6327 with VI_ULOADSTORE_F_AVX512VL): Ditto.
6328 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
6329 with VI1): Change mode iterator.
6330 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
6331 with VI_ULOADSTORE_BW_AVX512VL): New.
6332 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
6333 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
6334 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
6335 (define_insn "<avx512>_storedqu<mode>_mask" with
6336 VI48_AVX512VL): New.
6337 (define_insn "<avx512>_storedqu<mode>_mask" with
6338 VI12_AVX512VL): Ditto.
6340 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6341 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6342 Anna Tikhonova <anna.tikhonova@intel.com>
6343 Ilya Tocar <ilya.tocar@intel.com>
6344 Andrey Turetskiy <andrey.turetskiy@intel.com>
6345 Ilya Verbin <ilya.verbin@intel.com>
6346 Kirill Yukhin <kirill.yukhin@intel.com>
6347 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6349 * config/i386/sse.md
6350 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
6351 (define_mode_iterator VI48_AVX512BW): New.
6352 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
6353 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
6354 with VI48_AVX2_48_AVX512F): New.
6355 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
6356 with VI2_AVX512VL): Ditto.
6358 2014-08-27 Richard Biener <rguenther@suse.de>
6361 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
6362 (fold_builtin_3): Do not fold strcat_chk here.
6363 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
6365 (gimple_fold_builtin): Fold strcat_chk here.
6367 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
6369 * dwarf2out.h (dwarf2out_decl): Remove prototype.
6370 * dwarf2out.c (dwarf2out_decl): Make static.
6372 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
6374 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
6376 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6378 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
6379 from rtx to rtx_insn *.
6380 (cselib_lookup_from_insn): Likewise for final param.
6381 (cselib_subst_to_values_from_insn): Likewise.
6382 (cselib_add_permanent_equiv): Likewise.
6384 * cselib.c (cselib_current_insn): Likewise for this variable.
6385 (cselib_subst_to_values_from_insn): Likewise for param "insn".
6386 (cselib_lookup_from_insn): Likewise.
6387 (cselib_add_permanent_equiv): Likewise for param "insn" and local
6388 "save_cselib_current_insn".
6389 (cselib_process_insn): Replace use of NULL_RTX with NULL.
6391 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
6392 from rtx to rtx_insn *.
6394 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6396 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
6399 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6401 * df.h (df_dump_insn_problem_function): Strengthen first param of
6402 this callback from const_rtx to const rtx_insn *.
6403 (struct df_insn_info): Strengthen field "insn" from rtx to
6405 (DF_REF_INSN): Eliminate this function, reinstating the older
6407 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
6408 (df_reg_defined): Likewise.
6409 (df_find_use): Likewise.
6410 (df_reg_used): Likewise.
6411 (df_dump_insn_top): Strengthen param 1 from const_rtx to
6413 (df_dump_insn_bottom): Likewise.
6414 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
6415 (df_insn_debug_regno): Likewise.
6416 (debug_df_insn): Likewise.
6417 (df_rd_simulate_one_insn): Likewise for param 2.
6418 (df_word_lr_simulate_defs): Likewise for param 1.
6419 (df_word_lr_simulate_uses): Likewise.
6420 (df_md_simulate_one_insn): Likewise for param 2.
6421 (df_simulate_find_noclobber_defs): Likewise for param 1.
6422 (df_simulate_find_defs): Likewise.
6423 (df_simulate_defs): Likewise.
6424 (df_simulate_uses): Likewise.
6425 (df_simulate_one_insn_backwards): Likewise for param 2.
6426 (df_simulate_one_insn_forwards): Likewise.
6427 (df_uses_create): Likewise for param 2.
6428 (df_insn_create_insn_record): Likewise for param 1.
6429 (df_insn_delete): Likewise.
6430 (df_insn_rescan): Likewise.
6431 (df_insn_rescan_debug_internal): Likewise.
6432 (df_insn_change_bb): Likewise.
6433 (df_notes_rescan): Likewise.
6434 * rtl.h (remove_death): Likewise for param 2.
6435 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
6437 * sched-int.h (reemit_notes): Strengthen param from rtx to
6439 * valtrack.h (propagate_for_debug): Likewise for param 1.
6441 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
6442 local "tmp_rtx" from const_rtx to const rtx_insn *.
6443 * combine.c (remove_death): Strengthen param "insn" from rtx to
6445 (move_deaths): Likewise for local "where_dead".
6446 * cse.c (delete_trivially_dead_insns): Introduce local
6447 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
6448 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
6450 (df_reg_defined): Likewise.
6451 (df_find_use): Likewise.
6452 (df_reg_used): Likewise.
6453 (df_dump_insn_problem_data): Strengthen param "insn" from
6454 const_rtx to const rtx_insn *.
6455 (df_dump_insn_top): Likewise.
6456 (df_dump_insn_bottom): Likewise.
6457 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
6458 (df_insn_debug_regno): Likewise.
6459 (debug_df_insn): Likewise.
6460 (DF_REF_INSN): Delete.
6461 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
6462 from rtx to rtx_insn *.
6463 (df_chain_insn_top_dump): Strengthen param "insn" from
6464 const_rtx to const rtx_insn *.
6465 (df_chain_insn_bottom_dump): Likewise.
6466 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
6468 (df_word_lr_simulate_uses): Likewise.
6469 (df_print_note): Likewise.
6470 (df_remove_dead_and_unused_notes): Likewise.
6471 (df_set_unused_notes_for_mw): Likewise.
6472 (df_set_dead_notes_for_mw): Likewise.
6473 (df_create_unused_note): Likewise.
6474 (df_simulate_find_defs): Likewise.
6475 (df_simulate_find_uses): Likewise.
6476 (df_simulate_find_noclobber_defs): Likewise.
6477 (df_simulate_defs): Likewise.
6478 (df_simulate_uses): Likewise.
6479 (df_simulate_one_insn_backwards): Likewise.
6480 (df_simulate_one_insn_forwards): Likewise.
6481 (df_md_simulate_one_insn): Likewise.
6482 * df-scan.c (df_uses_create): Likewise.
6483 (df_insn_create_insn_record): Likewise.
6484 (df_insn_delete): Likewise.
6485 (df_insn_rescan): Likewise.
6486 (df_insn_rescan_debug_internal): Likewise.
6487 (df_insn_change_bb): Likewise.
6488 (df_notes_rescan): Likewise.
6489 (df_refs_add_to_chains): Likewise.
6490 (df_insn_refs_verify): Likewise.
6491 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
6492 when invoking df_insn_delete.
6493 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
6494 (set_unique_reg_note): Add checked cast.
6495 * final.c (cleanup_subreg_operands): Likewise.
6496 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
6497 "insn" from rtx to rtx_insn *.
6498 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
6499 "last" from rtx to rtx_insn *.
6500 * ira-emit.c (change_regs_in_insn): New function.
6501 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
6502 Invoke change_regs_in_insn rather than change_regs.
6503 * ira.c (update_equiv_regs): Strengthen locals "insn",
6504 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
6505 for_each_rtx_in_insn rather than for_each_rtx.
6506 * recog.c (confirm_change_group): Add checked casts.
6507 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
6509 (peep2_fill_buffer): Add checked cast.
6510 * rtlanal.c (remove_note): Likewise.
6511 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
6512 locals "next" "end" from rtx to rtx_insn *.
6514 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6516 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
6518 (struct reg_use_data): Likewise for field "insn".
6519 (insn_cost): Likewise for param.
6520 (real_insn_for_shadow): Likewise for return type and param.
6521 (increase_insn_priority): Likewise for param 1.
6522 (debug_dependencies): Likewise for both params.
6524 * haifa-sched.c (insn_delay): Likewise for param "insn".
6525 (real_insn_for_shadow): Likewise for return type and param "insn".
6526 (update_insn_after_change): Likewise for param "insn".
6527 (recompute_todo_spec): Likewise for param "next" and locals "pro",
6529 (insn_cost): Likewise for param "insn".
6530 (increase_insn_priority): Likewise.
6531 (calculate_reg_deaths): Likewise.
6532 (setup_insn_reg_pressure_info): Likewise.
6533 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
6534 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
6535 (model_recompute): Likewise.
6536 (must_restore_pattern_p): Likewise for param "next".
6537 (model_excess_cost): Likewise for param "insn".
6538 (queue_remove): Likewise.
6539 (adjust_priority): Likewise for param "prev".
6540 (update_register_pressure): Likewise for param "insn".
6541 (setup_insn_max_reg_pressure): Likewise for local "insn".
6542 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
6543 (model_add_to_schedule): Likewise.
6544 (model_reset_queue_indices): Likewise for local "insn".
6545 (unschedule_insns_until): Strengthen local "recompute_vec" from
6546 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
6547 "con" from rtx to rtx_insn *.
6548 (restore_last_backtrack_point): Likewise for both locals "x". Add
6550 (estimate_insn_tick): Likewise for param "insn".
6551 (commit_schedule): Likewise for params "prev_head", "tail" and
6553 (verify_shadows): Likewise for locals "i1", "i2".
6554 (dump_insn_stream): Likewise for params "head", "tail" and locals
6555 "next_tail", "insn".
6556 (schedule_block): Likewise for locals "insn", "x". Add a checked
6558 (fix_inter_tick): Likewise for params "head", "tail".
6559 (create_check_block_twin): Likewise for local "jump".
6560 (haifa_change_pattern): Likewise for param "insn".
6561 (haifa_speculate_insn): Likewise.
6562 (dump_new_block_header): Likewise for params "head", "tail".
6563 (fix_jump_move): Likewise for param "jump".
6564 (move_block_after_check): Likewise.
6565 (sched_init_insn_luid): Likewise for param "insn".
6566 (sched_init_luids): Likewise for local "insn".
6567 (insn_luid): Likewise for param "insn".
6568 (init_h_i_d): Likewise.
6569 (haifa_init_h_i_d): Likewise for local "insn".
6570 (haifa_init_insn): Likewise for param "insn".
6571 * sched-deps.c (add_dependence): Likewise for local "real_pro",
6573 (create_insn_reg_use): Likewise for param "insn".
6574 (setup_insn_reg_uses): Likewise. Add a checked cast.
6575 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
6576 "tail" from rtx to rtx_insn *.
6577 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
6578 "insn", "next_tail".
6580 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6582 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
6583 from rtx to rtx_insn *.
6584 (model_add_to_schedule): Likewise for locals "start", "end",
6587 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6589 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
6591 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
6592 "to" and locals "insn", "next", "copy". Remove now-redundant
6595 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6597 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
6598 rtx_insn * and param 4 from rtx * to rtx_insn **.
6599 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
6600 param 2 from rtx * to rtx_insn **.
6602 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
6603 rtx_insn * and final param from rtx * to rtx_insn **.
6605 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
6606 from rtx to rtx_insn *.
6607 (try_head_merge_bb): Likewise for both locals named "move_upto".
6608 * df-problems.c (can_move_insns_across): Likewise for params
6609 "from", "to", "across_from", "across_to" and locals "insn",
6610 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
6612 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
6613 from rtx to rtx_insn *.
6614 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
6615 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
6616 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
6618 (noce_try_abs): Likewise.
6619 (noce_get_condition): Likewise for param "jump". Strengthen param
6620 "earliest" from rtx * to rtx_insn **.
6621 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
6623 (find_cond_trap): Likewise.
6624 (dead_or_predicable): Likewise for local "earliest".
6625 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
6627 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
6628 and local "prev". Strengthen param "earliest" from rtx * to
6630 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
6631 Strengthen param "earliest" from rtx * to rtx_insn **.
6633 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6635 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
6636 "to" and local "insn" from rtx to rtx_insn *.
6638 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6640 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
6641 from rtx to rtx_insn *.
6642 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
6643 (code_motion_path_driver): Likewise for local "last_insn".
6644 (simplify_changed_insns): Likewise for local "insn".
6646 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6648 * rtl.h (push_to_sequence): Strengthen param from rtx to
6650 (push_to_sequence2): Likewise for both params.
6651 (delete_insns_since): Likewise for param.
6652 (reorder_insns_nobb): Likewise for all three params.
6653 (set_new_first_and_last_insn): Likewise for both params.
6655 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
6656 rtx_insn *. Remove now-redundant cast.
6657 (set_last_insn): Likewise.
6659 * builtins.c (expand_builtin_return): Strengthen local
6660 "call_fusage" from rtx to rtx_insn *.
6661 * cfgrtl.c (create_basic_block_structure): Likewise for local
6663 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
6664 "first", "last" and local "insn".
6665 (delete_insns_since): Likewise for param "from".
6666 (reorder_insns_nobb): Likewise for params "from", "to", "after"
6668 (push_to_sequence): Likewise for param "first" and local "last".
6669 (push_to_sequence2): Likewise for params "first" and "last".
6670 * lra.c (emit_add3_insn): Likewise for local "last".
6671 (lra_emit_add): Likewise.
6672 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
6674 (process_address_1): Likewise for locals "insn", last".
6675 * modulo-sched.c (ps_first_note): Likewise for return type.
6676 * optabs.c (expand_binop_directly): Likewise for param "last".
6678 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6680 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
6682 * emit-rtl.c (get_last_insn_anywhere): Likewise.
6684 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6686 * function.h (struct sequence_stack): Strengthen fields "first"
6687 and "last" from rtx to rtx_insn *.
6688 (struct emit_status): Likewise for fields "x_first_insn" and
6691 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
6692 (set_first_insn): Add checked cast.
6693 (get_last_insn): Remove now-redundant checked cast.
6694 (set_last_insn): Add checked cast.
6696 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
6697 "saved_first" and "saved_last" from rtx to rtx_insn *.
6699 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6701 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
6702 (unlink_insn_chain): Strengthen both params from rtx to
6705 * cfgrtl.c (cfg_layout_function_header): Likewise for this
6707 (unlink_insn_chain): Likewise for params "first" and "last".
6708 Remove now-redundant checked cast.
6709 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
6710 (fixup_reorder_chain): Strengthen local "insn" from rtx to
6712 * emit-rtl.c (link_insn_into_chain): Likewise for all three
6714 (add_insn): Likewise for param "insn" and local "prev".
6715 (add_insn_after_nobb): Likewise for both params and local "next".
6716 (add_insn_before_nobb): Likewise for both params and local "prev".
6717 (add_insn_after): Rename param "after" to "uncast_after",
6718 introducing local "after" with another checked cast.
6719 (add_insn_before): Rename params "insn" and "before", giving them
6720 "uncast_" prefixes, adding the old names back using checked casts.
6721 (emit_note_after): Likewise for param "after".
6722 (emit_note_before): Likewise for param "before".
6723 (emit_label): Add a checked cast.
6725 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6727 * cselib.h (cselib_record_sets_hook): Strengthen initial param
6728 "insn" from rtx to rtx_insn *.
6730 * cselib.c (cselib_record_sets_hook): Likewise.
6732 * var-tracking.c (add_with_sets): Likewise, renaming back from
6733 "uncast_insn" to "insn" and eliminating the checked cast from rtx
6736 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6738 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
6739 and "header_" from rtx to rtx_insn *.
6740 (struct basic_block_d): Likewise for field "head_" within "x"
6741 field of union basic_block_il_dependent.
6742 (BB_HEAD): Drop function...
6743 (SET_BB_HEAD): ...and this function in favor of...
6744 (BB_HEAD): ...reinstate macro.
6745 (BB_END): Drop function...
6746 (SET_BB_END): ...and this function in favor of...
6747 (BB_END): ...reinstate macro.
6748 (BB_HEADER): Drop function...
6749 (SET_BB_HEADER): ...and this function in favor of...
6750 (BB_HEADER): ...reinstate macro.
6752 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
6753 (fix_crossing_unconditional_branches): Likewise.
6754 * caller-save.c (save_call_clobbered_regs): Likewise.
6755 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
6756 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
6757 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
6758 (merge_blocks_move_successor_nojumps): Likewise.
6759 (outgoing_edges_match): Update use of for_each_rtx to
6760 for_each_rtx_in_insn.
6761 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
6762 (expand_gimple_cond): Likewise.
6763 (expand_gimple_tailcall): Likewise.
6764 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
6766 (construct_exit_block): Drop use of SET_BB_END.
6767 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
6769 (delete_insn): Rename param "insn" to "uncast_insn", introducing
6770 a new local "insn" with a checked cast to rtx_insn *. Drop use of
6771 SET_BB_HEAD and SET_BB_END.
6772 (create_basic_block_structure): Drop use of SET_BB_HEAD and
6774 (rtl_delete_block): Drop use of SET_BB_HEAD.
6775 (rtl_split_block): Drop use of SET_BB_END.
6776 (emit_nop_for_unique_locus_between): Likewise.
6777 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
6778 (block_label): Drop use of SET_BB_HEAD.
6779 (fixup_abnormal_edges): Drop use of SET_BB_END.
6780 (record_effective_endpoints): Drop use of SET_BB_HEADER.
6781 (relink_block_chain): Likewise.
6782 (fixup_reorder_chain): Drop use of SET_BB_END.
6783 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
6784 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
6785 rtx_insn **. Drop use of SET_BB_HEADER.
6786 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
6788 (BB_HEAD): Delete this function.
6789 (SET_BB_HEAD): Likewise.
6791 (SET_BB_END): Likewise.
6792 (BB_HEADER): Likewise.
6793 (SET_BB_HEADER): Likewise.
6794 * emit-rtl.c (add_insn_after): Rename param "insn" to
6795 "uncast_insn", adding a new local "insn" and a checked cast to
6796 rtx_insn *. Drop use of SET_BB_END.
6797 (remove_insn): Strengthen locals "next" and "prev" from rtx to
6798 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
6799 (reorder_insns): Drop use of SET_BB_END.
6800 (emit_insn_after_1): Strengthen param "first" and locals "last",
6801 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
6802 (emit_pattern_after_noloc): Add checked cast.
6803 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
6804 (restore_other_notes): Likewise.
6805 (move_insn): Likewise.
6806 (sched_extend_bb): Likewise.
6807 (fix_jump_move): Likewise.
6808 * ifcvt.c (noce_process_if_block): Likewise.
6809 (dead_or_predicable): Likewise.
6810 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
6811 * reg-stack.c (change_stack): Drop use of SET_BB_END.
6812 * sel-sched-ir.c (sel_move_insn): Likewise.
6813 * sel-sched.c (move_nop_to_previous_block): Likewise.
6815 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
6817 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
6819 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6821 * basic-block.h (create_basic_block_structure): Strengthen params
6822 1 "head" and 2 "end" from rtx to rtx_insn *.
6823 * cfgrtl.c (create_basic_block_structure): Likewise.
6824 (rtl_create_basic_block): Update casts from void * to rtx to
6825 rtx_insn *, so that we can pass them as rtx_insn * to
6826 create_basic_block_structure.
6827 * sel-sched-ir.c (sel_create_basic_block): Likewise.
6829 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6831 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
6833 (check_for_inc_dec): Strengthen param "insn" from rtx to
6836 * cselib.h (cselib_process_insn): Likewise.
6838 * cselib.c (cselib_record_sets): Likewise.
6839 (cselib_process_insn): Likewise.
6841 * dse.c (struct insn_info): Likewise for field "insn".
6842 (check_for_inc_dec_1): Likewise for local "insn".
6843 (check_for_inc_dec): Likewise for param "insn".
6844 (scan_insn): Likewise.
6845 (dse_step1): Likewise for local "insn".
6847 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
6848 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
6850 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6852 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
6853 from rtx to rtx_insn *.
6854 (DEP_PRO): Delete this function and...
6855 (SET_DEP_PRO): ...this function in favor of...
6856 (DEP_PRO): ...reinstate this macro.
6857 (DEP_CON): Delete this function and...
6858 (SET_DEP_CON): ...this function in favor of...
6859 (DEP_CON): ...reinstate this old macro.
6860 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
6861 (init_dep): Likewise.
6862 (set_priorities): Likewise for both params.
6863 (sd_copy_back_deps): Likewise for params 1 and 2.
6865 * haifa-sched.c (priority): Likewise for param "insn" and local
6867 (set_priorities): Likewise for params "head" and "tail" and local
6869 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
6871 (add_to_speculative_block): Add a checked cast.
6872 (create_check_block_twin): Drop use of SET_DEP_CON.
6873 (add_jump_dependencies): Strengthen params "insn" and "jump" from
6876 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
6877 Drop use of SET_DEP_PRO
6878 (init_dep): Strengthen params "pro" and "con" from rtx to
6880 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
6884 (SET_DEP_PRO): Delete.
6885 (SET_DEP_CON): Delete.
6887 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6889 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
6890 from rtx to rtx_insn *.
6891 (VINSN_INSN_RTX): Eliminate rvalue function and...
6892 (SET_VINSN_INSN): ...lvalue function in favor of...
6893 (VINSN_INSN_RTX): reinstate this old macro.
6895 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
6896 in favor of VINSN_INSN_RTX.
6897 (VINSN_INSN_RTX): Delete this function.
6898 (SET_VINSN_INSN_RTX): Likewise.
6900 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6902 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
6903 (BND_TO): Delete this function and...
6904 (SET_BND_TO): ...this functions in favor of...
6905 (BND_TO): ...reinstating this macro.
6906 (struct _fence): Strengthen field "executing_insns" from
6907 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
6908 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
6909 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
6910 and param "insn" from rtx to insn_t.
6911 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
6914 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
6916 (rtx_vec_t): Likewise.
6917 (struct sched_deps_info_def): Strengthen param of "start_insn"
6918 callback from rtx to rtx_insn *. Likewise for param "insn2" of
6919 "note_mem_dep" callback and first param of "note_dep" callback.
6921 * haifa-sched.c (add_to_speculative_block): Strengthen param
6922 "insn" from rtx to rtx_insn *.
6923 (clear_priorities): Likewise.
6924 (calc_priorities): Likewise for local "insn".
6926 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
6927 Remove redundant checked cast.
6928 (haifa_note_mem_dep): Likewise for param "pending_insn".
6929 (haifa_note_dep): Likewise for param "elem".
6930 (note_mem_dep): Likewise for param "e".
6931 (sched_analyze_1): Add checked casts.
6932 (sched_analyze_2): Likewise.
6934 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
6935 from rtx to rtx_insn *.
6936 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
6937 from vec<rtx> * to vec<rtx_insn *> *.
6939 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
6941 (flist_add): Strengthen param "executing_insns" from
6942 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
6943 (advance_deps_context): Remove now-redundant checked cast.
6944 (init_fences): Replace uses of NULL_RTX with NULL.
6945 (merge_fences): Strengthen params "last_scheduled_insn" and
6946 "sched_next" from rtx to rtx_insn * and "executing_insns" from
6947 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
6948 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
6949 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
6950 an instruction, rather than doing double-duty as a pattern.
6951 (return_nop_to_pool): Update for change of insn_t.
6952 (deps_init_id): Remove now-redundant checked cast.
6953 (struct sched_scan_info_def): Strengthen param of "init_insn"
6954 callback from rtx to insn_t.
6955 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
6956 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
6958 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
6959 "end" from rtx to rtx_insn *.
6960 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
6961 (rtx insn_rtx, bool force_unique_p)
6962 (BND_TO): Delete function.
6963 (SET_BND_TO): Delete function.
6965 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
6967 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
6968 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
6970 (undo_transformations): Likewise for param "insn".
6971 (update_liveness_on_insn): Likewise.
6972 (compute_live_below_insn): Likewise for param "insn" and local
6974 (update_data_sets): Likewise for param "insn".
6975 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
6976 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
6977 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
6979 (move_cond_jump): Likewise for param "insn".
6980 (move_cond_jump): Drop use of SET_BND_TO.
6981 (compute_av_set_on_boundaries): Likewise.
6982 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
6983 (update_and_record_unavailable_insns): Strengthen local "bb_end"
6984 from rtx to rtx_insn *.
6985 (maybe_emit_renaming_copy): Likewise for param "insn".
6986 (maybe_emit_speculative_check): Likewise.
6987 (handle_emitting_transformations): Likewise.
6988 (remove_insn_from_stream): Likewise.
6989 (code_motion_process_successors): Strengthen local "succ" from rtx
6992 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6994 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
6995 ilist_t, not _xlist_t;
6996 (ILIST_INSN): Define in terms of new union field "insn".
6997 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
6999 (struct _list_node): Add new field "insn" to the union, of type
7001 (ilist_add): Replace macro with an inline function, requiring an
7003 (ilist_remove): Define this macro directly in terms of
7004 _list_remove, rather than indirectly via _xlist_remove.
7005 (ilist_clear): Likewise, in terms of _list_clear rather than
7007 (ilist_is_in_p): Replace macro with an inline function, requiring
7009 (_list_iter_cond_insn): New function.
7010 (ilist_iter_remove): Define this macro directly in terms of
7011 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
7012 (ilist_iterator): Define directly in terms of _list_iterator
7013 rather than indirectly through _xlist_iterator.
7014 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
7015 than in terms of _FOR_EACH_X.
7016 (FOR_EACH_INSN_1): Likewise.
7018 2014-08-26 Joseph Myers <joseph@codesourcery.com>
7022 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
7023 DECL_HARD_REGISTER and return for invalid register specifications.
7024 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
7025 DECL_HARD_REGISTER, call expand_one_error_var.
7026 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
7027 CC_REGNUM with non-MODE_CC modes.
7028 (arm_regno_class): Return NO_REGS for PC_REGNUM.
7030 2014-08-26 Marek Polacek <polacek@redhat.com>
7033 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
7035 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
7037 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
7038 qi cost; add di cost.
7039 (cortexa57_addrcost_table): Likewise.
7041 2014-08-26 Marek Polacek <polacek@redhat.com>
7044 * expr.c (is_aligning_offset): Remove logical not.
7046 2014-08-26 Marek Polacek <polacek@redhat.com>
7049 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
7050 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
7052 2014-08-26 Richard Biener <rguenther@suse.de>
7054 PR tree-optimization/62175
7055 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
7056 expand possibly trapping operations.
7058 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7060 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
7061 "insn" from rtx to rtx_insn *.
7062 (permute_load): Likewise for param "insn".
7063 (permute_store): Likewise.
7064 (handle_special_swappables): Likewise for local "insn".
7065 (replace_swap_with_copy): Likewise for locals "insn" and
7067 (rs6000_analyze_swaps): Likewise for local "insn".
7069 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7071 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
7074 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7076 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
7077 "note_list" from rtx to rtx_insn *.
7078 (BB_NOTE_LIST): Replace this function and...
7079 (SET_BB_NOTE_LIST): ...this function with...
7080 (BB_NOTE_LIST): ...the former macro implementation.
7082 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
7083 local "from_start" from rtx to rtx_insn *. Strengthen param
7084 "to_endp" from rtx * to rtx_insn **.
7086 * haifa-sched.c (concat_note_lists): Likewise.
7087 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
7089 (sel_restore_notes): Likewise.
7090 (move_bb_info): Likewise.
7091 (BB_NOTE_LIST): Delete this function.
7092 (SET_BB_NOTE_LIST): Delete this function.
7093 * sel-sched.c (create_block_for_bookkeeping): Eliminate
7094 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
7096 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7098 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
7099 from rtx * to rtx_insn **.
7100 (reorder2): Likewise.
7101 (dependencies_evaluation_hook): Strengthen params "head", "tail"
7102 from rtx to rtx_insn *.
7104 * doc/tm.texi: Update mechanically for above change to target.def.
7106 * sched-int.h (note_list): Strengthen this variable from rtx to
7108 (remove_notes): Likewise for both params.
7109 (restore_other_notes): Likewise for return type and first param.
7110 (struct ready_list): Strengthen field "vec" from rtx * to
7112 (struct dep_replacement): Strenghten field "insn" from rtx to
7114 (struct deps_desc): Likewise for fields "last_debug_insn",
7116 (struct haifa_sched_info): Likewise for callback field
7117 "can_schedule_ready_p"'s param, for first param of "new_ready"
7118 callback field, for both params of "rank" callback field, for
7119 first field of "print_insn" callback field (with a const), for
7120 both params of "contributes_to_priority" callback, for param
7121 of "insn_finishes_block_p" callback, for fields "prev_head",
7122 "next_tail", "head", "tail", for first param of "add_remove_insn"
7123 callback, for first param of "begin_schedule_ready" callback, for
7124 both params of "begin_move_insn" callback, and for second param
7125 of "advance_target_bb" callback.
7126 (add_dependence): Likewise for params 1 and 2.
7127 (sched_analyze): Likewise for params 2 and 3.
7128 (deps_analyze_insn): Likewise for param 2.
7129 (ready_element): Likewise for return type.
7130 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
7131 (try_ready): Strenghten param from rtx to rtx_insn *.
7132 (sched_emit_insn): Likewise for return type.
7133 (record_delay_slot_pair): Likewise for params 1 and 2.
7134 (add_delay_dependencies): Likewise for param.
7135 (contributes_to_priority): Likewise for both params.
7136 (find_modifiable_mems): Likewise.
7138 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
7139 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
7140 "first_older_only_insn" from rtx to rtx_insn *.
7141 (arm_sched_reorder): Strengthen param "ready" from rtx * to
7144 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
7145 "last_scheduled_iter0" from rtx to rtx_insn *.
7146 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
7147 (c6x_sched_reorder_1): Strengthen param "ready" and locals
7148 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
7149 "insn" from rtx to rtx_insn *.
7150 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
7152 (c6x_sched_reorder2): Strengthen param "ready" and locals
7153 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
7154 "insn" from rtx to rtx_insn *.
7155 (c6x_variable_issue): Add a checked cast when assigning from insn
7156 to ss.last_scheduled_iter0.
7157 (split_delayed_branch): Strengthen param "insn" and local "i1"
7158 from rtx to rtx_insn *.
7159 (split_delayed_nonbranch): Likewise.
7160 (undo_split_delayed_nonbranch): Likewise for local "insn".
7161 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
7162 "entry_after", "end_packet", "head_insn", "tail_insn",
7163 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
7164 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
7165 to rtx_insn **. Remove now-redundant checked cast on last_insn,
7166 but add a checked cast on loop->start_label. Consolidate calls to
7167 avoid assigning result of gen_spkernel to "insn", now an
7170 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
7171 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
7173 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
7174 rtx_insn **. Strengthen locals "top", "next" from rtx to
7176 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
7177 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
7178 (add_parameter_dependencies): Strengthen params "call", "head" and
7179 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
7180 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
7181 (add_dependee_for_func_arg): Likewise for param "arg" and local
7183 (ix86_dependencies_evaluation_hook): Likewise for params "head",
7184 "tail" and locals "insn", "first_arg".
7186 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
7187 for params "head", "tail" and locals "insn", "next", "next_tail".
7188 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
7189 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
7190 "insn", "lowest", "highest" from rtx to rtx_insn *.
7191 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
7193 (ia64_sched_reorder2): Likewise.
7195 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
7196 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
7197 from rtx * to rtx_insn **.
7198 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
7200 (mep_print_sched_insn): Strengthen param "insn" from rtx to
7202 (mep_sched_reorder): Strengthen param "ready" from rtx * to
7203 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
7206 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
7207 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
7209 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
7210 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
7211 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
7213 (vr4130_reorder): Likewise.
7214 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
7216 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
7218 (mips_sched_reorder): Likewise.
7219 (mips_sched_reorder2): Likewise.
7221 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
7223 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
7224 Strengthen local "tmp" from rtx to rtx_insn *.
7225 (rs6000_sched_reorder2): Likewise.
7227 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
7228 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
7229 (s390_sched_reorder): Strengthen param "ready" from rtx * to
7230 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
7232 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
7233 "tmp2" from rtx to rtx_insn *.
7234 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
7235 Strengthen local "insn" from rtx to rtx_insn *.
7236 (ready_reorder): Strengthen param "ready" from rtx * to
7237 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
7238 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
7239 (sh_reorder2): Likewise.
7241 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
7242 local "insn" from rtx to rtx_insn *.
7244 * haifa-sched.c (note_list): Strengthen this variable from rtx to
7246 (scheduled_insns): Strengthen this variable from vec<rtx> to
7248 (set_modulo_params): Likewise for locals "i1", "i2".
7249 (record_delay_slot_pair): Likewise for params "i1", "i2".
7250 (add_delay_dependencies): Likewise for param "insn".
7251 (cond_clobbered_p): Likewise.
7252 (recompute_todo_spec): Likewise for local "prev".
7253 (last_scheduled_insn): Likewise for this variable.
7254 (nonscheduled_insns_begin): Likewise.
7255 (model_set_excess_costs): Strengthen param "insns" from rtx * to
7257 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
7259 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
7260 Strengthen local "insn" from rtx to rtx_insn *.
7261 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
7262 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
7263 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
7264 (ready_remove_first): Likewise for return type and local "t".
7265 (ready_element): Likewise for return type.
7266 (ready_remove): Likewise for return type and local "t".
7267 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
7268 (check_clobbered_conditions): Strengthen local "x" from rtx to
7269 rtx_insn *, adding a checked cast.
7270 (schedule_insn): Likewise for param "insn".
7271 (remove_notes): Likewise for params "head", "tail" and locals
7272 "next_tail", "insn", "next".
7273 (struct haifa_saved_data): Likewise for fields
7274 "last_scheduled_insn", "nonscheduled_insns_begin".
7275 (save_backtrack_point): Update for change to field "vec" of
7277 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
7279 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
7280 from rtx to rtx_insn *
7281 (resolve_dependencies): Strengthen param "insn" from rtx to
7283 (restore_other_notes): Likewise for return type, for param "head"
7284 and local "note_head".
7285 (undo_all_replacements): Likewise for local "insn".
7286 (first_nonscheduled_insn): Likewise for return type and local "insn".
7287 (queue_to_ready): Likewise for local "insn", adding checked casts.
7288 (early_queue_to_ready): Likewise for local "insn".
7289 (debug_ready_list_1): Strengthen local "p" from rtx * to
7291 (move_insn): Strengthen param "insn" and local "note" from rtx to
7293 (insn_finishes_cycle_p): Likewise for param "insn".
7294 (max_issue): Likewise for local "insn".
7295 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
7297 (commit_schedule): Strengthen param "prev_head" and local "insn"
7298 from rtx to rtx_insn *
7299 (prune_ready_list): Likewise for local "insn".
7300 (schedule_block): Likewise for locals "prev_head", "head", "tail",
7301 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
7302 (set_priorities): Likewise for local "prev_head".
7303 (try_ready): Likewise for param "next".
7304 (fix_tick_ready): Likewise.
7305 (change_queue_index): Likewise.
7306 (sched_extend_ready_list): Update for change to field "vec" of
7308 (generate_recovery_code): Strengthen param "insn" from rtx to
7310 (begin_speculative_block): Likewise.
7311 (create_check_block_twin): Likewise for param "insn" and locals
7312 "label", "check", "twin". Introduce local "check_pat" to avoid
7313 "check" being used as a plain rtx before being used as an insn.
7314 (fix_recovery_deps): Add a checked cast to rtx_insn * when
7315 extracting elements from ready_list.
7316 (sched_remove_insn): Strengthen param "insn" from rtx to
7318 (sched_emit_insn): Likewise for return type.
7319 (ready_remove_first_dispatch): Likewise for return type and local
7322 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
7324 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
7327 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
7328 from rtx to rtx_insn *.
7329 (add_dependence_list): Likewise for param "insn". Add a checked
7331 (add_dependence_list_and_free): Strengthen param "insn" from rtx
7332 to rtx_insn *. Strengthen param "list_p" from rtx * to
7334 (chain_to_prev_insn): Strengthen param "insn" and locals
7335 "prec_nonnote", "i" from rtx to rtx_insn *.
7336 (flush_pending_lists): Likewise for param "insn".
7337 (cur_insn): Likewise for this variable.
7338 (haifa_start_insn): Add a checked cast.
7339 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
7340 (sched_analyze_reg): Likewise for param "insn".
7341 (sched_analyze_1): Likewise.
7342 (sched_analyze_2): Likewise. Add checked casts.
7343 (sched_analyze_insn): Likewise. Also for local "prev".
7344 (deps_analyze_insn): Likewise for param "insn".
7345 (sched_analyze): Likewise for params "head", "tail" and local "insn".
7346 (add_dependence_1): Likewise for params "insn", "elem".
7347 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
7348 (parse_add_or_inc): Likewise for param "insn".
7349 (find_inc): Likewise for local "inc_cand".
7350 (find_modifiable_mems): Likewise for params "head", "tail" and
7351 locals "insn", "next_tail".
7353 * sched-ebb.c (init_ready_list): Likewise for local "insn".
7354 (begin_schedule_ready): Likewise for param "insn".
7355 (begin_move_insn): Likewise for params "insn" and "last".
7356 (ebb_print_insn): Strengthen param "insn" from const_rtx to
7358 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
7359 (ebb_contributes_to_priority): Likewise for params "next", "insn".
7360 (ebb_add_remove_insn): Likewise for param "insn".
7361 (advance_target_bb): Likewise.
7363 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
7365 (check_live): Likewise for param "insn".
7366 (init_ready_list): Likewise for local "insn".
7367 (can_schedule_ready_p): Likewise for param "insn".
7368 (begin_schedule_ready): Likewise.
7369 (new_ready): Likewise for param "next".
7370 (rgn_print_insn): Likewise for param "insn".
7371 (rgn_rank): Likewise for params "insn1", "insn2".
7372 (contributes_to_priority): Likewise for params "next", "insn".
7373 (rgn_insn_finishes_block_p): Likewise for param "insn".
7374 (add_branch_dependences): Likewise for params "head", "tail" and
7375 locals "insn", "last".
7376 (rgn_add_remove_insn): Likewise for param "insn".
7377 (advance_target_bb): Likewise.
7379 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
7380 const_rtx to const rtx_insn *.
7382 * sel-sched-dump.h (sel_print_insn): Likewise.
7384 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
7385 (deps_init_id): Likewise.
7387 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
7388 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
7391 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7393 * output.h (final_start_function): Strengthen param 1 from rtx to
7396 * final.c (final_start_function): Likewise, renaming back from
7397 "uncast_first" to "first", and dropping the checked cast from rtx
7400 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7402 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
7403 * final.c (final): Likewise. Rename param back from
7404 "uncast_first" to "first" and eliminate the checked cast from rtx
7407 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7409 * output.h (shorten_branches): Strengthen param from rtx to
7412 * final.c (shorten_branches): Likewise, renaming param back from
7413 "uncast_first" to "first", and dropping the checked cast from rtx
7416 * genattr.c (gen_attr): Likewise when writing out the prototype of
7419 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7421 * sched-int.h (struct haifa_sched_info): Strengthen fields
7422 "prev_head" and "next_tail" from rtx to rtx_insn *.
7424 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7426 * rtl.h (rtx_jump_table_data::get_labels): New method.
7427 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
7428 with use of the new rtx_jump_table_data::get_labels method.
7429 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
7430 to rtx_jump_table_data *. Simplify by using get_labels method.
7431 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
7432 a dyn_cast, introducing local "table", using it to replace
7433 label-lookup logic with a get_labels method call.
7434 (patch_jump_insn): Simplify using get_labels method.
7435 * dwarf2cfi.c (create_trace_edges): Likewise.
7436 * rtlanal.c (label_is_jump_target_p): Likewise.
7438 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7440 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
7443 * emit-rtl.c (unshare_all_rtl_1): Likewise.
7444 (unshare_all_rtl_again): Likewise, also for local "p".
7446 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7448 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
7450 * cfgrtl.c (delete_insn_and_edges): Likewise.
7452 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7454 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
7455 from rtx to rtx_insn *.
7457 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
7459 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7461 * function.c (thread_prologue_and_epilogue_insns): Likewise for
7462 locals "returnjump", "epilogue_end", "insn", "next".
7464 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
7465 "returnjump" from rtx * to rtx_insn **.
7466 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
7468 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7470 * basic-block.h (struct edge_def). Strengthen "r" within
7471 union edge_def_insns from rtx to rtx_insn *.
7473 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
7474 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
7476 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
7477 from rtx to rtx_insn *.
7478 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
7480 * postreload-gcse.c (reg_killed_on_edge): Likewise.
7481 (reg_used_on_edge): Likewise.
7482 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
7483 (gt_pch_nx): New overload for rtx_insn *&.
7484 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
7485 from rtx to rtx_insn *.
7487 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7489 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
7490 from rtx to rtx_insn *.
7491 (BB_FOOTER): Replace function with access macro.
7492 (SET_BB_FOOTER): Delete.
7494 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
7496 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
7497 (emit_barrier_after_bb): Likewise.
7498 (record_effective_endpoints): Likewise.
7499 (relink_block_chain): Likewise.
7500 (fixup_fallthru_exit_predecessor): Likewise.
7501 (cfg_layout_duplicate_bb): Likewise.
7502 (cfg_layout_split_block): Likewise.
7503 (cfg_layout_delete_block): Likewise.
7504 (cfg_layout_merge_blocks): Likewise.
7505 (BB_FOOTER): Delete function.
7506 (SET_BB_FOOTER): Delete function.
7507 * combine.c (update_cfg_for_uncondjump): Replace uses of
7508 SET_BB_FOOTER with BB_FOOTER.
7510 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7512 * except.h (struct eh_landing_pad_d): Strengthen field
7513 "landing_pad" from rtx to rtx_code_label *.
7515 * except.c (sjlj_emit_dispatch_table): Likewise for param
7517 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
7519 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7521 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
7522 first param from rtx to rtx_insn *.
7523 * config/xtensa/xtensa.c (struct machine_function): Likewise for
7524 field "set_frame_ptr_insn".
7525 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
7526 "csend" from rtx to rtx_code_label *.
7527 (xtensa_expand_atomic): Likewise for local "csloop".
7528 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
7530 (xtensa_call_tls_desc): Likewise for return type and locals
7531 "call_insn", "insns".
7532 (xtensa_legitimize_tls_address): Likewise for local "insns".
7533 (xtensa_expand_prologue): Likewise for locals "insn", "first".
7535 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7537 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
7538 first param from rtx to rtx_insn *.
7539 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
7542 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7544 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
7545 Strengthen param 1 from rtx to rtx_insn *.
7546 (tilepro_output_cbranch): Likewise.
7547 (tilepro_adjust_insn_length): Likewise.
7548 (tilepro_final_prescan_insn): Likewise for sole param.
7550 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
7551 Likewise for local "last".
7552 (cbranch_predicted_p): Likewise for param "insn".
7553 (tilepro_output_simple_cbranch_with_opcode): Likewise.
7554 (tilepro_output_cbranch_with_opcode): Likewise.
7555 (tilepro_output_cbranch): Likewise.
7556 (frame_emit_load): Likewise for return type and locals "seq",
7558 (emit_sp_adjust): Likewise for return type and local "insn".
7559 (tilepro_expand_epilogue): Likewise for locals "last_insn",
7561 (tilepro_adjust_insn_length): Likewise for param "insn".
7562 (next_insn_to_bundle): Likewise for return type and params
7564 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
7565 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
7567 (match_addli_pcrel): Likewise for param "insn".
7568 (replace_addli_pcrel): Likewise.
7569 (match_auli_pcrel): Likewise.
7570 (replace_auli_pcrel): Likewise.
7571 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
7573 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
7574 "queue", "next_queue", "prev".
7575 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
7576 (tilepro_final_prescan_insn): Likewise for param "insn".
7578 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7580 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
7581 Strengthen param 1 from rtx to rtx_insn *.
7582 (tilegx_output_cbranch): Likewise.
7583 (tilegx_adjust_insn_length): Likewise.
7584 (tilegx_final_prescan_insn): Likewise for sole param.
7586 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
7588 (cbranch_predicted_p): Likewise for param "insn".
7589 (tilegx_output_simple_cbranch_with_opcode): Likewise.
7590 (tilegx_output_cbranch_with_opcode): Likewise.
7591 (tilegx_output_cbranch): Likewise.
7592 (frame_emit_load): Likewise for return type.
7593 (set_frame_related_p): Likewise for locals "seq", "insn".
7594 (emit_sp_adjust): Likewise for return type, and for local "insn".
7595 Introduce local "pat" for use in place of "insn" where the latter
7596 isn't an instruction.
7597 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
7598 from rtx to rtx_insn *.
7599 (tilegx_adjust_insn_length): Likewise for param "insn".
7600 (next_insn_to_bundle): Likewise for return type and params "r" and
7602 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
7604 (replace_insns): Likewise for params "old_insn", "new_insns".
7605 (replace_mov_pcrel_step1): Likewise for param "insn" and local
7607 (replace_mov_pcrel_step2): Likewise.
7608 (replace_mov_pcrel_step3): Likewise.
7609 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
7611 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
7612 "queue", "next_queue", "prev".
7613 (tilegx_output_mi_thunk): Likewise for local "insn".
7614 (tilegx_final_prescan_insn): Likewise for param "insn".
7616 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7618 * config/spu/spu.c (frame_emit_store): Strengthen return type from
7620 (frame_emit_load): Likewise.
7621 (frame_emit_add_imm): Likewise, also for local "insn".
7622 (spu_expand_prologue): Likewise for local "insn".
7623 (struct spu_bb_info): Likewise for field "prop_jump".
7624 (emit_nop_for_insn): Likewise for param "insn" and local
7626 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
7628 (spu_emit_branch_hint): Likewise for params "before", "branch" and
7629 locals "hint", "insn".
7630 (get_branch_target): Likewise for param "branch".
7631 (insn_clobbers_hbr): Likewise for param "insn".
7632 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
7633 locals "insn", "before_4", "before_16".
7634 (insert_hbrp): Likewise for local "insn".
7635 (spu_machine_dependent_reorg): Likewise for locals "branch",
7636 "insn", "next", "bbend".
7637 (uses_ls_unit): Likewise for param "insn".
7638 (get_pipe): Likewise.
7639 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
7640 introducing a checked cast.
7641 (spu_sched_adjust_cost): Likewise for params "insn" and
7643 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
7644 (spu_sms_res_mii): Likewise.
7646 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7648 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
7649 from rtx to rtx_insn *.
7650 (output_cbranch): Likewise for param 6.
7651 (output_return): Likewise for param 1.
7652 (output_sibcall): Likewise.
7653 (output_v8plus_shift): Likewise.
7654 (output_v8plus_mult): Likewise.
7655 (output_v9branch): Likewise for param 7.
7656 (output_cbcond): Likewise for param 3.
7658 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
7660 (sparc_legitimize_pic_address): Likewise.
7661 (sparc_emit_call_insn): Likewise.
7662 (emit_save_or_restore_regs): Likewise.
7663 (emit_window_save): Likewise for return type and local "insn".
7664 (sparc_expand_prologue): Likewise for local "insn".
7665 (sparc_flat_expand_prologue): Likewise.
7666 (output_return): Likewise for param "insn".
7667 (output_sibcall): Likewise for param "insn" and local "delay".
7668 (output_ubranch): Likewise for param "insn".
7669 (output_cbranch): Likewise.
7670 (output_cbcond): Likewise.
7671 (output_v9branch): Likewise.
7672 (output_v8plus_shift): Likewise.
7673 (sparc_output_mi_thunk): Likewise for local "insn".
7674 (get_some_local_dynamic_name): Likewise.
7675 (output_v8plus_mult): Likewise for param "insn".
7677 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7679 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
7680 from rtx to rtx_insn *.
7681 (output_branchy_insn): Likewise for param 3.
7682 (output_far_jump): Likewise for param 1.
7683 (final_prescan_insn): Likewise.
7684 (sh_insn_length_adjustment): Likewise for sole param.
7686 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
7687 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
7689 (sh_emit_compare_and_set): Likewise for local "lab".
7690 (output_far_jump): Strengthen param "insn" and local "prev" from
7692 (output_branchy_insn): Likewise for param "insn" and local
7694 (output_ieee_ccmpeq): Likewise for param "insn".
7695 (struct label_ref_list_d): Strengthen field "label" from rtx to
7697 (pool_node): Likewise.
7698 (pool_window_label): Likewise for this global.
7699 (add_constant): Likewise for return type and locals "lab", "new_rtx".
7700 (dump_table): Strengthen params "start", "barrier" and local
7701 "scan" from rtx to rtx_insn *.
7702 (broken_move): Likewise for param "insn".
7703 (untangle_mova): Likewise for params "first_mova" and "new_mova".
7704 Strengthen param "first_mova" from rtx * to rtx_insn **.
7705 (mova_p): Likewise for param "insn".
7706 (fixup_mova): Likewise for param "mova".
7707 (find_barrier): Likewise for return type, params "mova" and
7708 "from", and locals "barrier_before_mova", "found_barrier",
7709 "good_barrier", "orig", "last_symoff", "next". Strengthen local
7710 "label" from rtx to rtx_code_label *.
7711 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
7713 (sh_reorg): Likewise for locals "link", "scan", "barrier".
7714 (split_branches): Likewise for param "first" and local "insn".
7715 (final_prescan_insn): Likewise for param "insn".
7716 (sequence_insn_p): Likewise for locals "prev", "next".
7717 (sh_insn_length_adjustment): Likewise for param "insn".
7718 (sh_can_redirect_branch): Likewise for local "insn".
7719 (find_r0_life_regions): Likewise for locals "end", "insn".
7720 (sh_output_mi_thunk): Likewise for local "insns".
7722 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7724 * config/score/score.c (score_output_mi_thunk): Strengthen local
7725 "insn" from rtx to rtx_insn *.
7726 (score_prologue): Likewise.
7728 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7730 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
7731 1 from rtx to rtx_insn *.
7732 (s390_emit_jump): Likewise for return type.
7733 (s390_emit_call): Likewise.
7734 (s390_load_got): Likewise.
7736 * config/s390/s390.c (last_scheduled_insn): Likewise for this
7738 (s390_match_ccmode): Likewise for param "insn".
7739 (s390_emit_jump): Likewise for return type.
7740 (s390_split_branches): Likewise for local "label".
7741 (struct constant): Strengthen field "label" from rtx to
7743 (struct constant_pool): Likewise for field "label". Strengthen
7744 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
7746 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
7748 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
7749 (s390_end_pool): Likewise.
7750 (s390_dump_pool): Likewise for local "insn".
7751 (s390_mainpool_start): Likewise.
7752 (s390_chunkify_start): Likewise.
7753 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
7754 with insns. Strengthen locals "label", "jump", "barrier", "next",
7755 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
7756 (s390_chunkify_finish): Strengthen local "insn" from rtx to
7758 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
7759 "jump", "label", "next_insn".
7760 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
7761 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
7763 (s390_load_got): Likewise for return type and local "insns".
7764 (s390_save_gprs_to_fprs): Likewise for local "insn".
7765 (s390_restore_gprs_from_fprs): Likewise.
7766 (pass_s390_early_mach::execute): Likewise.
7767 (s390_emit_prologue): Likewise for local "insns".
7768 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
7770 (s390_emit_call): Strengthen return type and local "insn" from
7772 (s390_emit_tpf_eh_return): Likewise for local "insn".
7773 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
7774 "next_insn", introducing locals "s_pat", "rpat" to allow this.
7775 (s390_fix_long_loop_prediction): Likewise for param "insn" and
7777 (s390_non_addr_reg_read_p): Likewise for param "insn".
7778 (find_cond_jump): Likewise for return type and param "insn".
7779 (s390_swap_cmp): Likewise for param "insn".
7780 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
7781 "prev_insn", "next_insn".
7782 (s390_reorg): Likewise for locals "insn", "target".
7783 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
7784 (s390_sched_variable_issue): For now, rename param "insn" to
7785 "uncast_insn", introducing a checked cast.
7786 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
7788 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
7789 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
7791 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7793 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
7794 param from rtx to rtx_insn *.
7795 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
7797 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7799 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
7800 4 from rtx to rtx_insn *.
7801 (rs6000_final_prescan_insn): Likewise for first param.
7802 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
7804 (rs6000_get_some_local_dynamic_name): Likewise.
7805 (output_cbranch): Likewise for param "insn".
7806 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
7807 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
7808 (rs6000_emit_allocate_stack): Likewise for local "insn".
7809 (load_cr_save): Likewise.
7810 (restore_saved_cr): Likewise.
7811 (restore_saved_lr): Likewise.
7812 (emit_cfa_restores): Likewise.
7813 (rs6000_output_function_epilogue): Likewise for locals "insn" and
7814 "deleted_debug_label".
7815 (rs6000_output_mi_thunk): Likewise for local "insn".
7816 (rs6000_final_prescan_insn): Likewise for param "insn".
7818 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7820 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
7821 Strengthen param "insn" from rtx to rtx_insn *.
7822 * config/picochip/picochip.c (picochip_current_prescan_insn):
7823 Likewise for this variable.
7824 (picochip_final_prescan_insn): Likewise for param "insn".
7826 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7828 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
7829 from rtx to rtx_insn *.
7830 (pa_output_indirect_call): Likewise.
7831 (pa_adjust_insn_length): Likewise.
7832 (pa_attr_length_millicode_call): Likewise.
7833 (pa_attr_length_call): Likewise.
7834 (pa_attr_length_indirect_call): Likewise.
7836 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
7838 (pa_attr_length_millicode_call): Likewise.
7839 (pa_attr_length_call): Likewise.
7840 (pa_output_call): Likewise.
7841 (pa_attr_length_indirect_call): Likewise.
7842 (pa_output_indirect_call): Likewise.
7844 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7846 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
7847 Strengthen first param from rtx to rtx_insn *.
7848 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
7851 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7853 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
7854 type from rtx to rtx_insn *.
7855 (mips_expand_call): Likewise.
7856 (mips_adjust_insn_length): Likewise for first param.
7857 (mips_output_conditional_branch): Likewise.
7858 (mips_output_order_conditional_branch): Likewise.
7859 (mips_final_prescan_insn): Likewise.
7861 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
7862 rtx_insn * for the SEQUENCE case.
7863 (SEQ_END): Likewise.
7864 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
7865 (mips_emit_call_insn): Likewise, also for local "insn".
7866 (mips16_gp_pseudo_reg): Likewise for local "scan".
7867 (mips16_build_call_stub): Likewise for return type and for local
7868 "insn". Introduce a new local "pattern" so that "insn" can indeed
7870 (mips_expand_call): Strengthen return type and local "insn" from
7872 (mips_block_move_loop): Strengthen local "label" from rtx to
7874 (mips_expand_synci_loop): Likewise for locals "label",
7876 (mips_set_frame_expr): Strengthen local "insn" from rtx to
7878 (mips16e_collect_argument_saves): Likewise for locals "insn",
7880 (mips_find_gp_ref): Likewise for param of callback for "pred"
7881 param, and for local "insn".
7882 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
7883 (mips_insn_has_flexible_gp_ref_p): Likewise.
7884 (mips_epilogue_emit_cfa_restores): Likewise for return type and
7886 (mips_epilogue_set_cfa): Likewise for local "insn".
7887 (mips_expand_epilogue): Likewise.
7888 (mips_adjust_insn_length): Likewise for param "insn".
7889 (mips_output_conditional_branch): Likewise.
7890 (mips_output_order_conditional_branch): Likewise.
7891 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
7892 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
7893 "falu2_turn_enabled_insn".
7894 (mips_builtin_branch_and_move): Strengthen locals "true_label",
7895 "done_label" from rtx to rtx_code_label *.
7896 (struct mips16_constant): Likewise for field "label".
7897 (mips16_add_constant): Likewise for return type.
7898 (mips16_emit_constants_1): Strengthen return type and param "insn"
7899 from rtx to rtx_insn *.
7900 (mips16_emit_constants): Likewise for param "insn".
7901 (mips16_insn_length): Likewise.
7902 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
7903 to rtx_code_label *.
7904 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
7905 from rtx to rtx_insn *.
7906 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
7907 "jump". Strengthen local "label" from rtx to rtx_code_label *.
7908 (r10k_simplify_address): Strengthen param "insn" and local
7909 "def_insn" from rtx to rtx_insn *.
7910 (r10k_safe_address_p): Strengthen param "insn" from rtx to
7912 (r10k_needs_protection_p_1): Update target type of cast of data
7913 from to rtx to rtx_insn *.
7914 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
7915 rtx * to rtx_insn **.
7916 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
7918 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
7919 (mips_call_expr_from_insn): Likewise for param "insn".
7920 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
7921 (mips_find_pic_call_symbol): Likewise for param "insn".
7922 (mips_annotate_pic_calls): Likewise for local "insn".
7923 (mips_sim_insn): Likewise for this variable.
7924 (struct mips_sim): Likewise for field "insn" within elements of
7926 (mips_sim_wait_reg): Likewise for param "insn".
7927 (mips_sim_wait_regs): Likewise.
7928 (mips_sim_wait_units): Likewise.
7929 (mips_sim_wait_insn): Likewise.
7930 (mips_sim_issue_insn): Likewise.
7931 (mips_sim_finish_insn): Likewise.
7932 (mips_seq_time): Likewise for param "seq" and local "insn".
7933 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
7934 locals "first", "second".
7935 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
7936 "last", "last2", "next".
7937 (mips_avoid_hazard): Likewise for params "after", "insn".
7938 (mips_reorg_process_insns): Likewise for locals "insn",
7939 "last_insn", "subinsn", "next_insn".
7940 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
7941 (mips16_split_long_branches): Likewise for locals "insn" "jump",
7943 (mips_output_mi_thunk): Likewise for local "insn".
7944 (mips_final_prescan_insn): Likewise for param "insn".
7946 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7948 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
7949 Strengthen return type and local "insns" from rtx to rtx_insn *.
7950 (microblaze_legitimize_tls_address): Likewise for local "insns".
7951 (microblaze_block_move_loop): Strengthen local "label" from rtx
7952 to rtx_code_label *.
7953 (microblaze_expand_prologue): Strengthen two locals named "insn"
7954 from rtx to rtx_insn *.
7955 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
7956 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
7957 "insn". Strengthen locals "div_label", "div_end_label" from rtx
7958 to rtx_code_label *.
7960 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7962 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
7963 param from rtx to rtx_insn *.
7964 (mep_reuse_lo): Likewise for third param.
7965 (mep_use_post_modify_p): Likewise for first param.
7966 (mep_core_address_length): Likewise.
7967 (mep_cop_address_length): Likewise.
7968 (mep_final_prescan_insn): Likewise.
7969 (mep_store_data_bypass_p): Likewise for both params.
7970 (mep_mul_hilo_bypass_p): Likewise.
7971 (mep_ipipe_ldc_p): Likewise for param.
7973 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
7974 (mep_rewrite_mult): Likewise.
7975 (mep_rewrite_mulsi3): Likewise.
7976 (mep_rewrite_maddsi3): Likewise.
7977 (mep_reuse_lo_p_1): Likewise.
7978 (mep_reuse_lo_p): Likewise.
7979 (mep_frame_expr): Likewise.
7980 (mep_make_parallel): Likewise for both params.
7981 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
7983 (mep_use_post_modify_p): Likewise for param "insn".
7984 (mep_core_address_length): Likewise.
7985 (mep_cop_address_length): Likewise.
7986 (mep_reg_set_in_function): Likewise for local "insn".
7987 (mep_asm_without_operands_p): Likewise.
7988 (F): Likewise for return type and param "x".
7989 (add_constant): Likewise for local "insn".
7990 (maybe_dead_move): Likewise for return type and local "insn".
7991 (mep_expand_prologue): Likewise for local "insn".
7992 (mep_final_prescan_insn): Likewise for param "insn".
7993 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
7994 "next", "follow", "x".
7995 (mep_insert_repeat_label_last): Likewise for return type, param
7996 "last_insn", and locals "next", "prev". Strengthen param "label"
7997 from rtx to rtx_code_label *.
7998 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
8000 (struct mep_doloop_end): Likewise for fields "insn" and
8002 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
8003 Strengthen local "repeat_label" from rtx to rtx_code_label *.
8004 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
8006 (mep_invert_branch): Likewise for params "insn" and "after".
8007 (mep_reorg_erepeat): Likewise for param "insns" and locals
8008 "insn", "prev", "new_last", "barrier", "user". Strengthen local
8009 "l" from rtx to rtx_code_label *.
8010 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
8011 from rtx to rtx_insn *.
8012 (mep_reorg_addcombine): Likewise for param "insns" and locals
8014 (add_sp_insn_p): Likewise for param "insn".
8015 (mep_reorg_noframe): Likewise for param "insns" and locals
8016 "start_frame_insn", "end_frame_insn", "next".
8017 (mep_reorg): Likewise for local "insns".
8018 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
8020 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
8021 (mep_mul_hilo_bypass_p): Likewise.
8022 (mep_ipipe_ldc_p): Likewise for param "insn".
8023 (mep_make_bundle): Likewise for return type, param "cop" and local
8024 "insn", splitting out the latter into a new local "seq" for when it
8025 is a SEQUENCE rather than an insn.
8026 (core_insn_p): Likewise for param "insn".
8027 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
8028 "last", "first", "note", "prev", "core_insn".
8030 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8032 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
8034 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
8035 (m68k_final_prescan_insn): Likewise for first param.
8037 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
8038 (m68k_set_frame_related): Likewise for param "insn".
8039 (output_btst): Likewise for param "insn".
8040 (m68k_final_prescan_insn): Likewise.
8041 (m68k_move_to_reg): Likewise for local "insn".
8042 (m68k_call_tls_get_addr): Likewise for local "insns".
8043 (m68k_call_m68k_read_tp): Likewise.
8044 (strict_low_part_peephole_ok): Likewise for param "first_insn".
8045 (m68k_output_mi_thunk): Likewise for local "insn".
8047 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8049 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
8050 first param from rtx to rtx_insn *.
8051 (iq2000_adjust_insn_length): Likewise.
8052 (iq2000_output_conditional_branch): Likewise.
8053 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
8054 "insn" and local "nop_insn".
8055 (iq2000_annotate_frame_insn): Likewise for param "insn".
8056 (iq2000_expand_prologue): Likewise for both locals "insn".
8057 (iq2000_adjust_insn_length): Likewise for param "insn".
8058 (iq2000_output_conditional_branch): Likewise.
8060 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8062 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
8063 "insns" from rtx to rtx_insn *.
8064 (ia64_emit_cond_move): Likewise for locals "insn", "first".
8065 (struct spill_fill_data): Likewise for field "init_after" and for
8066 elements of array field "prev_insn".
8067 (spill_restore_mem): Likewise for locals "insn", "first".
8068 (do_spill): Likewise for local "insn".
8069 (do_restore): Likewise.
8070 (ia64_expand_prologue): Likewise.
8071 (ia64_expand_epilogue): Likewise.
8072 (emit_insn_group_barriers): Likewise for locals "insn",
8074 (emit_all_insn_group_barriers): Likewise for locals "insn",
8076 (dfa_stop_insn): Likewise for this global.
8077 (dfa_pre_cycle_insn): Likewise.
8078 (ia64_nop): Likewise.
8079 (final_emit_insn_group_barriers): Likewise for locals "insn",
8081 (emit_predicate_relation_info): Likewise for locals "head", "n",
8083 (ia64_reorg): Likewise for local "insn".
8084 (ia64_output_mi_thunk): Likewise.
8085 (expand_vec_perm_interleave_2): Likewise for local "seq".
8087 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8089 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
8090 param 1 "insn" from rtx to rtx_insn *.
8091 (ix86_use_lea_for_mov): Likewise.
8092 (ix86_avoid_lea_for_addr): Likewise.
8093 (ix86_split_lea_for_addr): Likewise.
8094 (ix86_lea_for_add_ok): Likewise.
8095 (ix86_output_call_insn): Likewise.
8097 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
8098 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
8099 (ix86_output_function_epilogue): Likewise for locals "insn",
8100 "deleted_debug_label".
8101 (legitimize_tls_address): Likewise for local "insn".
8102 (get_some_local_dynamic_name): Likewise.
8103 (increase_distance): Likewise for params "prev", "next".
8104 (distance_non_agu_define_in_bb): Likewise for params "insn",
8105 "start" and locals "prev", "next".
8106 (distance_non_agu_define): Likewise for param "insn".
8107 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
8108 locals "next", "prev".
8109 (distance_agu_use): Likewise for param "insn".
8110 (ix86_lea_outperforms): Likewise.
8111 (ix86_ok_to_clobber_flags): Likewise.
8112 (ix86_avoid_lea_for_add): Likewise.
8113 (ix86_use_lea_for_mov): Likewise.
8114 (ix86_avoid_lea_for_addr): Likewise.
8115 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
8116 (ix86_split_lea_for_addr): Likewise for param "insn".
8117 (ix86_lea_for_add_ok): Likewise for param "insn".
8118 (ix86_expand_carry_flag_compare): Likewise for local
8120 (ix86_expand_int_movcc): Likewise.
8121 (ix86_output_call_insn): Likewise for param "insn".
8122 (ix86_output_call_insn): Likewise for local "i".
8123 (x86_output_mi_thunk): Introduce local "insn", using it in place
8124 of "tmp" when dealing with insns.
8125 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
8127 (ix86_pad_returns): Likewise for locals "ret", "prev".
8128 (ix86_count_insn_bb): Likewise for local "insn".
8129 (ix86_pad_short_function): Likewise for locals "ret", "insn".
8130 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
8131 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
8132 (expand_vec_perm_interleave2): Likewise for local "seq".
8133 (expand_vec_perm_vperm2f128_vblend): Likewise.
8134 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
8135 call to for_each_rtx with for_each_rtx_in_insn.
8137 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8139 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
8140 "label" from rtx to rtx_code_label *.
8141 (ix86_expand_prologue): Likewise.
8142 (ix86_expand_split_stack_prologue): Likewise for locals "label",
8144 (ix86_split_idivmod): Likewise for locals "end_label" and
8146 (ix86_expand_branch): Likewise for local "label2".
8147 (ix86_expand_aligntest): Likewise for return type and local "label".
8148 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
8150 (expand_movmem_epilogue): Likewise for the various locals named
8152 (expand_setmem_epilogue): Likewise.
8153 (expand_small_movmem_or_setmem): Likewise for local "label".
8154 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
8155 Strengthen param "done_label" from rtx * to rtx_code_label **.
8156 Strengthen locals "loop_label" and "label" from rtx to
8158 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
8159 Likewise for locals "loop_label", "label".
8160 (ix86_expand_set_or_movmem): Likewise for locals "label",
8161 "jump_around_label", "hot_label".
8162 (ix86_expand_strlensi_unroll_1): Likewise for locals
8163 "align_2_label", align_3_label", "align_4_label", "end_0_label",
8165 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
8166 (void ix86_emit_i387_log1p): Likewise for locals "label1",
8167 "label2", "jump_label".
8168 (ix86_expand_sse_compare_and_jump): Likewise for return type and
8170 (ix86_expand_lfloorceil): Likewise for local "label".
8171 (ix86_expand_rint): Likewise.
8172 (ix86_expand_floorceildf_32): Likewise.
8173 (ix86_expand_floorceil): Likewise.
8174 (ix86_expand_rounddf_32): Likewise.
8175 (ix86_expand_trunc): Likewise.
8176 (ix86_expand_truncdf_32): Likewise.
8177 (ix86_expand_round): Likewise.
8179 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8181 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
8182 first param from rtx to rtx_insn *.
8183 (h8300_insn_length_from_table): Likewise.
8184 * config/h8300/h8300.c (F): Likewise for return type and param
8186 (Fpa): Add a checked cast to rtx_insn *.
8187 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
8189 (final_prescan_insn): Likewise for param "insn".
8190 (h8300_binary_length): Likewise.
8191 (h8300_insn_length_from_table): Likewise.
8193 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8195 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
8196 Strengthen first param "insn" from rtx to rtx_insn *.
8198 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
8200 (frame_insn): Likewise for return type. Introduce local "insn"
8201 for use in place of local "x" for use as an rtx_insn *.
8202 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
8203 (epiphany_expand_prologue): Likewise for local "insn".
8204 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
8205 * config/epiphany/resolve-sw-modes.c
8206 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
8209 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8211 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
8212 param from rtx to rtx_insn *.
8213 (c6x_final_prescan_insn): Likewise for first param.
8215 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
8216 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
8217 (c6x_expand_compare): Strengthen local "insns" from rtx to
8219 (c6x_get_unit_specifier): Likewise for param "insn".
8220 (c6x_print_unit_specifier_field): Likewise.
8221 (c6x_final_prescan_insn): Likewise.
8222 (emit_add_sp_const): Likewise for local "insn".
8223 (c6x_expand_prologue): Likewise.
8225 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8227 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
8228 param 1 from rtx to rtx_insn *.
8229 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
8230 the various locals named "insn".
8231 (expand_epilogue_reg_restore): Likewise.
8232 (frame_related_constant_load): Likewise.
8233 (add_to_reg): Likewise.
8234 (emit_link_insn): Likewise.
8235 (do_link): Likewise.
8236 (expand_interrupt_handler_prologue): Likewise.
8237 (branch_dest): Likewise for param "branch".
8238 (asm_conditional_branch): Likewise for param "insn".
8239 (gen_one_bundle): Likewise for elements of param "slot" and local
8241 (bfin_gen_bundles): Likewise for locals "insn", "next" and
8242 elements of local "slot".
8243 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
8244 "queue", "next_queue", "prev".
8245 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
8246 (add_sched_insns_for_speculation): Likewise for local "insn".
8248 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8250 * config/avr/avr-protos.h (output_movqi): Strengthen first param
8251 from rtx to rtx_insn *.
8252 (output_movhi): Likewise.
8253 (output_movsisf): Likewise.
8254 (avr_out_tstsi): Likewise.
8255 (avr_out_tsthi): Likewise.
8256 (avr_out_tstpsi): Likewise.
8257 (avr_out_compare): Likewise.
8258 (avr_out_compare64): Likewise.
8259 (avr_out_movpsi): Likewise.
8260 (ashlqi3_out): Likewise.
8261 (ashlhi3_out): Likewise.
8262 (ashlsi3_out): Likewise.
8263 (ashrqi3_out): Likewise.
8264 (ashrhi3_out): Likewise.
8265 (ashrsi3_out): Likewise.
8266 (lshrqi3_out): Likewise.
8267 (lshrhi3_out): Likewise.
8268 (lshrsi3_out): Likewise.
8269 (avr_out_ashlpsi3): Likewise.
8270 (avr_out_ashrpsi3): Likewise.
8271 (avr_out_lshrpsi3): Likewise.
8272 (avr_out_fract): Likewise.
8273 (avr_out_sbxx_branch): Likewise.
8274 (avr_out_round): Likewise.
8275 (avr_out_xload): Likewise.
8276 (avr_out_movmem): Likewise.
8277 (adjust_insn_length): Likewise.
8278 (avr_out_lpm): Likewise.
8279 (reg_unused_after): Likewise.
8280 (_reg_unused_after): Likewise.
8281 (avr_jump_mode): Likewise for second param.
8282 (jump_over_one_insn): Likewise for first param.
8283 (avr_final_prescan_insn): Likewise.
8284 (out_shift_with_cnt): Likewise for second param.
8286 * config/avr/avr.c (get_sequence_length): Likewise for param
8287 "insns" and local "insn".
8288 (emit_push_byte): Likewise for local "insn".
8289 (emit_push_sfr): Likewise.
8290 (avr_prologue_setup_frame): Likewise for locals "insn",
8291 "fp_plus_insns", "sp_plus_insns".
8292 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
8294 (avr_jump_mode): Likewise for param "insn".
8295 (avr_final_prescan_insn): Likewise.
8296 (avr_find_unused_d_reg): Likewise.
8297 (avr_out_lpm_no_lpmx): Likewise.
8298 (avr_out_lpm): Likewise.
8299 (avr_out_xload): Likewise.
8300 (output_movqi): Likewise.
8301 (output_movhi): Likewise.
8302 (out_movqi_r_mr): Likewise.
8303 (out_movhi_r_mr): Likewise.
8304 (out_movsi_r_mr): Likewise.
8305 (out_movsi_mr_r): Likewise.
8306 (output_movsisf): Likewise.
8307 (avr_out_load_psi): Likewise.
8308 (avr_out_store_psi): Likewise.
8309 (avr_out_movpsi): Likewise.
8310 (out_movqi_mr_r): Likewise.
8311 (avr_out_movhi_mr_r_xmega): Likewise.
8312 (out_movhi_mr_r): Likewise.
8313 (compare_condition): Likewise for param "insn" and local "next".
8314 (compare_sign_p): Likewise for param "insn".
8315 (compare_diff_p): Likewise.
8316 (compare_eq_p): Likewise.
8317 (avr_out_compare): Likewise.
8318 (avr_out_compare64): Likewise.
8319 (avr_out_tsthi): Likewise.
8320 (avr_out_tstpsi): Likewise.
8321 (avr_out_tstsi): Likewise.
8322 (out_shift_with_cnt): Likewise.
8323 (ashlqi3_out): Likewise.
8324 (ashlhi3_out): Likewise.
8325 (avr_out_ashlpsi3): Likewise.
8326 (ashlsi3_out): Likewise.
8327 (ashrqi3_out): Likewise.
8328 (ashrhi3_out): Likewise.
8329 (avr_out_ashrpsi3): Likewise.
8330 (ashrsi3_out): Likewise.
8331 (lshrqi3_out): Likewise.
8332 (lshrhi3_out): Likewise.
8333 (avr_out_lshrpsi3): Likewise.
8334 (lshrsi3_out): Likewise.
8335 (avr_out_fract): Likewise.
8336 (avr_out_round): Likewise.
8337 (avr_adjust_insn_length): Likewise.
8338 (reg_unused_after): Likewise.
8339 (_reg_unused_after): Likewise.
8340 (avr_compare_pattern): Likewise.
8341 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
8342 and locals "branch1", "branch2", "insn2", "jump".
8343 (avr_reorg): Likewise for local "insn".
8344 (avr_2word_insn_p): Likewise for param "insn".
8345 (jump_over_one_insn_p): Likewise.
8346 (avr_out_sbxx_branch): Likewise.
8347 (avr_out_movmem): Likewise.
8349 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8351 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
8352 param from rtx to rtx_insn *.
8353 (thumb1_final_prescan_insn): Likewise.
8354 (thumb2_final_prescan_insn): Likewise.
8356 * config/arm/arm.c (emit_set_insn): Strengthen return type from
8358 (struct minipool_node): Likewise for field "insn".
8359 (dump_minipool): Likewise for param "scan".
8360 (create_fix_barrier): Likewise for local "from". Strengthen local
8361 "label" from rtx to rtx_code_label *.
8362 (push_minipool_barrier): Strengthen param "insn" from rtx to
8364 (push_minipool_fix): Likewise.
8365 (note_invalid_constants): Likewise.
8366 (thumb2_reorg): Likewise for local "insn".
8367 (arm_reorg): Likewise.
8368 (thumb2_final_prescan_insn): Likewise for param
8369 "insn" and local "first_insn".
8370 (arm_final_prescan_insn): Likewise for param "insn" and locals
8371 "start_insn", "this_insn".
8372 (arm_debugger_arg_offset): Likewise for param "insn".
8373 (thumb1_emit_multi_reg_push): Likewise for return type and local
8375 (thumb1_final_prescan_insn): Likewise for param "insn".
8376 (thumb_far_jump_used_p): Likewise for local "insn".
8377 (thumb1_expand_prologue): Likewise.
8378 (arm_expand_epilogue_apcs_frame): Likewise.
8379 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
8380 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
8381 from rtx to rtx_code_label *.
8382 (arm_split_atomic_op): Likewise for local "label".
8383 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
8385 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8387 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
8388 first param from rtx to rtx_insn *.
8389 (arc_verify_short): Likewise.
8390 (arc_short_long): Likewise.
8391 (arc_need_delay): Likewise.
8393 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
8395 (arc_ccfsm_advance): Likewise for param "insn" and locals
8396 "start_insn", "this_insn".
8397 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
8398 (arc_ccfsm_post_advance): Likewise for param "insn".
8399 (arc_next_active_insn): Likewise for return type and param "insn".
8400 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
8401 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
8402 (output_short_suffix): Likewise for local "insn".
8403 (arc_final_prescan_insn): Likewise for param "insn". Remove
8404 now-redundant checked cast.
8405 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
8406 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
8407 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
8408 for use where lc_set became an insn.
8409 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
8411 (arc_get_insn_variants): Likewise for local "prev".
8412 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
8414 (arc_predicate_delay_insns): Likewise for local "insn".
8415 (arc_pad_return): Likewise for local "prev". For now, add a
8416 checked cast when extracting the insn from "final_sequence".
8417 (arc_short_long): Likewise for param "insn".
8418 (arc_need_delay): Likewise for param "insn" and local "next".
8419 (arc_label_align): Likewise for locals "prev", "next".
8421 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8423 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
8424 "insn" from rtx to rtx_insn *.
8425 (alpha_gp_save_rtx): Likewise for local "seq".
8426 (alpha_instantiate_decls): Likewise for local "top".
8427 (get_some_local_dynamic_name): Likewise for local "insn".
8428 (alpha_does_function_need_gp): Likewise.
8429 (set_frame_related_p): Likewise for return type and for locals
8431 (emit_frame_store_1): Likewise for local "insn".
8432 (alpha_expand_prologue): Likewise for locals "insn", "seq".
8433 (alpha_end_function): Likewise for local "insn".
8434 (alpha_output_mi_thunk_osf): Likewise.
8435 (alphaev4_insn_pipe): Likewise for param "insn".
8436 (alphaev5_insn_pipe): Likewise.
8437 (alphaev4_next_group): Likewise for return type and param 1
8439 (alphaev5_next_group): Likewise.
8440 (alpha_align_insns_1): Likewise for return type and param 1 of
8441 callback param "next_group", and for locals "i", "next", "prev",
8442 "where", "where2", "insn".
8444 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
8446 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
8447 rather than modifying the stmt.
8449 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8451 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
8452 cgraph_state conversion.
8454 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8456 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
8457 Strengthen local "insns" from rtx to rtx_insn *.
8458 (aarch64_set_frame_expr): Likewise for local "insn".
8459 (aarch64_save_or_restore_fprs): Likewise.
8460 (aarch64_save_or_restore_callee_save_registers): Likewise.
8461 (aarch64_expand_prologue): Likewise.
8462 (aarch64_expand_epilogue): Likewise.
8463 (aarch64_output_mi_thunk): Likewise.
8464 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
8465 "label2" from rtx to rtx_code_label *.
8466 (aarch64_split_atomic_op): Likewise for local "label".
8468 2014-08-25 Martin Liska <mliska@suse.cz>
8470 * cgraph.h (symtab_node):
8471 (bool needed_p (void)): created from decide_is_symbol_needed
8472 (bool referred_to_p (void)): created from referred_to_p
8473 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
8474 * cgraph.h (cgraph_node):
8475 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
8476 (void expand (void)): created from expand_function
8477 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
8478 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
8479 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
8480 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
8481 * cgraph.h (varpool_node):
8482 (static void add (tree decl): created from varpool_add_new_variable
8483 * cgraph.h (cgraph_edge):
8485 (void remove_caller (void)): created from cgraph_edge_remove_caller
8486 (void remove_callee (void)): created from cgraph_edge_remove_callee
8487 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
8488 created from cgraph_set_call_stmt
8489 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
8490 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
8491 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
8492 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
8493 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
8494 created from cgraph_speculative_call_info
8495 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
8496 int freq_scale, bool update_original)): created from cgraph_clone_edge
8497 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
8498 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
8499 (bool recursive_p (void)): created from cgraph_edge_recursive_p
8500 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
8501 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
8502 (static void rebuild_references (void)): created from cgraph_rebuild_references
8503 * cgraph.h (symbol_table):
8504 (create_reference): renamed from add_reference
8505 (maybe_create_reference): renamed from maybe_add_reference
8506 (void register_symbol (symtab_node *node)): new function
8507 (void clear_asm_symbols (void)): new function
8508 (void unregister (symtab_node *node)): new function
8509 (void release_symbol (cgraph_node *node, int uid)): new function
8510 (cgraph_node * allocate_cgraph_symbol (void)): new function
8511 (void initialize (void)): created from cgraph_init
8512 (symtab_node *first_symbol (void)):new function
8513 (asm_node *first_asm_symbol (void)):new function
8514 (symtab_node *first_defined_symbol (void)):new function
8515 (varpool_node *first_variable (void)):new function
8516 (varpool_node *next_variable (varpool_node *node)):new function
8517 (varpool_node *first_static_initializer (void)):new function
8518 (varpool_node *next_static_initializer (varpool_node *node)):new function
8519 (varpool_node *first_defined_variable (void)):new function
8520 (varpool_node *next_defined_variable (varpool_node *node)):new function
8521 (cgraph_node *first_defined_function (void)):new function
8522 (cgraph_node *next_defined_function (cgraph_node *node)):new function
8523 (cgraph_node *first_function (void)):new function
8524 (cgraph_node *next_function (cgraph_node *node)):new function
8525 (cgraph_node *first_function_with_gimple_body (void)):new function
8526 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
8527 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
8528 created from symtab_remove_unreachable_nodes
8529 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
8530 (void process_new_functions (void)): created from cgraph_process_new_functions
8531 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
8532 (bool output_variables (void)): created from varpool_node::output_variables
8533 (void output_asm_statements (void)): created from output_asm_statements
8534 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
8535 (void compile (void)): created from compile
8536 (void output_weakrefs (void)): created from output_weakrefs
8537 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
8538 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
8539 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
8540 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
8541 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
8542 created from cgraph_next_function_with_gimple_body
8543 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
8544 created from cgraph_remove_edge_removal_hook
8545 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
8546 created from cgraph_add_node_removal_hook
8547 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
8548 created from cgraph_remove_node_removal_hook
8549 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
8550 created from varpool_add_node_removal_hook
8551 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
8552 created from varpool_remove_node_removal_hook
8553 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
8554 created from cgraph_add_function_insertion_hook
8555 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
8556 created from cgraph_remove_function_insertion_hook
8557 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
8558 created from varpool_add_variable_insertion_hook
8559 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
8560 created from varpool_remove_variable_insertion_hook
8561 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
8562 created from cgraph_add_edge_duplication_hook
8563 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
8564 created from cgraph_remove_edge_duplication_hook
8565 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
8566 created from cgraph_add_node_duplication_hook
8567 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
8568 created from cgraph_remove_node_duplication_hook
8569 (void call_edge_removal_hooks (cgraph_edge *e)):
8570 created from cgraph_call_edge_removal_hooks
8571 (void call_cgraph_insertion_hooks (cgraph_node *node)):
8572 created from call_function_insertion_hooks
8573 (void call_cgraph_removal_hooks (cgraph_node *node)):
8574 created from cgraph_call_node_removal_hooks
8575 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
8576 created from cgraph_node::call_duplication_hooks
8577 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
8578 created from cgraph_call_edge_duplication_hooks
8579 (void call_varpool_removal_hooks (varpool_node *node)):
8580 created from varpool_call_node_removal_hooks
8581 (void call_varpool_insertion_hooks (varpool_node *node)):
8582 created from varpool_call_variable_insertion_hooks
8583 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
8584 created from insert_to_assembler_name_hash
8585 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
8586 created from unlink_from_assembler_name_hash
8587 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
8588 created from symtab_prevail_in_asm_name_hash
8589 (void symtab_initialize_asm_name_hash (void)):
8590 created from symtab_initialize_asm_name_hash
8591 (void change_decl_assembler_name (tree decl, tree name)):
8592 created from change_decl_assembler_name
8593 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
8594 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
8595 created from decl_assembler_name_hash
8596 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
8597 created from decl_assembler_name_equal
8598 (static hashval_t hash_node_by_assembler_name (const void *p)):
8599 created from hash_node_by_assembler_name
8600 (static int eq_assembler_name (const void *p1, const void *p2)):
8601 created from eq_assembler_name
8603 2014-08-25 Marek Polacek <polacek@redhat.com>
8605 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
8607 2014-08-25 Petr Murzin <petr.murzin@intel.com>
8609 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
8610 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
8611 SWI1248_AVX512BW mode iterator.
8613 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
8616 * config/sh/predicates.md (general_extend_operand): Disable
8617 TRUNCATE before reload completes.
8619 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
8621 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
8623 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
8626 * config/sh/sh.opt (musermode): Allow negative form.
8627 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
8628 targets that don't support it.
8629 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
8630 Document -mno-usermode option.
8632 2014-08-24 Kito Cheng <kito@0xlab.org>
8634 * system.h (CALLER_SAVE_PROFITABLE): Poison.
8635 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
8636 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
8637 * doc/tm.texi: Regenerate.
8639 2014-08-24 Kito Cheng <kito@0xlab.org>
8641 * ira.c: Fix typo in comment.
8643 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
8645 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
8646 Deprecate c++1y. Change language to reflect greater confidence in C++14.
8648 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
8651 * config/pa/pa.c (pa_output_function_epilogue): Don't set
8652 last_address when the current function is a thunk.
8653 (pa_asm_output_mi_thunk): When we don't have named sections or they
8654 are not being used, check that thunk can reach the stub table with a
8657 2014-08-23 David Malcolm <dmalcolm@redhat.com>
8659 * web.c (union_match_dups): Strengthen param "insn" from rtx to
8661 (pass_web::execute): Likewise for local "insn".
8663 2014-08-23 David Malcolm <dmalcolm@redhat.com>
8665 * var-tracking.c (struct micro_operation_def): Strengthen field
8666 "insn" from rtx to rtx_insn *.
8667 (struct emit_note_data_def): Likewise.
8668 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
8669 (vt_stack_adjustments): Likewise for local "insn".
8670 (adjust_insn): Likewise for param "insn".
8671 (val_store): Likewise.
8672 (val_resolve): Likewise.
8673 (struct count_use_info): Likewise for field "insn".
8674 (log_op_type): Likewise for param "insn".
8675 (reverse_op): Likewise.
8676 (prepare_call_arguments): Likewise.
8677 (add_with_sets): The initial param takes an insn, but we can't
8678 yet strengthen it from rtx to rtx_insn * since it's used as a
8679 cselib_record_sets_hook callback. For now rename initial param
8680 from "insn" to "uncast_insn", and introduce a local "insn" of
8681 the stronger rtx_insn * type, with a checked cast.
8682 (compute_bb_dataflow): Strengthen local "insn" from rtx to
8684 (emit_note_insn_var_location): Likewise.
8685 (emit_notes_for_changes): Likewise.
8686 (emit_notes_for_differences): Likewise.
8687 (next_non_note_insn_var_location): Likewise for return type and
8689 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
8690 (vt_initialize): Likewise for local "insn".
8691 (delete_debug_insns): Likewise for locals "insn" and "next".
8693 2014-08-23 David Malcolm <dmalcolm@redhat.com>
8695 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
8697 (mark_constant_pool): Likewise for local "insn".
8699 2014-08-23 David Malcolm <dmalcolm@redhat.com>
8701 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
8703 (dead_debug_promote_uses): Likewise.
8704 (dead_debug_insert_temp): Likewise.
8706 2014-08-23 David Malcolm <dmalcolm@redhat.com>
8708 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
8709 from const_rtx to const rtx_insn *.
8710 (store_killed_after): Likewise. Strengthen locals "last", "act"
8711 from rtx to rtx_insn *.
8712 (store_killed_before): Strengthen param "insn" from const_rtx to
8713 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
8714 (find_moveable_store): Strengthen param "insn" from rtx to
8716 (compute_store_table): Likewise for local "insn".
8717 (insert_insn_start_basic_block): Likewise for param "insn" and
8718 locals "prev", "before", "insn".
8719 (insert_store): For now, add a checked cast to rtx_insn * on the
8720 result of gen_move_insn.
8721 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
8723 (replace_store_insn): Likewise. For now, add a checked cast to
8724 rtx_insn * on the result of gen_move_insn.
8726 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8728 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
8730 (expand_sjlj_dispatch_table): Likewise.
8732 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8734 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
8735 "insn" from rtx to rtx_insn *.
8737 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8739 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
8740 "insn" from rtx to rtx_insn *.
8741 (dup_block_and_redirect): Likewise for param 3 "before".
8743 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
8744 from rtx to rtx_insn *.
8745 (move_insn_for_shrink_wrap): Likewise.
8746 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
8747 (dup_block_and_redirect): Likewise for param "before" and local
8749 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
8751 (convert_to_simple_return): Likewise for local "start".
8753 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
8754 Strengthen local "insn" from rtx to rtx_insn *, for use when
8755 invoking requires_stack_frame_p.
8757 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8759 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
8761 (speculate_expr): Likewise for locals "orig_insn_rtx",
8763 (eq_transformed_insns): Likewise for locals "i1", "i2".
8764 (check_for_new_jump): Likewise for return type and local "end".
8765 (find_new_jump): Likewise for return type and local "jump".
8766 (sel_split_edge): Likewise for local "jump".
8767 (sel_create_recovery_block): Likewise.
8768 (sel_redirect_edge_and_branch_force): Likewise.
8769 (sel_redirect_edge_and_branch): Likewise.
8771 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8773 * sel-sched.c (substitute_reg_in_expr): Strengthen local
8774 "new_insn" from rtx to rtx_insn *.
8775 (create_insn_rtx_with_rhs): Likewise for return type and for local
8777 (create_insn_rtx_with_lhs): Likewise.
8778 (create_speculation_check): Likewise for local "insn_rtx".
8779 (implicit_clobber_conflict_p): Likewise for local "insn".
8780 (get_expr_cost): Likewise.
8781 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
8782 (move_cond_jump): Likewise for locals "next", "prev", "link",
8783 "head", "from", "to".
8785 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8787 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
8788 "next" from rtx to rtx_insn *.
8789 (find_conditional_protection): Likewise for local "next".
8790 (is_conditionally_protected): Likewise for local "insn1".
8791 (is_pfree): Likewise for locals "insn1", "insn2".
8793 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8795 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
8796 from rtx to rtx_insn *.
8798 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
8799 locals "insn1", "insn2" from rtx to rtx_insn *.
8800 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
8801 locals "insn", "prev", "last_jump", "next_tail".
8802 (schedule_ebb): Likewise for params "head", "tail".
8803 (schedule_ebbs): Likewise for locals "tail", "head".
8805 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
8806 to rtx_insn on "last_insn" in one of the invocations of
8809 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8811 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
8812 "elem", "insn" from rtx to rtx_insn *.
8813 (change_spec_dep_to_hard): Likewise.
8814 (get_back_and_forw_lists): Likewise for local "con".
8815 (sd_add_dep): Likewise for locals "elem", "insn".
8816 (sd_resolve_dep): Likewise for locals "pro", "con".
8817 (sd_unresolve_dep): Likewise.
8818 (sd_delete_dep): Likewise.
8819 (chain_to_prev_insn): Likewise for local "pro".
8820 (find_inc): Likewise for locals "pro", "con".
8822 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8824 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
8826 (reg_set_between_p): Strengthen local "insn" from const_rtx to
8828 (modified_between_p): Strengthen local "insn" from rtx to
8830 (remove_reg_equal_equiv_notes_for_regno): Likewise.
8831 (keep_with_call_p): Strengthen local "i2" from const_rtx to
8834 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8836 * resource.c (next_insn_no_annul): Strengthen local "next" from
8838 (mark_referenced_resources): Likewise for local "insn".
8840 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8842 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
8844 (find_reloads): Likewise for param 1.
8845 (subst_reloads): Likewise for sole param.
8846 (find_equiv_reg): Likwise for param 2.
8847 (regno_clobbered_p): Likwise for param 2.
8848 (reload): Likewise for param 1.
8850 * caller-save.c (save_call_clobbered_regs): Strengthen local
8851 "insn" from rtx to rtx_insn *.
8852 (insert_one_insn): Likewise for local "insn".
8854 * reload.c (this_insn): Likewise for this global.
8855 (find_reloads): Likewise for param "insn".
8856 (find_reloads_toplev): Likewise.
8857 (find_reloads_address): Likewise.
8858 (subst_reg_equivs): Likewise.
8859 (update_auto_inc_notes): Likewise.
8860 (find_reloads_address_1): Likewise.
8861 (find_reloads_subreg_address): Likewise.
8862 (subst_reloads): Likewise.
8863 (find_equiv_reg): Likewise, also for local "p".
8864 (regno_clobbered_p): Likewise for param "insn".
8866 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
8868 (spill_reg_store): Likewise for the elements of this array.
8869 (remove_init_insns): Likewise for local "equiv_insn".
8870 (will_delete_init_insn_p): Likewise for param "insn".
8871 (reload): Likewise for param ""first" and local "insn".
8872 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
8874 (calculate_elim_costs_all_insns): Likewise.
8875 (delete_caller_save_insns): Likewise.
8876 (spill_failure): Likewise for param "insn".
8877 (delete_dead_insn): Likewise.
8878 (set_label_offsets): Likewise.
8879 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
8881 (elimination_costs_in_insn): Likewise for param "insn".
8882 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
8883 when referring to an insn.
8884 (set_initial_label_offsets): Likewise.
8885 (set_offsets_for_label): Strengthen param "insn" from rtx to
8887 (init_eliminable_invariants): Likewise for param "first" and local
8889 (fixup_eh_region_note): Likewise for param "insn".
8890 (reload_as_needed): Likewise for locals "prev", "insn",
8891 "old_next", "old_prev", "next".
8892 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
8894 (reload_inheritance_insn): Strengthen elements of this array from
8896 (failed_reload): Likewise for param "insn".
8897 (choose_reload_regs): Likewise for local "insn". Replace use of
8898 NULL_RTX with NULL when referring to an insn.
8899 (input_reload_insns): Strengthen elements of this array from rtx
8901 (other_input_address_reload_insns): Likewise for this global.
8902 (other_input_reload_insns): Likewise for this global.
8903 (input_address_reload_insns): Likwise for the elements of this
8905 (inpaddr_address_reload_insns): Likwise for the elements of this
8907 (output_reload_insns): Likewise for the elements of this array.
8908 (output_address_reload_insns): Likewise for the elements of this
8910 (outaddr_address_reload_insns): Likewise for the elements of this
8912 (operand_reload_insns): Likewise for this global.
8913 (other_operand_reload_insns): Likewise for this global.
8914 (other_output_reload_insns): Likewise for the elements of this
8916 (new_spill_reg_store): Likewise for the elements of this
8918 (emit_input_reload_insns): Likewise for locals "insn", "temp".
8919 Strengthen local "where" from rtx * to rtx_insn **.
8920 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
8921 from rtx to rtx_insn *.
8922 (do_input_reload): Likewise for local "insn".
8923 (do_output_reload): Likewise for local "insn".
8924 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
8925 (emit_insn_if_valid_for_reload): Likewise for return type and local
8926 "last". Add checked cast to rtx_insn when returning "insn" since
8927 this has been through emit_insn.
8928 (gen_reload): Strengthen return type and locals "last", "insn", "set"
8929 from rtx to rtx_insn *. Add checked cast to rtx_insn when
8930 returning "insn" since it's been through
8931 emit_insn_if_valid_for_reload at this point.
8932 (delete_output_reload): Strengthen param "insn" and locals
8933 "output_reload_insn", "i2" from rtx to rtx_insn *.
8934 (delete_address_reloads): Likewise for params "dead_insn",
8935 "current_insn" and locals "prev", "next".
8936 (delete_address_reloads_1): Likewise for params "dead_insn",
8937 "current_insn" and locals "prev", "i2".
8938 (inc_for_reload): Likewise for locals "last", "add_insn".
8939 (add_auto_inc_notes): Strengthen param "insn" from rtx to
8942 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
8943 param of this duplicate of the prototype from reload.h
8945 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8947 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
8949 (regstat_bb_compute_calls_crossed): Likewise.
8951 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8953 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
8955 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
8957 (regrename_analyze): Strengthen local "insn" from rtx to
8959 (scan_rtx_reg): Likewise for param "insn".
8960 (scan_rtx_address): Likewise.
8961 (scan_rtx): Likewise.
8962 (restore_operands): Likewise.
8963 (record_out_operands): Likewise.
8964 (build_def_use): Likewise for local "insn". Replace use of
8965 NULL_RTX with NULL when dealing with an insn.
8967 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8969 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
8970 * reginfo.c (reg_scan): Likewise, also for local "insn".
8971 (reg_scan_mark_refs): Likewise for param "insn".
8972 (init_subregs_of_mode): Likewise for local "insn".
8974 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8976 * regcprop.c (struct queued_debug_insn_change): Strengthen field
8977 "insn" from rtx to rtx_insn *.
8978 (replace_oldest_value_reg): Likewise for param "insn".
8979 (replace_oldest_value_addr): Likewise.
8980 (replace_oldest_value_mem): Likewise.
8981 (apply_debug_insn_changes): Likewise for local "last_insn".
8982 (copyprop_hardreg_forward_1): Likewise for local "insn".
8984 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8986 * reg-stack.c (next_flags_user): Strengthen return type and param
8987 "insn" from rtx to rtx_insn *.
8988 (straighten_stack): Likewise for param "insn".
8989 (check_asm_stack_operands): Likewise.
8990 (remove_regno_note): Likewise.
8991 (emit_pop_insn): Likewise for return type, param "insn", local
8993 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
8994 "limit" from rtx to rtx_insn *.
8995 (swap_to_top): Likewise for param "insn".
8996 (move_for_stack_reg): Likewise.
8997 (move_nan_for_stack_reg): Likewise.
8998 (swap_rtx_condition): Likewise.
8999 (compare_for_stack_reg): Likewise.
9000 (subst_all_stack_regs_in_debug_insn): Likewise.
9001 (subst_stack_regs_pat): Likewise, and local "insn2".
9002 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
9004 (subst_stack_regs): Likewise.
9005 (change_stack): Likewise.
9006 (convert_regs_1): Likewise for locals "insn", "next".
9008 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9010 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
9012 (combine_set_extension): Likewise for param "curr_insn".
9013 (transform_ifelse): Likewise for param "def_insn".
9014 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
9015 from vec<rtx> * to vec<rtx_insn *> *.
9016 (is_cond_copy_insn): Likewise for param "insn".
9017 (struct ext_state): Strengthen the four vec fields from vec<rtx>
9019 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
9020 local "def_insn" from rtx to rtx_insn *.
9021 (get_sub_rtx): Likewise for param "def_insn".
9022 (merge_def_and_ext): Likewise.
9023 (combine_reaching_defs): Likewise.
9024 (add_removable_extension): Likewise for param "insn".
9025 (find_removable_extensions): Likewise for local "insn".
9026 (find_and_remove_re): Likewise for locals "curr_insn" and
9027 "def_insn". Strengthen locals "reinsn_del_list" and
9028 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
9030 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9032 * recog.c (split_insn): Strengthen param "insn" and locals
9033 "first", "last" from rtx to rtx_insn *.
9034 (split_all_insns): Likewise for locals "insn", "next".
9035 (split_all_insns_noflow): Likewise.
9037 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9039 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
9041 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
9042 (debug_rtx_find): Likewise for param 1 "x".
9044 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
9045 const_rtx to const rtx_insn *. Likewise for local "insn".
9046 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
9047 (debug_rtx_find): Likewise for param 1 "x".
9048 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
9049 from const_rtx to const rtx_insn * within the appropriate cases of
9050 the switch statement.
9052 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
9053 Strengthen local "insns" from rtx to rtx_insn * since this is
9054 passed to a call to debug_rtx_list.
9056 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9058 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
9061 * function.c (stack_protect_epilogue): Add checked cast to
9062 rtx_insn for now when invoking predict_insn_def.
9064 * predict.c (predict_insn): Strengthen param "insn" from rtx to
9066 (predict_insn_def): Likewise.
9067 (rtl_predict_edge): Likewise for local "last_insn".
9068 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
9070 (combine_predictions_for_insn): Strengthen param "insn" from rtx
9072 (bb_estimate_probability_locally): Likewise for local "last_insn".
9073 (expensive_function_p): Likewise for local "insn".
9075 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
9076 local "jmp", since this is used when invoking predict_insn_def.
9078 2014-08-22 Marek Polacek <polacek@redhat.com>
9081 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
9083 2014-08-22 Marek Polacek <polacek@redhat.com>
9086 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
9087 a comparison in parens.
9088 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
9091 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9093 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
9096 * cprop.c (fis_get_condition): Likewise.
9098 * postreload.c (reload_cse_regs): Likewise for param "first".
9099 (reload_cse_simplify): Likewise for param "insn".
9100 (reload_cse_regs_1): Likewise for local "insn".
9101 (reload_cse_simplify_set): Likewise for param "insn".
9102 (reload_cse_simplify_operands): Likewise.
9103 (struct reg_use): Likewise for field "insn".
9104 (reload_combine_purge_insn_uses): Likewise for param "insn".
9105 (fixup_debug_insns): Likewise for params "from", "to" and local
9107 (try_replace_in_use): Likewise for local "use_insn".
9108 (reload_combine_recognize_const_pattern): Likewise for param
9109 "insn" and locals "add_moved_after_insn", "use_insn".
9110 (reload_combine_recognize_pattern): Likewise for param "insn" and
9112 (reload_combine): Likewise for locals "insn", "prev".
9113 (reload_combine_note_use): Likewise for param "insn".
9114 (move2add_use_add2_insn): Likewise.
9115 (move2add_use_add3_insn): Likewise.
9116 (reload_cse_move2add): Likewise, also for local "next".
9117 (move2add_note_store): Likewise for local "insn".
9119 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9121 * postreload-gcse.c (struct occr): Strengthen field "insn" from
9123 (struct unoccr): Likewise.
9124 (struct modifies_mem): Likewise.
9125 (alloc_mem): Likewise for local "insn".
9126 (insert_expr_in_table): Likewise for param "insn".
9127 (dump_expr_hash_table_entry): Likewise for local "insn".
9128 (oprs_unchanged_p): Likewise for param "insn".
9129 (load_killed_in_block_p): Likewise for local "setter".
9130 (record_last_reg_set_info): Likewise for param "insn".
9131 (record_last_reg_set_info_regno): Likewise.
9132 (record_last_mem_set_info): Likewise.
9133 (record_last_set_info): Likewise for local "last_set_insn".
9134 (record_opr_changes): Likewise for param "insn".
9135 (hash_scan_set): Likewise.
9136 (compute_hash_table): Likewise for local "insn".
9137 (get_avail_load_store_reg): Likewise for param "insn".
9138 (eliminate_partially_redundant_load): Likewise, also for locals
9139 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
9141 (eliminate_partially_redundant_loads): Likewise for local "insn".
9143 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9145 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
9147 (expand_binop): Likewise for locals "entry_last", "last", "insns"
9148 (expand_twoval_unop): Likewise for locals entry_last", "last".
9149 (expand_twoval_binop): Likewise.
9150 (expand_twoval_binop_libfunc): Likewise for local "insns".
9151 (widen_leading): Likewise for local "last".
9152 (expand_doubleword_clz): Likewise for local "seq". Strengthen
9153 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
9154 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
9155 (expand_parity): Likewise for locals "last" and "seq".
9156 (expand_ffs): Likewise for local "seq". Strengthen local
9157 "nonzero_label" from rtx to rtx_code_label *.
9158 (expand_absneg_bit): Strengthen local "insns" from rtx to
9160 (expand_unop_direct): Likewise for local "last".
9161 (expand_unop): Likewise for locals "last", "insns".
9162 (expand_abs_nojump): Likewise for local "last".
9163 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
9164 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
9166 (expand_copysign_absneg): Strengthen local "label" from rtx to
9168 (expand_copysign_bit): Strengthen local "insns" from rtx to
9170 (struct no_conflict_data): Likewise for fields "first", "insn".
9171 (emit_libcall_block_1): Likewise for param "insns" and locals
9172 "next", "last", "insn".
9173 (emit_libcall_block): For now, add a checked cast to rtx_insn *
9174 on "insns" when invoking emit_libcall_block_1. Ultimately we
9175 want to strengthen insns itself.
9176 (prepare_cmp_insn): Strengthen local "last" from rtx to
9178 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
9179 (prepare_float_lib_cmp): Likewise for local "insns".
9180 (emit_conditional_move): Likewise for local "last".
9181 (emit_conditional_add): Likewise.
9182 (have_sub2_insn): Likewise for local "seq".
9183 (expand_float): Likewise for local "insns". Strengthen locals
9184 "label", "neglabel" from rtx to rtx_code_label *.
9185 (expand_fix): Likewise for locals "last", "insn", "insns" (to
9186 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
9187 (expand_fixed_convert): Likewise for local "insns" (to
9189 (expand_sfix_optab): Likewise for local "last".
9190 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
9191 to rtx_code_label *.
9192 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
9193 from rtx to rtx_insn *.
9194 (expand_atomic_fetch_op): Likewise for local "insn".
9195 (maybe_legitimize_operand_same_code): Likewise for local "last".
9196 (maybe_legitimize_operands): Likewise.
9198 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9200 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
9201 "insn" from rtx to rtx_insn *.
9202 (ps_rtl_insn): Likewise for return type.
9203 (doloop_register_get): Likewise for params "head", "tail" and
9204 locals "insn", "first_insn_not_to_check".
9205 (schedule_reg_move): Likewise for local "this_insn".
9206 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
9207 of gen_move_insn for now.
9208 (reset_sched_times): Strengthen local "insn" from rtx to
9210 (permute_partial_schedule): Likewise.
9211 (duplicate_insns_of_cycles): Likewise for local "u_insn".
9212 (dump_insn_location): Likewise for param "insn".
9213 (loop_canon_p): Likewise for local "insn".
9214 (sms_schedule): Likewise.
9215 (print_partial_schedule): Likewise.
9216 (ps_has_conflicts): Likewise.
9218 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9220 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
9221 "tailp" from rtx * to rtx_insn **.
9223 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
9224 from rtx to rtx_insn *.
9225 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
9226 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
9227 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
9229 * modulo-sched.c (const_iteration_count): Strengthen return type
9230 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
9231 use of NULL_RTX with NULL when working with insns.
9232 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
9234 (sms_schedule): Likewise.
9235 * sched-rgn.c (init_ready_list): Likewise, also for locals
9236 "src_head" and "src_next_tail".
9237 (compute_block_dependences): Likewise.
9238 (free_block_dependencies): Likewise.
9239 (debug_rgn_dependencies): Likewise.
9240 (free_rgn_deps): Likewise.
9241 (compute_priorities): Likewise.
9242 (schedule_region): Likewise.
9243 * sel-sched.c (find_ebb_boundaries): Likewise.
9245 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
9246 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
9248 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9250 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
9251 from rtx to rtx_insn *.
9252 (new_seginfo): Likewise for param "insn".
9253 (create_pre_exit): Likewise for locals "last_insn",
9254 "before_return_copy", "return_copy".
9255 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
9258 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9260 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
9261 from rtx to rtx_insn *.
9262 (lra_push_insn): Likewise for 1st param.
9263 (lra_push_insn_and_update_insn_regno_info): Likewise.
9264 (lra_pop_insn): Likewise for return type.
9265 (lra_invalidate_insn_data): Likewise for 1st param.
9266 (lra_set_insn_deleted): Likewise.
9267 (lra_delete_dead_insn): Likewise.
9268 (lra_process_new_insns): Likewise for first 3 params.
9269 (lra_set_insn_recog_data): Likewise for 1st param.
9270 (lra_update_insn_recog_data): Likewise.
9271 (lra_set_used_insn_alternative): Likewise.
9272 (lra_invalidate_insn_regno_info): Likewise.
9273 (lra_update_insn_regno_info): Likewise.
9274 (lra_former_scratch_operand_p): Likewise.
9275 (lra_eliminate_regs_1): Likewise.
9276 (lra_get_insn_recog_data): Likewise.
9278 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
9281 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
9283 (substitute_within_insn): New.
9284 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
9285 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
9286 Replace call to "substitute" with call to substitute_within_insn.
9288 * lra-constraints.c (curr_insn): Strengthen from rtx to
9290 (get_equiv_with_elimination): Likewise for param "insn".
9291 (match_reload): Strengthen params "before" and "after" from rtx *
9293 (emit_spill_move): Likewise for return type. Add a checked cast
9294 to rtx_insn * on result of gen_move_insn for now.
9295 (check_and_process_move): Likewise for local "before". Replace
9296 NULL_RTX with NULL when referring to insns.
9297 (process_addr_reg): Strengthen params "before" and "after" from
9298 rtx * to rtx_insn **.
9299 (insert_move_for_subreg): Likewise.
9300 (simplify_operand_subreg): Strengthen locals "before" and "after"
9301 from rtx to rtx_insn *.
9302 (process_address_1): Strengthen params "before" and "after" from
9303 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
9305 (process_address): Strengthen params "before" and "after" from
9306 rtx * to rtx_insn **.
9307 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
9308 (curr_insn_transform): Strengthen locals "before" and "after"
9309 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
9311 (loc_equivalence_callback): Update cast of "data", changing
9312 resulting type from rtx to rtx_insn *.
9313 (substitute_pseudo_within_insn): New.
9314 (inherit_reload_reg): Strengthen param "insn" from rtx to
9315 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
9316 NULL when referring to insns. Add a checked cast to rtx_insn *
9317 when using usage_insn to invoke lra_update_insn_regno_info.
9318 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
9319 likewise for locals "restore", "save". Add checked casts to
9320 rtx_insn * when using usage_insn to invoke
9321 lra_update_insn_regno_info and lra_process_new_insns. Replace
9322 NULL_RTX with NULL when referring to insns.
9323 (split_if_necessary): Strengthen param "insn" from rtx to
9325 (update_ebb_live_info): Likewise for params "head", "tail" and local
9327 (get_last_insertion_point): Likewise for return type and local "insn".
9328 (get_live_on_other_edges): Likewise for local "last".
9329 (inherit_in_ebb): Likewise for params "head", "tail" and locals
9330 "prev_insn", "next_insn", "restore".
9331 (remove_inheritance_pseudos): Likewise for local "prev_insn".
9332 (undo_optional_reloads): Likewise for local "insn".
9334 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
9336 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
9338 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
9340 (spill_pseudos): Likewise for local "insn".
9341 (init_elimination): Likewise.
9342 (process_insn_for_elimination): Likewise for param "insn".
9344 * lra-lives.c (curr_insn): Likewise.;
9346 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
9347 (remove_pseudos): Likewise for param "insn".
9348 (spill_pseudos): Likewise for local "insn".
9349 (lra_final_code_change): Likewise for locals "insn", "curr".
9351 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
9352 (lra_set_insn_deleted): Likewise.
9353 (lra_delete_dead_insn): Likewise, and for local "prev".
9354 (new_insn_reg): Likewise for param "insn".
9355 (lra_set_insn_recog_data): Likewise.
9356 (lra_update_insn_recog_data): Likewise.
9357 (lra_set_used_insn_alternative): Likewise.
9358 (get_insn_freq): Likewise.
9359 (invalidate_insn_data_regno_info): Likewise.
9360 (lra_invalidate_insn_regno_info): Likewise.
9361 (lra_update_insn_regno_info): Likewise.
9362 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
9364 (lra_push_insn_1): Strengthen param "insn" from rtx to
9366 (lra_push_insn): Likewise.
9367 (lra_push_insn_and_update_insn_regno_info): Likewise.
9368 (lra_pop_insn): Likewise for return type and local "insn".
9369 (push_insns): Likewise for params "from", "to", and local "insn".
9370 (setup_sp_offset): Likewise for params "from", "last" and locals
9372 (lra_process_new_insns): Likewise for params "insn", "before",
9373 "after" and local "last".
9374 (struct sloc): Likewise for field "insn".
9375 (lra_former_scratch_operand_p): Likewise for param "insn".
9376 (remove_scratches): Likewise for locals "insn", "last".
9377 (check_rtl): Likewise for local "insn".
9378 (add_auto_inc_notes): Likewise for param "insn".
9379 (update_inc_notes): Likewise for local "insn".
9380 (lra): Replace NULL_RTX with NULL when referring to insn.
9382 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9384 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
9386 (resolve_reg_notes): Likewise.
9387 (resolve_simple_move): Likewise for return type, param "insn", and
9388 locals "insns", "minsn".
9389 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
9390 (resolve_use): Likewise.
9391 (resolve_debug): Likewise.
9392 (find_decomposable_shift_zext): Likewise.
9393 (resolve_shift_zext): Likewise for return type, param "insn", and
9394 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
9395 (decompose_multiword_subregs): Likewise for local "insn",
9396 "orig_insn", "decomposed_shift", "end".
9398 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9400 * basic-block.h (basic_block split_edge_and_insert): Strengthen
9401 param "insns" from rtx to rtx_insn *.
9403 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
9405 (struct iv_to_split): Likewise.
9406 (loop_exit_at_end_p): Likewise for local "insn".
9407 (split_edge_and_insert): Likewise for param "insns".
9408 (compare_and_jump_seq): Likewise for return type, param "cinsn",
9409 and locals "seq", "jump".
9410 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
9411 "branch_code"; update invocations of compare_and_jump_seq to
9412 eliminate NULL_RTX in favor of NULL.
9413 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
9415 (reset_debug_uses_in_loop): Likewise.
9416 (analyze_insn_to_expand_var): Likewise for param "insn".
9417 (analyze_iv_to_split_insn): Likewise.
9418 (analyze_insns_in_loop): Likewise for local "insn".
9419 (insert_base_initialization): Likewise for param
9420 "insn" and local "seq".
9421 (split_iv): Likewise for param "insn" and local "seq".
9422 (expand_var_during_unrolling): Likewise for param "insn".
9423 (insert_var_expansion_initialization): Likewise for local "seq".
9424 (combine_var_copies_in_loop_exit): Likewise.
9425 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
9427 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
9428 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
9431 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9433 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
9435 (iv_analyze_result): Likewise.
9436 (iv_analyze_expr): Likewise.
9439 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
9440 local "def_insn" from rtx to rtx_insn *.
9441 (get_biv_step_1): Likewise for local "insn".
9442 (iv_analyze_expr): Likewise for param "insn".
9443 (iv_analyze_def): Likewise for local "insn".
9444 (iv_analyze_op): Likewise for param "insn".
9445 (iv_analyze): Likewise.
9446 (iv_analyze_result): Likewise.
9448 (suitable_set_for_replacement): Likewise.
9449 (simplify_using_initial_values): Likewise for local "insn".
9450 (iv_number_of_iterations): Likewise for param "insn".
9451 (check_simple_exit): Add checked cast to rtx_insn when invoking
9452 iv_number_of_iterations for now (until get_condition is
9455 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
9456 "insn" from rtx to rtx_insn *.
9457 (analyze_insns_in_loop): Likewise for local "insn".
9459 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9461 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
9463 (struct invariant): Likewise.
9464 (hash_invariant_expr_1): Likewise for param "insn".
9465 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
9466 (find_exits): Likewise for local "insn".
9467 (create_new_invariant): Likewise for param "insn".
9468 (check_dependencies): Likewise.
9469 (find_invariant_insn): Likewise.
9470 (record_uses): Likewise.
9471 (find_invariants_insn): Likewise.
9472 (find_invariants_bb): Likewise for local "insn".
9473 (get_pressure_class_and_nregs): Likewise for param "insn".
9474 (calculate_loop_reg_pressure): Likewise for local "insn".
9476 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9478 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
9480 (add_test): Likewise for locals "seq", "jump".
9481 (doloop_modify): Likewise for locals "sequence", "jump_insn".
9483 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9485 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
9487 (rebuild_jump_labels_chain): Likewise for param "chain".
9489 * cfgexpand.c (pass_expand::execute): Add checked cast to
9490 rtx_insn * when calling rebuild_jump_labels_chain in region where
9491 we know e->insns.r is non-NULL.
9493 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
9495 (rebuild_jump_labels): Likewise.
9496 (rebuild_jump_labels_chain): Likewise for param "chain".
9497 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
9498 (init_label_info): Likewise for param "f".
9499 (maybe_propagate_label_ref): Likewise for params "jump_insn",
9500 "prev_nonjump_insn".
9501 (mark_all_labels): Likewise for param "f" and locals "insn",
9502 "prev_nonjump_insn".
9504 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9506 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
9507 from rtx to rtx_insn *insn.
9508 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
9509 (ira_add_allocno_copy): Likewise.
9510 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
9512 (ira_create_copy): Likewise.
9513 (ira_add_allocno_copy): Likewise.
9514 (create_bb_allocnos): Likewise for local "insn".
9515 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
9516 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
9517 process_regs_for_copy for rtx_insn * param.
9518 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
9519 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
9520 process_regs_for_copy for rtx_insn * param.
9521 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
9522 * ira-costs.c (record_reg_classes): Likewise for param "insn".
9523 (record_operand_costs): Likewise.
9524 (scan_one_insn): Likewise for return type, and for param "insn".
9525 (process_bb_for_costs): Likewise for local "insn".
9526 (process_bb_node_for_hard_reg_moves): Likewise.
9527 * ira-emit.c (struct move): Likewise for field "insn".
9528 (create_move): Eliminate use of NULL_RTX when dealing with an
9530 (emit_move_list): Strengthen return type and locals "result",
9531 "insn" from rtx to rtx_insn *insn.
9532 (emit_moves): Likewise for locals "insns", "tmp".
9533 (ira_emit): Likewise for local "insn".
9534 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
9536 (find_call_crossed_cheap_reg): Likewise.
9537 (process_bb_node_lives): Likewise for local "insn".
9538 * ira.c (decrease_live_ranges_number): Likewise.
9539 (compute_regs_asm_clobbered): Likewise.
9540 (build_insn_chain): Likewise.
9541 (find_moveable_pseudos): Likewise, also locals "def_insn",
9542 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
9543 to rtx_insn **. Add a checked cast when assigning from
9544 "closest_use" into closest_uses array in a region where we know
9545 it's a non-NULL insn.
9546 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
9548 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
9549 "last_interesting_insn", "uin".
9550 (move_unallocated_pseudos): Likewise for locals "def_insn",
9551 "move_insn", "newinsn".
9553 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9555 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
9556 Strengthen locals "done_label", "do_error" from rtx to
9558 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
9559 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
9561 (ubsan_expand_si_overflow_neg_check): Likewise for locals
9562 "done_label", "do_error" to rtx_code_label * and local "last" to
9564 (ubsan_expand_si_overflow_mul_check): Likewise for locals
9565 "done_label", "do_error", "large_op0", "small_op0_large_op1",
9566 "one_small_one_large", "both_ops_large", "after_hipart_neg",
9567 "after_lopart_neg", "do_overflow", "hipart_different" to
9568 rtx_code_label * and local "last" to rtx_insn *.
9570 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9572 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
9573 "insn" and "move_insn" from rtx to rtx_insn *.
9575 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9577 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
9579 (cheap_bb_rtx_cost_p): Likewise.
9580 (first_active_insn): Likewise for return type and local "insn".
9581 (last_active_insn): Likewise for return type and locals "insn",
9583 (struct noce_if_info): Likewise for fields "jump", "insn_a",
9585 (end_ifcvt_sequence): Likewise for return type and locals "insn",
9587 (noce_try_move): Likewise for local "seq".
9588 (noce_try_store_flag): Likewise.
9589 (noce_try_store_flag_constants): Likewise.
9590 (noce_try_addcc): Likewise.
9591 (noce_try_store_flag_mask): Likewise.
9592 (noce_try_cmove): Likewise.
9593 (noce_try_minmax): Likewise.
9594 (noce_try_abs): Likewise.
9595 (noce_try_sign_mask): Likewise.
9596 (noce_try_bitop): Likewise.
9597 (noce_can_store_speculate_p): Likewise for local "insn".
9598 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
9600 (check_cond_move_block): Likewise for local "insn".
9601 (cond_move_convert_if_block): Likewise.
9602 (cond_move_process_if_block): Likewise for locals "seq",
9604 (noce_find_if_block): Likewise for local "jump".
9605 (merge_if_block): Likewise for local "last".
9606 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
9607 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
9608 (block_has_only_trap): Likewise for return type and local "trap".
9609 (find_if_case_1): Likewise for local "jump".
9610 (dead_or_predicable): Likewise for locals "head", "end", "jump",
9613 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9615 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
9616 "last_insn", "loop_end" from rtx to rtx_insn *.
9618 * hw-doloop.c (scan_loop): Likewise for local "insn".
9619 (discover_loop): Likewise for param "tail_insn".
9620 (discover_loops): Likewise for local "tail".
9622 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
9623 cast to rtx_insn * when assigning from an rtx local to a
9624 hwloop_info's "last_insn" field.
9626 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9628 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
9629 (add_delay_dependencies): Strengthen local "pro" from rtx to
9631 (recompute_todo_spec): Likewise.
9632 (dep_cost_1): Likewise for locals "insn", "used".
9633 (schedule_insn): Likewise for local "dbg".
9634 (schedule_insn): Likewise for locals "pro", "next".
9635 (unschedule_insns_until): Likewise for local "con".
9636 (restore_pattern): Likewise for local "next".
9637 (estimate_insn_tick): Likewise for local "pro".
9638 (resolve_dependencies): Likewise for local "next".
9639 (fix_inter_tick): Likewise.
9640 (fix_tick_ready): Likewise for local "pro".
9641 (add_to_speculative_block): Likewise for locals "check", "twin",
9643 (sched_extend_bb): Likewise for locals "end", "insn".
9644 (init_before_recovery): Likewise for local "x".
9645 (sched_create_recovery_block): Likewise for local "barrier".
9646 (create_check_block_twin): Likewise for local "pro".
9647 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
9649 (unlink_bb_notes): Update for change to type of bb_header.
9650 Strengthen locals "prev", "label", "note", "next" from rtx to
9652 (clear_priorities): Likewise for local "pro".
9654 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9656 * gcse.c (struct occr): Strengthen field "insn" from rtx to
9658 (test_insn): Likewise for this global.
9659 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
9661 (oprs_anticipatable_p): Likewise.
9662 (oprs_available_p): Likewise.
9663 (insert_expr_in_table): Strengthen param "insn" from rtx to
9665 (hash_scan_set): Likewise.
9666 (hash_scan_clobber): Likewise.
9667 (hash_scan_call): Likewise.
9668 (hash_scan_insn): Likewise.
9669 (compute_hash_table_work): Likewise for local "insn".
9670 (process_insert_insn): Likewise for return type and local "pat".
9671 (insert_insn_end_basic_block): Likewise for locals "new_insn",
9672 "pat", "pat_end", "maybe_cc0_setter".
9673 (pre_edge_insert): Likewise for local "insn".
9674 (pre_insert_copy_insn): Likewise for param "insn".
9675 (pre_insert_copies): Likewise for local "insn".
9676 (struct set_data): Likewise for field "insn".
9677 (single_set_gcse): Likewise for param "insn".
9678 (gcse_emit_move_after): Likewise.
9679 (pre_delete): Likewise for local "insn".
9680 (update_bb_reg_pressure): Likewise for param "from" and local
9682 (should_hoist_expr_to_dom): Likewise for param "from".
9683 (hoist_code): Likewise for local "insn".
9684 (get_pressure_class_and_nregs): Likewise for param "insn".
9685 (calculate_bb_reg_pressure): Likewise for local "insn".
9686 (compute_ld_motion_mems): Likewise.
9688 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9690 * genpeep.c (main): Rename param back from "uncast_ins1" to
9691 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
9694 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
9696 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
9699 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
9700 documentation to state it is only for VSX operations.
9702 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
9703 constraint only active if VSX.
9705 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
9706 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
9709 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9711 * fwprop.c (single_def_use_dom_walker::before_dom_children):
9712 Strengthen local "insn" from rtx to rtx_insn *.
9713 (use_killed_between): Likewise for param "target_insn".
9714 (all_uses_available_at): Likewise for param "target_insn" and
9716 (update_df_init): Likewise for params "def_insn", "insn".
9717 (update_df): Likewise for param "insn".
9718 (try_fwprop_subst): Likewise for param "def_insn" and local
9720 (free_load_extend): Likewise for param "insn".
9721 (forward_propagate_subreg): Likewise for param "def_insn" and
9723 (forward_propagate_asm): Likewise for param "def_insn" and local
9725 (forward_propagate_and_simplify): Likewise for param "def_insn"
9726 and local "use_insn".
9727 (forward_propagate_into): Likewise for locals "def_insn" and
9730 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9732 * function.c (emit_initial_value_sets): Strengthen local "seq"
9733 from rtx to rtx_insn *.
9734 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
9736 (instantiate_virtual_regs): Likewise for local "insn".
9737 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
9738 (reorder_blocks_1): Likewise for param "insns" and local "insn".
9739 (expand_function_end): Likewise for locals "insn" and "seq".
9740 (epilogue_done): Likewise for local "insn".
9741 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
9743 (reposition_prologue_and_epilogue_notes): Likewise for locals
9744 "insn", "last", "note", "first".
9745 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
9746 (pass_match_asm_constraints::execute): Likewise for local "insn".
9748 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9750 * output.h (final_scan_insn): Strengthen return type from rtx to
9752 (final_forward_branch_p): Likewise for param.
9753 (current_output_insn): Likewise for this global.
9755 * final.c (rtx debug_insn): Likewise for this variable.
9756 (current_output_insn): Likewise.
9757 (get_attr_length_1): Rename param "insn" to "uncast_insn",
9758 adding "insn" back in as an rtx_insn * with a checked cast, so
9759 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
9761 (compute_alignments): Strengthen local "label" from rtx to
9763 (shorten_branches): Rename param from "first" to "uncast_first",
9764 introducing a new local rtx_insn * "first" using a checked cast to
9765 effectively strengthen "first" from rtx to rtx_insn * without
9766 affecting the type signature. Strengthen locals "insn", "seq",
9767 "next", "label" from rtx to rtx_insn *.
9768 (change_scope): Strengthen param "orig_insn" and local "insn" from
9770 (final_start_function): Rename param from "first" to "uncast_first",
9771 introducing a new local rtx_insn * "first" using a checked cast to
9772 effectively strengthen "first" from rtx to rtx_insn * without
9773 affecting the type signature. Strengthen local "insn" from rtx to
9775 (dump_basic_block_info): Strengthen param "insn" from rtx to
9777 (final): Rename param from "first" to "uncast_first",
9778 introducing a new local rtx_insn * "first" using a checked cast to
9779 effectively strengthen "first" from rtx to rtx_insn * without
9780 affecting the type signature. Strengthen locals "insn", "next"
9781 from rtx to rtx_insn *.
9782 (output_alternate_entry_point): Strengthen param "insn" from rtx to
9784 (call_from_call_insn): Strengthen param "insn" from rtx to
9786 (final_scan_insn): Rename param from "insn" to "uncast_insn",
9787 introducing a new local rtx_insn * "insn" using a checked cast to
9788 effectively strengthen "insn" from rtx to rtx_insn * without
9789 affecting the type signature. Strengthen return type and locals
9790 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
9791 now-redundant checked cast to rtx_insn * from both invocations of
9792 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
9793 introducing a local "call_insn" for use when invoking
9794 call_from_call_insn.
9795 (notice_source_line): Strengthen param "insn" from rtx to
9797 (leaf_function_p): Likewise for local "insn".
9798 (final_forward_branch_p): Likewise.
9799 (leaf_renumber_regs): Likewise for param "first".
9800 (rest_of_clean_state): Likewise for locals "insn" and "next".
9801 (self_recursive_call_p): Likewise for param "insn".
9802 (collect_fn_hard_reg_usage): Likewise for local "insn".
9803 (get_call_fndecl): Likewise for param "insn".
9804 (get_call_cgraph_rtl_info): Likewise.
9805 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
9806 introducing a new local rtx_insn * "insn" using a checked cast to
9807 effectively strengthen "insn" from rtx to rtx_insn * without
9808 affecting the type signature.
9810 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
9811 cast when assigning from param "insn" to current_output_insn.
9812 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
9813 so that we can assign it back to current_output_insn.
9815 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9817 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
9818 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
9819 atmxt540s and atmxt540sreva devices.
9820 * config/avr/avr-tables.opt: Regenerate.
9821 * config/avr/t-multilib: Regenerate.
9822 * doc/avr-mmcu.texi: Regenerate.
9824 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9826 * expr.c (convert_move): Strengthen local "insns" from rtx to
9828 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
9829 "top_label" from rtx to rtx_code_label *.
9830 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
9832 (emit_single_push_insn): Likewise for locals "prev", "last".
9833 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
9834 to rtx_code_label *.
9835 (store_constructor): Likewise for locals "loop_start", "loop_end".
9836 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
9838 (expand_expr_real_2): Likewise.
9839 (expand_expr_real_1): Strengthen local "label" from rtx to
9842 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9844 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
9845 from rtx to rtx_insn *.
9846 (store_bit_field_1): Likewise.
9847 (extract_bit_field_1): Likewise.
9848 (expand_mult_const): Likewise for local "insns".
9849 (expmed_mult_highpart): Strengthen local "label" from rtx to
9851 (expand_smod_pow2): Likewise.
9852 (expand_sdiv_pow2): Likewise.
9853 (expand_divmod): Strengthen locals "last", "insn" from rtx to
9854 rtx_insn *. Strengthen locals "label", "label1", "label2",
9855 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
9856 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
9857 (emit_store_flag): Likewise.
9858 (emit_store_flag_force): Strengthen local "label" from rtx to
9860 (do_cmp_and_jump): Likewise for param "label".
9862 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9864 * explow.c (force_reg): Strengthen local "insn" from rtx to
9866 (adjust_stack_1): Likewise.
9867 (allocate_dynamic_stack_space): Likewise. Strengthen locals
9868 "final_label", "available_label", "space_available" from rtx to
9870 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
9871 (anti_adjust_stack_and_probe): Likewise.
9873 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9875 * except.h (sjlj_emit_function_exit_after): Strengthen param
9876 "after" from rtx to rtx_insn *. This is only called with
9877 result of get_last_insn (in function.c) so type-change should be
9880 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
9881 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
9882 to rtx_insn *. These fields are only used from except.c so this
9883 type-change should be self-contained to this patch.
9885 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
9886 local "last" from rtx to rtx_insn *.
9887 (dw2_build_landing_pads): Likewise for local "seq".
9888 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
9889 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
9890 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
9892 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
9894 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
9895 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
9896 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
9897 referring to an insn. Strengthen local "dispatch_label" from
9898 rtx to rtx_code_label *.
9899 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
9901 (expand_eh_return): Strengthen local "around_label" from
9902 rtx to rtx_code_label *.
9903 (convert_to_eh_region_ranges): Strengthen locals "iter",
9904 "last_action_insn", "first_no_action_insn",
9905 "first_no_action_insn_before_switch",
9906 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
9908 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9910 * dwarf2out.c (last_var_location_insn): Strengthen this variable
9911 from rtx to rtx_insn *.
9912 (cached_next_real_insn): Likewise.
9913 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
9915 (dwarf2out_var_location): Strengthen locals "next_real",
9916 "next_note", "expected_next_loc_note", "last_start", "insn" from
9919 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9921 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
9922 from rtx to rtx_insn *.
9923 (create_pseudo_cfg): Likewise for local "insn".
9925 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9927 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
9928 from rtx to rtx_insn *.
9929 (df_bb_regno_last_def_find): Likewise.
9931 * df-problems.c (df_rd_bb_local_compute): Likewise.
9932 (df_lr_bb_local_compute): Likewise.
9933 (df_live_bb_local_compute): Likewise.
9934 (df_chain_remove_problem): Likewise.
9935 (df_chain_create_bb): Likewise.
9936 (df_word_lr_bb_local_compute): Likewise.
9937 (df_remove_dead_eq_notes): Likewise for param "insn".
9938 (df_note_bb_compute): Likewise for local "insn".
9939 (simulate_backwards_to_point): Likewise.
9940 (df_md_bb_local_compute): Likewise.
9942 * df-scan.c (df_scan_free_bb_info): Likewise.
9943 (df_scan_start_dump): Likewise.
9944 (df_scan_start_block): Likewise.
9945 (df_install_ref_incremental): Likewise for local "insn".
9946 (df_insn_rescan_all): Likewise.
9947 (df_reorganize_refs_by_reg_by_insn): Likewise.
9948 (df_reorganize_refs_by_insn_bb): Likewise.
9949 (df_recompute_luids): Likewise.
9950 (df_bb_refs_record): Likewise.
9951 (df_update_entry_exit_and_calls): Likewise.
9952 (df_bb_verify): Likewise.
9954 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9956 * ddg.h (struct ddg_node): Strengthen fields "insn" and
9957 "first_note" from rtx to rtx_insn *.
9958 (get_node_of_insn): Likewise for param 2 "insn".
9959 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
9961 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
9963 (mem_write_insn_p): Likewise.
9964 (mem_access_insn_p): Likewise.
9965 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
9966 (def_has_ccmode_p): Likewise for param "insn".
9967 (add_cross_iteration_register_deps): Likewise for locals
9968 "def_insn" and "use_insn".
9969 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
9970 (build_intra_loop_deps): Likewise for local "src_insn".
9971 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
9973 (get_node_of_insn): Likewise for param "insn".
9975 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9977 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
9978 (deletable_insn_p): Strengthen param "insn" from rtx to
9979 rtx_insn *. Add checked cast to rtx_call_insn when invoking
9980 find_call_stack_args, since this is guarded by CALL_P (insn).
9981 (marked_insn_p): Strengthen param "insn" from rtx to
9983 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
9984 invoking find_call_stack_args, since this is guarded by
9986 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
9987 rtx_insn *; we know this is an insn since this was called by
9989 (mark_nonreg_stores_2): Likewise.
9990 (mark_nonreg_stores): Strengthen param "insn" from rtx to
9992 (find_call_stack_args): Strengthen param "call_insn" from rtx to
9993 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
9995 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
9996 from rtx to rtx_insn *.
9997 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
9999 (delete_unmarked_insns): Likewise for locals "insn", "next".
10000 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
10001 (mark_reg_dependencies): Likewise for param "insn".
10002 (rest_of_handle_ud_dce): Likewise for local "insn".
10003 (word_dce_process_block): Likewise.
10004 (dce_process_block): Likewise.
10006 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10008 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
10009 from rtx to rtx_insn *.
10010 (struct change_cc_mode_args): Likewise for field "insn".
10011 (this_insn): Strengthen from rtx to rtx_insn *.
10012 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
10014 (validate_canon_reg): Strengthen param "insn" from rtx to
10016 (canon_reg): Likewise.
10017 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
10019 (record_jump_equiv): Strengthen param "insn" from rtx to
10021 (try_back_substitute_reg): Likewise, also for locals "prev",
10023 (find_sets_in_insn): Likewise for param "insn".
10024 (canonicalize_insn): Likewise.
10025 (cse_insn): Likewise. Add a checked cast.
10026 (invalidate_from_clobbers): Likewise for param "insn".
10027 (invalidate_from_sets_and_clobbers): Likewise.
10028 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
10030 (cse_prescan_path): Strengthen local "insn" from rtx to
10032 (cse_extended_basic_block): Likewise for locals "insn" and
10034 (cse_main): Likewise for param "f".
10035 (check_for_label_ref): Likewise for local "insn".
10036 (set_live_p): Likewise for second param ("insn").
10037 (insn_live_p): Likewise for first param ("insn") and for local
10039 (cse_change_cc_mode_insn): Likewise for first param "insn".
10040 (cse_change_cc_mode_insns): Likewise for first and second params
10042 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
10044 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
10047 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
10048 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10049 Anna Tikhonova <anna.tikhonova@intel.com>
10050 Ilya Tocar <ilya.tocar@intel.com>
10051 Andrey Turetskiy <andrey.turetskiy@intel.com>
10052 Ilya Verbin <ilya.verbin@intel.com>
10053 Kirill Yukhin <kirill.yukhin@intel.com>
10054 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10056 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
10058 * config/i386/sse.md
10059 (define_mode_iterator VI248_AVX2): Delete.
10060 (define_mode_iterator VI2_AVX2_AVX512BW): New.
10061 (define_mode_iterator VI48_AVX2): Ditto.
10062 (define_insn <shift_insn><mode>3): Delete.
10063 (define_insn "<shift_insn><mode>3<mask_name>" with
10064 VI2_AVX2_AVX512BW): New.
10065 (define_insn "<shift_insn><mode>3<mask_name>" with
10068 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
10069 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10070 Anna Tikhonova <anna.tikhonova@intel.com>
10071 Ilya Tocar <ilya.tocar@intel.com>
10072 Andrey Turetskiy <andrey.turetskiy@intel.com>
10073 Ilya Verbin <ilya.verbin@intel.com>
10074 Kirill Yukhin <kirill.yukhin@intel.com>
10075 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10077 * config/i386/sse.md
10078 (define_mode_iterator VI4F_BRCST32x2): New.
10079 (define_mode_attr 64x2_mode): Ditto.
10080 (define_mode_attr 32x2mode): Ditto.
10081 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
10082 with VI4F_BRCST32x2): Ditto.
10083 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
10084 with V16FI mode iterator): Ditto.
10085 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
10086 with V16FI): Ditto.
10087 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
10088 with VI8F_BRCST64x2): Ditto.
10090 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
10091 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10092 Anna Tikhonova <anna.tikhonova@intel.com>
10093 Ilya Tocar <ilya.tocar@intel.com>
10094 Andrey Turetskiy <andrey.turetskiy@intel.com>
10095 Ilya Verbin <ilya.verbin@intel.com>
10096 Kirill Yukhin <kirill.yukhin@intel.com>
10097 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10099 * config/i386/sse.md
10100 (define_mode_iterator VI8_AVX512VL): New.
10101 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
10103 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
10105 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
10106 (define_mode_iterator V48_AVX512VL): New.
10107 (define_mode_iterator V12_AVX512VL): Ditto.
10108 (define_insn <avx512>_load<mode>_mask): Split into two similar
10109 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
10110 Refactor output template.
10111 (define_insn "<avx512>_store<mode>_mask"): Ditto.
10113 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10115 * cprop.c (struct occr): Strengthen field "insn" from rtx to
10117 (reg_available_p): Likewise for param "insn".
10118 (insert_set_in_table): Likewise.
10119 (hash_scan_set): Likewise.
10120 (hash_scan_insn): Likewise.
10121 (make_set_regs_unavailable): Likewise.
10122 (compute_hash_table_work): Likewise for local "insn".
10123 (reg_not_set_p): Strengthen param "insn" from const_rtx to
10125 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
10126 (try_replace_reg): Likewise.
10127 (find_avail_set): Likewise.
10128 (cprop_jump): Likewise for params "setcc", "jump".
10129 (constprop_register): Likewise for param "insn".
10130 (cprop_insn): Likewise.
10131 (do_local_cprop): Likewise.
10132 (local_cprop_pass): Likewise for local "insn".
10133 (bypass_block): Likewise for params "setcc" and "jump".
10134 (bypass_conditional_jumps): Likewise for locals "setcc" and
10136 (one_cprop_pass): Likewise for local "insn".
10138 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10140 * compare-elim.c (struct comparison_use): Strengthen field "insn"
10141 from rtx to rtx_insn *.
10142 (struct comparison): Likewise, also for field "prev_clobber".
10143 (conforming_compare): Likewise for param "insn".
10144 (arithmetic_flags_clobber_p): Likewise.
10145 (find_flags_uses_in_insn): Likewise.
10146 (find_comparison_dom_walker::before_dom_children): Likewise for
10147 locals "insn", "next", "last_clobber".
10148 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
10150 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10152 * combine-stack-adj.c (struct csa_reflist): Strengthen field
10153 "insn" from rtx to rtx_insn *.
10154 (single_set_for_csa): Likewise for param "insn".
10155 (record_one_stack_ref): Likewise.
10156 (try_apply_stack_adjustment): Likewise.
10157 (struct record_stack_refs_data): Likewise for field "insn".
10158 (maybe_move_args_size_note): Likewise for params "last" and "insn".
10159 (prev_active_insn_bb): Likewise for return type and param "insn".
10160 (next_active_insn_bb): Likewise.
10161 (force_move_args_size_note): Likewise for params "prev" and "last"
10162 and locals "test", "next_candidate", "prev_candidate".
10163 (combine_stack_adjustments_for_block): Strengthen locals
10164 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
10167 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10169 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
10170 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
10171 (subst_insn): Likewise for this variable.
10172 (added_links_insn): Likewise.
10173 (struct insn_link): Likewise for field "insn".
10174 (alloc_insn_link): Likewise for param "insn".
10175 (struct undobuf): Likewise for field "other_insn".
10176 (find_single_use): Likewise for param "insn" and local "next".
10177 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
10178 (delete_noop_moves): Likewise for locals "insn", "next".
10179 (create_log_links): Likewise for locals "insn", "use_insn".
10180 Strengthen local "next_use" from rtx * to rtx_insn **.
10181 (insn_a_feeds_b): Likewise for params "a", "b".
10182 (combine_instructions): Likewise for param "f" and locals "insn",
10183 "next", "prev", "first", "last_combined_insn", "link", "link1",
10184 "temp". Replace use of NULL_RTX with NULL when referring to
10186 (setup_incoming_promotions): Likewise for param "first"
10187 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
10188 (can_combine_p): Likewise for params "insn", "i3", "pred",
10189 "pred2", "succ", "succ2" and for local "p".
10190 (combinable_i3pat): Likewise for param "i3".
10191 (cant_combine_insn_p): Likewise for param "insn".
10192 (likely_spilled_retval_p): Likewise.
10193 (adjust_for_new_dest): Likewise.
10194 (update_cfg_for_uncondjump): Likewise, also for local "insn".
10195 (try_combine): Likewise for return type and for params "i3", "i2",
10196 "i1", "i0", "last_combined_insn", and for locals "insn",
10197 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
10198 "i0_insn". Eliminate local "tem" in favor of new locals
10199 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
10200 checked cast for now to rtx_insn * on the return type of
10201 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
10203 (find_split_point): Strengthen param "insn" from rtx to
10205 (simplify_set): Likewise for local "other_insn".
10206 (recog_for_combine): Likewise for param "insn".
10207 (record_value_for_reg): Likewise.
10208 (record_dead_and_set_regs_1): Likewise for local
10209 "record_dead_insn".
10210 (record_dead_and_set_regs): Likewise for param "insn".
10211 (record_promoted_value): Likewise.
10212 (check_promoted_subreg): Likewise.
10213 (get_last_value_validate): Likewise.
10214 (reg_dead_at_p): Likewise.
10215 (move_deaths): Likewise for param "to_insn".
10216 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
10217 and locals "place", "place2", "cc0_setter". Eliminate local "tem
10218 in favor of new locals "tem_note" and "tem_insn", the latter being
10220 (distribute_links): Strengthen locals "place", "insn" from rtx to
10223 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10225 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
10227 (can_delete_label_p): Require a const rtx_code_label * rather than
10229 (delete_insn): Add checked cast to rtx_code_label * when we know
10230 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
10232 (delete_insn_chain): Strengthen locals "prev" and "current" from
10233 rtx to rtx_insn *. Add a checked cast when assigning from
10234 "finish" (strengthening the params will come later). Add a
10235 checked cast to rtx_note * in region where we know
10237 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
10239 (compute_bb_for_insn): Likewise.
10240 (free_bb_for_insn): Likewise for local "insn".
10241 (compute_bb_for_insn): Likewise.
10242 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
10243 local "insn" from rtx to rtx_insn *
10244 (flow_active_insn_p): Require a const rtx_insn * rather than a
10246 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
10248 (can_fallthru): Likewise for locals "insn" and "insn2".
10249 (bb_note): Likewise for local "note".
10250 (first_insn_after_basic_block_note): Likewise for local "note" and
10252 (rtl_split_block): Likewise for locals "insn" and "next".
10253 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
10255 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
10256 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
10258 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
10259 them), "kill_from", "barrier", "new_insn".
10260 (patch_jump_insn): Likewise for params "insn", "old_label".
10261 (redirect_branch_edge): Likewise for locals "old_label", "insn".
10262 (force_nonfallthru_and_redirect): Likewise for locals "insn",
10263 "old_label", "new_label".
10264 (rtl_tidy_fallthru_edge): Likewise for local "q".
10265 (rtl_split_edge): Likewise for locals "before", "last".
10266 (commit_one_edge_insertion): Likewise for locals "before",
10267 "after", "insns", "tmp", "last", adding a checked cast where
10268 currently necessary.
10269 (commit_edge_insertions): Likewise.
10270 (rtl_dump_bb): Likewise for locals "insn", "last".
10271 (print_rtl_with_bb): Likewise for local "x".
10272 (rtl_verify_bb_insns): Likewise for local "x".
10273 (rtl_verify_bb_pointers): Likewise for local "insn".
10274 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
10276 (rtl_verify_fallthru): Likewise for local "insn".
10277 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
10278 (purge_dead_edges): Likewise for local "insn".
10279 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
10280 (skip_insns_after_block): Likewise for return type and for locals
10281 "insn", "last_insn", "next_head", "prev".
10282 (record_effective_endpoints): Likewise for locals "next_insn",
10284 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
10285 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
10286 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
10287 (duplicate_insn_chain): For now, add checked cast from rtx to
10288 rtx_insn * when returning insn.
10289 (cfg_layout_duplicate_bb): Likewise for local "insn".
10290 (cfg_layout_delete_block): Likewise for locals "insn", "next",
10291 "prev", "remaints".
10292 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
10293 (rtl_block_empty_p): Likewise.
10294 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
10295 "split_point", "last".
10296 (rtl_block_ends_with_call_p): Likewise for local "insn".
10297 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
10299 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
10300 "split_at_insn" from rtx to rtx_insn *.
10301 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
10302 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
10303 to const rtx_insn *.
10304 (rtl_account_profile_record): Likewise.
10306 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10308 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
10310 (average_num_loop_insns): Likewise.
10311 (init_set_costs): Likewise for local "seq".
10312 (seq_cost): Likewise for param "seq", from const_rtx to const
10315 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10317 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
10320 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10322 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
10323 "f1" and "f2" from rtx * to rtx_insn **.
10324 (flow_find_head_matching_sequence): Likewise.
10326 * cfgcleanup.c (try_simplify_condjump): Strengthen local
10327 "cbranch_insn" from rtx to rtx_insn *.
10328 (thread_jump): Likewise for local "insn".
10329 (try_forward_edges): Likewise for local "last".
10330 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
10331 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
10333 (can_replace_by): Likewise for params "i1", "i2".
10334 (old_insns_match_p): Likewise.
10335 (merge_notes): Likewise.
10336 (walk_to_nondebug_insn): Likewise for param "i1".
10337 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
10338 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
10339 "afterlast1", "afterlast2" from rtx to rtx_insn *.
10340 (flow_find_head_matching_sequence): Strengthen params "f1" and
10341 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
10342 "last1", "last2", "beforelast1", "beforelast2" from rtx to
10344 (outgoing_edges_match): Likewise for locals "last1", "last2".
10345 (try_crossjump_to_edge): Likewise for local "insn".
10346 Replace call to for_each_rtx with for_each_rtx_in_insn.
10348 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
10349 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
10350 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
10351 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
10352 (try_optimize_cfg): Strengthen local "last" from rtx to
10354 (delete_dead_jumptables): Likewise for locals "insn", "next",
10357 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
10358 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
10359 "rtx else_first_tail", to reflect the basic-block.h changes above.
10361 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10363 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
10365 (purge_dead_tablejump_edges): Likewise.
10366 (find_bb_boundaries): Likewise for locals "insn", "end",
10367 "flow_transfer_insn".
10369 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10371 * caller-save.c (save_call_clobbered_regs): Strengthen locals
10372 "ins" and "prev" from rtx to rtx_insn *.
10374 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10376 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
10378 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
10379 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
10381 (load_register_parameters): Likewise for local "before_arg".
10382 (check_sibcall_argument_overlap): Likewise for param "insn".
10383 (expand_call): Likewise for locals "normal_call_insns",
10384 "tail_call_insns", "insns", "before_call", "after_args",
10385 "before_arg", "last", "prev". Strengthen one of the "last" from
10386 rtx to rtx_call_insn *.
10387 (fixup_tail_calls): Strengthen local "insn" from rtx to
10389 (emit_library_call_value_1): Likewise for locals "before_call" and
10392 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10394 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
10395 and "last" from rtx to rtx_insn *.
10396 (expand_builtin_nonlocal_goto): Likewise for local "insn".
10397 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
10399 (expand_errno_check): Strengthen local "lab" from rtx to
10401 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
10403 (expand_builtin_mathfn_2): Likewise.
10404 (expand_builtin_mathfn_ternary): Likewise.
10405 (expand_builtin_mathfn_3): Likewise.
10406 (expand_builtin_interclass_mathfn): Likewise for local "last".
10407 (expand_builtin_int_roundingfn): Likewise for local "insns".
10408 (expand_builtin_int_roundingfn_2): Likewise.
10409 (expand_builtin_strlen): Likewise for local "before_strlen".
10410 (expand_builtin_strncmp): Likewise for local "seq".
10411 (expand_builtin_signbit): Likewise for local "last".
10412 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
10413 from rtx to rtx_code_label *.
10414 (expand_stack_restore): Strengthen local "prev" from rtx to
10417 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10419 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
10421 (struct btr_def_s): Likewise.
10422 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
10424 (add_btr_def): Likewise.
10425 (new_btr_user): Likewise.
10426 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
10428 (link_btr_uses): Likewise.
10429 (move_btr_def): Likewise for locals "insp", "old_insn",
10430 "new_insn". Add checked cast to rtx_insn * for now on result of
10432 (can_move_up): Strengthen param "insn" from const_rtx to
10435 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10437 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
10439 (get_uncond_jump_length): Likewise for locals "label", "jump".
10440 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
10442 (add_labels_and_missing_jumps): Likewise for local "new_jump".
10443 (fix_up_fall_thru_edges): Likewise for local "old_jump".
10444 (find_jump_block): Likewise for local "insn".
10445 (fix_crossing_conditional_branches): Likewise for locals
10446 "old_jump", "new_jump".
10447 (fix_crossing_unconditional_branches): Likewise for locals
10448 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
10449 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
10451 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10453 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
10455 (struct mem_insn): Likewise for field "insn".
10456 (reg_next_use): Strengthen from rtx * to rtx_insn **.
10457 (reg_next_inc_use): Likewise.
10458 (reg_next_def): Likewise.
10459 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
10460 from rtx to rtx_insn *.
10461 (move_insn_before): Likewise for param "next_insn" and local "insns".
10462 (attempt_change): Likewise for local "mov_insn".
10463 (try_merge): Likewise for param "last_insn".
10464 (get_next_ref): Likewise for return type and local "insn".
10465 Strengthen param "next_array" from rtx * to rtx_insn **.
10466 (parse_add_or_inc): Strengthen param "insn" from rtx to
10468 (find_inc): Likewise for locals "insn" and "other_insn" (three of
10470 (merge_in_block): Likewise for locals "insn", "curr",
10472 (pass_inc_dec::execute): Update allocations of the arrays to
10473 reflect the stronger types.
10475 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10477 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
10478 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
10479 from rtx to rtx_code_label *.
10481 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10483 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
10486 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10488 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
10489 generated a warning and prevented bootstrapping the compiler.
10491 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10493 * rtl.h (delete_related_insns): Strengthen return type from rtx to
10496 * jump.c (delete_related_insns): Likewise, also for locals "next"
10499 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10501 * genautomata.c (output_internal_insn_latency_func): When writing
10502 the function "internal_insn_latency" to insn-automata.c,
10503 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
10504 allowing the optional guard function of (define_bypass) clauses to
10505 expect a pair of rtx_insn *, rather than a pair of rtx.
10506 (output_insn_latency_func): When writing the function
10507 "insn_latency", add an "uncast_" prefix to params "insn" and
10508 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
10509 using checked casts from the params, thus enabling the above
10510 change to the generated "internal_insn_latency" function.
10512 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
10514 PR tree-optimization/62091
10515 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
10516 handle correctly arrays.
10517 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
10518 inheritance binfos.
10519 (record_known_type): Walk into inner type.
10520 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
10521 condition on no type changes.
10523 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10525 * genattrtab.c (write_attr_get): Within the generated get_attr_
10526 functions, rename param "insn" to "uncast_insn" and reintroduce
10527 "insn" as an local rtx_insn * using a checked cast, so that "insn"
10528 is an rtx_insn * within insn-attrtab.c
10530 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10532 * output.h (peephole): Strengthen return type from rtx to
10534 * rtl.h (delete_for_peephole): Likewise for both params.
10535 * genpeep.c (main): In generated "peephole" function, strengthen
10536 return type and local "insn" from rtx to rtx_insn *. For now,
10537 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
10538 rtx_insn *, with a checked cast.
10539 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
10540 locals "insn", "next", "prev" from rtx to rtx_insn *.
10542 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
10544 PR tree-optimization/62112
10545 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
10546 * gimple-iterator.h (gsi_replace): Return bool.
10547 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
10548 moved from ref_may_alias_global_p.
10549 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
10551 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
10552 (stmt_kills_ref_p_1): Rename...
10553 (stmt_kills_ref_p): ... to this.
10554 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
10555 stmt_kills_ref_p): Declare.
10556 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
10557 Move the self-assignment case...
10558 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
10560 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10562 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
10564 * emit-rtl.c (try_split): Likewise, also for locals "before" and
10565 "after". For now, don't strengthen param "trial", which requires
10566 adding checked casts when returning it.
10568 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10570 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
10571 "label" from rtx to rtx_code_label *. Strengthen param 1 of
10572 "var_location" hook from rtx to rtx_insn *.
10573 (debug_nothing_rtx): Delete in favor of...
10574 (debug_nothing_rtx_code_label): New prototype.
10575 (debug_nothing_rtx_rtx): Delete unused prototype.
10576 (debug_nothing_rtx_insn): New prototype.
10578 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
10579 invoking debug_hooks->var_location (in two places, one in a NOTE
10580 case of a switch statement, the other guarded by a CALL_P
10581 conditional. Add checked cast to rtx_code_label * when invoking
10582 debug_hooks->label (within CODE_LABEL case of switch statement).
10584 * dbxout.c (dbx_debug_hooks): Update "label" hook from
10585 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
10586 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
10587 (xcoff_debug_hooks): Likewise.
10588 * debug.c (do_nothing_debug_hooks): Likewise.
10589 (debug_nothing_rtx): Delete in favor of...
10590 (debug_nothing_rtx_insn): New function.
10591 (debug_nothing_rtx_rtx): Delete unused function.
10592 (debug_nothing_rtx_code_label): New function.
10593 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
10594 debug_nothing_rtx to debug_nothing_rtx_code_label.
10595 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
10597 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
10598 debug_nothing_rtx to debug_nothing_rtx_insn.
10599 (sdbout_label): Strengthen param "insn" from rtx to
10601 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
10602 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
10603 "var_location" hook from debug_nothing_rtx to
10604 debug_nothing_rtx_insn.
10606 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10608 * recog.h (insn_output_fn): Update this function typedef to match
10609 the changes below to the generated output functions, strengthening
10610 the 2nd param from rtx to rtx_insn *.
10612 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
10613 insn when invoking an output function, to match the new signature
10614 of insn_output_fn with a stronger second param.
10616 * genconditions.c (write_header): In the generated code for
10617 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
10618 to match the other changes in this patch.
10620 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
10621 the generated "gen_" functions from rtx to rtx_insn * within their
10624 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
10625 the subfunctions within the generated "recog_", "split", "peephole2"
10626 function trees from rtx to rtx_insn *. For now, the top-level
10627 generated functions ("recog", "split", "peephole2") continue to
10628 take a plain rtx for "insn", to avoid introducing dependencies on
10629 other patches. Rename this 2nd param from "insn" to
10630 "uncast_insn", and reintroduce "insn" as a local variable of type
10631 rtx_insn *, initialized at the top of the generated function with
10632 a checked cast on "uncast_insn".
10633 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
10634 the generated "gen_" functions from rtx to rtx_insn * within their
10637 * genoutput.c (process_template): Strengthen the 2nd param within
10638 the generated "output_" functions "insn" from rtx to rtx_insn *.
10640 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
10642 * tree-profile.c (tree_profiling): Skip external functions
10643 when doing coverage instrumentation.
10644 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
10646 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10648 * config/rs6000/altivec.h (vec_cpsgn): New #define.
10649 (vec_mergee): Likewise.
10650 (vec_mergeo): Likewise.
10651 (vec_cntlz): Likewise.
10652 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
10653 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
10654 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
10655 VMRGEW, and VMRGOW.
10656 * doc/extend.texi: Document various forms of vec_cpsgn,
10657 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
10658 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
10659 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
10660 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
10661 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
10663 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10665 * config/rs6000/rs6000.c (context.h): New include.
10666 (tree-pass.h): Likewise.
10667 (make_pass_analyze_swaps): New decl.
10668 (rs6000_option_override): Register pass_analyze_swaps.
10669 (swap_web_entry): New subsclass of web_entry_base (df.h).
10670 (special_handling_values): New enum.
10671 (union_defs): New function.
10672 (union_uses): Likewise.
10673 (insn_is_load_p): Likewise.
10674 (insn_is_store_p): Likewise.
10675 (insn_is_swap_p): Likewise.
10676 (rtx_is_swappable_p): Likewise.
10677 (insn_is_swappable_p): Likewise.
10678 (chain_purpose): New enum.
10679 (chain_contains_only_swaps): New function.
10680 (mark_swaps_for_removal): Likewise.
10681 (swap_const_vector_halves): Likewise.
10682 (adjust_subreg_index): Likewise.
10683 (permute_load): Likewise.
10684 (permute_store): Likewise.
10685 (handle_special_swappables): Likewise.
10686 (replace_swap_with_copy): Likewise.
10687 (dump_swap_insn_table): Likewise.
10688 (rs6000_analyze_swaps): Likewise.
10689 (pass_data_analyze_swaps): New pass_data.
10690 (pass_analyze_swaps): New rtl_opt_pass.
10691 (make_pass_analyze_swaps): New function.
10692 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
10694 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10696 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
10697 type from rtx to rtx_insn *.
10698 (create_copy_of_insn_rtx): Likewise.
10699 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
10700 (create_copy_of_insn_rtx): Likewise, also for local "res".
10702 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10704 * rtl.h (find_first_parameter_load): Strengthen return type from
10706 * rtlanal.c (find_first_parameter_load): Strengthen return type
10707 from rtx to rtx_insn *. Add checked cast for now, to postpone
10708 strengthening the params.
10710 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
10713 * diagnostic.c: Set default caret.
10714 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
10716 * diagnostic.h (struct diagnostic_context):
10718 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10720 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
10721 (sel_bb_head): Strengthen return type insn_t (currently just an
10722 rtx) to rtx_insn *.
10723 (sel_bb_end): Likewise.
10725 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
10726 (sel_bb_head): Strengthen return type and local "head" from
10727 insn_t (currently just an rtx) to rtx_insn *.
10728 (sel_bb_end): Likewise for return type.
10729 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
10732 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10734 * basic-block.h (get_last_bb_insn): Strengthen return type from
10736 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
10739 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
10742 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
10744 (diagnostic_report_diagnostic): ... from here.
10745 * toplev.c (general_init): Move code to c-family.
10747 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10749 * df.h (web_entry_base): Replace existing struct web_entry with a
10750 new class web_entry_base with only the predecessor member.
10751 (unionfind_root): Remove declaration and move to class member.
10752 (unionfind_union): Remove declaration and move to friend
10754 (union_defs): Remove declaration.
10755 * web.c (web_entry_base::unionfind_root): Modify to be member
10756 function and adjust accessors.
10757 (unionfind_union): Modify to be friend function and adjust
10759 (web_entry): New subclass of web_entry_base containing the reg
10761 (union_match_dups): Modify for struct -> class changes.
10762 (union_defs): Likewise.
10763 (entry_register): Likewise.
10764 (pass_web::execute): Likewise.
10766 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
10768 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
10769 builtin define __VEC_ELEMENT_REG_ORDER__.
10771 2014-08-20 Martin Jambor <mjambor@suse.cz>
10772 Wei Mi <wmi@google.com>
10775 PR middle-end/61776
10776 * tree-ssa-operands.c (update_stmt_operands): Remove
10777 MODIFIED_NORETURN_CALLS.
10778 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
10779 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
10780 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
10781 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
10782 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
10783 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
10784 (gimple_call_set_ctrl_altering): New func.
10785 (gimple_call_ctrl_altering_p): Ditto.
10786 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
10787 (make_blocks): Use gimple_call_initialize_ctrl_altering.
10788 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
10789 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
10790 remove MODIFIED_NORETURN_CALLS.
10792 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
10794 * coverage.c (coverage_compute_profile_id): Return non-0;
10795 also handle symbols with unique name.
10796 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
10798 2014-08-20 Steve Ellcey <sellcey@mips.com>
10800 PR middle-end/49191
10801 * doc/sourcebuild.texi (non_strict_align): New.
10803 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
10805 * cgraphunit.c (ipa_passes, compile): Reshedule
10806 symtab_remove_unreachable_nodes passes; update comments.
10807 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
10808 TODO_remove_functions before the pass; the functions ought to be
10810 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
10811 TODO_remove_functions.
10812 * passes.c (pass_data_early_local_passes): Do not schedule function
10814 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
10816 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
10819 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
10820 before setting the option.
10821 * diagnostic.c (diagnostic_classify_diagnostic): Record
10822 command-line status.
10824 2014-08-20 Richard Biener <rguenther@suse.de>
10827 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
10828 to build uint{16,32,64}_type_node.
10830 2014-08-20 Terry Guo <terry.guo@arm.com>
10832 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
10833 with immediate_operand.
10835 2014-08-20 David Malcolm <dmalcolm@redhat.com>
10837 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
10838 "insn" from an as_a to a safe_as_a, for the case when "insn" is
10841 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
10843 PR preprocessor/51303
10844 * incpath.c (remove_duplicates): Use cpp_warning.
10846 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
10850 * doc/options.texi (CPP): Document it.
10851 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
10852 * optc-gen.awk: Handle CPP.
10853 * opth-gen.awk: Likewise.
10855 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10857 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
10859 (duplicate_insn_chain): Likewise.
10860 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
10861 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
10862 checked cast for now (until we can strengthen the params in the
10864 (duplicate_insn_chain): Likewise.
10866 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10868 * rtl.h (next_cc0_user): Strengthen return type from rtx to
10870 (prev_cc0_setter): Likewise.
10872 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
10873 rtx_insn *, adding checked casts for now as necessary.
10874 (prev_cc0_setter): Likewise.
10876 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10878 * expr.h (emit_move_insn): Strengthen return type from rtx to
10880 (emit_move_insn_1): Likewise.
10881 (emit_move_complex_push): Likewise.
10882 (emit_move_complex_parts): Likewise.
10884 * expr.c (emit_move_via_integer): Strengthen return type from rtx
10885 to rtx_insn *. Replace use of NULL_RTX with NULL when working
10887 (emit_move_complex_push): Strengthen return type from rtx to
10889 (emit_move_complex): Likewise, also for local "ret".
10890 (emit_move_ccmode): Likewise.
10891 (emit_move_multi_word): Likewise for return type and locals
10892 "last_insn", "seq".
10893 (emit_move_insn_1): Likewise for return type and locals "result",
10895 (emit_move_insn): Likewise for return type and local "last_insn".
10896 (compress_float_constant): Likewise.
10898 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10900 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
10901 from rtx to rtx_insn *.
10903 * rtl.h (emit_insn_before): Likewise.
10904 (emit_insn_before_noloc): Likewise.
10905 (emit_insn_before_setloc): Likewise.
10906 (emit_jump_insn_before): Likewise.
10907 (emit_jump_insn_before_noloc): Likewise.
10908 (emit_jump_insn_before_setloc): Likewise.
10909 (emit_call_insn_before): Likewise.
10910 (emit_call_insn_before_noloc): Likewise.
10911 (emit_call_insn_before_setloc): Likewise.
10912 (emit_debug_insn_before): Likewise.
10913 (emit_debug_insn_before_noloc): Likewise.
10914 (emit_debug_insn_before_setloc): Likewise.
10915 (emit_label_before): Likewise.
10916 (emit_insn_after): Likewise.
10917 (emit_insn_after_noloc): Likewise.
10918 (emit_insn_after_setloc): Likewise.
10919 (emit_jump_insn_after): Likewise.
10920 (emit_jump_insn_after_noloc): Likewise.
10921 (emit_jump_insn_after_setloc): Likewise.
10922 (emit_call_insn_after): Likewise.
10923 (emit_call_insn_after_noloc): Likewise.
10924 (emit_call_insn_after_setloc): Likewise.
10925 (emit_debug_insn_after): Likewise.
10926 (emit_debug_insn_after_noloc): Likewise.
10927 (emit_debug_insn_after_setloc): Likewise.
10928 (emit_label_after): Likewise.
10929 (emit_insn): Likewise.
10930 (emit_debug_insn): Likewise.
10931 (emit_jump_insn): Likewise.
10932 (emit_call_insn): Likewise.
10933 (emit_label): Likewise.
10934 (gen_clobber): Likewise.
10935 (emit_clobber): Likewise.
10936 (gen_use): Likewise.
10937 (emit_use): Likewise.
10940 (emit_barrier_before): Strengthen return type from rtx to
10942 (emit_barrier_after): Likewise.
10943 (emit_barrier): Likewise.
10945 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
10946 from rtx to rtx_insn *. Add checked casts for now when converting
10947 "last" from rtx to rtx_insn *.
10948 (emit_insn_before_noloc): Likewise for return type.
10949 (emit_jump_insn_before_noloc): Likewise.
10950 (emit_call_insn_before_noloc): Likewise.
10951 (emit_debug_insn_before_noloc): Likewise.
10952 (emit_barrier_before): Strengthen return type and local "insn"
10953 from rtx to rtx_barrier *.
10954 (emit_label_before): Strengthen return type from rtx to
10955 rtx_insn *. Add checked cast for now when returning param
10956 (emit_pattern_after_noloc): Strengthen return type from rtx to
10957 rtx_insn *. Add checked casts for now when converting "last" from
10959 (emit_insn_after_noloc): Strengthen return type from rtx to
10961 (emit_jump_insn_after_noloc): Likewise.
10962 (emit_call_insn_after_noloc): Likewise.
10963 (emit_debug_insn_after_noloc): Likewise.
10964 (emit_barrier_after): Strengthen return type from rtx to
10966 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
10967 Add checked cast for now when converting "label" from rtx to
10969 (emit_pattern_after_setloc): Strengthen return type from rtx to
10970 rtx_insn *. Add checked casts for now when converting "last" from
10972 (emit_pattern_after): Strengthen return type from rtx to
10974 (emit_insn_after_setloc): Likewise.
10975 (emit_insn_after): Likewise.
10976 (emit_jump_insn_after_setloc): Likewise.
10977 (emit_jump_insn_after): Likewise.
10978 (emit_call_insn_after_setloc): Likewise.
10979 (emit_call_insn_after): Likewise.
10980 (emit_debug_insn_after_setloc): Likewise.
10981 (emit_debug_insn_after): Likewise.
10982 (emit_pattern_before_setloc): Likewise. Add checked casts for now
10983 when converting "last" from rtx to rtx_insn *.
10984 (emit_pattern_before): Strengthen return type from rtx to
10986 (emit_insn_before_setloc): Likewise.
10987 (emit_insn_before): Likewise.
10988 (emit_jump_insn_before_setloc): Likewise.
10989 (emit_jump_insn_before): Likewise.
10990 (emit_call_insn_before_setloc): Likewise.
10991 (emit_call_insn_before): Likewise.
10992 (emit_debug_insn_before_setloc): Likewise.
10993 (emit_debug_insn_before): Likewise.
10994 (emit_insn): Strengthen return type and locals "last", "insn",
10995 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
10996 within cases where we know we have an insn.
10997 (emit_debug_insn): Likewise.
10998 (emit_jump_insn): Likewise.
10999 (emit_call_insn): Strengthen return type and local "insn" from rtx
11001 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
11002 a checked cast to rtx_insn * for now on "label".
11003 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
11004 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
11005 (emit_use): Likewise.
11006 (gen_use): Likewise, also for local "seq".
11007 (emit): Likewise for return type and local "insn".
11008 (rtx_insn): Likewise for return type and local "new_rtx".
11010 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
11011 from rtx to rtx_barrier *.
11013 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
11014 changed return type from rtx to rtx_insn *, we must update
11015 "emit_fn" type, and this in turn means updating...
11016 (frame_insn): ...this. Strengthen return type from rtx to
11017 rtx_insn *. Introduce a new local "insn" of the appropriate type.
11019 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11021 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
11022 rtx to rtx_jump_table_data *. Also for local.
11023 * rtl.h (emit_jump_table_data): Likewise.
11025 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11027 * basic-block.h (create_basic_block_structure): Strengthen third
11028 param "bb_note" from rtx to rtx_note *.
11029 * rtl.h (emit_note_before): Strengthen return type from rtx to
11031 (emit_note_after): Likewise.
11032 (emit_note): Likewise.
11033 (emit_note_copy): Likewise. Also, strengthen param similarly.
11034 * function.h (struct rtl_data): Strengthen field
11035 "x_stack_check_probe_note" from rtx to rtx_note *.
11037 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
11038 from rtx to rtx_note *.
11039 * cfgrtl.c (create_basic_block_structure): Strengthen third param
11040 "bb_note" from rtx to rtx_note *.
11041 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
11042 when calling emit_note_copy.
11043 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
11045 (emit_note_after): Likewise.
11046 (emit_note_before): Likewise.
11047 (emit_note_copy): Likewise. Also, strengthen param similarly.
11048 (emit_note): Likewise.
11049 * except.c (emit_note_eh_region_end): Likewise for return type.
11050 Strengthen local "next" from rtx to rtx_insn *.
11051 (convert_to_eh_region_ranges): Strengthen local "note"
11052 from rtx to rtx_note *.
11053 * final.c (change_scope): Likewise.
11054 (reemit_insn_block_notes): Likewise, for both locals named "note".
11055 Also, strengthen local "insn" from rtx to rtx_insn *.
11056 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
11058 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
11059 strengthen local "seq" from rtx to rtx_insn *.
11060 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
11062 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
11064 (get_bb_note_from_pool): Strengthen return type from rtx to
11066 (sel_create_basic_block): Strengthen local "new_bb_note" from
11067 insn_t to rtx_note *.
11068 * var-tracking.c (emit_note_insn_var_location): Strengthen local
11069 "note" from rtx to rtx_note *.
11070 (emit_notes_in_bb): Likewise.
11072 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11074 * function.h (struct rtl_data): Strengthen field
11075 "x_parm_birth_insn" from rtx to rtx_insn *.
11076 * function.c (struct assign_parm_data_all): Strengthen fields
11077 "first_conversion_insn" and "last_conversion_insn" from rtx to
11080 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11082 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
11083 to rtx_insn *; also for local "var_end_seq".
11084 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
11085 (maybe_cleanup_end_of_block): Likewise for param "last" and local
11087 (expand_gimple_cond): Likewise for locals "last2" and "last".
11088 (mark_transaction_restart_calls): Likewise for local "insn".
11089 (expand_gimple_stmt): Likewise for return type and locals "last"
11091 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
11092 (avoid_complex_debug_insns): Likewise for param "insn".
11093 (expand_debug_locations): Likewise for locals "insn", "last",
11094 "prev_insn" and "insn2".
11095 (expand_gimple_basic_block): Likewise for local "last".
11096 (construct_exit_block): Likewise for locals "head", "end",
11098 (pass_expand::execute): Likewise for locals "var_seq",
11099 "var_ret_seq", "next".
11101 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11103 * asan.h (asan_emit_stack_protection): Strengthen return type from
11105 * asan.c (asan_emit_stack_protection): Likewise. Add local
11106 "insns" to hold the return value.
11108 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11110 * basic-block.h (bb_note): Strengthen return type from rtx to
11112 * sched-int.h (bb_note): Likewise.
11113 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
11115 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11117 * rtl.h (make_insn_raw): Strengthen return type from rtx to
11120 * emit-rtl.c (make_insn_raw): Strengthen return type and local
11121 "insn" from rtx to rtx_insn *.
11122 (make_debug_insn_raw): Strengthen return type from rtx to
11123 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
11124 (make_jump_insn_raw): Strengthen return type from rtx to
11125 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
11126 (make_call_insn_raw): Strengthen return type from rtx to
11127 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
11128 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
11129 callback from rtx to rtx_insn *; likewise for local "insn" and
11130 "next", adding a checked cast to rtx_insn in the relevant cases of
11131 the switch statement.
11132 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
11133 callback from rtx to rtx_insn *.
11134 (emit_pattern_after_setloc): Likewise.
11135 (emit_pattern_after): Likewise.
11136 (emit_pattern_before_setloc): Likewise.
11137 (emit_pattern_before): Likewise.
11139 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11141 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
11143 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
11144 accepting an rtx_insn *.
11145 (last_call_insn): Strengthen return type from rtx to
11148 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11150 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
11151 "insns" from rtx to rtx_insn *.
11152 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
11153 locals "insn" and "prev".
11155 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11157 * rtl.h (tablejump_p): Strengthen third param from rtx * to
11158 rtx_jump_table_data **.
11160 * cfgbuild.c (make_edges): Introduce local "table", using it in
11161 place of "tmp" for jump table data.
11162 (find_bb_boundaries): Strengthen local "table" from rtx to
11163 rtx_jump_table_data *.
11164 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
11165 (outgoing_edges_match): Likewise for locals "table1" and "table2".
11166 (try_crossjump_to_edge): Likewise.
11167 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
11169 (patch_jump_insn): Introduce local "table", using it in place of
11170 "tmp" for jump table data.
11171 (force_nonfallthru_and_redirect): Introduce local "table", so that
11172 call to tablejump_p can receive an rtx_jump_table_data **. Update
11173 logic around the call to overwrite "note" appropriately if
11174 tablejump_p returns non-zero.
11175 (get_last_bb_insn): Introduce local "table", using it in place of
11176 "tmp" for jump table data.
11177 * dwarf2cfi.c (create_trace_edges): Likewise.
11179 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
11180 from rtx to rtx_jump_table_data *.
11181 (create_fix_barrier): Strengthen local "tmp" from rtx to
11182 rtx_jump_table_data *.
11183 (arm_reorg): Likewise for local "table".
11185 * config/s390/s390.c (s390_chunkify_start): Likewise.
11187 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
11189 * jump.c (delete_related_insns): Strengthen local "lab_next" from
11190 rtx to rtx_jump_table_data *.
11192 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
11193 rtx_jump_table_data **. Add a checked cast when writing through
11194 the pointer: we know there that local "table" is non-NULL and that
11195 JUMP_TABLE_DATA_P (table) holds.
11196 (label_is_jump_target_p): Introduce local "table", using it in
11197 place of "tmp" for jump table data.
11199 2014-08-19 Marek Polacek <polacek@redhat.com>
11202 * doc/invoke.texi: Document -Wbool-compare.
11204 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11206 * rtl.h (entry_of_function): Strengthen return type from rtx to
11208 * cfgrtl.c (entry_of_function): Likewise.
11210 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11212 * emit-rtl.h (get_insns): Strengthen return type from rtx to
11213 rtx_insn *, adding a checked cast for now.
11214 (get_last_insn): Likewise.
11216 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11218 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
11221 * emit-rtl.c (gen_label_rtx): Likewise.
11223 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11225 * rtl.h (previous_insn): Strengthen return type from rtx to
11227 (next_insn): Likewise.
11228 (prev_nonnote_insn): Likewise.
11229 (prev_nonnote_insn_bb): Likewise.
11230 (next_nonnote_insn): Likewise.
11231 (next_nonnote_insn_bb): Likewise.
11232 (prev_nondebug_insn): Likewise.
11233 (next_nondebug_insn): Likewise.
11234 (prev_nonnote_nondebug_insn): Likewise.
11235 (next_nonnote_nondebug_insn): Likewise.
11236 (prev_real_insn): Likewise.
11237 (next_real_insn): Likewise.
11238 (prev_active_insn): Likewise.
11239 (next_active_insn): Likewise.
11241 * emit-rtl.c (next_insn): Strengthen return type from rtx to
11242 rtx_insn *, adding a checked cast.
11243 (previous_insn): Likewise.
11244 (next_nonnote_insn): Likewise.
11245 (next_nonnote_insn_bb): Likewise.
11246 (prev_nonnote_insn): Likewise.
11247 (prev_nonnote_insn_bb): Likewise.
11248 (next_nondebug_insn): Likewise.
11249 (prev_nondebug_insn): Likewise.
11250 (next_nonnote_nondebug_insn): Likewise.
11251 (prev_nonnote_nondebug_insn): Likewise.
11252 (next_real_insn): Likewise.
11253 (prev_real_insn): Likewise.
11254 (next_active_insn): Likewise.
11255 (prev_active_insn): Likewise.
11257 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
11258 param "stepfunc" so that it returns an rtx_insn * rather than an
11259 rtx, to track the change to prev_nonnote_insn_bb, which is the
11260 only function this is called with.
11261 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
11263 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
11265 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
11268 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11270 * coretypes.h (class rtx_debug_insn): Add forward declaration.
11271 (class rtx_nonjump_insn): Likewise.
11272 (class rtx_jump_insn): Likewise.
11273 (class rtx_call_insn): Likewise.
11274 (class rtx_jump_table_data): Likewise.
11275 (class rtx_barrier): Likewise.
11276 (class rtx_code_label): Likewise.
11277 (class rtx_note): Likewise.
11279 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
11280 adding the invariant DEBUG_INSN_P (X).
11281 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
11282 the invariant NONJUMP_INSN_P (X).
11283 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
11284 the invariant JUMP_P (X).
11285 (class rtx_call_insn): New, a subclass of rtx_insn, adding
11286 the invariant CALL_P (X).
11287 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
11288 invariant JUMP_TABLE_DATA_P (X).
11289 (class rtx_barrier): New, a subclass of rtx_insn, adding the
11290 invariant BARRIER_P (X).
11291 (class rtx_code_label): New, a subclass of rtx_insn, adding
11292 the invariant LABEL_P (X).
11293 (class rtx_note): New, a subclass of rtx_insn, adding
11294 the invariant NOTE_P(X).
11295 (is_a_helper <rtx_debug_insn *>::test): New.
11296 (is_a_helper <rtx_nonjump_insn *>::test): New.
11297 (is_a_helper <rtx_jump_insn *>::test): New.
11298 (is_a_helper <rtx_call_insn *>::test): New.
11299 (is_a_helper <rtx_jump_table_data *>::test): New functions,
11300 overloaded for both rtx and rtx_insn *.
11301 (is_a_helper <rtx_barrier *>::test): New.
11302 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
11303 for both rtx and rtx_insn *.
11304 (is_a_helper <rtx_note *>::test): New.
11306 2014-08-19 Marek Polacek <polacek@redhat.com>
11308 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
11309 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
11310 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
11311 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
11313 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11315 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
11316 rtx_insn *. To help with transition, for now, convert from an
11317 access macro into a pair of functions: BND_TO, returning an
11319 (SET_BND_TO): New function, for use where BND_TO is used as an
11322 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
11324 (BND_TO): New function, adding a checked cast.
11325 (SET_BND_TO): New function.
11327 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
11329 (compute_av_set_on_boundaries): Likewise.
11331 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
11333 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
11334 destination if it is used in source.
11335 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
11336 (*popcount<mode>2_falsedep_1): Likewise.
11338 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
11341 * configure.ac: Set install_gold_as_default to no first.
11342 * configure: Regenerated.
11344 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11346 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
11347 "note_list" field will eventually be an rtx_insn *. To help with
11348 transition, for now, convert from an access macro into a pair of
11349 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
11350 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
11353 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
11354 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
11356 * sel-sched-ir.c (init_bb): Likewise.
11357 (sel_restore_notes): Likewise.
11358 (move_bb_info): Likewise.
11359 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
11360 (SET_BB_NOTE_LIST): New function.
11362 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11364 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
11365 field will eventually be an rtx_insn *. To help with transition,
11366 for now, convert from an access macro into a pair of functions:
11367 VINSN_INSN_RTX, returning an rtx_insn *, and...
11368 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
11369 is used as an lvalue.
11371 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
11372 SET_VINSN_INSN_RTX where it's used as an lvalue.
11373 (VINSN_INSN_RTX): New function.
11374 (SET_VINSN_INSN_RTX): New function.
11376 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11378 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
11379 eventually be rtx_insn *, but to help with transition, for now,
11380 convert from an access macro into a pair of functions: DEP_PRO
11381 returning an rtx_insn * and...
11382 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
11383 lvalue, returning an rtx&.
11384 (DEP_CON): Analogous changes to DEP_PRO above.
11385 (SET_DEP_CON): Likewise.
11387 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
11388 an lvalue to SET_DEP_CON.
11389 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
11390 (sd_copy_back_deps): Likewise for DEP_CON.
11391 (DEP_PRO): New function, adding a checked cast for now.
11392 (DEP_CON): Likewise.
11393 (SET_DEP_PRO): New function.
11394 (SET_DEP_CON): Likewise.
11396 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
11398 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
11399 (extra_options): Add i386/cygwin.opt.
11400 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
11401 (CPP_SPEC): Accept -pthread.
11402 (LINK_SPEC): Ditto.
11403 (GOMP_SELF_SPECS): Update comment.
11404 * config/i386/cygwin.opt: New file for -pthread flag.
11406 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11408 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
11409 * df.h (DF_REF_INSN): Convert from a macro to a function, so
11410 that we can return an rtx_insn *.
11412 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
11414 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
11415 when building executables, not DLLs. Add --large-address-aware
11416 under the same conditions.
11417 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
11418 when building executables, not DLLs. Add --large-address-aware
11419 under the same conditions when using -m32.
11421 * config/i386/cygwin-stdint.h: Throughout, make type
11422 definitions dependent on target architecture, not host.
11424 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11426 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
11427 the return type from rtx to rtx_insn *, which will enable various
11428 conversions in followup patches. For now this is is done by a
11430 (NEXT_INSN): Likewise.
11431 (SET_PREV_INSN): Convert to an inline function. This is intended
11432 for use as an lvalue, and so returns an rtx& to allow in-place
11434 (SET_NEXT_INSN): Likewise.
11436 2014-07-08 Mark Wielaard <mjw@redhat.com>
11439 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
11441 2014-08-19 Marek Polacek <polacek@redhat.com>
11444 * cgraphunit.c (handle_alias_pairs): Fix condition.
11446 2014-08-19 Richard Biener <rguenther@suse.de>
11448 * gimple-fold.c (fold_gimple_assign): Properly build a
11449 null-pointer constant when devirtualizing addresses.
11451 2014-07-07 Mark Wielaard <mjw@redhat.com>
11453 * dwarf2out.c (decl_quals): New function.
11454 (modified_type_die): Take one cv_quals argument instead of two,
11455 one for const and one for volatile.
11456 (add_type_attribute): Likewise.
11457 (generic_parameter_die): Call add_type_attribute with one modifier
11459 (base_type_for_mode): Likewise.
11460 (add_bounds_info): Likewise.
11461 (add_subscript_info): Likewise.
11462 (gen_array_type_die): Likewise.
11463 (gen_descr_array_type_die): Likewise.
11464 (gen_entry_point_die): Likewise.
11465 (gen_enumeration_type_die): Likewise.
11466 (gen_formal_parameter_die): Likewise.
11467 (gen_subprogram_die): Likewise.
11468 (gen_variable_die): Likewise.
11469 (gen_const_die): Likewise.
11470 (gen_field_die): Likewise.
11471 (gen_pointer_type_die): Likewise.
11472 (gen_reference_type_die): Likewise.
11473 (gen_ptr_to_mbr_type_die): Likewise.
11474 (gen_inheritance_die): Likewise.
11475 (gen_subroutine_type_die): Likewise.
11476 (gen_typedef_die): Likewise.
11477 (force_type_die): Likewise.
11479 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11481 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
11483 * configure: Regenerate.
11485 2014-08-19 Richard Biener <rguenther@suse.de>
11487 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
11488 DECL_EXTERNALs in BLOCKs as non-references.
11489 * tree-streamer-out.c (streamer_write_chain): Likewise.
11491 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
11492 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11493 Anna Tikhonova <anna.tikhonova@intel.com>
11494 Ilya Tocar <ilya.tocar@intel.com>
11495 Andrey Turetskiy <andrey.turetskiy@intel.com>
11496 Ilya Verbin <ilya.verbin@intel.com>
11497 Kirill Yukhin <kirill.yukhin@intel.com>
11498 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11500 * config/i386/sse.md
11501 (define_mode_iterator VI48_AVX512F): Delete.
11502 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
11503 (define_mode_iterator VI2_AVX512VL): Ditto.
11504 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
11507 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
11509 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
11510 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
11511 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
11512 with VI48_AVX512F_AVX512VL): New.
11513 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
11514 with VI2_AVX512VL): Ditto.
11516 2014-08-19 Marek Polacek <polacek@redhat.com>
11518 * doc/invoke.texi: Document -Wc99-c11-compat.
11520 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11522 * rtl.h (PREV_INSN): Split macro in two: the existing one,
11523 for rvalues, and...
11524 (SET_PREV_INSN): New macro, for use as an lvalue.
11525 (NEXT_INSN, SET_NEXT_INSN): Likewise.
11527 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
11528 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
11529 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
11530 (fixup_abnormal_edges): Likewise.
11531 (unlink_insn_chain): Likewise.
11532 (fixup_reorder_chain): Likewise.
11533 (cfg_layout_delete_block): Likewise.
11534 (cfg_layout_merge_blocks): Likewise.
11535 * combine.c (update_cfg_for_uncondjump): Likewise.
11536 * emit-rtl.c (link_insn_into_chain): Likewise.
11537 (remove_insn): Likewise.
11538 (delete_insns_since): Likewise.
11539 (reorder_insns_nobb): Likewise.
11540 (emit_insn_after_1): Likewise.
11541 * final.c (rest_of_clean_state): Likewise.
11542 (final_scan_insn): Likewise.
11543 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
11544 * haifa-sched.c (concat_note_lists): Likewise.
11545 (remove_notes): Likewise.
11546 (restore_other_notes): Likewise.
11547 (move_insn): Likewise.
11548 (unlink_bb_notes): Likewise.
11549 (restore_bb_notes): Likewise.
11550 * jump.c (delete_for_peephole): Likewise.
11551 * optabs.c (emit_libcall_block_1): Likewise.
11552 * reorg.c (emit_delay_sequence): Likewise.
11553 (fill_simple_delay_slots): Likewise.
11554 * sel-sched-ir.c (sel_move_insn): Likewise.
11555 (sel_remove_insn): Likewise.
11556 (get_bb_note_from_pool): Likewise.
11557 * sel-sched.c (move_nop_to_previous_block): Likewise.
11559 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
11560 * config/c6x/c6x.c (gen_one_bundle): Likewise.
11561 (c6x_gen_bundles): Likewise.
11562 (hwloop_optimize): Likewise.
11563 * config/frv/frv.c (frv_function_prologue): Likewise.
11564 (frv_register_nop): Likewise.
11565 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
11566 (ia64_reorg): Likewise.
11567 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
11568 (mep_make_bundle): Likewise.
11569 (mep_bundle_insns): Likewise.
11570 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
11571 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
11572 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
11574 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11576 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
11577 return type from rtx to rtx_insn *.
11578 (BB_END): Likewise.
11579 (BB_HEADER): Likewise.
11580 (BB_FOOTER): Likewise.
11581 (SET_BB_HEAD): Convert to a function.
11582 (SET_BB_END): Likewise.
11583 (SET_BB_HEADER): Likewise.
11584 (SET_BB_FOOTER): Likewise.
11586 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
11587 Strengthen the return type from rtx to rtx_insn *. For now, this
11588 is done by adding a checked cast, but this will eventually
11589 become a field lookup.
11590 (BB_END): Likewise.
11591 (BB_HEADER): Likewise.
11592 (BB_FOOTER): Likewise.
11593 (SET_BB_HEAD): New function, from macro of same name. This is
11594 intended for use as an lvalue, and so returns an rtx& to allow
11595 in-place modification.
11596 (SET_BB_END): Likewise.
11597 (SET_BB_HEADER): Likewise.
11598 (SET_BB_FOOTER): Likewise.
11600 2014-08-18 David Malcolm <dmalcolm@redhat.com>
11602 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
11603 for rvalues, and...
11604 (SET_BB_HEAD): New macro, for use as a lvalue.
11605 (BB_END, SET_BB_END): Likewise.
11606 (BB_HEADER, SET_BB_HEADER): Likewise.
11607 (BB_FOOTER, SET_BB_FOOTER): Likewise.
11609 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
11610 of BB_* macros into SET_BB_* macros.
11611 (fix_crossing_unconditional_branches): Likewise.
11612 * caller-save.c (save_call_clobbered_regs): Likewise.
11613 (insert_one_insn): Likewise.
11614 * cfgbuild.c (find_bb_boundaries): Likewise.
11615 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
11616 (outgoing_edges_match): Likewise.
11617 (try_optimize_cfg): Likewise.
11618 * cfgexpand.c (expand_gimple_cond): Likewise.
11619 (expand_gimple_tailcall): Likewise.
11620 (expand_gimple_basic_block): Likewise.
11621 (construct_exit_block): Likewise.
11622 * cfgrtl.c (delete_insn): Likewise.
11623 (create_basic_block_structure): Likewise.
11624 (rtl_delete_block): Likewise.
11625 (rtl_split_block): Likewise.
11626 (emit_nop_for_unique_locus_between): Likewise.
11627 (rtl_merge_blocks): Likewise.
11628 (block_label): Likewise.
11629 (try_redirect_by_replacing_jump): Likewise.
11630 (emit_barrier_after_bb): Likewise.
11631 (fixup_abnormal_edges): Likewise.
11632 (record_effective_endpoints): Likewise.
11633 (relink_block_chain): Likewise.
11634 (fixup_reorder_chain): Likewise.
11635 (fixup_fallthru_exit_predecessor): Likewise.
11636 (cfg_layout_duplicate_bb): Likewise.
11637 (cfg_layout_split_block): Likewise.
11638 (cfg_layout_delete_block): Likewise.
11639 (cfg_layout_merge_blocks): Likewise.
11640 * combine.c (update_cfg_for_uncondjump): Likewise.
11641 * emit-rtl.c (add_insn_after): Likewise.
11642 (remove_insn): Likewise.
11643 (reorder_insns): Likewise.
11644 (emit_insn_after_1): Likewise.
11645 * haifa-sched.c (get_ebb_head_tail): Likewise.
11646 (restore_other_notes): Likewise.
11647 (move_insn): Likewise.
11648 (sched_extend_bb): Likewise.
11649 (fix_jump_move): Likewise.
11650 * ifcvt.c (noce_process_if_block): Likewise.
11651 (dead_or_predicable): Likewise.
11652 * ira.c (update_equiv_regs): Likewise.
11653 * reg-stack.c (change_stack): Likewise.
11654 * sel-sched-ir.c (sel_move_insn): Likewise.
11655 * sel-sched.c (move_nop_to_previous_block): Likewise.
11657 * config/c6x/c6x.c (hwloop_optimize): Likewise.
11658 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
11660 2014-08-18 David Malcolm <dmalcolm@redhat.com>
11662 * rtl.h (for_each_rtx_in_insn): New function.
11663 * rtlanal.c (for_each_rtx_in_insn): Likewise.
11665 2014-08-18 David Malcolm <dmalcolm@redhat.com>
11667 * coretypes.h (class rtx_insn): Add forward declaration.
11669 * rtl.h: Include is-a.h.
11670 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
11671 workaround to ensure gengtype knows inheritance is occurring,
11672 whilst continuing to use the pre-existing special-casing for
11674 (class rtx_insn): New subclass of rtx_def, adding the
11675 invariant that we're dealing with something we can sanely use
11676 INSN_UID, NEXT_INSN, PREV_INSN on.
11677 (is_a_helper <rtx_insn *>::test): New.
11678 (is_a_helper <const rtx_insn *>::test): New.
11680 2014-08-18 David Malcolm <dmalcolm@redhat.com>
11682 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
11684 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
11686 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
11689 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
11691 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
11692 to BUILT_IN_UNREACHABLE.
11694 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
11697 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
11699 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
11700 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
11701 (ffs<mode>2): Do not expand with tzcnt for
11702 TARGET_AVOID_FALSE_DEP_FOR_BMI.
11703 (ffssi2_no_cmove): Ditto.
11704 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
11705 (ctz<mode>2): New expander.
11706 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
11707 (*ctz<mode>2_falsedep): New insn.
11708 (*ctz<mode>2): Rename from ctz<mode>2.
11709 (clz<mode>2_lzcnt): New expander.
11710 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
11711 (*clz<mode>2_lzcnt_falsedep): New insn.
11712 (*clz<mode>2): Rename from ctz<mode>2.
11713 (popcount<mode>2): New expander.
11714 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
11715 (*popcount<mode>2_falsedep): New insn.
11716 (*popcount<mode>2): Rename from ctz<mode>2.
11717 (*popcount<mode>2_cmp): Remove.
11718 (*popcountsi2_cmp_zext): Ditto.
11720 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
11722 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
11723 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
11724 * config/microblaze/microblaze.h
11725 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
11727 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
11730 * configure.ac: Set install_gold_as_default to no for
11732 * configure: Regenerated.
11734 2014-08-18 Roman Gareev <gareevroman@gmail.com>
11736 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
11737 * config.in: Add undef of HAVE_isl.
11738 * configure: Regenerate.
11739 * configure.ac: Add definition of HAVE_isl.
11740 * graphite-blocking.c: Add checking of HAVE_isl.
11741 * graphite-dependences.c: Likewise.
11742 * graphite-interchange.c: Likewise.
11743 * graphite-isl-ast-to-gimple.c: Likewise.
11744 * graphite-optimize-isl.c: Likewise.
11745 * graphite-poly.c: Likewise.
11746 * graphite-scop-detection.c: Likewise.
11747 * graphite-sese-to-poly.c: Likewise.
11748 * graphite.c: Likewise.
11749 * toplev.c: Replace the checking of HAVE_cloog with the checking
11752 2014-08-18 Richard Biener <rguenther@suse.de>
11754 PR tree-optimization/62090
11755 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
11756 (fold_builtin_3): Do not fold snprintf.
11757 (fold_builtin_4): Likewise.
11758 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
11759 moved from builtins.c.
11760 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
11761 (gimple_fold_builtin): Do not fold sprintf here.
11763 2014-08-18 Richard Biener <rguenther@suse.de>
11765 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
11767 (maybe_canonicalize_mem_ref_addr): ... this function.
11768 (fold_stmt_1): Apply it here before all simplification.
11770 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
11773 * cgraph.h (cgraph_node::create_indirect_edge): Add
11774 compute_indirect_info param.
11775 * cgraph.c (cgraph_node::create_indirect_edge): Compute
11776 indirect_info only when it is required.
11777 * cgraphclones.c (cgraph_clone_edge): Do not recompute
11778 indirect_info fore cloned indirect edge.
11780 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
11781 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11782 Anna Tikhonova <anna.tikhonova@intel.com>
11783 Ilya Tocar <ilya.tocar@intel.com>
11784 Andrey Turetskiy <andrey.turetskiy@intel.com>
11785 Ilya Verbin <ilya.verbin@intel.com>
11786 Kirill Yukhin <kirill.yukhin@intel.com>
11787 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11789 * config/i386/sse.md
11790 (define_mode_iterator VI8_AVX2_AVX512BW): New.
11791 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
11793 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
11794 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11795 Anna Tikhonova <anna.tikhonova@intel.com>
11796 Ilya Tocar <ilya.tocar@intel.com>
11797 Andrey Turetskiy <andrey.turetskiy@intel.com>
11798 Ilya Verbin <ilya.verbin@intel.com>
11799 Kirill Yukhin <kirill.yukhin@intel.com>
11800 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11802 * config/i386/sse.md
11803 (define_mode_iterator VF1_AVX512VL): New.
11804 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
11805 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
11808 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
11809 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11810 Anna Tikhonova <anna.tikhonova@intel.com>
11811 Ilya Tocar <ilya.tocar@intel.com>
11812 Andrey Turetskiy <andrey.turetskiy@intel.com>
11813 Ilya Verbin <ilya.verbin@intel.com>
11814 Kirill Yukhin <kirill.yukhin@intel.com>
11815 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11817 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
11818 * config/i386/i386.md
11819 (define_code_iterator any_float): New.
11820 (define_code_attr floatsuffix): New.
11821 * config/i386/sse.md
11822 (define_mode_iterator VF1_128_256VL): New.
11823 (define_mode_iterator VF2_512_256VL): New.
11824 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
11826 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
11827 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
11829 (define_mode_attr qq2pssuff): New.
11830 (define_mode_attr sselongvecmode): New.
11831 (define_mode_attr sselongvecmodelower): New.
11832 (define_mode_attr sseintvecmode3): New.
11833 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
11835 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
11836 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
11837 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
11838 (define_insn "ufloatv2siv2df2<mask_name>"): New.
11840 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
11841 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11842 Anna Tikhonova <anna.tikhonova@intel.com>
11843 Ilya Tocar <ilya.tocar@intel.com>
11844 Andrey Turetskiy <andrey.turetskiy@intel.com>
11845 Ilya Verbin <ilya.verbin@intel.com>
11846 Kirill Yukhin <kirill.yukhin@intel.com>
11847 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11849 * config/i386/sse.md
11850 (define_mode_iterator VF2_AVX512VL): New.
11851 (define_mode_attr sseintvecmode2): New.
11852 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
11853 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
11854 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
11856 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
11858 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
11860 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
11863 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
11864 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11865 Anna Tikhonova <anna.tikhonova@intel.com>
11866 Ilya Tocar <ilya.tocar@intel.com>
11867 Andrey Turetskiy <andrey.turetskiy@intel.com>
11868 Ilya Verbin <ilya.verbin@intel.com>
11869 Kirill Yukhin <kirill.yukhin@intel.com>
11870 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11872 * config/i386/i386.md
11873 (define_insn "*movoi_internal_avx"): Add evex version.
11874 (define_insn "*movti_internal"): Ditto.
11876 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
11877 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11878 Anna Tikhonova <anna.tikhonova@intel.com>
11879 Ilya Tocar <ilya.tocar@intel.com>
11880 Andrey Turetskiy <andrey.turetskiy@intel.com>
11881 Ilya Verbin <ilya.verbin@intel.com>
11882 Kirill Yukhin <kirill.yukhin@intel.com>
11883 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11885 * config/i386/i386.md
11886 (define_attr "isa"): Add avx512dq, noavx512dq.
11887 (define_attr "enabled"): Ditto.
11888 * config/i386/sse.md
11889 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
11891 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
11892 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11893 Anna Tikhonova <anna.tikhonova@intel.com>
11894 Ilya Tocar <ilya.tocar@intel.com>
11895 Andrey Turetskiy <andrey.turetskiy@intel.com>
11896 Ilya Verbin <ilya.verbin@intel.com>
11897 Kirill Yukhin <kirill.yukhin@intel.com>
11898 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11900 * config/i386/i386.c
11901 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
11902 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
11903 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
11904 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
11905 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
11906 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
11907 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
11908 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
11909 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
11910 * config/i386/sse.md
11911 (define_mode_iterator VMOVE): Allow V4TI mode.
11912 (define_mode_iterator V_AVX512VL): New.
11913 (define_mode_iterator V): New handling for AVX512VL.
11914 (define_insn "avx512f_load<mode>_mask"): Delete.
11915 (define_insn "<avx512>_load<mode>_mask"): New.
11916 (define_insn "avx512f_store<mode>_mask"): Delete.
11917 (define_insn "<avx512>_store<mode>_mask"): New.
11920 2014-08-18 Yury Gribov <y.gribov@samsung.com>
11923 * asan.c (instrument_derefs): Fix bitfield check.
11925 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
11927 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
11928 * config/rs6000/htm.md (ttest): Remove clobber.
11929 * config/rs6000/predicates.md (any_mask_operand): New predicate.
11930 (and_operand): Reformat.
11931 (and_2rld_operand): New predicate.
11932 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
11934 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
11935 parameter. Handle AND directly.
11936 (rs6000_split_logical_di): Remove last parameter.
11937 (rs6000_split_logical): Remove last parameter. Remove obsolete
11939 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
11940 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
11941 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
11942 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
11943 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
11944 and 5 anonymous splitters): Delete.
11945 (and<mode>3): New expander.
11946 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
11947 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
11948 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
11949 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
11950 (floatdisf2_internal1): Remove clobbers.
11951 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
11952 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
11953 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
11954 (and<mode>3 for BOOL_128): Remove clobber.
11955 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
11956 rs6000_split_logical.
11957 (*bool<mode>3_internal for BOOL_128): Adjust call of
11958 rs6000_split_logical.
11959 (*boolc<mode>3_internal1 for BOOL_128,
11960 *boolc<mode>3_internal2 for BOOL_128,
11961 *boolcc<mode>3_internal1 for BOOL_128,
11962 *boolcc<mode>3_internal2 for BOOL_128,
11963 *eqv<mode>3_internal1 for BOOL_128,
11964 *eqv<mode>3_internal2 for BOOL_128,
11965 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
11966 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
11968 (*vec_reload_and_reg_<mptrsize>): Delete.
11970 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
11972 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
11973 and split, *boolccsi3_internal3 and split): Delete.
11974 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
11975 *boolccdi3_internal3 and split): Delete.
11976 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
11977 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
11979 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
11981 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
11982 and split, *boolcsi3_internal3 and split): Delete.
11983 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
11984 *boolcdi3_internal3 and split): Delete.
11985 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
11987 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
11989 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
11990 <'u'>: Also support printing the low-order 16 bits.
11991 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
11992 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
11993 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
11994 *booldi3_internal3 and split): Delete.
11995 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
11996 *bool<mode>3_dot2): New.
11997 (two anonymous define_splits for non_logical_cint_operand): Merge.
11999 2014-08-17 Marek Polacek <polacek@redhat.com>
12000 Manuel López-Ibáñez <manu@gcc.gnu.org>
12003 * diagnostic.c (adjust_line): Add gcc_checking_assert.
12004 (diagnostic_show_locus): Don't print caret diagnostic
12005 if a column is larger than the line_width.
12007 2014-08-17 Roman Gareev <gareevroman@gmail.com>
12009 * common.opt: Make the ISL AST generator to be the main code generator
12012 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
12014 * wide-int.h (generic_wide_int): Declare as class instead of struct.
12016 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
12019 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
12021 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
12022 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
12023 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
12025 * config/pa/pa.md (begin_brtab): Delete insn.
12026 (end_brtab): Likewise.
12028 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
12030 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
12032 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
12034 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
12035 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
12036 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
12037 (get_dynamic_type): Remove.
12038 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
12039 (clear_speculation): Bring to ipa-deivrt.h
12040 (get_class_context): Rename to ...
12041 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
12042 (contains_type_p): Update.
12043 (get_dynamic_type): Rename to ...
12044 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
12045 (possible_polymorphic_call_targets): UPdate.
12046 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
12047 * ipa-prop.c (ipa_analyze_call_uses): Update.
12049 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
12051 * doc/invoke.texi (SH options): Document missing processor variant
12052 options. Remove references to Hitachi. Undocument deprecated mspace
12055 2014-08-15 Jason Merrill <jason@redhat.com>
12057 * tree.c (type_hash_canon): Uncomment assert.
12059 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
12061 * input.h (in_system_header_at): Add comment.
12063 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
12066 * diagnostic.c (build_message_string): Make it extern.
12067 * diagnostic.h (build_message_string): Make it extern.
12069 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
12071 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
12072 load/store from/to non-floating class pseudo.
12074 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
12076 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
12078 2014-08-15 Richard Biener <rguenther@suse.de>
12080 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
12081 (get_constraint_for_ssa_var): Remove dead code.
12082 (get_constraint_for_1): Adjust.
12083 (find_what_var_points_to): Likewise.
12084 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
12086 2014-08-15 Ilya Tocar <tocarip@gmail.com>
12089 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
12090 (_mm512_mask_cmpge_epu32_mask): Ditto.
12091 (_mm512_cmpge_epu32_mask): Ditto.
12092 (_mm512_mask_cmpge_epi64_mask): Ditto.
12093 (_mm512_cmpge_epi64_mask): Ditto.
12094 (_mm512_mask_cmpge_epu64_mask): Ditto.
12095 (_mm512_cmpge_epu64_mask): Ditto.
12096 (_mm512_mask_cmple_epi32_mask): Ditto.
12097 (_mm512_cmple_epi32_mask): Ditto.
12098 (_mm512_mask_cmple_epu32_mask): Ditto.
12099 (_mm512_cmple_epu32_mask): Ditto.
12100 (_mm512_mask_cmple_epi64_mask): Ditto.
12101 (_mm512_cmple_epi64_mask): Ditto.
12102 (_mm512_mask_cmple_epu64_mask): Ditto.
12103 (_mm512_cmple_epu64_mask): Ditto.
12104 (_mm512_mask_cmplt_epi32_mask): Ditto.
12105 (_mm512_cmplt_epi32_mask): Ditto.
12106 (_mm512_mask_cmplt_epu32_mask): Ditto.
12107 (_mm512_cmplt_epu32_mask): Ditto.
12108 (_mm512_mask_cmplt_epi64_mask): Ditto.
12109 (_mm512_cmplt_epi64_mask): Ditto.
12110 (_mm512_mask_cmplt_epu64_mask): Ditto.
12111 (_mm512_cmplt_epu64_mask): Ditto.
12112 (_mm512_mask_cmpneq_epi32_mask): Ditto.
12113 (_mm512_mask_cmpneq_epu32_mask): Ditto.
12114 (_mm512_cmpneq_epu32_mask): Ditto.
12115 (_mm512_mask_cmpneq_epi64_mask): Ditto.
12116 (_mm512_cmpneq_epi64_mask): Ditto.
12117 (_mm512_mask_cmpneq_epu64_mask): Ditto.
12118 (_mm512_cmpneq_epu64_mask): Ditto.
12119 (_mm512_castpd_ps): Ditto.
12120 (_mm512_castpd_si512): Ditto.
12121 (_mm512_castps_pd): Ditto.
12122 (_mm512_castps_si512): Ditto.
12123 (_mm512_castsi512_ps): Ditto.
12124 (_mm512_castsi512_pd): Ditto.
12125 (_mm512_castpd512_pd128): Ditto.
12126 (_mm512_castps512_ps128): Ditto.
12127 (_mm512_castsi512_si128): Ditto.
12128 (_mm512_castpd512_pd256): Ditto.
12129 (_mm512_castps512_ps256): Ditto.
12130 (_mm512_castsi512_si256): Ditto.
12131 (_mm512_castpd128_pd512): Ditto.
12132 (_mm512_castps128_ps512): Ditto.
12133 (_mm512_castsi128_si512): Ditto.
12134 (_mm512_castpd256_pd512): Ditto.
12135 (_mm512_castps256_ps512): Ditto.
12136 (_mm512_castsi256_si512): Ditto.
12137 (_mm512_cmpeq_epu32_mask): Ditto.
12138 (_mm512_mask_cmpeq_epu32_mask): Ditto.
12139 (_mm512_mask_cmpeq_epu64_mask): Ditto.
12140 (_mm512_cmpeq_epu64_mask): Ditto.
12141 (_mm512_cmpgt_epu32_mask): Ditto.
12142 (_mm512_mask_cmpgt_epu32_mask): Ditto.
12143 (_mm512_mask_cmpgt_epu64_mask): Ditto.
12144 (_mm512_cmpgt_epu64_mask): Ditto.
12145 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
12146 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
12147 * config/i386/i386.c (enum ix86_builtins): Add
12148 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
12149 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
12150 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
12151 (bdesc_args): Add __builtin_ia32_si512_256si,
12152 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
12153 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
12154 __builtin_ia32_pd512_pd.
12155 (ix86_expand_args_builtin): Handle new FTYPEs.
12156 * config/i386/sse.md (castmode): Add 512-bit modes.
12157 (AVX512MODE2P): New.
12158 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
12159 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
12161 2014-08-15 Richard Biener <rguenther@suse.de>
12163 * fold-const.c (tree_swap_operands_p): Put all constants
12164 last, also strip sign-changing NOPs when considering further
12165 canonicalization. Canonicalize also when optimizing for size.
12167 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12169 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
12170 one_match > zero_match case to just before simple_sequence.
12172 2014-08-15 Richard Biener <rguenther@suse.de>
12174 * data-streamer.h (streamer_string_index, string_for_index):
12176 * data-streamer-out.c (streamer_string_index): Make static.
12177 * data-streamer-in.c (string_for_index): Likewise.
12178 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
12179 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
12181 2014-08-15 Richard Biener <rguenther@suse.de>
12183 PR tree-optimization/62031
12184 * tree-data-ref.c (dr_analyze_indices): Do not set
12185 DR_UNCONSTRAINED_BASE.
12186 (dr_may_alias_p): All indirect accesses have to go the
12187 formerly DR_UNCONSTRAINED_BASE path.
12188 * tree-data-ref.h (struct indices): Remove
12189 unconstrained_base member.
12190 (DR_UNCONSTRAINED_BASE): Remove.
12192 2014-08-15 Jakub Jelinek <jakub@redhat.com>
12194 PR middle-end/62092
12195 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
12196 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
12197 in OMP_CLAUSE_MAP in some outer target region.
12199 2014-08-15 Bin Cheng <bin.cheng@arm.com>
12201 * tree-ssa-loop-ivopts.c (ivopts_data): New field
12202 name_expansion_cache.
12203 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
12204 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
12205 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
12206 (difference_cannot_overflow_p): New parameter. Use affine
12207 expansion for equality check.
12208 (iv_elimination_compare_lt): Pass new argument.
12210 2014-08-14 DJ Delorie <dj@redhat.com>
12212 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
12213 variables to the accumulator.
12215 * config/rl78/predicates.md (rl78_near_mem_operand): New.
12216 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
12217 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
12218 with far-far moves.
12220 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
12221 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
12222 (umulqihi3_virt): Likewise.
12223 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
12224 (umulqihi3_real): Likewise.
12226 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
12228 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
12230 PR tree-optimization/62091
12231 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
12232 function_entry_reached.
12233 (walk_aliased_vdefs): Clear it here.
12234 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
12236 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
12238 * ipa-utils.h (compare_virtual_tables): Declare.
12239 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
12241 2014-08-14 Marek Polacek <polacek@redhat.com>
12244 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
12245 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
12247 2014-08-14 Tom de Vries <tom@codesourcery.com>
12249 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
12251 2014-08-14 Tom de Vries <tom@codesourcery.com>
12253 PR rtl-optimization/62004
12254 PR rtl-optimization/62030
12255 * ifcvt.c (rtx_interchangeable_p): New function.
12256 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
12257 * emit-rtl.h (mem_attrs_eq_p): Declare.
12259 2014-08-14 Roman Gareev <gareevroman@gmail.com>
12261 * graphite-scop-detection.c:
12262 Add inclusion of cp-tree.h.
12263 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
12264 in case they are pointers to object types
12266 2014-08-14 Richard Biener <rguenther@suse.de>
12268 * BASE-VER: Change to 5.0.0
12270 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12271 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12272 Anna Tikhonova <anna.tikhonova@intel.com>
12273 Ilya Tocar <ilya.tocar@intel.com>
12274 Andrey Turetskiy <andrey.turetskiy@intel.com>
12275 Ilya Verbin <ilya.verbin@intel.com>
12276 Kirill Yukhin <kirill.yukhin@intel.com>
12277 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12279 * config/i386/sse.md (define_mode_attr avx512): New.
12280 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
12282 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
12283 (define_mode_attr ssse3_avx2): Ditto.
12284 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
12285 (define_mode_attr avx2_avx512bw): New.
12286 (define_mode_attr ssedoublemodelower): New.
12287 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
12288 V32HI, V64QI modes.
12289 (define_mode_attr ssebytemode): Allow V8DI modes.
12290 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
12291 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
12292 (define_mode_attr ssePSmode2): New.
12293 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
12294 V16HI, V32HI modes.
12295 (define_mode_attr dbpsadbwmode): New.
12296 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
12297 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
12298 (vi8_sse4_1_avx2_avx512): New.
12299 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
12301 (define_mode_attr blendbits): Move before its immediate use.
12303 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12304 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12305 Anna Tikhonova <anna.tikhonova@intel.com>
12306 Ilya Tocar <ilya.tocar@intel.com>
12307 Andrey Turetskiy <andrey.turetskiy@intel.com>
12308 Ilya Verbin <ilya.verbin@intel.com>
12309 Kirill Yukhin <kirill.yukhin@intel.com>
12310 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12312 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
12313 * config/i386/subst.md
12314 (define_mode_iterator SUBST_V): Update.
12315 (define_mode_iterator SUBST_A): Ditto.
12316 (define_subst_attr "mask_operand7"): New.
12317 (define_subst_attr "mask_operand10"): New.
12318 (define_subst_attr "mask_operand_arg34") : New.
12319 (define_subst_attr "mask_expand_op3"): New.
12320 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
12321 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
12322 (define_subst_attr "mask_avx512vl_condition"): New.
12323 (define_subst_attr "round_mask_operand4"): Ditto.
12324 (define_subst_attr "round_mask_scalar_op3"): Delete.
12325 (define_subst_attr "round_mask_op4"): New.
12326 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
12328 (define_subst_attr "round_modev8sf_condition"): New.
12329 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
12331 (define_subst_attr "round_saeonly_mask_operand4"): New.
12332 (define_subst_attr "round_saeonly_mask_op4"): New.
12333 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
12334 V8DImode, V16SImode.
12335 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
12336 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
12337 (define_subst_attr "mask_expand4_args"): New.
12338 (define_subst "mask_expand4"): New.
12340 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12341 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12342 Anna Tikhonova <anna.tikhonova@intel.com>
12343 Ilya Tocar <ilya.tocar@intel.com>
12344 Andrey Turetskiy <andrey.turetskiy@intel.com>
12345 Ilya Verbin <ilya.verbin@intel.com>
12346 Kirill Yukhin <kirill.yukhin@intel.com>
12347 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12349 * config/i386/i386.md
12350 (define_attr "isa"): Add avx512bw,noavx512bw.
12351 (define_attr "enabled"): Ditto.
12352 (define_split): Add 32/64-bit mask logic.
12353 (define_insn "*k<logic>qi"): New.
12354 (define_insn "*k<logic>hi"): New.
12355 (define_insn "*anddi_1"): Add mask version.
12356 (define_insn "*andsi_1"): Ditto.
12357 (define_insn "*<code><mode>_1"): Ditto.
12358 (define_insn "*<code>hi_1"): Ditto.
12359 (define_insn "kxnor<mode>"): New.
12360 (define_insn "kunpcksi"): New.
12361 (define_insn "kunpckdi"): New.
12362 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
12363 (define_insn "*one_cmplhi2_1"): Ditto.
12365 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12366 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12367 Anna Tikhonova <anna.tikhonova@intel.com>
12368 Ilya Tocar <ilya.tocar@intel.com>
12369 Andrey Turetskiy <andrey.turetskiy@intel.com>
12370 Ilya Verbin <ilya.verbin@intel.com>
12371 Kirill Yukhin <kirill.yukhin@intel.com>
12372 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12374 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
12377 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12378 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12379 Anna Tikhonova <anna.tikhonova@intel.com>
12380 Ilya Tocar <ilya.tocar@intel.com>
12381 Andrey Turetskiy <andrey.turetskiy@intel.com>
12382 Ilya Verbin <ilya.verbin@intel.com>
12383 Kirill Yukhin <kirill.yukhin@intel.com>
12384 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12386 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
12388 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
12389 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
12390 xmm/ymm16+ when availble.
12391 * config/i386/i386.h
12392 (HARD_REGNO_NREGS): Add mask regs.
12393 (VALID_AVX512F_REG_MODE): Ditto.
12394 (VALID_AVX512F_REG_MODE) : Define.
12395 (VALID_MASK_AVX512BW_MODE): Ditto.
12396 (reg_class) (MASK_REG_P(X)): Define.
12397 * config/i386/i386.md: Do not split long moves with mask register,
12398 use kmovb if avx512bw is availible.
12399 (movdi_internal): Handle mask registers.
12401 2014-08-14 Richard Biener <rguenther@suse.de>
12403 PR tree-optimization/62081
12404 * tree-ssa-loop.c (pass_fix_loops): New pass.
12405 (pass_tree_loop::gate): Do not fixup loops here.
12406 * tree-pass.h (make_pass_fix_loops): Declare.
12407 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
12409 2014-08-14 Richard Biener <rguenther@suse.de>
12411 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
12412 (type_hash_canon): ... this and avoid 2nd lookup for the add.
12414 2014-08-14 Richard Biener <rguenther@suse.de>
12416 PR tree-optimization/62090
12417 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
12418 (fold_builtin_2): Do not fold sprintf.
12419 (fold_builtin_3): Likewise.
12420 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
12421 moved from builtins.c.
12422 (gimple_fold_builtin): Fold sprintf.
12424 2014-08-14 Richard Biener <rguenther@suse.de>
12426 PR rtl-optimization/62079
12427 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
12430 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
12432 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
12433 current_function_decl.
12435 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
12437 * cgraph.c (cgraph_node::function_symbol): Fix wrong
12438 cgraph_function_node to cgraph_node::function_symbol
12441 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
12443 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
12444 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
12446 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
12448 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
12451 2014-08-13 Roman Gareev <gareevroman@gmail.com>
12453 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
12456 2014-08-12 Jakub Jelinek <jakub@redhat.com>
12459 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
12460 any registers that are used in mem_insn.
12462 2014-08-12 Steve Ellcey <sellcey@mips.com>
12464 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
12466 2014-08-12 Steve Ellcey <sellcey@mips.com>
12468 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
12469 (MULTILIB_DIRNAMES): Ditto.
12470 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
12471 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
12472 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
12473 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
12474 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
12475 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
12477 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12480 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
12481 of __ARM_SIZEOF_WCHAR_T.
12483 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12486 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
12487 Remove unnecessary attributes.
12489 2014-08-12 Yury Gribov <y.gribov@samsung.com>
12491 * internal-fn.c (init_internal_fns): Fix off-by-one.
12493 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
12494 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12495 Anna Tikhonova <anna.tikhonova@intel.com>
12496 Ilya Tocar <ilya.tocar@intel.com>
12497 Andrey Turetskiy <andrey.turetskiy@intel.com>
12498 Ilya Verbin <ilya.verbin@intel.com>
12499 Kirill Yukhin <kirill.yukhin@intel.com>
12500 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12502 * config/i386/i386.c (standard_sse_constant_opcode): Use
12503 vpxord/vpternlog if avx512 is availible.
12505 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
12507 PR middle-end/62103
12508 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
12509 bitfields, that is when size doesn't match the size of type or the
12510 size of the constructor.
12512 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
12514 * config/rs6000/constraints.md (wh constraint): New constraint,
12515 for FP registers if direct move is available.
12516 (wi constraint): New constraint, for VSX/FP registers that can
12517 handle 64-bit integers.
12518 (wj constraint): New constraint for VSX/FP registers that can
12519 handle 64-bit integers for direct moves.
12520 (wk constraint): New constraint for VSX/FP registers that can
12521 handle 64-bit doubles for direct moves.
12522 (wy constraint): Make documentation match implementation.
12524 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
12525 scalar_in_vmx_p field to simplify tests of whether SFmode or
12526 DFmode can go in the Altivec registers.
12527 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
12528 (rs6000_setup_reg_addr_masks): Likewise.
12529 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
12530 field, and wh/wi/wj/wk constraints.
12531 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
12532 the wh/wi/wj/wk constraints.
12533 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
12534 upper registers, prefer VSX registers unless the operation is a
12535 memory operation with REG+OFFSET addressing.
12537 * config/rs6000/vsx.md (VSr mode attribute): Add support for
12538 DImode. Change SFmode to use ww constraint instead of d to allow
12539 SF registers in the upper registers.
12542 (VSr5): Fix thinko in comment.
12543 (VSa): New mode attribute that is an alternative to wa, that
12544 returns the VSX register class that a mode can go in, but may not
12545 be the preferred register class.
12546 (VS_64dm): New mode attribute for appropriate register classes for
12547 referencing 64-bit elements of vectors for direct moves and normal
12549 (VS_64reg): Likewise.
12550 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
12551 register allocator to only registers the data type can handle.
12552 (vsx_le_perm_load_<mode>): Likewise.
12553 (vsx_le_perm_store_<mode>): Likewise.
12554 (vsx_xxpermdi2_le_<mode>): Likewise.
12555 (vsx_xxpermdi4_le_<mode>): Likewise.
12556 (vsx_lxvd2x2_le_<mode>): Likewise.
12557 (vsx_lxvd2x4_le_<mode>): Likewise.
12558 (vsx_stxvd2x2_le_<mode>): Likewise.
12559 (vsx_add<mode>3): Likewise.
12560 (vsx_sub<mode>3): Likewise.
12561 (vsx_mul<mode>3): Likewise.
12562 (vsx_div<mode>3): Likewise.
12563 (vsx_tdiv<mode>3_internal): Likewise.
12564 (vsx_fre<mode>2): Likewise.
12565 (vsx_neg<mode>2): Likewise.
12566 (vsx_abs<mode>2): Likewise.
12567 (vsx_nabs<mode>2): Likewise.
12568 (vsx_smax<mode>3): Likewise.
12569 (vsx_smin<mode>3): Likewise.
12570 (vsx_sqrt<mode>2): Likewise.
12571 (vsx_rsqrte<mode>2): Likewise.
12572 (vsx_tsqrt<mode>2_internal): Likewise.
12573 (vsx_fms<mode>4): Likewise.
12574 (vsx_nfma<mode>4): Likewise.
12575 (vsx_eq<mode>): Likewise.
12576 (vsx_gt<mode>): Likewise.
12577 (vsx_ge<mode>): Likewise.
12578 (vsx_eq<mode>_p): Likewise.
12579 (vsx_gt<mode>_p): Likewise.
12580 (vsx_ge<mode>_p): Likewise.
12581 (vsx_xxsel<mode>): Likewise.
12582 (vsx_xxsel<mode>_uns): Likewise.
12583 (vsx_copysign<mode>3): Likewise.
12584 (vsx_float<VSi><mode>2): Likewise.
12585 (vsx_floatuns<VSi><mode>2): Likewise.
12586 (vsx_fix_trunc<mode><VSi>2): Likewise.
12587 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
12588 (vsx_x<VSv>r<VSs>i): Likewise.
12589 (vsx_x<VSv>r<VSs>ic): Likewise.
12590 (vsx_btrunc<mode>2): Likewise.
12591 (vsx_b2trunc<mode>2): Likewise.
12592 (vsx_floor<mode>2): Likewise.
12593 (vsx_ceil<mode>2): Likewise.
12594 (vsx_<VS_spdp_insn>): Likewise.
12595 (vsx_xscvspdp): Likewise.
12596 (vsx_xvcvspuxds): Likewise.
12597 (vsx_float_fix_<mode>2): Likewise.
12598 (vsx_set_<mode>): Likewise.
12599 (vsx_extract_<mode>_internal1): Likewise.
12600 (vsx_extract_<mode>_internal2): Likewise.
12601 (vsx_extract_<mode>_load): Likewise.
12602 (vsx_extract_<mode>_store): Likewise.
12603 (vsx_splat_<mode>): Likewise.
12604 (vsx_xxspltw_<mode>): Likewise.
12605 (vsx_xxspltw_<mode>_direct): Likewise.
12606 (vsx_xxmrghw_<mode>): Likewise.
12607 (vsx_xxmrglw_<mode>): Likewise.
12608 (vsx_xxsldwi_<mode>): Likewise.
12609 (vsx_xscvdpspn): Tighten constraints to only use register classes
12611 (vsx_xscvspdpn): Likewise.
12612 (vsx_xscvdpspn_scalar): Likewise.
12614 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
12615 wj, and wk constraints.
12616 (GPR_REG_CLASS_P): New helper macro for register classes targeting
12617 general purpose registers.
12619 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
12621 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
12622 DImode instead of wm. Use wk constraint for direct move of DFmode
12624 (extendsidi2_lfiwax): Likewise.
12625 (lfiwax): Likewise.
12626 (lfiwzx): Likewise.
12627 (movdi_internal64): Likewise.
12629 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
12630 wk constraints. Make the wy constraint documentation match them
12633 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
12635 Replacement of isl_int by isl_val
12636 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
12637 (compute_bounds_for_param): use isl_val instead of isl_int
12638 (compute_bounds_for_loop): likewise
12639 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
12640 (build_linearized_memory_access): use isl_val instead of isl_int
12641 (pdr_stride_in_loop): likewise
12642 * graphite-optimize-isl.c:
12643 (getPrevectorMap): use isl_val instead of isl_int
12645 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
12646 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
12647 (extern the_isl_ctx): declare
12648 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
12649 (extract_affine_gmp): likewise
12651 (build_loop_iteration_domains): likewise
12652 (add_param_constraints): likewise
12654 2014-08-11 Richard Biener <rguenther@suse.de>
12656 PR tree-optimization/62075
12657 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
12658 handle uses in patterns.
12660 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12661 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12662 Anna Tikhonova <anna.tikhonova@intel.com>
12663 Ilya Tocar <ilya.tocar@intel.com>
12664 Andrey Turetskiy <andrey.turetskiy@intel.com>
12665 Ilya Verbin <ilya.verbin@intel.com>
12666 Kirill Yukhin <kirill.yukhin@intel.com>
12667 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12669 * common/config/i386/i386-common.c
12670 (OPTION_MASK_ISA_AVX512VL_SET): Define.
12671 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
12672 (ix86_handle_option): Handle OPT_mavx512vl.
12673 * config/i386/cpuid.h (bit_AVX512VL): Define.
12674 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
12675 set -mavx512vl accordingly.
12676 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12677 OPTION_MASK_ISA_AVX512VL.
12678 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
12679 (ix86_option_override_internal): Define PTA_AVX512VL, handle
12680 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
12681 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
12682 * config/i386/i386.h (TARGET_AVX512VL): Define.
12683 (TARGET_AVX512VL_P(x)): Ditto.
12684 * config/i386/i386.opt: Add mavx512vl.
12686 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
12688 PR tree-optimization/62073
12689 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
12692 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12693 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12694 Anna Tikhonova <anna.tikhonova@intel.com>
12695 Ilya Tocar <ilya.tocar@intel.com>
12696 Andrey Turetskiy <andrey.turetskiy@intel.com>
12697 Ilya Verbin <ilya.verbin@intel.com>
12698 Kirill Yukhin <kirill.yukhin@intel.com>
12699 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12701 * common/config/i386/i386-common.c
12702 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
12703 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
12704 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
12705 (ix86_handle_option): Handle OPT_mavx512bw.
12706 * config/i386/cpuid.h (bit_AVX512BW): Define.
12707 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
12708 set -mavx512bw accordingly.
12709 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12710 OPTION_MASK_ISA_AVX512BW.
12711 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
12712 (ix86_option_override_internal): Define PTA_AVX512BW, handle
12713 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
12714 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
12715 * config/i386/i386.h (TARGET_AVX512BW): Define.
12716 (TARGET_AVX512BW_P(x)): Ditto.
12717 * config/i386/i386.opt: Add mavx512bw.
12719 2014-08-11 Richard Biener <rguenther@suse.de>
12721 PR tree-optimization/62070
12722 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
12723 Remove SSA checking.
12725 2014-08-11 Yury Gribov <y.gribov@samsung.com>
12727 * asan.c (asan_check_flags): New enum.
12728 (build_check_stmt_with_calls): Removed function.
12729 (build_check_stmt): Split inlining logic to
12730 asan_expand_check_ifn.
12731 (instrument_derefs): Rename parameter.
12732 (instrument_mem_region_access): Rename parameter.
12733 (instrument_strlen_call): Likewise.
12734 (asan_expand_check_ifn): New function.
12735 (asan_instrument): Remove old code.
12736 (pass_sanopt::execute): Change handling of
12737 asan-instrumentation-with-call-threshold.
12738 (asan_clear_shadow): Fix formatting.
12739 (asan_function_start): Likewise.
12740 (asan_emit_stack_protection): Likewise.
12741 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
12742 Update description.
12743 * internal-fn.c (expand_ASAN_CHECK): New function.
12744 * internal-fn.def (ASAN_CHECK): New internal function.
12745 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
12746 Update description.
12747 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
12748 * tree.c: Small comment fix.
12750 2014-08-11 Yury Gribov <y.gribov@samsung.com>
12752 * gimple.c (gimple_call_fnspec): Support internal functions.
12753 (gimple_call_return_flags): Use const.
12754 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
12755 * internal-fn.def: Add fnspec information.
12756 * internal-fn.h (internal_fn_fnspec): New function.
12757 (init_internal_fns): Declare new function.
12758 * internal-fn.c (internal_fn_fnspec_array): New global variable.
12759 (init_internal_fns): New function.
12760 * tree-core.h: Update macro call.
12761 * tree.c (build_common_builtin_nodes): Initialize internal fns.
12763 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
12765 * lto-streamer.h (struct output_block::symbol): Change from
12766 struct symtab_node to plain symtab_node.
12767 (referenced_from_this_partition_p): Change first parameter
12768 from struct symtab_node to plain symtab_node.
12770 2014-08-10 Marek Polacek <polacek@redhat.com>
12773 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
12775 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
12777 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
12778 DECL correctly; do not give up on types in static storage.
12780 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
12782 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
12784 2014-08-09 Roman Gareev <gareevroman@gmail.com>
12786 * graphite-isl-ast-to-gimple.c:
12787 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
12789 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
12791 2014-08-08 Guozhi Wei <carrot@google.com>
12793 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
12795 2014-08-08 Cary Coutant <ccoutant@google.com>
12797 * dwarf2out.c (get_skeleton_type_unit): Remove.
12798 (output_skeleton_debug_sections): Remove skeleton type units.
12799 (output_comdat_type_unit): Likewise.
12800 (dwarf2out_finish): Likewise.
12802 2014-08-07 Yi Yang <ahyangyi@google.com>
12804 * predict.c (expr_expected_value_1): Remove the redundant assignment.
12806 2014-08-08 Richard Biener <rguenther@suse.de>
12808 * lto-streamer.h (struct lto_input_block): Make it a class
12809 with a constructor.
12810 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
12811 (struct lto_function_header, struct lto_simple_header,
12812 struct lto_simple_header_with_strings,
12813 struct lto_decl_header, struct lto_function_header): Make
12814 a simple inheritance hieararchy. Remove unused fields.
12815 (struct lto_asm_header): Remove.
12816 * lto-streamer-out.c (produce_asm): Adjust.
12817 (lto_output_toplevel_asms): Likewise.
12818 (produce_asm_for_decls): Likewise.
12819 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
12820 * data-streamer-in.c (string_for_index): Likewise.
12821 * ipa-inline-analysis.c (inline_read_section): Likewise.
12822 * ipa-prop.c (ipa_prop_read_section): Likewise.
12823 (read_replacements_section): Likewise.
12824 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
12825 * lto-section-in.c (lto_create_simple_input_block): Likewise.
12826 (lto_destroy_simple_input_block): Likewise.
12827 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
12828 (lto_input_toplevel_asms): Likewise.
12830 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
12831 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12832 Anna Tikhonova <anna.tikhonova@intel.com>
12833 Ilya Tocar <ilya.tocar@intel.com>
12834 Andrey Turetskiy <andrey.turetskiy@intel.com>
12835 Ilya Verbin <ilya.verbin@intel.com>
12836 Kirill Yukhin <kirill.yukhin@intel.com>
12837 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12839 * common/config/i386/i386-common.c
12840 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
12841 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
12842 (ix86_handle_option): Handle OPT_mavx512dq.
12843 * config/i386/cpuid.h (bit_AVX512DQ): Define.
12844 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
12845 set -mavx512dq accordingly.
12846 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12847 OPTION_MASK_ISA_AVX512DQ.
12848 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
12849 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
12850 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
12851 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
12852 * config/i386/i386.h (TARGET_AVX512DQ): Define.
12853 (TARGET_AVX512DQ_P(x)): Ditto.
12854 * config/i386/i386.opt: Add mavx512dq.
12856 2014-08-08 Richard Biener <rguenther@suse.de>
12858 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
12859 target_percent, target_percent_s): Export.
12860 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
12861 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
12862 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
12863 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
12864 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
12865 Move to gimple-fold.c.
12866 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
12868 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
12869 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
12870 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
12871 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
12872 (rewrite_call_expr_array): Remove.
12873 (fold_builtin_sprintf_chk): Likewise.
12874 (fold_builtin_snprintf_chk): Likewise.
12875 (fold_builtin_varargs): Remove handling of sprintf_chk,
12876 vsprintf_chk, snprintf_chk and vsnprintf_chk.
12877 (gimple_fold_builtin_sprintf_chk): Remove.
12878 (gimple_fold_builtin_snprintf_chk): Likewise.
12879 (gimple_fold_builtin_varargs): Likewise.
12880 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
12881 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
12882 * gimple.c (gimple_seq_add_seq_without_update): New function.
12883 * gimple.h (gimple_seq_add_seq_without_update): Declare.
12884 * gimple-fold.c: Include output.h.
12885 (gsi_replace_with_seq_vops): New function, split out from ...
12886 (gimplify_and_update_call_from_tree): ... here.
12887 (replace_call_with_value): New function.
12888 (replace_call_with_call_and_fold): Likewise.
12889 (var_decl_component_p): Moved from builtins.c.
12890 (gimple_fold_builtin_memory_op): Moved from builtins.c
12891 fold_builtin_memory_op and rewritten to GIMPLE.
12892 (gimple_fold_builtin_memset): Likewise.
12893 (gimple_fold_builtin_strcpy): Likewise.
12894 (gimple_fold_builtin_strncpy): Likewise.
12895 (gimple_fold_builtin_strcat): Likewise.
12896 (gimple_fold_builtin_fputs): Likewise.
12897 (gimple_fold_builtin_memory_chk): Likewise.
12898 (gimple_fold_builtin_stxcpy_chk): Likewise.
12899 (gimple_fold_builtin_stxncpy_chk): Likewise.
12900 (gimple_fold_builtin_snprintf_chk): Likewise.
12901 (gimple_fold_builtin_sprintf_chk): Likewise.
12902 (gimple_fold_builtin_strlen): New function.
12903 (gimple_fold_builtin_with_strlen): New function split out from
12904 gimple_fold_builtin.
12905 (gimple_fold_builtin): Change signature and handle
12906 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
12907 here. Call gimple_fold_builtin_with_strlen.
12908 (gimple_fold_call): Adjust.
12910 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
12912 * calls.c (precompute_arguments): Check
12913 promoted_for_signed_and_unsigned_p and set the promoted mode.
12914 (promoted_for_signed_and_unsigned_p): New function.
12915 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
12916 and set the promoted mode.
12917 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
12918 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
12919 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
12922 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
12924 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
12925 instead of SUBREG_PROMOTED_UNSIGNED_SET.
12926 (expand_call): Likewise.
12927 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
12928 to get promoted mode.
12929 * combine.c (record_promoted_value): Skip > 0 comparison with
12930 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
12931 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
12932 of SUBREG_PROMOTED_UNSIGNED_P.
12933 (convert_modes): Likewise.
12934 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
12935 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
12936 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
12937 SUBREG_PROMOTED_UNSIGNED_SET.
12938 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
12939 instead of SUBREG_PROMOTED_UNSIGNED_SET.
12940 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
12941 SUBREG_PROMOTED_SET.
12942 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
12943 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
12944 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
12945 of SUBREG_PROMOTED_UNSIGNED_P.
12946 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
12947 (SUBREG_PROMOTED_SET): New define.
12948 (SUBREG_PROMOTED_GET): Likewise.
12949 (SUBREG_PROMOTED_SIGN): Likewise.
12950 (SUBREG_PROMOTED_SIGNED_P): Likewise.
12951 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
12952 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
12953 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
12954 instead of SUBREG_PROMOTED_UNSIGNED_GET.
12955 (nonzero_bits1): Skip > 0 comparison with the results as
12956 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
12957 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
12958 of !SUBREG_PROMOTED_UNSIGNED_P.
12959 * simplify-rtx.c (simplify_unary_operation_1): Use new
12960 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
12961 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
12962 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
12963 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
12965 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
12967 * ipa-devirt.c: Include gimple-pretty-print.h
12968 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
12970 (decl_maybe_in_construction_p): Fix conditional on cdtor check
12971 (get_polymorphic_call_info): Fix return value
12972 (type_change_info): New sturcture based on ipa-prop
12974 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
12975 based on ipa-prop variant.
12976 (extr_type_from_vtbl_ptr_store): New function
12977 based on ipa-prop variant.
12978 (record_known_type): New function.
12979 (check_stmt_for_type_change): New function.
12980 (get_dynamic_type): New function.
12981 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
12982 * tree-ssa-pre.c: ipa-utils.h
12983 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
12984 machinery; sanity check with ipa-prop devirtualization.
12985 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
12988 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
12990 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
12991 * alias.c, cfgexpand.c, cgraphbuild.c,
12992 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
12993 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
12994 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
12995 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
12996 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
12997 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
12998 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
12999 dse.c, except.c, gengtype.c, gimple-expr.c,
13000 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
13001 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
13002 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
13003 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
13004 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
13005 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
13007 * pointer-set.c: Remove file.
13008 * pointer-set.h: Remove file.
13010 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13012 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
13013 * config/arm/types.md (f_sels, f_seld): Delete.
13015 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13017 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
13018 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
13019 (aarch64_movdi_<mode>high): Likewise.
13020 (aarch64_mov<mode>high_di): Likewise.
13021 (aarch64_movdi_<mode>low): Likewise.
13022 (aarch64_mov<mode>low_di): Likewise.
13023 (aarch64_movtilow_tilow): Likewise.
13024 Add comment explaining usage of fp,simd attributes and of
13025 TARGET_FLOAT and TARGET_SIMD.
13027 2014-08-07 Ian Bolton <ian.bolton@arm.com>
13028 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13030 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
13031 Use MOVN when one of the half-words is 0xffff.
13033 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
13035 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
13037 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13039 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
13040 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
13041 (rfs_str): String corresponding to RFS_* constants.
13042 (rank_for_schedule_stats_t): New typedef.
13043 (rank_for_schedule_stats): New static variable.
13044 (rfs_result): New static function.
13045 (rank_for_schedule): Track statistics for deciding heuristics.
13046 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
13048 (ready_sort): Use them for debug printouts.
13049 (schedule_block): Init statistics state. Print statistics on
13050 rank_for_schedule decisions.
13052 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13054 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
13056 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
13058 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
13061 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
13063 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
13064 function to not conflict.
13065 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
13066 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
13067 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
13068 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
13069 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
13072 2014-08-07 Marek Polacek <polacek@redhat.com>
13074 * fold-const.c (fold_binary_loc): Add folding of
13075 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
13077 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
13079 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
13080 instead of type size.
13081 (ASM_FINISH_DECLARE_OBJECT): Likewise.
13083 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
13085 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
13086 (*thumb1_movqi_insn): Likewise.
13087 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
13089 2014-08-07 Tom de Vries <tom@codesourcery.com>
13091 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
13092 (glibc_2_11_or_earlier): Remove effective-target keywords.
13094 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
13096 * config/arm/arm.c (bdesc_2arg): Fix typo.
13097 (arm_atomic_assign_expand_fenv): Remove The default implementation.
13099 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
13101 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
13103 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
13106 * haifa-sched.c (advance_one_cycle): Fix dump.
13107 (schedule_block): Don't advance cycle if we are already at the
13108 beginning of the cycle.
13110 2014-08-06 Martin Jambor <mjambor@suse.cz>
13113 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
13115 2014-08-06 Richard Biener <rguenther@suse.de>
13118 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
13120 (lto_input_tree): Pop SCCs here.
13122 2014-08-06 Richard Biener <rguenther@suse.de>
13124 PR tree-optimization/61320
13125 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
13126 handle misaligned loads.
13128 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
13130 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
13131 (aarch64_expand_vec_perm_const): Check for dup before zip.
13133 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13135 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
13136 CONST_INT_P instead of GET_CODE and compare.
13137 (aarch64_select_cc_mode): Likewise.
13138 (aarch64_print_operand): Likewise.
13139 (aarch64_rtx_costs): Likewise.
13140 (aarch64_simd_valid_immediate): Likewise.
13141 (aarch64_simd_check_vect_par_cnst_half): Likewise.
13142 (aarch64_simd_emit_pair_result_insn): Likewise.
13144 2014-08-05 David Malcolm <dmalcolm@redhat.com>
13146 * gdbhooks.py (find_gcc_source_dir): New helper function.
13147 (class PassNames): New class, locating and parsing passes.def.
13148 (class BreakOnPass): New command "break-on-pass".
13150 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
13152 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
13155 2014-08-05 Richard Biener <rguenther@suse.de>
13157 PR rtl-optimization/61672
13158 * emit-rtl.h (mem_attrs_eq_p): Declare.
13159 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
13160 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
13161 * cfgcleanup.c (merge_memattrs): Likewise.
13162 Include emit-rtl.h.
13164 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13166 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
13167 rather than singleton vectors.
13168 (vqdmlsls_lane_s32): Likewise.
13170 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13172 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
13173 Use VSDQ_HSI mode iterator.
13174 (aarch64_sqrdmulh_laneq<mode>): Likewise.
13175 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
13176 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
13177 Use BUILTIN_VDQHS macro.
13178 (sqrdmulh_laneq): Likewise.
13179 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
13180 (vqdmlals_laneq_s32): Likewise.
13181 (vqdmlslh_laneq_s16): Likewise.
13182 (vqdmlsls_laneq_s32): Likewise.
13183 (vqdmulhh_laneq_s16): Likewise.
13184 (vqdmulhs_laneq_s32): Likewise.
13185 (vqrdmulhh_laneq_s16): Likewise.
13186 (vqrdmulhs_laneq_s32): Likewise.
13188 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13190 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
13191 (vmuld_laneq_f64): Likewise.
13192 (vmuls_laneq_f32): Likewise.
13193 (vmul_n_f64): Likewise.
13194 (vmuld_lane_f64): Reimplement in C.
13195 (vmuls_lane_f32): Likewise.
13197 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13199 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
13201 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
13203 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13205 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
13206 (rbitsi2): Likewise.
13207 (*arm_rev): Set predicable and predicable_short_it attributes.
13209 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13211 * convert.c (convert_to_integer): Guard transformation to lrint by
13214 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
13216 * config/aarch64/aarch64-builtins.c
13217 (aarch64_simd_builtin_type_mode): Delete.
13218 (v8qi_UP): Remap to V8QImode.
13219 (v4hi_UP): Remap to V4HImode.
13220 (v2si_UP): Remap to V2SImode.
13221 (v2sf_UP): Remap to V2SFmode.
13222 (v1df_UP): Remap to V1DFmode.
13223 (di_UP): Remap to DImode.
13224 (df_UP): Remap to DFmode.
13225 (v16qi_UP):V16QImode.
13226 (v8hi_UP): Remap to V8HImode.
13227 (v4si_UP): Remap to V4SImode.
13228 (v4sf_UP): Remap to V4SFmode.
13229 (v2di_UP): Remap to V2DImode.
13230 (v2df_UP): Remap to V2DFmode.
13231 (ti_UP): Remap to TImode.
13232 (ei_UP): Remap to EImode.
13233 (oi_UP): Remap to OImode.
13234 (ci_UP): Map to CImode.
13235 (xi_UP): Remap to XImode.
13236 (si_UP): Remap to SImode.
13237 (sf_UP): Remap to SFmode.
13238 (hi_UP): Remap to HImode.
13239 (qi_UP): Remap to QImode.
13240 (aarch64_simd_builtin_datum): Make mode a machine_mode.
13241 (VAR1): Build builtin name.
13242 (aarch64_init_simd_builtins): Remove dead code.
13244 2014-08-05 Roman Gareev <gareevroman@gmail.com>
13246 * graphite-isl-ast-to-gimple.c:
13247 (set_options): New function.
13248 (scop_to_isl_ast): Add calling of set_options.
13250 2014-08-05 Jakub Jelinek <jakub@redhat.com>
13252 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
13253 (analyze_iv_to_split_insn): Don't initialize them.
13254 (get_ivts_expr): Removed.
13255 (allocate_basic_variable, insert_base_initialization): Use
13256 SET_SRC instead of *get_ivts_expr.
13257 (split_iv): Use &SET_SRC instead of get_ivts_expr.
13259 2014-08-05 Roman Gareev <gareevroman@gmail.com>
13261 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
13262 (translate_isl_ast_for_loop): Add checking of the
13263 flag_loop_parallelize_all.
13264 (ast_build_before_for): New function.
13265 (scop_to_isl_ast): Add checking of the
13266 flag_loop_parallelize_all.
13267 * graphite-dependences.c: Move the defenition of the
13268 scop_get_dependences from graphite-optimize-isl.c to this file.
13269 (apply_schedule_on_deps): Add checking of the ux's emptiness.
13270 (carries_deps): Add checking of the x's value.
13271 * graphite-optimize-isl.c: Move the defenition of the
13272 scop_get_dependences to graphite-dependences.c.
13273 * graphite-poly.h: Add declarations of scop_get_dependences
13276 2014-08-04 Rohit <rohitarulraj@freescale.com>
13279 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
13281 (alt_reg_names): Likewise.
13282 (rs6000_dwarf_register_span): For SPE high registers, replace
13283 dwarf register numbers with GCC hard register numbers.
13284 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
13285 (rs6000_dbx_register_number): For SPE high registers, return dwarf
13286 register number for the corresponding GCC hard register number.
13287 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
13288 newly added GCC hard register numbers for SPE high registers.
13289 (DWARF_FRAME_REGISTERS): Likewise.
13290 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
13291 (DWARF_FRAME_REGNUM): Likewise.
13292 (FIXED_REGISTERS): Likewise.
13293 (CALL_USED_REGISTERS): Likewise.
13294 (CALL_REALLY_USED_REGISTERS): Likewise.
13295 (REG_ALLOC_ORDER): Likewise.
13296 (enum reg_class): Likewise.
13297 (REG_CLASS_NAMES): Likewise.
13298 (REG_CLASS_CONTENTS): Likewise.
13299 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
13301 2014-08-04 Richard Biener <rguenther@suse.de>
13303 * gimple-fold.h (gimple_fold_builtin): Remove.
13304 * gimple-fold.c (gimple_fold_builtin): Make static.
13305 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
13306 fold_stmt, not gimple_fold_builtin.
13308 2014-08-04 Martin Liska <mliska@suse.cz>
13310 * cgraph.h (csi_end_p): Removed.
13311 (csi_next): Likewise.
13312 (csi_node): Likewise.
13313 (csi_start): Likewise.
13314 (cgraph_node_in_set_p): Likewise.
13315 (cgraph_node_set_size): Likewise.
13316 (vsi_end_p): Likewise.
13317 (vsi_next): Likewise.
13318 (vsi_node): Likewise.
13319 (vsi_start): Likewise.
13320 (varpool_node_set_size): Likewise.
13321 (cgraph_node_set_nonempty_p): Likewise.
13322 (varpool_node_set_nonempty_p): Likewise.
13323 * cgraphunit.c (cgraph_process_new_functions): vec replaces
13325 * ipa-inline-transform.c: Likewise.
13326 * ipa-utils.c (cgraph_node_set_new): Removed.
13327 (cgraph_node_set_add): Likewise.
13328 (cgraph_node_set_remove): Likewise.
13329 (cgraph_node_set_find): Likewise.
13330 (dump_cgraph_node_set): Likewise.
13331 (debug_cgraph_node_set): Likewise.
13332 (free_cgraph_node_set): Likewise.
13333 (varpool_node_set_new): Likewise.
13334 (varpool_node_set_add): Likewise.
13335 (varpool_node_set_remove): Likewise.
13336 (varpool_node_set_find): Likewise.
13337 (dump_varpool_node_set): Likewise.
13338 (free_varpool_node_set): Likewise.
13339 (debug_varpool_node_set): Likewise.
13340 * tree-emutls.c (struct tls_var_data):
13341 (emutls_index): Removed.
13342 (emutls_decl): Likewise.
13343 (gen_emutls_addr): Function implementation uses newly added
13344 hash_map<varpool_node *, tls_var_data>.
13345 (clear_access_vars): Likewise.
13346 (create_emultls_var): Likewise.
13347 (ipa_lower_emutls): Likewise.
13348 (reset_access): New function.
13350 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
13352 * config/i386/i386.c (ix86_option_override_internal): Add
13353 PTA_RDRND and PTA_MOVBE for bdver4.
13355 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13356 James Greenhalgh <james.greenhalgh@arm.com>
13358 * doc/md.texi (clrsb): Document.
13359 (clz): Change reference to x into operand 1.
13361 (popcount): Likewise.
13363 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13366 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
13367 move to subtarget in serial version if result is ignored.
13369 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13370 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13372 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
13373 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
13374 (sched_analyze_insn): Update use of try_group_insn to
13375 sched_macro_fuse_insns.
13376 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
13377 arguments that are not conditional jumps.
13379 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
13381 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
13382 family information. Handle BTVER2 cpu with cpuid family value.
13384 2014-08-04 Tom de Vries <tom@codesourcery.com>
13386 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
13387 (glibc_2_11_or_earlier): Document effective-target keywords.
13389 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
13391 * ipa-devirt.c (odr_type_warn_count): Add type.
13392 (possible_polymorphic_call_targets): Set it.
13393 (ipa_devirt): Use it.
13395 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
13397 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
13399 * ipa-devirt.c: Include hash-map.h
13400 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
13401 (clear_speculation): Break out of ...
13402 (get_class_context): ... here; speed up handling obviously useless
13404 (odr_type_warn_count, decl_warn_count): New structures.
13405 (final_warning_record): New structure.
13406 (final_warning_records): New static variable.
13407 (possible_polymorphic_call_targets): Cleanup handling of
13408 speculative info; do not build speculation when user do not care;
13409 record info about warnings when asked for.
13410 (add_decl_warning): New function.
13411 (type_warning_cmp): New function.
13412 (decl_warning_cmp): New function.
13413 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
13414 (gate): Enable pass when warnings are requested.
13415 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
13418 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
13420 * hash-map.h (default_hashmap_traits::mark_key_deleted):
13422 (hash_map::remove): New method.
13423 (hash_map::traverse): New method.
13424 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
13425 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
13426 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
13427 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
13428 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
13429 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
13432 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
13434 * hash-set.h: new File.
13435 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
13436 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
13437 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
13438 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
13439 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
13440 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
13441 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
13442 varpool.c: Use hash_set instead of pointer_set.
13444 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
13446 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
13448 2014-08-01 Jiong Wang <jiong.wang@arm.com>
13450 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
13451 for frame access when strict_p is false.
13453 2014-08-01 Renlin Li <renlin.li@arm.com>
13454 2014-08-01 Jiong Wang <jiong.wang@arm.com>
13456 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
13457 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
13458 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
13460 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
13462 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
13463 aarch64_mem_pair_offset.
13465 2014-08-01 Jiong Wang <jiong.wang@arm.com>
13467 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
13469 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
13470 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
13472 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
13474 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
13476 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
13478 PR regression/61510
13479 * cgraphunit.c (analyze_functions): Use get_create rather than get
13480 for decls which are clones of abstract functions.
13482 2014-08-01 Martin Liska <mliska@suse.cz>
13484 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
13485 * ipa-prop.h (count_formal_params): Global function created from static.
13486 * ipa-prop.c (count_formal_params): Likewise.
13487 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
13488 profiles for semantically equivalent functions.
13489 * passes.c (do_per_function): If we load body of a function
13490 during WPA, this condition should behave same.
13491 * varpool.c (ctor_for_folding): More tolerant assert for variable
13492 aliases created during WPA.
13494 2014-08-01 Martin Liska <mliska@suse.cz>
13496 * doc/invoke.texi (Options That Control Optimization): Documentation
13497 for -foptimize-strlen introduced. Optimization levels default options
13500 2014-08-01 Jakub Jelinek <jakub@redhat.com>
13502 * opts.c (common_handle_option): Handle -fsanitize=alignment.
13503 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
13504 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
13506 * stor-layout.h (min_align_of_type): New prototype.
13507 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
13508 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
13510 * ubsan.c: Include builtins.h.
13511 (ubsan_expand_bounds_ifn): Change return type to bool,
13512 always return true.
13513 (ubsan_expand_null_ifn): Change return type to bool, change
13514 argument to gimple_stmt_iterator *. Handle both null and alignment
13515 sanitization, take type from ckind argument's type rather than
13517 (instrument_member_call): Removed.
13518 (instrument_mem_ref): Remove t argument, add mem and base arguments.
13519 Handle both null and alignment sanitization, don't say whole
13520 struct access is member access. Build 3 argument IFN_UBSAN_NULL
13521 call instead of 2 argument.
13522 (instrument_null): Adjust instrument_mem_ref caller. Don't
13523 instrument calls here.
13524 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
13525 like SANITIZE_NULL.
13526 * stor-layout.c (min_align_of_type): New function.
13527 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
13528 Or it into SANITIZE_UNDEFINED.
13529 * doc/invoke.texi (-fsanitize=alignment): Document.
13531 2014-07-31 Andi Kleen <ak@linux.intel.com>
13533 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
13535 2014-07-31 Andi Kleen <ak@linux.intel.com>
13537 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
13539 (vn_reference_compute_hash): Dito.
13540 (vn_nary_op_compute_hash): Dito.
13541 (vn_phi_compute_hash): Dito.
13542 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
13544 2014-07-31 Andi Kleen <ak@linux.intel.com>
13546 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
13547 Rename to inchash:add_expr_commutative. Convert to inchash.
13548 (iterative_hash_hashable_expr): Rename to
13549 inchash:add_hashable_expr. Convert to inchash.
13550 (avail_expr_hash): Dito.
13552 2014-07-31 Andi Kleen <ak@linux.intel.com>
13554 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
13555 Convert to inchash.
13557 2014-07-31 Andi Kleen <ak@linux.intel.com>
13559 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
13561 2014-07-31 Andi Kleen <ak@linux.intel.com>
13563 * Makefile.in (OBJS): Add rtlhash.o
13564 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
13565 (loc_checksum): Dito.
13566 (loc_checksum_ordered): Dito.
13567 (hash_loc_operands): Dito.
13569 (hash_loc_list): Dito.
13570 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
13571 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
13572 * rtlhash.c: New file.
13573 * rtlhash.h: New file.
13575 2014-07-31 Andi Kleen <ak@linux.intel.com>
13577 * inchash.h (inchash): Change inchash class to namespace.
13578 (class hash): ... Rename from inchash.
13579 (add_object): Move from macro to class template.
13580 * lto-streamer-out.c (hash_tree): Change inchash
13582 * tree.c (build_type_attribute_qual_variant): Dito.
13583 (type_hash_list): Dito.
13584 (attribute_hash_list): Dito.
13585 (iterative_hstate_expr): Rename to inchash::add_expr
13586 (build_range_type_1): Change inchash to inchash::hash
13587 and use hash::add_expr.
13588 (build_array_type_1): Dito.
13589 (build_function_type): Dito
13590 (build_method_type_directly): Dito.
13591 (build_offset_type): Dito.
13592 (build_complex_type): Dito.
13593 (make_vector_type): Dito.
13594 * tree.h (iterative_hash_expr): Dito.
13596 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
13598 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
13600 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
13602 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
13603 correct alphabetical position.
13604 (vpaddd_f64): Rewrite using builtins.
13605 (vpaddd_s64): Move to correct alphabetical position.
13608 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
13611 * config/sh/sh.c (sh_legitimate_address_p,
13612 sh_legitimize_reload_address): Handle reg+reg address modes when
13613 ALLOW_INDEXED_ADDRESS is false.
13614 * config/sh/predicates.md (general_movsrc_operand,
13615 general_movdst_operand): Likewise.
13617 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
13619 * config/aarch64/aarch64-builtins.c
13620 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
13623 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
13625 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
13626 the generated mask based on BYTES_BIG_ENDIAN.
13627 (aarch64_simd_check_vect_par_cnst_half): New.
13628 * config/aarch64/aarch64-protos.h
13629 (aarch64_simd_check_vect_par_cnst_half): New.
13630 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
13631 the check out to aarch64_simd_check_vect_par_cnst_half.
13632 (vect_par_cnst_lo_half): Likewise.
13633 * config/aarch64/aarch64-simd.md
13634 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
13635 (move_hi_quad_<mode>): Always generate a low mask.
13637 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13639 * doc/invoke.texi (AVR Options): Add documentation about
13640 __AVR_DEVICE_NAME__ built-in macro.
13642 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
13645 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
13646 constraints are satisfied.
13647 (<shift>di3_neon): Likewise.
13649 2014-07-31 Richard Biener <rguenther@suse.de>
13651 PR tree-optimization/61964
13652 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
13653 by structural equality.
13655 2014-07-31 Yury Gribov <y.gribov@samsung.com>
13657 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
13658 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
13659 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
13661 * gcc.c (sanitize_spec_function): Support new option.
13662 (SANITIZER_SPEC): Remove now redundant check.
13663 * opts.c (common_handle_option): Support new option.
13664 (finish_options): Check for incompatibilities.
13665 * toplev.c (process_options): Split userspace-specific checks.
13667 2014-07-31 Richard Biener <rguenther@suse.de>
13669 * lto-streamer.h (struct output_block): Remove global.
13670 (struct data_in): Remove labels, num_named_labels and
13671 num_unnamed_labels.
13672 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
13673 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
13675 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
13678 * common.opt (-Wreturn-local-addr): Moved from c.opt.
13679 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
13680 (isolate_path): New argument to avoid inserting a trap.
13681 (find_implicit_erroneous_behaviour): Handle returning the address
13682 of a local variable.
13683 (find_explicit_erroneous_behaviour): Likewise.
13685 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
13688 * toplev.c (init_random_seed): Move piece of code never called to
13690 (set_random_seed): see above.
13692 2014-07-31 Tom de Vries <tom@codesourcery.com>
13694 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
13696 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
13698 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
13699 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
13701 2014-07-31 Richard Biener <rguenther@suse.de>
13703 * data-streamer.h (streamer_write_data_stream): Declare here,
13705 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
13706 * lto-cgraph.c (lto_output_node): Adjust.
13707 (lto_output_varpool_node): Likewise.
13708 * data-streamer-out.c (streamer_string_index): Likewise.
13709 (streamer_write_data_stream, lto_append_block): Move from ...
13710 * lto-section-out.c (lto_output_data_stream,
13711 lto_append_block): ... here.
13713 2014-07-30 Mike Stump <mikestump@comcast.net>
13715 * configure.ac: Also check for popen.
13716 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
13717 * configure: Regenerate.
13718 * config.in: Regenerate.
13720 2014-07-30 Martin Jambor <mjambor@suse.cz>
13722 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
13723 parameter to gimple.
13725 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13727 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
13728 address as second parameter to __tpf_eh_return routine.
13730 2014-07-30 Jiong Wang <jiong.wang@arm.com>
13732 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
13735 2014-07-30 Tom Tromey <tromey@redhat.com>
13738 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
13739 * doc/extend.texi (Type Attributes): Document designated_init
13742 2014-07-30 Roman Gareev <gareevroman@gmail.com>
13744 * graphite-isl-ast-to-gimple.c:
13745 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
13746 (gcc_expression_from_isl_expression): Pass type to
13747 gcc_expression_from_isl_ast_expr_id.
13749 2014-07-30 Richard Biener <rguenther@suse.de>
13751 * lto-streamer.h (lto_write_data): New function.
13752 * langhooks.c (lhd_append_data): Do not free block.
13753 * lto-section-out.c (lto_write_data): New function writing
13754 raw data to the current section.
13755 (lto_write_stream): Adjust for langhook semantic change.
13756 (lto_destroy_simple_output_block): Write header directly.
13757 * lto-opts.c (lto_write_options): Write options directly.
13758 * lto-streamer-out.c (produce_asm): Write heaeder directly.
13759 (lto_output_toplevel_asms): Likewise.
13760 (copy_function_or_variable): Copy data directly.
13761 (write_global_references): Output index table directly.
13762 (lto_output_decl_state_refs): Likewise.
13763 (write_symbol): Write data directly.
13764 (produce_symtab): Adjust.
13765 (produce_asm_for_decls): Output header and refs directly.
13767 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
13769 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
13770 to speculative_targets
13771 (get_class_context): Fix handling of contextes without outer type;
13772 avoid matching non-polymorphic types in LTO.
13773 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
13774 parameter to speculative_targetsp; handle speculation.
13775 (dump_possible_polymorphic_call_targets): Update dumping.
13777 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
13779 * common.opt (Wodr): Enable by default.
13781 2014-07-29 Olivier Hainque <hainque@adacore.com>
13783 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
13785 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
13788 * gengtype.c (strtoken): New function.
13789 (create_user_defined_type): Replace strtok with strtoken.
13791 2014-07-29 Nathan Sidwell <nathan@acm.org>
13793 * gcov-io.c (gcov_var): Make hidden.
13794 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
13795 (gcov_do_dump): Declare.
13796 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
13798 2014-07-29 Martin Jambor <mjambor@suse.cz>
13800 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
13801 parameter to gimple.
13802 (sra_modify_assign): Likewise.
13804 2014-07-29 Richard Biener <rguenther@suse.de>
13806 PR middle-end/52478
13807 * expr.c (expand_expr_real_2): Revert last change.
13809 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
13811 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
13812 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
13813 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
13815 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
13816 (contains_type_p): Forward declare.
13817 (polymorphic_call_target_hasher::hash): Hash speculative info.
13818 (polymorphic_call_target_hasher::equal): Compare speculative info.
13819 (get_class_context): Handle speuclation.
13820 (contains_type_p): Update.
13821 (get_polymorphic_call_info_for_decl): Update.
13822 (walk_ssa_copies): Break out from ...
13823 (get_polymorphic_call_info): ... here; set speculative context
13825 * ipa-prop.c (ipa_write_indirect_edge_info,
13826 ipa_read_indirect_edge_info): Stream speculative context.
13827 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
13828 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
13829 SPECULATIVE_MAYBE_DERIVED_TYPE).
13830 (possible_polymorphic_call_targets overriders): Update.
13831 (dump_possible_polymorphic_call_targets overriders): Update.
13832 (dump_possible_polymorphic_call_target_p overriders): Update.
13834 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
13836 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
13837 ipa-devirt path; fix thinko there.
13839 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
13841 * config/i386/i386.c (ix86_return_in_memory): Replace one
13842 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
13844 2014-07-28 Marek Polacek <polacek@redhat.com>
13846 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
13848 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
13850 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
13851 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
13852 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
13853 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
13854 (USE_LD_AS_NEEDED): Likewise.
13855 (ASM_APP_ON): Likewise.
13856 (ASM_APP_OFF): Likewise.
13857 (TARGET_POSIX_IO): Likewise.
13858 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
13859 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
13860 (USE_LD_AS_NEEDED): Likewise.
13861 (ASM_APP_ON): Likewise.
13862 (ASM_APP_OFF): Likewise.
13863 (TARGET_POSIX_IO): Likewise.
13865 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
13867 PR middle-end/61734
13868 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
13869 operators other than the equality operators.
13871 2014-07-28 Richard Biener <rguenther@suse.de>
13873 PR middle-end/52478
13874 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
13875 sure to register SImode ones, not only >= word_mode ones.
13876 * expr.c (expand_expr_real_2): When expanding -ftrapv
13877 binops do not use OPTAB_LIB_WIDEN.
13879 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
13881 PR middle-end/61919
13882 * tree-outof-ssa.c (insert_partition_copy_on_edge)
13883 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
13884 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
13885 inserting them in the insn stream.
13887 2014-07-28 Marek Polacek <polacek@redhat.com>
13889 PR middle-end/61913
13890 * common.opt (Wodr): Add Var.
13892 2014-07-28 Richard Biener <rguenther@suse.de>
13894 PR tree-optimization/61921
13895 * tree-ssa-structalias.c (create_variable_info_for_1): Check
13896 if there is a varpool node before dereferencing it.
13898 2014-07-28 Roman Gareev <gareevroman@gmail.com>
13900 * graphite-sese-to-poly.c:
13901 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
13902 id of the pbb), which contains pointer to the pbb1.
13904 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
13906 2014-07-28 Roman Gareev <gareevroman@gmail.com>
13908 * graphite-isl-ast-to-gimple.c:
13909 (graphite_create_new_guard): New function.
13910 (translate_isl_ast_node_if): New function.
13911 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
13913 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
13915 2014-07-27 Anthony Green <green@moxielogic.com>
13917 * config.gcc: Add moxie-*-moxiebox* configuration.
13918 * config/moxie/moxiebox.h: New file.
13920 2014-07-26 Andrew Pinski <apinski@cavium.com>
13922 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
13923 from the read only register.
13925 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
13927 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
13928 as the allocation class if it isn't likely to be spilled.
13930 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
13932 * rtl.h (tls_referenced_p): Declare.
13933 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
13934 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
13935 (mips_cannot_force_const_mem): Use tls_referenced_p.
13936 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
13937 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
13938 instead of pa_tls_referenced_p.
13939 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
13940 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
13941 (pa_legitimate_constant_p): Likewise.
13942 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
13943 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
13944 (rs6000_cannot_force_const_mem, rs6000_emit_move)
13945 (rs6000_address_for_altivec): Use tls_referenced_p instead of
13946 rs6000_tls_referenced_p.
13947 (rs6000_tls_symbol_ref_1): Delete.
13949 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
13952 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
13953 Optimize inverse of a VEC_CONCAT.
13955 2014-07-25 Xinliang David Li <davidxl@google.com>
13957 * params.def: New parameter.
13958 * coverage.c (get_coverage_counts): Check new flag.
13959 (coverage_compute_profile_id): Check new flag.
13960 (coverage_begin_function): Check new flag.
13961 (coverage_end_function): Check new flag.
13962 * value-prof.c (coverage_node_map_initialized_p): New function.
13963 (init_node_map): Populate map with all functions.
13964 * doc/invoke.texi: Document new parameter.
13966 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
13967 Richard Biener <rguenther@suse.de>
13969 * lto-streamer-out.c (struct sccs): Turn to ...
13970 (class DFS): ... this one; refactor the DFS walk so it can
13971 be re-done on per-SCC basis.
13972 (DFS::DFS): New constructor.
13973 (DFS::~DFS): New destructor.
13974 (hash_tree): Add new MAP argument holding in-SCC hash values;
13975 remove POINTER_TYPE hashing hack.
13976 (scc_entry_compare): Rename to ...
13977 (DFS::scc_entry_compare): ... this one.
13978 (hash_scc): Rename to ...
13979 (DFS::hash_scc): ... this one; pass output_block instead
13980 of streamer_cache; work harder to get unique and stable SCC
13982 (DFS_write_tree): Rename to ...
13983 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
13984 (lto_output_tree): Update.
13986 2014-07-25 Andi Kleen <ak@linux.intel.com>
13988 * lto-streamer-out.c (hash_tree): Convert to inchash.
13990 2014-07-25 Andi Kleen <ak@linux.intel.com>
13992 * tree.c (build_type_attribute_qual_variant): Use inchash.
13993 (type_hash_list): Dito.
13994 (attribute_hash_list): Dito
13995 (iterative_hstate_expr): Dito.
13996 (iterative_hash_expr): Dito.
13997 (build_range_type_1): Dito.
13998 (build_array_type_1): Dito.
13999 (build_function_type): Dito.
14000 (build_method_type_directly): Dito.
14001 (build_offset_type): Dito.
14002 (build_complex_type): Dito.
14003 (make_vector_type): Dito.
14004 * tree.h (iterative_hash_expr): Add compat wrapper.
14005 (iterative_hstate_expr): Add.
14007 2014-07-25 Andi Kleen <ak@linux.intel.com>
14009 * Makefile.in (OBJS): Add inchash.o.
14010 (PLUGIN_HEADERS): Add inchash.h.
14011 * ipa-devirt.c: Include inchash.h.
14012 * lto-streamer-out.c: Dito.
14013 * tree-ssa-dom.c: Dito.
14014 * tree-ssa-pre.c: Dito.
14015 * tree-ssa-sccvn.c: Dito.
14016 * tree-ssa-tail-merge.c: Dito.
14018 * tree.c (iterative_hash_hashval_t): Move to ...
14019 (iterative_hash_host_wide_int): Move to ...
14020 * inchash.c: Here. New file.
14021 * tree.h (iterative_hash_hashval_t): Move to ...
14022 (iterative_hash_host_wide_int): Move to ...
14023 * inchash.h: Here. New file.
14025 2014-07-25 Richard Biener <rguenther@suse.de>
14027 PR middle-end/61762
14028 PR middle-end/61894
14029 * fold-const.c (native_encode_int): Add and handle offset
14030 parameter to do partial encodings of expr.
14031 (native_encode_fixed): Likewise.
14032 (native_encode_real): Likewise.
14033 (native_encode_complex): Likewise.
14034 (native_encode_vector): Likewise.
14035 (native_encode_string): Likewise.
14036 (native_encode_expr): Likewise.
14037 * fold-const.c (native_encode_expr): Add offset parameter
14039 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
14040 (fold_ctor_reference): Handle all reads from tcc_constant
14043 2014-07-25 Richard Biener <rguenther@suse.de>
14045 * tree-inline.c (estimate_move_cost): Mark speed_p argument
14046 as possibly unused.
14048 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14050 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
14052 2014-07-24 Kyle McMartin <kyle@redhat.com>
14054 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
14056 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14058 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
14060 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
14062 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
14063 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
14064 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
14066 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14068 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
14069 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
14070 aggregate types. Instead, *all* aggregate types, except for single-
14071 element or homogeneous float/vector aggregates, are quadword-aligned
14072 if required by their type alignment. Issue -Wpsabi note when a type
14073 is now treated differently than before.
14075 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14077 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
14078 does not fit fully into floating-point registers, and there is still
14079 space in the register parameter area, use GPRs to pass those parts
14080 of the argument. Issue -Wpsabi note if any parameter is now treated
14081 differently than before.
14082 (rs6000_arg_partial_bytes): Update.
14084 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
14086 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
14088 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
14090 * rtl.h (target_rtl): Remove lang_dependent_initialized.
14091 * toplev.c (initialize_rtl): Don't use it. Move previously
14092 "language-dependent" calls to...
14093 (backend_init): ...here.
14094 (lang_dependent_init_target): Don't set lang_dependent_initialized.
14095 Assert that RTL initialization hasn't happend yet.
14097 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
14099 PR rtl-optimization/61629
14100 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
14101 they have already been initialized.
14103 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
14105 PR middle-end/61268
14106 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
14107 DECL_INCOMING_RTL and entry_parm.
14108 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
14109 * calls.c (load_register_parameters): Likewise argument values.
14110 (emit_library_call_value_1, store_one_arg): Likewise argument
14112 * config/i386/i386.c (assign_386_stack_local): Likewise the local
14114 * explow.c (validize_mem): Modify the argument in-place.
14116 2014-07-24 Jiong Wang <jiong.wang@arm.com>
14118 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
14119 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
14121 2014-07-24 Jiong Wang <jiong.wang@arm.com>
14123 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
14124 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
14126 2014-07-24 Jiong Wang <jiong.wang@arm.com>
14128 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
14129 (aarch64_save_callee_saves): New parameter "skip_wb".
14130 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
14132 2014-07-24 Jiong Wang <jiong.wang@arm.com>
14134 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
14136 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
14138 2014-07-24 Roman Gareev <gareevroman@gmail.com>
14140 * graphite-isl-ast-to-gimple.c:
14141 (graphite_create_new_loop): Add calling of isl_id_free to properly
14142 decrement reference counts.
14144 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
14146 2014-07-24 Martin Liska <mliska@suse.cz>
14147 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
14149 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
14150 (rs6000_code_end): Likewise.
14152 2014-07-24 Martin Liska <mliska@suse.cz>
14154 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
14155 symtab_node funtion used.
14156 (rs6000_xcoff_declare_object_name): Likewise.
14158 2014-07-24 Martin Liska <mliska@suse.cz>
14160 * cgraphunit.c (compile): Correct function used.
14162 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
14164 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
14167 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
14170 * varasm.c (bss_initializer_p): Handle offlined ctors.
14171 (align_variable, get_variable_align): Likewise.
14172 (make_decl_one_only): Likewise.
14173 (default_binds_local_p_1): Likewise.
14174 (decl_binds_to_current_def_p): Likewise.
14175 (get_variable_section): Get constructor if it is offlined.
14176 (assemble_variable_contents): Sanity check that the caller
14177 streamed in the ctor in LTO.
14179 2014-07-24 Roman Gareev <gareevroman@gmail.com>
14181 * graphite-isl-ast-to-gimple.c:
14182 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
14183 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
14184 isl_ast_op_pdiv_r to the different case.
14186 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
14188 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14190 PR middle-end/61876
14191 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
14192 when flag_errno_math is on.
14194 2014-07-24 Martin Liska <mliska@suse.cz>
14196 * cgraph.h (varpool_node):
14197 (availability get_availability (void)):
14198 created from cgraph_variable_initializer_availability
14199 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
14200 created from: cgraph_variable_initializer_availability
14201 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
14202 (void finalize_named_section_flags (void)):
14203 created from varpool_finalize_named_section_flags
14204 (bool assemble_decl (void)): created from varpool_assemble_decl
14205 (void analyze (void)): created from varpool_analyze_node
14206 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
14207 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
14208 (void remove_initializer (void)): created from varpool_remove_initializer
14209 (tree get_constructor (void)): created from varpool_get_constructor
14210 (bool externally_visible_p (void)): created from varpool_externally_visible_p
14211 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
14212 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
14213 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
14214 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
14215 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
14216 (static bool output_variables (void)): created from varpool_output_variables
14217 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
14218 created from varpool_extra_name_alias
14219 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
14220 (static void dump_varpool (FILE *f)): created from dump_varpool
14221 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
14222 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
14223 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
14224 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
14225 (void assemble_aliases (void)): created from assemble_aliases
14227 2014-07-24 Martin Liska <mliska@suse.cz>
14229 * cgraph.h (symtab_node):
14230 (void register_symbol (void)): created from symtab_register_node
14231 (void remove (void)): created from symtab_remove_node
14232 (void dump (FILE *f)): created from dump_symtab_node
14233 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
14234 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
14235 (struct ipa_ref *add_reference (symtab_node *referred_node,
14236 enum ipa_ref_use use_type)): created from add_reference
14237 (struct ipa_ref *add_reference (symtab_node *referred_node,
14238 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
14239 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
14240 gimple stmt)): created from maybe_add_reference
14241 (bool semantically_equivalent_p (symtab_node *target)): created from
14242 symtab_semantically_equivalent_p
14243 (void remove_from_same_comdat_group (void)): created from
14244 remove_from_same_comdat_group
14245 (void add_to_same_comdat_group (symtab_node *old_node)): created from
14246 symtab_add_to_same_comdat_group
14247 (void dissolve_same_comdat_group_list (void)): created from
14248 symtab_dissolve_same_comdat_group_list
14249 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
14250 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
14251 created from symtab_alias_ultimate_target
14252 (inline symtab_node *next_defined_symbol (void)): created from
14253 symtab_next_defined_symbol
14254 (bool resolve_alias (symtab_node *target)): created from
14255 symtab_resolve_alias
14256 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
14257 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
14258 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
14259 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
14260 (void set_section (const char *section)): created from set_section_1
14261 (enum availability get_availability (void)): created from symtab_node_availability
14262 (void make_decl_local (void)): created from symtab_make_decl_local
14263 (bool real_symbol_p (void)): created from symtab_read_node
14264 (can_be_discarded_p (void)): created from symtab_can_be_discarded
14265 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
14266 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
14267 symtab_in_same_comdat_p;
14268 (bool address_taken_from_non_vtable_p (void)): created from
14269 address_taken_from_non_vtable_p
14270 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
14271 (static void dump_table (FILE *)): created from dump_symtab
14272 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
14273 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
14274 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
14275 symtab_used_from_object_file_p
14276 (void dump_base (FILE *)): created from dump_symtab_base
14277 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
14278 (void unregister (void)): created from symtab_unregister_node
14279 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
14280 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
14281 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
14282 symtab_nonoverwritable_alias_1
14283 * cgraph.h (cgraph_node):
14284 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
14285 created from cgraph_remove_node_and_inline_clones
14286 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
14287 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
14288 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
14289 (cgraph_node *function_symbol (enum availability *avail = NULL)):
14290 created from cgraph_function_node
14291 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
14292 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
14293 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
14294 created from cgraph_create_clone
14295 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
14296 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
14297 created from cgraph_create_virtual_clone
14298 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
14299 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
14300 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
14301 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
14302 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
14303 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
14304 created from cgraph_function_version_info
14305 (struct cgraph_function_version_info *insert_new_function_version (void)):
14306 created from insert_new_cgraph_node_version
14307 (struct cgraph_function_version_info *function_version (void)): created from
14308 get_cgraph_node_version
14309 (void analyze (void)): created from analyze_function
14310 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
14311 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
14312 tree real_alias) cgraph_add_thunk
14313 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
14314 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
14315 created from cgraph_function_or_thunk_node
14316 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
14317 created from expand_thunk
14318 (void reset (void)): created from cgraph_reset_node
14319 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
14320 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
14321 (void remove (void)): created from cgraph_remove_node
14322 (void dump (FILE *f)): created from dump_cgraph_node
14323 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
14324 (bool get_body (void)): created from cgraph_get_body
14325 (void release_body (void)): created from cgraph_release_function_body
14326 (void unnest (void)): created from cgraph_unnest_node
14327 (void make_local (void)): created from cgraph_make_node_local
14328 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
14329 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
14330 gcov_type count, int freq)): created from cgraph_create_edge
14331 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
14332 gcov_type count, int freq)): created from cgraph_create_indirect_edge
14333 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
14334 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
14335 created from cgraph_create_edge_including_clones
14336 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
14337 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
14338 (void remove_callers (void)): created from cgraph_node_remove_callers
14339 (void remove_callees (void)): created from cgraph_node_remove_callees
14340 (enum availability get_availability (void)): created from cgraph_function_body_availability
14341 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
14342 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
14343 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
14344 (void call_duplication_hooks (cgraph_node *node2)): created from
14345 cgraph_call_node_duplication_hooks
14346 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
14347 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
14348 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
14349 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
14350 (void call_function_insertion_hooks (void)):
14351 created from cgraph_call_function_insertion_hooks
14352 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
14353 (bool local_p (void)): created from cgraph_local_node
14354 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
14355 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
14356 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
14357 (inline bool only_called_directly_or_aliased_p (void)):
14358 created from cgraph_only_called_directly_or_aliased_p
14359 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
14360 created from cgraph_will_be_removed_from_program_if_no_direct_calls
14361 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
14362 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
14363 (bool can_remove_if_no_direct_calls_p (void)):
14364 created from cgraph_can_remove_if_no_direct_calls_p
14365 (inline bool has_gimple_body_p (void)):
14366 created from cgraph_function_with_gimple_body_p
14367 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
14368 (static void dump_cgraph (FILE *f)): created from dump_cgraph
14369 (static inline void debug_cgraph (void)): created from debug_cgraph
14370 (static void record_function_versions (tree decl1, tree decl2)):
14371 created from record_function_versions
14372 (static void delete_function_version (tree decl)):
14373 created from delete_function_version
14374 (static void add_new_function (tree fndecl, bool lowered)):
14375 created from cgraph_add_new_function
14376 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
14377 (static cgraph_node * create (tree decl)): created from cgraph_create_node
14378 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
14379 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
14380 (static cgraph_node *get_for_asmname (tree asmname)):
14381 created from cgraph_node_for_asm
14382 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
14383 created from cgraph_same_body_alias
14384 (static bool used_from_object_file_p_worker (cgraph_node *node,
14385 void *): new function
14386 (static bool non_local_p (cgraph_node *node, void *)):
14387 created from cgraph_non_local_node_p_1
14388 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
14389 created from verify_cgraph
14390 (static bool make_local (cgraph_node *node, void *)):
14391 created from cgraph_make_node_local
14392 (static cgraph_node *create_alias (tree alias, tree target)):
14393 created from cgraph_create_function_alias
14394 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
14395 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
14396 created from cgraph_create_edge_1
14397 * cgraph.h (varpool_node):
14398 (void remove (void)): created from varpool_remove_node
14399 (void dump (FILE *f)): created from dump_varpool_node
14401 2014-07-24 Richard Biener <rguenther@suse.de>
14404 * tree-ssa-structalias.c (create_variable_info_for_1):
14405 Use varpool_get_constructor.
14406 (create_variable_info_for): Likewise.
14408 2014-07-24 Jiong Wang <jiong.wang@arm.com>
14410 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
14411 subtract outgoing area size when restoring stack_pointer_rtx.
14413 2014-07-24 Nick Clifton <nickc@redhat.com>
14415 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
14416 that operations are taking place in parallel.
14417 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
14419 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
14421 * omp-low.c (extract_omp_for_data): Add missing break statement.
14423 2014-07-24 Richard Biener <rguenther@suse.de>
14425 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
14426 * tree-inline.c (estimate_move_cost): Add speed_p parameter
14427 and adjust MOVE_RATIO query accordingly.
14428 (estimate_num_insns): Adjust callers.
14429 * ipa-prop.c (ipa_populate_param_decls): Likewise.
14430 * ipa-cp.c (gather_context_independent_values,
14431 estimate_local_effects): Likewise.
14432 * ipa-split.c (consider_split): Likewise.
14434 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
14436 * config/i386/driver-i386.c: Remove names of unused arguments and
14437 unnecessary unused attributes.
14438 * config/i386/host-mingw32.c: Likewise.
14439 * config/i386/i386.c: Likewise.
14440 * config/i386/winnt-stubs.c: Likewise.
14441 * config/i386/winnt.c: Likewise.
14443 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14445 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
14446 (aarch64_gen_loadwb_pair): New helper function.
14447 (aarch64_expand_epilogue): Simplify code using new helper functions.
14448 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
14450 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14452 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
14453 (aarch64_gen_storewb_pair): New helper function.
14454 (aarch64_expand_prologue): Simplify code using new helper functions.
14455 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
14457 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14459 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
14460 Rename to aarch64_save_callee_saves, remove restore code.
14461 (aarch64_restore_callee_saves): New function.
14463 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14465 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
14466 (aarch64_save_callee_saves): New function to handle reg save
14467 for both core and vectore regs.
14469 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14471 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
14472 (aarch64_gen_store_pair): New helper function.
14473 (aarch64_save_or_restore_callee_save_registers)
14474 (aarch64_save_or_restore_fprs): Use new helper functions.
14476 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14478 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
14479 (aarch64_save_or_restore_callee_save_registers)
14480 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
14482 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14484 * config/aarch64/aarch64.c
14485 (aarch64_save_or_restore_callee_save_registers)
14486 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
14488 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14490 * config/aarch64/aarch64.c
14491 (aarch64_save_or_restore_callee_save_registers)
14492 (aarch64_save_or_restore_fprs): Remove 'increment'.
14494 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14496 * config/aarch64/aarch64.c
14497 (aarch64_save_or_restore_callee_save_registers)
14498 (aarch64_save_or_restore_fprs): Use register offset in
14499 cfun->machine->frame.reg_offset.
14501 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14503 * config/aarch64/aarch64.c
14504 (aarch64_save_or_restore_callee_save_registers)
14505 (aarch64_save_or_restore_fprs): Remove base_rtx.
14507 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14509 * config/aarch64/aarch64.c
14510 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
14511 to 'start_offset'. Remove local variable 'start_offset'.
14513 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14515 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
14516 type to HOST_WIDE_INT.
14518 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14520 * config/aarch64/aarch64.c (aarch64_expand_prologue)
14521 (aarch64_save_or_restore_fprs)
14522 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
14524 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
14526 * config/arm/t-rtems-eabi: Add
14527 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
14528 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
14529 mbig-endian/mthumb/march=armv7-r, and
14530 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
14533 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
14534 Chris Johns <chrisj@rtems.org>
14535 Joel Sherrill <joel.sherrill@oarcorp.com>
14537 * config.gcc: Add nios2-*-rtems*.
14538 * config/nios2/rtems.h: New file.
14539 * gcc/config/nios2/t-rtems: New file.
14541 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
14544 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
14545 constant numbers, not general constants.
14546 (rs6000_expand_vector_init): Ditto.
14548 2014-07-23 Nathan Sidwell <nathan@acm.org>
14550 * gcov-tool.c (gcov_list): Declare here.
14551 (set_gcov_list): Remove.
14552 (gcov_output_files): Set gcov_list directly.
14554 2014-07-23 Host Schirmeier <horst@schirmeier.com>
14556 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
14558 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14560 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
14561 callee-saved registers are available for padding purpose
14562 and r3 is not mandatory, then prefer use those callee-saved
14565 2014-07-23 Richard Biener <rguenther@suse.de>
14567 * params.def (PARAM_MAX_COMBINE_INSNS): New.
14568 * combine.c: Include statistics.h and params.h.
14569 (combine_instructions): Guard three and four insn combines
14570 with max-combine-insns value. Record statistics for combines
14572 * doc/invoke.texi (max-combine-insns): Document new param.
14574 2014-07-23 Roman Gareev <gareevroman@gmail.com>
14576 * graphite-isl-ast-to-gimple.c:
14577 (translate_isl_ast_node_block): New function.
14578 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
14580 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
14581 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
14583 2014-07-23 Roman Gareev <gareevroman@gmail.com>
14585 * graphite-isl-ast-to-gimple.c:
14586 (get_max_schedule_dimensions): New function.
14587 (extend_schedule): Likewise.
14588 (generate_isl_schedule): Add calling of extend_schedule and
14589 get_max_schedule_dimensions.
14591 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14593 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
14594 (case UNSPEC): Handle UNSPEC_RBIT.
14596 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14598 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
14599 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
14601 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14603 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
14605 2014-07-22 Roman Gareev <gareevroman@gmail.com>
14607 * graphite-isl-ast-to-gimple.c:
14608 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
14609 (ivs_params_clear):
14610 (build_iv_mapping): New function.
14611 (translate_isl_ast_node_user): Likewise.
14612 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
14614 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
14615 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
14616 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
14618 2014-07-21 Bin Cheng <bin.cheng@arm.com>
14621 * config/arm/arm.md (setmem): New pattern.
14622 * config/arm/arm-protos.h (struct tune_params): New fields.
14623 (arm_gen_setmem): New prototype.
14624 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
14625 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
14626 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
14627 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
14628 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
14629 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
14630 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
14631 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
14632 (arm_const_inline_cost): New function.
14633 (arm_block_set_max_insns): New function.
14634 (arm_block_set_non_vect_profit_p): New function.
14635 (arm_block_set_vect_profit_p): New function.
14636 (arm_block_set_unaligned_vect): New function.
14637 (arm_block_set_aligned_vect): New function.
14638 (arm_block_set_unaligned_non_vect): New function.
14639 (arm_block_set_aligned_non_vect): New function.
14640 (arm_block_set_vect, arm_gen_setmem): New functions.
14642 2014-07-21 Bin Cheng <bin.cheng@arm.com>
14644 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
14646 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
14649 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
14650 out of #ifdef __OPTIMIZE__.
14652 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
14654 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
14655 different trapping status if -fnon-call-exceptions is enabled.
14657 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
14659 * expr.c (store_field): Handle VOIDmode for calls that return values
14660 in multiple locations.
14662 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14664 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
14665 (altivec_vsldoi_<mode>): Likewise.
14667 2014-07-20 Roman Gareev <gareevroman@gmail.com>
14669 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
14670 to the number of characters in the line.
14672 2014-07-20 Roman Gareev <gareevroman@gmail.com>
14674 * graphite-isl-ast-to-gimple.c: Add using of
14675 build_nonstandard_integer_type instead of int128_integer_type_node.
14677 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
14679 * toplev.c (output_stack_usage): Adjust the location of the warning.
14681 2014-07-19 Daniel Cederman <cederman@gaisler.com>
14683 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
14684 (*membar_storeload): Disable for LEON3.
14686 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14688 PR rtl-optimization/61461
14689 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
14691 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
14694 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
14695 Fix instruction constraint.
14696 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
14698 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
14700 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
14702 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
14704 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
14705 GNU coding standards.
14706 (nds32_register_move_cost): Likewise.
14707 (nds32_memory_move_cost): Likewise.
14708 (nds32_address_cost): Likewise.
14710 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14712 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
14714 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
14716 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
14717 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
14718 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
14719 (HAVE_sync_compare_and_swapqi): Define.
14720 (HAVE_sync_compare_and_swaphi): Likewise.
14721 (HAVE_sync_compare_and_swapsi): Likewise.
14723 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
14725 * config/mips/p5600.md: Add missing cpu tests.
14727 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14729 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
14730 (vmla_f64): Likewise.
14731 (vfms_f64): Likewise.
14732 (vmls_f64): Likewise.
14734 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14736 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
14737 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
14739 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14741 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
14742 (vmlal_high_lane_s32): Likewise.
14743 (vmlal_high_lane_u16): Likewise.
14744 (vmlal_high_lane_u32): Likewise.
14745 (vmlsl_high_lane_s16): Likewise.
14746 (vmlsl_high_lane_s32): Likewise.
14747 (vmlsl_high_lane_u16): Likewise.
14748 (vmlsl_high_lane_u32): Likewise.
14750 2014-07-17 Terry Guo <terry.guo@arm.com>
14752 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
14753 (alus_reg): Renamed to alus_sreg.
14754 * config/arm/arm-fixed.md: Change type of non-dsp instructions
14755 from alu_reg to alu_sreg. Change type of dsp instructions from
14756 alu_reg to alu_dsp_reg.
14757 * config/arm/thumb1.md: Likewise.
14758 * config/arm/thumb2.md: Likewise.
14759 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
14760 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
14761 with alu_sreg and alus_sreg.
14762 * config/arm/arm1026ejs.md (alu_op): Likewise.
14763 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
14764 * config/arm/arm926ejs.md (9_alu_op): Likewise.
14765 * config/arm/fa526.md (526_alu_op): Likewise.
14766 * config/arm/fa606te.md (606te_alu_op): Likewise.
14767 * config/arm/fa626te.md (626te_alu_op): Likewise.
14768 * config/arm/fa726te.md (726te_alu_op): Likewise.
14769 * config/arm/fmp626.md (mp626_alu_op): Likewise.
14770 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
14771 alu_sreg, alu_dsp_reg and alus_sreg.
14772 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
14773 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
14774 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
14775 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
14776 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
14777 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
14778 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
14779 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
14780 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
14781 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
14782 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
14783 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
14784 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
14785 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
14786 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
14787 alus_reg to alus_sreg.
14789 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
14791 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
14794 2014-07-17 Richard Biener <rguenther@suse.de>
14796 PR rtl-optimization/61801
14797 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
14798 don't set reg_pending_barrier if it appears in a debug-insn.
14800 2014-07-16 DJ Delorie <dj@redhat.com>
14802 * config/rx/rx.c (rx_option_override): Fix alignment values.
14803 (rx_align_for_label): Likewise.
14805 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
14808 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
14809 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
14810 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
14812 (cris_print_index, cris_print_operand, cris_constant_index_p)
14813 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
14814 (cris_address_cost): Ditto last CONSTANT_P.
14815 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
14816 callers changed. Yield cris_offsettable_symbol for non-PIC
14817 constant symbolic expressions including labels. Yield cris_unspec
14819 (cris_expand_pic_call_address): New parameter MARKERP. Set its
14820 target to pic_offset_table_rtx for calls that will likely go
14821 through PLT, const0_rtx when they can't. All callers changed.
14822 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
14823 symbolic expressions to be PICified. Remove second, redundant,
14824 assert on can_create_pseudo_p returning non-zero. Use
14825 replace_equiv_address_nv, not replace_equiv_address, for final
14827 * config/cris/cris.md ("movsi"): Move variable t to pattern
14828 toplevel. Adjust assert for new cris_symbol_type member. Use
14829 CONSTANT_P instead of CONSTANT_ADDRESS_P.
14830 ("*movsi_internal") <case 9>: Make check for valid unspec operands
14832 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
14833 ("call", "call_value"): Use second incoming operand as a marker
14834 for pic-offset-table-register being used.
14835 ("*expanded_call_non_v32", "*expanded_call_v32")
14836 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
14837 second incoming operand to CALL, match cris_call_type_marker.
14838 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
14839 ("*expanded_call_side"): Ditto. Fix typo in comment.
14840 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
14842 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
14843 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
14844 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
14845 users changed. Add members cris_offsettable_symbol and cris_unspec.
14846 (cris_symbol_type): Rename from cris_pic_symbol_type.
14847 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
14849 * config/cris/cris-protos.h (cris_symbol_type_of,
14850 cris_expand_pic_call_address): Adjust prototypes.
14851 (cris_legitimate_constant_p): New prototype.
14853 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
14854 an existing tmake_file. Don't add t-slibgcc and t-linux.
14856 2014-07-17 Jason Merrill <jason@redhat.com>
14859 * symtab.c (symtab_remove_from_same_comdat_group): Also
14860 set_comdat_group to NULL_TREE.
14861 (verify_symtab): Fix diagnostic.
14863 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
14866 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
14868 2014-07-16 Dodji Seketeli <dodji@redhat.com>
14870 Support location tracking for built-in macro tokens
14871 * input.h (is_location_from_builtin_token): New function declaration.
14872 * input.c (is_location_from_builtin_token): New function definition.
14873 * toplev.c (general_init): Tell libcpp what the pre-defined
14874 spelling location for built-in tokens is.
14876 2014-07-16 Jakub Jelinek <jakub@redhat.com>
14878 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
14879 on the FUNCTION_DECL.
14881 2014-07-16 Richard Biener <rguenther@suse.de>
14884 * doc/extend.texi (always_inline): Clarify.
14886 2014-07-15 Eric Christopher <echristo@gmail.com>
14888 * doc/invoke.texi (Link Options): Document -z option.
14890 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
14892 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
14893 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
14895 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
14897 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
14899 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
14901 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
14902 varpool_assemble_decl.
14903 * varpool.c (varpool_assemble_decl): Assert that node->definition is
14906 2014-07-15 Michael Matz <matz@suse.de>
14908 PR rtl-optimization/61772
14909 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
14911 2014-07-15 Richard Biener <rguenther@suse.de>
14913 * opts.c (default_options_table): Disable bit-ccp at -Og.
14915 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
14917 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
14919 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
14921 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
14922 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
14923 call langhook for unknown declaration.
14924 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
14925 * tree.h (DECL_ARGUMENTS): Update.
14926 * print-tree.c (print_node): Update.
14927 * tree-core.h (tree_decl_non_common): Remove arguments.
14928 (tree_function_decl): Add arguments.
14930 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
14932 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
14934 2014-07-14 Richard Biener <rguenther@suse.de>
14936 PR tree-optimization/61779
14937 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
14938 simplifying a condition.
14940 2014-07-14 Richard Biener <rguenther@suse.de>
14942 * builtins.c (c_strlen): Make only_value == 2 really only
14943 affect warning generation.
14945 2014-07-14 Richard Biener <rguenther@suse.de>
14947 PR tree-optimization/61757
14948 PR tree-optimization/61783
14949 PR tree-optimization/61787
14950 * tree-ssa-dom.c (record_equality): Revert canonicalization
14951 change and add comment.
14952 (propagate_rhs_into_lhs): Revert previous fix, removing
14953 loop depth restriction again.
14955 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14957 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
14958 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
14959 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
14960 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
14961 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
14962 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
14963 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
14965 2014-07-14 Richard Biener <rguenther@suse.de>
14967 * cgraph.h (decl_in_symtab_p): Make inline.
14969 2014-07-14 Jakub Jelinek <jakub@redhat.com>
14971 PR middle-end/61294
14972 * doc/invoke.texi (-Wmemset-transposed-args): Document.
14975 * config/i386/i386.c (classify_argument): Don't merge classes above
14978 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
14980 * cgraph.h (symtab_node): Add nonzero_address.
14981 (decl_in_symtab_p): Break out from ...
14982 (symtab_get_node): ... here.
14983 * fold-const.c: Include cgraph.h
14984 (tree_single_nonzero_warnv_p): Use symtab to determine
14985 if symbol is non-zero.
14986 * symtab.c (symtab_node::nonzero_address): New method.
14988 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
14990 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
14991 forgotten in previous commit.
14993 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
14995 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
14997 * ipa-devirt.c: Include stor-layout.h and intl.h
14998 (odr_subtypes_equivalent_p): New function.
14999 (warn_odr): New function.
15000 (warn_type_mismatch): New function.
15001 (odr_types_equivalent_p): New function.
15002 (add_type_duplicate): Use it.
15003 * common.opt (Wodr): New flag.
15004 * doc/invoke.texi (Wodr): Document new warning.
15006 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
15008 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
15009 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
15010 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
15011 (varpool_get_constructor): Push CTORS_IN timevar.
15012 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
15014 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
15016 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
15017 Remove VOID_FTYPE_PUSHORT.
15018 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
15019 Change code to USHORT_FTYPE_VOID.
15020 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
15021 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
15022 (ix86_atomic_assign_expand_fenv): Update for
15023 __builtin_ia32_fnstsw changes.
15024 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
15025 (fnstsw): Change operand 0 to nonimmediate operand.
15027 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
15029 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
15030 (varpool_get_constructor): New function.
15031 (varpool_ctor_useable_for_folding_p): Break out from ...
15032 (ctor_for_folding): ... here; use varpool_get_constructor.
15033 (varpool_assemble_decl): Likewise.
15034 * lto-streamer.h (struct output_block): Turn cgraph_node
15036 (lto_input_variable_constructor): Declare.
15037 * ipa-visibility.c (function_and_variable_visibility): Use
15038 varpool_get_constructor.
15039 * cgraph.h (varpool_get_constructor): Declare.
15040 (varpool_ctor_useable_for_folding_p): New function.
15041 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
15042 parameter; return error_mark_node for non-trivial constructors.
15043 (lto_write_tree_1, DFS_write_tree): Update use of
15044 get_symbol_initial_value.
15045 (output_function): Update initialization of symbol.
15046 (output_constructor): New function.
15047 (copy_function): Rename to ..
15048 (copy_function_or_variable): ... this one; handle vars too.
15049 (lto_output): Output variable sections.
15050 * lto-streamer-in.c (input_constructor): New function.
15051 (lto_read_body): Rename from ...
15052 (lto_read_body_or_constructor): ... this one; handle vars too.
15053 (lto_input_variable_constructor): New function.
15054 * ipa-prop.c (ipa_prop_write_jump_functions,
15055 ipa_prop_write_all_agg_replacement): Update.
15056 * lto-cgraph.c (compute_ltrans_boundary): Use it.
15057 (output_cgraph_opt_summary): Set symbol to NULL.
15059 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
15061 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
15062 non-polymorphic types.
15063 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
15064 * ipa-devirt.c (types_same_for_odr): Do not explode when one
15065 of types is not polymorphic.
15067 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
15069 * lra-constraints.c (remove_inheritance_pseudos): Process
15070 destination pseudo too.
15072 2014-07-11 Rong Xu <xur@google.com>
15074 * gcov-tool.c (gcov_output_files): Fix build error introduced in
15077 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15079 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
15080 * config/avr/avr-devices.c (AVR_MCU): Same.
15081 (avr_mcu_types): add text start value to end of device list.
15082 * config/avr/avr-mcus.def: Add text section start for all devices.
15083 (ata5782): Add new avr5 device.
15085 * config/avr/avr-tables.opt: Regenerate.
15086 * config/avr/avr.h: Add declaration for text section start handler.
15087 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
15089 (LINK_SPEC): Include text section start handler to linker spec.
15090 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
15091 pass -Ttext option to linker if the text section start for the device
15093 * config/avr/t-multilib: Regenerate.
15094 * doc/avr-mmcu.texi: Regenerate.
15096 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
15098 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
15099 * config/rs6000/aix52.h (LINK_SPEC): Same.
15100 * config/rs6000/aix53.h (LINK_SPEC): Same.
15101 * config/rs6000/aix61.h (LINK_SPEC): Same.
15102 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
15104 2014-07-11 Roman Gareev <gareevroman@gmail.com>
15106 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
15107 (graphite_verify): New function.
15108 (ivs_params_clear): New function.
15109 (gcc_expression_from_isl_ast_expr_id): New function.
15110 (gcc_expression_from_isl_expr_int): New function.
15111 (binary_op_to_tree): New function.
15112 (ternary_op_to_tree): New function.
15113 (unary_op_to_tree): New function.
15114 (nary_op_to_tree): New function.
15115 (gcc_expression_from_isl_expr_op): New function.
15116 (gcc_expression_from_isl_expression): New function.
15117 (graphite_create_new_loop): New function.
15118 (translate_isl_ast_for_loop): New function.
15119 (get_upper_bound): New function.
15120 (graphite_create_new_loop_guard): New function.
15121 (translate_isl_ast_node_for): New function.
15122 (translate_isl_ast): New function.
15123 (add_parameters_to_ivs_params): New function.
15124 (scop_to_isl_ast): New parameter ip.
15125 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
15127 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
15129 * config/xtensa/predicates.md (call expander): Update for
15130 DECL_SECTION_NAME being string.
15132 2014-07-11 Richard Biener <rguenther@suse.de>
15134 PR middle-end/61473
15135 * builtins.c (fold_builtin_memory_op): Inline memory moves that
15136 can be implemented with a single load followed by a single store.
15137 (c_strlen): Only warn when only_value is not 2.
15139 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
15141 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
15143 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
15146 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
15147 (*movhi_bytes): Likewise.
15148 (*arm_movqi_insn): Likewise.
15150 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
15153 * config/alpha/alpha.c: Include tree-pass.h, context.h
15154 and pass_manager.h.
15155 (pass_data_handle_trap_shadows): New pass.
15156 (pass_handle_trap_shadows::gate): New pass gate function.
15157 (make_pass_handle_trap_shadows): New function.
15158 (rest_of_handle_trap_shadows): Ditto.
15160 (alpha_align_insns_1): Rename from alpha_align_insns.
15161 (pass_data_align_insns): New pass.
15162 (pass_align_insns::gate): New pass gate function.
15163 (make_pass_aling_insns): New function.
15164 (rest_of_align_insns): Ditto.
15165 (alpha_align_insns): Ditto.
15167 (alpha_option_override): Declare handle_trap_shadows info
15168 and align_insns_info. Register handle_trap_shadows and align_insns
15170 (alpha_reorg): Do not call alpha_trap_shadows and
15171 alpha_align_insn from here.
15173 (alpha_pad_function_end): Do not skip BARRIERs.
15175 2014-07-10 Rong Xu <xur@google.com>
15177 Add gcov-tool: an offline gcda profile processing tool support.
15178 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
15179 (gcov_is_error): Ditto.
15180 (gcov_read_string): Ditto.
15181 (gcov_read_sync): Ditto.
15182 * gcov-io.h: Move counter defines to gcov-counter.def.
15183 * gcov-dump.c (tag_counters): Use gcov-counter.def.
15184 * coverage.c: Ditto.
15185 * gcov-tool.c: Offline gcda profile processing tool.
15186 (unlink_gcda_file): Remove one gcda file.
15187 (unlink_profile_dir): Remove gcda files from the profile path.
15188 (gcov_output_files): Output gcda files to an output dir.
15189 (profile_merge): Merge two profiles in directory.
15190 (print_merge_usage_message): Print merge usage.
15191 (merge_usage): Print merge usage and exit.
15192 (do_merge): Driver for profile merge sub-command.
15193 (profile_rewrite): Rewrite profile.
15194 (print_rewrite_usage_message): Print rewrite usage.
15195 (rewrite_usage): Print rewrite usage and exit.
15196 (do_rewrite): Driver for profile rewrite sub-command.
15197 (print_usage): Print gcov-info usage and exit.
15198 (print_version): Print gcov-info version.
15199 (process_args): Process arguments.
15200 (main): Main routine for gcov-tool.
15201 * Makefile.in: Build and install gcov-tool.
15202 * gcov-counter.def: New file split from gcov-io.h.
15203 * doc/gcc.texi: Include gcov-tool.texi.
15204 * doc/gcov-tool.texi: Document for gcov-tool.
15206 2014-07-10 Richard Biener <rguenther@suse.de>
15208 PR tree-optimization/61757
15209 * tree-ssa-dom.c (loop_depth_of_name): Restore.
15210 (propagate_rhs_into_lhs): Revert part of last change.
15212 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
15214 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
15217 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
15219 PR middle-end/53590
15220 * function.c (allocate_struct_function): Revert r188667 change.
15222 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
15224 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
15226 * doc/install.texi: Remove links to defunct package providers for
15229 2014-07-09 Tom de Vries <tom@codesourcery.com>
15231 * final.c (get_call_fndecl): Declare.
15232 (self_recursive_call_p): New function.
15233 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
15235 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15237 * ipa-devirt.c (record_node): Walk through aliases.
15239 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15241 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
15243 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15246 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
15248 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15250 * ipa-visibility.c (function_and_variable_visibility): Remove
15251 temporary hack disabling local aliases on AIX.
15253 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15255 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
15256 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
15258 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15260 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
15261 * rs6000/rs6000.c: Inline output of .set instruction.
15262 (declare_alias_data): New struct.
15263 (rs6000_declare_alias): New function.
15264 (rs6000_xcoff_declare_function_name): Use it.
15265 (rs6000_xcoff_declare_object_name): New function.
15266 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
15267 (ASM_OUTPUT_DEF): Turn to empty definition.
15269 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
15272 * hash-table.h: use hash_table::value_type instead of
15273 Descriptor::value_type in the return types of several methods.
15275 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
15277 * tree-pass.h (pass_data): Remove has_execute member.
15278 * passes.c (execute_one_pass): Don't check pass->has_execute.
15279 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15280 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15281 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15282 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15283 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15284 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
15285 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
15286 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
15287 gimple-low.c, gimple-ssa-isolate-paths.c,
15288 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
15289 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
15290 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
15291 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
15292 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
15293 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
15294 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
15295 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
15296 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
15297 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
15298 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
15299 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
15300 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15301 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15302 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15303 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15304 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15305 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15306 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15307 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15308 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15309 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15310 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
15311 web.c: Remove initializer for pass_data::has_execute.
15313 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
15315 * graphite-htab.h: Use hash_map instead of hash_table.
15316 * graphite-clast-to-gimple.c: Adjust.
15317 * passes.c: Use hash_map instead of hash_table.
15318 * sese.c: Likewise.
15319 * sese.h: Remove now unused code.
15321 2014-07-08 Sriraman Tallam <tmsriram@google.com>
15324 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
15327 2014-07-08 Jakub Jelinek <jakub@redhat.com>
15329 PR rtl-optimization/61673
15330 * combine.c (simplify_comparison): Test just mode's sign bit
15331 in tmode rather than the sign bit and any bits above it.
15333 2014-07-08 Roman Gareev <gareevroman@gmail.com>
15335 * graphite-isl-ast-to-gimple.c (generate_isl_context):
15336 Add __isl_give to the declaration.
15337 (generate_isl_schedule): Likewise.
15338 (scop_to_isl_ast): Likewise.
15340 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15342 * config/arm/arm.c (cortexa5_extra_costs): New table.
15343 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
15345 2014-07-08 Jakub Jelinek <jakub@redhat.com>
15347 PR tree-optimization/61725
15348 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
15349 range, use range_includes_zerop_p instead of integer_zerop on
15350 vr0->min, only use log2 of max if min is not negative.
15352 2014-07-08 Richard Biener <rguenther@suse.de>
15354 * tree-ssa-dom.h (loop_depth_of_name): Remove.
15355 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
15356 restriction on loop depth difference.
15357 (record_equality): Likewise.
15358 (propagate_rhs_into_lhs): Likewise. Simplify condition.
15359 (loop_depth_of_name): Remove.
15360 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
15361 restriction on loop depth difference.
15362 (init_copy_prop): Likewise.
15364 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15366 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
15368 (walk_aliased_vdefs): Likewise.
15369 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
15370 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
15371 (detect_type_change_from_memory_writes): Check if entry was reached.
15373 2014-07-08 Richard Biener <rguenther@suse.de>
15375 PR tree-optimization/61681
15376 * tree-ssa-structalias.c (find_what_var_points_to): Expand
15377 NONLOCAL inside ESCAPED.
15379 2014-07-08 Richard Biener <rguenther@suse.de>
15381 PR tree-optimization/61680
15382 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
15383 Handle properly all read-write dependences with group accesses.
15385 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
15387 PR tree-optimization/61576
15388 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
15389 block containing reduction statement is predecessor of phi basi block.
15391 2014-07-08 Marek Polacek <polacek@redhat.com>
15394 * fold-const.c (round_up_loc): Change the parameter type.
15396 * fold-const.h (round_up_loc): Adjust declaration.
15397 * stor-layout.c (finalize_record_size): Check for too large types.
15399 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
15401 * symtab.c: Include calls.h.
15402 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
15404 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
15406 * config/rs6000/rs6000.c (output_vec_const_move): Handle
15407 little-endian code generation.
15408 * config/rs6000/spe.md (spe_evmergehi): Rename to...
15409 (vec_perm00_v2si): ... this. Handle little-endian code generation.
15410 (spe_evmergehilo): Rename to...
15411 (vec_perm01_v2si): ... this. Handle little-endian code generation.
15412 (spe_evmergelo): Rename to...
15413 (vec_perm11_v2si): ... this. Handle little-endian code generation.
15414 (spe_evmergelohi): Rename to...
15415 (vec_perm10_v2si): ... this. Handle little-endian code generation.
15416 (spe_evmergehi, spe_evmergehilo): New expanders.
15417 (spe_evmergelo, spe_evmergelohi): Likewise.
15418 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
15419 (*frob_tf_ti): Likewise.
15420 (*frob_<mode>_di_2): Likewise.
15421 (*frob_tf_di_8_2): Likewise.
15422 (*frob_di_<mode>): Likewise.
15423 (*frob_ti_tf): Likewise.
15424 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
15425 (*frob_ti_<mode>_8_2): Likewise.
15426 (*frob_ti_tf_2): Likewise.
15427 (mov_si<mode>_e500_subreg0): Rename to...
15428 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
15430 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
15431 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
15432 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
15433 the big endianness only.
15434 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
15435 (*mov_si<mode>_e500_subreg0_2): Rename to...
15436 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
15437 big big endianness only.
15438 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
15439 (*mov_si<mode>_e500_subreg4): Rename to...
15440 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
15442 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
15443 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
15444 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
15445 the big endianness only.
15446 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
15448 (*mov_si<mode>_e500_subreg4_2): Rename to...
15449 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
15451 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
15452 (*mov_sitf_e500_subreg8): Rename to...
15453 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
15455 (*mov_sitf_e500_subreg8_le): New instruction pattern.
15456 (*mov_sitf_e500_subreg8_2): Rename to...
15457 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
15459 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
15460 (*mov_sitf_e500_subreg12): Rename to...
15461 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
15463 (*mov_sitf_e500_subreg12_le): New instruction pattern.
15464 (*mov_sitf_e500_subreg12_2): Rename to...
15465 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
15467 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
15469 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
15471 * asan.c (instrument_strlen_call): Do not instrument first byte
15472 in strlen if already instrumented.
15474 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15476 * config/arm/arm.opt (mwords-little-endian): Delete.
15477 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
15478 of TARGET_LITTLE_WORDS.
15479 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
15480 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
15482 * doc/invoke.texi: Remove references to -mwords-little-endian.
15484 2014-07-07 Jakub Jelinek <jakub@redhat.com>
15486 * expmed.c (struct init_expmed_rtl): Change all fields but
15487 pow2 and cint from struct rtx_def to rtx.
15488 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
15489 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
15492 2014-07-06 Marek Polacek <polacek@redhat.com>
15495 * doc/invoke.texi: Document -Wsizeof-array-argument.
15497 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
15499 * wide-int.h (wide_int_storage): Change declaration from struct
15502 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
15504 * cgraph.c (cgraph_create_indirect_edge): Update call of
15505 get_polymorphic_call_info.
15506 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
15507 (possible_polymorphic_call_targets): Add parameter call.
15508 (decl_maybe_in_construction_p): New predicate.
15509 (get_polymorphic_call_info): Add parameter call;
15510 use decl_maybe_in_construction_p.
15511 * gimple-fold.c (fold_gimple_assign): Update use of
15512 possible_polymorphic_call_targets.
15513 (gimple_fold_call): Likewise.
15514 * ipa-prop.c: Inlcude calls.h
15515 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
15516 (param_type_may_change_p): New predicate.
15517 (detect_type_change_from_memory_writes): Break out from ...
15518 (detect_type_change): ... this one; use param_type_may_change_p.
15519 (detect_type_change_ssa): Use param_type_may_change_p.
15520 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
15522 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
15525 * config/arm/arm-protos.h (arm_legitimate_address_p,
15526 arm_is_constant_pool_ref): Add prototypes.
15527 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
15528 (arm_is_constant_pool_ref) New function.
15529 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
15530 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
15531 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
15532 operand. Remove pool_range and neg_pool_range attributes.
15533 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
15534 pool_range and neg_pool_range attributes.
15535 * config/arm/constraints.md (Uh): New constraint.
15536 (Uq): Don't allow constant pool references.
15538 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
15540 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
15541 (move_lo_quad_internal_be_<mode>): Likewise.
15542 (move_lo_quad_<mode>): Convert to define_expand.
15543 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
15544 (aarch64_simd_move_hi_quad_be_<mode>): New.
15545 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
15546 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
15547 (aarch64_combinez_be<mode>): New.
15548 (aarch64_combine<mode>): Convert to define_expand.
15549 (aarch64_combine_internal<mode>): New.
15550 (aarch64_simd_combine<mode>): Remove bogus RTL description.
15552 2014-07-04 Tom de Vries <tom@codesourcery.com>
15554 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
15555 combination of earlyclobber and read/write modifiers.
15557 2014-07-04 Tom de Vries <tom@codesourcery.com>
15559 * config/aarch64/aarch64-simd.md
15560 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
15562 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
15565 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
15567 2014-07-04 Jakub Jelinek <jakub@redhat.com>
15569 PR middle-end/61654
15570 * cgraphunit.c (expand_thunk): Call free_dominance_info.
15572 PR tree-optimization/61684
15573 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
15574 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
15576 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
15577 Kito Cheng <kito@0xlab.org>
15578 Monk Chiang <sh.chiang04@gmail.com>
15580 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
15581 (nds32_symbol_load_store_p): Move to ...
15582 (nds32_fp_as_gp_check_available): Move to ...
15583 * config/nds32/nds32-fp-as-gp.c: ... here.
15584 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
15585 extern declaration.
15587 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
15588 Kito Cheng <kito@0xlab.org>
15589 Monk Chiang <sh.chiang04@gmail.com>
15591 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
15592 (nds32_expand_store_multiple): Move to ...
15593 (nds32_expand_movmemqi): Move to ...
15594 * config/nds32/nds32-memory-manipulation.c: ... here.
15596 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
15597 Kito Cheng <kito@0xlab.org>
15598 Monk Chiang <sh.chiang04@gmail.com>
15600 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
15601 (nds32_output_casesi_pc_relative): Move to ...
15602 (nds32_output_casesi): Move to ...
15603 (nds32_mem_format): Move to ...
15604 (nds32_output_16bit_store): Move to ...
15605 (nds32_output_16bit_load): Move to ...
15606 (nds32_output_32bit_store): Move to ...
15607 (nds32_output_32bit_load): Move to ...
15608 (nds32_output_32bit_load_s): Move to ...
15609 (nds32_output_stack_push): Move to ...
15610 (nds32_output_stack_pop): Move to ...
15611 * config/nds32/nds32-md-auxiliary.c: ... here.
15613 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
15614 Ling-Hua Tseng <uranus@tinlans.org>
15616 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
15617 the purpose of this file.
15619 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
15620 Kito Cheng <kito@0xlab.org>
15621 Monk Chiang <sh.chiang04@gmail.com>
15623 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
15624 (nds32_address_cost): Move implementation to ...
15625 * config/nds32/nds32-cost.c: ... here.
15626 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
15627 (nds32_address_cost_impl): Declare.
15629 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
15630 Kito Cheng <kito@0xlab.org>
15631 Monk Chiang <sh.chiang04@gmail.com>
15633 * config/nds32/nds32.c
15634 (nds32_consecutive_registers_load_store_p): Move to ...
15635 (nds32_valid_multiple_load_store): Move to ...
15636 (nds32_valid_stack_push_pop): Move to ...
15637 (nds32_can_use_bclr_p): Move to ...
15638 (nds32_can_use_bset_p): Move to ...
15639 (nds32_can_use_btgl_p): Move to ...
15640 (nds32_can_use_bitci_p): Move to ...
15641 * config/nds32/nds32-predicates.c: ... here.
15643 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
15644 Kito Cheng <kito@0xlab.org>
15645 Monk Chiang <sh.chiang04@gmail.com>
15647 * config/nds32/nds32.c
15648 (nds32_expand_builtin_null_ftype_reg): Move to ...
15649 (nds32_expand_builtin_reg_ftype_imm): Move to ...
15650 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
15651 (nds32_init_builtins): Move implementation to ...
15652 (nds32_expand_builtin): Move implementation to ...
15653 * config/nds32/nds32-intrinsic.c: ... here.
15654 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
15655 (nds32_expand_builtin_impl): Declare.
15657 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
15658 Kito Cheng <kito@0xlab.org>
15659 Monk Chiang <sh.chiang04@gmail.com>
15661 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
15662 (nds32_emit_section_tail_template): Move to ...
15663 (nds32_emit_isr_jmptbl_section): Move to ...
15664 (nds32_emit_isr_vector_section): Move to ...
15665 (nds32_emit_isr_reset_conten): Move to ...
15666 (nds32_check_isr_attrs_conflict): Move to ...
15667 (nds32_construct_isr_vectors_information): Move to ...
15668 (nds32_asm_file_start): Move implementation to ...
15669 (nds32_asm_file_end): Move implementation to ...
15670 * config/nds32/nds32-isr.c: ... here.
15671 * config/nds32/nds32-protos.h
15672 (nds32_check_isr_attrs_conflict): Declare.
15673 (nds32_construct_isr_vectors_information): Declare.
15674 (nds32_asm_file_start_for_isr): Declare.
15675 (nds32_asm_file_end_for_isr): Declare.
15677 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
15678 Kito Cheng <kito@0xlab.org>
15679 Monk Chiang <sh.chiang04@gmail.com>
15681 * config.gcc (nds32*): Add new modules to extra_objs.
15682 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
15683 (nds32be-*-*): Likewise.
15684 * config/nds32/nds32-cost.c: New file.
15685 * config/nds32/nds32-fp-as-gp.c: New file.
15686 * config/nds32/nds32-intrinsic.c: New file.
15687 * config/nds32/nds32-isr.c: New file.
15688 * config/nds32/nds32-md-auxiliary.c: New file.
15689 * config/nds32/nds32-memory-manipulation.c: New file.
15690 * config/nds32/nds32-pipelines-auxiliary.c: New file.
15691 * config/nds32/nds32-predicates.c: New file.
15692 * config/nds32/t-nds32: New file.
15694 2014-07-03 Jakub Jelinek <jakub@redhat.com>
15696 PR tree-optimization/61682
15697 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
15698 using cases and when one of the operands is equal to 1.
15700 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
15702 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
15703 ashr<mode>3): Correct mode of operands[2].
15704 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
15705 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
15706 Correct mode of operands[2]. Fix split condition.
15708 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
15710 * arm.md (arch): Add armv6_or_vfpv3.
15711 (arch_enabled): Add test for the above.
15712 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
15714 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
15716 2014-07-03 Jakub Jelinek <jakub@redhat.com>
15718 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
15719 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
15720 HWI 1 and negate the unsigned value.
15721 * expmed.c (expand_sdiv_pow2): For modes wider than word always
15722 use AND instead of shift.
15723 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
15725 2014-07-03 Marek Polacek <polacek@redhat.com>
15727 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
15728 (-fsanitize=float-divide-by-zero): Move to the table with
15729 -fsanitize=undefined suboptions.
15730 (-fsanitize=float-cast-overflow): Likewise.
15732 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
15734 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
15735 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
15738 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15740 * loop-invariant.c (struct invariant): Add a new member: eqno;
15741 (find_identical_invariants): Update eqno;
15742 (create_new_invariant): Init eqno;
15743 (get_inv_cost): Compute comp_cost with eqno;
15745 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
15747 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
15748 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
15749 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
15750 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
15751 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
15753 2014-07-02 Christian Bruel <christian.bruel@st.com>
15757 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
15758 (make_preds_opaque): Delete.
15759 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
15760 (commit_mode_sets): New function.
15761 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
15762 Process all modes at once.
15763 * basic-block.h (pre_edge_lcm_avs): Declare.
15764 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
15765 Call clear_aux_for_edges. Fix comments.
15766 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
15767 (pre_edge_rev_lcm): Idem.
15768 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
15770 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
15771 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
15773 * config/i386/i386.c (x96_emit_mode_set): Idem.
15774 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
15775 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
15776 (fpscr_toggle) Disallow from delay slot.
15777 * target.def (emit_mode_set): Add prev_mode parameter.
15778 * doc/tm.texi: Regenerate.
15780 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15782 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
15785 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
15787 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
15788 vtable_pointer_value_to_vtable): Constify.
15789 (contains_polymorphic_type_p): Declare.
15790 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
15791 vtable_pointer_value_to_vtable): Constify.
15792 (contains_polymorphic_type_p): New predicate.
15793 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
15795 (ipa_set_ancestor_jf): Likewise.
15796 (detect_type_change): Return false in easy cases.
15797 (compute_complex_assign_jump_func): Require type to contain
15799 (compute_known_type_jump_func): Likewise.
15801 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
15803 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
15805 (type_in_anonymous_namespace_p): Constify argument.
15806 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
15807 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
15808 (main_odr_variant): New function.
15809 (hash_type_name): Make static; update assert; do not ICE on
15811 (types_same_for_odr): Bring here from tree.c; simplify and remove
15812 old structural comparing code that doesn't work for templates.
15813 (odr_hasher::equal): Update assert.
15814 (add_type_duplicate): Return true when bases should be computed;
15815 replace incomplete loader by complete; do not output duplicated
15816 warnings; do not ICE on non-records; set odr_violated flag.
15817 (get_odr_type): Be ready to replace incomplete type by complete
15818 one; work on ODR variants instead of main variants; reorder item
15819 in array so bases have still smaller indexes.
15820 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
15821 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
15823 2014-07-01 Cary Coutant <ccoutant@google.com>
15825 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
15827 (resolve_addr_in_expr): When replacing the rtx in a location list
15828 entry, get a new address table entry.
15829 (dwarf2out_finish): Call index_location_lists even if there are no
15830 addr_index_table entries yet.
15832 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
15834 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
15835 change for not being obvious.
15837 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
15839 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
15842 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15844 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
15845 (vcagt_f64): Likewise.
15846 (vcale_f64): Likewise.
15847 (vcaled_f64): Likewise.
15848 (vcales_f32): Likewise.
15849 (vcalt_f64): Likewise.
15850 (vcaltd_f64): Likewise.
15851 (vcalts_f32): Likewise.
15853 2014-07-01 Marek Polacek <polacek@redhat.com>
15855 * doc/invoke.texi: Document -Wint-conversion.
15857 2014-07-01 Marek Polacek <polacek@redhat.com>
15860 * doc/invoke.texi: Document -Wincompatible-pointer-types.
15862 2014-07-01 Martin Liska <mliska@suse.cz>
15864 IPA REF alias refactoring
15865 * cgraph.h (iterate_direct_aliases): New function.
15866 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
15867 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
15868 FOR_EACH_ALIAS added.
15869 (cgraph_for_node_and_aliases): Likewise.
15870 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
15871 * ipa-inline.c (reset_edge_caches): Likewise.
15872 (update_caller_keys): Likewise.
15873 * trans-mem.c (ipa_tm_execute): Likewise.
15874 *varpool.c (varpool_analyze_node): Likewise.
15875 (varpool_for_node_and_aliases): Likewise.
15876 * ipa-ref.h (first_alias): New function.
15877 (last_alias): Likewise.
15878 (has_aliases_p): Likewise.
15879 * ipa-ref.c (ipa_ref::remove_reference): Removal function
15880 is sensitive to IPA_REF_ALIASes.
15881 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
15882 are put at the beginning of the list.
15883 (symtab_node::iterate_direct_aliases): New function.
15885 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
15888 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
15890 (write_ts_type_common_tree_pointers): Do not stream fields not set
15891 for incomplete types; do not stream duplicated fields for variants;
15892 sanity check that variant and type match.
15893 (write_ts_type_non_common_tree_pointers): Likewise.
15894 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
15895 TYPE_SIZE whether type is complete.
15896 (lto_input_ts_type_common_tree_pointers): Do same changes as in
15897 write_ts_type_common_tree_pointers
15898 (lto_input_ts_type_non_common_tree_pointers): Likewise.
15900 2014-06-30 Joseph Myers <joseph@codesourcery.com>
15902 * var-tracking.c (add_stores): Return instead of asserting if old
15903 and new values for conditional store are the same.
15905 2014-06-30 Richard Henderson <rth@redhat.com>
15909 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
15910 the cfg if there were any changes.
15911 * passes.def: Revert move of peephole2 after reorder_blocks;
15912 move duplicate_computed_gotos before peephole2.
15914 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
15916 * except.c (emit_note_eh_region_end): New helper function.
15917 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
15918 emit EH_REGION_END note.
15919 * jump.c (cleanup_barriers): Do not split a call and its
15920 corresponding CALL_ARG_LOCATION note.
15922 2014-06-30 Jeff Law <law@redhat.com>
15924 PR tree-optimization/61607
15925 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
15926 deeper into the SSA_NAME_VALUE chain.
15928 2014-06-30 Marek Polacek <polacek@redhat.com>
15930 * convert.c (convert_to_integer): Don't instrument conversions if the
15931 function has no_sanitize_undefined attribute.
15932 * ubsan.c: Don't run the ubsan pass if the function has
15933 no_sanitize_undefined attribute.
15935 2014-06-30 Jakub Jelinek <jakub@redhat.com>
15937 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
15938 -fsanitize=undefined suboptions.
15940 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
15942 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
15943 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
15944 against bigendian and adjust indices.
15946 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
15948 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
15950 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
15953 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
15954 Add alternative; make early clobber. Adjust both split patterns
15955 to use operand 0 as the working register.
15957 2014-06-30 Jakub Jelinek <jakub@redhat.com>
15959 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
15960 as ira_object_id_map might be NULL, or 1.
15962 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15964 * loop-invariant.c (get_inv_cost): Handle register class.
15965 (gain_for_invariant): Check the register pressure of the inv
15966 and its overlapped register class, other than all.
15968 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
15970 * doc/invoke.texi (Optimize Options): Fix descriptions of
15971 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
15973 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
15975 * doc/extend.texi (Function Attributes): Update 'naked' attribute
15978 2014-06-29 Tobias Grosser <tobias@grosser.es>
15981 * graphite-isl-ast-to-gimple.c: Add missing guards.
15983 2014-06-29 Roman Gareev <gareevroman@gmail.com>
15985 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
15986 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
15987 * flag-types.h: Add new enum fgraphite_generator.
15988 * graphite-isl-ast-to-gimple.c: New.
15989 * graphite-isl-ast-to-gimple.h: New.
15990 * graphite.c (graphite_transform_loops): Add choice of Graphite
15991 code generator, which depends on flag_graphite_code_gen.
15993 2014-06-29 Roman Gareev <gareevroman@gmail.com>
15995 * graphite-dependences.c (subtract_commutative_associative_deps):
15996 Add NULL checking of the following variables: must_raw_no_source,
15997 may_raw_no_source, must_war_no_source, may_war_no_source,
15998 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
15999 must_war, may_war, must_waw, may_waw.
16001 2014-06-29 Roman Gareev <gareevroman@gmail.com>
16003 * graphite-clast-to-gimple.c: gloog is renamed to
16004 graphite_regenerate_ast_cloog. gloog_error is renamed to
16005 graphite_regenerate_error.
16006 * graphite-clast-to-gimple.h: The definition of the struct
16007 bb_pbb_def is moved to graphite-htab.h.
16008 Add inclusion of the hash-table.h.
16009 * graphite-htab.h: The declaration of the function gloog is moved
16010 to graphite-clast-to-gimple.h and renamed to
16011 graphite_regenerate_ast_cloog.
16012 * graphite.c (graphite_transform_loops): gloog is renamed
16013 to graphite_regenerate_ast_cloog.
16015 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16017 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
16019 (write_ts_type_common_tree_pointers): Do not stream fields not set
16020 for incomplete types; do not stream duplicated fields for variants;
16021 sanity check that variant and type match.
16022 (write_ts_type_non_common_tree_pointers): Likewise.
16023 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
16024 TYPE_SIZE whether type is complete.
16025 (lto_input_ts_type_common_tree_pointers): Do same changes as in
16026 write_ts_type_common_tree_pointers
16027 (lto_input_ts_type_non_common_tree_pointers): Likewise.
16029 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16031 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
16033 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16035 * tree-inline.c (remap_type_1): Do not duplicate fields
16036 that are shared in between type and its main variant.
16038 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16040 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
16042 (ipa_set_ancestor_jf) Likewise.
16043 (check_stmt_for_type_change): Check that we work on main variant.
16044 (detect_type_change): Look into main variant.
16045 (compute_known_type_jump_func): Check that main variant has BINFO.
16047 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16049 * ipa-devirt.c (set_type_binfo): New function.
16050 (add_type_duplicate): Use it.
16051 (get_odr_type): Sanity check that binfos points to main variants.
16052 (get_class_context): Be sure the context's outer_type is main variant.
16053 (contains_type_p): Walk main variant.
16054 (get_polymorphic_call_info_for_decl): Set outer_type to be
16056 (get_polymorphic_call_info): Likewise.
16057 (possible_polymorphic_call_targets): Sanity check that we operate
16060 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16062 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
16064 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16066 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
16067 accidental change due to wide-int branch merge.
16069 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16071 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
16072 compressed debug support.
16073 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
16074 * configure: Regenerate.
16075 * config.in: Regenerate.
16076 * common.opt (compressed_debug_sections): New enum.
16077 (gz, gz=): New options.
16078 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
16079 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
16080 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
16081 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
16082 LINK_COMPRESS_DEBUG_SPEC.
16083 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
16084 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
16085 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
16086 (Debugging Options): Document -gz[=type].
16088 2014-06-27 Martin Jambor <mjambor@suse.cz>
16091 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
16092 args_to_skip, use those from node instead. Copy args_to_skip and
16093 combined_args_to_skip from node to the new thunk.
16094 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
16095 (cgraph_create_virtual_clone): Moved computation of
16096 combined_args_to_skip...
16097 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
16099 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
16101 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
16102 redundant diagnostic machinary.
16104 2014-06-27 Richard Biener <rguenther@suse.de>
16106 * tree-ssa-math-opts.c (bswap_replace): Fix
16107 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
16109 2014-06-27 Martin Liska <mliska@suse.cz>
16111 * gimple.h (gimple_location_safe): New function introduced.
16112 * cgraphunit.c (walk_polymorphic_call_targets): Usage
16113 of gimple_location_safe replaces gimple_location.
16114 (gimple_fold_call): Likewise.
16115 * ipa-devirt.c (ipa_devirt): Likewise.
16116 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
16117 * ipa.c (walk_polymorphic_call_targets): Likewise.
16118 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
16120 2014-06-27 Jakub Jelinek <jakub@redhat.com>
16122 PR tree-optimization/57233
16123 PR tree-optimization/61299
16124 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
16126 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
16127 would be lowered to scalar shifts, check if corresponding
16128 shifts and vector BIT_IOR_EXPR are supported and don't lower
16129 or lower just to narrower vector type in that case.
16130 * expmed.c (expand_shift_1): Fix up handling of vector
16131 shifts and rotates.
16133 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
16136 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
16138 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
16140 * doc/invoke.texi (-fsemantic-interposition): Document.
16141 * common.opt (fsemantic-interposition): New flag.
16142 * varasm.c (decl_replaceable_p): Use it.
16144 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16147 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
16148 extraction other than index 3.
16150 2014-06-26 Teresa Johnson <tejohnson@google.com>
16152 * doc/invoke.texi: Fix typo.
16153 * dumpfile.c: Add support for documented -fdump-* options
16154 optimized/missed/note/optall.
16156 2014-06-26 Martin Jambor <mjambor@suse.cz>
16158 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
16159 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
16160 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
16161 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
16162 * opts.c (default_options_optimization): Set
16163 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
16164 * doc/invoke.texi (allow-load-data-races)
16165 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
16166 (allow-store-data-races): Document the new default.
16168 2014-06-26 Martin Jambor <mjambor@suse.cz>
16170 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
16171 renamed to ipa_impossible_devirt_target. Fix typo.
16172 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
16173 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
16174 ipa_impossible_devirt_target.
16176 2014-06-26 Richard Biener <rguenther@suse.de>
16178 PR tree-optimization/61607
16179 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
16180 explaining why we restrict copies on loop depth.
16181 * tree-ssa-dom.c (cprop_operand): Remove restriction on
16183 (record_equivalences_from_phis): Instead add it here.
16185 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
16187 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
16188 (LTO_WRAPPER_OBJS): New variable.
16189 (lto-wrapper$(exeext)): Use it.
16190 * collect2.c: Include "collect-utils.h".
16191 (verbose, debug): Remove variables.
16192 (at_file_supplied): No longer static.
16193 (tool_name): New variable.
16194 (do_wait, fork_execute, maybe_unlink): Don't declare.
16195 (tool_cleanup): No longer static.
16196 (notice): Remove function.
16197 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
16198 fork_execute calls.
16199 (collect_wait, do_wait, collect_execute): Remove functions.
16200 (maybe_unlink): No longer static.
16201 * collect2.h (verbose, debug): Don't declare.
16202 (at_file_supplied): Declare.
16203 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
16205 (collect_execute): Replace with implementation from collect2, plus a
16206 new arg use_atfile. All callers changed.
16207 (collect_wait): Replace with implementation from collect2.
16208 (maybe_unlink_file): Remove function.
16209 (fork_execute): Replace with implementation from collect2, plus a
16210 new arg use_atfile. All callers changed.
16211 (do_wait): Add call to utils_cleanup to the error path.
16212 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
16213 (tool_cleanup): Adjust declarations.
16214 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
16215 * tlink.c: Include "collect-utils.h".
16216 (tlink_execute): New arg use_atfile. All callers changed.
16217 (tlink_init, tlink_execute): Remove declarations.
16219 * collect-utils.c (save_temps): New variable.
16220 (do_wait): Use it instead of debug. Use fatal_error.
16221 * collect-utils.h (save_temps): Declare.
16222 * collect2.c (verbose): Rename from vflag. All uses changed.
16223 (tool_cleanup): New function, copied from collect_atexit.
16224 (collect_atexit, handler): Just call it.
16225 * collect2.h (verbose): Declaration renamed from vflag.
16226 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
16229 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
16230 (lto-wrapper$(exeext)): Link with collect-utils.o.
16231 * collect-utils.c: New file.
16232 * collect-utils.h: New file.
16233 * lto-wrapper.c: Include "collect-utils.h".
16234 (args_name): Delete variable.
16235 (tool_name): New variable.
16236 (tool_cleanup): New function.
16237 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
16238 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
16239 (fork_execute): Remove functions.
16241 2014-06-26 Nick Clifton <nickc@redhat.com>
16243 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
16245 * doc/extend.texi (Function Attributes): Fix typo in description
16246 of RX vector attribute.
16248 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
16250 * config.gcc (supported_defaults): Error when passing either
16251 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
16253 2014-06-26 Richard Biener <rguenther@suse.de>
16255 * tree-ssa-dom.c (cprop_operand): Remove restriction on
16256 propagating volatile pointers.
16258 2014-06-26 Richard Biener <rguenther@suse.de>
16260 PR tree-optimization/61607
16261 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
16262 loop if we redirected its latch edge.
16263 (thread_block_1): Do not cancel loops prematurely.
16265 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
16267 * toplev.c (backend_init_target): Move init_emit_regs and
16269 (backend_init) ... here; skip ira_init_once and backend_init_target.
16270 (target_reinit) ... and here; clear
16271 this_target_rtl->lang_dependent_initialized.
16272 (lang_dependent_init_target): Clear
16273 this_target_rtl->lang_dependent_initialized;
16274 break out rtl initialization to ...
16275 (initialize_rtl): ... here; call also backend_init_target
16277 * toplev.h (initialize_rtl): New function.
16278 * function.c: Include toplev.h
16279 (init_function_start): Call initialize_rtl.
16280 * rtl.h (target_rtl): Add target_specific_initialized,
16281 lang_dependent_initialized.
16283 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
16284 Jakub Jelinek <jakub@redhat.com>
16286 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
16288 2014-06-25 Tom de Vries <tom@codesourcery.com>
16290 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
16292 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
16294 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
16295 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
16296 Issue a strict overflow warning if appropriate.
16298 2014-06-25 Martin Liska <mliska@suse.cz>
16300 IPA REF refactoring
16301 * Makefile.in: Removed header file (ipa-ref-inline.h).
16302 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
16304 (cgraph_speculative_call_info): Likewise.
16305 (cgraph_for_node_thunks_and_aliases): Likewise.
16306 (cgraph_for_node_and_aliases): Likewise.
16307 (verify_cgraph_node): Likewise.
16308 * cgraph.h: Batch of IPA REF functions become member functions of
16309 symtab_node: add_reference, maybe_add_reference, clone_references,
16310 clone_referring, clone_reference, find_reference,
16311 remove_stmt_references, remove_all_references,
16312 remove_all_referring, dump_references, dump_referring,
16313 has_alias_p, iterate_reference, iterate_referring.
16314 * cgraphbuild.c (record_reference): New IPA REF function used.
16315 (record_type_list): Likewise.
16316 (record_eh_tables): Likewise.
16317 (mark_address): Likewise.
16318 (mark_load): Likewise.
16319 (mark_store): Likewise.
16320 (pass_build_cgraph_edges): Likewise.
16321 (rebuild_cgraph_edge): Likewise.
16322 (cgraph_rebuild_references): Likewise.
16323 (pass_remove_cgraph_callee_edges): Likewise.
16324 * cgraphclones.c (cgraph_clone_node): Likewise.
16325 (cgraph_create_virtual_clone): Likewise.
16326 (cgraph_materialize_clone): Likewise.
16327 (cgraph_materialize_all_clones): Likewise.
16328 * cgraphunit.c (cgraph_reset_node): Likewise.
16329 (cgraph_reset_node): Likewise.
16330 (analyze_function): Likewise.
16331 (assemble_thunks_and_aliases): Likewise.
16332 (expand_function): Likewise.
16333 * ipa-comdats.c (propagate_comdat_group): Likewise.
16334 (enqueue_references): Likewise.
16335 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
16336 (create_specialized_node): Likewise.
16337 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
16338 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
16339 * ipa-inline.c (reset_edge_caches): Likewise.
16340 (update_caller_keys): Likewise.
16341 (execute): Likewise.
16342 * ipa-prop.c (remove_described_reference): Likewise.
16343 (propagate_controlled_uses): Likewise.
16344 (ipa_edge_duplication_hook): Likewise.
16345 (ipa_modify_call_arguments): Likewise.
16346 * ipa-pure-const.c (propagate_pure_const): Likewise.
16347 * ipa-ref-inline.h: Header file removed, functions moved
16348 to symtab_node class.
16349 * ipa-ref.c (remove_reference): New class member function.
16350 (cannot_lead_to_return): New class member function.
16351 (referring_ref_list): Likewise.
16352 (referred_ref_list): Likewise.
16353 Rest of functions moved to symtab_node class.
16354 * ipa-ref.h: New member functions remove_reference,
16355 cannot_lead_to_return, referring_ref_list, referred_ref_list added
16357 ipa_ref_list class has new member functions: first_reference,
16358 first_referring, clear, nreferences.
16359 * ipa-reference.c (analyze_function): New IPA REF function used.
16360 (write_node_summary_p): Likewise.
16361 (ipa_reference_write_optimization_summary): Likewise.
16362 * ipa-split.c (split_function): Likewise.
16363 * ipa-utils.c (ipa_reverse_postorder): Likewise.
16364 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
16365 (function_and_variable_visibility): Likewise.
16366 * ipa.c (has_addr_references_p): Likewise.
16367 (process_references): Argument type changed.
16368 (symtab_remove_unreachable_nodes): New IPA REF function used.
16369 (process_references): Likewise.
16370 (set_writeonly_bit): Likewise.
16371 * lto-cgraph.c: Implementation of new symtab_node member functions
16372 that uses new IPA REF functions.
16373 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
16375 * lto-streamer-out.c (output_symbol_p): Likewise.
16376 * lto-streamer.h (referenced_from_this_partition_p): Argument type
16378 * symtab.c: Implementation of new IPA REF API.
16379 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
16380 (ipa_tm_create_version): Likewise.
16381 (ipa_tm_execute): Likewise.
16382 * tree-emutls.c (gen_emutls_addr): Likewise.
16383 * tree-inline.c (copy_bb): Likewise.
16384 (delete_unreachable_blocks_update_callgraph): Likewise.
16385 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
16386 (varpool_for_node_and_aliases): Likewise.
16388 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
16390 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
16392 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
16395 * fold-const.c (fold_checksum_tree): Use a hash_table of const
16396 tree_node * instead of tree_node *.
16398 (print_fold_checksum): Likewise.
16399 (fold_check_failed): Likewise.
16400 (debug_fold_checksum): Likewise.
16401 (fold_build1_stat_loc): Likewise.
16402 (fold_build2_stat_loc): Likewise.
16403 (fold_build3_stat_loc): Likewise.
16404 (fold_build_call_array_loc): Likewise.
16406 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
16408 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
16409 implementation with call to...
16410 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
16412 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
16415 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
16417 PR tree-optimization/57742
16418 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
16419 after replacing the statement.
16421 2014-06-25 Nick Clifton <nickc@redhat.com>
16423 * config/v850/v850.c (GHS_default_section_names): Change to const
16425 (GHS_current_section_names): Likewise.
16426 (v850_insert_attributes): Do not build strings, just assign the
16427 names directly. Change the type of 'chosen_section' to const
16429 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
16430 directly to the array entry.
16431 * config/v850/v850.h (GHS_default_section_names): Change to const
16433 (GHS_current_section_names): Likewise.
16435 2014-06-25 Jakub Jelinek <jakub@redhat.com>
16437 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
16438 (LANG_HOOKS_DECLS): Add it.
16439 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
16441 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
16442 * langhooks.h (struct lang_hooks_for_decls): Add
16443 omp_clause_linear_ctor hook.
16444 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
16445 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
16446 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
16447 combined simd loop use omp_clause_linear_ctor hook.
16449 2014-06-24 Cong Hou <congh@google.com>
16451 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
16452 pattern recognition.
16453 (type_conversion_p): PROMOTION is true if it's a type promotion
16454 conversion, and false otherwise. Return true if the given expression
16455 is a type conversion one.
16456 * tree-vectorizer.h: Adjust the number of patterns.
16457 * tree.def: Add SAD_EXPR.
16458 * optabs.def: Add sad_optab.
16459 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
16460 * expr.c (expand_expr_real_2): Likewise.
16461 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
16462 * gimple.c (get_gimple_rhs_num_ops): Likewise.
16463 * optabs.c (optab_for_tree_code): Likewise.
16464 * tree-cfg.c (estimate_operator_cost): Likewise.
16465 * tree-ssa-operands.c (get_expr_operands): Likewise.
16466 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
16467 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
16468 * doc/generic.texi: Add document for SAD_EXPR.
16469 * doc/md.texi: Add document for ssad and usad.
16471 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
16473 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
16474 qualification in cast.
16476 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
16478 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
16479 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
16480 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
16481 (tree_function_decl): ... here.
16482 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
16483 streaming of vindex to ...
16484 (write_ts_function_decl_tree_pointers): ... here.
16485 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
16486 Do not stream DECL_VINDEX.
16487 (lto_input_ts_function_decl_tree_pointers): Stream it here.
16489 2014-06-24 Catherine Moore <clm@codesourcery.com>
16490 Sandra Loosemore <sandra@codesourcery.com>
16492 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
16493 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
16494 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
16496 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
16498 * doc/invoke.texi (Warning Options): Remove duplicated
16499 -Wmaybe-uninitialized.
16501 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
16503 PR tree-optimization/57742
16504 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
16505 (handle_builtin_malloc, handle_builtin_memset): New functions.
16506 (strlen_optimize_stmt): Call them.
16507 * passes.def: Move strlen after loop+dom but before vrp.
16509 2014-06-24 Jakub Jelinek <jakub@redhat.com>
16512 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
16513 model family 6 CPU with has_longmode never use a CPU without
16516 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
16519 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
16522 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
16524 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
16525 * dominance.c (iterate_fix_dominators): Use hash_map instead of
16527 * hash-map.h: New file.
16528 * ipa-comdats.c: Use hash_map instead of pointer_map.
16530 * lto-section-out.c: Adjust.
16531 * lto-streamer.h: Replace pointer_map with hash_map.
16532 * symtab.c (verify_symtab): Likewise.
16533 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
16534 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
16535 * tree-streamer.h: Likewise.
16536 * tree-streamer.c: Adjust.
16537 * pointer-set.h: Remove pointer_map.
16539 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
16541 * hash-table.h: Add a template arg to choose between storing values
16542 and storing pointers to values, and then provide partial
16543 specializations for both.
16544 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
16545 should store, not the type values should point to.
16546 * tree-into-ssa.c (var_info_hasher): Likewise.
16547 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
16548 * tree-complex.c: Adjust.
16549 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
16550 table instead of int_tree_map *.
16551 * tree-parloops.c: Adjust.
16552 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
16553 type is being stored.
16554 * tree-vectorizer.c: Adjust.
16556 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
16558 * hash-table.h: Remove a layer of indirection from hash_table so that
16559 it contains the hash table's data instead of a pointer to the data.
16560 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
16561 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
16562 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
16563 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
16564 fold-const.c, gcse.c, ggc-common.c,
16565 gimple-ssa-strength-reduction.c, gimplify.c,
16566 graphite-clast-to-gimple.c, graphite-dependences.c,
16567 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
16568 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
16569 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
16570 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
16571 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
16572 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
16573 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
16574 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
16575 tree-ssa-live.c, tree-ssa-loop-im.c,
16576 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
16577 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
16578 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
16579 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
16580 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
16581 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
16582 vtable-verify.c, vtable-verify.h: Adjust.
16584 2014-06-24 Richard Biener <rguenther@suse.de>
16586 PR tree-optimization/61572
16587 * tree-ssa-sink.c (statement_sink_location): Do not sink
16588 loads from hard registers.
16590 2014-06-24 Jakub Jelinek <jakub@redhat.com>
16592 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
16593 not mentioned in clauses use private clause if the iterator is
16594 declared in #pragma omp for simd, and when adding lastprivate
16595 instead, add it to the outer #pragma omp for too. Diagnose
16596 if the variable is private in outer context. For simd collapse > 1
16597 loops, replace all iterators with temporaries.
16598 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
16599 same even in collapse > 1 loops.
16601 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
16602 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
16604 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
16605 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
16607 (gimplify_adjust_omp_clauses): Likewise.
16608 * omp-low.c (lower_rec_simd_input_clauses,
16609 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
16610 safelen the same as safelen(1).
16611 * tree-nested.c (convert_nonlocal_omp_clauses,
16612 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
16613 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
16614 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
16615 Fixup handling of GIMPLE_OMP_TARGET.
16616 (convert_tramp_reference_stmt, convert_gimple_call): Handle
16619 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
16621 PR tree-optimization/61554
16622 * tree-ssa-propagate.c: Include "bitmap.h".
16623 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
16624 properly update constructor/destructor.
16625 (substitute_and_fold_dom_walker::before_dom_children):
16626 Remove call to gimple_purge_dead_eh_edges, add bb->index to
16627 need_eh_cleaup instead.
16628 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
16631 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
16633 * varpool.c (dump_varpool_node): Dump used_by_single_function.
16634 * tree-pass.h (make_pass_ipa_single_use): New pass.
16635 * cgraph.h (used_by_single_function): New flag.
16636 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
16638 * passes.def (pass_ipa_single_use): Scedule.
16639 * ipa.c (BOTTOM): New macro.
16640 (meet): New function
16641 (propagate_single_user): New function.
16642 (ipa_single_use): New function.
16643 (pass_data_ipa_single_use): New pass.
16644 (pass_ipa_single_use): New pass.
16645 (pass_ipa_single_use::gate): New gate.
16646 (make_pass_ipa_single_use): New function.
16648 2014-06-23 Kai Tietz <ktietz@redhat.com>
16651 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
16652 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
16654 2014-06-23 Richard Biener <rguenther@suse.de>
16656 * tree-ssa-loop.c (gate_loop): New function.
16657 (pass_tree_loop::gate): Call it.
16658 (pass_data_tree_no_loop, pass_tree_no_loop,
16659 make_pass_tree_no_loop): New.
16660 * tree-vectorizer.c: Include tree-scalar-evolution.c
16661 (pass_slp_vectorize::execute): Initialize loops and SCEV if
16663 (pass_slp_vectorize::clone): New method.
16664 * timevar.def (TV_TREE_NOLOOP): New.
16665 * tree-pass.h (make_pass_tree_no_loop): Declare.
16666 * passes.def (pass_tree_no_loop): New pass group with
16669 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
16672 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
16673 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
16675 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
16677 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
16678 "yes" where needed.
16680 2014-06-23 Alan Modra <amodra@gmail.com>
16683 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
16684 to zero on debug statements.
16686 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
16689 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
16690 Ignore third operand if present by marking qualifier_internal.
16692 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
16694 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
16696 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
16697 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
16698 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
16699 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
16700 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
16701 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
16702 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
16703 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
16704 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
16705 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
16706 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
16707 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
16708 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
16709 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
16710 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
16711 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
16712 logic in GCC vector extensions
16714 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
16715 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
16716 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
16717 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
16718 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
16719 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
16720 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
16721 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
16722 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
16723 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
16725 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
16727 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
16730 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
16731 (vget_low_s64): Use __GET_LOW macro.
16732 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
16733 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
16734 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
16735 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
16736 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
16738 (vcombine_s64): Use GCC vector extensions; remove cast.
16739 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
16740 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
16741 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
16742 Fix type signature; remove cast.
16744 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
16747 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
16749 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
16751 (BUILTIN_VD1): New.
16752 (BUILTIN_VD_RE): Remove.
16753 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
16754 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
16755 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
16756 variant but not df.
16757 (vreinterpretv1df*, vreinterpret*v1df): New.
16758 (vreinterpretdf*, vreinterpret*df): Remove.
16759 * config/aarch64/aarch64-simd.md (aarch64_create,
16760 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
16761 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
16763 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
16764 (vcreate_f64): Remove cast, use v1df builtin.
16765 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
16766 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
16767 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
16768 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
16769 vmov_n_f64, vst1_f64): Use gcc vector extensions.
16770 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
16771 add range check using __builtin_aarch64_im_lane_boundsi.
16772 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
16773 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
16774 type signature, use gcc vector extensions.
16775 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
16776 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
16777 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
16778 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
16779 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
16780 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
16781 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
16782 vreinterpret_u64_f64): Use v1df builtin not df.
16784 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
16786 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
16789 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
16791 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
16794 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16796 * loop-invariant.c (pre_check_invariant_p): New function.
16797 (find_invariant_insn): Call pre_check_invariant_p.
16799 2014-06-22 Richard Henderson <rth@redhat.com>
16802 * compare-elim.c (struct comparison): Add eh_note.
16803 (find_comparison_dom_walker::before_dom_children): Don't eliminate
16804 a redundant comparison in a different EH region. Purge EH edges if
16807 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
16809 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
16810 (var_shift): Use it.
16811 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
16812 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
16813 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
16814 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
16815 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
16816 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
16817 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
16818 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
16819 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
16820 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
16821 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
16822 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
16823 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
16824 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
16825 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
16826 *rotldi3_internal15be): Use the new attribute. Merge register and
16827 integer alternatives.
16829 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
16831 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
16832 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
16833 split, *ashrdi3_internal3 and split): Delete, merge into...
16834 (ashr<mode>3): New expander.
16835 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
16836 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
16838 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
16840 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
16841 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
16842 *rotldi3_internal3 and split): Delete, merge into...
16843 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
16844 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
16845 Use "rotlw" extended mnemonic.
16847 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
16849 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
16850 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
16851 and split, *ashldi3_internal3 and split): Delete, merge into...
16852 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
16853 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
16855 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
16857 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
16858 (lshrsi3, two anonymous define_insns and define_splits,
16859 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
16860 *lshrdi3_internal3 and split): Delete, merge into...
16861 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
16862 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
16864 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
16866 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
16867 Remove "O" alternative.
16869 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
16871 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
16872 (mips_move_from_gpr_cost): Likewise.
16873 (mips_register_move_cost): Update accordingly.
16874 (mips_secondary_reload_class): Remove name of in_p.
16876 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
16879 * config/i386/i386.md (x86_64_shrd, x86_shrd,
16880 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
16882 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16884 * config/nios2/nios2.c: Include "builtins.h".
16886 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
16888 * cgraph.h (tls_model_names): New variable.
16889 * print-tree.c (print_node): Simplify.
16890 * varpool.c (tls_model_names): New variable.
16891 (dump_varpool_node): Output tls model.
16893 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
16895 * ipa-visibility.c (function_and_variable_visibility): Disable
16896 temporarily local aliases for some targets.
16898 2014-06-20 Marek Polacek <polacek@redhat.com>
16900 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
16901 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
16902 into SANITIZE_UNDEFINED.
16903 * doc/invoke.texi: Describe -fsanitize=bounds.
16904 * gimplify.c (gimplify_call_expr): Add gimplification of internal
16905 functions created in the FEs.
16906 * internal-fn.c: Move "internal-fn.h" after "tree.h".
16907 (expand_UBSAN_BOUNDS): New function.
16908 * internal-fn.def (UBSAN_BOUNDS): New internal function.
16909 * internal-fn.h: Don't define internal functions here.
16910 * opts.c (common_handle_option): Add -fsanitize=bounds.
16911 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
16912 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
16913 * tree-core.h: Define internal functions here.
16914 (struct tree_base): Add ifn field.
16915 * tree-pretty-print.c: Include "internal-fn.h".
16916 (dump_generic_node): Handle functions without CALL_EXPR_FN.
16917 * tree.c (get_callee_fndecl): Likewise.
16918 (build_call_expr_internal_loc): New function.
16919 * tree.def (CALL_EXPR): Update description.
16920 * tree.h (CALL_EXPR_IFN): Define.
16921 (build_call_expr_internal_loc): Declare.
16922 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
16924 (ubsan_type_descriptor): Change bool parameter to enum
16925 ubsan_print_style. Adjust the code. Add handling of
16927 (ubsan_expand_bounds_ifn): New function.
16928 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
16929 (ubsan_build_overflow_builtin): Likewise.
16930 (instrument_bool_enum_load): Likewise.
16931 (ubsan_instrument_float_cast): Likewise.
16932 * ubsan.h (enum ubsan_print_style): New enum.
16933 (ubsan_expand_bounds_ifn): Declare.
16934 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
16936 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
16938 * config/rs6000/rs6000.md: Append `DONE' to preparation
16939 statements of `bswap' pattern splitters.
16941 2014-06-20 Tom de Vries <tom@codesourcery.com>
16943 * target.def (call_fusage_contains_non_callee_clobbers): Update
16945 * doc/tm.texi: Regenerate.
16947 2014-06-20 Yury Gribov <y.gribov@samsung.com>
16948 Max Ostapenko <m.ostapenko@partner.samsung.com>
16951 * asan.c (instrument_strlen_call): Fixed instrumentation of
16954 2014-06-20 Martin Jambor <mjambor@suse.cz>
16957 * ipa-prop.c (impossible_devirt_target): New function.
16958 (try_make_edge_direct_virtual_call): Use it, also instead of
16961 2014-06-20 Yury Gribov <y.gribov@samsung.com>
16962 Max Ostapenko <m.ostapenko@partner.samsung.com>
16965 * asan.c (build_check_stmt): Add condition.
16967 2014-06-20 Martin Jambor <mjambor@suse.cz>
16970 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
16973 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16975 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
16977 (VCONQ): Make comment more helpful.
16979 * config/aarch64/aarch64-simd.md
16980 (aarch64_sqdmulh_lane<mode>):
16981 Use VCOND for operands 2. Update lane checking and flipping logic.
16982 (aarch64_sqrdmulh_lane<mode>): Likewise.
16983 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
16984 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
16985 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
16986 attribute of operand 3 to VCOND.
16987 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
16988 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
16989 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
16990 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
16991 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
16992 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
16994 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
16995 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
16996 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
16997 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
16998 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
16999 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
17000 operand to VCOND. Update lane flipping and bounds checking logic.
17001 (aarch64_sqdmlal2_lane<mode>): Likewise.
17002 (aarch64_sqdmlsl_lane<mode>): Likewise.
17003 (aarch64_sqdmull_lane<mode>): Likewise.
17004 (aarch64_sqdmull2_lane<mode>): Likewise.
17005 (aarch64_sqdmlal_laneq<mode>):
17006 Replace VCON usage with VCONQ.
17007 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
17008 (aarch64_sqdmlal2_laneq<mode>): Emit
17009 aarch64_sqdmlal2_laneq<mode>_internal insn.
17010 Replace VCON with VCONQ.
17011 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
17012 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
17013 (aarch64_sqdmull_laneq<mode>): Emit
17014 aarch64_sqdmull_laneq<mode>_internal insn.
17015 Replace VCON with VCONQ.
17016 (aarch64_sqdmull2_laneq<mode>): Emit
17017 aarch64_sqdmull2_laneq<mode>_internal insn.
17018 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
17019 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
17020 of 3rd argument to int16x4_t.
17021 (vqdmlalh_lane_s16): Likewise.
17022 (vqdmlslh_lane_s16): Likewise.
17023 (vqdmull_high_lane_s16): Likewise.
17024 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
17025 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
17026 (vqdmlsl_lane_s16): Likewise.
17027 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
17028 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
17029 (vqdmlals_lane_s32): Likewise.
17030 (vqdmlsls_lane_s32): Likewise.
17031 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
17032 (vqdmulls_lane_s32): Likewise.
17033 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
17034 (vqdmlsl_lane_s32): Likewise.
17035 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
17036 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
17037 (vqrdmulhh_lane_s16): Likewise.
17038 (vqdmlsl_high_lane_s16): Likewise.
17039 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
17040 (vqdmlsl_high_lane_s32): Likewise.
17041 (vqrdmulhs_lane_s32): Likewise.
17043 2014-06-20 Tom de Vries <tom@codesourcery.com>
17045 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
17046 get_call_reg_set_usage.
17048 2014-06-20 Tom de Vries <tom@codesourcery.com>
17050 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
17051 it contains all call_used_regs.
17053 2014-06-20 Tom de Vries <tom@codesourcery.com>
17055 * final.c (collect_fn_hard_reg_usage): Add and use variable
17056 function_used_regs.
17058 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
17060 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
17061 (set_init_priority, get_init_priority, set_fini_priority,
17062 get_fini_priority): New methods.
17063 * tree.c (init_priority_for_decl): Remove.
17064 (init_ttree): Do not initialize init priority.
17065 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
17066 (decl_priority_info): Remove.
17067 (decl_init_priority_insert): Rewrite.
17068 (decl_fini_priority_insert): Rewrite.
17069 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
17070 tree_priority_map_marked_p): Remove.
17071 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
17072 * lto-streamer-out.c (hash_tree): Do not hash priorities.
17073 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
17074 not output priorities.
17075 (pack_ts_function_decl_value_fields): Likewise.
17076 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
17077 not input priorities.
17078 (unpack_ts_function_decl_value_fields): Likewise.
17079 * symtab.c (symbol_priority_map): Declare.
17080 (init_priority_hash): Declare.
17081 (symtab_unregister_node): Unregister from priority hash, too.
17082 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
17084 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
17085 (symbol_priority_info): New function.
17086 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
17088 * tree-core.h (tree_priority_map): Remove.
17090 2014-06-20 Jakub Jelinek <jakub@redhat.com>
17092 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
17093 0xff to uint64_t before shifting it up.
17095 2014-06-20 Julian Brown <julian@codesourcery.com>
17096 Chung-Lin Tang <cltang@codesourcery.com>
17098 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
17099 TARGET_THUMB1_ONLY. Add comments.
17101 2014-06-19 Tom de Vries <tom@codesourcery.com>
17103 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
17104 return type to void.
17105 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
17107 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17109 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
17110 as "move", from depends_on.
17112 2014-06-19 Terry Guo <terry.guo@arm.com>
17114 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
17117 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
17119 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
17121 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
17123 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
17126 * config/sh/sh.c (prepare_move_operands): Don't process TLS
17127 addresses here if reload in progress or completed.
17129 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
17131 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
17132 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
17133 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
17134 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
17135 (mips_register_priority): New function that implements the target
17136 hook TARGET_REGISTER_PRIORITY.
17137 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
17138 (mips_lra_p): Likewise for TARGET_LRA_P.
17139 (TARGET_REGISTER_PRIORITY): Define macro.
17140 (TARGET_SPILL_CLASS): Likewise.
17141 (TARGET_LRA_P): Likewise.
17142 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
17144 (REG_CLASS_NAMES): Likewise.
17145 (REG_CLASS_CONTENTS): Likewise.
17146 (BASE_REG_CLASS): Use M16_SP_REGS.
17147 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
17148 New set attribute to enable alternatives depending on the register
17150 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
17151 (*lea64): Disable pattern for MIPS16.
17152 * config/mips/mips.opt (mlra): New option.
17154 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
17156 * lra-constraints.c (base_to_reg): New function.
17157 (process_address): Use new function.
17159 2014-06-18 Tom de Vries <tom@codesourcery.com>
17161 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
17162 * config/aarch64/aarch64.c
17163 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
17164 (aarch64_emit_call_insn): New function.
17165 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
17167 * config/aarch64/aarch64.md (define_expand "call_internal")
17168 (define_expand "call_value_internal", define_expand "sibcall_internal")
17169 (define_expand "sibcall_value_internal"): New.
17170 (define_expand "call", define_expand "call_value")
17171 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
17172 expand variant and aarch64_emit_call_insn.
17174 2014-06-18 Radovan Obradovic <robradovic@mips.com>
17175 Tom de Vries <tom@codesourcery.com>
17177 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
17178 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
17180 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
17181 clobbers to CALL_INSN_FUNCTION_USAGE.
17182 (define_expand "sibcall_internal")
17183 (define_expand "sibcall_value_internal"): New.
17184 (define_expand "call", define_expand "call_value"): Add argument to
17185 arm_emit_call_insn.
17186 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
17187 (define_expand "sibcall_value"): Use sibcall_value_internal and
17188 arm_emit_call_insn.
17190 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17192 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
17194 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17196 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
17199 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17201 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
17202 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
17203 annotations. Fix DWARF information.
17205 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17207 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
17208 __udivmoddi4, and fixups for negative operands.
17210 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17212 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
17214 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17216 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
17219 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17221 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
17224 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17226 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
17227 describing register usage on function entry and exit.
17229 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17231 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
17232 (__aeabi_ldivmod): Fix whitespace.
17234 2014-06-18 Andreas Schwab <schwab@suse.de>
17236 * doc/md.texi (Standard Names): Use @itemx for grouped items.
17237 Remove blank line after @item.
17239 2014-06-18 Richard Henderson <rth@redhat.com>
17242 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
17244 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17246 * config/arm/arm.c (neon_vector_mem_operand): Allow register
17247 POST_MODIFY for neon loads and stores.
17248 (arm_print_operand): Output post-index register for neon loads and
17251 2014-06-18 Richard Biener <rguenther@suse.de>
17253 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
17255 2014-06-18 Richard Biener <rguenther@suse.de>
17257 * tree-pass.h (make_pass_dce_loop): Remove.
17258 * passes.def: Replace pass_dce_loop with pass_dce.
17259 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
17260 changed free niter estimates and reset the scev cache.
17261 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
17262 make_pass_dce_loop): Remove.
17263 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
17264 (fini_copy_prop): Return whether something changed. Always
17265 let substitute_and_fold perform DCE and free niter estimates
17266 and reset the scev cache if so.
17267 (execute_copy_prop): If sth changed schedule cleanup-cfg.
17268 (pass_data_copy_prop): Do not unconditionally schedule
17269 cleanup-cfg or update-ssa.
17271 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
17273 PR tree-optimization/61518
17274 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
17275 reduction var is used in reduction stmt or phi-function only.
17277 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17279 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
17281 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
17283 PR tree-optimization/61517
17284 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
17285 whose rhs's first tree is the source expression instead of the
17287 (find_bswap_or_nop): Likewise.
17288 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
17289 gimple stmt whose rhs's first tree is the source. In the memory source
17290 case, move the stmt to be replaced close to one of the original load to
17291 avoid the problem of a store between the load and the stmt's original
17293 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
17296 2014-06-18 Andreas Schwab <schwab@suse.de>
17298 PR rtl-optimization/54555
17299 * postreload.c (move2add_use_add2_insn): Substitute
17300 STRICT_LOW_PART only if it is cheaper.
17302 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
17304 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
17305 Do not use unspec as call operand. Use memory_operand instead of
17306 memory_nox32_operand and add "m" operand constraint. Disable
17307 pattern for TARGET_X32.
17308 (*sibcall_pop_memory): Ditto.
17309 (*sibcall_value_memory): Ditto.
17310 (*sibcall_value_pop_memory): Ditto.
17311 (sibcall peepholes): Merge SImode and DImode patterns using
17312 W mode iterator. Use memory_operand instead of memory_nox32_operand.
17313 Disable pattern for TARGET_X32. Check if eliminated register is
17314 really dead after call insn. Generate call RTX without unspec operand.
17315 (sibcall_value peepholes): Ditto.
17316 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
17317 instead of memory_nox32_operand. Check if eliminated register is
17318 really dead after call insn. Generate call RTX without unspec operand.
17319 (sibcall_value_pop peepholes): Ditto.
17320 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
17322 2014-06-18 Terry Guo <terry.guo@arm.com>
17325 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
17328 2014-06-18 Olivier Hainque <hainque@adacore.com>
17330 * tree-core.h (tree_block): Add an "end_locus" field, allowing
17331 memorization of the end of block source location.
17332 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
17333 * gimplify.c (gimplify_bind_expr): Propagate the block start and
17334 end source location info we have on the block entry/exit code we
17337 2014-06-18 Richard Biener <rguenther@suse.de>
17339 * common.opt (fssa-phiopt): New option.
17340 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
17342 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
17343 * doc/invoke.texi (-fssa-phiopt): Document.
17345 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17347 * genattrtab.c (n_bypassed): New variable.
17348 (process_bypasses): Initialise n_bypassed.
17349 Count number of bypassed reservations.
17350 (make_automaton_attrs): Allocate space for bypassed reservations
17351 rather than number of bypasses.
17353 2014-06-18 Richard Biener <rguenther@suse.de>
17355 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
17356 we propagated anything.
17357 (substitute_and_fold_dom_walker::before_dom_children): Something
17358 changed if we propagated into PHI arguments.
17359 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
17362 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
17364 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
17366 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
17367 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
17368 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
17369 Introduces alternative way of loads group permutaions.
17370 (vect_transform_grouped_load): Try alternative way of permutations.
17372 2014-06-18 Jakub Jelinek <jakub@redhat.com>
17374 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
17375 changed in ORT_TARGET region, don't jump to do_outer.
17376 (struct gimplify_adjust_omp_clauses_data): New type.
17377 (gimplify_adjust_omp_clauses_1): Adjust for data being
17378 a struct gimplify_adjust_omp_clauses_data pointer instead
17379 of tree *. Pass pre_p as a new argument to
17380 lang_hooks.decls.omp_finish_clause hook.
17381 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
17382 splay_tree_foreach to pass both list_p and pre_p.
17383 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
17384 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
17385 gimplify_adjust_omp_clauses callers.
17386 * langhooks.c (lhd_omp_finish_clause): New function.
17387 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
17388 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
17389 * langhooks.h (struct lang_hooks_for_decls): Add a new
17390 gimple_seq * argument to omp_finish_clause hook.
17391 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
17392 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
17393 (scan_omp_parallel, lower_omp_for): When adding
17394 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
17395 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
17396 * tree-nested.c (convert_nonlocal_omp_clauses,
17397 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
17398 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
17400 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
17402 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
17403 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
17405 2014-06-17 Xinliang David Li <davidxl@google.com>
17407 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
17408 * passes.c (pass_init_dump_file): Do not set initialize
17409 flag to false unconditionally.
17411 2014-06-17 Richard Biener <rguenther@suse.de>
17413 * genopinit.c (main): Use vec<>::qsort method.
17414 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
17416 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
17418 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
17420 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
17421 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
17422 (mips_move_to_gpr_cost): Remove ST_REGS case.
17423 (mips_move_from_gpr_cost): Likewise.
17424 (mips_register_move_cost): Likewise.
17425 (mips_secondary_reload_class): Likewise.
17427 2014-06-17 Richard Biener <rguenther@suse.de>
17429 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
17430 (pass_all_optimizations): Move 3rd copy-prop pass from after
17431 fre to before ifcombine/phiopt.
17433 2014-06-17 Richard Biener <rguenther@suse.de>
17435 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
17436 and allow all blocks to be forwarders.
17438 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
17441 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
17442 variable 'size'; calculate 'size' right in the front; use
17443 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
17444 pcum->aapcs_stack_words.
17446 2014-06-17 Nick Clifton <nickc@redhat.com>
17448 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
17449 (umulhi3, mulsidi3, umulsidi3): Likewise.
17451 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
17453 PR middle-end/61508
17454 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
17455 check for section name.
17457 2014-06-17 Richard Biener <rguenther@suse.de>
17459 * tree-ssa-propagate.c: Include domwalk.h.
17460 (substitute_and_fold): Outline main worker into a domwalker ...
17461 (substitute_and_fold_dom_walker::before_dom_children): ... here.
17462 Schedule stmts we can fully propagate for removal. Remove
17464 (substitute_and_fold): Apply a dominator walk to perform
17465 substitution. Process stmts scheduled for removal here.
17467 2014-06-17 Richard Biener <rguenther@suse.de>
17469 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
17470 of PHI node moving.
17472 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
17474 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
17475 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
17476 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
17477 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
17478 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
17480 (get_fpscr) : Likewise.
17482 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
17484 PR rtl-optimization/61325
17485 * lra-constraints.c (valid_address_p): Add forward declaration.
17486 (simplify_operand_subreg): Check address validity before and after
17487 alter_reg of memory subreg.
17489 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
17491 * config/i386/i386.c (decide_alg): Correctly handle
17492 maximum size of stringop algorithm.
17494 2014-06-16 Yury Gribov <y.gribov@samsung.com>
17496 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
17498 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
17500 PR rtl-optimization/61522
17501 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
17503 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
17506 * symtab.c (symtab_node::reset_section): New method.
17507 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
17509 * cgraph.h (reset_section): Declare.
17510 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
17511 do not consider comdat locals.
17512 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
17514 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
17515 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
17516 reset sections of symbols dragged out of the comdats.
17517 (function_and_variable_visibility): Reset sections of
17520 2014-06-16 Richard Biener <rguenther@suse.de>
17522 PR tree-optimization/61482
17523 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
17524 [-INF(OVF), +INF(OVF)] range.
17526 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
17528 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
17529 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
17530 handling 32-bit multiplication.
17532 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
17534 PR middle-end/61430
17535 * lra-lives.c (process_bb_lives): Skip creating copy during
17536 insn scan when src/dest has constrained to same regno.
17538 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
17540 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
17541 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
17543 2014-06-16 Yury Gribov <y.gribov@samsung.com>
17545 * asan.c (check_func): New function.
17546 (maybe_create_ssa_name): Likewise.
17547 (build_check_stmt_with_calls): Likewise.
17548 (use_calls_p): Likewise.
17549 (report_error_func): Change interface.
17550 (build_check_stmt): Allow non-integer lengths; add support
17552 (asan_instrument): Likewise.
17553 (instrument_mem_region_access): Moved code to build_check_stmt.
17554 (instrument_derefs): Likewise.
17555 (instrument_strlen_call): Likewise.
17556 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
17557 * doc/invoke.texi: Describe new parameter.
17558 * params.def: Define new parameter.
17559 * params.h: Likewise.
17560 * sanitizer.def: Describe new builtins.
17562 2014-06-16 Richard Biener <rguenther@suse.de>
17564 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17565 Make all defs available at the end.
17566 (eliminate): If we remove a PHI node schedule cfg-cleanup.
17568 2014-06-18 Jakub Jelinek <jakub@redhat.com>
17571 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
17573 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
17576 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
17577 initialization. Replace remaining use of uid.
17579 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
17581 * c-family/c-common.c (handle_tls_model_attribute): Use
17582 set_decl_tls_model.
17583 * c-family/c-common.c (handle_tls_model_attribute): Use
17584 set_decl_tls_model.
17585 * cgraph.h (struct varpool_node): Add tls_model.
17586 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
17587 * tree.h (DECL_TLS_MODEL): Update.
17588 (DECL_THREAD_LOCAL_P): Check that variable is static.
17589 (decl_tls_model): Declare.
17590 (set_decl_tls_model): Declare.
17591 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
17592 set symbol prorperties.
17593 (get_emutls_init_templ_addr): Cleanup.
17594 (new_emutls_decl): Update.
17595 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
17596 (lto_input_varpool_node): Likewise.
17597 * lto-streamer-out.c (hash_tree): Likewise.
17598 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
17599 not stream DECL_TLS_MODEL.
17600 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
17601 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
17603 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
17605 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
17607 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
17609 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
17610 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
17612 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
17613 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
17614 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
17615 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
17616 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
17617 (df_get_artificial_defs, df_get_artificial_uses)
17618 (df_single_def, df_single_use): Update accordingly.
17619 (df_refs_chain_dump): Take the first element in a linked list as
17620 parameter, rather than a pointer to an array of pointers.
17621 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
17622 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
17623 (df_chain_create_bb_process_use): Likewise.
17624 (df_md_bb_local_compute_process_def): Likewise.
17625 * fwprop.c (process_defs, process_uses): Likewise.
17626 (register_active_defs, update_uses): Likewise.
17627 (forward_propagate_asm): Update for new df_ref linking.
17628 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
17629 (df_null_ref_rec, df_null_mw_rec): Likewise.
17630 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
17632 (df_scan_free_bb_info): Remove check for null artificial_defs.
17633 (df_install_ref_incremental): Adjust for new df_ref linking.
17634 Use a single-element insertion rather than a full sort.
17635 (df_ref_chain_delete_du_chain): Take the first element
17636 in a linked list as parameter, rather than a pointer to an array of
17638 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
17639 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
17640 (df_insn_info_delete): Remove check for null defs and call to
17641 df_scan_free_mws_vec.
17642 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
17643 null rather than df_null_*_rec.
17644 (df_insn_rescan_debug_internal): Likewise, and update null
17645 checks in the same way. Remove check for null defs.
17646 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
17647 Move a single element rather doing a full sort.
17648 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
17650 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
17651 Initialize df_ref and df_mw_hardreg lists to null rather than
17653 (df_ref_compare): Take df_refs as parameter, transferring the
17654 old interface to...
17655 (df_ref_ptr_compare): ...this new function.
17656 (df_sort_and_compress_refs): Update accordingly.
17657 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
17658 old interface to...
17659 (df_mw_ptr_compare): ...this new function.
17660 (df_sort_and_compress_mws): Update accordingly.
17661 (df_install_refs, df_install_mws): Return a linked list rather than
17662 an array of pointers.
17663 (df_refs_add_to_chains): Assert that old lists are empty rather
17665 (df_insn_refs_verify): Don't handle null defs speciailly.
17666 * web.c (union_match_dups): Update for new df_ref linking.
17668 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
17670 * df.h (df_ref_create, df_ref_remove): Delete.
17671 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
17672 (df_ref_remove): Likewise.
17674 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
17676 * df.h (df_single_def, df_single_use): New functions.
17677 * ira.c (find_moveable_pseudos): Use them.
17679 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
17681 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
17682 * df-problems.c (df_note_bb_compute): Use it.
17683 * regstat.c (regstat_bb_compute_ri): Likewise.
17685 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
17687 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
17688 * cse.c (cse_extended_basic_block): Use them.
17689 * dce.c (mark_artificial_use): Likewise.
17690 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
17691 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
17692 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
17693 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
17694 (df_simulate_initialize_backwards): Likewise.
17695 (df_simulate_finalize_backwards): Likewise.
17696 (df_simulate_initialize_forwards): Likewise.
17697 (df_md_simulate_artificial_defs_at_top): Likewise.
17698 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
17699 * regrename.c (init_rename_info): Likewise.
17700 * regstat.c (regstat_bb_compute_ri): Likewise.
17701 (regstat_bb_compute_calls_crossed): Likewise.
17703 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
17705 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
17706 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
17707 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
17708 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
17709 * combine.c (create_log_links): Likewise.
17710 * compare-elim.c (find_flags_uses_in_insn): Likewise.
17711 (try_eliminate_compare): Likewise.
17712 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
17713 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
17714 (remove_reg_equal_equiv_notes_for_defs): Likewise.
17715 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
17716 (word_dce_process_block, dce_process_block): Likewise.
17717 * ddg.c (def_has_ccmode_p): Likewise.
17718 * df-core.c (df_bb_regno_first_def_find): Likewise.
17719 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
17720 * df-problems.c (df_rd_simulate_one_insn): Likewise.
17721 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
17722 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
17723 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
17724 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
17725 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
17726 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
17727 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
17728 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
17729 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
17730 * fwprop.c (local_ref_killed_between_p): Likewise.
17731 (all_uses_available_at, free_load_extend): Likewise.
17732 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
17733 * hw-doloop.c (scan_loop): Likewise.
17734 * ifcvt.c (dead_or_predicable): Likewise.
17735 * init-regs.c (initialize_uninitialized_regs): Likewise.
17736 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
17737 (process_bb_node_lives): Likewise.
17738 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
17739 (find_moveable_pseudos): Likewise.
17740 * loop-invariant.c (check_dependencies, record_uses): Likewise.
17741 * recog.c (peep2_find_free_register): Likewise.
17742 * ree.c (get_defs): Likewise.
17743 * regstat.c (regstat_bb_compute_ri): Likewise.
17744 (regstat_bb_compute_calls_crossed): Likewise.
17745 * sched-deps.c (find_inc, find_mem): Likewise.
17746 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
17747 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
17748 * shrink-wrap.c (requires_stack_frame_p): Likewise.
17749 (prepare_shrink_wrap): Likewise.
17750 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
17751 * web.c (union_defs, pass_web::execute): Likewise.
17752 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
17753 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
17755 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
17757 * lra-assign.c (assign_by_spills): Add code to assign vector regs
17758 to inheritance pseudos.
17759 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
17761 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
17764 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
17765 (BU_MISC_2): Rename to ...
17766 (BU_LDBL128_2): ... this.
17767 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
17768 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
17769 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
17770 RS6000_BTM_LDBL128.
17771 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
17772 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
17773 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
17774 (unpacktf_1): Likewise.
17775 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
17776 (__builtin_longdouble_dw1): Likewise.
17777 * doc/sourcebuild.texi (longdouble128): Document.
17779 2014-06-13 Jeff Law <law@redhat.com>
17781 PR rtl-optimization/61094
17782 PR rtl-optimization/61446
17783 * ree.c (combine_reaching_defs): Get the mode for the copy from
17784 the extension insn rather than the defining insn.
17786 2014-06-13 Dehao Chen <dehao@google.com>
17788 * dwarf2out.c (add_linkage_name): Emit more linkage name.
17790 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
17792 * doc/install.texi (--enable-linker-plugin-configure-flags)
17793 (--enable-linker-plugin-flags): Document new flags.
17795 2014-06-13 Martin Jambor <mjambor@suse.cz>
17798 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
17799 cache_token if returning early.
17801 2014-06-13 Nick Clifton <nickc@redhat.com>
17803 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
17804 requested alignment is active.
17805 (LABEL_ALIGN): Likewise.
17806 (LOOP_ALIGN): Likewise.
17808 2014-06-13 Richard Biener <rguenther@suse.de>
17810 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17811 Rewrite to propagate the VN result into all uses where
17812 possible and to remove stmts becoming dead because of that.
17813 (eliminate): Generalize stmt removal handling, remove in
17814 reverse dominator order to support proper debug stmt
17815 generation. Update stmts before removing stmts.
17816 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
17818 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
17820 PR tree-optimization/61375
17821 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
17822 symbolic number cannot be represented in an uint64_t.
17823 (find_bswap_or_nop_1): Likewise.
17825 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
17827 * symtab.c (symtab_node::reset_section): New method.
17828 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
17830 * cgraph.h (reset_section): Declare.
17831 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
17832 do not consider comdat locals.
17833 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
17835 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
17836 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
17837 reset sections of symbols dragged out of the comdats.
17838 (function_and_variable_visibility): Reset sections of
17841 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
17843 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
17844 to use symtab and decl_binds_to_current_def_p
17845 * tree-vectorizer.c (increase_alignment): Increase alignment
17846 of alias target, too.
17848 2014-06-12 Jakub Jelinek <jakub@redhat.com>
17850 PR middle-end/61486
17851 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
17852 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
17853 if outer combined construct is distribute.
17854 (gimplify_omp_for): For OMP_DISTRIBUTE set
17855 gimplify_omp_ctxp->distribute.
17856 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
17857 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
17858 mapping into decl map.
17860 2014-06-12 Jason Merrill <jason@redhat.com>
17862 * common.opt (fabi-version): Change default to 0.
17864 2014-06-12 Jason Merrill <jason@redhat.com>
17866 * toplev.c (process_options): Reject -fabi-version=1.
17868 2014-06-12 Jeff Law <law@redhat.com>
17870 PR tree-optimization/61009
17871 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
17872 value when we stop processing a block due to problematic PHIs.
17874 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
17876 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
17877 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
17878 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
17879 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
17880 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
17881 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
17882 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
17883 are not in the spec.
17885 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
17888 * config/aarch64/aarch64-modes.def: Add V1DFmode.
17889 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
17892 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
17894 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
17896 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
17899 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
17900 loading from address spaces.
17902 2014-06-12 Martin Liska <mliska@suse.cz>
17905 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
17906 statement is reachable.
17908 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
17910 * symtab.c (section_hash): New hash.
17911 (symtab_unregister_node): Clear section before freeing.
17912 (hash_section_hash_entry): New haser.
17913 (eq_sections): New function.
17914 (symtab_node::set_section_for_node): New method.
17915 (set_section_1): Update.
17916 (symtab_node::set_section): Take string instead of tree as parameter.
17917 (symtab_resolve_alias): Update.
17918 * cgraph.h (section_hash_entry_d): New structure.
17919 (section_hash_entry): New typedef.
17920 (cgraph_node): Change comdat_group_ to x_comdat_group,
17921 change section_ to x_section and turn into section_hash_entry;
17922 update accestors; put set_section_for_node offline.
17923 * tree.c (decl_section_name): Turn into string.
17924 (set_decl_section_name): Change parameter to be string.
17925 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
17926 * sdbout.c (sdbout_one_type): Update.
17927 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
17928 * varasm.c (IN_NAMED_SECTION, get_named_section,
17929 resolve_unique_section, hot_function_section, get_named_text_section,
17930 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
17931 make_decl_rtl, default_unique_section): Update.
17932 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
17933 (c6x_elf_unique_section): Update.
17934 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
17935 * config/pa/pa.c (pa_function_section): Update.
17936 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
17937 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
17938 * config/arc/arc.c (arc_in_small_data_p): Update.
17939 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
17940 * config/mcore/mcore.c (mcore_unique_section): Update.
17941 * config/mips/mips.c (mips16_build_function_stub): Update.
17942 (mips16_build_call_stub): Update.
17943 (mips_function_rodata_section): Update.
17944 (mips_in_small_data_p): Update.
17945 * config/score/score.c (score_in_small_data_p): Update.
17946 * config/rx/rx.c (rx_in_small_data): Update.
17947 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
17948 (rs6000_xcoff_asm_named_section): Update.
17949 (rs6000_xcoff_unique_section): Update.
17950 * config/frv/frv.c (frv_string_begins_with): Update.
17951 (frv_in_small_data_p): Update.
17952 * config/v850/v850.c (v850_encode_data_area): Update.
17953 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
17954 (bfin_handle_l1_data_attribute): Update.
17955 (bfin_handle_l2_attribute): Update.
17956 * config/mep/mep.c (mep_unique_section): Update.
17957 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
17959 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
17960 (h8300_handle_tiny_data_attribute): Update.
17961 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
17962 (m32r_in_small_data_p): Update.
17963 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
17964 * config/i386/i386.c (ix86_in_large_data_p): Update.
17965 * config/i386/winnt.c (i386_pe_unique_section): Update.
17966 * config/darwin.c (darwin_function_section): Update.
17967 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
17968 * tree-emutls.c (get_emutls_init_templ_addr): Update.
17969 (new_emutls_decl): Update.
17970 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
17971 input_varpool_node): Update.
17972 (ead_string_cst): Turn to ...
17973 (read_string): ... this one.
17974 * dwarf2out.c (secname_for_decl): Update.
17975 * asan.c (asan_protect_global): Update.
17977 2014-06-11 DJ Delorie <dj@redhat.com>
17979 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
17981 * config/rx/rx.c (rx_option_override): Likewise.
17982 (rx_align_for_label): Likewise.
17984 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
17986 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
17988 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
17991 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
17993 * common.md: New file.
17994 * doc/md.texi: Update description of generic, machine-independent
17996 * config/s390/constraints.md (e): Delete.
17997 * Makefile.in (md_file): Include common.md.
17998 * config/m32c/t-m32c (md_file): Likewise.
17999 * genpreds.c (general_mem): New array.
18000 (generic_constraint_letters): Remove constraints now defined by
18002 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
18003 Allow the first character to be '<' or '>' as well.
18004 * genoutput.c (general_mem): New array.
18005 (indep_constraints): Remove constraints now defined by common.md.
18006 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
18007 Remove special handling of 'm'.
18008 * ira-costs.c (record_reg_classes): Remove special handling of
18009 constraints now defined by common.md.
18010 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
18011 * ira-lives.c (single_reg_class): Likewise.
18012 (ira_implicitly_set_insn_hard_regs): Likewise.
18013 * lra-constraints.c (reg_class_from_constraints): Likewise.
18014 (process_alt_operands, process_address, curr_insn_transform): Likewise.
18015 * postreload.c (reload_cse_simplify_operands): Likewise.
18016 * reload.c (push_secondary_reload, scratch_reload_class)
18017 (find_reloads, alternative_allows_const_pool_ref): Likewise.
18018 * reload1.c (maybe_fix_stack_asms): Likewise.
18019 * targhooks.c (default_secondary_reload): Likewise.
18020 * stmt.c (parse_output_constraint): Likewise.
18021 * recog.c (preprocess_constraints): Likewise.
18022 (constrain_operands, peep2_find_free_register): Likewise.
18023 (asm_operand_ok): Likewise, but add a comment saying why 'o'
18024 must be handled specially.
18026 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18028 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
18029 * genpreds.c (have_const_dbl_constraints): Delete.
18030 (add_constraint): Don't set it.
18031 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
18032 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
18033 constraints using the lookup_constraint logic.
18034 * ira-lives.c (single_reg_class): Likewise.
18035 * ira.c (ira_setup_alts): Likewise.
18036 * lra-constraints.c (process_alt_operands): Likewise.
18037 * recog.c (asm_operand_ok, constrain_operands): Likewise.
18038 * reload.c (find_reloads): Likewise.
18040 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18042 * genpreds.c (const_int_start, const_int_end): New variables.
18043 (choose_enum_order): Output CONST_INT constraints before memory
18045 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
18047 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
18048 * ira.c (ira_setup_alts): Likewise.
18049 * lra-constraints.c (process_alt_operands): Likewise.
18050 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
18051 * reload.c (find_reloads): Likewise.
18053 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18055 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
18056 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
18057 * recog.c (preprocess_constraints): Update accordingly.
18059 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18061 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
18062 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
18063 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
18064 * genpreds.c (print_type_tree): New function.
18065 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
18066 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
18067 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
18068 Write out enum constraint_type and get_constraint_type.
18069 * lra-constraints.c (satisfies_memory_constraint_p): Take a
18070 constraint_num rather than a constraint string.
18071 (satisfies_address_constraint_p): Likewise.
18072 (reg_class_from_constraints): Avoid old constraint macros.
18073 (process_alt_operands, process_address_1): Likewise.
18074 (curr_insn_transform): Likewise.
18075 * ira-costs.c (record_reg_classes): Likewise.
18076 (record_operand_costs): Likewise.
18077 * ira-lives.c (single_reg_class): Likewise.
18078 (ira_implicitly_set_insn_hard_regs): Likewise.
18079 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
18080 * postreload.c (reload_cse_simplify_operands): Likewise.
18081 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
18082 (constrain_operands, peep2_find_free_register): Likewise.
18083 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
18084 (find_reloads, alternative_allows_const_pool_ref): Likewise.
18085 * reload1.c (maybe_fix_stack_asms): Likewise.
18086 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
18087 * targhooks.c (default_secondary_reload): Likewise.
18088 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
18089 to EXTRA_CONSTRAINT_STR.
18090 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
18092 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18094 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
18095 (write_constraint_satisfied_p_array): ...this new function.
18096 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
18098 (write_insn_preds_c): Update accordingly.
18100 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18102 * genpreds.c (write_lookup_constraint): Rename to...
18103 (write_lookup_constraint_1): ...this.
18104 (write_lookup_constraint_array): New function.
18105 (write_tm_preds_h): Define lookup_constraint as an inline function
18106 that uses write_lookup_constraint_array where possible.
18107 (write_insn_preds_c): Update for the changes above.
18109 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18111 * doc/md.texi (regclass_for_constraint): Rename to...
18112 (reg_class_for_constraint): ...this.
18113 * genpreds.c (num_constraints, enum_order, register_start)
18114 (register_end, satisfied_start, memory_start, memory_end)
18115 (address_start, address_end): New variables.
18116 (add_constraint): Count the number of constraints.
18117 (choose_enum_order): New function.
18118 (write_enum_constraint_num): Iterate over enum_order.
18119 (write_regclass_for_constraint): Rename to...
18120 (write_reg_class_for_constraint_1): ...this and update output
18122 (write_constraint_satisfied_p): Rename to...
18123 (write_constraint_satisfied_p_1): ...this and update output
18124 accordingly. Do nothing if all extra constraints are register
18126 (write_insn_extra_memory_constraint): Delete.
18127 (write_insn_extra_address_constraint): Delete.
18128 (write_range_function): New function.
18129 (write_tm_preds_h): Define constraint_satisfied_p and
18130 reg_class_for_constraint as inline functions that do a range check
18131 before calling the out-of-line function. Use write_range_function
18132 to implement insn_extra_{register,memory,address}_constraint,
18133 the first of which is new.
18134 (write_insn_preds_c): Update after above changes to write_* functions.
18135 (main): Call choose_enum_order.
18137 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
18139 PR tree-optimization/61306
18140 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
18141 expression instead of its size.
18142 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
18143 false to prevent optimization when the result is unpredictable due to
18144 arithmetic right shift of signed type with highest byte is set.
18145 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
18146 (init_symbolic_number): Likewise.
18147 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
18148 when the result is unpredictable due to sign extension.
18150 2014-06-11 Terry Guo <terry.guo@arm.com>
18152 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
18153 (*thumb1_addsi3): Ditto.
18154 (*thumb_subdi3): Ditto.
18155 (thumb1_subsi3_insn): Ditto.
18156 (*thumb_mulsi3): Ditto.
18157 (*thumb_mulsi3_v6): Ditto.
18158 (*thumb1_andsi3_insn): Ditto.
18159 (thumb1_bicsi3): Ditto.
18160 (*thumb1_iorsi3_insn): Ditto.
18161 (*thumb1_xorsi3_insn): Ditto.
18162 (*thumb1_ashlsi3): Ditto.
18163 (*thumb1_ashrsi3): Ditto.
18164 (*thumb1_lshrsi3): Ditto.
18165 (*thumb1_rotrsi3): Ditto.
18166 (*thumb1_negdi2): Ditto.
18167 (*thumb1_negsi2): Ditto.
18168 (*thumb1_abssi2): Ditto.
18169 (*thumb1_neg_abssi2): Ditto.
18170 (*thumb1_one_cmplsi2): Ditto.
18171 (*thumb1_zero_extendhisi2): Ditto.
18172 (*thumb1_zero_extendqisi2): Ditto.
18173 (*thumb1_zero_extendqisi2_v6): Ditto.
18174 (thumb1_extendhisi2): Ditto.
18175 (thumb1_extendqisi2): Ditto.
18176 (*thumb1_movdi_insn): Ditto.
18177 (*thumb1_movsi_insn): Ditto.
18178 (*thumb1_movhi_insn): Ditto.
18179 (thumb_movhi_clobber): Ditto.
18180 (*thumb1_movqi_insn): Ditto.
18181 (*thumb1_movhf): Ditto.
18182 (*thumb1_movsf_insn): Ditto.
18183 (*thumb_movdf_insn): Ditto.
18184 (movmem12b): Ditto.
18186 (cbranchqi4): Ditto.
18187 (cbranchsi4_insn): Ditto.
18188 (cbranchsi4_scratch): Ditto.
18189 (*negated_cbranchsi4): Ditto.
18190 (*tbit_cbranch): Ditto.
18191 (*tlobits_cbranch): Ditto.
18192 (*tstsi3_cbranch): Ditto.
18193 (*cbranchne_decr1): Ditto.
18194 (*addsi3_cbranch): Ditto.
18195 (*addsi3_cbranch_scratch): Ditto.
18196 (*thumb_cmpdi_zero): Ditto.
18197 (cstoresi_eq0_thumb1): Ditto.
18198 (cstoresi_ne0_thumb1): Ditto.
18199 (*cstoresi_eq0_thumb1_insn): Ditto.
18200 (*cstoresi_ne0_thumb1_insn): Ditto.
18201 (cstoresi_nltu_thumb1): Ditto.
18202 (cstoresi_ltu_thumb1): Ditto.
18203 (thumb1_addsi3_addgeu): Ditto.
18204 (*thumb_jump): Ditto.
18205 (*call_reg_thumb1_v5): Ditto.
18206 (*call_reg_thumb1): Ditto.
18207 (*call_value_reg_thumb1_v5): Ditto.
18208 (*call_value_reg_thumb1): Ditto.
18209 (*call_insn): Ditto.
18210 (*call_value_insn): Ditto.
18211 (thumb1_casesi_internal_pic): Ditto.
18212 (thumb1_casesi_dispatch): Ditto.
18213 (*thumb1_indirect_jump): Ditto.
18214 (prologue_thumb1_interwork): Ditto.
18215 (*epilogue_insns): Ditto.
18216 (consttable_1): Ditto.
18217 (consttable_2): Ditto.
18218 (tablejump): Ditto.
18219 (*thumb1_tablejump): Ditto.
18220 (thumb_eh_return): Ditto.
18221 (define_peephole2): Two of them are thumb1 only and got moved into
18222 new file thumb1.md.
18223 (define_split): Six of them are thumb1 only and got moved into new
18225 * config/arm/thumb1.md: New file comprised of above thumb1 only
18228 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18230 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
18231 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
18233 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
18234 (aarch64_crc_builtin_datum): New struct.
18235 (aarch64_crc_builtin_data): New.
18236 (aarch64_init_crc32_builtins): New function.
18237 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
18238 (aarch64_crc32_expand_builtin): New.
18239 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
18240 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
18241 __ARM_FEATURE_CRC32 when appropriate.
18242 (TARGET_CRC32): Define.
18243 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
18244 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
18245 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
18246 (aarch64_<crc_variant>): New pattern.
18247 * config/aarch64/arm_acle.h: New file.
18248 * config/aarch64/iterators.md (CRC): New int iterator.
18249 (crc_variant, crc_mode): New int attributes.
18250 * doc/aarch64-acle-intrinsics.texi: New file.
18251 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
18252 Include aarch64-acle-intrinsics.texi.
18254 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
18256 * tree-vect-data-refs.c (vect_grouped_store_supported): New
18257 check for stores group of length 3.
18258 (vect_permute_store_chain): New permutations for stores group of
18260 * tree-vect-stmts.c (vect_model_store_cost): Change cost
18261 of vec_perm_shuffle for the new permutations.
18263 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
18265 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
18266 table rewriting temporarily on targets not supporting ONE_ONLY.
18268 2014-06-11 Richard Biener <rguenther@suse.de>
18270 PR middle-end/61437
18272 2014-06-04 Richard Biener <rguenther@suse.de>
18274 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
18275 TREE_PUBLIC and DECL_EXTERNAL decls.
18277 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
18279 * varasm.c (set_implicit_section): New function.
18280 (resolve_unique_section): Use it to set implicit section
18282 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
18283 (default_function_section): Likewise.
18284 (decl_binds_to_current_def_p): Constify argument.
18285 * varasm.h (decl_binds_to_current_def_p): Update prototype.
18286 * asan.c (asan_protect_global): Use
18287 symtab_get_node (decl)->implicit_section.
18288 * symtab.c (dump_symtab_base): Dump implicit sections.
18289 (verify_symtab_base): Verify sanity of sectoins and comdats.
18290 (symtab_resolve_alias): Alias share the section of its target.
18291 (set_section_1): New function.
18292 (symtab_node::set_section): Move here, recurse to aliases.
18293 (verify_symtab): Check for duplicated symtab lists.
18294 * tree-core.h (implicit_section_name_p): Remove.
18295 * tree-vect-data-refs.c: Include varasm.h.
18296 (vect_can_force_dr_alignment_p): Fix conditional on when
18297 decl bints to current definition; use
18298 symtab_get_node (decl)->implicit_section.
18299 * cgraph.c (cgraph_make_node_local_1): Fix section set.
18300 * cgraph.h (struct symtab_node): Add implicit_section.
18301 (set_section): Rename to ...
18302 (set_section_for_node): ... this one.
18303 (set_section): Declare.
18304 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
18305 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
18306 input_overwrite_node, input_varpool_node): Stream implicit_section.
18307 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
18308 removal; it will fail in LTO.
18310 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18312 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
18313 Change second alternative type to f_mcr.
18314 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
18315 and 12th alternatives' types to f_mcr and f_mrc.
18316 (*movdi_aarch64): Same for 12th and 13th alternatives.
18317 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
18318 (aarch64_movtilow_tilow): Change type to fmov.
18320 2014-06-10 Jiong Wang <jiong.wang@arm.com>
18322 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
18323 (aarch64_save_or_restore_callee_save_registers): Fix layout.
18325 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18327 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
18329 (aarch64_sqrdmulh_lane<mode>): Likewise.
18330 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
18331 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
18332 (aarch64_sqdmulh_laneq<mode>): New expander.
18333 (aarch64_sqrdmulh_laneq<mode>): Likewise.
18334 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
18335 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
18336 (aarch64_sqdmulh_lane<mode>): New expander.
18337 (aarch64_sqrdmulh_lane<mode>): Likewise.
18338 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
18339 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
18340 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
18341 (aarch64_sqdmlal_laneq<mode>): Likewise.
18342 (aarch64_sqdmlsl_lane<mode>): Likewise.
18343 (aarch64_sqdmlsl_laneq<mode>): Likewise.
18344 (aarch64_sqdmlal2_lane<mode>): Likewise.
18345 (aarch64_sqdmlal2_laneq<mode>): Likewise.
18346 (aarch64_sqdmlsl2_lane<mode>): Likewise.
18347 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
18348 (aarch64_sqdmull_lane<mode>): Likewise.
18349 (aarch64_sqdmull_laneq<mode>): Likewise.
18350 (aarch64_sqdmull2_lane<mode>): Likewise.
18351 (aarch64_sqdmull2_laneq<mode>): Likewise.
18353 2014-06-10 Richard Biener <rguenther@suse.de>
18355 PR tree-optimization/61438
18356 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
18357 (eliminate_dom_walker::before_dom_children): Only try to inhibit
18358 insertion of IVs if running PRE.
18359 (eliminate): Adjust.
18360 (pass_pre::execute): Likewise.
18361 (pass_fre::execute): Likewise.
18363 2014-06-10 Richard Biener <rguenther@suse.de>
18365 PR middle-end/61456
18366 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
18367 Do not use the main variant for the type comparison.
18368 (ncr_compar): Likewise.
18369 (nonoverlapping_component_refs_p): Likewise.
18371 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
18373 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
18374 REG_CFA_RESTORE mode.
18376 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
18378 * config/i386/i386.c (expand_vec_perm_pblendv): New.
18379 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
18380 expand_vec_perm_pblendv.
18382 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18384 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
18386 Simplify description of __crc32d and __crc32cd intrinsics.
18387 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
18390 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
18393 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
18394 * config.in: Regenerate.
18395 * configure: Likewise.
18397 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
18399 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
18401 (intersect_static_var_sets): Remove.
18402 (propagate): Do not prune local statics.
18404 2014-06-10 Jakub Jelinek <jakub@redhat.com>
18407 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
18408 Set lastprivate_firstprivate even if omp_private_outer_ref
18409 langhook returns true.
18410 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
18411 langhook, call unshare_expr on new_var and call
18412 build_outer_var_ref to get the last argument.
18414 2014-06-10 Marek Polacek <polacek@redhat.com>
18417 * doc/extend.texi: Add cindex for transparent_union.
18419 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
18421 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
18422 init_symbolic_number ().
18424 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
18426 PR middle-end/61141
18427 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
18428 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
18429 (verify_rtl_sharing): Likewise.
18431 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
18434 * tree.c (build_qualified_type): Use a canonical type for
18437 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18439 * config/arm/arm-modes.def: Remove XFmode.
18441 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
18444 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
18445 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
18446 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
18447 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
18448 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
18449 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
18450 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
18451 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
18452 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
18454 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
18456 * tree-core.h (tree_decl_with_vis): Remove section_name.
18458 2014-06-09 Kito Cheng <kito@0xlab.org>
18460 * ira.c (ira): Don't call init_caller_save if LRA enabled
18461 since LRA use its own infrastructure to handle that.
18463 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
18465 * symtab.c (dump_symtab_base): Update dumping.
18466 (symtab_make_decl_local): Clear only DECL_COMDAT.
18467 * tree-vect-data-refs.c (Check that variable is static before
18468 tampering with sections.
18469 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
18470 (cgraph_create_virtual_clone): Likewise.
18471 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
18472 (decl_section_name, set_decl_section_name): New accessors.
18473 (find_decls_types_r): Do not walk section name
18474 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
18475 (decl_comdat_group, decl_comdat_group_id): Constify.
18476 (decl_section_name, set_decl_section_name): Update.
18477 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
18478 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
18479 (cgraph_make_node_local_1): Clear section and comdat group.
18480 * cgraph.h (set_comdat_group): Sanity check.
18481 (get_section, set_section): New.
18482 * ipa-comdats.c (ipa_comdats): Use get_section.
18483 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
18484 * lto-streamer-out.c: Do not follow section names.
18485 * c-family/c-common.c (handle_section_attribute): Update.
18486 * lto-cgraph.c (lto_output_node): Output section.
18487 (lto_output_varpool_node): Likewise.
18488 (read_comdat_group): Rename to ...
18489 (read_identifier): ... this one.
18490 (read_string_cst): New function.
18491 (input_node, input_varpool_node): Input section names.
18492 * tree-emutls.c (get_emutls_init_templ_addr): Update.
18493 (new_emutls_decl): Update.
18494 (secname_for_decl): Check section names only of static vars.
18495 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
18496 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
18497 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
18498 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
18499 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
18500 * config/mcore/mcore.c (mcore_unique_section): Likewise.
18501 * config/mips/mips.c (mips16_build_function_stub): Likewise.
18502 * config/v850/v850.c (v850_insert_attributes): Likewise.
18503 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
18505 (h8300_handle_tiny_data_attribute): Likewise.
18506 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
18507 (bfin_handle_l2_attribute): Likewise.
18509 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
18511 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
18512 remove static initializer.
18514 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
18516 * varasm.c (use_blocks_for_decl_p): Check symbol table
18517 instead of alias attribute.
18518 (place_block_symbol): Recurse on aliases.
18520 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
18522 * ipa-visibility.c: Include varasm.h
18523 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
18525 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
18527 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
18528 outputting aliases.
18530 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
18532 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
18533 from test_insn into GGC space escape via SET_SRC.
18535 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
18537 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
18538 call statement, if any.
18539 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
18540 statements, if any. Tidy up.
18542 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
18545 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
18546 iterators, VSX_D that handles 64-bit types, and VSX_LE that
18547 handles swapping the two 64-bit double words on little endian
18548 systems. Include V1TImode and optionally TImode in VSX_LE so that
18549 these types are properly swapped. Change all of the insns and
18550 splits that do the 64-bit swaps to use VSX_LE.
18551 (vsx_le_perm_load_<mode>): Likewise.
18552 (vsx_le_perm_store_<mode>): Likewise.
18553 (splitters for little endian memory operations): Likewise.
18554 (vsx_xxpermdi2_le_<mode>): Likewise.
18555 (vsx_lxvd2x2_le_<mode>): Likewise.
18556 (vsx_stxvd2x2_le_<mode>): Likewise.
18558 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
18561 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
18562 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
18563 and corresponding splitters. Zero extend general register
18564 or memory input operand to XMM temporary. Enable for
18565 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
18566 (floatunssi<mode>2): Update expander predicate.
18568 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
18570 PR rtl-optimization/61325
18571 * lra-constraints.c (process_address_1): Check scale equal to one
18572 to prevent transformation: base + scale * index => base + new_reg.
18574 2014-06-06 Richard Biener <rguenther@suse.de>
18576 PR tree-optimization/59299
18577 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
18579 (nearest_common_dominator_of_uses): Likewise.
18580 (statement_sink_location): Adjust. Support sinking loads.
18582 2014-06-06 Martin Jambor <mjambor@suse.cz>
18584 * ipa-prop.c (get_place_in_agg_contents_list): New function.
18585 (build_agg_jump_func_from_list): Likewise.
18586 (determine_known_aggregate_parts): Renamed to
18587 determine_locally_known_aggregate_parts. Moved some functionality
18588 to the two functions above, removed bound checks.
18590 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
18592 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
18593 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
18594 (aarch64_progress_pointer): Likewise.
18595 (aarch64_copy_one_part_and_move_pointers): Likewise.
18596 (aarch64_expand_movmen): Likewise.
18597 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
18598 * config/aarch64/aarch64.md (movmem<mode>): New.
18600 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
18602 * targhooks.c (default_add_stmt_cost): Call target specific
18603 hook instead of default one.
18605 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
18607 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
18608 endianness instead of host endianness.
18609 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
18612 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
18615 * function.c (instantiate_decls): Process the saved static chain.
18616 (expand_function_start): If not optimizing, save the static chain
18618 * tree-nested.c (convert_all_function_calls): Always create the static
18619 chain for nested functions if not optimizing.
18621 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
18623 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
18625 2014-06-06 Richard Biener <rguenther@suse.de>
18627 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
18628 (construct_init_block): Likewise.
18629 (construct_exit_block): Likewise.
18630 (pass_expand::execute): Likewise.
18631 * graphite.c (graphite_transforms): Replace check for current_loops
18632 with a check for > 1 loops.
18633 (pass_graphite_transforms::execute): Adjust.
18634 * ipa-split.c (split_function): Remove check for current_loops.
18635 * omp-low.c (expand_parallel_call): Likewise.
18636 (expand_omp_for_init_counts): Likewise.
18637 (extract_omp_for_update_vars): Likewise.
18638 (expand_omp_for_generic): Likewise.
18639 (expand_omp_sections): Likewise.
18640 (expand_omp_target): Likewise.
18641 * tracer.c (tail_duplicate): Likewise.
18642 (pass_tracer::execute): Likewise.
18643 * trans-mem.c (expand_transaction): Likewise.
18644 * tree-complex.c (expand_complex_div_wide): Likewise.
18645 * tree-eh.c (lower_resx): Likewise.
18646 (cleanup_empty_eh_merge_phis): Likewise.
18647 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
18648 current_loops with a check for > 1 loops.
18649 (pass_predcom::execute): Adjust.
18650 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
18651 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
18652 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
18653 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
18654 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
18655 * tree-switch-conversion.c (process_switch): Likewise.
18656 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
18657 * tree-vrp.c (vrp_visit_phi_node): Likewise.
18658 (execute_vrp): Likewise.
18659 * ubsan.c (ubsan_expand_null_ifn): Likewise.
18661 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
18663 * rtl.h (insn_location): Declare.
18664 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
18665 with UNKNOWN_LOCATION.
18666 * emit-rtl.c (insn_location): New function.
18667 * final.c (notice_source_line): Check that the instruction has a
18668 location before retrieving it and use insn_location.
18669 * modulo-sched.c (loop_single_full_bb_p): Likewise.
18670 * print-rtl.c (print_rtx): Likewise.
18672 2014-06-06 Richard Biener <rguenther@suse.de>
18674 * passes.def: Move 2nd VRP pass before phi-only-cprop.
18676 2014-06-06 Christian Bruel <christian.bruel@st.com>
18678 PR tree-optimization/43934
18679 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
18682 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
18684 * ira-lives.c (single_reg_class): Add missing break. Explicitly
18685 return NO_REGS for extra address and memory constraints. Handle
18686 operands that match (or are equivalent to something that matches)
18687 extra constant constraints. Ignore other non-register operands.
18689 2014-06-06 Alan Modra <amodra@gmail.com>
18692 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
18693 * doc/tm.texi: Regenerate.
18694 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
18695 Use throughout in place of REG_PARM_STACK_SPACE.
18696 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
18697 "incoming" param. Pass to rs6000_function_parms_need_stack.
18698 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
18699 prototype_p when incoming. Use function decl when incoming
18700 to handle K&R style functions.
18701 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
18702 (INCOMING_REG_PARM_STACK_SPACE): Define.
18704 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18707 * cfgexpand.c (expand_debug_expr): Use address space of nested
18708 TREE_TYPE for ADDR_EXPR and MEM_REF.
18710 2014-06-05 Jeff Law <law@redhat.com>
18712 PR tree-optimization/61289
18713 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
18714 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
18715 looking for those which match LHS. All callers changed.
18716 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
18717 parameters and code which manipulated them. All callers changed.
18718 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
18719 and DST_MAP parameters. Simplify invalidation code by just calling
18720 invalidate_equivalences. All callers changed.
18721 (thread_across_edge): Simplify now that we don't need to maintain
18722 the map of equivalences to invalidate.
18724 2014-06-05 Kai Tietz <ktietz@redhat.com>
18725 Richard Henderson <rth@redhat.com>
18728 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
18729 checking for !TARGET_X32.
18730 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
18731 (sibcall_intern): New define_insn, plus required peepholes.
18732 (sibcall_pop_intern): Likewise.
18733 (sibcall_value_intern): Likewise.
18734 (sibcall_value_pop_intern): Likewise.
18736 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
18738 * tree-inline.c (tree_function_versioning): Check DF info existence
18739 before accessing it.
18741 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
18743 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
18745 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
18746 aarch64_frame hard_fp_offset and frame_size.
18747 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
18748 frame_size; remove original_frame_size.
18749 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
18750 (aarch64_initial_elimination_offset): Remove frame_size and
18751 offset. Use aarch64_frame frame_size.
18753 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
18754 Jiong Wang <jiong.wang@arm.com>
18755 Renlin <renlin.li@arm.com>
18757 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
18758 initialization of R30 offset. Update offset. Iterate core
18759 regisers upto X30. Remove X29, X30 specific code.
18761 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
18762 Jiong Wang <jiong.wang@arm.com>
18764 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
18765 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
18766 (aarch64_register_saved_on_entry): Adjust test.
18768 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
18770 * config/aarch64/aarch64.h (machine_function): Move
18771 saved_varargs_size from here...
18772 (aarch64_frame): ... to here.
18774 * config/aarch64/aarch64.c (aarch64_expand_prologue)
18775 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
18776 (aarch64_initial_elimination_offset)
18777 (aarch64_setup_incoming_varargs): Adjust location of
18778 saved_varargs_size.
18780 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
18782 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
18785 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
18786 Prachi Godbole <Prachi.Godbole@imgtec.com>
18788 * config/mips/mips-cpus.def: Add definition for p5600. Updated
18789 mips32r5 entry to use PROCESSOR_P5600.
18790 * config/mips/mips-tables.opt: Regenerate.
18791 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
18792 * config/mips/mips.c (mips_fmadd_bypass): New function.
18793 (mips_rtx_cost_data): Add costs for p5600.
18794 (mips_issue_rate): Add support for p5600.
18795 (mips_multipass_dfa_lookahead): Likewise.
18796 * config/mips/mips.h (TUNE_P5600): New define.
18797 (TUNE_MACC_CHAINS): Add TUNE_P5600.
18798 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
18799 * config/mips/mips.md: Include p5600.md.
18800 (processor): Add p5600.
18801 * config/mips/p5600.md: New file.
18803 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
18805 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
18806 * config/i386/predicates.md (palignr_operand): New.
18807 Indicates if permutation is suitable for palignr instruction.
18809 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
18811 PR tree-optimization/61319
18812 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
18813 stmt belongs to loop.
18815 2014-06-05 Richard Biener <rguenther@suse.de>
18817 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
18818 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
18819 (lookup_tmp_var): Adjust.
18820 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
18822 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18824 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
18826 2014-06-05 Marek Polacek <polacek@redhat.com>
18829 * doc/invoke.texi: Document -Wlogical-not-parentheses.
18831 2014-06-04 Tom de Vries <tom@codesourcery.com>
18833 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
18836 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
18838 PR tree-optimization/61385
18839 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
18841 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
18843 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
18844 changed to use fatal_error.
18845 (main): Ensure lto_wrapper_cleanup is run atexit.
18847 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
18849 * lra-constraints.c (valid_address_p): Move earlier in file.
18850 (address_eliminator): New structure.
18851 (satisfies_memory_constraint_p): New function.
18852 (satisfies_address_constraint_p): Likewise.
18853 (process_alt_operands, process_address, curr_insn_transform): Use them.
18855 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
18857 * lra-int.h (lra_static_insn_data): Make operand_alternative a
18859 (target_lra_int, default_target_lra_int, this_target_lra_int)
18860 (op_alt_data): Delete.
18861 * lra.h (lra_init): Delete.
18862 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
18863 (init_insn_code_data_once): Remove op_alt_data handling.
18864 (finish_insn_code_data_once): Likewise.
18865 (init_op_alt_data): Delete.
18866 (get_static_insn_data): Initialize operand_alternative to null.
18867 (free_insn_recog_data): Cast operand_alternative before freeing it.
18868 (setup_operand_alternative): Take the operand_alternative as
18869 parameter and assume it isn't already cached in the static
18871 (lra_set_insn_recog_data): Update accordingly.
18872 (lra_init): Delete.
18873 * ira.c (ira_init): Don't call lra_init.
18874 * target-globals.h (this_target_lra_int): Declare.
18875 (target_globals): Remove lra_int.
18876 (restore_target_globals): Update accordingly.
18877 * target-globals.c: Don't include lra-int.h.
18878 (default_target_globals, save_target_globals): Remove lra_int.
18880 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
18882 * recog.h (operand_alternative): Convert reg_class, reject,
18883 matched and matches into bitfields.
18884 (preprocess_constraints): New overload.
18885 (preprocess_insn_constraints): New function.
18886 (preprocess_constraints): Take the insn as parameter.
18887 (recog_op_alt): Change into a pointer.
18888 (target_recog): Add x_op_alt.
18889 * recog.c (asm_op_alt): New variable.
18890 (recog_op_alt): Change into a pointer.
18891 (preprocess_constraints): New overload, replacing the old function
18892 definition with one that doesn't use global state.
18893 (preprocess_insn_constraints): New function.
18894 (preprocess_constraints): Use them. Take the insn as parameter.
18895 Use asm_op_alt for asms.
18896 (recog_init): Free existing x_op_alt entries.
18897 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
18899 (make_early_clobber_and_input_conflicts): Likewise.
18900 (process_bb_node_lives): Pass the insn to process_constraints.
18901 * reg-stack.c (check_asm_stack_operands): Likewise.
18902 (subst_asm_stack_regs): Likewise.
18903 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
18904 * regrename.c (build_def_use): Likewise.
18905 * sched-deps.c (sched_analyze_insn): Likewise.
18906 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
18907 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
18908 (note_invalid_constants): Likewise.
18909 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
18910 (ix86_legitimate_combined_insn): Make operand_alternative pointer
18913 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
18915 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
18916 * ira-lives.c (check_and_make_def_conflict): Check for disabled
18918 (make_early_clobber_and_input_conflicts): Likewise.
18919 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
18921 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
18923 * recog.h (alternative_class): New function.
18924 (which_op_alt): Return a const recog_op_alt.
18925 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
18926 (subst_asm_stack_regs): Likewise.
18927 * config/arm/arm.c (note_invalid_constants): Likewise.
18928 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
18929 the operand_alternative; use alternative class instead.
18930 * sel-sched.c (get_reg_class): Likewise.
18931 * regrename.c (build_def_use): Likewise.
18932 (hide_operands, restore_operands, record_out_operands): Update type
18935 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
18937 * recog.h (recog_op_alt): Convert to a flat array.
18938 (which_op_alt): New function.
18939 * recog.c (recog_op_alt): Convert to a flat array.
18940 (preprocess_constraints): Update accordingly, grouping all
18941 operands of the same alternative together, rather than the
18943 * ira-lives.c (check_and_make_def_conflict): Likewise.
18944 (make_early_clobber_and_input_conflicts): Likewise.
18945 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
18946 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
18947 (subst_asm_stack_regs): Likewise.
18948 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
18949 * regrename.c (hide_operands, record_out_operands): Likewise.
18950 (build_def_use): Likewise.
18951 * sel-sched.c (get_reg_class): Likewise.
18952 * config/arm/arm.c (note_invalid_constants): Likewise.
18954 2014-06-04 Jason Merrill <jason@redhat.com>
18958 * gimplify.c (gimplify_arg): Non-static.
18959 * gimplify.h: Declare it.
18961 2014-06-04 Richard Biener <rguenther@suse.de>
18963 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
18964 TREE_PUBLIC and DECL_EXTERNAL decls.
18966 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
18968 * regcprop.c (copyprop_hardreg_forward_1): Account for
18969 HARD_REGNO_CALL_PART_CLOBBERED.
18971 2014-06-04 Richard Biener <rguenther@suse.de>
18973 * configure.ac: Check whether the underlying type of int64_t
18974 is long or long long.
18975 * configure: Regenerate.
18976 * config.in: Likewise.
18977 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
18978 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18980 2014-06-04 Richard Biener <rguenther@suse.de>
18982 PR tree-optimization/60098
18983 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
18985 (dse_optimize_stmt): Simplify, now that we found a kill
18988 2014-06-04 Richard Biener <rguenther@suse.de>
18990 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
18991 of accesses with non-invariant address.
18993 2014-06-04 Martin Liska <mliska@suse.cz>
18995 * cgraph.h (cgraph_make_wrapper): New function introduced.
18996 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
18997 * ipa-inline.h (inline_analyze_function): The function is global.
18998 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
19000 2014-06-04 Martin Liska <mliska@suse.cz>
19002 * tree.h (private_lookup_attribute_starting): New function.
19003 (lookup_attribute_starting): Likewise.
19004 * tree.c (private_lookup_attribute_starting): Likewise.
19006 2014-06-04 Martin Liska <mliska@suse.cz>
19008 * cgraph.h (expand_thunk): New argument added.
19009 (address_taken_from_non_vtable_p): New global function.
19010 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
19011 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
19012 * cgraphunit.c (analyze_function): Likewise.
19013 (assemble_thunks_and_aliases): Argument added to call.
19014 (expand_thunk): New argument forces to produce GIMPLE thunk.
19016 2014-06-04 Martin Liska <mliska@suse.cz>
19018 * coverage.h (coverage_compute_cfg_checksum): Argument added.
19019 * coverage.c (coverage_compute_cfg_checksum): Likewise.
19020 * profile.c (branch_prob): Likewise.
19022 2014-06-04 Martin Jambor <mjambor@suse.cz>
19025 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
19026 handler for switch on an ipa_ref_use enum.
19027 * ipa-reference.c (analyze_function): Likewise.
19029 2014-06-04 Kai Tietz <ktietz@redhat.com>
19031 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
19032 from old call-instruction.
19034 2014-06-04 Bin Cheng <bin.cheng@arm.com>
19036 * config/aarch64/aarch64.c (aarch64_classify_address)
19037 (aarch64_legitimize_reload_address): Support full addressing modes
19039 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
19040 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
19042 2014-06-03 Andrew Pinski <apinski@cavium.com>
19044 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
19047 2014-06-03 Andrew Pinski <apinski@cavium.com>
19049 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
19050 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
19052 2014-06-03 Kai Tietz <ktietz@redhat.com>
19054 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
19057 2014-06-03 Dehao Chen <dehao@google.com>
19059 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
19062 2014-06-03 Marek Polacek <polacek@redhat.com>
19065 * doc/invoke.texi: Document -Wswitch-bool.
19066 * function.c (stack_protect_epilogue): Cast controlling expression of
19068 * gengtype.c (walk_type): Generate switch expression with its
19069 controlling expression cast to int.
19071 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
19073 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
19075 * config/avr/avr-tables.opt: Regenerate.
19076 * config/avr/t-multilib: Regenerate.
19077 * doc/avr-mmcu.texi: Regenerate.
19079 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
19080 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19082 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
19083 (ata6617c, ata664251): Add new avr35 devices.
19084 (ata6612c): Add new avr4 device.
19085 (ata6613c, ata6614q): Add new avr5 devices.
19086 * config/avr/avr-tables.opt: Regenerate.
19087 * config/avr/t-multilib: Regenerate.
19088 * doc/avr-mmcu.texi: Regenerate.
19090 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
19092 * gcc/config/aarch64/aarch64-builtins.c
19093 (aarch64_types_binop_ssu_qualifiers): New static data.
19094 (TYPES_BINOP_SSU): Define.
19095 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
19096 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
19097 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
19098 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
19099 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
19100 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
19101 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
19102 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
19103 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
19104 suffix to builtin function name, remove cast.
19105 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
19106 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
19107 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
19109 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
19111 * gcc/config/aarch64/aarch64-builtins.c
19112 (aarch64_types_binop_uus_qualifiers,
19113 aarch64_types_shift_to_unsigned_qualifiers,
19114 aarch64_types_unsigned_shiftacc_qualifiers): Define.
19115 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
19116 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
19117 sqshlu_n, uqshl_n): Update qualifiers.
19118 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
19119 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
19120 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
19121 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
19122 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
19123 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
19124 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
19125 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
19126 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
19127 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
19128 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
19129 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
19130 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
19131 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
19132 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
19133 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
19134 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
19135 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
19136 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
19137 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
19138 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
19139 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
19140 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
19141 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
19142 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
19143 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
19144 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
19146 2014-06-03 Teresa Johnson <tejohnson@google.com>
19148 * tree-sra.c (modify_function): Record caller nodes after rebuild.
19150 2014-06-02 Jason Merrill <jason@redhat.com>
19153 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
19155 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
19157 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
19160 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
19162 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
19164 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
19165 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
19166 * config/aarch64/iterators.md (REVERSE): New iterator.
19167 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
19168 (rev_op): New int_attribute.
19169 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
19170 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
19171 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
19172 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
19173 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
19174 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
19175 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
19176 Replace temporary __asm__ with __builtin_shuffle.
19178 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
19180 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
19182 * config/mips/mips-tables.opt: Regenerate.
19183 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
19184 to use mips_isa_rev rather than ISA_MIPS32R2.
19185 * config/mips/mips.h (ISA_MIPS32R3): New define.
19186 (ISA_MIPS32R5): New define.
19187 (ISA_MIPS64R3): New define.
19188 (ISA_MIPS64R5): New define.
19189 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
19190 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
19191 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
19193 (MIPS_ISA_SYNCI_SPEC): Likewise.
19194 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
19195 (LINK_SPEC): Added mips32r3 and mips32r5.
19196 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
19197 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
19198 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
19199 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
19200 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
19201 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
19202 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
19204 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
19206 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
19208 * config/mips/mips.opt (mxpa): New option.
19209 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
19212 2014-06-03 Martin Jambor <mjambor@suse.cz>
19215 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
19218 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
19220 PR tree-optimization/61328
19221 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
19222 initialization from find_bswap_or_nop_1.
19223 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
19224 in source_expr2 before using the size value the function sets. Also
19225 make use of init_symbolic_number () in both the old place and
19226 find_bswap_or_nop_load () to avoid reading uninitialized memory when
19227 doing recursion in the GIMPLE_BINARY_RHS case.
19229 2014-06-03 Richard Biener <rguenther@suse.de>
19231 PR tree-optimization/61383
19232 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
19235 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
19237 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
19238 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
19239 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
19240 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
19242 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
19243 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
19244 * system.h: ...here and make it unconditional.
19245 * target.def (conditional_register_usage): Mention
19246 define_register_constraint instead of old-style constraint macros.
19247 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
19248 * doc/tm.texi: Regenerate.
19249 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
19250 protected by !USE_MD_CONSTRAINTS.
19251 * config/frv/frv.md: Remove quote from old version of documentation.
19252 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
19253 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
19254 CONST_DOUBLE_OK_FOR_LETTER.
19255 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
19257 2014-06-02 Andrew Pinski <apinski@cavium.com>
19259 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
19260 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
19261 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
19262 file whose name depends on -mabi= and -mbig-endian.
19263 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
19264 Handle LP64 better and handle ilp32 too.
19265 (MULTILIB_OPTIONS): Delete.
19266 (MULTILIB_DIRNAMES): Delete.
19268 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
19270 * expr.h: Remove prototypes of functions defined in builtins.c.
19271 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
19272 Remove prototypes of functions defined in builtins.c.
19273 * builtins.h: Update prototype list to include all exported functions.
19274 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
19275 no_c99_libc_has_function): Move to targhooks.c
19276 (build_string_literal, build_call_expr_loc_array,
19277 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
19279 (expand_builtin_object_size, fold_builtin_object_size): Make static.
19280 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
19281 no_c99_libc_has_function): Relocate from builtins.c.
19282 * tree.c: Include builtins.h.
19283 (build_call_expr_loc_array, build_call_expr_loc_vec,
19284 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
19286 * fold-const.h (fold_fma): Move prototype to builtins.h.
19287 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
19288 * asan.c: Include builtins.h.
19289 * cfgexpand.c: Likewise.
19290 * convert.c: Likewise.
19291 * emit-rtl.c: Likewise.
19292 * except.c: Likewise.
19293 * expr.c: Likewise.
19294 * fold-const.c: Likewise.
19295 * gimple-fold.c: Likewise.
19296 * gimple-ssa-strength-reduction.c: Likewise.
19297 * gimplify.c: Likewise.
19298 * ipa-inline.c: Likewise.
19299 * ipa-prop.c: Likewise.
19300 * lto-streamer-out.c: Likewise.
19301 * stmt.c: Likewise.
19302 * tree-inline.c: Likewise.
19303 * tree-object-size.c: Likewise.
19304 * tree-sra.c: Likewise.
19305 * tree-ssa-ccp.c: Likewise.
19306 * tree-ssa-forwprop.c: Likewise.
19307 * tree-ssa-loop-ivcanon.c: Likewise.
19308 * tree-ssa-loop-ivopts.c: Likewise.
19309 * tree-ssa-math-opts.c: Likewise.
19310 * tree-ssa-reassoc.c: Likewise.
19311 * tree-ssa-threadedge.c: Likewise.
19312 * tree-streamer-in.c: Likewise.
19313 * tree-vect-data-refs.c: Likewise.
19314 * tree-vect-patterns.c: Likewise.
19315 * tree-vect-stmts.c: Likewise.
19316 * config/aarch64/aarch64.c: Likewise.
19317 * config/alpha/alpha.c: Likewise.
19318 * config/arc/arc.c: Likewise.
19319 * config/arm/arm.c: Likewise.
19320 * config/avr/avr.c: Likewise.
19321 * config/bfin/bfin.c: Likewise.
19322 * config/c6x/c6x.c: Likewise.
19323 * config/cr16/cr16.c: Likewise.
19324 * config/cris/cris.c: Likewise.
19325 * config/epiphany/epiphany.c: Likewise.
19326 * config/fr30/fr30.c: Likewise.
19327 * config/frv/frv.c: Likewise.
19328 * config/h8300/h8300.c: Likewise.
19329 * config/i386/i386.c: Likewise.
19330 * config/i386/winnt.c: Likewise.
19331 * config/ia64/ia64.c: Likewise.
19332 * config/iq2000/iq2000.c: Likewise.
19333 * config/lm32/lm32.c: Likewise.
19334 * config/m32c/m32c.c: Likewise.
19335 * config/m32r/m32r.c: Likewise.
19336 * config/m68k/m68k.c: Likewise.
19337 * config/mcore/mcore.c: Likewise.
19338 * config/mep/mep.c: Likewise.
19339 * config/microblaze/microblaze.c: Likewise.
19340 * config/mips/mips.c: Likewise.
19341 * config/mmix/mmix.c: Likewise.
19342 * config/mn10300/mn10300.c: Likewise.
19343 * config/moxie/moxie.c: Likewise.
19344 * config/msp430/msp430.c: Likewise.
19345 * config/nds32/nds32.c: Likewise.
19346 * config/pa/pa.c: Likewise.
19347 * config/pdp11/pdp11.c: Likewise.
19348 * config/picochip/picochip.c: Likewise.
19349 * config/rl78/rl78.c: Likewise.
19350 * config/rs6000/rs6000.c: Likewise.
19351 * config/rx/rx.c: Likewise.
19352 * config/s390/s390.c: Likewise.
19353 * config/score/score.c: Likewise.
19354 * config/sh/sh.c: Likewise.
19355 * config/sparc/sparc.c: Likewise.
19356 * config/spu/spu.c: Likewise.
19357 * config/stormy16/stormy16.c: Likewise.
19358 * config/tilegx/tilegx.c: Likewise.
19359 * config/tilepro/tilepro.c: Likewise.
19360 * config/v850/v850.c: Likewise.
19361 * config/vax/vax.c: Likewise.
19362 * config/xtensa/xtensa.c: Likewise.
19364 2014-06-02 Jeff Law <law@redhat.com>
19366 PR rtl-optimization/61094
19367 * ree.c (combine_reaching_defs): Do not reextend an insn if it
19368 was marked as do_no_reextend. If a copy is needed to eliminate
19369 an extension, then mark it as do_not_reextend.
19371 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
19373 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
19375 2014-06-02 Richard Henderson <rth@redhat.com>
19378 * config/alpha/alpha.c (print_operand_address): Allow symbolic
19379 addresses inside asms. Use output_operand_lossage instead of
19382 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
19385 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
19386 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
19388 2014-06-02 Tom de Vries <tom@codesourcery.com>
19390 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
19391 case that x has VOIDmode.
19393 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
19395 * varasm.c (copy_constant): Delete function.
19396 (build_constant_desc): Don't call it.
19398 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19401 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
19402 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
19403 with immediate_operand.
19405 2014-06-02 Andreas Schwab <schwab@suse.de>
19407 * config/ia64/ia64.c
19408 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
19409 pending_data_specs first.
19411 2014-06-02 Richard Biener <rguenther@suse.de>
19413 PR tree-optimization/61378
19414 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
19415 valueized_anything.
19417 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
19419 * config/i386/constraints.md (Bw): Rename from 'w'.
19420 (Bz): Rename from 'z'.
19421 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
19423 2014-06-01 Kai Tietz <ktietz@redhat.com>
19426 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
19427 * config/i386/i386.md (sibcall_insn_operand): Use Bs
19428 instead of m constraint.
19430 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
19432 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
19433 a separate alternative where the scratch operand 2 is marked as
19436 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
19438 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
19439 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
19440 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
19441 and __builtins_arm_get_fpscr.
19442 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
19443 __builtins_arm_get_fpscr.
19444 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
19445 __builtins_arm_ldfpscr.
19446 (arm_atomic_assign_expand_fenv): New function.
19447 * config/arm/vfp.md (set_fpscr): New pattern.
19448 (get_fpscr) : Likewise.
19449 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
19451 * doc/extend.texi (AARCH64 Built-in Functions) : Document
19452 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
19454 2014-05-30 Jakub Jelinek <jakub@redhat.com>
19456 * asan.c (report_error_func): Add SLOW_P argument, use
19457 BUILT_IN_ASAN_*_N if set.
19458 (build_check_stmt): Likewise.
19459 (instrument_derefs): If T has insufficient alignment,
19460 force same handling as for odd sizes.
19462 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
19463 BUILT_IN_ASAN_REPORT_STORE_N): New.
19464 * asan.c (struct asan_mem_ref): Change access_size type to
19466 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
19467 update_mem_ref_hash_table): Likewise.
19468 (asan_mem_ref_hasher::hash): Hash in a HWI.
19469 (report_error_func): Change size_in_bytes argument to HWI.
19470 Use *_N builtins if size_in_bytes is larger than 16 or not power of
19472 (build_shadow_mem_access): New function.
19473 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
19474 Handle size_in_bytes not power of two or larger than 16.
19475 (instrument_derefs): Don't give up if size_in_bytes is not
19476 power of two or is larger than 16.
19478 2014-05-30 Kai Tietz <ktietz@redhat.com>
19481 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
19482 for sibling-tail-calls.
19483 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
19485 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
19486 (sibcall_insn_operand): Add check for sibcall_memory_operand.
19488 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19490 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
19491 * config/avr/avr-tables.opt: Regenerate.
19492 * config/avr/t-multilib: Regenerate.
19493 * doc/avr-mmcu.texi: Regenerate.
19495 2014-05-30 Ian Lance Taylor <iant@google.com>
19497 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
19500 2014-05-30 Tom de Vries <tom@codesourcery.com>
19502 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
19505 2014-05-30 Tom de Vries <tom@codesourcery.com>
19507 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
19508 * lra.c (initialize_lra_reg_info_element): Add init of
19509 actual_call_used_reg_set field.
19510 (lra): Call lra_create_live_ranges before lra_inheritance for
19512 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
19514 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
19515 instead of call_used_reg_set for -fuse-caller-save.
19516 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
19518 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19520 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
19522 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
19524 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
19526 * ira.c (ira_get_dup_out_num): Check for output operands at
19527 the start of the loop. Handle cases where an included alternative
19528 follows an excluded one.
19530 2014-05-29 Mike Stump <mikestump@comcast.net>
19533 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
19534 post ld passes when lto is used.
19536 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
19538 PR rtl-optimization/61325
19539 * lra-constraints.c (process_address): Rename to process_address_1.
19540 (process_address): New function.
19542 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
19544 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
19545 TYPES_BINOPV): New static data.
19546 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
19548 * config/aarch64/aarch64-simd.md (aarch64_ext,
19549 aarch64_im_lane_boundsi): New patterns.
19550 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
19552 (aarch64_evpc_ext): New function.
19554 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
19556 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
19557 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
19558 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
19559 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
19560 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
19562 2014-05-29 Tom de Vries <tom@codesourcery.com>
19564 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
19566 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
19567 Richard Sandiford <rdsandiford@googlemail.com>
19569 * arm/iterators.md (shiftable_ops): New code iterator.
19570 (t2_binop0, arith_shift_insn): New code attributes.
19571 * arm/predicates.md (shift_nomul_operator): New predicate.
19572 * arm/arm.md (insn_enabled): Delete.
19573 (enabled): Remove insn_enabled test.
19574 (*arith_shiftsi): Delete. Replace with ...
19575 (*<arith_shift_insn>_multsi): ... new pattern.
19576 (*<arith_shift_insn>_shiftsi): ... new pattern.
19577 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
19579 2014-05-29 Radovan Obradovic <robradovic@mips.com>
19580 Tom de Vries <tom@codesourcery.com>
19582 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
19583 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
19585 (mips_split_call): Use POST_CALL_TMP_REG.
19586 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
19588 2014-05-29 Tom de Vries <tom@codesourcery.com>
19590 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
19591 with #ifdef STACK_REGS.
19593 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
19595 * varasm.c (get_variable_section): Walk aliases.
19596 (place_block_symbol): Walk aliases.
19598 2014-05-28 Tom de Vries <tom@codesourcery.com>
19601 2014-05-28 Tom de Vries <tom@codesourcery.com>
19603 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
19604 * lra.c (initialize_lra_reg_info_element): Add init of
19605 actual_call_used_reg_set field.
19606 (lra): Call lra_create_live_ranges before lra_inheritance for
19608 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
19610 * lra-constraints.c (need_for_call_save_p): Use
19611 actual_call_used_reg_set instead of call_used_reg_set for
19613 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
19615 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
19617 * doc/md.texi: Document that the % constraint character must
19618 be at the beginning of the string.
19619 * genoutput.c (validate_insn_alternatives): Check that '=',
19620 '+' and '%' only appear at the beginning of a constraint.
19621 * ira.c (commutative_constraint_p): Delete.
19622 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
19623 at the start of the string.
19624 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
19626 * config/arm/neon.md (bicdi3_neon): Likewise.
19627 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
19628 (slt_si, sltu_si): Likewise.
19629 * config/vax/vax.md (sbcdi3): Likewise.
19630 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
19631 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
19632 (mul64): Move '%' to beginning of constraint.
19633 * config/arm/arm.md (*xordi3_insn): Likewise.
19634 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
19635 (xorsi3): Likewise.
19637 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
19639 * doc/md.texi: Document the restrictions on the "enabled" attribute.
19641 2014-05-28 Jason Merrill <jason@redhat.com>
19644 * cgraph.h (symtab_node::get_comdat_group_id): New.
19645 * cgraphunit.c (analyze_functions): Call it.
19646 * symtab.c (dump_symtab_node): Likewise.
19647 * tree.c (decl_comdat_group_id): New.
19648 * tree.h: Declare it.
19649 * lto-streamer-out.c (write_symbol): Use it.
19650 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
19652 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
19654 PR bootstrap/PR61146
19655 * wide-int.cc: Do not include longlong.h when compiling with clang.
19657 2014-05-28 Richard Biener <rguenther@suse.de>
19659 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
19660 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
19661 (vrp_visit_assignment_or_call): Print less vertical space.
19662 (vrp_visit_stmt): Likewise.
19663 (vrp_visit_phi_node): Likewise. For a PHI argument with
19664 VR_VARYING range consider recording it as copy.
19666 2014-05-28 Richard Biener <rguenther@suse.de>
19669 2014-05-28 Richard Biener <rguenther@suse.de>
19671 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
19673 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
19675 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
19676 sufficiently aligned and an offset is used at the same time.
19677 (expand_expr_real_1): Likewise.
19679 2014-05-28 Richard Biener <rguenther@suse.de>
19681 PR middle-end/61045
19682 * fold-const.c (fold_comparison): When folding
19683 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
19684 the sign of the remaining constant operand stays the same.
19686 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
19688 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
19689 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
19690 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
19692 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
19693 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
19694 (m32bit-doubles) Likewise.
19695 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
19696 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
19699 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19701 * configure.ac ($gcc_cv_ld_clearcap): New test.
19702 * configure: Regenerate.
19703 * config.in: Regenerate.
19704 * config/sol2.opt (mclear-hwcap): New option.
19705 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
19706 * config/sol2-clearcap.map: Moved here from
19707 testsuite/gcc.target/i386/clearcap.map.
19708 * config/sol2-clearcapv2.map: Move here from
19709 gcc.target/i386/clearcapv2.map.
19710 * config/t-sol2 (install): Depend on install-clearcap-map.
19711 (install-clearcap-map): New target.
19712 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
19715 2014-05-28 Richard Biener <rguenther@suse.de>
19717 * hwint.h (*_HALF_WIDE_INT*): Move to ...
19718 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
19719 ... here and remove the rest.
19720 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
19722 2014-05-28 Richard Biener <rguenther@suse.de>
19724 PR tree-optimization/61335
19725 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
19726 new range fails, drop to varying.
19728 2014-05-28 Olivier Hainque <hainque@adacore.com>
19730 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
19731 (CPP_SPEC): Add entry for -mcpu=8548.
19732 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
19733 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
19735 2014-05-28 Tom de Vries <tom@codesourcery.com>
19737 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
19738 * lra.c (initialize_lra_reg_info_element): Add init of
19739 actual_call_used_reg_set field.
19740 (lra): Call lra_create_live_ranges before lra_inheritance for
19742 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
19744 * lra-constraints.c (need_for_call_save_p): Use
19745 actual_call_used_reg_set instead of call_used_reg_set for
19747 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
19749 2014-05-28 Radovan Obradovic <robradovic@mips.com>
19750 Tom de Vries <tom@codesourcery.com>
19752 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
19754 (@item -fuse-caller-save): New item.
19756 2014-05-28 Radovan Obradovic <robradovic@mips.com>
19757 Tom de Vries <tom@codesourcery.com>
19759 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
19760 OPT_fuse_caller_save.
19762 2014-05-28 Radovan Obradovic <robradovic@mips.com>
19763 Tom de Vries <tom@codesourcery.com>
19765 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
19766 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
19767 get_call_reg_set_usage.
19768 * resource.c (mark_set_resources, mark_target_live_regs): Use
19769 get_call_reg_set_usage.
19770 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
19772 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
19773 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
19774 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
19775 * ira-build.c (ira_create_allocno): Init
19776 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
19777 (create_cap_allocno, propagate_allocno_info)
19778 (propagate_some_info_from_allocno)
19779 (copy_info_to_removed_store_destinations): Handle
19780 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
19781 * ira-costs.c (ira_tune_allocno_costs): Use
19782 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
19784 2014-05-28 Radovan Obradovic <robradovic@mips.com>
19785 Tom de Vries <tom@codesourcery.com>
19787 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
19788 and function_used_regs_valid fields.
19789 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
19790 find_all_hard_reg_sets.
19791 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
19792 (get_call_reg_set_usage): New function.
19793 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
19794 * regs.h (get_call_reg_set_usage): Declare.
19796 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
19799 * config/dbx.h (License): Add Runtime Library Exception.
19800 * config/newlib-stdint.h (License): Same.
19801 * config/rtems.h (License): Same
19802 * config/initfini-array.h (License): Same
19803 * config/v850/v850.h (License): Same.
19804 * config/v850/v850-opts.h (License): Same
19805 * config/v850/rtems.h (License): Same.
19807 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
19810 * doc/extend.texi (Local Labels): Note that label differences are
19811 not supported for AVR.
19813 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
19814 Olivier Hainque <hainque@adacore.com>
19816 * rtl.h (set_for_reg_notes): Declare.
19817 * emit-rtl.c (set_for_reg_notes): New function.
19818 (set_unique_reg_note): Use it.
19819 * optabs.c (add_equal_note): Likewise
19821 2014-05-27 Andrew Pinski <apinski@cavium.com>
19823 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
19824 Use <w> for the register in assembly template.
19825 (stack_protect_test): Use the mode of operands[0] for the result.
19826 (stack_protect_test_<mode>): Use <w> for the register
19827 in assembly template.
19829 2014-05-27 DJ Delorie <dj@redhat.com>
19831 * config/rx/rx.c (add_vector_labels): New.
19832 (rx_output_function_prologue): Call it.
19833 (rx_handle_func_attribute): Don't require empty arguments.
19834 (rx_handle_vector_attribute): New.
19835 (rx_attribute_table): Add "vector" attribute.
19836 * doc/extend.texi (interrupt, vector): Document new/changed
19837 RX-specific attributes.
19839 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
19841 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
19843 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
19844 predicate to detect a negative quotient.
19846 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
19848 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
19849 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
19850 Add X - Y CMP 0 to X CMP Y transformation.
19851 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
19853 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
19855 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
19858 2014-05-27 Steve Ellcey <sellcey@mips.com>
19860 * config/mips/mips.c: Add include of cgraph.h.
19862 2014-05-27 Richard Biener <rguenther@suse.de>
19864 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
19866 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
19869 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
19870 * config/arm/arm-cores.def (License): Same.
19871 * config/arm/arm-opts.h (License): Same.
19872 * config/arm/aout.h (License): Same.
19873 * config/arm/bpabi.h (License): Same.
19874 * config/arm/elf.h (License): Same.
19875 * config/arm/linux-elf.h (License): Same.
19876 * config/arm/linux-gas.h (License): Same.
19877 * config/arm/netbsd-elf.h (License): Same.
19878 * config/arm/uclinux-eabi.h (License): Same.
19879 * config/arm/uclinux-elf.h (License): Same.
19880 * config/arm/vxworks.h (License): Same.
19882 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19884 * config/arm/neon.md (neon_bswap<mode>): New pattern.
19885 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
19886 (arm_init_neon_builtins): Handle NEON_BSWAP.
19887 Define required type nodes.
19888 (arm_expand_neon_builtin): Handle NEON_BSWAP.
19889 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
19890 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
19891 * config/arm/iterators.md (VDQHSD): New mode iterator.
19893 2014-05-27 Richard Biener <rguenther@suse.de>
19895 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
19896 Try using literal operands when comparing value-ranges failed.
19898 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
19900 * ira.c (commutative_operand): Adjust for change to recog_data.
19901 [Missing from previous commit.]
19903 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
19905 * system.h (TEST_BIT): New macro.
19906 * recog.h (alternative_mask): New type.
19907 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
19908 (recog_data_d): Replace alternative_enabled_p array with
19909 enabled_alternatives.
19910 (target_recog): New structure.
19911 (default_target_recog, this_target_recog): Declare.
19912 (get_enabled_alternatives, recog_init): Likewise.
19913 * recog.c (default_target_recog, this_target_recog): New variables.
19914 (get_enabled_alternatives): New function.
19915 (extract_insn): Use it.
19916 (recog_init): New function.
19917 (preprocess_constraints, constrain_operands): Adjust for change to
19919 * postreload.c (reload_cse_simplify_operands): Likewise.
19920 * reload.c (find_reloads): Likewise.
19921 * ira-costs.c (record_reg_classes): Likewise.
19922 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
19923 all alternatives after a disabled one would be skipped.
19924 (ira_implicitly_set_insn_hard_regs): Likewise.
19925 * ira.c (ira_setup_alts): Adjust for change to recog_data.
19926 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
19927 with enabled_alternatives.
19928 * lra.c (free_insn_recog_data): Update accordingly.
19929 (lra_update_insn_recog_data): Likewise.
19930 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
19931 * lra-constraints.c (process_alt_operands): Likewise. Handle
19932 only_alternative as part of the enabled mask.
19933 * target-globals.h (this_target_recog): Declare.
19934 (target_globals): Add a recog field.
19935 (restore_target_globals): Restore this_target_recog.
19936 * target-globals.c: Include recog.h.
19937 (default_target_globals): Initialize recog field.
19938 (save_target_globals): Likewise.
19939 * reginfo.c (reinit_regs): Call recog_init.
19940 * toplev.c (backend_init_target): Likewise.
19942 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
19944 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
19945 rather than any named insn's code.
19947 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
19950 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
19951 * config/arm/arm-cores.def (License): Same.
19953 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
19955 * tree.h (decl_comdat_group): Declare.
19956 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
19957 * tree.c (decl_comdat_group): Here.
19959 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
19961 PR rtl-optimization/61222
19962 * combine.c (simplify_shift_const_1): When moving a PLUS outside
19963 the shift, truncate the PLUS operand to the result mode.
19965 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
19968 * config/i386/i386.c (ix86_rtx_costs)
19969 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
19972 2014-05-26 Martin Jambor <mjambor@suse.cz>
19974 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
19977 2014-05-26 Richard Biener <rguenther@suse.de>
19979 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
19980 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
19981 Provide specializations.
19982 (wi::int_traits <HOST_WIDE_INT>,
19983 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
19985 2014-05-26 Alan Modra <amodra@gmail.com>
19988 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
19989 params and return a bool. Remove dead code. Update comment.
19990 Assert we have a const_int source. Remove bogus code from
19991 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
19992 handling of constants > 2G and reg_equal note, from..
19993 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
19994 return value. Update comment. If we can, use a new pseudo
19995 for intermediate calculations.
19996 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
19998 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
19999 call to rs6000_emit_set_const in splitter.
20000 (movdi_internal64+2, +3): Likewise.
20002 2014-05-26 Richard Biener <rguenther@suse.de>
20004 * system.h: Define __STDC_FORMAT_MACROS before
20005 including inttypes.h.
20006 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
20007 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
20008 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
20009 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
20010 HOST_WIDEST_INT_C): Remove.
20011 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
20012 if C99 inttypes.h is not available.
20013 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
20014 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
20015 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
20016 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
20017 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
20018 (struct output_info): Likewise.
20019 (print_statistics): Adjust.
20020 (dump_bitmap_statistics): Likewise.
20021 * bt-load.c (migrate_btr_defs): Print with PRId64.
20022 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
20023 (MAX_SAFE_MULTIPLIER): Adjust.
20024 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
20025 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
20026 dump_cgraph_node): Likewise.
20027 * final.c (dump_basic_block_info): Likewise.
20028 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
20029 * gcov.c (format_gcov): Likewise.
20030 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
20032 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
20033 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
20034 (inline_small_functions, dump_overall_stats, dump_inline_stats):
20035 Use PRId64 for dumping.
20036 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
20037 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
20038 (add_allocno_hard_regs): Adjust.
20039 * loop-doloop.c (doloop_modify): Print using PRId64.
20040 * loop-iv.c (inverse): Compute in uint64_t.
20041 (determine_max_iter, iv_number_of_iterations): Likewise.
20042 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
20043 Print using PRId64.
20044 * lto-streamer-out.c (write_symbol): Use uint64_t.
20045 * mcf.c (CAP_INFINITY): Use int64_t maximum.
20046 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
20047 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
20048 * modulo-sched.c (const_iteration_count): Use int64_t.
20049 (sms_schedule): Dump using PRId64.
20050 * predict.c (dump_prediction): Likewise.
20051 * pretty-print.h (pp_widest_integer): Remove.
20052 * profile.c (get_working_sets, is_edge_inconsistent,
20053 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
20054 * tree-pretty-print.c (pp_double_int): Remove case handling
20055 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
20056 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
20058 (pass_optimize_bswap::execute): Remove restriction on hosts.
20059 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
20060 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
20061 * tree.c (widest_int_cst_value): Remove.
20062 * tree.h (widest_int_cst_value): Likewise.
20063 * value-prof.c (dump_histogram_value): Print using PRId64.
20064 * gengtype.c (main): Also inject int64_t.
20065 * ggc-page.c (struct max_alignment): Use int64_t.
20066 * alloc-pool.c (struct allocation_object_def): Likewise.
20067 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
20069 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
20070 * doc/tm.texi: Regenerated.
20071 * gengtype-lex.l (IWORD): Handle [u]int64_t.
20072 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
20073 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
20074 mmix_output_register_setting): Use [u]int64_t in prototypes.
20075 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
20076 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
20077 mmix_output_octa, mmix_output_shifted_value): Adjust.
20078 (mmix_intval): Adjust. Remove unreachable case.
20079 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
20081 2014-05-26 Richard Biener <rguenther@suse.de>
20083 * configure.ac: Drop __int64 type check. Insist that we
20084 found uint64_t and int64_t.
20085 * hwint.h (HOST_BITS_PER___INT64): Remove.
20086 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
20087 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
20088 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
20089 (HOST_WIDEST_FAST_INT): Remove __int64 case.
20090 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
20091 for dst_q_src_df_rms_cdt.
20092 * configure: Regenerate.
20093 * config.in: Likewise.
20095 2014-05-26 Michael Tautschnig <mt@debian.org>
20098 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
20099 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
20101 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20103 PR rtl-optimization/61278
20104 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
20106 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20108 PR rtl-optimization/61220
20109 Part of PR rtl-optimization/61225
20110 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
20111 insn; skip split_edge for a block with only one successor.
20113 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20115 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
20118 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20120 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
20121 (update_vtable_references): New function.
20122 (function_and_variable_visibility): Rewrite also vtable initializers.
20123 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
20125 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20127 * ggc.h (ggc_grow): New function.
20128 * ggc-none.c (ggc_grow): New function.
20129 * ggc-page.c (ggc_grow): Likewise.
20131 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20133 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
20134 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
20135 comdat_can_be_unshared_p, cgraph_externally_visible_p,
20136 varpool_externally_visible_p, can_replace_by_local_alias,
20137 update_visibility_by_resolution_info, function_and_variable_visibility,
20138 pass_data_ipa_function_and_variable_visibility,
20139 make_pass_ipa_function_and_variable_visibility,
20140 whole_program_function_and_variable_visibility,
20141 pass_data_ipa_whole_program_visibility,
20142 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
20143 * cgraph.h (cgraph_local_node_p): Declare.
20144 * ipa-visibility.c: New file.
20145 * Makefile.in (OBJS): Add ipa-visiblity.o
20147 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20149 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
20150 that var decl is available.
20152 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20154 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
20155 symtab_node pointer.
20156 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
20157 (find_decls_types_r): Do not walk COMDAT_GROUP.
20158 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
20159 * varasm.c (make_decl_one_only): Use set_comdat_group;
20160 create node if needed.
20161 * ipa-inline-transform.c (save_inline_function_body): Update
20162 way we decl->symtab mapping.
20163 * symtab.c (symtab_hash, hash_node, eq_node
20164 symtab_insert_node_to_hashtable): Remove.
20165 (symtab_register_node): Update.
20166 (symtab_unregister_node): Update.
20167 (symtab_get_node): Reimplement as inline function.
20168 (symtab_add_to_same_comdat_group): Update.
20169 (symtab_dissolve_same_comdat_group_list): Update.
20170 (dump_symtab_base): Update.
20171 (verify_symtab_base): Update.
20172 (symtab_make_decl_local): Update.
20173 (fixup_same_cpp_alias_visibility): Update.
20174 (symtab_nonoverwritable_alias): Update.
20175 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
20176 * ipa.c (update_visibility_by_resolution_info): UPdate.
20177 * bb-reorder.c: Include cgraph.h
20178 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
20179 with comdat groups.
20180 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
20181 * cgraph.c (cgraph_get_create_node): Update.
20182 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
20184 (symtab_get_node): Make inline.
20185 (symtab_insert_node_to_hashtable): Remove.
20186 (symtab_can_be_discarded): Update.
20187 (decl_comdat_group): New function.
20188 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
20190 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
20192 (read_comdat_group): New function.
20193 (input_node, input_varpool_node): Use it.
20194 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
20196 * mips.c (mips_start_unique_function): Likewise.
20197 (ix86_code_end): Likewise.
20198 (rs6000_code_end): Likweise.
20199 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
20201 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20203 * gengtype-state.c (fatal_reading_state): Bring offline.
20204 * optabs.c (widening_optab_handler): Bring offline.
20205 * optabs.h (widening_optab_handler): Likewise.
20206 * final.c (get_attr_length_1): Likewise.
20208 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20210 * sched-int.h (sd_iterator_cond): Manually tail recurse.
20212 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20214 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
20215 (ppc440-compare): Include shift with dot.
20216 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
20217 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
20219 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
20221 (e6500_sfx2): Include it.
20222 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
20223 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
20224 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
20225 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
20226 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
20227 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
20228 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
20229 *lshiftrt_internal1le, *lshiftrt_internal1be,
20230 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
20231 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
20232 *rotldi3_internal10le, *rotldi3_internal10be,
20233 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
20234 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
20235 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
20236 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
20237 define_insns): Use type "shift" in the appropriate alternatives.
20239 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20241 * config/rs6000/rs6000.md (type): Add "logical". Delete
20243 (dot): Adjust comment.
20244 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
20245 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
20246 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
20247 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
20248 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
20249 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
20250 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
20251 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
20253 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
20254 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
20255 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
20256 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
20257 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
20258 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
20259 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
20260 * config/rs6000/8540.md (ppc8540_su): Adjust.
20261 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20262 cell-cmp-microcoded): Adjust.
20263 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
20264 * config/rs6000/e500mc.md (e500mc_su): Adjust.
20265 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
20266 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
20267 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
20268 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
20269 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
20270 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
20271 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
20273 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
20274 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
20275 Adjust. Adjust comment.
20276 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
20277 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
20279 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20281 * config/rs6000/rs6000.md (type): Add "add".
20282 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
20283 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
20284 define_insns): Use it.
20285 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
20287 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
20288 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
20289 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
20290 * config/rs6000/601.md (ppc601-integer): Adjust.
20291 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
20292 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
20293 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
20294 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
20295 * config/rs6000/8540.md (ppc8540_su): Adjust.
20296 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20297 cell-cmp-microcoded): Adjust.
20298 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
20299 * config/rs6000/e500mc.md (e500mc_su): Adjust.
20300 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
20301 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
20302 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
20303 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
20304 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
20305 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
20306 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
20308 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
20309 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
20310 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
20311 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
20313 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20315 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
20316 "delayed_compare", "var_delayed_compare".
20317 (var_shift): New attribute.
20318 (cell_micro): Adjust.
20319 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
20320 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
20321 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
20322 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
20323 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
20324 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
20325 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
20326 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
20327 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
20328 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
20329 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
20330 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
20331 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
20332 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
20333 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
20334 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
20335 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
20336 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
20337 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
20338 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
20339 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
20340 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
20341 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
20342 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
20343 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
20345 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
20346 * config/rs6000/440.md (ppc440-integer): Adjust.
20347 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
20348 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
20349 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
20350 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
20351 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
20352 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
20353 * config/rs6000/8540.md (ppc8540_su): Adjust.
20354 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20355 cell-cmp-microcoded): Adjust.
20356 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
20357 * config/rs6000/e500mc.md (e500mc_su): Adjust.
20358 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
20359 e500mc64_delayed): Adjust.
20360 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
20361 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
20362 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
20363 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
20364 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
20365 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
20366 power6-delayed-compare, power6-var-delayed-compare): Adjust.
20367 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
20368 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
20370 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
20371 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
20373 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20375 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
20376 (bits): New mode_attr.
20377 (idiv_ldiv): Delete mode_attr.
20378 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
20379 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
20380 rs6000_adjust_priority, is_nonpipeline_insn,
20381 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
20383 * config/rs6000/40x.md (ppc403-idiv): Adjust.
20384 * config/rs6000/440.md (ppc440-idiv): Adjust.
20385 * config/rs6000/476.md (ppc476-idiv): Adjust.
20386 * config/rs6000/601.md (ppc601-idiv): Adjust.
20387 * config/rs6000/603.md (ppc603-idiv): Adjust.
20388 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
20389 ppc620-ldiv): Adjust.
20390 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
20391 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
20392 * config/rs6000/8540.md (ppc8540_divide): Adjust.
20393 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
20394 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
20395 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
20396 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
20397 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
20398 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
20399 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
20400 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
20401 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
20402 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
20403 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
20404 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
20405 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
20406 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
20407 * config/rs6000/titan.md (titan_fxu_div): Adjust.
20409 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20411 * config/rs6000/rs6000.md (type): Delete "insert_word",
20412 "insert_dword". Add "insert".
20413 (size): Update comment.
20414 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
20415 insn_must_be_first_in_group): Adjust.
20416 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
20417 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
20418 *insvsi_internal6, insvdi_internal): Adjust.
20420 * config/rs6000/40x.md (ppc403-integer): Adjust.
20421 * config/rs6000/440.md (ppc440-integer): Adjust.
20422 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
20423 * config/rs6000/601.md (ppc601-integer): Adjust.
20424 * config/rs6000/603.md (ppc603-integer): Adjust.
20425 * config/rs6000/6xx.md (ppc604-integer): Adjust.
20426 * config/rs6000/7450.md (ppc7450-integer): Adjust.
20427 * config/rs6000/7xx.md (ppc750-integer): Adjust.
20428 * config/rs6000/8540.md (ppc8540_su): Adjust.
20429 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
20430 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
20431 * config/rs6000/e500mc.md (e500mc_su): Adjust.
20432 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
20433 * config/rs6000/e5500.md (e5500_sfx): Adjust.
20434 * config/rs6000/e6500.md (e6500_sfx): Adjust.
20435 * config/rs6000/mpc.md (mpccore-integer): Adjust.
20436 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
20437 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
20438 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
20439 * config/rs6000/power7.md (power7-integer): Adjust.
20440 * config/rs6000/power8.md (power8-1cyc): Adjust.
20441 * config/rs6000/rs64.md (rs64a-integer): Adjust.
20442 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
20444 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20446 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
20447 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
20448 (size): New attribute.
20449 (dot): New attribute.
20450 (cell_micro): Adjust.
20451 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
20452 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
20453 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
20454 umuldi3_highpart): Adjust.
20455 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
20456 rs6000_adjust_priority, is_nonpipeline_insn,
20457 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
20459 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
20460 ppc405-imul3): Adjust.
20461 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
20462 * config/rs6000/476.md (ppc476-imul): Adjust.
20463 * config/rs6000/601.md (ppc601-imul): Adjust.
20464 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
20465 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
20466 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
20467 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
20468 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
20470 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
20471 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
20472 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
20473 cell-imul): Adjust.
20474 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
20475 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
20476 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
20477 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
20478 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
20479 * config/rs6000/mpc.md (mpccore-imul): Adjust.
20480 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
20481 power4-lmul, power4-imul, power4-imul3): Adjust.
20482 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
20483 power5-lmul, power5-imul, power5-imul3): Adjust.
20484 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
20485 power6-lmul, power6-imul, power6-imul3): Adjust.
20486 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
20487 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
20489 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
20490 rs64a-lmul): Adjust.
20491 * config/rs6000/titan.md (titan_imul): Adjust.
20493 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20495 * config/rs6000/rs6000.md (type): Add new value "halfmul".
20496 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
20497 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
20498 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
20499 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
20500 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
20501 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
20502 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
20503 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
20504 * config/rs6000/titan.md: Delete nonsensical comment.
20505 (titan_imul): Add type imul3.
20506 (titan_mulhw): Remove type imul3; add type halfmul.
20508 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20510 * config/rs6000/rs6000.md (type): Reorder, reformat.
20512 2014-05-23 Martin Jambor <mjambor@suse.cz>
20514 PR tree-optimization/53787
20515 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
20516 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
20517 analysis_done, update all uses.
20518 * ipa-prop.c: Include domwalk.h
20519 (param_analysis_info): Removed.
20520 (param_aa_status): New type.
20521 (ipa_bb_info): Likewise.
20522 (func_body_info): Likewise.
20523 (ipa_get_bb_info): New function.
20524 (aa_overwalked): Likewise.
20525 (find_dominating_aa_status): Likewise.
20526 (parm_bb_aa_status_for_bb): Likewise.
20527 (parm_preserved_before_stmt_p): Changed to use new param AA info.
20528 (load_from_unmodified_param): Accept func_body_info as a parameter
20529 instead of parms_ainfo.
20530 (parm_ref_data_preserved_p): Changed to use new param AA info.
20531 (parm_ref_data_pass_through_p): Likewise.
20532 (ipa_load_from_parm_agg_1): Likewise. Update callers.
20533 (compute_complex_assign_jump_func): Changed to use new param AA info.
20534 (compute_complex_ancestor_jump_func): Likewise.
20535 (ipa_compute_jump_functions_for_edge): Likewise.
20536 (ipa_compute_jump_functions): Removed.
20537 (ipa_compute_jump_functions_for_bb): New function.
20538 (ipa_analyze_indirect_call_uses): Likewise, moved variable
20540 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
20541 and info, moved variable declarations down.
20542 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
20544 (ipa_analyze_stmt_uses): Likewise.
20545 (ipa_analyze_params_uses): Removed.
20546 (ipa_analyze_params_uses_in_bb): New function.
20547 (ipa_analyze_controlled_uses): Likewise.
20548 (free_ipa_bb_info): Likewise.
20549 (analysis_dom_walker): New class.
20550 (ipa_analyze_node): Handle node-specific forbidden analysis,
20551 initialize and free func_body_info, use dominator walker.
20552 (ipcp_modif_dom_walker): New class.
20553 (ipcp_transform_function): Create and free func_body_info, use
20554 ipcp_modif_dom_walker, moved a lot of functionality there.
20556 2014-05-23 Marek Polacek <polacek@redhat.com>
20557 Jakub Jelinek <jakub@redhat.com>
20559 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
20560 * gcc.c (sanitize_spec_function): Likewise.
20561 * convert.c (convert_to_integer): Include "ubsan.h". Add
20562 floating-point to integer instrumentation.
20563 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
20564 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
20565 SANITIZE_NONDEFAULT.
20566 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
20567 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
20568 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
20569 * ubsan.c: Include "realmpfr.h" and "dfp.h".
20570 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
20571 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
20572 float/double/long double.
20573 (ubsan_instrument_float_cast): New function.
20574 * ubsan.h (ubsan_instrument_float_cast): Declare.
20576 2014-05-23 Jiong Wang <jiong.wang@arm.com>
20578 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
20580 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
20581 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
20582 Adjust for tailcalling through registers.
20583 * config/aarch64/aarch64.h (enum reg_class): New caller save
20585 (REG_CLASS_NAMES): Likewise.
20586 (REG_CLASS_CONTENTS): Likewise.
20587 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
20588 Allow tailcalling without decls.
20590 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
20592 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
20593 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
20595 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
20596 gsi, and variables v_* to v*.
20598 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
20600 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
20602 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
20604 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
20605 * omp-low.c: Update accordingly.
20607 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
20608 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
20609 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
20610 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
20611 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
20612 GF_OMP_TARGET_KIND_UPDATE.
20614 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
20615 Explicitly enumerate the expected region types.
20617 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
20620 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
20621 documentation; the old documentation didn't clearly state the
20622 constraints on the contents of the pointed-to storage.
20624 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20626 Fix bootstrap error on ia64
20627 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
20628 Return default value.
20630 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
20632 PR tree-optimization/54733
20633 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
20635 (find_bswap_or_nop_load): New.
20636 (find_bswap_1): Renamed to ...
20637 (find_bswap_or_nop_1): This. Also add support for memory source.
20638 (find_bswap): Renamed to ...
20639 (find_bswap_or_nop): This. Also add support for memory source and
20640 detection of bitwise operations equivalent to load in target
20642 (execute_optimize_bswap): Likewise. Also move its leading comment back
20643 in place and split statement transformation into ...
20644 (bswap_replace): This.
20646 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
20648 PR rtl-optimization/61215
20649 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
20650 simplify_gen_subreg until final substitution.
20652 2014-05-23 Alan Modra <amodra@gmail.com>
20655 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
20656 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
20657 Use "Y" constraint rather than "m".
20659 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
20661 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
20663 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
20664 New function declaration.
20665 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
20666 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
20667 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
20668 (aarch64_init_builtins) : Initialize builtins
20669 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
20670 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
20671 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
20672 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
20673 and __builtins_aarch64_set_fpsr.
20674 (aarch64_atomic_assign_expand_fenv): New function.
20675 * config/aarch64/aarch64.md (set_fpcr): New pattern.
20676 (get_fpcr) : Likewise.
20677 (set_fpsr) : Likewise.
20678 (get_fpsr) : Likewise.
20679 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
20680 and UNSPECV_SET_FPSR.
20681 * doc/extend.texi (AARCH64 Built-in Functions) : Document
20682 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
20683 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
20685 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
20687 PR rtl-optimization/60969
20688 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
20689 constraints. Set up mem cost for NO_REGS case.
20691 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
20693 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
20695 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
20697 * config/darwin.c: Include "lto-section-names.h".
20698 (LTO_SEGMENT_NAME): Don't define.
20699 * config/i386/winnt.c: Include "lto-section-names.h".
20700 * lto-streamer.c: Include "lto-section-names.h".
20701 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
20702 * lto-wrapper.c: Include "lto-section-names.h".
20703 (LTO_SECTION_NAME_PREFIX): Don't define.
20704 * lto-section-names.h: New file.
20705 * cgraphunit.c: Include "lto-section-names.h".
20707 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
20709 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
20711 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
20714 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
20716 2014-05-22 Nick Clifton <nickc@redhat.com>
20718 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
20720 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
20722 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
20723 -> (T)A transformation to integer types.
20725 2014-05-22 Teresa Johnson <tejohnson@google.com>
20727 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
20728 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
20729 (gcov_rewrite): Use gcov_nonruntime_assert.
20730 (gcov_open): Ditto.
20731 (gcov_write_words): Ditto.
20732 (gcov_write_length): Ditto.
20733 (gcov_read_words): Use gcov_nonruntime_assert, and remove
20734 gcc_assert from IN_LIBGCOV code.
20735 (gcov_read_summary): Use gcov_error to flag profile corruption.
20736 (gcov_sync): Use gcov_nonruntime_assert.
20737 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
20738 (gcov_histo_index): Use gcov_nonruntime_assert.
20739 (static void gcov_histogram_merge): Ditto.
20740 (compute_working_sets): Ditto.
20741 * gcov-io.h (gcov_nonruntime_assert): Define.
20742 (gcov_error): Define for !IN_LIBGCOV
20744 2014-05-22 Richard Biener <rguenther@suse.de>
20746 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
20747 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
20748 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
20749 and deallocation site.
20750 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20751 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
20752 passing through the incoming points-to set.
20753 (handle_lhs_call): Use flags argument instead of recomputing it.
20754 (find_func_aliases_for_call): Call handle_lhs_call with proper
20757 2014-05-22 Jakub Jelinek <jakub@redhat.com>
20759 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
20760 all padding bits in REAL_VALUE_TYPE are cleared.
20762 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20764 Cleanup and improve multipass_dfa_lookahead_guard
20765 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
20766 (core2i7_first_cycle_multipass_begin,)
20767 (core2i7_first_cycle_multipass_issue,)
20768 (core2i7_first_cycle_multipass_backtrack): Update signature.
20769 * config/ia64/ia64.c
20770 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
20771 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
20772 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
20774 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
20775 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
20777 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
20779 * doc/tm.texi: Regenerate.
20781 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
20782 * haifa-sched.c (ready_try): Make signed to allow negative values.
20783 (rebug_ready_list_1): Update.
20784 (choose_ready): Simplify.
20785 (sched_extend_ready_list): Update.
20787 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20789 Remove IA64 speculation tweaking flags
20790 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
20791 speculation tuning flags.
20792 (msched-prefer-non-data-spec-insns,)
20793 (msched-prefer-non-control-spec-insns): Obsolete options.
20794 * haifa-sched.c (choose_ready): Remove handling of
20795 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
20796 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
20797 and PREFER_NON_DATA_SPEC.
20798 * sel-sched.c (process_spec_exprs): Remove handling of
20799 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
20801 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20803 Improve scheduling debug output
20804 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
20805 (advance_one_cycle): Update.
20806 (schedule_insn, queue_to_ready): Add debug printouts.
20807 (debug_ready_list_1): New static function.
20808 (debug_ready_list): Update.
20809 (max_issue): Add debug printouts.
20810 (dump_insn_stream): New static function.
20811 (schedule_block): Use it. Also better indent printouts.
20813 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20815 Fix sched_insn debug counter
20816 * haifa-sched.c (schedule_insn): Update.
20817 (struct haifa_saved_data): Add nonscheduled_insns_begin.
20818 (save_backtrack_point, restore_backtrack_point): Update.
20819 (first_nonscheduled_insn): New static function.
20820 (queue_to_ready, choose_ready): Use it.
20821 (schedule_block): Init nonscheduled_insns_begin.
20822 (sched_emit_insn): Update.
20825 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
20827 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
20829 (aarch64_secondary_reload) : LikeWise.
20830 (aarch64_class_max_nregs) : Remove CORE_REGS.
20831 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
20832 (REG_CLASS_NAMES) : Likewise.
20833 (REG_CLASS_CONTENTS) : LikeWise.
20834 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
20836 2014-05-21 Guozhi Wei <carrot@google.com>
20839 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
20841 (vqdmulhq_n_s16): Likewise.
20843 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
20845 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
20847 2014-05-21 Marek Polacek <polacek@redhat.com>
20850 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
20852 2014-05-21 Martin Jambor <mjambor@suse.cz>
20854 * doc/invoke.texi (Optimize Options): Document parameters
20855 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
20856 ipa-cp-array-index-hint-bonus.
20858 2014-05-21 Mark Wielaard <mjw@redhat.com>
20861 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
20862 version >= 3 or not strict DWARF.
20863 * langhooks.h (struct lang_hooks_for_types): Add
20864 enum_underlying_base_type.
20865 * langhooks.c (lhd_enum_underlying_base_type): New function.
20866 * gcc/langhooks.h (struct lang_hooks_for_types): Add
20867 enum_underlying_base_type.
20868 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
20869 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
20870 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
20872 2014-05-21 Richard Biener <rguenther@suse.de>
20874 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
20876 2014-05-21 John Marino <gnugcc@marino.st>
20878 * config.gcc (*-*-dragonfly*): New target.
20879 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
20880 * configure: Regenerate.
20881 * config/dragonfly-stdint.h: New.
20882 * config/dragonfly.h: New.
20883 * config/dragonfly.opt: New.
20884 * config/i386/dragonfly.h: New.
20885 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
20887 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
20889 * tree.def (VOID_CST): New.
20890 * tree-core.h (TI_VOID): New.
20891 * tree.h (void_node): New.
20892 * tree.c (tree_node_structure_for_code, tree_code_size)
20893 (iterative_hash_expr): Handle VOID_CST.
20894 (build_common_tree_nodes): Initialize void_node.
20896 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
20898 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
20900 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
20902 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
20905 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
20906 flag_reorder_blocks_and_partition.
20907 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
20909 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
20912 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
20914 (*addc_r_t): Add new insn_and_split.
20916 2014-05-21 Jakub Jelinek <jakub@redhat.com>
20918 PR middle-end/61252
20919 * omp-low.c (handle_simd_reference): New function.
20920 (lower_rec_input_clauses): Use it. Defer adding reference
20921 initialization even for reduction without placeholder if in simd,
20922 handle it properly later on.
20924 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
20926 PR tree-optimization/60899
20927 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
20928 assume all static symbols will have definition wile parsing and
20929 check the do have definition later in compilation; check that
20930 variable referring symbol will be output before concluding that
20931 reference is safe; be conservative for referring local statics;
20932 be more precise about when comdat is output in other partition.
20934 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
20937 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
20939 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
20940 (ipa_inline): Loop inline_to_all_callers until no more aliases
20943 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
20945 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
20946 set writeonly flag only for vars actually written to.
20948 2014-05-20 Dehao Chen <dehao@google.com>
20950 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
20951 and callee count to get clone count.
20952 * tree-inline.c (expand_call_inline): Use callee count instead of bb
20953 count in copy_body.
20955 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
20957 PR rtl-optimization/61243
20958 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
20960 2014-05-20 Xinliang David Li <davidxl@google.com>
20962 * cgraphunit.c (walk_polymorphic_call_targets): Add
20963 dbgcnt and fopt-info support.
20964 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
20965 * ipa-devirt.c (ipa_devirt): Ditto.
20966 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
20967 * ipa.c (walk_polymorphic_call_targets): Ditto.
20968 * gimple-fold.c (fold_gimple_assign): Ditto.
20969 (gimple_fold_call): Ditto.
20970 * dbgcnt.def: New counter.
20972 2014-05-20 DJ Delorie <dj@redhat.com>
20974 * config/msp430/msp430.md (split): Don't allow subregs when
20975 splitting SImode adds.
20976 (andneghi): Fix subtraction logic.
20977 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
20979 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
20981 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
20983 * except.c (switch_to_exception_section, resolve_unique_section,
20984 get_named_text_section, default_function_rodata_section,
20985 align_variable, get_block_for_decl, default_section_type_flags):
20986 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
20987 * symtab.c (symtab_add_to_same_comdat_group,
20988 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
20989 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
20991 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
20992 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
20993 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
20994 (c6x_function_in_section_p): Likewise.
20995 * config/darwin.c (machopic_select_section): Likewise.
20996 * config/arm/arm.c (arm_function_in_section_p): Likewise.
20997 * config/mips/mips.c (mips_function_rodata_section): Likewise.
20998 * config/mep/mep.c (mep_select_section): LIkewise.
20999 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
21001 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
21003 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
21004 EH region of calls to pure functions that can throw an exception.
21005 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
21006 (copy_reference_ops_from_call): Also copy the EH region of the call if
21007 it can throw an exception.
21009 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21011 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
21012 nested VEC_SELECTs that are inverses of each other.
21014 2014-05-20 Richard Biener <rguenther@suse.de>
21016 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
21017 (extract_and_process_scc_for_name): not here.
21018 (cond_dom_walker::before_dom_children): Only process
21019 stmts that end the BB in interesting ways.
21020 (run_scc_vn): Mark param uses as visited.
21022 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21024 * config/arm/arm.md (arith_shiftsi): Do not predicate for
21027 2014-05-20 Nick Clifton <nickc@redhat.com>
21029 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
21030 (msp430_gimplify_va_arg_expr): New function.
21031 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
21033 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
21034 operand 0 in order to prevent confusion about the number of
21035 registers involved.
21037 2014-05-20 Richard Biener <rguenther@suse.de>
21039 PR tree-optimization/61221
21040 * tree-ssa-pre.c (el_to_update): Remove.
21041 (eliminate_dom_walker::before_dom_children): Handle released
21042 VDEFs by value-numbering them to the associated VUSE. Update
21043 stmt immediately for substituted call address.
21044 (eliminate): Remove delayed stmt updating code.
21045 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
21046 possibly late re-numbered vuses.
21047 (vn_reference_lookup_2): Adjust.
21048 (vn_reference_lookup_pieces): Likewise.
21049 (vn_reference_lookup): Likewise.
21051 2014-05-20 Richard Biener <rguenther@suse.de>
21053 * config.gcc: Remove need_64bit_hwint.
21054 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
21055 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
21057 * config.in: Regenerate.
21058 * configure: Likewise.
21060 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
21062 * doc/extend.texi: Create Label Attributes section,
21063 move all label attributes into it and reference it.
21065 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
21067 * arm.c (thumb1_reorg): When scanning backwards skip anything
21068 that's not a proper insn.
21070 2014-05-19 Richard Biener <rguenther@suse.de>
21072 PR tree-optimization/61221
21073 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21074 Do nothing for unreachable blocks.
21075 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
21076 Improve unreachability detection.
21078 2014-05-19 Richard Biener <rguenther@suse.de>
21080 PR tree-optimization/61209
21081 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
21083 2014-05-19 Nick Clifton <nickc@redhat.com>
21085 * except.c (init_eh): Fix computation of builtin setjmp buffer
21086 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
21088 2014-05-19 Richard Biener <rguenther@suse.de>
21090 PR tree-optimization/61184
21091 * tree-vrp.c (is_negative_overflow_infinity): Use
21092 TREE_OVERFLOW_P and do that check first.
21093 (is_positive_overflow_infinity): Likewise.
21094 (is_overflow_infinity): Likewise.
21095 (vrp_operand_equal_p): Properly treat operands with
21096 differing overflow as not equal.
21098 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
21100 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
21101 shift simplification where it was intended.
21103 2014-05-19 Christian Bruel <christian.bruel@st.com>
21106 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
21108 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
21111 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
21114 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
21116 * reg-notes.def (CROSSING_JUMP): Likewise.
21117 * rtl.h (rtx_def): Update comment for jump flag.
21118 (CROSSING_JUMP_P): Define.
21119 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
21120 of a REG_CROSSING_JUMP note.
21121 * cfghooks.c (tidy_fallthru_edges): Likewise.
21122 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
21123 * emit-rtl.c (try_split): Likewise.
21124 * haifa-sched.c (sched_create_recovery_edges): Likewise.
21125 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
21126 * jump.c (redirect_jump_2): Likewise.
21127 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
21128 (relax_delay_slots): Likewise.
21129 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
21130 (bbit_di): Likewise.
21131 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
21132 * config/sh/sh.md (jump_compact): Likewise.
21133 * bb-reorder.c (rotate_loop): Likewise.
21134 (pass_duplicate_computed_gotos::execute): Likewise.
21135 (add_reg_crossing_jump_notes): Rename to...
21136 (update_crossing_jump_flags): ...this.
21137 (pass_partition_blocks::execute): Update accordingly.
21139 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
21141 * tree.h: Remove extraneous template <>.
21143 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
21145 * ipa.c (symtab_remove_unreachable_nodes): Remove
21146 symbol from comdat group if its body was eliminated.
21147 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
21148 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
21149 (symtab_unregister_node): ... this one.
21150 (verify_symtab_base): More strict checking of comdats.
21151 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
21153 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
21155 * tree-pass.h (make_pass_ipa_comdats): New pass.
21156 * timevar.def (TV_IPA_COMDATS): New timevar.
21157 * passes.def (pass_ipa_comdats): Add.
21158 * Makefile.in (OBJS): Add ipa-comdats.o
21159 * ipa-comdats.c: New file.
21161 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
21163 * ipa.c (update_visibility_by_resolution_info): New function.
21164 (function_and_variable_visibility): Use it.
21166 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
21168 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
21170 (FOR_EACH_DEFINED_SYMBOL): New macro.
21171 (varpool_first_static_initializer, varpool_next_static_initializer,
21172 varpool_first_defined_variable, varpool_next_defined_variable):
21174 (symtab_in_same_comdat_p): Correctly deal with inline functions.
21176 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
21178 * ggc-page.c (ggc_handle_finalizers): Add comment.
21180 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
21182 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
21183 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
21184 (ggc_internal_cleared_alloc): Likewise.
21185 * ggc-page.c (finalizer): New class.
21186 (vec_finalizer): Likewise.
21187 (globals::finalizers): New member.
21188 (globals::vec_finalizers): Likewise.
21189 (ggc_internal_alloc): Record the finalizer if any for the block being
21191 (ggc_handle_finalizers): New function.
21192 (ggc_collect): Call ggc_handle_finalizers.
21193 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
21195 (ggc_internal_cleared_alloc): Likewise.
21196 (finalize): New function.
21197 (need_finalization_p): Likewise.
21198 (ggc_alloc): Install the type's destructor as the finalizer if it
21199 might do something.
21200 (ggc_cleared_alloc): Likewise.
21201 (ggc_vec_alloc): Likewise.
21202 (ggc_cleared_vec_alloc): Likewise.
21204 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
21206 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
21208 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
21210 * alias.c (record_alias_subset): Adjust.
21211 * bitmap.c (bitmap_element_allocate): Likewise.
21212 (bitmap_gc_alloc_stat): Likewise.
21213 * cfg.c (init_flow): Likewise.
21214 (alloc_block): Likewise.
21215 (unchecked_make_edge): Likewise.
21216 * cfgloop.c (alloc_loop): Likewise.
21217 (flow_loops_find): Likewise.
21218 (rescan_loop_exit): Likewise.
21219 * cfgrtl.c (init_rtl_bb_info): Likewise.
21220 * cgraph.c (insert_new_cgraph_node_version): Likewise.
21221 (cgraph_allocate_node): Likewise.
21222 (cgraph_create_edge_1): Likewise.
21223 (cgraph_allocate_init_indirect_info): Likewise.
21224 * cgraphclones.c (cgraph_clone_edge): Likewise.
21225 * cgraphunit.c (add_asm_node): Likewise.
21226 (init_lowered_empty_function): Likewise.
21227 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
21228 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
21229 (alpha_use_linkage): Likewise.
21230 * config/arc/arc.c (arc_init_machine_status): Likewise.
21231 * config/arm/arm.c (arm_init_machine_status): Likewise.
21232 * config/avr/avr.c (avr_init_machine_status): Likewise.
21233 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
21234 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
21235 * config/cris/cris.c (cris_init_machine_status): Likewise.
21236 * config/darwin.c (machopic_indirection_name): Likewise.
21237 (darwin_build_constant_cfstring): Likewise.
21238 (darwin_enter_string_into_cfstring_table): Likewise.
21239 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
21240 * config/frv/frv.c (frv_init_machine_status): Likewise.
21241 * config/i386/i386.c (get_dllimport_decl): Likewise.
21242 (ix86_init_machine_status): Likewise.
21243 (assign_386_stack_local): Likewise.
21244 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
21245 (i386_pe_maybe_record_exported_symbol): Likewise.
21246 (i386_pe_record_stub): Likewise.
21247 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
21248 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
21249 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
21250 (m32c_note_pragma_address): Likewise.
21251 * config/mep/mep.c (mep_init_machine_status): Likewise.
21252 (mep_note_pragma_flag): Likewise.
21253 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
21254 (mips16_local_alias): Likewise.
21255 (mips_init_machine_status): Likewise.
21256 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
21257 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
21258 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
21259 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
21260 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
21261 * config/pa/pa.c (pa_init_machine_status): Likewise.
21262 (pa_get_deferred_plabel): Likewise.
21263 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
21264 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
21265 (rs6000_init_machine_status): Likewise.
21266 (output_toc): Likewise.
21267 * config/s390/s390.c (s390_init_machine_status): Likewise.
21268 * config/score/score.c (score_output_external): Likewise.
21269 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
21270 * config/spu/spu.c (spu_init_machine_status): Likewise.
21271 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
21272 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
21273 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
21274 * coverage.c (coverage_end_function): Likewise.
21275 * dbxout.c (dbxout_init): Likewise.
21276 * doc/gty.texi: Don't mention variable_size attribute.
21277 * dwarf2cfi.c (new_cfi): Adjust.
21278 (new_cfi_row): Likewise.
21279 (copy_cfi_row): Likewise.
21280 (create_cie_data): Likewise.
21281 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
21282 (new_loc_descr): Likewise.
21283 (find_AT_string_in_table): Likewise.
21284 (add_addr_table_entry): Likewise.
21285 (new_die): Likewise.
21286 (add_var_loc_to_decl): Likewise.
21287 (clone_die): Likewise.
21288 (clone_as_declaration): Likewise.
21289 (break_out_comdat_types): Likewise.
21290 (new_loc_list): Likewise.
21291 (add_loc_descr_to_each): Likewise.
21292 (add_location_or_const_value_attribute): Likewise.
21293 (add_linkage_name): Likewise.
21294 (lookup_filename): Likewise.
21295 (dwarf2out_var_location): Likewise.
21296 (new_line_info_table): Likewise.
21297 (dwarf2out_init): Likewise.
21298 (mem_loc_descriptor): Likewise.
21299 (loc_descriptor): Likewise.
21300 (add_const_value_attribute): Likewise.
21301 (tree_add_const_value_attribute): Likewise.
21302 (comp_dir_string): Likewise.
21303 (dwarf2out_vms_debug_main_pointer): Likewise.
21304 (string_cst_pool_decl): Likewise.
21305 * emit-rtl.c (set_mem_attrs): Likewise.
21306 (get_reg_attrs): Likewise.
21307 (start_sequence): Likewise.
21308 (init_emit): Likewise.
21309 (init_emit_regs): Likewise.
21310 * except.c (init_eh_for_function): Likewise.
21311 (gen_eh_region): Likewise.
21312 (gen_eh_region_catch): Likewise.
21313 (gen_eh_landing_pad): Likewise.
21314 (add_call_site): Likewise.
21315 * function.c (add_frame_space): Likewise.
21316 (insert_temp_slot_address): Likewise.
21317 (assign_stack_temp_for_type): Likewise.
21318 (get_hard_reg_initial_val): Likewise.
21319 (allocate_struct_function): Likewise.
21320 (prepare_function_start): Likewise.
21321 (types_used_by_var_decl_insert): Likewise.
21322 * gengtype.c (variable_size_p): Remove function.
21323 (enum alloc_quantity): Remove enum.
21324 (write_typed_alloc_def): Remove function.
21325 (write_typed_struct_alloc_def): Likewise.
21326 (write_typed_typedef_alloc_def): Likewise.
21327 (write_typed_alloc_defns): Likewise.
21329 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
21330 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
21331 * ggc.h (ggc_alloc): new function.
21332 (ggc_cleared_alloc): Likewise.
21333 (ggc_vec_alloc): Template on type of vector element, and remove
21334 element size argument.
21335 (ggc_cleared_vec_alloc): Likewise.
21336 * gimple.c (gimple_build_omp_for): Adjust.
21337 (gimple_copy): Likewise.
21338 * ipa-cp.c (get_replacement_map): Likewise.
21339 (find_aggregate_values_for_callers_subset): Likewise.
21340 (known_aggs_to_agg_replacement_list): Likewise.
21341 * ipa-devirt.c (get_odr_type): Likewise.
21342 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
21343 (read_agg_replacement_chain): Likewise.
21344 * loop-iv.c (get_simple_loop_desc): Likewise.
21345 * lto-cgraph.c (input_node_opt_summary): Likewise.
21346 * lto-section-in.c (lto_new_in_decl_state): Likewise.
21347 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
21348 (input_eh_region): Likewise.
21349 (input_eh_lp): Likewise.
21350 (input_cfg): Likewise.
21351 * optabs.c (set_optab_libfunc): Likewise.
21352 (init_tree_optimization_optabs): Likewise.
21353 (set_conv_libfunc): Likewise.
21354 * passes.c (do_per_function_toporder): Likewise.
21355 * rtl.h: Don't use variable_size gty attribute.
21356 * sese.c (if_region_set_false_region): Adjust.
21357 * stringpool.c (gt_pch_save_stringpool): Likewise.
21358 * target-globals.c (save_target_globals): Likewise.
21359 * toplev.c (general_init): Likewise.
21360 * trans-mem.c (record_tm_replacement): Likewise.
21361 (split_bb_make_tm_edge): Likewise.
21362 * tree-cfg.c (move_sese_region_to_fn): Likewise.
21363 * tree-data-ref.h (lambda_vector_new): Likewise.
21364 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
21365 * tree-iterator.c (tsi_link_before): Likewise.
21366 (tsi_link_after): Likewise.
21367 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
21368 * tree-ssa-loop-niter.c (record_estimate): Likewise.
21369 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
21370 * tree-ssa-operands.h: Don't use variable_size gty attribute.
21371 * tree-ssa.c (init_tree_ssa): Adjust.
21372 * tree-ssanames.c (set_range_info): Likewise.
21373 (get_ptr_info): Likewise.
21374 (duplicate_ssa_name_ptr_info): Likewise.
21375 (duplicate_ssa_name_range_info): Likewise.
21376 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
21377 (unpack_ts_fixed_cst_value_fields): Likewise.
21378 * tree.c (build_fixed): Likewise.
21379 (build_real): Likewise.
21380 (build_string): Likewise.
21381 (decl_priority_info): Likewise.
21382 (decl_debug_expr_insert): Likewise.
21383 (decl_value_expr_insert): Likewise.
21384 (decl_debug_args_insert): Likewise.
21385 (type_hash_add): Likewise.
21386 (build_omp_clause): Likewise.
21387 * ubsan.c (decl_for_type_insert): Likewise.
21388 * varasm.c (get_unnamed_section): Likewise.
21389 (get_noswitch_section): Likewise.
21390 (get_section): Likewise.
21391 (get_block_for_section): Likewise.
21392 (create_block_symbol): Likewise.
21393 (build_constant_desc): Likewise.
21394 (create_constant_pool): Likewise.
21395 (force_const_mem): Likewise.
21396 (record_tm_clone_pair): Likewise.
21397 * varpool.c (varpool_create_empty_node): Likewise.
21399 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
21401 * dwarf2out.c (tree_add_const_value_attribute): Call
21402 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
21403 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
21404 instead of ggc_internal_<x>alloc_stat.
21405 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
21406 (ggc_realloc): Likewise.
21407 * ggc-none.c (ggc_internal_alloc): Likewise.
21408 (ggc_internal_cleared_alloc): Likewise.
21409 * ggc-page.c: Likewise.
21410 * ggc.h (ggc_internal_alloc_stat): Likewise.
21411 (ggc_internal_alloc): Remove macro.
21412 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
21413 (ggc_internal_cleared_alloc): Remove macro.
21414 (GGC_RESIZEVEC): Adjust.
21415 (ggc_resizevar): Remove macro.
21416 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
21417 (ggc_internal_cleared_vec_alloc_stat): Likewise.
21418 (ggc_internal_vec_cleared_alloc): Remove macro.
21419 (ggc_alloc_atomic_stat): Drop _stat suffix.
21420 (ggc_alloc_atomic): Remove macro.
21421 (ggc_alloc_cleared_atomic): Remove macro.
21422 (ggc_alloc_string_stat): Drop _stat suffix.
21423 (ggc_alloc_string): Remove macro.
21424 (ggc_alloc_rtx_def_stat): Adjust.
21425 (ggc_alloc_tree_node_stat): Likewise.
21426 (ggc_alloc_cleared_tree_node_stat): Likewise.
21427 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
21428 (ggc_alloc_cleared_simd_clone_stat): Likewise.
21429 * gimple.c (gimple_build_omp_for): Likewise.
21430 (gimple_copy): Likewise.
21431 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
21432 * toplev.c (realloc_for_line_map): Adjust.
21433 * tree-data-ref.h (lambda_vector_new): Likewise.
21434 * tree-phinodes.c (allocate_phi_node): Likewise.
21435 * tree.c (grow_tree_vec_stat): Likewise.
21436 * vec.h (va_gc::reserve): Adjust.
21438 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
21440 * config/microblaze/microblaze.c (break_handler): New Declaration.
21441 (microblaze_break_function_p,microblaze_is_break_handler): New.
21442 (compute_frame_size): Use microblaze_break_function_p.
21443 Add the test of break_handler.
21444 (microblaze_function_prologue) : Add the test of variable
21445 break_handler. Check the fnname by BREAK_HANDLER_NAME.
21446 (microblaze_function_epilogue) : Add the test of break_handler.
21447 (microblaze_globalize_label) : Add the test of break_handler.
21448 Check the name by BREAK_HANDLER_NAME.
21450 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
21452 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
21453 microblaze_is_break_handler test.
21454 (call_internal1,call_value_intern): Use microblaze_break_function_p.
21455 Use SYMBOL_REF_DECL.
21457 * config/microblaze/microblaze-protos.h
21458 (microblaze_break_function_p,microblaze_is_break_handler):
21461 * doc/extend.texi (MicroBlaze break_handler Functions): Document
21462 new MicroBlaze break_handler functions.
21464 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
21466 * doc/extend.texi (Size of an asm): Move node text according
21467 to its @menu entry position.
21469 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
21471 PR tree-optimization/61140
21472 PR tree-optimization/61150
21473 PR tree-optimization/61197
21474 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
21476 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
21478 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
21480 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
21482 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
21483 __SIZEOF_INT128__ is defined.
21485 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
21487 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
21488 (rs6000_delegitimize_address): Use it.
21490 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
21492 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
21493 inplace argument. Store the new address in the original MEM when true.
21494 * emit-rtl.c (change_address_1): Likewise.
21495 (adjust_address_1, adjust_automodify_address_1, offset_address):
21496 Update accordingly.
21497 * rtl.h (plus_constant): Add an inplace argument.
21498 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
21499 when true. Avoid generating (plus X (const_int 0)).
21500 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
21501 in-place. Pass true to plus_constant.
21502 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
21504 2014-05-16 Dehao Chen <dehao@google.com>
21506 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
21508 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
21511 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
21513 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
21515 2014-05-16 Dehao Chen <dehao@google.com>
21517 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
21518 optimize_function_for_size_p.
21519 * regs.h (REG_FREQ_FROM_BB): Likewise.
21521 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
21524 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
21525 negt_reg_operand cases.
21526 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
21528 * config/sh/predicates.md (cbranch_treg_value): Simplify.
21530 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
21532 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
21535 2014-05-16 David Malcolm <dmalcolm@redhat.com>
21538 2014-04-29 David Malcolm <dmalcolm@redhat.com>
21540 * tree-cfg.c (dump_function_to_file): Dump the return type of
21541 functions, in a line to itself before the function body, mimicking
21542 the layout of a C function.
21544 2014-05-16 Dehao Chen <dehao@google.com>
21546 * cfghooks.c (make_forwarder_block): Use direct computation to
21547 get fall-through edge's count and frequency.
21549 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
21551 * config/arc/arc.c (arc_init): Fix typo in error message.
21552 * config/i386/i386.c (ix86_expand_builtin): Likewise.
21553 (split_stack_prologue_scratch_regno): Likewise.
21554 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
21555 word from error message.
21557 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
21559 * ira-costs.c: Fix typo in comment.
21561 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
21563 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
21565 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
21567 * varpool.c (dump_varpool_node): Dump write-only flag.
21568 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
21570 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
21571 write-only variables.
21572 * ipa.c (process_references): New function.
21573 (set_readonly_bit): New function.
21574 (set_writeonly_bit): New function.
21575 (clear_addressable_bit): New function.
21576 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
21577 fix handling of aliases.
21578 * cgraph.h (struct varpool_node): Add writeonly flag.
21580 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
21582 PR rtl-optimization/60969
21583 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
21584 Calculate costs for this case.
21586 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
21588 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
21589 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
21591 2014-05-16 Richard Biener <rguenther@suse.de>
21593 PR tree-optimization/61194
21594 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
21595 bool patterns ending in a COND_EXPR.
21597 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21599 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
21601 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21603 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
21604 where we were unable to cost an RTX.
21606 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21608 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
21611 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21612 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21614 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
21616 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21617 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21619 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
21620 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
21622 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21623 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21625 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
21628 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21629 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21631 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
21634 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21635 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21637 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
21638 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
21640 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21641 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21643 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
21644 rotates and shifts.
21646 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21647 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21649 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
21650 ZERO_EXTEND and SIGN_EXTEND better.
21652 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21653 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21655 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
21656 logical operations.
21658 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21659 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21661 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
21662 costs when costing loads and stores to memory.
21664 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21665 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
21667 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
21670 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21672 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
21674 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21675 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21677 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
21679 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
21681 (aarch64_rtx_mult_cost): New.
21682 (aarch64_rtx_costs): Use it, refactor as appropriate.
21684 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21685 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21687 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
21688 emit instructions, return number of instructions which would
21690 (aarch64_add_constant): Update call to aarch64_build_constant.
21691 (aarch64_output_mi_thunk): Likewise.
21692 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
21695 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21697 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
21698 (TARGET_RTX_COSTS): Call it.
21700 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21702 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
21703 (cortexa57_vector_cost): Likewise.
21704 (cortexa57_tunings): Use them.
21706 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21708 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
21709 (cpu_addrcost_table): Use it.
21710 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
21711 (aarch64_address_cost): Rewrite using aarch64_classify_address,
21714 2014-05-16 Richard Biener <rguenther@suse.de>
21716 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
21717 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
21718 (visit_phi): Ignore edges marked as not executable.
21719 (class cond_dom_walker): New.
21720 (cond_dom_walker::before_dom_children): Value-number
21721 control statements and mark successor edges as not
21722 executable if possible.
21723 (run_scc_vn): First walk all control statements in
21724 dominator order, marking edges as not executable.
21725 * tree-inline.c (copy_edges_for_bb): Be not confused
21726 about random edge flags.
21728 2014-05-16 Richard Biener <rguenther@suse.de>
21730 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
21732 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
21735 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
21736 (__TM_simple_begin): Use it.
21737 (__TM_begin): Likewise.
21739 2014-05-15 Martin Jambor <mjambor@suse.cz>
21742 * ipa-prop.c (update_indirect_edges_after_inlining): Check
21743 type_preserved flag when the indirect edge is polymorphic.
21745 2014-05-15 Martin Jambor <mjambor@suse.cz>
21747 PR tree-optimization/61090
21748 * tree-sra.c (sra_modify_expr): Pass the current gsi to
21749 build_ref_for_model.
21751 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21753 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
21754 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
21756 2014-05-15 Jakub Jelinek <jakub@redhat.com>
21758 PR tree-optimization/61158
21759 * fold-const.c (fold_binary_loc): If X is zero-extended and
21760 shiftc >= prec, make sure zerobits is all ones instead of
21761 invoking undefined behavior.
21763 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21765 * regcprop.h: New file.
21766 * regcprop.c (skip_debug_insn_p): New decl.
21767 (replace_oldest_value_reg): Check skip_debug_insn_p.
21768 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
21769 * shrink-wrap.c: Include regcprop.h.
21770 (prepare_shrink_wrap): Call
21771 copyprop_hardreg_forward_bb_without_debug_insn.
21773 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21775 * shrink-wrap.h: Update comment.
21776 * shrink-wrap.c: Update comment.
21777 (next_block_for_reg): Rename to live_edge_for_reg.
21778 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
21779 (move_insn_for_shrink_wrap): Split live_edge.
21780 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
21782 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
21784 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
21786 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
21787 * config/sparc/sparc.md (fptype_ut699): New attribute.
21788 (in_branch_delay): Return false if -mfix-ut699 is specified and
21789 fptype_ut699 is set to single.
21790 (truncdfsf2): Add fptype_ut699 attribute.
21791 (fix_truncdfsi2): Likewise.
21792 (floatsisf2): Change fptype attribute.
21793 (fix_truncsfsi2): Likewise.
21794 (negtf2_notv9): Delete.
21795 (negtf2_v9): Likewise.
21796 (negtf2_hq): New instruction.
21797 (negtf2): New instruction and splitter.
21798 (negdf2_notv9): Rewrite.
21799 (abstf2_notv9): Delete.
21800 (abstf2_hq_v9): Likewise.
21801 (abstf2_v9): Likewise.
21802 (abstf2_hq): New instruction.
21803 (abstf2): New instruction and splitter.
21804 (absdf2_notv9): Rewrite.
21806 2014-05-14 Cary Coutant <ccoutant@google.com>
21809 * opts.c (common_handle_option): Don't special-case "-g".
21810 (set_debug_level): Default to at least level 2 with "-g".
21812 2014-05-14 DJ Delorie <dj@redhat.com>
21814 * config/msp430/msp430.c (msp430_builtin): Add
21815 MSP430_BUILTIN_DELAY_CYCLES.
21816 (msp430_init_builtins): Register void __delay_cycles(long long).
21817 (msp430_builtin_decl): Add it.
21818 (cg_magic_constant): New.
21819 (msp430_expand_delay_cycles): New.
21820 (msp430_expand_builtin): Call it.
21821 (msp430_print_operand_raw): Change integer printing from "int" to
21823 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
21824 (delay_cycles_start): New.
21825 (delay_cycles_end): New.
21826 (delay_cycles_32): New.
21827 (delay_cycles_32x): New.
21828 (delay_cycles_16): New.
21829 (delay_cycles_16x): New.
21830 (delay_cycles_2): New.
21831 (delay_cycles_1): New.
21832 * doc/extend.texi: Document __delay_cycles().
21834 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
21836 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
21837 length attribute computation.
21839 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
21842 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
21844 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
21847 * config/sparc/sparc.md: Fix types of low and high in DI constant
21848 splitter. Use gen_int_mode in some other splitters.
21850 2014-05-14 Martin Jambor <mjambor@suse.cz>
21853 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
21855 2014-05-14 James Norris <jnorris@codesourcery.com>
21857 * omp-low.c (expand_parallel_call): Remove shadow variable.
21858 (expand_omp_taskreg): Likewise.
21860 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
21862 * common/config/i386/i386-common.c
21863 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
21864 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
21865 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
21866 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
21867 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
21868 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
21869 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
21870 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
21871 xsavecintrin.h, xsavesintrin.h.
21872 (x86_64-*-*): Ditto.
21873 * config/i386/clflushoptintrin.h: New.
21874 * config/i386/xsavecintrin.h: Ditto.
21875 * config/i386/xsavesintrin.h: Ditto.
21876 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
21877 (bit_XSAVES): Ditto.
21878 (bit_XSAVES): Ditto.
21879 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
21880 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
21882 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21883 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
21884 OPTION_MASK_ISA_XSAVES.
21885 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
21886 -mxsavec, -mxsaves.
21887 (PTA_CLFLUSHOPT) Define.
21888 (PTA_XSAVEC): Ditto.
21889 (PTA_XSAVES): Ditto.
21890 (ix86_option_override_internal): Handle new options.
21891 (ix86_valid_target_attribute_inner_p): Ditto.
21892 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
21893 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
21894 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
21895 (bdesc_special_args): Add __builtin_ia32_xsaves,
21896 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
21897 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
21898 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
21899 (ix86_expand_builtin): Handle new builtins.
21900 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
21901 (TARGET_CLFLUSHOPT_P): Ditto.
21902 (TARGET_XSAVEC): Ditto.
21903 (TARGET_XSAVEC_P): Ditto.
21904 (TARGET_XSAVES): Ditto.
21905 (TARGET_XSAVES_P): Ditto.
21906 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
21907 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
21908 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
21910 (ANY_XRSTOR64): Ditto.
21912 (xrstor): Change into <xrstor>.
21913 (xrstor_rex64): Change into <xrstor>_rex64.
21914 (xrstor64): Change into <xrstor>64
21916 * config/i386/i386.opt (mclflushopt): New.
21919 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
21921 * doc/invoke.texi: Document new options.
21923 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
21925 PR rtl-optimization/60866
21926 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
21927 Default it to -1. Pass it down to init_simplejump_data.
21928 (init_simplejump_data): New parameter old_seqno. Pass it down
21929 to get_seqno_for_a_jump.
21930 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
21931 initializing new jump seqno as a last resort. Add comment.
21932 (sel_redirect_edge_and_branch): Save old seqno of the conditional
21933 jump and pass it down to sel_init_new_insn.
21934 (sel_redirect_edge_and_branch_force): Likewise.
21936 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
21938 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
21939 shifted values to avoid build warning.
21941 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
21943 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
21944 * cfgrtl.c (rtl_merge_blocks): Fix comment.
21945 (cfg_layout_merge_blocks): Likewise.
21946 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
21948 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
21950 PR rtl-optimization/60901
21951 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
21952 bb predecessor belongs to the same scheduling region. Adjust comment.
21954 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
21956 * doc/sourcebuild.texi: (dfp_hw): Document.
21957 (p8vector_hw): Likewise.
21958 (powerpc_eabi_ok): Likewise.
21959 (powerpc_elfv2): Likewise.
21960 (powerpc_htm_ok): Likewise.
21961 (ppc_recip_hw): Likewise.
21962 (vsx_hw): Likewise.
21964 2014-05-13 Cary Coutant <ccoutant@google.com>
21966 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
21968 2014-05-13 David Malcolm <dmalcolm@redhat.com>
21970 * gengtype-parse.c (require3): Eliminate in favor of...
21972 (require_template_declaration): Update to support optional single *
21975 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
21976 (create_user_defined_type): Handle a single level of explicit
21977 pointerness within template arguments.
21978 (struct write_types_data): Add field "kind".
21979 (filter_type_name): Handle "*" character.
21980 (write_user_func_for_structure_ptr): Require a write_types_data
21981 rather than just a prefix string, so that we can look up the kind
21982 of the wtd and use it as an index into wrote_user_func_for_ptr,
21983 ensuring that such functions are written at most once. Support
21984 subclasses by invoking the marking function of the ultimate base class.
21985 (write_user_func_for_structure_body): Require a write_types_data
21986 rather than just a prefix string, so that we can pass this to
21987 write_user_func_for_structure_ptr.
21988 (write_func_for_structure): Likewise.
21989 (ggc_wtd): Add initializer of new "kind" field.
21990 (pch_wtd): Likewise.
21992 * gengtype.h (enum write_types_kinds): New.
21993 (struct type): Add field wrote_user_func_for_ptr to the "s"
21996 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
21998 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
21999 instead of const_binop.
22000 (fold_binary_loc): Likewise.
22002 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
22004 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
22005 calculation to match get_ref_base_and_extent.
22007 2014-05-13 Catherine Moore <clm@codesourcery.com>
22008 Sandra Loosemore <sandra@codesourcery.com>
22010 * configure.ac: Fix assembly for explicit JALR relocation check.
22011 * configure: Regenerate.
22013 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22015 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
22016 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
22017 Remove associated type declarations and initialisations.
22018 (arm_expand_neon_builtin): Likewise.
22019 (neon_emit_pair_result_insn): Delete.
22020 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
22021 * config/arm/neon.md (neon_vtrn<mode>): Delete.
22022 (neon_vzip<mode>): Likewise.
22023 (neon_vuzp<mode>): Likewise.
22025 2014-05-13 Richard Biener <rguenther@suse.de>
22028 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
22029 it needs revisiting whether the call still may be tail-called.
22031 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22033 * rtl.def (SYMBOL_REF): Remove middle "0" field.
22034 * rtl.h (block_symbol): Reduce number of fields to 2.
22035 (rtx_def): Add u2.symbol_ref_flags.
22036 (SYMBOL_REF_FLAGS): Use it.
22037 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
22038 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
22039 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
22040 Lower index of SYMBOL_REF_DATA.
22041 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
22042 Print SYMBOL_REF_FLAGS at the same time.
22043 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
22045 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22047 * rtl.def (VAR_LOCATION): Remove "i" field.
22048 * rtl.h (rtx_def): Add u2.var_location_status.
22049 (PAT_VAR_LOCATION_STATUS): Use it.
22050 (gen_rtx_VAR_LOCATION): Declare.
22051 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
22052 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
22053 * var-tracking.c (emit_note_insn_var_location): Remove casts.
22055 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22057 * rtl.def (scratch): Fix outdated comment and remove "0" field.
22058 * gengtype.c (adjust_field_rtx_def): Update accordingly.
22060 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22062 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
22063 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
22064 * rtl.h (rtx_def): Add insn_uid to u2 field.
22065 (RTX_FLAG_CHECK8): Delete in favor of...
22066 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
22067 (INSN_DELETED_P): Update accordingly.
22068 (INSN_UID): Use u2.insn_uid.
22069 (INSN_CHAIN_CODE_P): Define.
22070 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
22071 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
22072 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
22073 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
22074 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
22075 indices accordingly.
22076 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
22077 Update indices for insn-chain rtxes.
22078 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
22079 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
22080 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
22081 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
22082 * combine.c (try_combine): Likewise.
22083 * ira.c (setup_prohibited_mode_move_regs): Likewise.
22085 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22087 * rtl.def (REG): Remove middle field.
22088 * rtl.h (rtx_def): Add orignal_regno to u2.
22089 (ORIGINAL_REGNO): Use it instead of field 1.
22090 (REG_ATTRS): Lower field index accordingly.
22091 * gengtype.c (adjust_field_rtx_def): Remove handling of
22092 ORIGINAL_REGNO. Move REG_ATTRS index down.
22093 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
22094 code that prints the REGNO.
22096 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22098 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
22101 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22103 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
22105 2014-05-13 Bin Cheng <bin.cheng@arm.com>
22107 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
22108 (alloc_iv): Lower base expressions containing ADDR_EXPR.
22110 2014-05-13 Ian Bolton <ian.bolton@arm.com>
22112 * config/aarch64/aarch64-protos.h
22113 (aarch64_hard_regno_caller_save_mode): New prototype.
22114 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
22116 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
22118 2014-05-13 Christian Bruel <christian.bruel@st.com>
22120 * target.def (mode_switching): New hook vector.
22121 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
22122 (mode_exit, modepriority_to_mode): Likewise.
22123 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
22124 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22125 * target.h: Include tm.h and hard-reg-set.h.
22126 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
22127 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
22128 * doc/tm.texi Regenerate.
22129 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
22130 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22131 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
22132 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
22133 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
22134 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22135 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
22136 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
22137 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
22138 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
22139 (ix86_emit_mode_set): Hookify.
22140 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
22142 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22143 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
22144 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
22145 (epiphany_mode_priority_to_mode): Remove declaration.
22146 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
22147 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
22148 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
22150 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
22151 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
22152 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
22154 2014-05-13 Jakub Jelinek <jakub@redhat.com>
22157 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
22158 is const0_rtx, return immediately. Don't test count == 0 when
22161 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22163 * Makefile.in: add shrink-wrap.o.
22164 * config/i386/i386.c: include "shrink-wrap.h"
22165 * function.c: Likewise.
22166 (requires_stack_frame_p, next_block_for_reg,
22167 move_insn_for_shrink_wrap, prepare_shrink_wrap,
22168 dup_block_and_redirect): Move to shrink-wrap.c
22169 (thread_prologue_and_epilogue_insns): Extract three code segments
22170 as functions in shrink-wrap.c
22171 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
22173 * shrink-wrap.c: New file.
22174 * shrink-wrap.h: New file.
22176 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
22178 * doc/extend.texi: Reflect current numbers of pragmas. Remove
22179 reference to Solaris.
22181 2014-05-12 Mike Stump <mikestump@comcast.net>
22184 * genattrtab.c (filename): Add.
22185 (convert_set_attr_alternative): Improve error message.
22186 (check_defs): Restore read_md_filename for error messages.
22187 (gen_insn): Save filename.
22189 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
22191 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
22192 -fno-local-ivars and -fivar-visibility.
22193 * c-family/c.opt: Make -Wshadow also implicitly enable
22196 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
22198 * doc/tm.texi: Remove reference to deleted macro.
22199 * doc/tm.texi.in: Likewise.
22201 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22204 * config/avr/avr.c (avr_out_store_psi): Use correct constant
22207 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
22210 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
22211 * config/arm/aout.h (License): Same.
22212 * config/arm/bpabi.h (License): Same.
22213 * config/arm/elf.h (License): Same.
22214 * config/arm/linux-elf.h (License): Same.
22215 * config/arm/linux-gas.h (License): Same.
22216 * config/arm/netbsd-elf.h (License): Same.
22217 * config/arm/uclinux-eabi.h (License): Same.
22218 * config/arm/uclinux-elf.h (License): Same.
22219 * config/arm/vxworks.h (License): Same.
22221 2014-05-11 Jakub Jelinek <jakub@redhat.com>
22223 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
22224 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
22225 number of operands to 3.
22226 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
22227 * tree-nested.c (convert_nonlocal_omp_clauses,
22228 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
22229 * gimplify.c (gimplify_scan_omp_clauses): Handle
22230 OMP_CLAUSE_LINEAR_STMT.
22231 * omp-low.c (lower_rec_input_clauses): Fix typo.
22232 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
22233 cast between Fortran boolean_type_node and C _Bool if
22236 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
22238 PR tree-optimization/61136
22239 * wide-int.h (multiple_of_p): Define a version that doesn't return
22241 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
22242 integer_zerop/const_binop pair.
22243 (multiple_of_p): Likewise, converting both operands to widest_int
22246 2014-05-09 Teresa Johnson <tejohnson@google.com>
22248 * cgraphunit.c (analyze_functions): Use correct dump file.
22250 2014-05-09 Florian Weimer <fweimer@redhat.com>
22252 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
22254 (stack_protect_return_slot_p): New function.
22255 (expand_used_vars): Call stack_protect_decl_p and
22256 stack_protect_return_slot_p for -fstack-protector-strong.
22258 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
22259 Andrew Haley <aph@redhat.com>
22260 Richard Sandiford <rdsandiford@googlemail.com>
22262 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
22265 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
22267 PR middle-end/61111
22268 * fold-const.c (fold_binary_loc): Changed width of mask.
22270 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
22272 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
22273 unsigned int initializers for regno_in, regno_out.
22275 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
22278 * config/avr/avr.md (cc): Add new attribute set_vzn.
22279 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
22280 Set cc insn attribute to set_vzn instead of set_zn for alternatives
22281 with INC, DEC or NEG.
22282 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
22283 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
22284 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
22286 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22289 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22291 * wide-int.cc (UTItype): Define.
22292 (UDWtype): Define for appropriate W_TYPE_SIZE.
22294 2014-05-09 Richard Biener <rguenther@suse.de>
22296 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
22297 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
22298 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
22299 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
22300 ssa_propagate): Adjust.
22302 2014-05-08 Jeff Law <law@redhat.com>
22304 PR tree-optimization/61009
22305 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
22306 tri-state rather than a boolean. When a block is too big to
22307 thread through, inform caller via negative return value.
22308 (thread_across_edge): If a block was too big for normal threading,
22309 then it's too big for a joiner too, so remove temporary equivalences
22310 and return immediately.
22312 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
22313 Matthias Klose <doko@ubuntu.com>
22316 * optc-gen.awk: Fix option handling for -Wunused-parameter.
22318 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
22321 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
22323 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
22326 * config/alpha/alpha.c: Include gimple-iterator.h.
22327 (alpha_gimple_fold_builtin): New function. Move
22328 ALPHA_BUILTIN_UMULH folding from ...
22329 (alpha_fold_builtin): ... here.
22330 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
22332 2014-05-08 Wei Mi <wmi@google.com>
22335 * config/i386/i386.c (ix86_compute_frame_layout): Update
22336 preferred_stack_boundary for call, expanded from tls descriptor.
22337 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
22338 to depend on SP register.
22339 (*tls_local_dynamic_base_32_gnu): Ditto.
22340 (*tls_local_dynamic_32_once): Ditto.
22341 (tls_global_dynamic_64_<mode>): Set
22342 ix86_tls_descriptor_calls_expanded_in_cfun.
22343 (tls_local_dynamic_base_64_<mode>): Ditto.
22344 (tls_global_dynamic_32): Set
22345 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
22346 to depend on SP register.
22347 (tls_local_dynamic_base_32): Ditto.
22349 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22351 * config/arm/arm_neon.h: Update comment.
22352 * config/arm/neon-docgen.ml: Delete.
22353 * config/arm/neon-gen.ml: Delete.
22354 * doc/arm-neon-intrinsics.texi: Update comment.
22356 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22358 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
22360 (vand, vorr, veor, vorn, vbic): Remove.
22361 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
22363 (neon_vsub_unspec): Likewise.
22364 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
22366 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22368 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
22369 (vadd_s16): Likewise.
22370 (vadd_s32): Likewise.
22371 (vadd_f32): Likewise.
22372 (vadd_u8): Likewise.
22373 (vadd_u16): Likewise.
22374 (vadd_u32): Likewise.
22375 (vadd_s64): Likewise.
22376 (vadd_u64): Likewise.
22377 (vaddq_s8): Likewise.
22378 (vaddq_s16): Likewise.
22379 (vaddq_s32): Likewise.
22380 (vaddq_s64): Likewise.
22381 (vaddq_f32): Likewise.
22382 (vaddq_u8): Likewise.
22383 (vaddq_u16): Likewise.
22384 (vaddq_u32): Likewise.
22385 (vaddq_u64): Likewise.
22386 (vmul_s8): Likewise.
22387 (vmul_s16): Likewise.
22388 (vmul_s32): Likewise.
22389 (vmul_f32): Likewise.
22390 (vmul_u8): Likewise.
22391 (vmul_u16): Likewise.
22392 (vmul_u32): Likewise.
22393 (vmul_p8): Likewise.
22394 (vmulq_s8): Likewise.
22395 (vmulq_s16): Likewise.
22396 (vmulq_s32): Likewise.
22397 (vmulq_f32): Likewise.
22398 (vmulq_u8): Likewise.
22399 (vmulq_u16): Likewise.
22400 (vmulq_u32): Likewise.
22401 (vsub_s8): Likewise.
22402 (vsub_s16): Likewise.
22403 (vsub_s32): Likewise.
22404 (vsub_f32): Likewise.
22405 (vsub_u8): Likewise.
22406 (vsub_u16): Likewise.
22407 (vsub_u32): Likewise.
22408 (vsub_s64): Likewise.
22409 (vsub_u64): Likewise.
22410 (vsubq_s8): Likewise.
22411 (vsubq_s16): Likewise.
22412 (vsubq_s32): Likewise.
22413 (vsubq_s64): Likewise.
22414 (vsubq_f32): Likewise.
22415 (vsubq_u8): Likewise.
22416 (vsubq_u16): Likewise.
22417 (vsubq_u32): Likewise.
22418 (vsubq_u64): Likewise.
22419 (vand_s8): Likewise.
22420 (vand_s16): Likewise.
22421 (vand_s32): Likewise.
22422 (vand_u8): Likewise.
22423 (vand_u16): Likewise.
22424 (vand_u32): Likewise.
22425 (vand_s64): Likewise.
22426 (vand_u64): Likewise.
22427 (vandq_s8): Likewise.
22428 (vandq_s16): Likewise.
22429 (vandq_s32): Likewise.
22430 (vandq_s64): Likewise.
22431 (vandq_u8): Likewise.
22432 (vandq_u16): Likewise.
22433 (vandq_u32): Likewise.
22434 (vandq_u64): Likewise.
22435 (vorr_s8): Likewise.
22436 (vorr_s16): Likewise.
22437 (vorr_s32): Likewise.
22438 (vorr_u8): Likewise.
22439 (vorr_u16): Likewise.
22440 (vorr_u32): Likewise.
22441 (vorr_s64): Likewise.
22442 (vorr_u64): Likewise.
22443 (vorrq_s8): Likewise.
22444 (vorrq_s16): Likewise.
22445 (vorrq_s32): Likewise.
22446 (vorrq_s64): Likewise.
22447 (vorrq_u8): Likewise.
22448 (vorrq_u16): Likewise.
22449 (vorrq_u32): Likewise.
22450 (vorrq_u64): Likewise.
22451 (veor_s8): Likewise.
22452 (veor_s16): Likewise.
22453 (veor_s32): Likewise.
22454 (veor_u8): Likewise.
22455 (veor_u16): Likewise.
22456 (veor_u32): Likewise.
22457 (veor_s64): Likewise.
22458 (veor_u64): Likewise.
22459 (veorq_s8): Likewise.
22460 (veorq_s16): Likewise.
22461 (veorq_s32): Likewise.
22462 (veorq_s64): Likewise.
22463 (veorq_u8): Likewise.
22464 (veorq_u16): Likewise.
22465 (veorq_u32): Likewise.
22466 (veorq_u64): Likewise.
22467 (vbic_s8): Likewise.
22468 (vbic_s16): Likewise.
22469 (vbic_s32): Likewise.
22470 (vbic_u8): Likewise.
22471 (vbic_u16): Likewise.
22472 (vbic_u32): Likewise.
22473 (vbic_s64): Likewise.
22474 (vbic_u64): Likewise.
22475 (vbicq_s8): Likewise.
22476 (vbicq_s16): Likewise.
22477 (vbicq_s32): Likewise.
22478 (vbicq_s64): Likewise.
22479 (vbicq_u8): Likewise.
22480 (vbicq_u16): Likewise.
22481 (vbicq_u32): Likewise.
22482 (vbicq_u64): Likewise.
22483 (vorn_s8): Likewise.
22484 (vorn_s16): Likewise.
22485 (vorn_s32): Likewise.
22486 (vorn_u8): Likewise.
22487 (vorn_u16): Likewise.
22488 (vorn_u32): Likewise.
22489 (vorn_s64): Likewise.
22490 (vorn_u64): Likewise.
22491 (vornq_s8): Likewise.
22492 (vornq_s16): Likewise.
22493 (vornq_s32): Likewise.
22494 (vornq_s64): Likewise.
22495 (vornq_u8): Likewise.
22496 (vornq_u16): Likewise.
22497 (vornq_u32): Likewise.
22498 (vornq_u64): Likewise.
22500 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22502 * wide-int.cc (UTItype): Define.
22503 (UDWtype): Define for appropriate W_TYPE_SIZE.
22505 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
22507 PR tree-optimization/59100
22508 * tree-ssa-phiopt.c: Include tree-inline.h.
22509 (neutral_element_p, absorbing_element_p): New functions.
22510 (value_replacement): Handle conditional binary operations with a
22511 neutral or absorbing element.
22513 2014-05-08 Richard Biener <rguenther@suse.de>
22515 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
22516 folding the expression.
22517 (valueize_expr): Remove.
22518 (visit_reference_op_load): Do not valueize the result of
22520 (simplify_binary_expression): Likewise.
22521 (simplify_unary_expression): Likewise.
22523 2014-05-08 Richard Biener <rguenther@suse.de>
22525 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
22526 looking at TYPE_ARG_TYPES.
22528 2014-05-08 Richard Biener <rguenther@suse.de>
22530 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
22531 pointer propagation special-case.
22533 2014-05-08 Bin Cheng <bin.cheng@arm.com>
22535 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
22536 core part of address expressions.
22538 2014-05-08 Alan Modra <amodra@gmail.com>
22541 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
22542 loads and stores when -mno-strict-align at any alignment.
22543 (expand_block_clear): Similarly. Also correct calculation of
22546 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
22548 PR middle-end/39246
22549 * tree-complex.c (expand_complex_move): Keep line info when expanding
22551 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
22552 of complex expression. Use new argument to display correct location
22553 for values coming from phi statement.
22554 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
22555 (warn_uninitialized_phi): Pass location of phi argument to
22557 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
22558 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
22560 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
22562 * config/rs6000/predicates.md (indexed_address_mem): New.
22563 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
22564 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
22565 fpstore_ux, fpstore_u.
22566 (sign_extend, indexed, update): New.
22567 (cell_micro): Adjust.
22568 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
22569 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
22570 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
22571 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
22572 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
22573 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
22574 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
22575 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
22576 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
22577 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
22578 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
22579 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
22580 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
22581 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
22582 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
22584 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
22585 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
22586 *vsx_extract_<mode>_store): Adjust.
22587 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
22588 is_cracked_insn, insn_must_be_first_in_group,
22589 insn_must_be_last_in_group): Adjust.
22591 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
22593 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
22594 ppc440-fpstore): Adjust.
22595 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
22596 ppc476-fpstore): Adjust.
22597 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
22598 ppc601-fpstore): Adjust.
22599 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
22601 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
22603 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
22604 ppc7450-fpstore): Adjust.
22605 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
22606 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
22607 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
22609 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
22610 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
22611 cell-fpstore, cell-fpstore-update): Adjust.
22612 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
22613 ppce300c3_store, ppce300c3_fpstore): Adjust.
22614 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
22615 e500mc_fpstore): Adjust.
22616 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
22617 e500mc64_store, e500mc64_fpstore): Adjust.
22618 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
22619 e5500_fpstore): Adjust.
22620 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
22621 e6500_fpstore): Adjust.
22622 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
22624 * config/rs6000/power4.md (power4-load, power4-load-ext,
22625 power4-load-ext-update, power4-load-ext-update-indexed,
22626 power4-load-update-indexed, power4-load-update, power4-fpload,
22627 power4-fpload-update, power4-store, power4-store-update,
22628 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
22630 * config/rs6000/power5.md (power5-load, power5-load-ext,
22631 power5-load-ext-update, power5-load-ext-update-indexed,
22632 power5-load-update-indexed, power5-load-update, power5-fpload,
22633 power5-fpload-update, power5-store, power5-store-update,
22634 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
22636 * config/rs6000/power6.md (power6-load, power6-load-ext,
22637 power6-load-update, power6-load-update-indexed,
22638 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
22639 power6-fpload-update, power6-store, power6-store-update,
22640 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
22642 * config/rs6000/power7.md (power7-load, power7-load-ext,
22643 power7-load-update, power7-load-update-indexed,
22644 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
22645 power7-fpload-update, power7-store, power7-store-update,
22646 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
22648 * config/rs6000/power8.md (power8-load, power8-load-update,
22649 power8-load-ext, power8-load-ext-update, power8-fpload,
22650 power8-fpload-update, power8-store, power8-store-update-indexed,
22651 power8-fpstore, power8-fpstore-update): Adjust.
22652 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
22654 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
22655 titan_lsu_store, titan_lsu_fpstore): Adjust.
22656 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
22658 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
22661 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
22662 unrolled byte insns. Emit address increments after move insns.
22664 2014-05-07 David Malcolm <dmalcolm@redhat.com>
22666 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
22667 const_gimple, rather than a gimple.
22668 (gimple_call_builtin_p): Likewise, for the three variants.
22670 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
22671 (gimple_call_builtin_p): Likewise, for the three variants.
22673 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22675 PR tree-optimization/61095
22676 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
22678 2014-05-07 Richard Biener <rguenther@suse.de>
22680 PR tree-optimization/61034
22681 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
22682 (maybe_skip_until): Use translate to take into account
22683 lattices when trying to do disambiguations.
22684 (get_continuation_for_phi_1): Likewise.
22685 (get_continuation_for_phi): Adjust for added translate arguments.
22686 (walk_non_aliased_vuses): Likewise.
22687 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
22688 (walk_non_aliased_vuses): Likewise.
22689 (call_may_clobber_ref_p_1): Declare.
22690 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
22691 calls. Stop early if we are only supposed to disambiguate.
22692 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
22694 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
22696 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
22697 Emit an error when the function has arguments.
22699 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
22701 * cfgloop.h (unswitch_loops): Remove.
22702 * doc/passes.texi: Remove references to loop-unswitch.c
22703 * timevar.def (TV_LOOP_UNSWITCH): Remove.
22705 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
22707 * tree-vect-data-refs.c (vect_grouped_load_supported): New
22708 check for loads group of length 3.
22709 (vect_permute_load_chain): New permutations for loads group of
22711 * tree-vect-stmts.c (vect_model_load_cost): Change cost
22712 of vec_perm_shuffle for the new permutations.
22714 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
22716 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
22717 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
22718 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
22719 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
22720 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
22721 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
22722 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
22723 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
22725 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
22727 * loop-unswitch.c: Delete.
22729 2014-05-07 Richard Biener <rguenther@suse.de>
22731 * config.gcc: Always set need_64bit_hwint to yes.
22733 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
22735 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
22736 of using optimize_size.
22738 2014-05-06 Mike Stump <mikestump@comcast.net>
22740 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
22742 2014-05-06 Joseph Myers <joseph@codesourcery.com>
22744 * config/i386/sse.md (*mov<mode>_internal)
22745 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
22746 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
22747 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
22748 (*<code><mode>3, *andnot<mode>3<mask_name>)
22749 (<mask_codefor><code><mode>3<mask_name>): Only consider
22750 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
22752 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
22755 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
22757 * lra-constraints.c (valid_address_p): Move earlier in file.
22758 Add a constraint argument to the address_info version.
22759 (satisfies_memory_constraint_p): New function.
22760 (satisfies_address_constraint_p): Likewise.
22761 (process_alt_operands, curr_insn_transform): Use them.
22762 (process_address): Pass the constraint to valid_address_p when
22763 checking address operands.
22765 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
22767 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
22768 to their respective blocks. Fix inadvertent use of "node".
22770 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
22772 * emit-rtl.c (init_derived_machine_modes): New functionm, split
22774 (init_emit_once): ...here.
22775 * rtl.h (init_derived_machine_modes): Declare.
22776 * toplev.c (do_compile): Call it even if no_backend.
22778 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
22779 Mike Stump <mikestump@comcast.net>
22780 Richard Sandiford <rdsandiford@googlemail.com>
22781 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22783 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
22784 (rtx_equal_for_memref_p): Update comment.
22785 (adjust_offset_for_component_ref): Use wide-int interfaces.
22786 * builtins.c (get_object_alignment_2): Likewise.
22787 (c_readstr): Likewise.
22788 (target_char_cast): Add comment.
22789 (determine_block_size): Use wide-int interfaces.
22790 (expand_builtin_signbit): Likewise.
22791 (fold_builtin_int_roundingfn): Likewise.
22792 (fold_builtin_bitop): Likewise.
22793 (fold_builtin_bswap): Likewise.
22794 (fold_builtin_logarithm): Use signop.
22795 (fold_builtin_pow): Likewise.
22796 (fold_builtin_memory_op): Use wide-int interfaces.
22797 (fold_builtin_object_size): Likewise.
22798 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
22799 nb_iterations_estimate.
22800 (record_niter_bound): Use wide-int interfaces.
22801 (get_estimated_loop_iterations_int): Likewise.
22802 (get_estimated_loop_iterations): Likewise.
22803 (get_max_loop_iterations): Likewise.
22804 * cfgloop.h: Include wide-int.h.
22805 (struct nb_iter_bound): Change bound to widest_int.
22806 (struct loop): Change nb_iterations_upper_bound and
22807 nb_iterations_estimate to widest_int.
22808 (record_niter_bound): Switch to use widest_int.
22809 (get_estimated_loop_iterations): Likewise.
22810 (get_max_loop_iterations): Likewise.
22811 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
22812 update for wide-int.
22813 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
22814 * combine.c (try_combine): Likewise.
22815 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
22816 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
22818 (aarch64_float_const_representable_p): Likewise.
22819 * config/arc/arc.c: Include wide-int.h.
22820 (arc_can_use_doloop_p): Use wide-int interfaces.
22821 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
22822 (vfp3_const_double_index): Likewise.
22823 * config/avr/avr.c (avr_out_round): Likewise.
22824 (avr_fold_builtin): Likewise.
22825 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
22826 (bfin_can_use_doloop_p): Likewise.
22827 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
22828 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
22829 * config/i386/i386.c: Include wide-int.h.
22830 (ix86_data_alignment): Use wide-int interfaces.
22831 (ix86_local_alignment): Likewise.
22832 (ix86_emit_swsqrtsf): Update real_from_integer.
22833 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
22834 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
22835 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
22836 (zero_constant): Likewise.
22837 (input_operand): Likewise.
22838 (splat_input_operand): Likewise.
22839 (non_logical_cint_operand): Change const_double to const_wide_int.
22840 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
22841 (easy_altivec_constant): Remove comment.
22842 (paired_expand_vector_init): Use CONSTANT_P.
22843 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
22844 (rs6000_emit_move): Update checks.
22845 (rs6000_aggregate_candidate): Use wide-int interfaces.
22846 (rs6000_expand_ternop_builtin): Likewise.
22847 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
22848 (rs6000_assemble_integer): Likewise.
22849 (rs6000_hash_constant): Likewise.
22850 (output_toc): Likewise.
22851 (rs6000_rtx_costs): Likewise.
22852 (rs6000_emit_swrsqrt); Update call to real_from_integer.
22853 * config/rs6000/rs6000-c.c: Include wide-int.h.
22854 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
22855 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
22856 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
22857 Handle CONST_WIDE_INT.
22858 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
22859 Use tree_fits_uhwi_p.
22860 * config/sparc/sparc.c: Include wide-int.h.
22861 (sparc_fold_builtin): Use wide-int interfaces.
22862 * config/vax/vax.c: Include wide-int.h.
22863 (vax_float_literal): Use real_from_integer.
22864 * coretypes.h (struct hwivec_def): New.
22866 (const_hwivec): New.
22867 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
22868 (equiv_constant): Handle CONST_WIDE_INT.
22869 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
22870 (cselib_hash_rtx): Handle CONST_WIDE_INT.
22871 * dbxout.c (stabstr_U): Use wide-int interfaces.
22872 (dbxout_type): Update to use cst_fits_shwi_p.
22873 * defaults.h (LOG2_BITS_PER_UNIT): Define.
22874 (TARGET_SUPPORTS_WIDE_INT): Add default.
22875 * dfp.c: Include wide-int.h.
22876 (decimal_real_to_integer2): Use wide-int interfaces and rename to
22877 decimal_real_to_integer.
22878 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
22879 decimal_real_to_integer.
22880 * doc/generic.texi (Constant expressions): Update for wide_int.
22881 * doc/rtl.texi (const_double): Likewise.
22882 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
22883 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
22884 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
22885 (REAL_VALUE_FROM_INT): Remove.
22886 (TARGET_SUPPORTS_WIDE_INT): New.
22887 * doc/tm.texi: Regenerate.
22888 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
22889 * double-int.h: Include wide-int.h.
22890 (struct wi::int_traits): New.
22891 * dwarf2out.c (get_full_len): New.
22892 (dw_val_equal_p): Add case dw_val_class_wide_int.
22893 (size_of_loc_descr): Likewise.
22894 (output_loc_operands): Likewise.
22895 (insert_double): Remove.
22896 (insert_wide_int): New.
22897 (add_AT_wide): New.
22898 (print_die): Add case dw_val_class_wide_int.
22899 (attr_checksum): Likewise.
22900 (attr_checksum_ordered): Likewise.
22901 (same_dw_val_p): Likewise.
22902 (size_of_die): Likewise.
22903 (value_format): Likewise.
22904 (output_die): Likewise.
22905 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
22907 (clz_loc_descriptor): Use wide-int interfaces.
22908 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
22909 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
22910 (round_up_to_align): Use wide-int interfaces.
22911 (field_byte_offset): Likewise.
22912 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
22913 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
22914 CONST_DOUBLE handling. Use wide-int interfaces.
22915 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
22916 (gen_enumeration_type_die): Use add_AT_wide.
22917 (hash_loc_operands): Add case dw_val_class_wide_int.
22918 (compare_loc_operands): Likewise.
22919 * dwarf2out.h: Include wide-int.h.
22920 (wide_int_ptr): New.
22921 (enum dw_val_class): Add dw_val_class_wide_int.
22922 (struct dw_val_struct): Add val_wide.
22923 * emit-rtl.c (const_wide_int_htab): New.
22924 (const_wide_int_htab_hash): New.
22925 (const_wide_int_htab_eq): New.
22926 (lookup_const_wide_int): New.
22927 (const_double_htab_hash): Use wide-int interfaces.
22928 (const_double_htab_eq): Likewise.
22929 (rtx_to_double_int): Conditionally compile for wide-int.
22930 (immed_double_int_const): Rename to immed_wide_int_const and
22931 update for wide-int.
22932 (immed_double_const): Conditionally compile for wide-int.
22933 (init_emit_once): Use wide-int interfaces.
22934 * explow.c (plus_constant): Likewise.
22935 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
22936 (lshift_value): Use wide-int interfaces.
22937 (expand_mult): Likewise.
22938 (choose_multiplier): Likewise.
22939 (expand_smod_pow2): Likewise.
22940 (make_tree): Likewise.
22941 * expr.c (convert_modes): Consolidate handling of constants.
22942 Use wide-int interfaces.
22943 (emit_group_load_1): Add note.
22944 (store_expr): Update comment.
22945 (get_inner_reference): Use wide-int interfaces.
22946 (expand_constructor): Update comment.
22947 (expand_expr_real_2): Use wide-int interfaces.
22948 (expand_expr_real_1): Likewise.
22949 (reduce_to_bit_field_precision): Likewise.
22950 (const_vector_from_tree): Likewise.
22951 * final.c: Include wide-int-print.h.
22952 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
22953 * fixed-value.c: Include wide-int.h.
22954 (fixed_from_string): Use wide-int interfaces.
22955 (fixed_to_decimal): Likewise.
22956 (fixed_convert_from_real): Likewise.
22957 (real_convert_from_fixed): Likewise.
22958 * fold-const.h (mem_ref_offset): Return an offset_int.
22959 (div_if_zero_remainder): Remove code parameter.
22960 * fold-const.c (div_if_zero_remainder): Remove code parameter.
22961 Use wide-int interfaces.
22962 (may_negate_without_overflow_p): Use wide-int interfaces.
22963 (negate_expr_p): Likewise.
22964 (fold_negate_expr): Likewise.
22965 (int_const_binop_1): Likewise.
22966 (const_binop): Likewise.
22967 (fold_convert_const_int_from_int): Likewise.
22968 (fold_convert_const_int_from_real): Likewise.
22969 (fold_convert_const_int_from_fixed): Likewise.
22970 (fold_convert_const_fixed_from_int): Likewise.
22971 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
22972 (sign_bit_p): Use wide-int interfaces.
22973 (make_range_step): Likewise.
22974 (build_range_check): Likewise. Pass an integer of the correct type
22975 instead of using integer_one_node.
22976 (range_predecessor): Pass an integer of the correct type instead
22977 of using integer_one_node.
22978 (range_successor): Likewise.
22979 (merge_ranges): Likewise.
22980 (unextend): Use wide-int interfaces.
22981 (extract_muldiv_1): Likewise.
22982 (fold_div_compare): Likewise.
22983 (fold_single_bit_test): Likewise.
22984 (fold_sign_changed_comparison): Likewise.
22985 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
22986 (fold_plusminus_mult_expr): Use wide-int interfaces.
22987 (native_encode_int): Likewise.
22988 (native_interpret_int): Likewise.
22989 (fold_unary_loc): Likewise.
22990 (pointer_may_wrap_p): Likewise.
22991 (size_low_cst): Likewise.
22992 (mask_with_tz): Likewise.
22993 (fold_binary_loc): Likewise.
22994 (fold_ternary_loc): Likewise.
22995 (multiple_of_p): Likewise.
22996 (tree_call_nonnegative_warnv_p): Update calls to
22997 tree_int_cst_min_precision and real_from_integer.
22998 (fold_negate_const): Use wide-int interfaces.
22999 (fold_abs_const): Likewise.
23000 (fold_relational_const): Use tree_int_cst_lt.
23001 (round_up_loc): Use wide-int interfaces.
23002 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
23003 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
23004 * gengtype.c: Remove include of double-int.h.
23005 (do_typedef): Use wide-int interfaces.
23006 (open_base_files): Add wide-int.h.
23007 (main): Add offset_int and widest_int typedefs.
23008 * gengtype-lex.l: Handle "^".
23009 (CXX_KEYWORD): Add "static".
23010 * gengtype-parse.c (require3): New.
23011 (require_template_declaration): Handle constant template arguments
23012 and nested templates.
23013 * gengtype-state.c: Don't include "double-int.h".
23014 * genpreds.c (write_one_predicate_function): Update comment.
23015 (write_tm_constrs_h): Add check for hval and lval use in
23017 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
23018 (add_to_sequence): Likewise.
23019 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
23020 and const_double_operand.
23021 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
23023 * gimple-fold.c (get_base_constructor): Likewise.
23024 (fold_array_ctor_reference): Likewise.
23025 (fold_nonarray_ctor_reference): Likewise.
23026 (fold_const_aggregate_ref_1): Likewise.
23027 (gimple_val_nonnegative_real_p): Likewise.
23028 (gimple_fold_indirect_ref): Likewise.
23029 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
23030 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
23031 (struct slsr_cand_d): Change index to be widest_int.
23032 (struct incr_info_d): Change incr to be widest_int.
23033 (alloc_cand_and_find_basis): Use wide-int interfaces.
23034 (slsr_process_phi): Likewise.
23035 (backtrace_base_for_ref): Likewise. Return a widest_int.
23036 (restructure_reference): Take a widest_int instead of a double_int.
23037 (slsr_process_ref): Use wide-int interfaces.
23038 (create_mul_ssa_cand): Likewise.
23039 (create_mul_imm_cand): Likewise.
23040 (create_add_ssa_cand): Likewise.
23041 (create_add_imm_cand): Take a widest_int instead of a double_int.
23042 (slsr_process_add): Use wide-int interfaces.
23043 (slsr_process_cast): Likewise.
23044 (slsr_process_copy): Likewise.
23045 (dump_candidate): Likewise.
23046 (dump_incr_vec): Likewise.
23047 (replace_ref): Likewise.
23048 (cand_increment): Likewise. Return a widest_int.
23049 (cand_abs_increment): Likewise.
23050 (replace_mult_candidate): Take a widest_int instead of a double_int.
23051 (replace_unconditional_candidate): Use wide-int interfaces.
23052 (incr_vec_index): Take a widest_int instead of a double_int.
23053 (create_add_on_incoming_edge): Likewise.
23054 (create_phi_basis): Use wide-int interfaces.
23055 (replace_conditional_candidate): Likewise.
23056 (record_increment): Take a widest_int instead of a double_int.
23057 (record_phi_increments): Use wide-int interfaces.
23058 (phi_incr_cost): Take a widest_int instead of a double_int.
23059 (lowest_cost_path): Likewise.
23060 (total_savings): Likewise.
23061 (analyze_increments): Use wide-int interfaces.
23062 (ncd_with_phi): Take a widest_int instead of a double_int.
23063 (ncd_of_cand_and_phis): Likewise.
23064 (nearest_common_dominator_for_cands): Likewise.
23065 (insert_initializers): Use wide-int interfaces.
23066 (all_phi_incrs_profitable): Likewise.
23067 (replace_one_candidate): Likewise.
23068 (replace_profitable_candidates): Likewise.
23069 * godump.c: Include wide-int-print.h.
23070 (go_output_typedef): Use wide-int interfaces.
23071 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
23072 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
23073 (build_loop_iteration_domains): Likewise.
23074 * hooks.h: Include wide-int.h rather than double-int.h.
23075 (hook_bool_dint_dint_uint_bool_true): Delete.
23076 (hook_bool_wint_wint_uint_bool_true): Declare.
23077 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
23078 (hook_bool_wint_wint_uint_bool_true): New.
23079 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
23081 (ubsan_expand_si_overflow_mul_check): Likewise.
23082 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
23083 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
23084 (get_ancestor_addr_info): Likewise.
23085 (ipa_modify_call_arguments): Likewise.
23086 * loop-doloop.c (doloop_modify): Likewise.
23087 (doloop_optimize): Likewise.
23088 * loop-iv.c (iv_number_of_iterations): Likewise.
23089 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
23090 (unroll_loop_constant_iterations): Likewise.
23091 (decide_unroll_runtime_iterations): Likewise.
23092 (unroll_loop_runtime_iterations): Likewise.
23093 (decide_peel_simple): Likewise.
23094 (decide_unroll_stupid): Likewise.
23095 * lto-streamer-in.c (streamer_read_wi): Add.
23096 (input_cfg): Use wide-int interfaces.
23097 (lto_input_tree_1): Likewise.
23098 * lto-streamer-out.c (streamer_write_wi): Add.
23099 (hash_tree): Use wide-int interfaces.
23100 (output_cfg): Likewise.
23101 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
23102 (GTFILES): Add wide-int.h and signop.h.
23103 (TAGS): Look for .cc files too.
23104 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
23105 * optabs.c (expand_subword_shift): Likewise.
23106 (expand_doubleword_shift): Likewise.
23107 (expand_absneg_bit): Likewise.
23108 (expand_copysign_absneg): Likewise.
23109 (expand_copysign_bit): Likewise.
23110 * postreload.c (reload_cse_simplify_set): Likewise.
23111 * predict.c (predict_iv_comparison): Likewise.
23112 * pretty-print.h: Include wide-int-print.h.
23114 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
23115 * print-tree.c: Include wide-int-print.h.
23116 (print_node_brief): Use wide-int interfaces.
23117 (print_node): Likewise.
23118 * read-rtl.c (validate_const_wide_int): New.
23119 (read_rtx_code): Add CONST_WIDE_INT case.
23120 * real.c: Include wide-int.h.
23121 (real_to_integer2): Delete.
23122 (real_to_integer): New function, returning a wide_int.
23123 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
23124 (ten_to_ptwo): Update call to real_from_integer.
23125 (real_digit): Likewise.
23126 * real.h: Include signop.h, wide-int.h and insn-modes.h.
23127 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
23128 (REAL_VALUE_TO_INT): Delete.
23129 (real_to_integer): Declare a wide-int form.
23130 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
23131 * recog.c (const_int_operand): Improve comment.
23132 (const_scalar_int_operand): New.
23133 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
23134 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
23135 (split_double): Likewise.
23136 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
23137 (rtx_size): Likewise.
23138 (rtx_alloc_stat_v): New.
23139 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
23140 (cwi_output_hex): New.
23141 (iterative_hash_rtx): Handle CONST_WIDE_INT.
23142 (cwi_check_failed_bounds): New.
23143 * rtl.def (CONST_WIDE_INT): New.
23144 * rtl.h: Include <utility> and wide-int.h.
23145 (struct hwivec_def): New.
23146 (CWI_GET_NUM_ELEM): New.
23147 (CWI_PUT_NUM_ELEM): New.
23148 (struct rtx_def): Add num_elem and hwiv.
23149 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
23150 (CASE_CONST_UNIQUE): Likewise.
23151 (CASE_CONST_ANY): Likewise.
23152 (CONST_SCALAR_INT_P): Likewise.
23153 (CONST_WIDE_INT_P): New.
23155 (HWIVEC_CHECK): New.
23156 (cwi_check_failed_bounds): New.
23158 (HWIVEC_CHECK): New.
23159 (CONST_WIDE_INT_VEC) New.
23160 (CONST_WIDE_INT_NUNITS) New.
23161 (CONST_WIDE_INT_ELT) New.
23162 (rtx_mode_t): New type.
23163 (wi::int_traits <rtx_mode_t>): New.
23165 (wi::min_value): New.
23166 (wi::max_value): New.
23168 (const_wide_int_alloc): New.
23169 (immed_wide_int_const): New.
23170 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
23171 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
23172 * signop.h: New file.
23173 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
23174 (simplify_const_unary_operation): Use wide-int interfaces.
23175 (simplify_binary_operation_1): Likewise.
23176 (simplify_const_binary_operation): Likewise.
23177 (simplify_const_relational_operation): Likewise.
23178 (simplify_immed_subreg): Likewise.
23179 * stmt.c (expand_case): Likewise.
23180 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
23181 signop rather than a bool.
23182 * stor-layout.c (layout_type): Use wide-int interfaces.
23183 (initialize_sizetypes): Update calls to
23184 set_min_and_max_values_for_integral_type.
23185 (set_min_and_max_values_for_integral_type): Take a signop rather
23186 than a bool. Use wide-int interfaces.
23187 (fixup_signed_type): Update accordingly. Remove
23188 HOST_BITS_PER_DOUBLE_INT limit.
23189 (fixup_unsigned_type): Likewise.
23190 * system.h (STATIC_CONSTANT_P): New.
23191 (STATIC_ASSERT): New.
23192 * target.def (can_use_doloop_p): Take widest_ints rather than
23194 * target.h: Include wide-int.h rather than double-int.h.
23195 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
23197 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
23198 rather than INT_CST_LT_UNSIGNED.
23199 (can_use_doloop_if_innermost): Take widest_ints rather than
23201 * tree-affine.c: Include wide-int-print.h.
23202 (double_int_ext_for_comb): Delete.
23203 (wide_int_ext_for_comb): New.
23204 (aff_combination_zero): Use wide-int interfaces.
23205 (aff_combination_const): Take a widest_int instead of a double_int.
23206 (aff_combination_elt): Use wide-int interfaces.
23207 (aff_combination_scale): Take a widest_int instead of a double_int.
23208 (aff_combination_add_elt): Likewise.
23209 (aff_combination_add_cst): Likewise.
23210 (aff_combination_add): Use wide-int interfaces.
23211 (aff_combination_convert): Likewise.
23212 (tree_to_aff_combination): Likewise.
23213 (add_elt_to_tree): Take a widest_int instead of a double_int.
23214 (aff_combination_to_tree): Use wide-int interfaces.
23215 (aff_combination_remove_elt): Likewise.
23216 (aff_combination_add_product): Take a widest_int instead of
23218 (aff_combination_mult): Use wide-int interfaces.
23219 (aff_combination_expand): Likewise.
23220 (double_int_constant_multiple_p): Delete.
23221 (wide_int_constant_multiple_p): New.
23222 (aff_combination_constant_multiple_p): Take a widest_int pointer
23223 instead of a double_int pointer.
23224 (print_aff): Use wide-int interfaces.
23225 (get_inner_reference_aff): Take a widest_int pointer
23226 instead of a double_int pointer.
23227 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
23228 * tree-affine.h: Include wide-int.h.
23229 (struct aff_comb_elt): Change type of coef to widest_int.
23230 (struct affine_tree_combination): Change type of offset to widest_int.
23231 (double_int_ext_for_comb): Delete.
23232 (wide_int_ext_for_comb): New.
23233 (aff_combination_const): Use widest_int instead of double_int.
23234 (aff_combination_scale): Likewise.
23235 (aff_combination_add_elt): Likewise.
23236 (aff_combination_constant_multiple_p): Likewise.
23237 (get_inner_reference_aff): Likewise.
23238 (aff_comb_cannot_overlap_p): Likewise.
23239 (aff_combination_zero_p): Use wide-int interfaces.
23240 * tree.c: Include tree.h.
23241 (init_ttree): Use make_int_cst.
23242 (tree_code_size): Removed code for INTEGER_CST case.
23243 (tree_size): Add INTEGER_CST case.
23244 (make_node_stat): Update comment.
23245 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
23246 (build_int_cst_type): Use wide-int interfaces.
23247 (double_int_to_tree): Likewise.
23248 (double_int_fits_to_tree_p): Delete.
23249 (force_fit_type_double): Delete.
23250 (force_fit_type): New.
23251 (int_cst_hash_hash): Use wide-int interfaces.
23252 (int_cst_hash_eq): Likewise.
23253 (build_int_cst_wide): Delete.
23254 (wide_int_to_tree): New.
23255 (cache_integer_cst): Use wide-int interfaces.
23256 (build_low_bits_mask): Likewise.
23257 (cst_and_fits_in_hwi): Likewise.
23258 (real_value_from_int_cst): Likewise.
23259 (make_int_cst_stat): New.
23260 (integer_zerop): Use wide_int interfaces.
23261 (integer_onep): Likewise.
23262 (integer_all_onesp): Likewise.
23263 (integer_pow2p): Likewise.
23264 (integer_nonzerop): Likewise.
23265 (tree_log2): Likewise.
23266 (tree_floor_log2): Likewise.
23267 (tree_ctz): Likewise.
23268 (int_size_in_bytes): Likewise.
23269 (mem_ref_offset): Return an offset_int rather than a double_int.
23270 (build_type_attribute_qual_variant): Use wide_int interfaces.
23271 (type_hash_eq): Likewise
23272 (tree_int_cst_equal): Likewise.
23273 (tree_int_cst_lt): Delete.
23274 (tree_int_cst_compare): Likewise.
23275 (tree_fits_shwi_p): Use wide_int interfaces.
23276 (tree_fits_uhwi_p): Likewise.
23277 (tree_int_cst_sign_bit): Likewise.
23278 (tree_int_cst_sgn): Likewise.
23279 (tree_int_cst_min_precision): Take a signop rather than a bool.
23280 (simple_cst_equal): Use wide_int interfaces.
23281 (compare_tree_int): Likewise.
23282 (iterative_hash_expr): Likewise.
23283 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
23285 (get_type_static_bounds): Use wide_int interfaces.
23286 (tree_int_cst_elt_check_failed): New.
23287 (build_common_tree_nodes): Reordered to set prec before filling in
23289 (int_cst_value): Check cst_and_fits_in_hwi.
23290 (widest_int_cst_value): Use wide_int interfaces.
23291 (upper_bound_in_type): Likewise.
23292 (lower_bound_in_type): Likewise.
23293 (num_ending_zeros): Likewise.
23294 (drop_tree_overflow): Likewise.
23295 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
23296 (gen_conditions_for_pow_cst_base): Likewise.
23297 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
23298 (group_case_labels_stmt): Use wide-int interfaces.
23299 (verify_gimple_assign_binary): Likewise.
23300 (print_loop): Likewise.
23301 * tree-chrec.c (tree_fold_binomial): Likewise.
23302 * tree-core.h (struct tree_base): Add int_length.
23303 (struct tree_int_cst): Change rep of value.
23304 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
23305 (dr_may_alias_p): Likewise.
23306 (max_stmt_executions_tree): Likewise.
23307 * tree.def (INTEGER_CST): Update comment.
23308 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
23309 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
23310 * tree-dump.c: Include wide-int.h and wide-int-print.h.
23311 (dequeue_and_dump): Use wide-int interfaces.
23312 * tree.h: Include wide-int.h.
23313 (NULL_TREE): Moved to earlier loc in file.
23314 (TREE_INT_CST_ELT_CHECK): New.
23315 (tree_int_cst_elt_check_failed): New.
23317 (TREE_INT_CST): Delete.
23318 (TREE_INT_CST_LOW): Use wide-int interfaces.
23319 (TREE_INT_CST_HIGH): Delete.
23320 (TREE_INT_CST_NUNITS): New.
23321 (TREE_INT_CST_EXT_NUNITS): Likewise.
23322 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
23323 (TREE_INT_CST_ELT): Likewise.
23324 (INT_CST_LT): Delete.
23325 (tree_int_cst_elt_check): New (two forms).
23326 (type_code_size): Update comment.
23327 (make_int_cst_stat, make_int_cst): New.
23328 (tree_to_double_int): Delete.
23329 (double_int_fits_to_tree_p): Delete.
23330 (force_fit_type_double): Delete.
23331 (build_int_cstu): Replace with out-of-line function.
23332 (build_int_cst_wide): Delete.
23333 (tree_int_cst_lt): Define inline.
23334 (tree_int_cst_le): New.
23335 (tree_int_cst_compare): Define inline.
23336 (tree_int_cst_min_precision): Take a signop rather than a bool.
23337 (wi::int_traits <const_tree>): New.
23338 (wi::int_traits <tree>): New.
23339 (wi::extended_tree): New.
23340 (wi::int_traits <wi::extended_tree>): New.
23341 (wi::to_widest): New.
23342 (wi::to_offset): New.
23343 (wi::fits_to_tree_p): New.
23344 (wi::min_value): New.
23345 (wi::max_value): New.
23346 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
23347 (copy_tree_body_r): Likewise.
23348 * tree-object-size.c (compute_object_offset): Likewise.
23349 (addr_object_size): Likewise.
23350 * tree-predcom.c: Include wide-int-print.h.
23351 (struct dref_d): Change type of offset to widest_int.
23352 (dump_dref): Call wide-int printer.
23353 (aff_combination_dr_offset): Use wide-int interfaces.
23354 (determine_offset): Take a widest_int pointer rather than a
23355 double_int pointer.
23356 (split_data_refs_to_components): Use wide-int interfaces.
23357 (suitable_component_p): Likewise.
23358 (order_drefs): Likewise.
23359 (add_ref_to_chain): Likewise.
23360 (valid_initializer_p): Likewise.
23361 (determine_roots_comp): Likewise.
23362 * tree-pretty-print.c: Include wide-int-print.h.
23363 (dump_generic_node): Use wide-int interfaces.
23364 * tree-sra.c (sra_ipa_modify_expr): Likewise.
23365 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
23366 (move_fixed_address_to_symbol): Likewise.
23367 (move_hint_to_base): Likewise.
23368 (move_pointer_to_base): Likewise.
23369 (move_variant_to_index): Likewise.
23370 (most_expensive_mult_to_index): Likewise.
23371 (addr_to_parts): Likewise.
23372 (copy_ref_info): Likewise.
23373 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
23374 (indirect_refs_may_alias_p): Likewise.
23375 (stmt_kills_ref_p_1): Likewise.
23376 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
23377 * tree-ssa-ccp.c: Update comment at top of file. Include
23379 (struct prop_value_d): Change type of mask to widest_int.
23380 (extend_mask): New function.
23381 (dump_lattice_value): Use wide-int interfaces.
23382 (get_default_value): Likewise.
23383 (set_constant_value): Likewise.
23384 (set_value_varying): Likewise.
23385 (valid_lattice_transition): Likewise.
23386 (set_lattice_value): Likewise.
23387 (value_to_double_int): Delete.
23388 (value_to_wide_int): New.
23389 (get_value_from_alignment): Use wide-int interfaces.
23390 (get_value_for_expr): Likewise.
23391 (do_dbg_cnt): Likewise.
23392 (ccp_finalize): Likewise.
23393 (ccp_lattice_meet): Likewise.
23394 (bit_value_unop_1): Use widest_ints rather than double_ints.
23395 (bit_value_binop_1): Likewise.
23396 (bit_value_unop): Use wide-int interfaces.
23397 (bit_value_binop): Likewise.
23398 (bit_value_assume_aligned): Likewise.
23399 (evaluate_stmt): Likewise.
23400 (ccp_fold_stmt): Likewise.
23401 (visit_cond_stmt): Likewise.
23402 (ccp_visit_stmt): Likewise.
23403 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
23404 (constant_pointer_difference): Likewise.
23405 (associate_pointerplus): Likewise.
23406 (combine_conversions): Likewise.
23407 * tree-ssa-loop.h: Include wide-int.h.
23408 (struct tree_niter_desc): Change type of max to widest_int.
23409 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
23410 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
23411 (remove_redundant_iv_tests): Likewise.
23412 (canonicalize_loop_induction_variables): Likewise.
23413 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
23414 (constant_multiple_of): Take a widest_int pointer instead of
23415 a double_int pointer.
23416 (get_computation_aff): Use wide-int interfaces.
23417 (ptr_difference_cost): Likewise.
23418 (difference_cost): Likewise.
23419 (get_loop_invariant_expr_id): Likewise.
23420 (get_computation_cost_at): Likewise.
23421 (iv_elimination_compare_lt): Likewise.
23422 (may_eliminate_iv): Likewise.
23423 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
23424 instead of double_int.
23425 (max_loop_iterations): Likewise.
23426 (max_stmt_executions): Likewise.
23427 (estimated_stmt_executions): Likewise.
23428 * tree-ssa-loop-niter.c: Include wide-int-print.h.
23429 (split_to_var_and_offset): Use wide-int interfaces.
23430 (determine_value_range): Likewise.
23431 (bound_difference_of_offsetted_base): Likewise.
23432 (bounds_add): Take a widest_int instead of a double_int.
23433 (number_of_iterations_ne_max): Use wide-int interfaces.
23434 (number_of_iterations_ne): Likewise.
23435 (number_of_iterations_lt_to_ne): Likewise.
23436 (assert_loop_rolls_lt): Likewise.
23437 (number_of_iterations_lt): Likewise.
23438 (number_of_iterations_le): Likewise.
23439 (number_of_iterations_cond): Likewise.
23440 (number_of_iterations_exit): Likewise.
23441 (finite_loop_p): Likewise.
23442 (derive_constant_upper_bound_assign): Likewise.
23443 (derive_constant_upper_bound): Return a widest_int.
23444 (derive_constant_upper_bound_ops): Likewise.
23445 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
23446 (record_estimate): Take a widest_int rather than a double_int.
23447 (record_nonwrapping_iv): Use wide-int interfaces.
23448 (double_int_cmp): Delete.
23449 (wide_int_cmp): New.
23450 (bound_index): Take a widest_int rather than a double_int.
23451 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
23452 (maybe_lower_iteration_bound): Likewise.
23453 (estimate_numbers_of_iterations_loop): Likewise.
23454 (estimated_loop_iterations): Take a widest_int pointer than than
23455 a double_int pointer.
23456 (estimated_loop_iterations_int): Use wide-int interfaces.
23457 (max_loop_iterations): Take a widest_int pointer than than
23458 a double_int pointer.
23459 (max_loop_iterations_int): Use wide-int interfaces.
23460 (max_stmt_executions): Take a widest_int pointer than than
23461 a double_int pointer.
23462 (estimated_stmt_executions): Likewise.
23463 (n_of_executions_at_most): Use wide-int interfaces.
23464 (scev_probably_wraps_p): Likewise.
23465 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
23466 to real_to_integer.
23467 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
23469 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
23470 double_ints. Adjust for trailing_wide_ints <3> representation.
23471 (set_nonzero_bits): Likewise.
23472 (get_range_info): Return wide_ints rather than double_ints.
23473 Adjust for trailing_wide_ints <3> representation.
23474 (get_nonzero_bits): Likewise.
23475 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
23477 * tree-ssanames.h (struct range_info_def): Replace min, max and
23478 nonzero_bits with a trailing_wide_ints <3>.
23479 (set_range_info): Use wide_int_refs rather than double_ints.
23480 (set_nonzero_bits): Likewise.
23481 (get_range_info): Return wide_ints rather than double_ints.
23482 (get_nonzero_bits): Likewise.
23483 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
23484 * tree-ssa-pre.c (phi_translate_1): Likewise.
23485 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
23486 (acceptable_pow_call): Likewise.
23487 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
23489 (vn_reference_fold_indirect): Likewise.
23490 (vn_reference_maybe_forwprop_address): Likewise.
23491 (valueize_refs_1): Likewise.
23492 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
23493 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
23494 tree_int_cst_lt and tree_int_cst_le.
23495 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
23497 (streamer_alloc_tree): Likewise.
23498 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
23499 (streamer_write_tree_header): Likewise.
23500 (streamer_write_integer_cst): Likewise.
23501 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
23502 (build_constructors): Likewise.
23503 (array_value_type): Likewise.
23504 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
23505 (vect_check_gather): Likewise.
23506 * tree-vect-generic.c (build_replicated_const): Likewise.
23507 (expand_vector_divmod): Likewise.
23508 * tree-vect-loop.c (vect_transform_loop): Likewise.
23509 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
23510 (vect_do_peeling_for_alignment): Likewise.
23511 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
23512 * tree-vrp.c: Include wide-int.h.
23513 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
23514 (extract_range_from_assert): Use wide-int interfaces.
23515 (vrp_int_const_binop): Likewise.
23516 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
23517 double_int pointers.
23518 (ranges_from_anti_range): Use wide-int interfaces.
23519 (quad_int_cmp): Delete.
23520 (quad_int_pair_sort): Likewise.
23521 (extract_range_from_binary_expr_1): Use wide-int interfaces.
23522 (extract_range_from_unary_expr_1): Likewise.
23523 (adjust_range_with_scev): Likewise.
23524 (masked_increment): Take and return wide_ints rather than double_ints.
23525 (register_edge_assert_for_2): Use wide-int interfaces.
23526 (check_array_ref): Likewise.
23527 (search_for_addr_array): Likewise.
23528 (maybe_set_nonzero_bits): Likewise.
23529 (union_ranges): Pass an integer of the correct type instead of
23530 using integer_one_node.
23531 (intersect_ranges): Likewise.
23532 (simplify_truth_ops_using_ranges): Likewise.
23533 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
23534 (range_fits_type_p): Likewise.
23535 (simplify_cond_using_ranges): Likewise. Take a signop rather than
23537 (simplify_conversion_using_ranges): Use wide-int interfaces.
23538 (simplify_float_conversion_using_ranges): Likewise.
23539 (vrp_finalize): Likewise.
23540 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
23541 (gimple_stringops_transform): Likewise.
23542 * varasm.c (decode_addr_const): Likewise.
23543 (const_hash_1): Likewise.
23544 (const_rtx_hash_1): Likewise
23545 (output_constant): Likewise.
23546 (array_size_for_constructor): Likewise.
23547 (output_constructor_regular_field): Likewise.
23548 (output_constructor_bitfield): Likewise.
23549 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
23550 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
23552 * gencheck.c: Define BITS_PER_UNIT.
23553 * wide-int.cc: New.
23555 * wide-int-print.cc: New.
23556 * wide-int-print.h: New.
23558 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23560 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
23562 2014-05-06 Richard Biener <rguenther@suse.de>
23564 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
23565 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
23566 (TODO_verify_all): Adjust.
23567 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
23568 TODO_verify_stmts and TODO_verify_rtl_sharing.
23569 * bb-reorder.c: Likewise.
23570 * cfgexpand.c: Likewise.
23571 * cprop.c: Likewise.
23573 * function.c: Likewise.
23574 * fwprop.c: Likewise.
23575 * gcse.c: Likewise.
23576 * gimple-ssa-isolate-paths.c: Likewise.
23577 * gimple-ssa-strength-reduction.c: Likewise.
23578 * ipa-split.c: Likewise.
23579 * loop-init.c: Likewise.
23580 * loop-unroll.c: Likewise.
23581 * lower-subreg.c: Likewise.
23582 * modulo-sched.c: Likewise.
23583 * postreload-gcse.c: Likewise.
23584 * predict.c: Likewise.
23585 * recog.c: Likewise.
23586 * sched-rgn.c: Likewise.
23587 * store-motion.c: Likewise.
23588 * tracer.c: Likewise.
23589 * trans-mem.c: Likewise.
23590 * tree-call-cdce.c: Likewise.
23591 * tree-cfg.c: Likewise.
23592 * tree-cfgcleanup.c: Likewise.
23593 * tree-complex.c: Likewise.
23594 * tree-eh.c: Likewise.
23595 * tree-emutls.c: Likewise.
23596 * tree-if-conv.c: Likewise.
23597 * tree-into-ssa.c: Likewise.
23598 * tree-loop-distribution.c: Likewise.
23599 * tree-object-size.c: Likewise.
23600 * tree-parloops.c: Likewise.
23601 * tree-pass.h: Likewise.
23602 * tree-sra.c: Likewise.
23603 * tree-ssa-ccp.c: Likewise.
23604 * tree-ssa-copy.c: Likewise.
23605 * tree-ssa-copyrename.c: Likewise.
23606 * tree-ssa-dce.c: Likewise.
23607 * tree-ssa-dom.c: Likewise.
23608 * tree-ssa-dse.c: Likewise.
23609 * tree-ssa-forwprop.c: Likewise.
23610 * tree-ssa-ifcombine.c: Likewise.
23611 * tree-ssa-loop-ch.c: Likewise.
23612 * tree-ssa-loop-ivcanon.c: Likewise.
23613 * tree-ssa-loop.c: Likewise.
23614 * tree-ssa-math-opts.c: Likewise.
23615 * tree-ssa-phiopt.c: Likewise.
23616 * tree-ssa-phiprop.c: Likewise.
23617 * tree-ssa-pre.c: Likewise.
23618 * tree-ssa-reassoc.c: Likewise.
23619 * tree-ssa-sink.c: Likewise.
23620 * tree-ssa-strlen.c: Likewise.
23621 * tree-ssa-tail-merge.c: Likewise.
23622 * tree-ssa-uncprop.c: Likewise.
23623 * tree-switch-conversion.c: Likewise.
23624 * tree-tailcall.c: Likewise.
23625 * tree-vect-generic.c: Likewise.
23626 * tree-vectorizer.c: Likewise.
23627 * tree-vrp.c: Likewise.
23628 * tsan.c: Likewise.
23629 * var-tracking.c: Likewise.
23630 * bt-load.c: Likewise.
23631 * cfgcleanup.c: Likewise.
23632 * combine-stack-adj.c: Likewise.
23633 * combine.c: Likewise.
23634 * compare-elim.c: Likewise.
23635 * config/epiphany/resolve-sw-modes.c: Likewise.
23636 * config/i386/i386.c: Likewise.
23637 * config/mips/mips.c: Likewise.
23638 * config/s390/s390.c: Likewise.
23639 * config/sh/sh_treg_combine.cc: Likewise.
23640 * config/sparc/sparc.c: Likewise.
23643 * final.c: Likewise.
23644 * ifcvt.c: Likewise.
23645 * mode-switching.c: Likewise.
23646 * passes.c: Likewise.
23647 * postreload.c: Likewise.
23649 * reg-stack.c: Likewise.
23650 * regcprop.c: Likewise.
23651 * regrename.c: Likewise.
23654 2014-05-06 Richard Biener <rguenther@suse.de>
23656 PR middle-end/61070
23657 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
23658 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
23660 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
23663 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
23665 2014-05-05 Radovan Obradovic <robradovic@mips.com>
23666 Tom de Vries <tom@codesourcery.com>
23668 * target.def (call_fusage_contains_non_callee_clobbers): New
23670 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
23672 (@node Miscellaneous Register Hooks): New node.
23673 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
23674 * doc/tm.texi: Regenerate.
23676 2014-05-05 Marek Polacek <polacek@redhat.com>
23679 * opts.c (common_handle_option): Call error_at instead of warning_at.
23681 2014-05-05 Richard Biener <rguenther@suse.de>
23683 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
23684 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
23685 under the TODO_verify_il umbrella.
23687 2014-05-05 Richard Biener <rguenther@suse.de>
23689 * passes.c (execute_function_todo): Move TODO_verify_flow under
23690 the TODO_verify_ul umbrella.
23692 2014-05-05 Richard Biener <rguenther@suse.de>
23694 PR middle-end/61010
23695 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
23696 X & CST away from a CST that is the mask of a mode.
23698 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23700 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
23701 int argument to enum machine_mode.
23702 (picochip_class_max_nregs): Ditto.
23703 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
23704 (picochip_class_max_nregs): Ditto.
23706 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23708 * target.def: Add new target hook.
23709 * doc/tm.texi: Regenerate.
23710 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
23711 * targhooks.c (default_keep_leaf_when_profiled): New function.
23713 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
23714 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
23716 2014-05-05 Bin Cheng <bin.cheng@arm.com>
23718 PR tree-optimization/60363
23719 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
23720 (copy_phi_args): New parameters. Call get_value_locus_in_path.
23721 (update_destination_phis): New parameter.
23722 (create_edge_and_update_destination_phis): Ditto.
23723 (ssa_fix_duplicate_block_edges): Pass new arguments.
23724 (thread_single_edge): Ditto.
23726 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
23728 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
23729 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
23730 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
23731 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
23732 Use RS6000_BTM_HARD_FLOAT.
23733 (BU_MISC_2): Likewise.
23734 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
23735 RS6000_BTM_HARD_FLOAT.
23736 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
23737 is explicitly used.
23738 (rs6000_invalid_builtin): Add hard floating builtin support.
23739 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
23740 hard float builtins.
23741 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
23743 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
23745 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
23746 Add missing function* argument.
23748 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
23750 * lra-constraints.c (valid_address_p): Move earlier in file.
23751 Add a constraint argument to the address_info version.
23752 (satisfies_memory_constraint_p): New function.
23753 (satisfies_address_constraint_p): Likewise.
23754 (process_alt_operands, curr_insn_transform): Use them.
23755 (process_address): Pass the constraint to valid_address_p when
23756 checking address operands.
23758 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
23760 * config/mips/mips.c (mips_isa_rev): New variable.
23761 (mips_set_architecture): Set it.
23762 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
23764 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
23765 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
23766 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
23767 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
23768 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
23769 conditions in terms of mips_isa_rev.
23770 (mips_isa_rev): Declare.
23772 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
23774 * config/sh/sh-mem.cc: Use tabs instead of spaces.
23775 (prob_unlikely, prob_likely): Make variables const.
23777 2014-05-03 Denis Chertykov <chertykov@gmail.com>
23779 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
23781 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
23783 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
23785 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
23787 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
23788 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
23789 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
23791 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
23792 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
23794 Replace usage of ROUND_REG with sh_round_reg.
23795 Use CEIL instead of ROUND_ADVANCE.
23797 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
23800 * config/sh/sh.c: Include stdlib headers before everything else.
23802 2014-05-02 Jakub Jelinek <jakub@redhat.com>
23804 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
23805 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
23806 (gimplify_adjust_omp_clauses): Simd region is never
23807 directly nested in combined parallel. Instead, for linear
23808 with copyin/copyout, if in combined for simd loop, make decl
23809 firstprivate/lastprivate on OMP_FOR.
23810 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
23811 expand_omp_for_static_chunk): When setting endvar, also set
23812 fd->loop.v to the same value.
23814 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23816 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
23818 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
23820 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
23823 2014-05-02 Marek Polacek <polacek@redhat.com>
23825 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
23827 2014-05-02 Kito Cheng <kito@0xlab.org>
23829 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
23830 to a C expression marco.
23831 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
23832 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
23833 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
23834 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
23835 HONOR_REG_ALLOC_ORDER.
23836 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
23838 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23840 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
23842 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23844 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
23846 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
23848 * tree-if-conv.c (is_cond_scalar_reduction): New function.
23849 (convert_scalar_cond_reduction): Likewise.
23850 (predicate_scalar_phi): Add recognition and transformation
23851 of simple conditioanl reduction to be vectorizable.
23853 2014-05-01 Marek Polacek <polacek@redhat.com>
23856 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
23858 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
23860 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
23861 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
23862 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
23863 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
23864 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
23865 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
23866 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
23867 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
23869 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
23871 * config/arc/arc.opt (mlra): Move comment above option name
23872 to avoid mis-parsing as language options.
23874 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23876 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
23877 * config/sol2.h: ... here.
23878 * config/sol2-10.h: Remove.
23880 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
23881 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
23882 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
23883 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
23884 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
23885 * config/sol2.h: ... here.
23886 (SECTION_NAME_FORMAT): Don't redefine.
23887 (STARTFILE_ARCH32_SPEC): Rename to ...
23888 (STARTFILE_ARCH_SPEC): ... this.
23889 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
23890 * config/sparc/sol2.h: ... here.
23891 (SECTION_NAME_FORMAT): Don't undef.
23892 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
23893 (SUBTARGET_EXTRA_SPECS): Remove.
23894 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
23896 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
23897 (MD_STARTFILE_PREFIX): Remove.
23898 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
23899 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
23900 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
23901 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
23902 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
23903 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
23904 * config/i386/sol2.h: ... here.
23905 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
23906 * config/i386/sol2-bi.h: Remove.
23907 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
23908 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
23910 * config/i386/t-sol2-64: Rename to ...
23911 * config/i386/t-sol2: ... this.
23912 * config/sparc/t-sol2-64: Rename to ...
23913 * config/sparc/t-sol2: ... this.
23915 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
23916 sol2_tm_file_head, sol2_tm_file_tail.
23917 Include ${cpu_type}/sol2.h before sol2.h.
23919 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
23920 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
23921 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
23922 Reflect i386/t-sol2-64 renaming.
23923 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
23924 Reflect sparc/t-sol2-64 renaming.
23926 2014-04-30 Richard Biener <rguenther@suse.de>
23928 * passes.c (execute_function_todo): Move TODO_verify_stmts
23929 and TODO_verify_ssa under the TODO_verify_il umbrella.
23930 * tree-ssa.h (verify_ssa): Adjust prototype.
23931 * tree-ssa.c (verify_ssa): Add parameter to tell whether
23932 we should verify SSA operands.
23933 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
23934 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
23935 whether we should verify whether not throwing stmts have EH info.
23936 * graphite-scop-detection.c (create_sese_edges): Adjust.
23937 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
23938 * tree-eh.c (lower_try_finally_switch): Do not add the
23939 default case label twice.
23941 2014-04-30 Marek Polacek <polacek@redhat.com>
23943 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
23944 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
23945 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
23946 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
23948 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
23950 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
23951 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
23952 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
23953 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
23954 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
23955 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
23956 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
23957 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
23959 2014-04-29 David Malcolm <dmalcolm@redhat.com>
23961 * tree-cfg.c (dump_function_to_file): Dump the return type of
23962 functions, in a line to itself before the function body, mimicking
23963 the layout of a C function.
23965 2014-04-29 Jakub Jelinek <jakub@redhat.com>
23967 PR tree-optimization/60971
23968 * tree-tailcall.c (process_assignment): Reject conversions which
23971 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
23973 * calls.c (initialize_argument_information): Always treat
23974 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
23975 (expand_call): Likewise.
23976 (emit_library_call_calue_1): Likewise.
23977 * expr.c (PUSH_ARGS_REVERSED): Do not define.
23978 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
23981 2014-04-29 Nick Clifton <nickc@redhat.com>
23983 * config/msp430/msp430.md (umulsidi): Fix typo.
23984 (mulhisi3): Enable even inside interrupt handlers.
23985 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
23986 bigger return address pushed in large mode.
23988 2014-04-29 Nick Clifton <nickc@redhat.com>
23990 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
23991 (arc_init_reg_tables): Use a machine_mode enum to iterate over
23993 * config/m32r/m32r.c (init_reg_tables): Likewise.
23994 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
23995 enum to hold the modes.
23997 2014-04-29 Richard Biener <rguenther@suse.de>
23999 * dominance.c (free_dominance_info): Add overload with
24000 function parameter.
24001 (dom_info_state): Likewise.
24002 (dom_info_available_p): Likewise.
24003 * basic-block.h (free_dominance_info, dom_info_state,
24004 dom_info_available_p): Declare overloads.
24005 * passes.c (execute_function_todo): Verify that verifiers
24006 don't change dominator info state. Drop dominator info
24007 for IPA pass invocations.
24008 * cgraph.c (release_function_body): Restore asserts that
24009 dominator information is released.
24011 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
24013 * doc/invoke.texi: Fix typo.
24014 * tree-vrp.c: Fix typos.
24015 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
24017 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24019 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
24021 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
24023 * config/aarch64/aarch64-builtins.c
24024 (aarch64_types_storestruct_lane_qualifiers): New.
24025 (TYPES_STORESTRUCT_LANE): Likewise.
24026 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
24027 (st3_lane): Likewise.
24028 (st4_lane): Likewise.
24029 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
24030 (vec_store_lanesci_lane<mode>): Likewise.
24031 (vec_store_lanesxi_lane<mode>): Likewise.
24032 (aarch64_st2_lane<VQ:mode>): Likewise.
24033 (aarch64_st3_lane<VQ:mode>): Likewise.
24034 (aarch64_st4_lane<VQ:mode>): Likewise.
24035 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
24036 * config/aarch64/arm_neon.h
24037 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
24038 use new macro arguments.
24039 (__ST3_LANE_FUNC): Likewise.
24040 (__ST4_LANE_FUNC): Likewise.
24041 * config/aarch64/iterators.md (V_TWO_ELEM): New.
24042 (V_THREE_ELEM): Likewise.
24043 (V_FOUR_ELEM): Likewise.
24045 2014-04-28 David Malcolm <dmalcolm@redhat.com>
24047 * doc/gimple.texi: Replace the description of the now-defunct
24048 union gimple_statement_d with a diagram showing the
24049 gimple_statement_base class hierarchy and its relationships to
24050 the GSS_ and GIMPLE_ enums.
24052 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
24054 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
24055 * config/aarch64/aarch64.c
24056 (aarch64_cannot_change_mode_class): Weaken conditions.
24057 (aarch64_modes_tieable_p): New.
24058 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
24060 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
24062 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24063 (loadsync_<mode>): Change mode.
24064 (load_quadpti, store_quadpti): New.
24065 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24066 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24068 2014-04-28 Martin Jambor <mjambor@suse.cz>
24070 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
24071 same alias type as the original statement.
24072 (subreplacement_assignment_data): New type.
24073 (handle_unscalarized_data_in_subtree): New type of parameter,
24074 generate new memory accesses with same alias type as the original
24076 (load_assign_lhs_subreplacements): Likewise.
24077 (sra_modify_constructor_assign): Generate new memory accesses with
24078 same alias type as the original statement.
24080 2014-04-28 Richard Biener <rguenther@suse.de>
24082 * tree-pass.h (TODO_verify_il): Define.
24083 (TODO_verify_all): Complete properly.
24084 * passes.c (execute_function_todo): Move existing loop-closed
24085 SSA verification under TODO_verify_il.
24086 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
24087 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
24088 Fix tree sharing issue.
24090 2014-04-28 Richard Biener <rguenther@suse.de>
24092 PR middle-end/60092
24093 * builtins.def (DEF_C11_BUILTIN): Add.
24094 (BUILT_IN_ALIGNED_ALLOC): Likewise.
24095 * coretypes.h (enum function_class): Add function_c11_misc.
24096 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
24097 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
24098 (call_may_clobber_ref_p_1): Likewise.
24099 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
24100 (mark_all_reaching_defs_necessary_1): Likewise.
24101 (propagate_necessity): Likewise.
24102 (eliminate_unnecessary_stmts): Likewise.
24103 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
24105 2014-04-28 Richard Biener <rguenther@suse.de>
24107 * tree-vrp.c (vrp_var_may_overflow): Remove.
24108 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
24109 with overflow immediately bump to one before that value and
24110 let iteration figure out overflow status.
24112 2014-04-28 Richard Biener <rguenther@suse.de>
24114 * configure.ac: Do valgrind header checks unconditionally.
24115 Add --enable-valgrind-annotations.
24116 * system.h: Guard valgrind header inclusion with
24117 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
24118 * alloc-pool.c (pool_alloc, pool_free): Use
24119 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
24120 to guard possibly dead code.
24121 * config.in: Regenerated.
24122 * configure: Likewise.
24124 2014-04-28 Jeff Law <law@redhat.com>
24126 PR tree-optimization/60902
24127 * tree-ssa-threadedge.c
24128 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
24129 over real defs when invalidating outputs from statements that do not
24130 produce useful outputs for threading.
24132 2014-04-28 Richard Biener <rguenther@suse.de>
24134 PR tree-optimization/60979
24135 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
24136 SCOPs that end in a block with a successor with abnormal
24139 2014-04-28 Richard Biener <rguenther@suse.de>
24141 * tree-pass.h (execute_pass_list): Adjust prototype.
24142 * passes.c (pass_manager::execute_early_local_passes): Adjust.
24143 (do_per_function): Change callback signature, push all actual
24144 work to the callbals.
24145 (do_per_function_toporder): Likewise.
24146 (execute_function_dump): Adjust.
24147 (execute_function_todo): Likewise.
24148 (clear_last_verified): Likewise.
24149 (verify_curr_properties): Likewise.
24150 (update_properties_after_pass): Likewise.
24151 (execute_pass_list_1): Split out from ...
24152 (execute_pass_list): ... here. Adjust.
24153 (execute_ipa_pass_list): Likewise.
24154 * cgraphunit.c (cgraph_add_new_function): Adjust.
24155 (analyze_function): Likewise.
24156 (expand_function): Likewise.
24157 * cgraph.c (release_function_body): Free dominance info
24158 here instead of asserting it was magically freed elsewhere.
24160 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
24162 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
24163 * configure: Regenerate.
24164 * config/sparc/sparc.opt (muser-mode): New option.
24165 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
24167 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
24168 * doc/invoke.texi (SPARC options): Document -muser-mode.
24170 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
24172 * cselib.c (find_slot_memmode): Delete.
24173 (cselib_hasher): Change compare_type to a struct.
24174 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
24176 (preserve_constants_and_equivs): Adjust for new compare_type.
24177 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
24178 (wrap_constant): Delete.
24179 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
24181 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
24183 * doc/install.texi (Building with profile feedback): Remove
24186 2014-04-26 Tom de Vries <tom@codesourcery.com>
24188 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
24191 2014-04-25 Cary Coutant <ccoutant@google.com>
24194 * dwarf2out.c (should_move_die_to_comdat): A type definition
24195 can contain a subprogram definition, but don't move it to a
24197 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
24198 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
24200 (clone_tree_hash): Rename to...
24201 (clone_tree_partial): ...this; change callers. Copy
24202 DW_TAG_subprogram DIEs as declarations.
24203 (copy_decls_walk): Don't copy children of a declaration into a
24206 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
24209 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
24212 2014-04-25 Jiong Wang <jiong.wang@arm.com>
24214 * config/arm/predicates.md (call_insn_operand): Add long_call check.
24215 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
24217 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
24220 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24222 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
24224 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24226 PR tree-optimization/60930
24227 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
24228 creating a multiply candidate by folding two constant
24229 multiplicands when the result overflows.
24231 2014-04-25 Jakub Jelinek <jakub@redhat.com>
24233 PR tree-optimization/60960
24234 * tree-vect-generic.c (expand_vector_operation): Only call
24235 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
24237 2014-04-25 Tom de Vries <tom@codesourcery.com>
24239 * expr.c (clobber_reg_mode): New function.
24240 * expr.h (clobber_reg): New function.
24242 2014-04-25 Tom de Vries <tom@codesourcery.com>
24244 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
24247 2014-04-25 Radovan Obradovic <robradovic@mips.com>
24248 Tom de Vries <tom@codesourcery.com>
24250 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
24252 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
24253 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
24254 new argument to find_all_hard_reg_sets call.
24256 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24258 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
24259 Use HOST_WIDE_INT_C for mask literal.
24260 (aarch_rev16_shleft_mask_imm_p): Likewise.
24262 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
24265 * config/sparc/sparc.md (ashlsi3_extend): Delete.
24267 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
24269 PR preprocessor/56540
24270 * config/i386/i386-c.c (ix86_target_macros): Define
24271 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
24273 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24275 * configure.ac (tga_func): Remove.
24276 (LIB_TLS_SPEC): Remove.
24277 * configure: Regenerate.
24278 * config.in: Regenerate.
24279 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
24281 2014-04-25 Richard Biener <rguenther@suse.de>
24284 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
24285 call stmt use/clobber sets during stmt walk instead of
24286 walking the possibly incomplete set of caller edges.
24288 2014-04-25 Richard Biener <rguenther@suse.de>
24291 * passes.c (apply_ipa_transforms): Inline into only caller ...
24292 (execute_one_pass): ... here. Properly bring in function
24293 bodies for nodes we want to apply IPA transforms to.
24295 2014-04-24 Cong Hou <congh@google.com>
24297 PR tree-optimization/60896
24298 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
24299 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
24300 (vect_mark_pattern_stmts): Set the def type of all statements in
24301 PATTERN_DEF_SEQ as vect_internal_def.
24303 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
24305 * doc/extend.texi (PowerPC Built-in Functions): Document new
24306 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
24307 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
24309 * config/rs6000/predicates.md (const_0_to_3_operand): New
24310 predicate to match 0..3 integer constants.
24312 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
24313 to support adding miscellaneous builtin functions.
24314 (BU_DFP_MISC_2): Likewise.
24315 (BU_P7_MISC_1): Likewise.
24316 (BU_P7_MISC_2): Likewise.
24317 (BU_P8V_MISC_3): Likewise.
24318 (BU_MISC_1): Likewise.
24319 (BU_MISC_2): Likewise.
24320 (DIVWE): Add extended divide builtin functions.
24321 (DIVWEO): Likewise.
24322 (DIVWEU): Likewise.
24323 (DIVWEUO): Likewise.
24325 (DIVDEO): Likewise.
24326 (DIVDEU): Likewise.
24327 (DIVDEUO): Likewise.
24328 (DXEX): Add decimal floating-point builtin functions.
24330 (DDEDPD): Likewise.
24331 (DDEDPDQ): Likewise.
24332 (DENBCD): Likewise.
24333 (DENBCDQ): Likewise.
24337 (DSCLIQ): Likewise.
24339 (DSCRIQ): Likewise.
24340 (CDTBCD): Add new BCD builtin functions.
24341 (CBCDTD): Likewise.
24342 (ADDG6S): Likewise.
24343 (BCDADD): Likewise.
24344 (BCDADD_LT): Likewise.
24345 (BCDADD_EQ): Likewise.
24346 (BCDADD_GT): Likewise.
24347 (BCDADD_OV): Likewise.
24348 (BCDSUB): Likewise.
24349 (BCDSUB_LT): Likewise.
24350 (BCDSUB_EQ): Likewise.
24351 (BCDSUB_GT): Likewise.
24352 (BCDSUB_OV): Likewise.
24353 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
24354 (UNPACK_TD): Likewise.
24355 (PACK_TF): Likewise.
24356 (UNPACK_TF): Likewise.
24357 (UNPACK_TF_0): Likewise.
24358 (UNPACK_TF_1): Likewise.
24359 (PACK_V1TI): Likewise.
24360 (UNPACK_V1TI): Likewise.
24362 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
24363 support for decimal floating point builtin functions.
24364 (rs6000_expand_ternop_builtin): Add checks for the new builtin
24365 functions that take constant arguments.
24366 (rs6000_invalid_builtin): Add decimal floating point builtin support.
24367 (rs6000_init_builtins): Setup long double, _Decimal64, and
24368 _Decimal128 types for new builtin functions.
24369 (builtin_function_type): Set the unsigned flags appropriately for
24370 the new builtin functions.
24371 (rs6000_opt_masks): Add support for decimal floating point builtin
24374 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
24375 floating point builtin functions.
24376 (RS6000_BTM_COMMON): Likewise.
24377 (RS6000_BTI_long_double): Likewise.
24378 (RS6000_BTI_dfloat64): Likewise.
24379 (RS6000_BTI_dfloat128): Likewise.
24380 (long_double_type_internal_node): Likewise.
24381 (dfloat64_type_internal_node): Likewise.
24382 (dfloat128_type_internal_node): Likewise.
24384 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
24385 2.07 bcd arithmetic instructions.
24386 (UNSPEC_BCDSUB): Likewise.
24387 (UNSPEC_BCD_OVERFLOW): Likewise.
24388 (UNSPEC_BCD_ADD_SUB): Likewise.
24389 (bcd_add_sub): Likewise.
24390 (BCD_TEST): Likewise.
24391 (bcd<bcd_add_sub>): Likewise.
24392 (bcd<bcd_add_sub>_test): Likewise.
24393 (bcd<bcd_add_sub>_test2): Likewise.
24394 (bcd<bcd_add_sub>_<code>): Likewise.
24395 (peephole2 for combined bcd ops): Likewise.
24397 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
24398 decimal floating point builtin functions.
24399 (UNSPEC_DENBCD): Likewise.
24400 (UNSPEC_DXEX): Likewise.
24401 (UNSPEC_DIEX): Likewise.
24402 (UNSPEC_DSCLI): Likewise.
24403 (UNSPEC_DSCRI): Likewise.
24404 (D64_D128): Likewise.
24405 (dfp_suffix): Likewise.
24406 (dfp_ddedpd_<mode>): Likewise.
24407 (dfp_denbcd_<mode>): Likewise.
24408 (dfp_dxex_<mode>): Likewise.
24409 (dfp_diex_<mode>): Likewise.
24410 (dfp_dscli_<mode>): Likewise.
24411 (dfp_dscri_<mode>): Likewise.
24413 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
24415 (UNSPEC_CDTBCD): Likewise.
24416 (UNSPEC_CBCDTD): Likewise.
24417 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
24418 (UNSPEC_DIVEO): Likewise.
24419 (UNSPEC_DIVEU): Likewise.
24420 (UNSPEC_DIVEUO): Likewise.
24421 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
24422 pack/unpack 128-bit types.
24423 (UNSPEC_PACK_128BIT): Likewise.
24424 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
24425 (udiv<mode>3): Use idiv_ldiv mode attribute.
24426 (div<mode>3): Likewise.
24427 (addg6s): Add new BCD builtin functions.
24428 (cdtbcd): Likewise.
24429 (cbcdtd): Likewise.
24430 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
24431 (div_extend): Likewise.
24432 (div<div_extend>_<mode>"): Likewise.
24433 (FP128_64): Add support for new builtin functions to pack/unpack
24435 (unpack<mode>): Likewise.
24436 (unpacktf_0): Likewise.
24437 (unpacktf_1): Likewise.
24438 (unpack<mode>_dm): Likewise.
24439 (unpack<mode>_nodm): Likewise.
24440 (pack<mode>): Likewise.
24441 (unpackv1ti): Likewise.
24442 (packv1ti): Likewise.
24444 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
24446 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
24449 2014-04-24 Jakub Jelinek <jakub@redhat.com>
24451 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
24452 * gimplify.c (omp_is_private): Change last argument's type to int.
24453 Only diagnose lastprivate if the simd argument is 1, only diagnose
24454 linear if the simd argument is 2.
24455 (gimplify_omp_for): Adjust omp_is_private callers. When adding
24456 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
24457 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
24458 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
24459 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
24460 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
24461 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
24462 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
24463 * tree-nested.c (convert_nonlocal_omp_clauses,
24464 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
24466 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
24469 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
24472 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
24474 * flag-types.h (enum ivar_visibility): Add.
24476 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
24478 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
24479 function * argument.
24481 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
24483 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
24485 2014-04-24 Radovan Obradovic <robradovic@mips.com>
24486 Tom de Vries <tom@codesourcery.com>
24488 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
24489 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
24491 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
24492 * emit-rtl.c (try_split): Same.
24494 2014-04-24 Radovan Obradovic <robradovic@mips.com>
24495 Tom de Vries <tom@codesourcery.com>
24497 * common.opt (fuse-caller-save): New option.
24499 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
24501 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
24502 elements for big-endian.
24504 2014-04-24 Richard Biener <rguenther@suse.de>
24506 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
24507 during TER and instead use the sepops interface for expanding
24508 non-GIMPLE_SINGLE_RHS.
24510 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24512 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
24513 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
24515 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24517 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
24518 assembler 64-bit option.
24519 * configure: Regenerate.
24521 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24523 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
24524 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
24525 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
24526 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
24527 (TARGET_CRYPTO): Take TARGET_SIMD into account.
24529 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24531 * config/aarch64/aarch64-builtins.c
24532 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
24533 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
24534 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
24535 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
24537 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
24538 (Vrevsuff): New mode attribute.
24540 2014-04-24 Terry Guo <terry.guo@arm.com>
24542 * config/arm/arm.h (machine_function): Define variable
24543 after_arm_reorg here.
24544 * config/arm/arm.c (after_arm_reorg): Remove the definition.
24545 (arm_split_constant): Update the way to access variable
24547 (arm_reorg): Ditto.
24548 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
24550 2014-04-23 Tom de Vries <tom@codesourcery.com>
24552 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
24554 2014-04-23 David Malcolm <dmalcolm@redhat.com>
24556 * is-a.h: Update comments to reflect the following changes to the
24557 "pointerness" of the API, making the template parameter match the
24558 return type, allowing use of is-a.h with typedefs of pointers.
24559 (is_a_helper::cast): Return a T rather then a pointer to a T, so
24560 that the return type matches the parameter to the is_a_helper.
24562 (dyn_cast): Likewise.
24564 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
24565 pointer from the is-a.h API.
24567 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
24568 (is_a_helper <cgraph_node *>::test): ...this, matching change to
24570 (is_a_helper <varpool_node>::test): Likewise, convert to...
24571 (is_a_helper <varpool_node *>::test): ...this.
24573 (varpool_first_variable): Update for removal of implicit pointer
24574 from the is-a.h API.
24575 (varpool_next_variable): Likewise.
24576 (varpool_first_static_initializer): Likewise.
24577 (varpool_next_static_initializer): Likewise.
24578 (varpool_first_defined_variable): Likewise.
24579 (varpool_next_defined_variable): Likewise.
24580 (cgraph_first_defined_function): Likewise.
24581 (cgraph_next_defined_function): Likewise.
24582 (cgraph_first_function): Likewise.
24583 (cgraph_next_function): Likewise.
24584 (cgraph_first_function_with_gimple_body): Likewise.
24585 (cgraph_next_function_with_gimple_body): Likewise.
24586 (cgraph_alias_target): Likewise.
24587 (varpool_alias_target): Likewise.
24588 (cgraph_function_or_thunk_node): Likewise.
24589 (varpool_variable_node): Likewise.
24590 (symtab_real_symbol_p): Likewise.
24591 * cgraphunit.c (referred_to_p): Likewise.
24592 (analyze_functions): Likewise.
24593 (handle_alias_pairs): Likewise.
24594 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
24595 * gimple-ssa.h (gimple_vuse_op): Likewise.
24596 (gimple_vdef_op): Likewise.
24597 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
24598 * gimple.c (gimple_build_asm_1): Likewise.
24599 (gimple_build_try): Likewise.
24600 (gimple_build_resx): Likewise.
24601 (gimple_build_eh_dispatch): Likewise.
24602 (gimple_build_omp_for): Likewise.
24603 (gimple_omp_for_set_clauses): Likewise.
24605 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
24606 (is_a_helper <gimple_statement_asm *>::test): ...this.
24607 (is_a_helper <gimple_statement_bind>::test): Convert to...
24608 (is_a_helper <gimple_statement_bind *>::test): ...this.
24609 (is_a_helper <gimple_statement_call>::test): Convert to...
24610 (is_a_helper <gimple_statement_call *>::test): ...this.
24611 (is_a_helper <gimple_statement_catch>::test): Convert to...
24612 (is_a_helper <gimple_statement_catch *>::test): ...this.
24613 (is_a_helper <gimple_statement_resx>::test): Convert to...
24614 (is_a_helper <gimple_statement_resx *>::test): ...this.
24615 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
24616 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
24617 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
24618 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
24619 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
24620 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
24621 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
24622 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
24623 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
24624 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
24625 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
24626 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
24627 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
24628 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
24629 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
24630 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
24631 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
24632 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
24633 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
24634 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
24635 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
24636 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
24637 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
24638 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
24639 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
24640 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
24641 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
24642 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
24643 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
24644 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
24645 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
24646 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
24647 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
24648 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
24649 (is_a_helper <gimple_statement_phi>::test): Convert to...
24650 (is_a_helper <gimple_statement_phi *>::test): ...this.
24651 (is_a_helper <gimple_statement_transaction>::test): Convert to...
24652 (is_a_helper <gimple_statement_transaction *>::test): ...this.
24653 (is_a_helper <gimple_statement_try>::test): Convert to...
24654 (is_a_helper <gimple_statement_try *>::test): ...this.
24655 (is_a_helper <gimple_statement_wce>::test): Convert to...
24656 (is_a_helper <gimple_statement_wce *>::test): ...this.
24657 (is_a_helper <const gimple_statement_asm>::test): Convert to...
24658 (is_a_helper <const gimple_statement_asm *>::test): ...this.
24659 (is_a_helper <const gimple_statement_bind>::test): Convert to...
24660 (is_a_helper <const gimple_statement_bind *>::test): ...this.
24661 (is_a_helper <const gimple_statement_call>::test): Convert to...
24662 (is_a_helper <const gimple_statement_call *>::test): ...this.
24663 (is_a_helper <const gimple_statement_catch>::test): Convert to...
24664 (is_a_helper <const gimple_statement_catch *>::test): ...this.
24665 (is_a_helper <const gimple_statement_resx>::test): Convert to...
24666 (is_a_helper <const gimple_statement_resx *>::test): ...this.
24667 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
24668 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
24669 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
24670 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
24671 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
24673 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
24675 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
24677 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
24679 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
24680 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
24681 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
24683 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
24684 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
24686 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
24687 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
24688 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
24689 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
24690 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
24691 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
24693 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
24694 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
24695 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
24696 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
24698 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
24699 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
24700 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
24701 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
24702 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
24703 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
24704 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
24705 (is_a_helper <const gimple_statement_phi>::test): Convert to...
24706 (is_a_helper <const gimple_statement_phi *>::test): ...this.
24707 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
24708 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
24709 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
24710 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
24711 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
24712 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
24713 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
24715 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
24717 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
24718 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
24720 (gimple_use_ops): Update for removal of implicit pointer from the
24722 (gimple_set_use_ops): Likewise.
24723 (gimple_vuse): Likewise.
24724 (gimple_vdef): Likewise.
24725 (gimple_vuse_ptr): Likewise.
24726 (gimple_vdef_ptr): Likewise.
24727 (gimple_set_vuse): Likewise.
24728 (gimple_set_vdef): Likewise.
24729 (gimple_omp_return_set_lhs): Likewise.
24730 (gimple_omp_return_lhs): Likewise.
24731 (gimple_omp_return_lhs_ptr): Likewise.
24732 (gimple_call_fntype): Likewise.
24733 (gimple_call_set_fntype): Likewise.
24734 (gimple_call_set_internal_fn): Likewise.
24735 (gimple_call_use_set): Likewise.
24736 (gimple_call_clobber_set): Likewise.
24737 (gimple_bind_vars): Likewise.
24738 (gimple_bind_set_vars): Likewise.
24739 (gimple_bind_body_ptr): Likewise.
24740 (gimple_bind_set_body): Likewise.
24741 (gimple_bind_add_stmt): Likewise.
24742 (gimple_bind_block): Likewise.
24743 (gimple_bind_set_block): Likewise.
24744 (gimple_asm_ninputs): Likewise.
24745 (gimple_asm_noutputs): Likewise.
24746 (gimple_asm_nclobbers): Likewise.
24747 (gimple_asm_nlabels): Likewise.
24748 (gimple_asm_input_op): Likewise.
24749 (gimple_asm_input_op_ptr): Likewise.
24750 (gimple_asm_output_op): Likewise.
24751 (gimple_asm_output_op_ptr): Likewise.
24752 (gimple_asm_set_output_op): Likewise.
24753 (gimple_asm_clobber_op): Likewise.
24754 (gimple_asm_set_clobber_op): Likewise.
24755 (gimple_asm_label_op): Likewise.
24756 (gimple_asm_set_label_op): Likewise.
24757 (gimple_asm_string): Likewise.
24758 (gimple_catch_types): Likewise.
24759 (gimple_catch_types_ptr): Likewise.
24760 (gimple_catch_handler_ptr): Likewise.
24761 (gimple_catch_set_types): Likewise.
24762 (gimple_catch_set_handler): Likewise.
24763 (gimple_eh_filter_types): Likewise.
24764 (gimple_eh_filter_types_ptr): Likewise.
24765 (gimple_eh_filter_failure_ptr): Likewise.
24766 (gimple_eh_filter_set_types): Likewise.
24767 (gimple_eh_filter_set_failure): Likewise.
24768 (gimple_eh_must_not_throw_fndecl): Likewise.
24769 (gimple_eh_must_not_throw_set_fndecl): Likewise.
24770 (gimple_eh_else_n_body_ptr): Likewise.
24771 (gimple_eh_else_e_body_ptr): Likewise.
24772 (gimple_eh_else_set_n_body): Likewise.
24773 (gimple_eh_else_set_e_body): Likewise.
24774 (gimple_try_eval_ptr): Likewise.
24775 (gimple_try_cleanup_ptr): Likewise.
24776 (gimple_try_set_eval): Likewise.
24777 (gimple_try_set_cleanup): Likewise.
24778 (gimple_wce_cleanup_ptr): Likewise.
24779 (gimple_wce_set_cleanup): Likewise.
24780 (gimple_phi_capacity): Likewise.
24781 (gimple_phi_num_args): Likewise.
24782 (gimple_phi_result): Likewise.
24783 (gimple_phi_result_ptr): Likewise.
24784 (gimple_phi_set_result): Likewise.
24785 (gimple_phi_arg): Likewise.
24786 (gimple_phi_set_arg): Likewise.
24787 (gimple_resx_region): Likewise.
24788 (gimple_resx_set_region): Likewise.
24789 (gimple_eh_dispatch_region): Likewise.
24790 (gimple_eh_dispatch_set_region): Likewise.
24791 (gimple_omp_critical_name): Likewise.
24792 (gimple_omp_critical_name_ptr): Likewise.
24793 (gimple_omp_critical_set_name): Likewise.
24794 (gimple_omp_for_clauses): Likewise.
24795 (gimple_omp_for_clauses_ptr): Likewise.
24796 (gimple_omp_for_set_clauses): Likewise.
24797 (gimple_omp_for_collapse): Likewise.
24798 (gimple_omp_for_index): Likewise.
24799 (gimple_omp_for_index_ptr): Likewise.
24800 (gimple_omp_for_set_index): Likewise.
24801 (gimple_omp_for_initial): Likewise.
24802 (gimple_omp_for_initial_ptr): Likewise.
24803 (gimple_omp_for_set_initial): Likewise.
24804 (gimple_omp_for_final): Likewise.
24805 (gimple_omp_for_final_ptr): Likewise.
24806 (gimple_omp_for_set_final): Likewise.
24807 (gimple_omp_for_incr): Likewise.
24808 (gimple_omp_for_incr_ptr): Likewise.
24809 (gimple_omp_for_set_incr): Likewise.
24810 (gimple_omp_for_pre_body_ptr): Likewise.
24811 (gimple_omp_for_set_pre_body): Likewise.
24812 (gimple_omp_parallel_clauses): Likewise.
24813 (gimple_omp_parallel_clauses_ptr): Likewise.
24814 (gimple_omp_parallel_set_clauses): Likewise.
24815 (gimple_omp_parallel_child_fn): Likewise.
24816 (gimple_omp_parallel_child_fn_ptr): Likewise.
24817 (gimple_omp_parallel_set_child_fn): Likewise.
24818 (gimple_omp_parallel_data_arg): Likewise.
24819 (gimple_omp_parallel_data_arg_ptr): Likewise.
24820 (gimple_omp_parallel_set_data_arg): Likewise.
24821 (gimple_omp_task_clauses): Likewise.
24822 (gimple_omp_task_clauses_ptr): Likewise.
24823 (gimple_omp_task_set_clauses): Likewise.
24824 (gimple_omp_task_child_fn): Likewise.
24825 (gimple_omp_task_child_fn_ptr): Likewise.
24826 (gimple_omp_task_set_child_fn): Likewise.
24827 (gimple_omp_task_data_arg): Likewise.
24828 (gimple_omp_task_data_arg_ptr): Likewise.
24829 (gimple_omp_task_set_data_arg): Likewise.
24830 (gimple_omp_taskreg_clauses): Likewise.
24831 (gimple_omp_taskreg_clauses_ptr): Likewise.
24832 (gimple_omp_taskreg_set_clauses): Likewise.
24833 (gimple_omp_taskreg_child_fn): Likewise.
24834 (gimple_omp_taskreg_child_fn_ptr): Likewise.
24835 (gimple_omp_taskreg_set_child_fn): Likewise.
24836 (gimple_omp_taskreg_data_arg): Likewise.
24837 (gimple_omp_taskreg_data_arg_ptr): Likewise.
24838 (gimple_omp_taskreg_set_data_arg): Likewise.
24839 (gimple_omp_task_copy_fn): Likewise.
24840 (gimple_omp_task_copy_fn_ptr): Likewise.
24841 (gimple_omp_task_set_copy_fn): Likewise.
24842 (gimple_omp_task_arg_size): Likewise.
24843 (gimple_omp_task_arg_size_ptr): Likewise.
24844 (gimple_omp_task_set_arg_size): Likewise.
24845 (gimple_omp_task_arg_align): Likewise.
24846 (gimple_omp_task_arg_align_ptr): Likewise.
24847 (gimple_omp_task_set_arg_align): Likewise.
24848 (gimple_omp_single_clauses): Likewise.
24849 (gimple_omp_single_clauses_ptr): Likewise.
24850 (gimple_omp_single_set_clauses): Likewise.
24851 (gimple_omp_target_clauses): Likewise.
24852 (gimple_omp_target_clauses_ptr): Likewise.
24853 (gimple_omp_target_set_clauses): Likewise.
24854 (gimple_omp_target_child_fn): Likewise.
24855 (gimple_omp_target_child_fn_ptr): Likewise.
24856 (gimple_omp_target_set_child_fn): Likewise.
24857 (gimple_omp_target_data_arg): Likewise.
24858 (gimple_omp_target_data_arg_ptr): Likewise.
24859 (gimple_omp_target_set_data_arg): Likewise.
24860 (gimple_omp_teams_clauses): Likewise.
24861 (gimple_omp_teams_clauses_ptr): Likewise.
24862 (gimple_omp_teams_set_clauses): Likewise.
24863 (gimple_omp_sections_clauses): Likewise.
24864 (gimple_omp_sections_clauses_ptr): Likewise.
24865 (gimple_omp_sections_set_clauses): Likewise.
24866 (gimple_omp_sections_control): Likewise.
24867 (gimple_omp_sections_control_ptr): Likewise.
24868 (gimple_omp_sections_set_control): Likewise.
24869 (gimple_omp_for_set_cond): Likewise.
24870 (gimple_omp_for_cond): Likewise.
24871 (gimple_omp_atomic_store_set_val): Likewise.
24872 (gimple_omp_atomic_store_val): Likewise.
24873 (gimple_omp_atomic_store_val_ptr): Likewise.
24874 (gimple_omp_atomic_load_set_lhs): Likewise.
24875 (gimple_omp_atomic_load_lhs): Likewise.
24876 (gimple_omp_atomic_load_lhs_ptr): Likewise.
24877 (gimple_omp_atomic_load_set_rhs): Likewise.
24878 (gimple_omp_atomic_load_rhs): Likewise.
24879 (gimple_omp_atomic_load_rhs_ptr): Likewise.
24880 (gimple_omp_continue_control_def): Likewise.
24881 (gimple_omp_continue_control_def_ptr): Likewise.
24882 (gimple_omp_continue_set_control_def): Likewise.
24883 (gimple_omp_continue_control_use): Likewise.
24884 (gimple_omp_continue_control_use_ptr): Likewise.
24885 (gimple_omp_continue_set_control_use): Likewise.
24886 (gimple_transaction_body_ptr): Likewise.
24887 (gimple_transaction_label): Likewise.
24888 (gimple_transaction_label_ptr): Likewise.
24889 (gimple_transaction_set_body): Likewise.
24890 (gimple_transaction_set_label): Likewise.
24892 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
24893 * ipa-inline-analysis.c (inline_write_summary): Likewise.
24894 * ipa-ref.c (ipa_record_reference): Likewise.
24895 * ipa-reference.c (analyze_function): Likewise.
24896 (ipa_reference_write_optimization_summary): Likewise.
24897 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
24898 (address_taken_from_non_vtable_p): Likewise.
24899 (comdat_can_be_unshared_p_1): Likewise.
24900 * lto-cgraph.c (lto_output_ref): Likewise.
24901 (add_references): Likewise.
24902 (compute_ltrans_boundary): Likewise.
24903 (output_symtab): Likewise.
24904 (input_ref): Likewise.
24905 (input_cgraph_1): Likewise.
24906 (output_cgraph_opt_summary): Likewise.
24907 * lto-streamer-out.c (lto_output): Likewise.
24908 (output_symbol_p): Likewise.
24909 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
24910 (lsei_start_function_in_partition): Likewise.
24911 (lsei_next_variable_in_partition): Likewise.
24912 (lsei_start_variable_in_partition): Likewise.
24913 * symtab.c (insert_to_assembler_name_hash): Likewise.
24914 (unlink_from_assembler_name_hash): Likewise.
24915 (symtab_unregister_node): Likewise.
24916 (symtab_remove_node): Likewise.
24917 (dump_symtab_node): Likewise.
24918 (verify_symtab_base): Likewise.
24919 (verify_symtab_node): Likewise.
24920 (symtab_make_decl_local): Likewise.
24921 (symtab_alias_ultimate_target): Likewise.
24922 (symtab_resolve_alias): Likewise.
24923 (symtab_get_symbol_partitioning_class): Likewise.
24924 * tree-phinodes.c (allocate_phi_node): Likewise.
24925 (reserve_phi_args_for_new_edge): Likewise.
24926 (remove_phi_args): Likewise.
24927 * varpool.c (varpool_node_for_asm): Likewise.
24928 (varpool_remove_unreferenced_decls): Likewise.
24930 2014-04-23 Jeff Law <law@redhat.com>
24932 PR tree-optimization/60902
24933 * tree-ssa-threadedge.c
24934 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
24935 invalidate outputs from statements that do not produce useful
24936 outputs for threading.
24938 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
24940 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
24941 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
24942 machine descriptions for Stack Smashing Protector.
24944 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
24946 * aarch64.md (<optab>_rol<mode>3): New pattern.
24947 (<optab>_rolsi3_uxtw): Likewise.
24948 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
24950 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
24952 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
24953 (arm_cortex_a12_tune): Likewise.
24955 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24957 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
24959 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24961 * config/arm/arm.md (arm_rev16si2): New pattern.
24962 (arm_rev16si2_alt): Likewise.
24963 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
24965 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24967 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
24968 (rev16<mode>2_alt): Likewise.
24969 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
24970 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
24971 (aarch_rev16_shleft_mask_imm_p): Likewise.
24972 (aarch_rev16_p_1): Likewise.
24973 (aarch_rev16_p): Likewise.
24974 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
24975 (aarch_rev16_shright_mask_imm_p): Likewise.
24976 (aarch_rev16_shleft_mask_imm_p): Likewise.
24978 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24980 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
24981 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
24983 (cortex_a53_extra_costs): Likewise.
24984 (cortex_a57_extra_costs): Likewise.
24985 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
24986 (cortexa7_extra_costs): Likewise.
24987 (cortexa8_extra_costs): Likewise.
24988 (cortexa12_extra_costs): Likewise.
24989 (cortexa15_extra_costs): Likewise.
24990 (v7m_extra_costs): Likewise.
24991 (arm_new_rtx_costs): Handle BSWAP.
24993 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24995 * config/arm/arm.c (cortexa8_extra_costs): New table.
24996 (arm_cortex_a8_tune): New tuning struct.
24997 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
24999 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25001 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
25003 2014-04-23 Richard Biener <rguenther@suse.de>
25005 * Makefile.in (OBJS): Remove loop-unswitch.o.
25006 * tree-pass.h (make_pass_rtl_unswitch): Remove.
25007 * passes.def (pass_rtl_unswitch): Likewise.
25008 * loop-init.c (gate_rtl_unswitch): Likewise.
25009 (rtl_unswitch): Likewise.
25010 (pass_data_rtl_unswitch): Likewise.
25011 (pass_rtl_unswitch): Likewise.
25012 (make_pass_rtl_unswitch): Likewise.
25013 * rtl.h (reversed_condition): Likewise.
25014 (compare_and_jump_seq): Likewise.
25015 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
25017 * loop-unroll.c (compare_and_jump_seq): Likewise.
25019 2014-04-23 Richard Biener <rguenther@suse.de>
25021 PR tree-optimization/60903
25022 * tree-ssa-loop-im.c (analyze_memory_references): Remove
25023 commented code block.
25024 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
25025 loop flags to newly created BBs and edges.
25027 2014-04-23 Nick Clifton <nickc@redhat.com>
25029 * config/msp430/msp430.c (msp430_handle_option): Move function
25031 (msp430_option_override): Simplify mcu and mcpu option handling.
25032 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
25033 support for -mhwmult command line option.
25034 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
25035 -mhwmult command line option.
25036 (msp430_hwmult_enabled): Delete.
25037 (msp43o_output_labelref): Add support for -mhwmult command line option.
25038 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
25039 (umulsidi3): Likewise.
25040 * config/msp430/msp430.opt (mmcu): Add Report attribute.
25041 (mcpu, mlarge, msmall): Likewise.
25042 (mhwmult): New option.
25043 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
25045 (msp430_is_f5_mcu): Remove prototype.
25046 (msp430_use_f5_series_hwmult): Add prototype.
25047 * config/msp430/msp430-opts.h: New file.
25048 * common/config/msp430: New directory.
25049 * common/config/msp430/msp430-common.c: New file.
25050 * config.gcc (msp430): Remove target_has_targetm_common.
25051 * doc/invoke.texi: Document -mhwmult command line option.
25053 2014-04-23 Nick Clifton <nickc@redhat.com>
25055 * config/i386/cygwin.h (ENDFILE_SPEC): Include
25056 default-manifest.o if it can be found in the search path.
25057 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
25059 2014-04-23 Terry Guo <terry.guo@arm.com>
25061 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
25063 2014-04-23 Richard Biener <rguenther@suse.de>
25065 PR middle-end/60895
25066 * tree-inline.c (declare_return_variable): Use mark_addressable.
25068 2014-04-23 Richard Biener <rguenther@suse.de>
25070 PR middle-end/60891
25071 * loop-init.c (loop_optimizer_init): Make sure to apply
25072 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
25074 2014-04-22 Jakub Jelinek <jakub@redhat.com>
25077 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
25079 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
25080 if flag_sanitize_undefined_trap_on_error.
25081 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
25082 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
25083 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
25084 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
25085 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
25086 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
25087 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
25088 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
25089 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
25090 * ubsan.c (ubsan_instrument_unreachable): Return
25091 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
25092 (ubsan_expand_null_ifn): Emit __builtin_trap ()
25093 if flag_sanitize_undefined_trap_on_error and
25094 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
25095 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
25096 instrument_bool_enum_load): Emit __builtin_trap () if
25097 flag_sanitize_undefined_trap_on_error and
25098 __builtin_handle_*_abort () if !flag_sanitize_recover.
25099 * doc/invoke.texi (-fsanitize-recover,
25100 -fsanitize-undefined-trap-on-error): Document.
25102 2014-04-22 Christian Bruel <christian.bruel@st.com>
25104 * config/sh/sh.md (mov<mode>): Replace movQIHI.
25105 Force immediates to SImode.
25107 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
25109 * config/nios2/nios2.md (UNSPEC_ROUND): New.
25110 (lroundsfsi2): New.
25111 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
25112 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
25113 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
25114 (nios2_fpu_insn): Add entry for round.
25115 (N2FPU_NO_ERRNO_P): Define.
25116 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
25118 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
25120 2014-04-22 Richard Henderson <rth@redhat.com>
25122 * config/aarch64/aarch64 (addti3, subti3): New expanders.
25123 (add<GPI>3_compare0): Remove leading * from name.
25124 (add<GPI>3_carryin): Likewise.
25125 (sub<GPI>3_compare0): Likewise.
25126 (sub<GPI>3_carryin): Likewise.
25127 (<su_optab>mulditi3): New expander.
25128 (multi3): New expander.
25129 (madd<GPI>): Remove leading * from name.
25131 2014-04-22 Martin Jambor <mjambor@suse.cz>
25133 * cgraphclones.c (cgraph_function_versioning): Copy
25134 ipa_transforms_to_apply instead of asserting it is empty.
25136 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
25139 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
25140 on count_exp to get mode.
25142 2014-04-22 Andrew Pinski <apinski@cavium.com>
25144 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
25145 Handle TLS for ILP32.
25146 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
25147 (tlsie_small_<mode>): this and handle PTR.
25148 (tlsie_small_sidi): New pattern.
25149 (tlsle_small): Change to an expand to handle ILP32.
25150 (tlsle_small_<mode>): New pattern.
25151 (tlsdesc_small): Rename to ...
25152 (tlsdesc_small_<mode>): this and handle PTR.
25154 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25156 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
25158 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
25160 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
25161 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
25162 (aarch64_types_signed_poly_qualifiers): Likewise.
25163 (aarch64_types_unsigned_signed_qualifiers): Likewise.
25164 (aarch64_types_poly_signed_qualifiers): Likewise.
25165 (TYPES_REINTERP_SS): Type macro added.
25166 (TYPES_REINTERP_SU): Likewise.
25167 (TYPES_REINTERP_SP): Likewise.
25168 (TYPES_REINTERP_US): Likewise.
25169 (TYPES_REINTERP_PS): Likewise.
25170 (aarch64_fold_builtin): New expression folding added.
25171 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
25172 Declarations removed.
25173 (REINTERP_SS): Declarations added.
25174 (REINTERP_US): Likewise.
25175 (REINTERP_PS): Likewise.
25176 (REINTERP_SU): Likewise.
25177 (REINTERP_SP): Likewise.
25178 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
25179 (vreinterpretq_p8_f64): Likewise.
25180 (vreinterpret_p16_f64): Likewise.
25181 (vreinterpretq_p16_f64): Likewise.
25182 (vreinterpret_f32_f64): Likewise.
25183 (vreinterpretq_f32_f64): Likewise.
25184 (vreinterpret_f64_f32): Likewise.
25185 (vreinterpret_f64_p8): Likewise.
25186 (vreinterpret_f64_p16): Likewise.
25187 (vreinterpret_f64_s8): Likewise.
25188 (vreinterpret_f64_s16): Likewise.
25189 (vreinterpret_f64_s32): Likewise.
25190 (vreinterpret_f64_s64): Likewise.
25191 (vreinterpret_f64_u8): Likewise.
25192 (vreinterpret_f64_u16): Likewise.
25193 (vreinterpret_f64_u32): Likewise.
25194 (vreinterpret_f64_u64): Likewise.
25195 (vreinterpretq_f64_f32): Likewise.
25196 (vreinterpretq_f64_p8): Likewise.
25197 (vreinterpretq_f64_p16): Likewise.
25198 (vreinterpretq_f64_s8): Likewise.
25199 (vreinterpretq_f64_s16): Likewise.
25200 (vreinterpretq_f64_s32): Likewise.
25201 (vreinterpretq_f64_s64): Likewise.
25202 (vreinterpretq_f64_u8): Likewise.
25203 (vreinterpretq_f64_u16): Likewise.
25204 (vreinterpretq_f64_u32): Likewise.
25205 (vreinterpretq_f64_u64): Likewise.
25206 (vreinterpret_s64_f64): Likewise.
25207 (vreinterpretq_s64_f64): Likewise.
25208 (vreinterpret_u64_f64): Likewise.
25209 (vreinterpretq_u64_f64): Likewise.
25210 (vreinterpret_s8_f64): Likewise.
25211 (vreinterpretq_s8_f64): Likewise.
25212 (vreinterpret_s16_f64): Likewise.
25213 (vreinterpretq_s16_f64): Likewise.
25214 (vreinterpret_s32_f64): Likewise.
25215 (vreinterpretq_s32_f64): Likewise.
25216 (vreinterpret_u8_f64): Likewise.
25217 (vreinterpretq_u8_f64): Likewise.
25218 (vreinterpret_u16_f64): Likewise.
25219 (vreinterpretq_u16_f64): Likewise.
25220 (vreinterpret_u32_f64): Likewise.
25221 (vreinterpretq_u32_f64): Likewise.
25223 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
25225 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
25226 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
25227 (vreinterpret_p8_s8): Likewise.
25228 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
25229 (vreinterpret_p8_s16): Likewise.
25230 (vreinterpret_p8_s32): Likewise.
25231 (vreinterpret_p8_s64): Likewise.
25232 (vreinterpret_p8_f32): Likewise.
25233 (vreinterpret_p8_u8): Likewise.
25234 (vreinterpret_p8_u16): Likewise.
25235 (vreinterpret_p8_u32): Likewise.
25236 (vreinterpret_p8_u64): Likewise.
25237 (vreinterpret_p8_p16): Likewise.
25238 (vreinterpretq_p8_s8): Likewise.
25239 (vreinterpretq_p8_s16): Likewise.
25240 (vreinterpretq_p8_s32): Likewise.
25241 (vreinterpretq_p8_s64): Likewise.
25242 (vreinterpretq_p8_f32): Likewise.
25243 (vreinterpretq_p8_u8): Likewise.
25244 (vreinterpretq_p8_u16): Likewise.
25245 (vreinterpretq_p8_u32): Likewise.
25246 (vreinterpretq_p8_u64): Likewise.
25247 (vreinterpretq_p8_p16): Likewise.
25248 (vreinterpret_p16_s8): Likewise.
25249 (vreinterpret_p16_s16): Likewise.
25250 (vreinterpret_p16_s32): Likewise.
25251 (vreinterpret_p16_s64): Likewise.
25252 (vreinterpret_p16_f32): Likewise.
25253 (vreinterpret_p16_u8): Likewise.
25254 (vreinterpret_p16_u16): Likewise.
25255 (vreinterpret_p16_u32): Likewise.
25256 (vreinterpret_p16_u64): Likewise.
25257 (vreinterpret_p16_p8): Likewise.
25258 (vreinterpretq_p16_s8): Likewise.
25259 (vreinterpretq_p16_s16): Likewise.
25260 (vreinterpretq_p16_s32): Likewise.
25261 (vreinterpretq_p16_s64): Likewise.
25262 (vreinterpretq_p16_f32): Likewise.
25263 (vreinterpretq_p16_u8): Likewise.
25264 (vreinterpretq_p16_u16): Likewise.
25265 (vreinterpretq_p16_u32): Likewise.
25266 (vreinterpretq_p16_u64): Likewise.
25267 (vreinterpretq_p16_p8): Likewise.
25268 (vreinterpret_f32_s8): Likewise.
25269 (vreinterpret_f32_s16): Likewise.
25270 (vreinterpret_f32_s32): Likewise.
25271 (vreinterpret_f32_s64): Likewise.
25272 (vreinterpret_f32_u8): Likewise.
25273 (vreinterpret_f32_u16): Likewise.
25274 (vreinterpret_f32_u32): Likewise.
25275 (vreinterpret_f32_u64): Likewise.
25276 (vreinterpret_f32_p8): Likewise.
25277 (vreinterpret_f32_p16): Likewise.
25278 (vreinterpretq_f32_s8): Likewise.
25279 (vreinterpretq_f32_s16): Likewise.
25280 (vreinterpretq_f32_s32): Likewise.
25281 (vreinterpretq_f32_s64): Likewise.
25282 (vreinterpretq_f32_u8): Likewise.
25283 (vreinterpretq_f32_u16): Likewise.
25284 (vreinterpretq_f32_u32): Likewise.
25285 (vreinterpretq_f32_u64): Likewise.
25286 (vreinterpretq_f32_p8): Likewise.
25287 (vreinterpretq_f32_p16): Likewise.
25288 (vreinterpret_s64_s8): Likewise.
25289 (vreinterpret_s64_s16): Likewise.
25290 (vreinterpret_s64_s32): Likewise.
25291 (vreinterpret_s64_f32): Likewise.
25292 (vreinterpret_s64_u8): Likewise.
25293 (vreinterpret_s64_u16): Likewise.
25294 (vreinterpret_s64_u32): Likewise.
25295 (vreinterpret_s64_u64): Likewise.
25296 (vreinterpret_s64_p8): Likewise.
25297 (vreinterpret_s64_p16): Likewise.
25298 (vreinterpretq_s64_s8): Likewise.
25299 (vreinterpretq_s64_s16): Likewise.
25300 (vreinterpretq_s64_s32): Likewise.
25301 (vreinterpretq_s64_f32): Likewise.
25302 (vreinterpretq_s64_u8): Likewise.
25303 (vreinterpretq_s64_u16): Likewise.
25304 (vreinterpretq_s64_u32): Likewise.
25305 (vreinterpretq_s64_u64): Likewise.
25306 (vreinterpretq_s64_p8): Likewise.
25307 (vreinterpretq_s64_p16): Likewise.
25308 (vreinterpret_u64_s8): Likewise.
25309 (vreinterpret_u64_s16): Likewise.
25310 (vreinterpret_u64_s32): Likewise.
25311 (vreinterpret_u64_s64): Likewise.
25312 (vreinterpret_u64_f32): Likewise.
25313 (vreinterpret_u64_u8): Likewise.
25314 (vreinterpret_u64_u16): Likewise.
25315 (vreinterpret_u64_u32): Likewise.
25316 (vreinterpret_u64_p8): Likewise.
25317 (vreinterpret_u64_p16): Likewise.
25318 (vreinterpretq_u64_s8): Likewise.
25319 (vreinterpretq_u64_s16): Likewise.
25320 (vreinterpretq_u64_s32): Likewise.
25321 (vreinterpretq_u64_s64): Likewise.
25322 (vreinterpretq_u64_f32): Likewise.
25323 (vreinterpretq_u64_u8): Likewise.
25324 (vreinterpretq_u64_u16): Likewise.
25325 (vreinterpretq_u64_u32): Likewise.
25326 (vreinterpretq_u64_p8): Likewise.
25327 (vreinterpretq_u64_p16): Likewise.
25328 (vreinterpret_s8_s16): Likewise.
25329 (vreinterpret_s8_s32): Likewise.
25330 (vreinterpret_s8_s64): Likewise.
25331 (vreinterpret_s8_f32): Likewise.
25332 (vreinterpret_s8_u8): Likewise.
25333 (vreinterpret_s8_u16): Likewise.
25334 (vreinterpret_s8_u32): Likewise.
25335 (vreinterpret_s8_u64): Likewise.
25336 (vreinterpret_s8_p8): Likewise.
25337 (vreinterpret_s8_p16): Likewise.
25338 (vreinterpretq_s8_s16): Likewise.
25339 (vreinterpretq_s8_s32): Likewise.
25340 (vreinterpretq_s8_s64): Likewise.
25341 (vreinterpretq_s8_f32): Likewise.
25342 (vreinterpretq_s8_u8): Likewise.
25343 (vreinterpretq_s8_u16): Likewise.
25344 (vreinterpretq_s8_u32): Likewise.
25345 (vreinterpretq_s8_u64): Likewise.
25346 (vreinterpretq_s8_p8): Likewise.
25347 (vreinterpretq_s8_p16): Likewise.
25348 (vreinterpret_s16_s8): Likewise.
25349 (vreinterpret_s16_s32): Likewise.
25350 (vreinterpret_s16_s64): Likewise.
25351 (vreinterpret_s16_f32): Likewise.
25352 (vreinterpret_s16_u8): Likewise.
25353 (vreinterpret_s16_u16): Likewise.
25354 (vreinterpret_s16_u32): Likewise.
25355 (vreinterpret_s16_u64): Likewise.
25356 (vreinterpret_s16_p8): Likewise.
25357 (vreinterpret_s16_p16): Likewise.
25358 (vreinterpretq_s16_s8): Likewise.
25359 (vreinterpretq_s16_s32): Likewise.
25360 (vreinterpretq_s16_s64): Likewise.
25361 (vreinterpretq_s16_f32): Likewise.
25362 (vreinterpretq_s16_u8): Likewise.
25363 (vreinterpretq_s16_u16): Likewise.
25364 (vreinterpretq_s16_u32): Likewise.
25365 (vreinterpretq_s16_u64): Likewise.
25366 (vreinterpretq_s16_p8): Likewise.
25367 (vreinterpretq_s16_p16): Likewise.
25368 (vreinterpret_s32_s8): Likewise.
25369 (vreinterpret_s32_s16): Likewise.
25370 (vreinterpret_s32_s64): Likewise.
25371 (vreinterpret_s32_f32): Likewise.
25372 (vreinterpret_s32_u8): Likewise.
25373 (vreinterpret_s32_u16): Likewise.
25374 (vreinterpret_s32_u32): Likewise.
25375 (vreinterpret_s32_u64): Likewise.
25376 (vreinterpret_s32_p8): Likewise.
25377 (vreinterpret_s32_p16): Likewise.
25378 (vreinterpretq_s32_s8): Likewise.
25379 (vreinterpretq_s32_s16): Likewise.
25380 (vreinterpretq_s32_s64): Likewise.
25381 (vreinterpretq_s32_f32): Likewise.
25382 (vreinterpretq_s32_u8): Likewise.
25383 (vreinterpretq_s32_u16): Likewise.
25384 (vreinterpretq_s32_u32): Likewise.
25385 (vreinterpretq_s32_u64): Likewise.
25386 (vreinterpretq_s32_p8): Likewise.
25387 (vreinterpretq_s32_p16): Likewise.
25388 (vreinterpret_u8_s8): Likewise.
25389 (vreinterpret_u8_s16): Likewise.
25390 (vreinterpret_u8_s32): Likewise.
25391 (vreinterpret_u8_s64): Likewise.
25392 (vreinterpret_u8_f32): Likewise.
25393 (vreinterpret_u8_u16): Likewise.
25394 (vreinterpret_u8_u32): Likewise.
25395 (vreinterpret_u8_u64): Likewise.
25396 (vreinterpret_u8_p8): Likewise.
25397 (vreinterpret_u8_p16): Likewise.
25398 (vreinterpretq_u8_s8): Likewise.
25399 (vreinterpretq_u8_s16): Likewise.
25400 (vreinterpretq_u8_s32): Likewise.
25401 (vreinterpretq_u8_s64): Likewise.
25402 (vreinterpretq_u8_f32): Likewise.
25403 (vreinterpretq_u8_u16): Likewise.
25404 (vreinterpretq_u8_u32): Likewise.
25405 (vreinterpretq_u8_u64): Likewise.
25406 (vreinterpretq_u8_p8): Likewise.
25407 (vreinterpretq_u8_p16): Likewise.
25408 (vreinterpret_u16_s8): Likewise.
25409 (vreinterpret_u16_s16): Likewise.
25410 (vreinterpret_u16_s32): Likewise.
25411 (vreinterpret_u16_s64): Likewise.
25412 (vreinterpret_u16_f32): Likewise.
25413 (vreinterpret_u16_u8): Likewise.
25414 (vreinterpret_u16_u32): Likewise.
25415 (vreinterpret_u16_u64): Likewise.
25416 (vreinterpret_u16_p8): Likewise.
25417 (vreinterpret_u16_p16): Likewise.
25418 (vreinterpretq_u16_s8): Likewise.
25419 (vreinterpretq_u16_s16): Likewise.
25420 (vreinterpretq_u16_s32): Likewise.
25421 (vreinterpretq_u16_s64): Likewise.
25422 (vreinterpretq_u16_f32): Likewise.
25423 (vreinterpretq_u16_u8): Likewise.
25424 (vreinterpretq_u16_u32): Likewise.
25425 (vreinterpretq_u16_u64): Likewise.
25426 (vreinterpretq_u16_p8): Likewise.
25427 (vreinterpretq_u16_p16): Likewise.
25428 (vreinterpret_u32_s8): Likewise.
25429 (vreinterpret_u32_s16): Likewise.
25430 (vreinterpret_u32_s32): Likewise.
25431 (vreinterpret_u32_s64): Likewise.
25432 (vreinterpret_u32_f32): Likewise.
25433 (vreinterpret_u32_u8): Likewise.
25434 (vreinterpret_u32_u16): Likewise.
25435 (vreinterpret_u32_u64): Likewise.
25436 (vreinterpret_u32_p8): Likewise.
25437 (vreinterpret_u32_p16): Likewise.
25438 (vreinterpretq_u32_s8): Likewise.
25439 (vreinterpretq_u32_s16): Likewise.
25440 (vreinterpretq_u32_s32): Likewise.
25441 (vreinterpretq_u32_s64): Likewise.
25442 (vreinterpretq_u32_f32): Likewise.
25443 (vreinterpretq_u32_u8): Likewise.
25444 (vreinterpretq_u32_u16): Likewise.
25445 (vreinterpretq_u32_u64): Likewise.
25446 (vreinterpretq_u32_p8): Likewise.
25447 (vreinterpretq_u32_p16): Likewise.
25449 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
25451 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
25453 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
25455 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
25456 (vqnegd_s64): Likewise.
25457 (vqabs_s64): Likewise.
25458 (vqabsd_s64): Likewise.
25460 2014-04-22 Richard Henderson <rth@redhat.com>
25462 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
25463 computation to the top of the loop.
25465 2014-04-22 Renlin <renlin.li@arm.com>
25466 Jiong Wang <jiong.wang@arm.com>
25468 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
25469 * config/aarch64/aarch64.c (aarch64_layout_frame)
25470 (aarch64_initial_elimination_offset): Likewise.
25472 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
25474 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
25477 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
25479 * machmode.h (bitwise_mode_for_mode): Declare.
25480 * stor-layout.h (bitwise_type_for_mode): Likewise.
25481 * stor-layout.c (bitwise_mode_for_mode): New function.
25482 (bitwise_type_for_mode): Likewise.
25483 * builtins.c (fold_builtin_memory_op): Use it instead of
25484 int_mode_for_mode and build_nonstandard_integer_type.
25486 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25488 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
25489 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
25490 (*-*-solaris2*): Simplify.
25491 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
25492 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
25493 *-*-solaris2.9* handling.
25495 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
25497 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
25498 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
25499 handling, simplify.
25500 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
25501 * configure: Regenerate.
25503 * config/i386/sol2-9.h: Remove.
25505 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
25506 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
25507 Remove Solaris 9 references.
25509 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
25511 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
25512 (floatuns<GPI:mode><GPF:mode>2): Remove.
25513 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
25514 and floatuns conversions.
25515 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
25516 and floatuns conversions.
25517 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
25518 (w1,w2): New mode attributes for inequal width conversions.
25520 2014-04-22 Renlin Li <Renlin.Li@arm.com>
25522 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
25523 the output asm format.
25525 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
25527 * config/aarch64/aarch64-simd.md
25528 (aarch64_cm<optab>di): Always split.
25529 (*aarch64_cm<optab>di): New.
25530 (aarch64_cmtstdi): Always split.
25531 (*aarch64_cmtstdi): New.
25533 2014-04-22 Jakub Jelinek <jakub@redhat.com>
25535 PR tree-optimization/60823
25536 * omp-low.c (ipa_simd_modify_function_body): Go through
25537 all SSA_NAMEs and for those refering to vector arguments
25538 which are going to be replaced adjust SSA_NAME_VAR and,
25539 if it is a default definition, change it into a non-default
25540 definition assigned at the beginning of function from new_decl.
25541 (ipa_simd_modify_stmt_ops): Rewritten.
25542 * tree-dfa.c (set_ssa_default_def): When removing default def,
25543 check for NULL loc instead of NULL *loc.
25545 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25547 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
25548 restrictions on core registers for DImode values in Thumb2.
25550 2014-04-22 Ian Bolton <ian.bolton@arm.com>
25552 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
25553 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
25555 2014-04-22 Ian Bolton <ian.bolton@arm.com>
25557 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
25558 (*iordi_notzesidi_di): Likewise.
25559 (*iordi_notsesidi_di): Likewise.
25561 2014-04-22 Ian Bolton <ian.bolton@arm.com>
25563 * config/arm/arm-protos.h (tune_params): New struct members.
25564 * config/arm/arm.c: Initialise tune_params per processor.
25565 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
25566 for speed, based on new tune_params.
25568 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
25570 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
25571 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
25572 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
25573 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
25574 * config/aarch64/arm_neon.h (vrnd_f64): Added.
25575 (vrnda_f64): Likewise.
25576 (vrndi_f64): Likewise.
25577 (vrndm_f64): Likewise.
25578 (vrndn_f64): Likewise.
25579 (vrndp_f64): Likewise.
25580 (vrndx_f64): Likewise.
25582 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25584 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
25585 GET_MODE_SIZE argument is enum machine_mode.
25587 2014-04-22 Jakub Jelinek <jakub@redhat.com>
25590 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
25591 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
25593 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
25595 PR middle-end/60281
25596 * asan.c (asan_emit_stack_protection): Force the base to align to
25597 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
25598 appropriate bits if STRICT_ALIGNMENT.
25599 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
25601 (expand_used_vars): Leave a space in the stack frame for alignment
25602 if STRICT_ALIGNMENT.
25604 2014-04-21 David Malcolm <dmalcolm@redhat.com>
25606 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
25608 (gimple_store_p): Likewise.
25609 (gimple_assign_load_p): Likewise.
25610 (gimple_assign_cast_p): Likewise.
25611 (gimple_clobber_p): Likewise.
25613 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
25614 rather than a gimple.
25615 (gimple_assign_cast_p): Likewise.
25617 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
25620 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
25621 If mode is DDmode and TARGET_E500_DOUBLE allow move.
25623 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
25624 more debug information for E500 if -mdebug=reg.
25626 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
25629 * config/i386/i386.c (ix86_expand_builtin)
25630 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
25631 register for target RTX.
25632 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
25634 2014-04-18 Cong Hou <congh@google.com>
25636 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
25637 the widen-mult pattern by handling two operands with different sizes,
25638 and operands whose size is smaller than half of the result type.
25640 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
25642 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
25643 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
25644 (do_estimate_edge_time): Compute it.
25645 * ipa-inline.c (want_inline_small_function_p): Bypass
25646 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
25648 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
25650 * ipa-inline.c (spec_rem): New static variable.
25651 (dump_overall_stats): New function.
25652 (dump_inline_stats): New function.
25654 2014-04-18 Richard Henderson <rth@redhat.com>
25656 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
25657 to GET_MODE_SIZE, not a reg_class_t.
25659 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25661 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
25662 (vsx_xxmrglw_<mode>): Likewise.
25664 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
25667 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
25668 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
25669 (rs6000_init_hard_regno_mode_ok): Likewise.
25671 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
25673 * ipa-inline.c (inline_small_functions): Account only non-cold
25675 * doc/invoke.texi (inline-unit-growth): Update documentation.
25677 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
25679 * config/rs6000/rs6000.md (addti3, subti3): New.
25681 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
25684 * config/i386/i386.c (ix86_expand_clear): Remove outdated
25685 comment. Check optimize_insn_for_size_p instead of
25686 optimize_insn_for_speed_p.
25688 2014-04-17 Martin Jambor <mjambor@suse.cz>
25690 * gimple-iterator.c (gsi_start_edge): New function.
25691 * gimple-iterator.h (gsi_start_edge): Declare.
25692 * tree-sra.c (single_non_eh_succ): New function.
25693 (disqualify_ops_if_throwing_stmt): Renamed to
25694 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
25695 having one non-EH successor BB.
25696 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
25697 generate loads into replacements.
25698 (sra_modify_assign): Likewise and and also use the simple path for
25700 (sra_modify_function_body): Commit statements on edges.
25702 2014-04-17 Richard Biener <rguenther@suse.de>
25704 PR middle-end/60849
25705 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
25706 comparison results and add clarifying comment.
25708 2014-04-17 Jakub Jelinek <jakub@redhat.com>
25710 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
25711 (blank_mode): Initialize it.
25712 (emit_mode_size_inline, emit_mode_nunits_inline,
25713 emit_mode_inner_inline): New functions.
25714 (emit_insn_modes_h): Call them and surround their output with
25715 #if GCC_VERSION >= 4001 ... #endif.
25716 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
25717 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
25718 mode_* arrays if the argument is __builtin_constant_p.
25719 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
25720 is enum machine_mode.
25722 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
25724 * passes.c (opt_pass::execute): Adjust.
25725 (pass_manager::execute_pass_mode_switching): Likewise.
25726 (early_local_passes::execute): Likewise.
25727 (execute_one_pass): Pass cfun to the pass's execute method.
25728 * tree-pass.h (opt_pass::execute): Add function * argument.
25729 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
25730 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
25731 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
25732 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
25733 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
25734 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
25735 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
25736 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
25737 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
25738 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
25739 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
25740 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
25741 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
25742 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
25743 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
25744 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
25745 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
25746 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
25747 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
25748 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
25749 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
25750 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
25751 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
25752 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
25753 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
25754 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
25755 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
25756 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
25757 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
25760 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
25762 * passes.c (opt_pass::gate): Take function * argument.
25763 (gate_all_early_local_passes): Merge into
25764 (early_local_passes::gate): this.
25765 (gate_all_early_optimizations): Merge into
25766 (all_early_optimizations::gate): this.
25767 (gate_all_optimizations): Mege into
25768 (all_optimizations::gate): this.
25769 (gate_all_optimizations_g): Merge into
25770 (all_optimizations_g::gate): this.
25771 (gate_rest_of_compilation): Mege into
25772 (rest_of_compilation::gate): this.
25773 (gate_postreload): Merge into
25774 (postreload::gate): this.
25775 (dump_one_pass): Pass cfun to the pass's gate method.
25776 (execute_ipa_summary_passes): Likewise.
25777 (execute_one_pass): Likewise.
25778 (ipa_write_summaries_2): Likewise.
25779 (ipa_write_optimization_summaries_1): Likewise.
25780 (ipa_read_summaries_1): Likewise.
25781 (ipa_read_optimization_summaries_1): Likewise.
25782 (execute_ipa_stmt_fixups): Likewise.
25783 * tree-pass.h (opt_pass::gate): Add function * argument.
25784 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
25785 combine-stack-adj.c, combine.c, compare-elim.c,
25786 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
25787 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
25788 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
25789 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
25790 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
25791 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
25792 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
25793 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
25794 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
25795 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
25796 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
25797 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
25798 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
25799 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
25800 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
25801 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
25802 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
25803 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
25804 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
25805 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
25806 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
25807 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
25808 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
25809 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
25810 var-tracking.c, vtable-verify.c, web.c: Adjust.
25812 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
25814 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
25815 * configure: Regenerate.
25817 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
25819 * passes.c (dump_one_pass): don't check pass->has_gate.
25820 (execute_ipa_summary_passes): Likewise.
25821 (execute_one_pass): Likewise.
25822 (ipa_write_summaries_2): Likewise.
25823 (ipa_write_optimization_summaries_1): Likewise.
25824 (ipa_read_optimization_summaries_1): Likewise.
25825 (execute_ipa_stmt_fixups): Likewise.
25826 * tree-pass.h (pass_data::has_gate): Remove.
25827 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
25828 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
25829 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
25830 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
25831 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
25832 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
25833 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
25834 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
25835 gimple-low.c, gimple-ssa-isolate-paths.c,
25836 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
25837 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
25838 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
25839 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
25840 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
25841 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
25842 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
25843 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
25844 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
25845 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
25846 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
25847 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
25848 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
25849 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
25850 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
25851 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
25852 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
25853 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
25854 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
25855 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
25856 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
25857 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
25860 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
25862 * pass_manager.h (pass_manager::register_dump_files_1): Remove
25864 * passes.c (pass_manager::register_dump_files_1): Merge into
25865 (pass_manager::register_dump_files): this, and remove its handling of
25866 properties since the pass always has the properties anyway.
25867 (pass_manager::pass_manager): Adjust.
25869 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
25871 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
25872 * passes.c (pass_manager::register_dump_files_1): Remove dead code
25873 dealing with properties.
25874 (pass_manager::register_dump_files): Adjust.
25876 2014-03-20 Mark Wielaard <mjw@redhat.com>
25878 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
25879 then represent the bound as normal constant value.
25881 2014-04-17 Jakub Jelinek <jakub@redhat.com>
25884 Forward port from 4.8 branch
25885 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
25887 * config/i386/bmiintrin.h (_blsi_u32): New.
25888 (_blsi_u64): Ditto.
25889 (_blsr_u32): Ditto.
25890 (_blsr_u64): Ditto.
25891 (_blsmsk_u32): Ditto.
25892 (_blsmsk_u64): Ditto.
25893 (_tzcnt_u32): Ditto.
25894 (_tzcnt_u64): Ditto.
25896 2014-04-17 Kito Cheng <kito@0xlab.org>
25898 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
25900 2014-04-17 Richard Biener <rguenther@suse.de>
25902 PR middle-end/60849
25903 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
25904 boolean results for comparisons.
25906 2014-04-17 Richard Biener <rguenther@suse.de>
25908 PR tree-optimization/60836
25909 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
25910 initial PHI args to be gimple values.
25912 2014-04-17 Richard Biener <rguenther@suse.de>
25914 PR tree-optimization/60841
25915 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
25916 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
25917 of stmts to SLP build.
25918 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
25919 (vect_analyze_slp): Likewise.
25920 (vect_analyze_slp_instance): Likewise.
25921 (vect_build_slp_tree): Limit overall SLP tree growth.
25922 * tree-vectorizer.h (vect_analyze_data_refs,
25923 vect_analyze_slp): Adjust prototypes.
25925 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
25927 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
25930 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
25932 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
25933 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
25934 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
25935 for TARGET_SLOW_PSHUFB
25937 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
25939 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
25940 * config/i386/i386.c (intel_cost): Ditto.
25942 2014-04-17 Joey Ye <joey.ye@arm.com>
25944 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
25946 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
25948 * opts.c (common_handle_option): Disable -fipa-reference coorectly
25949 with -fuse-profile.
25951 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
25953 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
25954 (type_all_derivations_known_p): New predicate.
25955 (type_all_ctors_visible_p): New predicate.
25956 (type_possibly_instantiated_p): New predicate.
25957 (get_odr_type): Compute all_derivations_known.
25958 (dump_odr_type): Dump the flag.
25959 (maybe_record_type): Cleanup.
25960 (record_target_from_binfo): Add bases_to_consider array;
25961 record bases for types w/o instances and skip CXX destructor.
25962 (possible_polymorphic_call_targets_1): Add bases_to_consider
25963 and consider_construction parameters; check if type may have instance.
25964 (get_polymorphic_call_info): Set maybe_in_construction to true
25965 when we know nothing.
25966 (record_targets_from_bases): Skip CXX destructors; they are
25967 never called for types in construction.
25968 (possible_polymorphic_call_targets): Do not record target when
25969 type may not have instance.
25971 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
25974 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
25975 external aliases alive, too.
25977 2014-04-16 Andrew Pinski <apinski@cavium.com>
25979 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
25982 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
25984 * final.c (compute_alignments): Do not apply loop alignment to a block
25985 falling through to the exit.
25987 2014-04-16 Catherine Moore <clm@codesourcery.com>
25989 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
25990 Adjust constraints for microMIPS store patterns.
25992 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
25994 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
25996 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
25998 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
25999 (append_use): Run at -O0.
26000 (append_vdef): Likewise.
26001 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
26002 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
26004 2014-04-16 Jakub Jelinek <jakub@redhat.com>
26006 PR tree-optimization/60844
26007 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
26008 (propagate_op_to_single_use, remove_visited_stmt_chain,
26009 linearize_expr, repropagate_negates, reassociate_bb): Use it
26010 instead of gsi_remove.
26012 2014-04-16 Martin Jambor <mjambor@suse.cz>
26014 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
26015 ipa_transforms_to_apply.
26016 (cgraph_function_versioning): Assert that old_node has empty
26017 ipa_transforms_to_apply.
26018 * trans-mem.c (ipa_tm_create_version): Likewise.
26019 * tree-inline.c (tree_function_versioning): Do not duplicate
26020 ipa_transforms_to_apply.
26022 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26025 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
26027 Pass necessary as flags on 64-bit Solaris/x86.
26028 Use lowercase relocs for x86_64-*-*.
26029 * configure: Regenerate.
26031 2014-04-15 Jan Hubicka <jh@suse.cz>
26033 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
26034 (maybe_record_node, likely_target_p): Use it.
26036 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26039 Revert following patch
26041 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
26044 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
26045 software floating point or no floating point registers, do not
26046 allow any type in the FPRs. Eliminate a test for SPE SIMD types
26047 in GPRs that occurs after we tested for GPRs that would never be
26050 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
26051 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
26052 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
26053 specifically allow DDmode, since that does not use the SPE SIMD
26056 2014-03-21 Mark Wielaard <mjw@redhat.com>
26058 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
26059 as unsigned or int depending on type and value used.
26061 2014-04-15 Richard Biener <rguenther@suse.de>
26063 PR rtl-optimization/56965
26064 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
26065 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
26067 * alias.c (true_dependence_1): Do not call
26068 nonoverlapping_component_refs_p.
26069 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
26070 nonoverlapping_component_refs_p.
26071 (indirect_refs_may_alias_p): Likewise.
26073 2014-04-15 Teresa Johnson <tejohnson@google.com>
26075 * cfg.c (dump_bb_info): Fix flags check.
26076 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
26078 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26080 PR rtl-optimization/60663
26081 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
26084 2014-04-15 Richard Biener <rguenther@suse.de>
26086 * lto-streamer.h (LTO_major_version): Bump to 4.
26088 2014-04-15 Richard Biener <rguenther@suse.de>
26090 * common.opt (lto_partition_model): New enum.
26091 (flto-partition=): Merge separate options with a single with argument,
26092 add -flto-partition=one support.
26093 * flag-types.h (enum lto_partition_model): Declare.
26094 * opts.c (finish_options): Remove duplicate -flto-partition=
26096 * lto-wrapper.c (run_gcc): Adjust.
26098 2014-04-15 Richard Biener <rguenther@suse.de>
26100 * alias.c (ncr_compar): New function.
26101 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
26103 2014-04-15 Richard Biener <rguenther@suse.de>
26105 * alias.c (record_component_aliases): Do not walk BINFOs.
26107 2014-04-15 Richard Biener <rguenther@suse.de>
26109 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
26110 Add struct function argument and adjust.
26111 (find_func_aliases_for_call): Likewise.
26112 (find_func_aliases): Likewise.
26113 (find_func_clobbers): Likewise.
26114 (intra_create_variable_infos): Likewise.
26115 (compute_points_to_sets): Likewise.
26116 (ipa_pta_execute): Adjust. Do not push/pop cfun.
26118 2014-04-15 Richard Biener <rguenther@suse.de>
26120 * tree.c (iterative_hash_expr): Use enum tree_code_class
26121 to store TREE_CODE_CLASS.
26122 (tree_block): Likewise.
26123 (tree_set_block): Likewise.
26124 * tree.h (fold_build_pointer_plus_loc): Use
26125 convert_to_ptrofftype_loc.
26127 2014-04-15 Jakub Jelinek <jakub@redhat.com>
26130 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
26133 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
26135 * cfgloop.h (struct loop): Move force_vectorize down.
26136 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
26137 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
26138 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
26139 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
26140 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
26141 * tree-core.h (enum annot_expr_kind): Add new kind values.
26142 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
26143 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
26145 * tree.def (ANNOTATE_EXPR): Tweak comment.
26147 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
26149 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
26152 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
26154 * tree.h (TYPE_IDENTIFIER): Declare.
26155 * tree.c (subrange_type_for_debug_p): Use it.
26156 * godump.c (go_format_type): Likewise.
26157 * dwarf2out.c (is_cxx_auto, modified_type_die,
26158 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
26159 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
26161 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
26164 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
26166 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
26168 * config/i386/i386.c (examine_argument): Return bool. Return true if
26169 parameter should be passed in memory.
26170 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
26171 (construct_container): Update calls to examine_argument.
26172 (function_arg_advance_64): Ditto.
26173 (return_in_memory_32): Merge with ix86_return_in_memory.
26174 (return_in_memory_64): Ditto.
26175 (return_in_memory_ms_64): Ditto.
26177 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
26179 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
26180 * coverage.c (coverage_compute_profile_id): Handle externally visible
26183 2014-04-14 Martin Jambor <mjambor@suse.cz>
26185 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
26186 DECL_DISREGARD_INLINE_LIMITS functions.
26188 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
26191 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
26193 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
26196 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
26197 optimize_insn_for_speed_p instead of
26198 optimize_function_for_speed_p.
26200 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
26202 * doc/invoke.texi (free): Document AArch64.
26204 2014-04-14 Richard Biener <rguenther@suse.de>
26206 PR tree-optimization/60042
26207 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
26208 (insert_into_preds_of_block): Do not prevent PHI insertion
26209 for REFERENCE exprs here ...
26210 (eliminate_dom_walker::before_dom_children): ... but prevent
26211 their use here under similar conditions when applied to the
26212 IL after PRE optimizations.
26214 2014-04-14 Richard Biener <rguenther@suse.de>
26216 * passes.def: Move early points-to after early SRA.
26218 2014-04-14 Richard Biener <rguenther@suse.de>
26220 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
26221 check for which sign-changes we allow when forwarding
26222 a converted value into a switch.
26224 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
26226 * stor-layout.c (place_field): Finalize non-constant offset for the
26229 2014-04-14 Richard Biener <rguenther@suse.de>
26231 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
26233 (expand_switch_using_bit_tests_p): Likewise.
26234 (process_switch): Compute and pass on speed_p based on the
26236 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
26237 optimize_bb_for_speed_p.
26239 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
26241 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
26242 * function.h (struct function): Rename has_force_vect_loops into
26243 has_force_vectorize_loops.
26244 * lto-streamer-in.c (input_cfg): Adjust for renaming.
26245 (input_struct_function_base): Likewise.
26246 * lto-streamer-out.c (output_cfg): Likewise.
26247 (output_struct_function_base): Likewise.
26248 * omp-low.c (expand_omp_simd): Likewise.
26249 * tree-cfg.c (move_sese_region_to_fn): Likewise.
26250 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
26251 (version_loop_for_if_conversion): Likewise.
26252 (tree_if_conversion): Likewise.
26253 (main_tree_if_conversion): Likewise.
26254 (gate_tree_if_conversion): Likewise.
26255 * tree-inline.c (copy_loops): Likewise.
26256 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
26257 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
26258 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
26259 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
26260 * tree-vectorizer.c (vectorize_loops): Likewise.
26261 * tree-vectorizer.h (unlimited_cost_model): Likewise.
26263 2014-04-14 Richard Biener <rguenther@suse.de>
26266 * lto-streamer-out.c (wrap_refs): New function.
26267 (lto_output): Wrap symbol references in global initializes in
26268 type-preserving MEM_REFs.
26270 2014-04-14 Christian Bruel <christian.bruel@st.com>
26272 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
26274 2014-04-14 Christian Bruel <christian.bruel@st.com>
26276 * config/sh/sh.md (setmemqi): New expand pattern.
26277 * config/sh/sh.h (CLEAR_RATIO): Define.
26278 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
26279 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
26281 2014-04-14 Richard Biener <rguenther@suse.de>
26283 PR middle-end/55022
26284 * fold-const.c (negate_expr_p): Don't negate directional rounding
26286 (fold_negate_expr): Likewise.
26288 2014-04-14 Richard Biener <rguenther@suse.de>
26290 PR tree-optimization/59817
26291 PR tree-optimization/60453
26292 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
26293 recursion to catch all CHRECs in the scalar evolution and restrict
26294 the predicate for the remains appropriately.
26296 2014-04-12 Catherine Moore <clm@codesourcery.com>
26298 * config/mips/constraints.md: Add new register constraint "kb".
26299 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
26300 (*movhi_internal): Likewise.
26301 (*movqi_internal): Likewise.
26302 * config/mips/mips.h (M16_STORE_REGS): New register class.
26303 (REG_CLASS_NAMES): Add M16_STORE_REGS.
26304 (REG_CLASS_CONTENTS): Likewise.
26305 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
26307 2014-04-11 Tobias Burnus <burnus@net-b.de>
26310 * doc/invoke.texi (-Wformat-signedness): Document it.
26311 (Wformat=2): Mention that this enables -Wformat-signedness.
26313 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
26315 * common/config/epiphany/epiphany-common.c
26316 (epiphany_option_optimization_table): Enable section anchors by
26317 default at -O1 or higher.
26318 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
26319 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
26320 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
26321 carries no extra cost.
26322 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
26323 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
26324 * config/epiphany/predicates.md (memclob_operand): New predicate.
26325 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
26326 Use memclob_operand predicate and X constraint for operand 3.
26328 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
26330 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
26331 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
26334 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
26336 PR rtl-optimization/60651
26337 * mode-switching.c (optimize_mode_switching): Make sure to emit
26338 sets of a lower numbered entity before sets of a higher numbered
26339 entity to a mode of the same or lower priority.
26340 When creating a seginfo for a basic block that starts with a code
26341 label, move the insertion point past the code label.
26342 (new_seginfo): Document and enforce requirement that
26343 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
26344 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
26345 * doc/tm.texi: Regenerate.
26347 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
26350 * config/arc/arc.c (arc_save_restore): Fix assert typo.
26352 2013-04-11 Jakub Jelinek <jakub@redhat.com>
26354 * BASE-VER: Set to 4.10.0.
26356 2014-04-11 Tobias Burnus <burnus@net-b.de>
26359 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
26360 * doc/gcc.texi (Service): Update description in the @menu
26361 * doc/invoke.texi (Option Summary): Remove misplaced and
26364 2014-04-11 Steve Ellcey <sellcey@mips.com>
26365 Jakub Jelinek <jakub@redhat.com>
26367 PR middle-end/60556
26368 * expr.c (convert_move): Use emit_store_flag_force instead of
26369 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
26372 2014-04-11 Richard Biener <rguenther@suse.de>
26374 PR middle-end/60797
26375 * varasm.c (assemble_alias): Avoid endless error reporting
26376 recursion by setting TREE_ASM_WRITTEN.
26378 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26380 * config/s390/s390.md: Add a splitter for NOT rtx.
26382 2014-04-11 Jakub Jelinek <jakub@redhat.com>
26384 PR rtl-optimization/60663
26385 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
26387 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
26388 Jakub Jelinek <jakub@redhat.com>
26391 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
26392 flag from decl_node to node.
26394 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26397 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
26398 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
26399 ameliorating the cases where it can be.
26401 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
26404 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
26406 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
26407 (loadsync_<mode>): Change mode.
26408 (load_quadpti, store_quadpti): New.
26409 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
26410 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
26411 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
26413 2014-04-09 Cong Hou <congh@google.com>
26416 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
26419 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26421 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
26422 instead of vnor to exploit possible fusion opportunity in the
26424 (altivec_expand_vec_perm_const_le): Likewise.
26426 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
26428 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
26429 (loadsync_<mode>): Change mode.
26430 (load_quadpti, store_quadpti): New.
26431 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
26432 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
26434 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
26437 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
26438 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
26439 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
26441 2014-04-08 Richard Biener <rguenther@suse.de>
26443 PR middle-end/60706
26444 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
26445 a 64bit widest int print double-int similar to on HWI64 hosts.
26447 2014-04-08 Richard Biener <rguenther@suse.de>
26449 PR tree-optimization/60785
26450 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
26451 default defs properly.
26453 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
26455 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
26456 (Weffc++): Likewise.
26458 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
26460 * ipa-devirt.c (maybe_record_node): When node is not recorded,
26461 set completep to false rather than true.
26463 2014-04-07 Douglas B Rupp <rupp@adacore.com>
26466 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
26467 ARM_TARGET2_DWARF_FORMAT.
26469 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
26472 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
26473 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
26476 2014-04-07 Richard Biener <rguenther@suse.de>
26478 PR tree-optimization/60766
26479 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
26480 (may_eliminate_iv): Convert cand_value_at result to desired type.
26482 2014-04-07 Jason Merrill <jason@redhat.com>
26485 * common.opt (-fno-gnu-unique): Add.
26486 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
26488 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26490 * haifa-sched.c: Fix outdated function reference and minor
26491 grammar errors in introductory comment.
26493 2014-04-07 Richard Biener <rguenther@suse.de>
26495 PR middle-end/60750
26496 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
26497 for noreturn calls.
26498 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
26500 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
26503 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
26504 size accounting for thunks.
26505 (pa_asm_output_mi_thunk): Use final_start_function() and
26506 final_end_function() to output function start and end directives.
26508 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
26510 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
26511 device specific ISA/ feature information. Remove short_sp and
26512 errata_skip ds. Add avr_device_specific_features enum to have device
26514 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
26515 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
26516 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
26517 updated device specific info.
26518 * config/avr/avr-mcus.def: Merge device specific details to
26519 dev_attribute field.
26520 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
26522 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
26523 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
26524 assembler if RMW isa supported by current device.
26525 * config/avr/genmultilib.awk: Update as device info structure changed.
26526 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
26528 2014-04-04 Cong Hou <congh@google.com>
26530 PR tree-optimization/60656
26531 * tree-vect-stmts.c (supportable_widening_operation):
26532 Fix a bug that elements in a vector with vect_used_by_reduction
26533 property are incorrectly reordered when the operation on it is not
26534 consistant with the one in reduction operation.
26536 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
26538 PR rtl-optimization/60155
26539 * gcse.c (record_set_data): New function.
26540 (single_set_gcse): New function.
26541 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
26542 (hoist_code): Likewise.
26543 (get_pressure_class_and_nregs): Likewise.
26545 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
26547 * explow.c (probe_stack_range): Emit a final optimization blockage.
26549 2014-04-04 Anthony Green <green@moxielogic.com>
26551 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
26554 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
26557 * lto-cgraph.c (input_overwrite_node): Check that partitioning
26558 flags are set only during streaming.
26559 * ipa.c (process_references, walk_polymorphic_call_targets,
26560 symtab_remove_unreachable_nodes): Drop bodies of always inline
26561 after early inlining.
26562 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
26564 2014-04-04 Jakub Jelinek <jakub@redhat.com>
26565 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26568 * dwarf2out.c (const_ok_for_output_1): Reject expressions
26571 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26574 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
26576 (cortex_a53_fdivd): Likewise.
26578 2014-04-04 Martin Jambor <mjambor@suse.cz>
26581 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
26582 Adjust all callers.
26583 * cgraph.c (clone_of_p): Also return true if thunks match.
26584 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
26585 cgraph_function_or_thunk_node and an obsolete comment.
26586 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
26588 (build_function_decl_skip_args): Likewise.
26589 (set_new_clone_decl_and_node_flags): New function.
26590 (duplicate_thunk_for_node): Likewise.
26591 (redirect_edge_duplicating_thunks): Likewise.
26592 (cgraph_clone_node): New parameter args_to_skip, pass it to
26593 redirect_edge_duplicating_thunks which is called instead of
26594 cgraph_redirect_edge_callee.
26595 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
26596 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
26598 2014-04-04 Jeff Law <law@redhat.com>
26601 * config/arm/predicates.md (const_int_I_operand): New predicate.
26602 (const_int_M_operand): Similarly.
26603 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
26605 (insv_t2, extv_reg, extzv_t2): Likewise.
26606 (load_multiple_with_writeback): Similarly for const_int_I_operand.
26607 (pop_multiple_with_writeback_and_return): Likewise.
26608 (vfp_pop_multiple_with_writeback): Likewise
26610 2014-04-04 Richard Biener <rguenther@suse.de>
26613 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
26614 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
26616 * gimplify.h (gimple_add_tmp_var_fn): Declare.
26617 * gimplify.c (gimple_add_tmp_var_fn): New function.
26618 * gimple-expr.h (create_tmp_reg_fn): Declare.
26619 * gimple-expr.c (create_tmp_reg_fn): New function.
26620 * gimple-low.c (record_vars_into): Don't change cfun.
26621 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
26622 code generation without cfun.
26624 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
26627 * Makefile.in (install-driver): Fix shell scripting.
26629 2014-04-03 Cong Hou <congh@google.com>
26631 PR tree-optimization/60505
26632 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
26633 threshold of number of iterations below which no vectorization
26635 * tree-vect-loop.c (new_loop_vec_info):
26636 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
26637 * tree-vect-loop.c (vect_analyze_loop_operations):
26638 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
26639 * tree-vect-loop.c (vect_transform_loop):
26640 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
26641 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
26642 of iterations of the loop and see if we should build the epilogue.
26644 2014-04-03 Richard Biener <rguenther@suse.de>
26646 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
26647 (streamer_tree_cache_create): Adjust.
26648 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
26649 to allow optional nodes array.
26650 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
26651 (streamer_tree_cache_append): Likewise.
26652 (streamer_tree_cache_create): Create nodes array optionally
26653 as specified by parameter.
26654 * lto-streamer-out.c (create_output_block): Avoid maintaining
26655 the node array in the writer cache.
26656 (DFS_write_tree): Remove assertion.
26657 (produce_asm_for_decls): Free the out decl state hash table early.
26658 * lto-streamer-in.c (lto_data_in_create): Adjust for
26659 streamer_tree_cache_create prototype change.
26661 2014-04-03 Richard Biener <rguenther@suse.de>
26663 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
26664 set TREE_CHAIN to NULL_TREE.
26666 2014-04-03 Richard Biener <rguenther@suse.de>
26668 PR tree-optimization/60740
26669 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
26670 over all GIMPLE_COND operands.
26672 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
26674 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
26675 (Weffc++): Remove Scott's numbering, merge lists and reference
26678 2014-04-03 Nick Clifton <nickc@redhat.com>
26680 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
26683 2014-04-03 Martin Jambor <mjambor@suse.cz>
26685 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
26686 mention gcc_unreachable before failing.
26687 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
26690 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
26693 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
26694 inconsistent code and instead mark the context inconsistent.
26695 (possible_polymorphic_call_targets): For inconsistent contexts
26696 return empty complete list.
26698 2014-04-02 Anthony Green <green@moxielogic.com>
26700 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
26701 (extendqisi2, extendhisi2): Define.
26702 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
26703 (WCHAR_TYPE): Change to unsigned int.
26705 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26707 PR tree-optimization/60733
26708 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
26709 insertion point for PHI candidates to be the end of the feeding
26710 block for the PHI argument.
26712 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
26714 PR rtl-optimization/60650
26715 * lra-constraints.c (process_alt_operands): Decrease reject for
26716 earlyclobber matching.
26718 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26720 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
26722 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26724 * config/spu/spu.c (pad_bb): Do not crash when the last
26725 insn is CODE_FOR_blockage.
26727 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26729 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
26730 lies outside the target mode.
26732 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
26735 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
26736 software floating point or no floating point registers, do not
26737 allow any type in the FPRs. Eliminate a test for SPE SIMD types
26738 in GPRs that occurs after we tested for GPRs that would never be
26741 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
26742 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
26743 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
26744 specifically allow DDmode, since that does not use the SPE SIMD
26747 2014-04-02 Richard Biener <rguenther@suse.de>
26749 PR middle-end/60729
26750 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
26751 MODE_INTs. Properly use negv_optab.
26752 (expand_abs): Likewise.
26754 2014-04-02 Richard Biener <rguenther@suse.de>
26757 * Makefile.in (install-driver): Guard extra installs with special
26760 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
26762 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26763 Document vec_vgbbd.
26765 2014-04-01 Richard Henderson <rth@redhat.com>
26768 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
26769 alternative enabled before register allocation.
26771 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
26773 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
26774 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
26776 (nios2_large_got_address): Remove unneeded 'sym' parameter.
26777 (nios2_got_address): Update nios2_large_got_address call site.
26778 (nios2_delegitimize_address): New function.
26779 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
26780 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
26781 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
26783 2014-04-01 Martin Husemann <martin@duskware.de>
26785 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
26788 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
26790 PR rtl-optimization/60604
26791 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
26792 check from register_operand.
26793 (register_operand): Redefine in terms of general_operand.
26794 (nonmemory_operand): Use register_operand for the non-constant cases.
26796 2014-04-01 Richard Biener <rguenther@suse.de>
26798 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
26800 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
26802 * doc/invoke.texi (mapp-regs): Clarify.
26804 2014-03-31 Ulrich Drepper <drepper@gmail.com>
26806 * config/i386/avx512fintrin.h (__v32hi): Define type.
26807 (__v64qi): Likewise.
26808 (_mm512_set1_epi8): Define.
26809 (_mm512_set1_epi16): Define.
26810 (_mm512_set4_epi32): Define.
26811 (_mm512_set4_epi64): Define.
26812 (_mm512_set4_pd): Define.
26813 (_mm512_set4_ps): Define.
26814 (_mm512_setr4_epi64): Define.
26815 (_mm512_setr4_epi32): Define.
26816 (_mm512_setr4_pd): Define.
26817 (_mm512_setr4_ps): Define.
26818 (_mm512_setzero_epi32): Define.
26820 2014-03-31 Martin Jambor <mjambor@suse.cz>
26822 PR middle-end/60647
26823 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
26824 callsite_arguments_match_p. Updated all callers. Also check types of
26825 corresponding formal parameters and actual arguments.
26826 (not_all_callers_have_enough_arguments_p) Renamed to
26827 some_callers_have_mismatched_arguments_p.
26829 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
26831 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
26833 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
26836 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
26839 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
26841 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
26842 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
26844 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
26845 Use FMAMODE_NOVF512 mode iterator.
26846 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
26847 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
26848 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
26849 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
26851 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
26852 Use VF_128_256 mode iterator.
26853 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
26856 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
26858 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
26859 static chain if needed.
26861 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
26864 * lra-constraints.c (index_part_to_reg): New.
26865 (process_address): Use it.
26867 2014-03-27 Jeff Law <law@redhat.com>
26868 Jakub Jelinek <jakub@redhat.com>
26871 * expr.c (do_tablejump): Use simplify_gen_binary rather than
26872 gen_rtx_{PLUS,MULT} to build up the address expression.
26874 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
26875 creating non-canonical RTL.
26877 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
26880 * ipa-inline.c (want_inline_small_function_p): Short circuit large
26881 functions; reorganize to make cheap checks first.
26882 (inline_small_functions): Do not estimate growth when dumping;
26884 * ipa-inline.h (inline_summary): Add min_size.
26885 (growth_likely_positive): New function.
26886 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
26887 (set_cond_stmt_execution_predicate): Cleanup.
26888 (estimate_edge_size_and_time): Compute min_size.
26889 (estimate_calls_size_and_time): Likewise.
26890 (estimate_node_size_and_time): Likewise.
26891 (inline_update_overall_summary): Update min_size.
26892 (do_estimate_edge_time): Likewise.
26893 (do_estimate_edge_size): Update.
26894 (do_estimate_edge_hints): Update.
26895 (growth_likely_positive): New function.
26897 2014-03-28 Jakub Jelinek <jakub@redhat.com>
26900 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
26901 also if addr has VOIDmode.
26903 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26905 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
26906 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
26908 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
26909 instructions as well as AdvancedSIMD loads.
26911 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26913 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
26914 Use crypto_aese type.
26915 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
26916 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
26917 crypto_aese, crypto_aesmc. Move to types.md.
26918 * config/arm/types.md (crypto_aes): Split into crypto_aese,
26920 * config/arm/iterators.md (crypto_type): Likewise.
26922 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
26924 * cgraph.c: Include expr.h and tree-dfa.h.
26925 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
26928 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
26931 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
26932 regs from checking multi-reg pseudos.
26934 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26936 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
26938 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26940 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
26941 if it would clobber the stack pointer, even temporarily.
26943 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
26945 * mode-switching.c: Make small adjustments to the top comment.
26947 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
26949 * config/rs6000/constraints.md (wD constraint): New constraint to
26950 match the constant integer to get the top DImode/DFmode out of a
26951 vector in a VSX register.
26953 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
26954 match the constant integer to get the top DImode/DFmode out of a
26955 vector in a VSX register.
26957 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
26960 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26963 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
26964 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
26966 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
26967 Optimize vec_extract of 64-bit values, where the value being
26968 extracted is in the top word, where we can use scalar
26969 instructions. Add direct move and store support. Combine the big
26970 endian/little endian vector select load support into a single insn.
26971 (vsx_extract_<mode>_internal1): Likewise.
26972 (vsx_extract_<mode>_internal2): Likewise.
26973 (vsx_extract_<mode>_load): Likewise.
26974 (vsx_extract_<mode>_store): Likewise.
26975 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
26976 combined into vsx_extract_<mode>_load.
26977 (vsx_extract_<mode>_one_le): Likewise.
26979 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
26980 define the top 64-bit vector element.
26982 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
26985 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26986 Document vec_vbpermq builtin.
26989 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
26990 enable use of xxsldwi and xxpermdi builtin functions.
26991 (vec_xxpermdi): Likewise.
26993 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26994 Document use of vec_xxsldwi and vec_xxpermdi builtins.
26996 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
26998 PR rtl-optimization/60650
26999 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
27001 (find_spills_for): New.
27002 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
27003 Spill all pseudos on the second iteration.
27005 2014-03-27 Marek Polacek <polacek@redhat.com>
27008 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
27011 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27013 * config/s390/s390.c (s390_can_use_return_insn): Check for
27014 call-saved FPRs on 31 bit.
27016 2014-03-27 Jakub Jelinek <jakub@redhat.com>
27018 PR middle-end/60682
27019 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
27020 if they need regimplification, just drop them instead of
27021 calling gimple_regimplify_operands on them.
27023 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
27026 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
27027 (aarch64_frame_pointer_required): Adjust logic.
27028 (aarch64_can_eliminate): Adjust logic.
27029 (aarch64_override_options_after_change): Adjust logic.
27031 2014-03-27 Dehao Chen <dehao@google.com>
27033 * ipa-inline.c (early_inliner): Update node's inline info.
27035 2014-03-26 Dehao Chen <dehao@google.com>
27037 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
27038 compiler inserted conditional jumps for NAN float check.
27040 2014-03-26 Jakub Jelinek <jakub@redhat.com>
27042 * ubsan.h (ubsan_create_data): Change second argument's type
27043 to const location_t *.
27044 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
27046 (ubsan_create_data): Change second argument to const location_t *PLOC.
27047 Create Loc field whenever PLOC is non-NULL.
27048 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
27049 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
27053 * real.c (real_to_integer2): Change type of low to UHWI.
27055 2014-03-26 Tobias Burnus <burnus@net-b.de>
27057 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
27058 (CILK_SELF_SPECS): New define.
27059 (driver_self_specs): Use it.
27061 2014-03-26 Richard Biener <rguenther@suse.de>
27063 * tree-pretty-print.c (percent_K_format): Implement special
27064 case for LTO and its stripped down BLOCK tree.
27066 2014-03-26 Jakub Jelinek <jakub@redhat.com>
27069 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
27071 * tree-vrp.c (simplify_internal_call_using_ranges): If only
27072 one range is range_int_cst_p, but not both, at least optimize
27073 addition/subtraction of 0 and multiplication by 0 or 1.
27074 * gimple-fold.c (gimple_fold_call): Fold
27075 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
27076 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
27077 INTEGER_CSTs, try to fold at least x * 0 and y - y.
27079 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
27081 PR rtl-optimization/60452
27082 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
27083 <case REG>: Return 1 for invalid offsets from the frame pointer.
27085 2014-03-26 Marek Polacek <polacek@redhat.com>
27088 * doc/extend.texi (C Extensions): Mention variable-length arrays in
27091 2014-03-26 Marek Polacek <polacek@redhat.com>
27094 * doc/extend.texi (Designated Inits): Describe what happens to omitted
27097 2014-03-26 Marek Polacek <polacek@redhat.com>
27100 * ira-color.c (update_conflict_hard_regno_costs): Perform the
27101 multiplication in unsigned type.
27103 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
27105 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
27107 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
27109 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
27111 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
27114 * cif-code.def (UNREACHABLE) New code.
27115 * ipa-inline.c (inline_small_functions): Skip edges to
27116 __builtlin_unreachable.
27117 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
27118 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
27119 predicate to __bulitin_unreachable.
27120 (set_cond_stmt_execution_predicate): Fix issue when
27121 invert_tree_comparison returns ERROR_MARK.
27122 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
27123 propagate to inline clones.
27124 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
27126 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
27127 * cgraphclones.c (cgraph_clone_node): If call destination is already
27128 ureachable, do not redirect it back.
27129 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
27132 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
27134 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
27135 Do not modify inline clones.
27137 2014-03-25 Jakub Jelinek <jakub@redhat.com>
27139 * config/i386/i386.md (general_sext_operand): New mode attr.
27140 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
27141 don't generate (sign_extend (const_int)).
27142 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
27143 operands[2]. Use We constraint instead of <i> and
27144 <general_sext_operand> predicate instead of <general_operand>.
27145 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
27146 * config/i386/constraints.md (We): New constraint.
27147 * config/i386/predicates.md (x86_64_sext_operand,
27148 sext_operand): New predicates.
27150 2014-03-25 Martin Jambor <mjambor@suse.cz>
27153 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
27154 inconsistent devirtualizations to __builtin_unreachable.
27156 2014-03-25 Marek Polacek <polacek@redhat.com>
27159 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
27161 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
27163 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
27164 order of elements for big-endian.
27166 2014-03-25 Richard Biener <rguenther@suse.de>
27168 PR middle-end/60635
27169 * gimplify-me.c (gimple_regimplify_operands): Update the
27172 2014-03-25 Martin Jambor <mjambor@suse.cz>
27175 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
27176 (lto_output_varpool_node): Likewise.
27177 (input_overwrite_node): Likewise.
27178 (input_varpool_node): Likewise.
27180 2014-03-25 Richard Biener <rguenther@suse.de>
27182 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
27183 (run_gcc): Likewise.
27185 2014-03-25 Jakub Jelinek <jakub@redhat.com>
27187 * combine.c (simplify_compare_const): Add MODE argument.
27188 Handle mode_width 0 as very large mode_width.
27189 (try_combine, simplify_comparison): Adjust callers.
27191 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
27192 type to avoid signed integer overflow.
27193 * explow.c (plus_constant): Likewise.
27195 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
27197 * doc/generic.texi: Correct typos.
27199 2014-03-24 Tobias Burnus <burnus@net-b.de>
27201 * doc/invoke.texi (-flto): Expand section about
27202 using static libraries with LTO.
27204 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27206 PR rtl-optimization/60501
27207 * optabs.def (addptr3_optab): New optab.
27208 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
27209 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
27210 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
27212 * lra.c (emit_add3_insn): Use the addptr pattern if available.
27214 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
27216 2014-03-24 Ulrich Drepper <drepper@gmail.com>
27218 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
27221 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
27222 (_mm256_undefined_ps): Define.
27223 (_mm256_undefined_pd): Define.
27224 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
27225 (_mm_undefined_pd): Define.
27226 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
27227 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
27228 (_mm512_undefined_ps): Define.
27229 (_mm512_undefined_pd): Define.
27230 Use _mm*_undefined_*.
27231 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
27233 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
27235 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
27236 (lshr_simd): DI mode added.
27237 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
27238 (aarch64_ushr_simddi): Likewise.
27239 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
27240 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
27241 (vshrd_n_u64): Likewise.
27243 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27245 * Makefile.in (s-macro_list): Depend on cc1.
27247 2014-03-23 Teresa Johnson <tejohnson@google.com>
27249 * ipa-utils.c (ipa_print_order): Use specified dump file.
27251 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
27253 PR rtl-optimization/60601
27254 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
27256 * gcc.c (eval_spec_function): Initialize save_growing_value.
27258 2014-03-22 Jakub Jelinek <jakub@redhat.com>
27261 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
27262 code == MINUS_EXPR, never swap op0 with op1.
27264 * toplev.c (init_local_tick): Avoid signed integer multiplication
27266 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
27267 shift by first operand's bitsize.
27269 2014-03-21 Jakub Jelinek <jakub@redhat.com>
27272 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
27273 redefine to 1 or 0.
27274 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
27275 TARGET_ISA_64BIT_P(x).
27277 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27279 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
27280 pattern for vector nor instead of subtract from splat(-1).
27281 (altivec_expand_vec_perm_const_le): Likewise.
27283 2014-03-21 Richard Henderson <rth@twiddle.net>
27286 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
27287 related insns after epilogue_completed.
27289 2014-03-21 Martin Jambor <mjambor@suse.cz>
27292 * cgraph.h (symtab_node): New flag body_removed.
27293 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
27294 when removing bodies.
27295 * symtab.c (dump_symtab_base): Dump body_removed flag.
27296 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
27297 had their bodies removed.
27299 2014-03-21 Martin Jambor <mjambor@suse.cz>
27302 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
27305 2014-03-21 Richard Biener <rguenther@suse.de>
27307 PR tree-optimization/60577
27308 * tree-core.h (struct tree_base): Document nothrow_flag use
27309 in DECL_NONALIASED.
27310 * tree.h (DECL_NONALIASED): New.
27311 (may_be_aliased): Adjust.
27312 * coverage.c (build_var): Set DECL_NONALIASED.
27314 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
27316 * expr.c (expand_expr_real_1): Remove outdated comment.
27318 2014-03-20 Jakub Jelinek <jakub@redhat.com>
27320 PR middle-end/60597
27321 * ira.c (adjust_cleared_regs): Call copy_rtx on
27322 *reg_equiv[REGNO (loc)].src_p before passing it to
27323 simplify_replace_fn_rtx.
27326 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
27327 into CONST, put pic register as first operand of PLUS. Use
27328 gen_const_mem for both 32-bit and 64-bit PIC got loads.
27330 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27332 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
27334 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
27336 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
27337 around for store forwarding issue in the FPU on the UT699.
27338 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
27339 loads and operations if -mfix-ut699 is specified.
27340 (divtf3_hq): Tweak attribute.
27341 (sqrttf2_hq): Likewise.
27343 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
27345 * calls.c (store_one_arg): Remove incorrect const qualification on the
27346 type of the temporary.
27347 * cfgexpand.c (expand_return): Likewise.
27348 * expr.c (expand_constructor): Likewise.
27349 (expand_expr_real_1): Likewise.
27351 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27353 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
27356 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
27359 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
27361 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
27363 * config/arm/aarch-common-protos.h
27364 (alu_cost_table): Fix spelling of "extend".
27365 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
27367 2014-03-19 Richard Biener <rguenther@suse.de>
27369 PR middle-end/60553
27370 * tree-core.h (tree_type_common): Re-order pointer members
27371 to reduce recursion depth during GC walks.
27373 2014-03-19 Marek Polacek <polacek@redhat.com>
27376 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
27377 before accessing it.
27379 2014-03-19 Richard Biener <rguenther@suse.de>
27382 * lto-streamer-in.c (input_function): In WPA stage do not drop
27385 2014-03-19 Jakub Jelinek <jakub@redhat.com>
27387 PR tree-optimization/60559
27388 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
27389 with build_zero_cst assignment.
27391 2014-03-18 Kai Tietz <ktietz@redhat.com>
27393 PR rtl-optimization/56356
27394 * sdbout.c (sdbout_parms): Verify that parms'
27395 incoming argument is valid.
27396 (sdbout_reg_parms): Likewise.
27398 2014-03-18 Richard Henderson <rth@redhat.com>
27401 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
27402 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
27403 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
27405 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
27407 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
27408 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
27409 Italicize plugin event names in description. Explain that
27410 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
27411 Remind that no GCC functions should be called after PLUGIN_FINISH.
27412 Explain what pragmas with expansion are.
27414 2014-03-18 Martin Liska <mliska@suse.cz>
27416 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
27417 gimple call statement is update.
27418 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
27419 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
27421 2014-03-18 Jakub Jelinek <jakub@redhat.com>
27424 * ubsan.c (ubsan_instrument_unreachable): Call
27425 initialize_sanitizer_builtins.
27426 (ubsan_pass): Likewise.
27429 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
27430 varpool_finalize_decl instead of rest_of_decl_compilation.
27432 2014-03-18 Richard Biener <rguenther@suse.de>
27434 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
27435 by using bitmap_and_compl instead of bitmap_and_compl_into.
27436 (df_rd_transfer_function): Likewise.
27438 2014-03-18 Richard Biener <rguenther@suse.de>
27440 * doc/lto.texi (fresolution): Fix typo.
27442 2014-03-18 Richard Biener <rguenther@suse.de>
27444 * doc/invoke.texi (flto): Update for changes in 4.9.
27446 2014-03-18 Richard Biener <rguenther@suse.de>
27448 * doc/loop.texi: Remove section on the removed lambda framework.
27449 Update loop docs with recent changes in preserving loop structure.
27451 2014-03-18 Richard Biener <rguenther@suse.de>
27453 * doc/lto.texi (-fresolution): Document.
27455 2014-03-18 Richard Biener <rguenther@suse.de>
27457 * doc/contrib.texi: Adjust my name.
27459 2014-03-18 Jakub Jelinek <jakub@redhat.com>
27462 * internal-fn.c: Include diagnostic-core.h.
27463 (expand_BUILTIN_EXPECT): New function.
27464 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
27465 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
27466 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
27467 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
27468 IFN_BUILTIN_EXPECT.
27469 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
27470 Revert 3 argument __builtin_expect code.
27471 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
27472 * gimple-fold.c (gimple_fold_call): Likewise.
27473 * tree.h (fold_builtin_expect): New prototype.
27474 * builtins.c (build_builtin_expect_predicate): Add predictor
27475 argument, if non-NULL, create 3 argument __builtin_expect.
27476 (fold_builtin_expect): No longer static. Add ARG2 argument,
27477 pass it through to build_builtin_expect_predicate.
27478 (fold_builtin_2): Adjust caller.
27479 (fold_builtin_3): Handle BUILT_IN_EXPECT.
27480 * internal-fn.def (BUILTIN_EXPECT): New.
27482 2014-03-18 Tobias Burnus <burnus@net-b.de>
27485 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
27486 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
27487 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
27489 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
27492 * predict.c (combine_predictions_for_bb): Fix up formatting.
27493 (expr_expected_value_1, expr_expected_value): Add predictor argument,
27494 fill what it points to if non-NULL.
27495 (tree_predict_by_opcode): Adjust caller, use the predictor.
27496 * predict.def (PRED_COMPARE_AND_SWAP): Add.
27498 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
27500 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
27501 proper constant for the store mode.
27503 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
27505 * symtab.c (change_decl_assembler_name): Fix transparent alias
27506 chain construction.
27508 2014-03-16 Renlin Li <Renlin.Li@arm.com>
27510 * config/aarch64/aarch64.c: Correct the comments about the
27511 aarch64 stack layout.
27513 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
27515 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
27516 check for GF_OMP_FOR_KIND_FOR.
27518 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
27520 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
27521 ymm and zmm register names.
27523 2014-03-17 Jakub Jelinek <jakub@redhat.com>
27526 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
27527 note creation for the 2010-08-31 changes.
27529 2014-03-17 Marek Polacek <polacek@redhat.com>
27531 PR middle-end/60534
27532 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
27533 as -fno-tree-loop-vectorize.
27534 (expand_omp_simd): Likewise.
27536 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
27538 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
27539 (eligible_for_call_delay): New prototype.
27540 * config/sparc/sparc.c (tls_call_delay): Rename into...
27541 (eligible_for_call_delay): ...this. Return false if the instruction
27542 cannot be put in the delay slot of a branch.
27543 (eligible_for_restore_insn): Simplify.
27544 (eligible_for_return_delay): Return false if the instruction cannot be
27545 put in the delay slot of a branch and simplify.
27546 (eligible_for_sibcall_delay): Return false if the instruction cannot be
27547 put in the delay slot of a branch.
27548 * config/sparc/sparc.md (fix_ut699): New attribute.
27549 (tls_call_delay): Delete.
27550 (in_call_delay): Reimplement.
27551 (eligible_for_sibcall_delay): Rename into...
27552 (in_sibcall_delay): ...this.
27553 (eligible_for_return_delay): Rename into...
27554 (in_return_delay): ...this.
27555 (in_branch_delay): Reimplement.
27556 (in_uncond_branch_delay): Delete.
27557 (in_annul_branch_delay): Delete.
27559 2014-03-14 Richard Henderson <rth@redhat.com>
27562 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
27563 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
27564 (*floathi<X87MODEF>2_i387_with_temp): Remove.
27565 (floathi splitters): Remove.
27566 (float<SWI48x>xf2): New pattern.
27567 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
27568 code that tried to handle DImode for 32-bit, but which was excluded
27569 by the pattern's condition. Drop allocation of stack temporary.
27570 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
27571 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
27572 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
27573 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
27574 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
27575 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
27576 (*float<SWI48><MODEF>2_sse_interunit): Remove.
27577 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
27578 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
27579 (*float<SWI48x><X87MODEF>2_i387): Remove.
27580 (all float _with_temp splitters): Remove.
27581 (*float<SWI48x><MODEF>2_i387): New pattern.
27582 (*float<SWI48><MODEF>2_sse): New pattern.
27583 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
27584 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
27586 2014-03-14 Jakub Jelinek <jakub@redhat.com>
27587 Marek Polacek <polacek@redhat.com>
27589 PR middle-end/60484
27590 * common.opt (dump_base_name_prefixed): New Variable.
27591 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
27592 if x_dump_base_name_prefixed is already set, set it at the end.
27594 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
27596 PR rtl-optimization/60508
27597 * lra-constraints.c (get_reload_reg): Add new parameter
27599 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
27600 Pass the new parameter values.
27602 2014-03-14 Richard Biener <rguenther@suse.de>
27604 * common.opt: Revert unintented changes from r205065.
27605 * opts.c: Likewise.
27607 2014-03-14 Richard Biener <rguenther@suse.de>
27609 PR middle-end/60518
27610 * cfghooks.c (split_block): Properly adjust all loops the
27611 block was a latch of.
27613 2014-03-14 Martin Jambor <mjambor@suse.cz>
27616 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
27619 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
27622 * config/avr/avr.c (avr_set_current_function): Pass function name
27623 through default_strip_name_encoding before sanity checking instead
27624 of skipping the first char of the assembler name.
27626 2014-03-13 Richard Henderson <rth@redhat.com>
27629 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
27630 (ix86_force_to_memory, ix86_free_from_memory): Remove.
27631 * config/i386/i386-protos.h: Likewise.
27632 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
27633 in the expander instead of a splitter.
27634 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
27635 any possibility of requiring a memory.
27636 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
27637 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
27638 (fp branch splitters): Update for ix86_split_fp_branch.
27639 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
27640 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
27641 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
27642 (*fop_<MODEF>_2_i387): Remove f/r alternative.
27643 (*fop_<MODEF>_3_i387): Likewise.
27644 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
27645 (splitters for the fop_* register patterns): Remove.
27646 (fscalexf4_i387): Rename from *fscalexf4_i387.
27647 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
27649 2014-03-13 Jakub Jelinek <jakub@redhat.com>
27651 PR tree-optimization/59779
27652 * tree-dfa.c (get_ref_base_and_extent): Use double_int
27653 type for bitsize and maxsize instead of HOST_WIDE_INT.
27655 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
27657 PR rtl-optimization/57320
27658 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
27659 the CFG after thread_prologue_and_epilogue_insns.
27661 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
27663 PR rtl-optimization/57189
27664 * lra-constraints.c (process_alt_operands): Disfavor spilling
27667 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
27669 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
27671 2014-03-13 Jakub Jelinek <jakub@redhat.com>
27673 PR tree-optimization/59025
27674 PR middle-end/60418
27675 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
27676 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
27678 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
27681 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
27682 calls of avr_out_plus_1.
27684 2014-03-13 Bin Cheng <bin.cheng@arm.com>
27686 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
27687 BB's single pred and update the father loop's latch info later.
27689 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
27691 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
27695 (VEC_base): Likewise.
27696 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
27697 registers, we need to swap double words in little endian mode.
27699 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
27700 to be a container mode for 128-bit integer operations added in ISA
27701 2.07. Unlike TImode and PTImode, the preferred register set is
27702 the Altivec/VMX registers for the 128-bit operations.
27704 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
27706 (rs6000_split_128bit_ok_p): Likewise.
27708 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
27709 macros for creating ISA 2.07 normal and overloaded builtin
27710 functions with 3 arguments.
27711 (BU_P8V_OVERLOAD_3): Likewise.
27712 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
27713 for use as overloaded functions.
27714 (VPERM_1TI_UNS): Likewise.
27715 (VSEL_1TI): Likewise.
27716 (VSEL_1TI_UNS): Likewise.
27717 (ST_INTERNAL_1ti): Likewise.
27718 (LD_INTERNAL_1ti): Likewise.
27719 (XXSEL_1TI): Likewise.
27720 (XXSEL_1TI_UNS): Likewise.
27721 (VPERM_1TI): Likewise.
27722 (VPERM_1TI_UNS): Likewise.
27723 (XXPERMDI_1TI): Likewise.
27724 (SET_1TI): Likewise.
27725 (LXVD2X_V1TI): Likewise.
27726 (STXVD2X_V1TI): Likewise.
27727 (VEC_INIT_V1TI): Likewise.
27728 (VEC_SET_V1TI): Likewise.
27729 (VEC_EXT_V1TI): Likewise.
27730 (EQV_V1TI): Likewise.
27731 (NAND_V1TI): Likewise.
27732 (ORC_V1TI): Likewise.
27733 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
27734 added in ISA 2.07. Add both normal 'altivec' builtins, and the
27735 overloaded builtin.
27736 (VADDUQM): Likewise.
27737 (VSUBCUQ): Likewise.
27738 (VADDEUQM): Likewise.
27739 (VADDECUQ): Likewise.
27740 (VSUBEUQM): Likewise.
27741 (VSUBECUQ): Likewise.
27743 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
27744 __int128_t and __uint128_t types.
27745 (__uint128_type): Likewise.
27746 (altivec_categorize_keyword): Add support for vector __int128_t,
27747 vector __uint128_t, vector __int128, and vector unsigned __int128
27748 as a container type for TImode operations that need to be done in
27749 VSX/Altivec registers.
27750 (rs6000_macro_to_expand): Likewise.
27751 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
27752 to support 128-bit integer instructions vaddcuq, vadduqm,
27753 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
27754 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
27756 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
27757 for V1TImode, and set up preferences to use VSX/Altivec registers.
27758 Setup VSX reload handlers.
27759 (rs6000_debug_reg_global): Likewise.
27760 (rs6000_init_hard_regno_mode_ok): Likewise.
27761 (rs6000_preferred_simd_mode): Likewise.
27762 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
27763 (easy_altivec_constant): Likewise.
27764 (output_vec_const_move): Likewise.
27765 (rs6000_expand_vector_set): Convert V1TImode set and extract to
27767 (rs6000_expand_vector_extract): Likewise.
27768 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
27770 (rs6000_const_vec): Add support for V1TImode.
27771 (rs6000_emit_le_vsx_load): Swap double words when loading or
27772 storing TImode/V1TImode.
27773 (rs6000_emit_le_vsx_store): Likewise.
27774 (rs6000_emit_le_vsx_move): Likewise.
27775 (rs6000_emit_move): Add support for V1TImode.
27776 (altivec_expand_ld_builtin): Likewise.
27777 (altivec_expand_st_builtin): Likewise.
27778 (altivec_expand_vec_init_builtin): Likewise.
27779 (altivec_expand_builtin): Likewise.
27780 (rs6000_init_builtins): Add support for V1TImode type. Add
27781 support for ISA 2.07 128-bit integer builtins. Define type names
27782 for the VSX/Altivec vector types.
27783 (altivec_init_builtins): Add support for overloaded vector
27784 functions with V1TImode type.
27785 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
27786 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
27788 (rs6000_split_128bit_ok_p): Likewise.
27789 (rs6000_handle_altivec_attribute): Create V1TImode from vector
27790 __int128_t and vector __uint128_t.
27792 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
27793 and mode attributes.
27795 (VSX_M2): Likewise.
27800 (VS_scalar): Likewise.
27801 (VS_double): Likewise.
27802 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
27804 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
27805 we support the ISA 2.07 128-bit integer arithmetic instructions.
27806 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
27807 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
27808 and TImode types for use with the builtin functions.
27809 (V1TI_type_node): Likewise.
27810 (unsigned_V1TI_type_node): Likewise.
27811 (intTI_type_internal_node): Likewise.
27812 (uintTI_type_internal_node): Likewise.
27814 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
27815 128-bit builtin functions.
27816 (UNSPEC_VADDEUQM): Likewise.
27817 (UNSPEC_VADDECUQ): Likewise.
27818 (UNSPEC_VSUBCUQ): Likewise.
27819 (UNSPEC_VSUBEUQM): Likewise.
27820 (UNSPEC_VSUBECUQ): Likewise.
27821 (VM): Add V1TImode to vector mode iterators.
27823 (VI_unit): Likewise.
27824 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
27825 (altivec_vaddcuq): Likewise.
27826 (altivec_vsubuqm): Likewise.
27827 (altivec_vsubcuq): Likewise.
27828 (altivec_vaddeuqm): Likewise.
27829 (altivec_vaddecuq): Likewise.
27830 (altivec_vsubeuqm): Likewise.
27831 (altivec_vsubecuq): Likewise.
27833 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
27835 (BOOL_128): Likewise.
27836 (BOOL_REGS_OUTPUT): Likewise.
27837 (BOOL_REGS_OP1): Likewise.
27838 (BOOL_REGS_OP2): Likewise.
27839 (BOOL_REGS_UNARY): Likewise.
27840 (BOOL_REGS_AND_CR0): Likewise.
27842 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
27843 128-bit integer builtin support.
27844 (vec_vadduqm): Likewise.
27845 (vec_vaddecuq): Likewise.
27846 (vec_vaddeuqm): Likewise.
27847 (vec_vsubecuq): Likewise.
27848 (vec_vsubeuqm): Likewise.
27849 (vec_vsubcuq): Likewise.
27850 (vec_vsubuqm): Likewise.
27852 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27853 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
27854 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
27855 128-bit integer add/subtract to ISA 2.07.
27857 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
27859 * config/arc/arc.c (arc_predicate_delay_insns):
27860 Fix third argument passed to conditionalize_nonjump.
27862 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
27864 * config/aarch64/aarch64-builtins.c
27865 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
27866 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
27867 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
27868 instead of __builtin_lfloor.
27869 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
27871 2014-03-12 Jakub Jelinek <jakub@redhat.com>
27873 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
27874 (tree_ssa_ifcombine_bb_1): New function.
27875 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
27876 is an empty forwarder block to then_bb or vice versa and then_bb
27877 and else_bb are effectively swapped.
27879 2014-03-12 Christian Bruel <christian.bruel@st.com>
27882 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
27883 REG_CFA_DEF_CFA note.
27884 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
27885 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
27887 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
27889 PR tree-optimization/60454
27890 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
27892 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27894 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
27895 Do not define target_cpu_default2 to generic.
27896 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
27897 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
27898 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
27900 2014-03-12 Jakub Jelinek <jakub@redhat.com>
27901 Marc Glisse <marc.glisse@inria.fr>
27903 PR tree-optimization/60502
27904 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
27905 instead of build_low_bits_mask.
27907 2014-03-12 Jakub Jelinek <jakub@redhat.com>
27909 PR middle-end/60482
27910 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
27911 if there are multiple uses, but op doesn't live on E edge.
27912 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
27913 clobber stmts before __builtin_unreachable.
27915 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
27917 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
27918 hard_frame_pointer_rtx.
27919 * cse.c (cse_insn): Remove volatile check.
27920 * cselib.c (cselib_process_insn): Likewise.
27921 * dse.c (scan_insn): Likewise.
27923 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
27925 * config/arc/arc.c (conditionalize_nonjump): New function,
27927 (arc_ifcvt): ... this.
27928 (arc_predicate_delay_insns): Use it.
27930 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
27932 * config/arc/predicates.md (extend_operand): During/after reload,
27933 allow const_int_operand.
27934 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
27935 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
27936 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
27938 (umulsi3_highpart_i): Likewise.
27940 2014-03-11 Richard Biener <rguenther@suse.de>
27942 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
27943 Add asserts to guard possible wrong-code bugs.
27945 2014-03-11 Richard Biener <rguenther@suse.de>
27947 PR tree-optimization/60429
27948 PR tree-optimization/60485
27949 * tree-ssa-structalias.c (set_union_with_increment): Properly
27950 take into account all fields that overlap the shifted vars.
27951 (do_sd_constraint): Likewise.
27952 (do_ds_constraint): Likewise.
27953 (get_constraint_for_ptr_offset): Likewise.
27955 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
27957 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
27958 (nios2_compute_frame_layout):
27959 Add calculation of cfun->machine->fp_save_offset.
27960 (nios2_expand_prologue): Correct setting of frame pointer register
27962 (nios2_expand_epilogue): Update recovery of stack pointer from
27963 frame pointer accordingly.
27964 (nios2_initial_elimination_offset): Update calculation of offset
27965 for eliminating to HARD_FRAME_POINTER_REGNUM.
27967 2014-03-10 Jakub Jelinek <jakub@redhat.com>
27970 * ipa.c (symtab_remove_unreachable_nodes): Don't call
27971 cgraph_get_create_node on VAR_DECLs.
27973 2014-03-10 Richard Biener <rguenther@suse.de>
27975 PR middle-end/60474
27976 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
27978 2014-03-08 Douglas B Rupp <rupp@gnat.com>
27980 * config/vms/vms.opt (vms_float_format): New variable.
27982 2014-03-08 Tobias Burnus <burnus@net-b.de>
27984 * doc/invoke.texi (-fcilkplus): Update implementation status.
27986 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
27987 Richard Biener <rguenther@suse.de>
27989 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
27990 consistently accross all TUs.
27991 (run_gcc): Enable -fshort-double automatically at link at link-time
27992 and disallow override.
27994 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
27997 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
27998 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
27999 if they can't be used.
28001 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28003 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
28004 for Solaris 11/x86 ld.
28005 * configure: Regenerate.
28007 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28009 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
28010 (LIB_TLS_SPEC): Save as ld_tls_libs.
28011 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
28012 (HAVE_AS_IX86_TLSLDM): New test.
28013 * configure, config.in: Regenerate.
28014 * config/i386/i386.c (legitimize_tls_address): Fall back to
28015 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
28016 cannot support TLS_MODEL_LOCAL_DYNAMIC.
28017 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
28018 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
28020 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
28022 * common.opt (fira-loop-pressure): Mark as optimization.
28024 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
28026 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
28027 an OpenMP mappable type.
28029 2014-03-06 Matthias Klose <doko@ubuntu.com>
28031 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
28032 MULTILIB_OSDIRNAMES is not defined.
28034 2014-03-06 Jakub Jelinek <jakub@redhat.com>
28035 Meador Inge <meadori@codesourcery.com>
28038 * config/arm/arm.c (arm_tls_symbol_p): Remove.
28039 (arm_legitimize_address): Call legitimize_tls_address for any
28040 arm_tls_referenced_p expression, handle constant addend. Call it
28041 before testing for !TARGET_ARM.
28042 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
28044 2014-03-06 Richard Biener <rguenther@suse.de>
28046 PR middle-end/60445
28050 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
28052 * tree-streamer.c (record_common_node): Assert we don't record
28053 nodes with type double.
28054 (preload_common_node): Skip type double, complex double and double
28055 pointer since it is now frontend dependent due to fshort-double option.
28057 2014-03-06 Richard Biener <rguenther@suse.de>
28059 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
28060 or -fno-lto is specified and the linker has full plugin support.
28061 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
28062 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
28063 * lto-wrapper.c (merge_and_complain): Merge compile-time
28064 optimization levels.
28065 (run_gcc): And pass it through to the link options.
28067 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
28071 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
28073 * cselib.c (remove_useless_values): Skip to avoid quadratic
28074 behavior if the condition moved from...
28075 (cselib_process_insn): ... here holds.
28077 2014-03-05 Jakub Jelinek <jakub@redhat.com>
28080 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
28081 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
28084 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
28085 (TM_H): Add x86-tune.def.
28087 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28089 * config/aarch64/aarch64.c (generic_tunings):
28090 Use cortexa57_extra_costs.
28092 2014-03-05 Jakub Jelinek <jakub@redhat.com>
28095 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
28096 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
28097 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
28100 2014-03-04 Heiher <r@hev.cc>
28102 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
28103 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
28105 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
28107 * config/i386/predicates.md (const2356_operand): Change to ...
28108 (const2367_operand): ... this.
28109 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
28111 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28112 (*avx512pf_scatterpf<mode>sf): Ditto.
28113 (avx512pf_scatterpf<mode>df): Ditto.
28114 (*avx512pf_scatterpf<mode>df_mask): Ditto.
28115 (*avx512pf_scatterpf<mode>df): Ditto.
28116 * config/i386/i386.c (ix86_expand_builtin): Update
28117 incorrect hint operand error message.
28119 2014-03-04 Richard Biener <rguenther@suse.de>
28121 * lto-section-in.c (lto_get_section_data): Fix const cast.
28123 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
28125 * tree-streamer.c (record_common_node): Assert we don't record
28126 nodes with type double.
28127 (preload_common_node): Skip type double, complex double and double
28128 pointer since it is now frontend dependent due to fshort-double option.
28130 2014-03-04 Richard Biener <rguenther@suse.de>
28133 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
28134 (lto_input_toplevel_asms): Likewise.
28135 * lto-section-in.c (lto_get_section_data): Instead do it here
28138 2014-03-04 Richard Biener <rguenther@suse.de>
28140 PR tree-optimization/60382
28141 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
28142 dead PHIs a reduction.
28144 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
28146 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
28148 (_mm_prefetch): Move out of GCC target("sse") pragma.
28149 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
28150 GCC target("prfchw") pragma.
28151 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
28153 * config/i386/i386.c (ix86_option_override_internal): Enable
28154 -mprfchw with -mprefetchwt1.
28156 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
28158 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
28161 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
28163 * opts.h (CL_PCH_IGNORE): Define.
28164 * targhooks.c (option_affects_pch_p):
28165 Return false for options that have CL_PCH_IGNORE set.
28166 * opt-functions.awk: Process PchIgnore.
28167 * doc/options.texi: Document PchIgnore.
28169 * config/arc/arc.opt (misize): Add PchIgnore property.
28171 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28173 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
28174 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
28175 constraint on constants to permit them being loaded into
28176 GENERAL_REGS or BASE_REGS.
28178 2014-03-03 Nick Clifton <nickc@redhat.com>
28180 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
28181 anti-cacnonical alternatives.
28182 (negandhi3_real): New pattern.
28183 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
28185 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
28187 * config/avr/avr-mcus.def: Remove atxmega16x1.
28188 * config/avr/avr-tables.opt: Regenerate.
28189 * config/avr/t-multilib: Regenerate.
28190 * doc/avr-mmcu.texi: Regenerate.
28192 2014-03-03 Tobias Grosser <tobias@grosser.es>
28193 Mircea Namolaru <mircea.namolaru@inria.fr>
28195 PR tree-optimization/58028
28196 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
28199 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28201 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
28202 not handled by recognizers.
28204 2014-03-03 Jakub Jelinek <jakub@redhat.com>
28206 PR middle-end/60175
28207 * function.c (expand_function_end): Don't emit
28208 clobber_return_register sequence if clobber_after is a BARRIER.
28209 * cfgexpand.c (construct_exit_block): Append instructions before
28210 return_label to prev_bb.
28212 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28214 * config/rs6000/constraints.md: Document reserved use of "wc".
28216 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
28219 * ipa.c (function_and_variable_visibility): When dissolving comdat
28220 group, also set all symbols to local.
28222 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
28227 2013-12-14 Jan Hubicka <jh@suse.cz>
28228 PR middle-end/58477
28229 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
28231 2014-03-02 Jon Beniston <jon@beniston.com>
28237 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
28238 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
28239 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
28240 (simple_return, *simple_return): New patterns
28241 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
28242 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
28244 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
28246 * dwarf2out.c (gen_subprogram_die): Tidy.
28248 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
28251 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
28252 (*mov_t_msb_neg_negc): ... this new insn.
28254 2014-02-28 Jason Merrill <jason@redhat.com>
28257 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
28260 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
28263 * dwarf2out.c (decltype_auto_die): New static.
28264 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
28265 (gen_type_die_with_usage): Handle 'decltype(auto)'.
28266 (is_cxx_auto): Likewise.
28268 2014-02-28 Ian Bolton <ian.bolton@arm.com>
28270 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
28271 we are not using general regs only.
28273 2014-02-28 Richard Biener <rguenther@suse.de>
28276 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
28277 previous fix and only allow to remove trivial pre-headers
28278 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
28279 (remove_forwarder_block): Properly update the latch of a loop.
28281 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
28284 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
28285 (cselib_preserved_hash_table): New.
28286 (preserve_constants_and_equivs): Move preserved vals to it.
28287 (cselib_find_slot): Look it up first.
28288 (cselib_init): Initialize it.
28289 (cselib_finish): Release it.
28290 (dump_cselib_table): Dump it.
28292 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
28295 * cselib.c (remove_useless_values): Skip to avoid quadratic
28296 behavior if the condition moved from...
28297 (cselib_process_insn): ... here holds.
28299 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
28302 * var-tracking.c (vt_initialize): Apply the same condition to
28303 preserve the CFA base value.
28305 2014-02-28 Joey Ye <joey.ye@arm.com>
28308 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
28309 if reload in progress or completed.
28311 2014-02-28 Tobias Burnus <burnus@net-b.de>
28313 PR middle-end/60147
28314 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
28317 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
28319 * doc/tm.texi.in (Condition Code Status): Update documention for
28320 relative locations of cc0-setter and cc0-user.
28322 2014-02-27 Jeff Law <law@redhat.com>
28324 PR rtl-optimization/52714
28325 * combine.c (try_combine): When splitting an unrecognized PARALLEL
28326 into two independent simple sets, if I3 is a jump, ensure the
28327 pattern we place into I3 is a (set (pc) ...).
28329 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
28330 Jeff Law <law@redhat.com>
28332 PR rtl-optimization/49847
28333 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
28334 are in different blocks.
28335 * doc/tm.texi (Condition Code Status): Update documention for
28336 relative locations of cc0-setter and cc0-user.
28338 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
28341 * lra.c (lra_emit_add): Check SUBREG too.
28343 2014-02-27 Andreas Schwab <schwab@suse.de>
28345 * config/m68k/m68k.c (m68k_option_override): Disable
28346 -flive-range-shrinkage for classic m68k.
28347 (m68k_override_options_after_change): Likewise.
28349 2014-02-27 Marek Polacek <polacek@redhat.com>
28351 PR middle-end/59223
28352 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
28353 -Wmaybe-uninitialized.
28355 2014-02-27 Alan Modra <amodra@gmail.com>
28358 * reload1.c (emit_input_reload_insns): When reload_override_in,
28359 set old to rl->in_reg when rl->in_reg is a subreg.
28361 2014-02-26 Richard Biener <rguenther@suse.de>
28364 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
28366 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
28368 * common/config/i386/predicates.md (const1256_operand): Remove.
28369 (const2356_operand): New.
28370 (const_1_to_2_operand): Remove.
28371 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
28372 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28373 (*avx512pf_gatherpf<mode>sf): Ditto.
28374 (avx512pf_gatherpf<mode>df): Ditto.
28375 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28376 (*avx512pf_gatherpf<mode>df): Ditto.
28377 (avx512pf_scatterpf<mode>sf): Ditto.
28378 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28379 (*avx512pf_scatterpf<mode>sf): Ditto.
28380 (avx512pf_scatterpf<mode>df): Ditto.
28381 (*avx512pf_scatterpf<mode>df_mask): Ditto.
28382 (*avx512pf_scatterpf<mode>df): Ditto.
28383 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
28385 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
28387 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
28388 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
28389 (_mm512_mask_testn_epi64_mask): Move to ...
28390 * config/i386/avx512cdintrin.h: Here.
28391 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
28392 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
28393 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
28394 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
28395 TARGET_AVX512F from TARGET_AVX512CD.
28397 2014-02-26 Richard Biener <rguenther@suse.de>
28400 * ipa.c (walk_polymorphic_call_targets): Properly guard
28401 call to inline_update_overall_summary.
28403 2014-02-26 Bin Cheng <bin.cheng@arm.com>
28406 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
28407 and latches only if requested. Fix latch if it is removed.
28408 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
28409 LOOPS_HAVE_PREHEADERS.
28411 2014-02-25 Andrew Pinski <apinski@cavium.com>
28413 * builtins.c (expand_builtin_thread_pointer): Create a new target
28414 when the target is NULL.
28416 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
28418 PR rtl-optimization/60317
28419 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
28420 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
28421 * lra-assigns.c: Include params.h.
28422 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
28423 other reload pseudos considerations.
28425 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28427 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
28428 to use canonical form for nor<mode>3.
28430 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28433 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
28436 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
28438 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
28439 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
28440 (ix86_handle_option): Handle OPT_mprefetchwt1.
28441 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
28442 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
28444 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
28445 OPTION_MASK_ISA_PREFETCHWT1.
28446 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
28447 (PTA_PREFETCHWT1): New.
28448 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
28449 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
28450 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
28451 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
28452 (*prefetch_avx512pf_<mode>_: Change into ...
28453 (*prefetch_prefetchwt1_<mode>: This.
28454 * config/i386/i386.opt (mprefetchwt1): New.
28455 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
28456 (_mm_prefetch): Handle intent to write.
28457 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
28459 2014-02-25 Richard Biener <rguenther@suse.de>
28461 PR middle-end/60291
28462 * emit-rtl.c (mem_attrs_htab): Remove.
28463 (mem_attrs_htab_hash): Likewise.
28464 (mem_attrs_htab_eq): Likewise.
28465 (set_mem_attrs): Always allocate new mem-attrs when something changed.
28466 (init_emit_once): Do not allocate mem_attrs_htab.
28468 2014-02-25 Richard Biener <rguenther@suse.de>
28471 * lto-opts.c (lto_write_options): Output non-explicit conservative
28472 -fwrapv, -fno-trapv and -fno-strict-overflow.
28473 * lto-wrapper.c (merge_and_complain): Handle merging those options.
28474 (run_gcc): And pass them through.
28476 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
28478 * sel-sched.c (calculate_new_fences): New parameter ptime.
28479 Calculate it as a maximum over all fence cycles.
28480 (sel_sched_region_2): Adjust the call to calculate_new_fences.
28481 Print the final schedule timing when sched_verbose.
28483 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
28485 PR rtl-optimization/60292
28486 * sel-sched.c (fill_vec_av_set): Do not reset target availability
28487 bit fot the fence instruction.
28489 2014-02-24 Alangi Derick <alangiderick@gmail.com>
28491 * calls.h: Fix typo in comment.
28493 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
28495 * config/pa/pa.c (pa_output_move_double): Don't valididate when
28496 adjusting offsetable addresses.
28498 2014-02-24 Guozhi Wei <carrot@google.com>
28500 * sparseset.h (sparseset_pop): Fix the wrong index.
28502 2014-02-24 Walter Lee <walt@tilera.com>
28504 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
28505 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
28507 * common/config/tilegx/tilegx-common.c
28508 (TARGET_DEFAULT_TARGET_FLAGS): Define.
28509 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
28510 (LINK_SPEC): Ditto.
28511 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
28512 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
28513 (tilegx_gimplify_va_arg_expr): Handle big endian.
28514 (tilegx_expand_unaligned_load): Ditto.
28515 (tilegx_expand_unaligned_store): Ditto.
28516 (TARGET_RETURN_IN_MSB): New.
28517 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
28518 (TARGET_ENDIAN_DEFAULT): New.
28519 (TARGET_BIG_ENDIAN): Handle big endian.
28520 (BYTES_BIG_ENDIAN): Ditto.
28521 (WORDS_BIG_ENDIAN): Ditto.
28522 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
28523 (ENDIAN_SPEC): New.
28524 (EXTRA_SPECS): New.
28525 * config/tilegx/tilegx.md (extv): Handle big endian.
28527 (insn_st<n>): Ditto.
28528 (insn_st<n>_add<bitsuffix>): Ditto.
28529 (insn_stnt<n>): Ditto.
28530 (insn_stnt<n>_add<bitsuffix>):Ditto.
28531 (vec_interleave_highv8qi): Handle big endian.
28532 (vec_interleave_highv8qi_be): New.
28533 (vec_interleave_highv8qi_le): New.
28534 (insn_v1int_h): Handle big endian.
28535 (vec_interleave_lowv8qi): Handle big endian.
28536 (vec_interleave_lowv8qi_be): New.
28537 (vec_interleave_lowv8qi_le): New.
28538 (insn_v1int_l): Handle big endian.
28539 (vec_interleave_highv4hi): Handle big endian.
28540 (vec_interleave_highv4hi_be): New.
28541 (vec_interleave_highv4hi_le): New.
28542 (insn_v2int_h): Handle big endian.
28543 (vec_interleave_lowv4hi): Handle big endian.
28544 (vec_interleave_lowv4hi_be): New.
28545 (vec_interleave_lowv4hi_le): New.
28546 (insn_v2int_l): Handle big endian.
28547 (vec_interleave_highv2si): Handle big endian.
28548 (vec_interleave_highv2si_be): New.
28549 (vec_interleave_highv2si_le): New.
28550 (insn_v4int_h): Handle big endian.
28551 (vec_interleave_lowv2si): Handle big endian.
28552 (vec_interleave_lowv2si_be): New.
28553 (vec_interleave_lowv2si_le): New.
28554 (insn_v4int_l): Handle big endian.
28555 * config/tilegx/tilegx.opt (mbig-endian): New option.
28556 (mlittle-endian): New option.
28557 * doc/install.texi: Document tilegxbe-linux.
28558 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
28560 2014-02-24 Martin Jambor <mjambor@suse.cz>
28563 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
28564 there are no parameter descriptors.
28566 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
28568 PR rtl-optimization/60268
28569 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
28570 initialization to ...
28571 (sched_rgn_init): ... here.
28572 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
28574 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
28576 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
28579 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
28581 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
28584 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
28586 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
28587 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
28589 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
28591 * config/microblaze/predicates.md: Add cmp_op predicate.
28592 * config/microblaze/microblaze.md: Add branch_compare instruction
28593 which uses cmp_op predicate and emits cmp insn before branch.
28594 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
28595 to microblaze_expand_conditional_branch and consolidate logic.
28596 (microblaze_expand_conditional_branch): emit branch_compare
28597 insn instead of handling cmp op separate from branch insn.
28599 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28601 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
28604 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28606 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
28607 define_insn with define_expand and new define_insn
28608 *altivec_lve<VI_char>x_internal.
28609 (altivec_stve<VI_char>x): Replace define_insn with define_expand
28610 and new define_insn *altivec_stve<VI_char>x_internal.
28611 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
28613 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
28615 (altivec_expand_stvex_be): New function.
28617 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
28619 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
28620 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
28621 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
28622 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
28624 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
28627 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
28628 instead of emit_move_insn.
28630 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28632 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
28633 vspltw with vsldoi.
28634 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
28635 gen_altivec_vsumsws.
28637 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28639 * config/rs6000/altivec.md (altivec_lvxl): Rename as
28640 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
28641 (altivec_lvxl_<mode>): New define_expand incorporating
28642 -maltivec=be semantics where needed.
28643 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
28644 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
28645 semantics where needed.
28646 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
28647 (altivec_stvx_<mode>): New define_expand incorporating
28648 -maltivec=be semantics where needed.
28649 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
28650 VM2 iterator instead of V4SI.
28651 (altivec_stvxl_<mode>): New define_expand incorporating
28652 -maltivec=be semantics where needed.
28653 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
28654 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
28655 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
28656 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
28657 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
28658 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
28659 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
28660 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
28661 ALTIVEC_BUILTIN_STVXL.
28662 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
28663 (altivec_expand_stvx_be): Likewise.
28664 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
28665 (altivec_expand_lvx_be): Likewise.
28666 (altivec_expand_stvx_be): Likewise.
28667 (altivec_expand_builtin): Add cases for
28668 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
28669 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
28670 (altivec_init_builtins): Add definitions for
28671 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
28672 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
28674 2014-02-21 Catherine Moore <clm@codesourcery.com>
28676 * doc/invoke.texi (mvirt, mno-virt): Document.
28677 * config/mips/mips.opt (mvirt): New option.
28678 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
28680 2014-02-21 Richard Biener <rguenther@suse.de>
28682 PR tree-optimization/60276
28683 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
28684 (STMT_VINFO_MIN_NEG_DIST): New macro.
28685 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
28686 STMT_VINFO_MIN_NEG_DIST.
28687 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
28688 made for negative dependence distances still hold.
28690 2014-02-21 Richard Biener <rguenther@suse.de>
28692 PR middle-end/60291
28693 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
28694 DECL_INITIAL for globals not in the current function context.
28696 2014-02-21 Jakub Jelinek <jakub@redhat.com>
28698 PR tree-optimization/56490
28699 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
28700 * tree-ssa-uninit.c: Include params.h.
28701 (compute_control_dep_chain): Add num_calls argument, return false
28702 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
28703 num_calls to recursive call.
28704 (find_predicates): Change dep_chain into normal array,
28705 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
28706 variable and adjust compute_control_dep_chain caller.
28707 (find_def_preds): Likewise.
28709 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
28711 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
28712 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
28714 2014-02-21 Nick Clifton <nickc@redhat.com>
28716 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
28717 (pushhi1): Likewise.
28718 (popqi1): Add mode to pre_dec.
28719 (pophi1): Likewise.
28721 2014-02-21 Jakub Jelinek <jakub@redhat.com>
28723 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
28724 mode for mask of V8SFmode permutation.
28726 2014-02-20 Richard Henderson <rth@redhat.com>
28729 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
28730 a new pseudo for OLDVAL.
28732 2014-02-20 Jakub Jelinek <jakub@redhat.com>
28735 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
28736 gen_reg_rtx if d->testing_p.
28737 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
28738 if d->testing_p and we will certainly return true.
28739 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
28742 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
28744 * emit-rtl.c (gen_reg_rtx): Assert that
28745 crtl->emit.regno_pointer_align_length is non-zero.
28747 2014-02-20 Richard Henderson <rth@redhat.com>
28750 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
28751 on failure the store back into EXPECT.
28753 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
28754 Sandra Loosemore <sandra@codesourcery.com>
28756 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
28757 * config/nios2/nios2.c (nios2_function_profiler): Add
28758 -fPIC (flag_pic == 2) support.
28759 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
28760 (nios2_large_offset_p): New function.
28761 (nios2_unspec_reloc_p): Move up position, update to use
28762 nios2_large_offset_p.
28763 (nios2_unspec_address): Remove function.
28764 (nios2_unspec_offset): New function.
28765 (nios2_large_got_address): New function.
28766 (nios2_got_address): Add large offset support.
28767 (nios2_legitimize_tls_address): Update usage of removed and new
28769 (nios2_symbol_binds_local_p): New function.
28770 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
28771 (nios2_legitimize_address): Update to use nios2_large_offset_p.
28772 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
28773 (nios2_print_operand): Merge H/L processing, add hiadj/lo
28774 processing for (const (unspec ...)).
28775 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
28777 2014-02-20 Richard Biener <rguenther@suse.de>
28779 * tree-cfg.c (replace_uses_by): Mark altered BBs before
28780 doing the substitution.
28781 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
28783 2014-02-20 Martin Jambor <mjambor@suse.cz>
28786 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
28787 info when checking whether lattices are bottom.
28789 2014-02-20 Richard Biener <rguenther@suse.de>
28791 PR middle-end/60221
28792 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
28795 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
28798 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
28799 parameter specifying the scaling.
28800 (inline_call): Update.
28801 (want_inline_recursively): Guard division by zero.
28802 (recursive_inlining): Update.
28803 * ipa-inline.h (clone_inlined_nodes): Update.
28805 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
28808 * config/i386/i386.c (classify_argument): Pass structures of size
28809 64 bytes or less in register.
28811 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
28812 Kirill Yukhin <kirill.yukhin@intel.com>
28814 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
28815 (_mm_rcp28_round_ss): Ditto.
28816 (_mm_rsqrt28_round_sd): Ditto.
28817 (_mm_rsqrt28_round_ss): Ditto.
28818 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
28819 (_mm_rcp14_round_ss): Ditto.
28820 (_mm_rsqrt14_round_sd): Ditto.
28821 (_mm_rsqrt14_round_ss): Ditto.
28822 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
28823 the first input operand, get rid of match_dup.
28824 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
28826 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
28828 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
28829 operand as the first input operand, set type attribute.
28830 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
28831 Set type attribute.
28832 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
28833 operand as the first input operand, set type attribute.
28835 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28837 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
28840 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
28843 * config/i386/i386.c (construct_container): Remove TFmode check
28844 for X86_64_INTEGER_CLASS.
28846 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
28849 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
28850 only when -Wpsabi is enabled.
28852 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
28855 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
28856 passing arrays in registers are the same as for structs, so remove the
28857 special case for them.
28859 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
28861 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
28862 destination type, extract only the valid bits if the source type is not
28863 integral and has a different mode.
28865 2014-02-19 Richard Biener <rguenther@suse.de>
28868 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
28871 2014-02-19 Richard Biener <rguenther@suse.de>
28874 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
28875 (ipa_modify_call_arguments): Emit an argument load explicitely and
28876 preserve virtual SSA form there and for the replacement call.
28877 Do not update SSA form nor free dominance info.
28879 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
28881 * ipa.c (function_and_variable_visibility): Also clear WEAK
28882 flag when disolving COMDAT_GROUP.
28884 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
28886 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
28887 * ipa-prop.c (ipa_set_jf_known_type): Return early when
28888 not devirtualizing.
28889 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
28890 do more sanity checks.
28891 (detect_type_change): Return true when giving up early.
28892 (compute_complex_assign_jump_func): Fix type parameter of
28893 ipa_set_ancestor_jf.
28894 (compute_complex_ancestor_jump_func): Likewise.
28895 (update_jump_functions_after_inlining): Fix updating of
28897 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
28899 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
28901 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
28902 inline clones when edge disappears.
28904 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
28907 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
28908 Split 64-bit moves into 2 patterns. Do not allow the use of
28909 direct move for TDmode in little endian, since the decimal value
28910 has little endian bytes within a word, but the 64-bit pieces are
28911 ordered in a big endian fashion, and normal subreg's of TDmode are
28913 (mov<mode>_64bit_dm): Likewise.
28914 (movtd_64bit_nodm): Likewise.
28916 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
28918 PR tree-optimization/60174
28919 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
28920 statement of an SSA_NAME that occurs in an abnormal PHI node.
28922 2014-02-18 Jakub Jelinek <jakub@redhat.com>
28925 * final.c (SEEN_BB): Remove.
28926 (SEEN_NOTE, SEEN_EMITTED): Renumber.
28927 (final_scan_insn): Don't force_source_line on second
28928 NOTE_INSN_BASIC_BLOCK.
28930 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
28933 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
28934 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
28935 (type_natural_mode): Warn ABI change when %zmm register is not
28936 available for AVX512F vector value passing.
28938 2014-02-18 Kai Tietz <ktietz@redhat.com>
28941 * config/i386/i386.c (ix86_expand_prologue): Use value in
28942 rax register as displacement when restoring %r10 or %rax.
28943 Fix wrong offset when restoring both registers.
28945 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
28947 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
28948 assertion with conditional return.
28950 2014-02-18 Jakub Jelinek <jakub@redhat.com>
28951 Uros Bizjak <ubizjak@gmail.com>
28954 * config/i386/driver-i386.c (host_detect_local_cpu): If
28955 YMM state is not saved by the OS, also clear has_f16c. Move
28956 CPUID 0x80000001 handling before YMM state saving checking.
28958 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
28960 PR rtl-optimization/58960
28961 * haifa-sched.c (alloc_global_sched_pressure_data): New,
28962 factored out from ...
28963 (sched_init): ... here.
28964 (free_global_sched_pressure_data): New, factored out from ...
28965 (sched_finish): ... here.
28966 * sched-int.h (free_global_sched_pressure_data): Declare.
28967 * sched-rgn.c (nr_regions_initial): New static global.
28968 (haifa_find_rgns): Initialize it.
28969 (schedule_region): Disable sched-pressure for the newly
28972 2014-02-17 Richard Biener <rguenther@suse.de>
28974 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
28975 release SSA defs of pattern stmts.
28977 2014-02-17 Richard Biener <rguenther@suse.de>
28979 * tree-inline.c (expand_call_inline): Release the virtual
28980 operand defined by the call we are about to inline.
28982 2014-02-17 Richard Biener <rguenther@suse.de>
28984 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
28986 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
28987 Ilya Tocar <ilya.tocar@intel.com>
28989 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
28990 arguments order in builtin.
28991 (_mm512_permutexvar_epi64): Ditto.
28992 (_mm512_mask_permutexvar_epi64): Ditto
28993 (_mm512_maskz_permutexvar_epi32): Ditto
28994 (_mm512_permutexvar_epi32): Ditto
28995 (_mm512_mask_permutexvar_epi32): Ditto
28997 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28999 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
29000 (p8_vmrgow): Likewise.
29002 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29004 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
29007 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
29010 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
29011 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
29012 into 64-bit and 32-bit moves. On 64-bit moves, add support for
29013 using direct move instructions on ISA 2.07. Also adjust
29014 instruction length for 64-bit.
29015 (mov<mode>_64bit, TFmode/TDmode): Likewise.
29016 (mov<mode>_32bit, TFmode/TDmode): Likewise.
29018 2014-02-15 Alan Modra <amodra@gmail.com>
29022 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
29023 find_replacement on parts of insn rtl that might be reloaded.
29025 2014-02-15 Richard Biener <rguenther@suse.de>
29027 PR tree-optimization/60183
29028 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
29029 (tree_ssa_phiprop): Calculate and free post-dominators.
29031 2014-02-14 Jeff Law <law@redhat.com>
29033 PR rtl-optimization/60131
29034 * ree.c (get_extended_src_reg): New function.
29035 (combine_reaching_defs): Use it rather than assuming location of REG.
29036 (find_and_remove_re): Verify first operand of extension is
29037 a REG before adding the insns to the copy list.
29039 2014-02-14 Roland McGrath <mcgrathr@google.com>
29041 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
29042 * configure: Regenerated.
29043 * config.in: Regenerated.
29044 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
29045 instead of ASM_SHORT.
29047 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
29048 Richard Earnshaw <rearnsha@arm.com>
29050 PR rtl-optimization/59535
29051 * lra-constraints.c (process_alt_operands): Encourage alternative
29052 when unassigned pseudo class is superset of the alternative class.
29053 (inherit_reload_reg): Don't inherit when optimizing for code size.
29054 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
29055 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
29056 modes not less than 4 for Thumb1.
29058 2014-02-14 Kyle McMartin <kyle@redhat.com>
29061 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
29063 2014-02-14 Richard Biener <rguenther@suse.de>
29065 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
29066 (get_frame_arg): Drop the assert with langhook types_compatible_p.
29067 Do not strip INDIRECT_REFs.
29069 2014-02-14 Richard Biener <rguenther@suse.de>
29072 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
29073 DECL_FUNCTION_SPECIFIC_TARGET.
29074 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
29075 * tree-streamer-out.c (pack_ts_target_option): Remove.
29076 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
29077 (write_ts_function_decl_tree_pointers): Do not stream
29078 DECL_FUNCTION_SPECIFIC_TARGET.
29079 * tree-streamer-in.c (unpack_ts_target_option): Remove.
29080 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
29081 (lto_input_ts_function_decl_tree_pointers): Do not stream
29082 DECL_FUNCTION_SPECIFIC_TARGET.
29084 2014-02-14 Jakub Jelinek <jakub@redhat.com>
29086 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
29087 (get_initial_def_for_induction, vectorizable_induction): Ignore
29088 debug stmts when looking for exit_phi.
29089 (vectorizable_live_operation): Fix up condition.
29091 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
29093 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
29094 nreverse() because it changes the content of original tree list.
29096 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
29098 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
29099 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
29101 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
29103 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
29104 GNU coding standards.
29106 2014-02-13 Jakub Jelinek <jakub@redhat.com>
29109 * dwarf2out.c (gen_subprogram_die): Don't call
29110 add_calling_convention_attribute if subr_die is old_die.
29112 2014-02-13 Sharad Singhai <singhai@google.com>
29114 * doc/optinfo.texi: Fix order of nodes.
29116 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
29118 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
29119 operands[2], not operands[3].
29121 2014-02-13 Richard Biener <rguenther@suse.de>
29124 * doc/install.texi (ISL): Update recommended version to 0.12.2,
29125 mention the possibility of an in-tree build.
29126 (CLooG): Update recommended version to 0.18.1, mention the
29127 possibility of an in-tree build and clarify that the ISL
29128 bundled with CLooG does not work.
29130 2014-02-13 Jakub Jelinek <jakub@redhat.com>
29133 * expr.c (compress_float_constant): If x is a hard register,
29134 extend into a pseudo and then move to x.
29136 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
29138 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
29139 caused by bad second argument to warning_at() with -mhotpatch and
29140 nested functions (e.g. with gfortran).
29142 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
29144 * opts.c (option_name): Remove "enabled by default" rider.
29146 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
29148 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
29150 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
29151 Uros Bizjak <ubizjak@gmail.com>
29154 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
29155 * configure: Regenerated.
29157 2014-02-12 Richard Biener <rguenther@suse.de>
29159 * vec.c (vec_prefix::calculate_allocation): Move as
29160 inline variant to vec.h.
29161 (vec_prefix::calculate_allocation_1): New out-of-line version.
29162 * vec.h (vec_prefix::calculate_allocation_1): Declare.
29163 (vec_prefix::m_has_auto_buf): Rename to ...
29164 (vec_prefix::m_using_auto_storage): ... this.
29165 (vec_prefix::calculate_allocation): Inline the easy cases
29166 and dispatch to calculate_allocation_1 which doesn't need the
29168 (va_heap::reserve): Use gcc_checking_assert.
29169 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
29170 m_using_auto_storage.
29171 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
29173 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
29174 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
29175 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
29177 2014-02-12 Richard Biener <rguenther@suse.de>
29179 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
29180 when we found a dependence.
29182 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
29184 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
29186 (maybe_fold_stmt): ... into this new function.
29187 * omp-low.c (lower_omp): Update comment.
29189 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
29192 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
29195 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
29197 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
29198 identifiers in comments.
29199 (cortexa53_extra_costs): Likewise.
29200 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
29201 (cortexa7_extra_costs): Likewise.
29202 (cortexa12_extra_costs): Likewise.
29203 (cortexa15_extra_costs): Likewise.
29204 (v7m_extra_costs): Likewise.
29206 2014-02-12 Richard Biener <rguenther@suse.de>
29208 PR middle-end/60092
29209 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
29210 of posix_memalign being successful.
29211 (lower_stmt): Restrict lowering of posix_memalign to when
29212 -ftree-bit-ccp is enabled.
29214 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29216 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
29218 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
29220 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
29222 PR rtl-optimization/60116
29223 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
29224 other_insn once the combination has been validated.
29226 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
29229 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
29231 * ipa-devirt.c: Include demangle.h
29232 (odr_violation_reported): New static variable.
29233 (add_type_duplicate): Update odr_violations.
29234 (maybe_record_node): Add completep parameter; update it.
29235 (record_target_from_binfo): Add COMPLETEP parameter;
29236 update it as needed.
29237 (possible_polymorphic_call_targets_1): Likewise.
29238 (struct polymorphic_call_target_d): Add nonconstruction_targets;
29239 rename FINAL to COMPLETE.
29240 (record_targets_from_bases): Sanity check we found the binfo;
29241 fix COMPLETEP updating.
29242 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
29243 parameter, fix computing of COMPLETEP.
29244 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
29245 at LTO time do demangling.
29246 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
29247 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
29249 (gimple_get_virt_method_for_binfo): Likewise.
29250 * gimple-fold.h (gimple_get_virt_method_for_binfo,
29251 gimple_get_virt_method_for_vtable): Update prototypes.
29253 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
29256 * genautomata.c (add_presence_absence): Fix typo with
29257 {final_}presence_list.
29259 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
29262 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
29263 for VSX/Altivec vectors that land in GPR registers.
29265 2014-02-11 Richard Henderson <rth@redhat.com>
29266 Jakub Jelinek <jakub@redhat.com>
29269 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
29270 around drhs if type conversion to lacc->type is not useless.
29272 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29274 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
29276 (cortex-a57.cortex-a53): Likewise.
29277 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
29279 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29281 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
29284 2014-02-11 Renlin Li <Renlin.Li@arm.com>
29286 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
29287 add_options_for_arm_vfp3.
29289 2014-02-11 Jeff Law <law@redhat.com>
29291 PR middle-end/54041
29292 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
29293 object with an undesirable mode.
29295 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29298 * config/i386/sol2-9.h: New file.
29299 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
29300 *-*-solaris2.9*): Use it.
29302 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
29304 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
29305 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
29307 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
29309 * config/microblaze/microblaze.c: Extend mcpu version format
29311 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
29313 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
29315 2014-02-10 Richard Henderson <rth@redhat.com>
29318 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
29319 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
29320 ms-abi vs -mno-accumulate-outgoing-args.
29321 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
29322 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
29325 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
29327 PR middle-end/60080
29328 * cfgexpand.c (expand_asm_operands): Attach source location to
29329 ASM_INPUT rtx objects.
29330 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
29332 2014-02-10 Nick Clifton <nickc@redhat.com>
29334 * config/mn10300/mn10300.c (popcount): New function.
29335 (mn10300_expand_prologue): Include saved registers in stack usage
29338 2014-02-10 Jeff Law <law@redhat.com>
29340 PR middle-end/52306
29341 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
29342 when changing the SET_DEST of a prior insn to avoid an input reload.
29344 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29346 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
29347 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
29348 -mcall-openbsd, or -mcall-linux.
29349 (CC1_ENDIAN_BIG_SPEC): Remove.
29350 (CC1_ENDIAN_LITTLE_SPEC): Remove.
29351 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
29352 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
29353 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
29354 and %cc1_endian_default.
29355 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
29357 2014-02-10 Richard Biener <rguenther@suse.de>
29359 PR tree-optimization/60115
29360 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
29361 MEM_REF handling. Properly verify that the accesses are not
29362 out of the objects bound.
29364 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29366 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
29369 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
29371 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
29372 proper constants and fix formatting.
29373 (possible_polymorphic_call_targets): Fix formatting.
29375 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
29376 Ilya Tocar <ilya.tocar@intel.com>
29378 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
29379 (_mm512_loadu_epi32): Renamed into...
29380 (_mm512_loadu_si512): This.
29381 (_mm512_storeu_epi32): Renamed into...
29382 (_mm512_storeu_si512): This.
29383 (_mm512_maskz_ceil_ps): Removed.
29384 (_mm512_maskz_ceil_pd): Ditto.
29385 (_mm512_maskz_floor_ps): Ditto.
29386 (_mm512_maskz_floor_pd): Ditto.
29387 (_mm512_floor_round_ps): Ditto.
29388 (_mm512_floor_round_pd): Ditto.
29389 (_mm512_ceil_round_ps): Ditto.
29390 (_mm512_ceil_round_pd): Ditto.
29391 (_mm512_mask_floor_round_ps): Ditto.
29392 (_mm512_mask_floor_round_pd): Ditto.
29393 (_mm512_mask_ceil_round_ps): Ditto.
29394 (_mm512_mask_ceil_round_pd): Ditto.
29395 (_mm512_maskz_floor_round_ps): Ditto.
29396 (_mm512_maskz_floor_round_pd): Ditto.
29397 (_mm512_maskz_ceil_round_ps): Ditto.
29398 (_mm512_maskz_ceil_round_pd): Ditto.
29399 (_mm512_expand_pd): Ditto.
29400 (_mm512_expand_ps): Ditto.
29401 * config/i386/i386.c (ix86_builtins): Remove
29402 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
29403 (bdesc_args): Ditto.
29404 * config/i386/predicates.md (const1256_operand): New.
29405 (const_1_to_2_operand): Ditto.
29406 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
29407 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
29408 (*avx512pf_gatherpf<mode>sf): Ditto.
29409 (avx512pf_gatherpf<mode>df): Ditto.
29410 (*avx512pf_gatherpf<mode>df_mask): Ditto.
29411 (*avx512pf_gatherpf<mode>df): Ditto.
29412 (avx512pf_scatterpf<mode>sf): Ditto.
29413 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
29414 (*avx512pf_scatterpf<mode>sf): Ditto.
29415 (avx512pf_scatterpf<mode>df): Ditto.
29416 (*avx512pf_scatterpf<mode>df_mask): Ditto.
29417 (*avx512pf_scatterpf<mode>df): Ditto.
29418 (avx512f_expand<mode>): Removed.
29419 (<shift_insn><mode>3<mask_name>): Change predicate type.
29421 2014-02-08 Jakub Jelinek <jakub@redhat.com>
29423 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
29424 not at the end of datarefs vector use ordered_remove to avoid
29425 reordering datarefs vector.
29428 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
29429 mark local addressable non-static vars as GOVD_PRIVATE
29430 instead of GOVD_LOCAL.
29431 * omp-low.c (lower_omp_for): Move gimple_bind_vars
29432 and BLOCK_VARS of gimple_bind_block to new_stmt rather
29435 PR middle-end/60092
29436 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
29437 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
29438 assume_aligned or alloc_align attributes.
29439 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
29440 arguments. Handle also assume_aligned and alloc_align attributes.
29441 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
29442 calls to functions with assume_aligned or alloc_align attributes.
29443 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
29445 2014-02-08 Terry Guo <terry.guo@arm.com>
29447 * doc/invoke.texi: Document ARM -march=armv7e-m.
29449 2014-02-08 Jakub Jelinek <jakub@redhat.com>
29451 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
29452 flag on __cilkrts_rethrow builtin.
29455 * ipa-cp.c (determine_versionability): Fail at -O0
29456 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
29457 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
29460 2014-02-04 Jakub Jelinek <jakub@redhat.com>
29463 * tree-inline.c (copy_forbidden): Fail for
29464 __attribute__((optimize (0))) functions.
29466 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
29468 * varpool.c: Include pointer-set.h.
29469 (varpool_remove_unreferenced_decls): Variables in other partitions
29470 will not be output; be however careful to not lose information
29471 about partitioning.
29473 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
29475 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
29476 lookup in the vtable constructor.
29478 2014-02-07 Jeff Law <law@redhat.com>
29481 * config/m68k/m68k.md (ashldi_extsi): Turn into a
29482 define_insn_and_split.
29484 * ipa-inline.c (inline_small_functions): Fix typos.
29486 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29488 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
29489 (s390_can_use_return_insn): Declare.
29490 * config/s390/s390.h (EPILOGUE_USES): Define.
29491 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
29493 (s390_chunkify_start): Handle return JUMP_LABELs.
29494 (s390_early_mach): Emit a main_pool instruction on the entry edge.
29495 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
29496 (s390_can_use_return_insn): New functions.
29497 (s390_fix_long_loop_prediction): Handle conditional returns.
29498 (TARGET_SET_UP_BY_PROLOGUE): Define.
29499 * config/s390/s390.md (ANY_RETURN): New code iterator.
29500 (*creturn, *csimple_return, return, simple_return): New patterns.
29502 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29504 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
29505 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
29506 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
29507 REG_CFA_RESTORE list when deciding not to restore a register.
29509 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29511 * config/s390/s390.c: Include tree-pass.h and context.h.
29512 (s390_early_mach): New function, split out from...
29513 (s390_emit_prologue): ...here.
29514 (pass_data_s390_early_mach): New pass structure.
29515 (pass_s390_early_mach): New class.
29516 (s390_option_override): Create and register early_mach pass.
29517 Move to end of file.
29519 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29521 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
29522 to match for the exit block.
29524 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29526 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
29527 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
29528 Reject misaligned operands.
29530 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29532 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
29534 2014-02-07 Richard Biener <rguenther@suse.de>
29536 PR middle-end/60092
29537 * gimple-low.c (lower_builtin_posix_memalign): New function.
29538 (lower_stmt): Call it to lower posix_memalign in a way
29539 to make alignment info accessible.
29541 2014-02-07 Jakub Jelinek <jakub@redhat.com>
29544 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
29545 __builtin_setjmp_receiver.
29547 2014-02-07 Richard Biener <rguenther@suse.de>
29549 PR middle-end/60092
29550 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
29551 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
29552 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
29553 Handle BUILT_IN_POSIX_MEMALIGN.
29554 (find_func_clobbers): Likewise.
29555 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
29556 (call_may_clobber_ref_p_1): Likewise.
29558 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
29561 * ipa-devirt.c (record_target_from_binfo): Remove overactive
29564 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
29567 * lto-cgraph.c (lto_output_node): Use
29568 symtab_get_symbol_partitioning_class.
29569 (lto_output_varpool_node): likewise.
29570 (symtab_get_symbol_partitioning_class): Move here from
29571 lto/lto-partition.c
29572 * cgraph.h (symbol_partitioning_class): Likewise.
29573 (symtab_get_symbol_partitioning_class): Declare.
29575 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
29577 * ggc.h (ggc_internal_cleared_alloc): New macro.
29578 * vec.h (vec_safe_copy): Handle memory stats.
29579 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
29580 * target-globals.c (save_target_globals): Likewise.
29582 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
29585 * expr.c (emit_move_resolve_push): Export; be bit more selective
29586 on when to clear alias set.
29587 * expr.h (emit_move_resolve_push): Declare.
29588 * function.h (struct function): Add tail_call_marked.
29589 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
29590 * config/i386/i386-protos.h (ix86_expand_push): Remove.
29591 * config/i386/i386.md (TImode move expander): De not call
29593 (FP push expanders): Preserve memory attributes.
29594 * config/i386/sse.md (push<mode>1): Remove.
29595 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
29596 (ix86_expand_push): Remove.
29597 * config/i386/mmx.md (push<mode>1): Remove.
29599 2014-02-06 Jakub Jelinek <jakub@redhat.com>
29601 PR rtl-optimization/60030
29602 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
29603 lopart with paradoxical subreg before shifting it up by hprec.
29605 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29607 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
29608 Remove extra newline at end of file.
29609 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
29610 (arm_issue_rate): Handle cortexa57.
29611 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
29612 (cortex-a57.cortex-a53): Likewise.
29614 2014-02-06 Jakub Jelinek <jakub@redhat.com>
29617 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
29618 don't record in REG_FRAME_RELATED_EXPR registers not set in that
29620 (arm_expand_prologue): Adjust all callers.
29621 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
29622 info, registers also at the lowest numbered registers side. Use
29623 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
29627 * var-tracking.c (adjust_mems): Before adding a SET to
29628 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
29630 2014-02-06 Alan Modra <amodra@gmail.com>
29633 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
29634 change SDmode to DDmode when lra_in_progress.
29636 2014-02-06 Jakub Jelinek <jakub@redhat.com>
29638 PR middle-end/59150
29639 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
29640 free_data_ref on the dr first, and before goto again also set dr
29641 to the next dr. For simd_lane_access, free old datarefs[i] before
29642 overwriting it. For get_vectype_for_scalar_type failure, don't
29643 free_data_ref if simd_lane_access.
29645 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
29648 * tree.h (opts_for_fn): New inline function.
29649 (opt_for_fn): Define.
29650 * config/i386/i386.c (ix86_function_regparm): Use
29651 opt_for_fn (decl, optimize) instead of optimize.
29653 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
29655 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
29656 for SYMBOL_REF in large memory model.
29658 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29660 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
29661 and crypto support.
29662 (cortex-a57): Likewise.
29663 (cortex-a57.cortex-a53): Likewise.
29665 2014-02-06 Yury Gribov <y.gribov@samsung.com>
29666 Kugan Vivekanandarajah <kuganv@linaro.org>
29668 * config/arm/arm.c (arm_vector_alignment_reachable): Check
29670 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
29672 2014-02-06 Richard Biener <rguenther@suse.de>
29674 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
29675 set_loop_copy and initialize_original_copy_tables.
29677 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
29679 * config/aarch64/aarch64-simd.md
29680 (aarch64_ashr_simddi): Change QI to SI.
29682 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
29683 Jakub Jelinek <jakub@redhat.com>
29685 PR middle-end/60013
29686 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
29689 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29691 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
29692 CODE_FOR_altivec_vpku[hw]um to
29693 CODE_FOR_altivec_vpku[hw]um_direct.
29694 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
29695 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
29696 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
29697 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
29699 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29701 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
29702 generation for -maltivec=be.
29703 (altivec_vsumsws): Simplify redundant test.
29705 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29707 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
29708 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
29709 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
29710 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
29711 gen_altivec_vpkuwum.
29712 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
29714 (altivec_vpks<VI_char>ss): Likewise.
29715 (altivec_vpks<VI_char>us): Likewise.
29716 (altivec_vpku<VI_char>us): Likewise.
29717 (altivec_vpku<VI_char>um): Likewise.
29718 (altivec_vpku<VI_char>um_direct): New (copy of
29719 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
29721 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
29722 target is little endian and -maltivec=be is not specified.
29723 (*altivec_vupkhs<VU_char>_direct): New (copy of
29724 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
29725 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
29726 target is little endian and -maltivec=be is not specified.
29727 (*altivec_vupkls<VU_char>_direct): New (copy of
29728 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
29729 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
29730 little endian and -maltivec=be is not specified.
29731 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
29732 little endian and -maltivec=be is not specified.
29734 2014-02-05 Richard Henderson <rth@redhat.com>
29737 * combine-stack-adj.c: Revert r206943.
29738 * sched-int.h (struct deps_desc): Add last_args_size.
29739 * sched-deps.c (init_deps): Initialize it.
29740 (sched_analyze_insn): Add OUTPUT dependencies between insns that
29741 contain REG_ARGS_SIZE notes.
29743 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
29745 * lto-cgraph.c (asm_nodes_output): Make global.
29746 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
29747 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
29748 (driver_handle_option): Handle OPT_fwpa.
29750 2014-02-05 Jakub Jelinek <jakub@redhat.com>
29753 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
29754 a comment typo and formatting issue. If odr_hash hasn't been
29755 created, return vNULL and set *completep to false.
29757 PR middle-end/57499
29758 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
29759 bb with no successors.
29761 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
29764 * doc/invoke.texi (-march): Clarify documentation for ARM.
29765 (-mtune): Likewise.
29768 2014-02-05 Richard Biener <rguenther@suse.de>
29770 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
29771 when not vectorizing because of too many alias checks.
29772 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
29773 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
29775 2014-02-05 Nick Clifton <nickc@redhat.com>
29777 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
29778 accept extended registers in any mode when compiling for the MN10300.
29780 2014-02-05 Yury Gribov <y.gribov@samsung.com>
29782 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
29783 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
29784 sanitization attributes.
29785 (can_inline_edge_p): Likewise.
29786 (sanitize_attrs_match_for_inline_p): New function.
29788 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
29790 * ipa-prop.c (detect_type_change): Shor circuit testing of
29791 type changes on THIS pointer.
29793 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
29796 * config/pa/pa.c (legitimize_tls_address): Return original address
29797 if not passed a SYMBOL_REF rtx.
29798 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
29800 (pa_emit_move_sequence): Simplify TLS source operands.
29801 (pa_legitimate_constant_p): Reject all TLS constants.
29802 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
29803 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
29805 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
29807 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
29808 groups when we know they are controlled by LTO.
29809 * varasm.c (default_binds_local_p_1): If object is in other partition,
29810 it will be resolved locally.
29812 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
29814 * config/host-linux.c (linux_gt_pch_use_address): Don't
29815 use SSIZE_MAX because it is not always defined.
29817 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
29820 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
29821 threshold for pseudo splitting.
29822 (update_ebb_live_info): Process call argument hard registers and
29823 hard registers from insn definition too.
29824 (max_small_class_regs_num): New constant.
29825 (inherit_in_ebb): Update live hard regs through EBBs. Update
29826 reloads_num only for small register classes. Don't split for
29829 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
29832 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
29835 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
29837 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
29838 visibility is safe.
29840 2014-02-04 Marek Polacek <polacek@redhat.com>
29842 * gdbinit.in (pel): Define.
29844 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
29846 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
29849 2014-02-04 Richard Biener <rguenther@suse.de>
29852 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
29853 in function context local.
29854 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
29855 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
29856 similar to LTO_imported_decl_ref.
29858 2014-02-04 Jakub Jelinek <jakub@redhat.com>
29860 PR tree-optimization/60002
29861 * cgraphclones.c (build_function_decl_skip_args): Clear
29862 DECL_LANG_SPECIFIC.
29864 PR tree-optimization/60023
29865 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
29866 false to gsi_replace.
29867 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
29868 has been in some EH region and vec_stmt could throw, add
29869 vec_stmt into the same EH region.
29870 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
29871 has no lhs, ignore it.
29872 * internal-fn.c (expand_MASK_LOAD): Likewise.
29875 * tree-inline.c (copy_forbidden): Fail for
29876 __attribute__((optimize (0))) functions.
29879 * omp-low.c (simd_clone_struct_copy): If from->inbranch
29880 is set, copy one less argument.
29881 (expand_simd_clones): Don't subtract clone_info->inbranch
29882 from simd_clone_struct_alloc argument.
29884 PR rtl-optimization/57915
29885 * recog.c (simplify_while_replacing): If all unary/binary/relational
29886 operation arguments are constant, attempt to simplify those.
29888 PR middle-end/59261
29889 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
29890 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
29892 2014-02-04 Richard Biener <rguenther@suse.de>
29894 PR tree-optimization/60012
29895 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
29896 TBAA disambiguation to all DDRs.
29898 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29901 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
29902 (LINK_SPEC): Use it for -shared, -shared-libgcc.
29904 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
29907 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
29909 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
29911 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
29912 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
29914 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
29917 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
29918 to figure out targets of polymorphic calls with known decl.
29919 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
29920 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
29921 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
29922 (get_polymorphic_call_info): ... here.
29923 (get_polymorphic_call_info_from_invariant): New function.
29925 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
29927 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
29928 lookup via vtable pointer; check for type consistency
29929 and turn inconsitent facts into UNREACHABLE.
29930 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
29931 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
29932 type inconsistent querries; return UNREACHABLE instead.
29934 2014-02-03 Richard Henderson <rth@twiddle.net>
29937 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
29938 already processed this node.
29939 (normalize_one_pred_1): Pass along mark_set.
29940 (normalize_one_pred): Create and destroy a pointer_set_t.
29941 (normalize_one_pred_chain): Likewise.
29943 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
29945 PR gcov-profile/58602
29946 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
29948 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
29951 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
29952 -fno-devirtualize; try to devirtualize by the knowledge of
29953 virtual table pointer given by aggregate propagation.
29954 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
29955 (ipa_print_node_jump_functions): Dump also offset that
29956 is relevant for polymorphic calls.
29957 (determine_known_aggregate_parts): Add arg_type parameter; use it
29958 instead of determining the type from pointer type.
29959 (ipa_compute_jump_functions_for_edge): Update call of
29960 determine_known_aggregate_parts.
29961 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
29962 (gimple_get_virt_method_for_binfo): ... here; simplify using
29963 vtable_pointer_value_to_vtable.
29964 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
29965 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
29966 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
29967 (vtable_pointer_value_to_vtable): Break out from ...; handle also
29969 (vtable_pointer_value_to_binfo): ... here.
29970 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
29972 2014-02-03 Teresa Johnson <tejohnson@google.com>
29974 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
29975 redef of outer loop index variable.
29977 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
29981 * doc/extend.texi (Function Attributes): Typo.
29983 2014-02-03 Cong Hou <congh@google.com>
29985 PR tree-optimization/60000
29986 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
29987 if the vectorized statement is a store. A store statement can only
29988 appear at the end of pattern statements.
29990 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
29992 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
29993 (ix86_option_override_internal): Default long double to 64-bit for
29994 32-bit Bionic and to 128-bit for 64-bit Bionic.
29996 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
29997 TARGET_LONG_DOUBLE_128 is true.
29998 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
30000 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
30001 (mlong-double-64): Negate -mlong-double-128.
30002 (mlong-double-128): New option.
30004 * config/i386/i386-c.c (ix86_target_macros): Define
30005 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
30007 * doc/invoke.texi: Document -mlong-double-128.
30009 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
30011 PR rtl-optimization/60024
30012 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
30014 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
30016 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
30018 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
30020 PR rtl-optimization/57662
30021 * sel-sched.c (code_motion_path_driver): Do not mark already not
30022 existing blocks in the visiting bitmap.
30024 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
30026 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
30027 on the insn being emitted.
30029 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
30030 Will Deacon <will.deacon@arm.com>
30032 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
30034 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30036 * config/arm/arm-tables.opt: Regenerate.
30038 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30040 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
30041 for vector types other than V16QImode.
30042 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
30043 define_expand, and call altivec_expand_vec_perm_le when producing
30044 code with little endian element order.
30045 (*altivec_vperm_<mode>_internal): New insn having previous
30046 behavior of altivec_vperm_<mode>.
30047 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
30048 altivec_expand_vec_perm_le when producing code with little endian
30050 (*altivec_vperm_<mode>_uns_internal): New insn having previous
30051 behavior of altivec_vperm_<mode>_uns.
30053 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30055 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
30056 (altivec_vsumsws): Add handling for -maltivec=be with a little
30058 (altivec_vsumsws_direct): New.
30059 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
30060 gen_altivec_vsumsws.
30062 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
30064 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
30065 vtable_pointer_value_to_binfo): New functions.
30066 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
30067 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
30069 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
30071 * config/nios2/nios2.md (load_got_register): Initialize GOT
30072 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
30073 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
30075 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
30077 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
30078 preserverd by passthrough, do not propagate the type.
30080 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
30082 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
30083 (mips_atomic_assign_expand_fenv): New function.
30084 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
30086 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
30088 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
30089 (__builtin_mips_set_fcsr): Likewise.
30090 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
30091 MIPS_USI_FTYPE_VOID.
30092 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
30093 (mips16_expand_set_fcsr): Likewise.
30094 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
30095 (mips16_set_fcsr_stub): Likewise.
30096 (mips16_get_fcsr_one_only_stub): New class.
30097 (mips16_set_fcsr_one_only_stub): Likewise.
30098 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
30099 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
30100 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
30101 (hard_float): New availability predicate.
30102 (mips_builtins): Add get_fcsr and set_fcsr.
30103 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
30104 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
30105 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
30106 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
30107 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
30110 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
30112 * config/mips/mips.c (mips_one_only_stub): New class.
30113 (mips_need_mips16_rdhwr_p): Replace with...
30114 (mips16_rdhwr_stub): ...this new variable.
30115 (mips16_stub_call_address): New function.
30116 (mips16_rdhwr_one_only_stub): New class.
30117 (mips_expand_thread_pointer): Use mips16_stub_call_address.
30118 (mips_output_mips16_rdhwr): Delete.
30119 (mips_finish_stub): New function.
30120 (mips_code_end): Use it to handle rdhwr stubs.
30122 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
30125 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
30126 when calculating size of integer atomic types.
30128 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
30130 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
30132 2014-02-01 Jakub Jelinek <jakub@redhat.com>
30134 PR tree-optimization/60003
30135 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
30136 * profile.c (branch_prob): Use gimple_call_builtin_p
30137 to check for BUILT_IN_SETJMP_RECEIVER.
30138 * tree-inline.c (copy_bb): Call notice_special_calls.
30140 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
30143 * lra-constraints.c (process_alt_operands): Update reload_sum only
30146 2014-01-31 Richard Henderson <rth@redhat.com>
30148 PR middle-end/60004
30149 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
30150 until after else_eh is processed.
30152 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
30154 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
30155 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
30156 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
30157 in smmintrin.h, remove them.
30158 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
30159 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
30160 * config/i386/i386.md (ROUND_SAE): Fix value.
30161 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
30162 (const48_operand): New.
30163 * config/i386/subst.md (round), (round_expand): Use
30164 const_4_or_8_to_11_operand.
30165 (round_saeonly), (round_saeonly_expand): Use const48_operand.
30167 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
30169 * config/i386/constraints.md (Yk): Swap meaning with k.
30170 * config/i386/i386.md (movhi_internal): Change Yk to k.
30171 (movqi_internal): Ditto.
30172 (*k<logic><mode>): Ditto.
30175 (kandn<mode>): Ditto.
30176 (*<code>hi_1): Ditto.
30177 (*<code>qi_1): Ditto.
30178 (kxnor<mode>): Ditto.
30179 (kortestzhi): Ditto.
30180 (kortestchi): Ditto.
30182 (*one_cmplhi2_1): Ditto.
30183 (*one_cmplqi2_1): Ditto.
30184 * config/i386/sse.md (): Change k to Yk.
30185 (avx512f_load<mode>_mask): Ditto.
30186 (avx512f_blendm<mode>): Ditto.
30187 (avx512f_store<mode>_mask): Ditto.
30188 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
30189 (avx512f_storedqu<mode>_mask): Ditto.
30190 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
30192 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
30193 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
30194 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
30195 (avx512f_maskcmp<mode>3): Ditto.
30196 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
30197 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
30198 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
30199 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
30200 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
30201 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
30202 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
30203 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
30204 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
30205 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
30206 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
30207 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
30208 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
30209 (vec_extract_lo_<mode>_maskm): Ditto.
30210 (vec_extract_hi_<mode>_maskm): Ditto.
30211 (avx512f_vternlog<mode>_mask): Ditto.
30212 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
30213 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
30214 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
30215 (avx512f_<code>v8div16qi2_mask): Ditto.
30216 (avx512f_<code>v8div16qi2_mask_store): Ditto.
30217 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
30218 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
30219 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
30220 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
30221 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
30222 (*avx512pf_gatherpf<mode>df_mask): Ditto.
30223 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
30224 (*avx512pf_scatterpf<mode>df_mask): Ditto.
30225 (avx512cd_maskb_vec_dupv8di): Ditto.
30226 (avx512cd_maskw_vec_dupv16si): Ditto.
30227 (avx512f_vpermi2var<mode>3_maskz): Ditto.
30228 (avx512f_vpermi2var<mode>3_mask): Ditto.
30229 (avx512f_vpermi2var<mode>3_mask): Ditto.
30230 (avx512f_vpermt2var<mode>3_maskz): Ditto.
30231 (*avx512f_gathersi<mode>): Ditto.
30232 (*avx512f_gathersi<mode>_2): Ditto.
30233 (*avx512f_gatherdi<mode>): Ditto.
30234 (*avx512f_gatherdi<mode>_2): Ditto.
30235 (*avx512f_scattersi<mode>): Ditto.
30236 (*avx512f_scatterdi<mode>): Ditto.
30237 (avx512f_compress<mode>_mask): Ditto.
30238 (avx512f_compressstore<mode>_mask): Ditto.
30239 (avx512f_expand<mode>_mask): Ditto.
30240 * config/i386/subst.md (mask): Change k to Yk.
30241 (mask_scalar_merge): Ditto.
30244 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
30246 * doc/extend.texi (Vector Extensions): Document ?: in C++.
30248 2014-01-31 Richard Biener <rguenther@suse.de>
30250 PR middle-end/59990
30251 * builtins.c (fold_builtin_memory_op): Make sure to not
30252 use a floating-point mode or a boolean or enumeral type for
30253 the copy operation.
30255 2014-01-30 DJ Delorie <dj@redhat.com>
30257 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
30258 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
30259 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
30260 whenever main() has an epilogue.
30262 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30264 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
30265 unused variable "field".
30266 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
30267 (vsx_mergeh_<mode>): Likewise.
30268 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
30269 (altivec_vmrghh): Likewise.
30270 (altivec_vmrghw): Likewise.
30271 (altivec_vmrglb): Likewise.
30272 (altivec_vmrglh): Likewise.
30273 (altivec_vmrglw): Likewise.
30274 (altivec_vspltb): Add missing uses.
30275 (altivec_vsplth): Likewise.
30276 (altivec_vspltw): Likewise.
30277 (altivec_vspltsf): Likewise.
30279 2014-01-30 Jakub Jelinek <jakub@redhat.com>
30282 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
30283 frame related instructions.
30285 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
30287 PR rtl-optimization/59959
30288 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
30289 any reload of register whose subreg is invalid.
30291 2014-01-30 Jakub Jelinek <jakub@redhat.com>
30293 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
30294 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
30295 Add missing return type - void.
30297 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30299 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
30300 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
30301 remove element index adjustment for endian (now handled in vsx.md
30303 (altivec_expand_vec_perm_const): Use
30304 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
30305 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
30306 (vsx_xxspltw_<mode>): Adjust element index for little endian.
30307 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
30308 define_expand and a new define_insn *altivec_vspltb_internal;
30309 adjust for -maltivec=be on a little endian target.
30310 (altivec_vspltb_direct): New.
30311 (altivec_vsplth): Divide into a define_expand and a new
30312 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
30313 little endian target.
30314 (altivec_vsplth_direct): New.
30315 (altivec_vspltw): Divide into a define_expand and a new
30316 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
30317 little endian target.
30318 (altivec_vspltw_direct): New.
30319 (altivec_vspltsf): Divide into a define_expand and a new
30320 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
30321 a little endian target.
30323 2014-01-30 Richard Biener <rguenther@suse.de>
30325 PR tree-optimization/59993
30326 * tree-ssa-forwprop.c (associate_pointerplus): Check we
30327 can propagate form the earlier stmt and avoid the transform
30328 when the intermediate result is needed.
30330 2014-01-30 Alangi Derick <alangiderick@gmail.com>
30332 * README.Portability: Fix typo.
30334 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
30336 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
30337 comparison_operator with ordered_comparison_operator.
30339 2014-01-30 Nick Clifton <nickc@redhat.com>
30341 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
30342 Rename to mn10300_store_multiple_regs.
30343 * config/mn10300/mn10300.c: Likewise.
30344 * config/mn10300/mn10300.md (store_movm): Fix typo: call
30345 store_multiple_regs.
30346 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
30347 Call mn10300_store_multiple_regs.
30349 2014-01-30 Nick Clifton <nickc@redhat.com>
30350 DJ Delorie <dj@redhat.com>
30352 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
30353 %fp 2 to keep registers after it properly word-aligned.
30354 (rl78_alloc_physical_registers_umul): Handle the case where both
30355 input operands are the same.
30357 2014-01-30 Richard Biener <rguenther@suse.de>
30359 PR tree-optimization/59903
30360 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
30363 2014-01-30 Jason Merrill <jason@redhat.com>
30366 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
30369 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
30371 2014-01-30 Richard Biener <rguenther@suse.de>
30373 PR tree-optimization/59951
30374 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
30376 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
30379 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
30380 SFmode to DFmode case.
30382 2014-01-29 DJ Delorie <dj@redhat.com>
30384 * config/msp430/msp430.opt (-minrt): New.
30385 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
30387 (ENDFILE_SPEC): Likewise.
30389 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
30391 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
30392 (estimate_function_body_sizes): Use it.
30394 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
30397 * dwarf2out.c (is_cxx_auto): New.
30398 (is_base_type): Use it.
30399 (gen_type_die_with_usage): Likewise.
30401 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30403 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
30404 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
30405 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
30406 -maltivec=be with LE targets.
30407 (vsx_mergeh_<mode>): Likewise.
30408 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
30409 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
30410 (altivec_vmrghb): Replace with define_expand and new
30411 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
30412 (altivec_vmrghb_direct): New define_insn.
30413 (altivec_vmrghh): Replace with define_expand and new
30414 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
30415 (altivec_vmrghh_direct): New define_insn.
30416 (altivec_vmrghw): Replace with define_expand and new
30417 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
30418 (altivec_vmrghw_direct): New define_insn.
30419 (*altivec_vmrghsf): Adjust for endianness.
30420 (altivec_vmrglb): Replace with define_expand and new
30421 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
30422 (altivec_vmrglb_direct): New define_insn.
30423 (altivec_vmrglh): Replace with define_expand and new
30424 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
30425 (altivec_vmrglh_direct): New define_insn.
30426 (altivec_vmrglw): Replace with define_expand and new
30427 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
30428 (altivec_vmrglw_direct): New define_insn.
30429 (*altivec_vmrglsf): Adjust for endianness.
30430 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
30431 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
30432 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
30433 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
30434 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
30435 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
30436 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
30437 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
30439 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
30441 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
30442 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
30445 2014-01-29 Richard Biener <rguenther@suse.de>
30447 PR tree-optimization/58742
30448 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
30449 associate_pointerplus_align.
30450 (associate_pointerplus_diff): New function.
30451 (associate_pointerplus): Likewise. Call associate_pointerplus_align
30452 and associate_pointerplus_diff.
30454 2014-01-29 Richard Biener <rguenther@suse.de>
30456 * lto-streamer.h (LTO_major_version): Bump to 3.
30457 (LTO_minor_version): Reset to 0.
30459 2014-01-29 Renlin Li <Renlin.Li@arm.com>
30461 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
30462 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
30463 (arm_file_start): Generate correct asm header for armv7ve.
30464 * config/arm/bpabi.h: Add multilib support for armv7ve.
30465 * config/arm/driver-arm.c: Change the architectures of cortex-a7
30466 and cortex-a15 to armv7ve.
30467 * config/arm/t-aprofile: Add multilib support for armv7ve.
30468 * doc/invoke.texi: Document -march=armv7ve.
30470 2014-01-29 Richard Biener <rguenther@suse.de>
30472 PR tree-optimization/58742
30473 * tree-ssa-forwprop.c (associate_plusminus): Return true
30474 if we changed sth, defer EH cleanup to ...
30475 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
30476 (simplify_mult): New function.
30478 2014-01-29 Jakub Jelinek <jakub@redhat.com>
30480 PR middle-end/59917
30481 PR tree-optimization/59920
30482 * tree.c (build_common_builtin_nodes): Remove
30483 __builtin_setjmp_dispatcher initialization.
30484 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
30485 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
30486 instead of gsi_after_labels + manually skipping debug stmts.
30487 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
30488 ignore bbs with IFN_ABNORMAL_DISPATCHER.
30489 * tree-inline.c (copy_edges_for_bb): Remove
30490 can_make_abnormal_goto argument, instead add abnormal_goto_dest
30491 argument. Ignore computed_goto_p stmts. Don't call
30492 make_abnormal_goto_edges. If a call might need abnormal edges
30493 for non-local gotos, see if it already has an edge to
30494 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
30495 with true argument, don't do anything then, otherwise add
30496 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
30497 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
30499 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
30500 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
30501 (lower_stmt): Don't set data->calls_builtin_setjmp.
30502 (lower_builtin_setjmp): Adjust comment.
30503 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
30504 * tree-cfg.c (found_computed_goto): Remove.
30505 (factor_computed_gotos): Remove.
30506 (make_goto_expr_edges): Return bool, true for computed gotos.
30507 Don't call make_abnormal_goto_edges.
30508 (build_gimple_cfg): Don't set found_computed_goto, don't call
30509 factor_computed_gotos.
30510 (computed_goto_p): No longer static.
30511 (make_blocks): Don't set found_computed_goto.
30512 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
30513 (make_edges): If make_goto_expr_edges returns true, push bb
30514 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
30515 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
30516 vector. Record mapping between bbs and OpenMP regions if there
30517 are any, adjust make_gimple_omp_edges caller. Call
30518 handle_abnormal_edges.
30519 (make_abnormal_goto_edges): Remove.
30520 * tree-cfg.h (make_abnormal_goto_edges): Remove.
30521 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
30522 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
30523 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
30524 * internal-fn.def (ABNORMAL_DISPATCHER): New.
30525 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
30526 filling *region also set *region_idx to (*region)->entry->index.
30529 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
30530 For REGs set ORIGINAL_REGNO.
30532 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
30534 * doc/md.texi: Mention that a target shouldn't implement
30535 vec_widen_(s|u)mul_even/odd pair if it is less efficient
30538 2014-01-29 Jakub Jelinek <jakub@redhat.com>
30540 PR tree-optimization/59594
30541 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
30542 a copy of the datarefs vector rather than the vector itself.
30544 2014-01-28 Jason Merrill <jason@redhat.com>
30547 * dwarf2out.c (auto_die): New static.
30548 (gen_type_die_with_usage): Handle C++1y 'auto'.
30549 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
30552 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
30555 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
30556 (SPEC_X32): Likewise.
30557 (SPEC_64): Likewise.
30558 * config/i386/i386.c (ix86_option_override_internal): Turn off
30559 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
30561 (x86_file_start): Output .code16gcc for TARGET_16BIT.
30562 * config/i386/i386.h (TARGET_16BIT): New macro.
30563 (TARGET_16BIT_P): Likewise.
30564 * config/i386/i386.opt: Add m16.
30565 * doc/invoke.texi: Document -m16.
30567 2014-01-28 Jakub Jelinek <jakub@redhat.com>
30569 PR preprocessor/59935
30570 * input.c (location_get_source_line): Bail out on when line number
30571 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
30573 2014-01-28 Richard Biener <rguenther@suse.de>
30575 PR tree-optimization/58742
30576 * tree-ssa-forwprop.c (associate_plusminus): Handle
30577 pointer subtraction of the form (T)(P + A) - (T)P.
30579 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30581 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
30584 2014-01-28 Richard Biener <rguenther@suse.de>
30587 2014-01-28 Richard Biener <rguenther@suse.de>
30589 PR rtl-optimization/45364
30590 PR rtl-optimization/59890
30591 * var-tracking.c (local_get_addr_clear_given_value): Handle
30592 already cleared slot.
30593 (val_reset): Handle not allocated local_get_addr_cache.
30594 (vt_find_locations): Use post-order on the inverted CFG.
30596 2014-01-28 Richard Biener <rguenther@suse.de>
30598 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
30600 2014-01-28 Richard Biener <rguenther@suse.de>
30602 PR rtl-optimization/45364
30603 PR rtl-optimization/59890
30604 * var-tracking.c (local_get_addr_clear_given_value): Handle
30605 already cleared slot.
30606 (val_reset): Handle not allocated local_get_addr_cache.
30607 (vt_find_locations): Use post-order on the inverted CFG.
30609 2014-01-28 Alan Modra <amodra@gmail.com>
30611 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
30612 * configure.ac <recursive call for build != host>: Define
30613 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
30614 and LD_FOR_BUILD too.
30615 * configure: Regenerate.
30617 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
30619 * config/i386/i386.c (get_builtin_code_for_version): Separate
30620 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
30621 Broadwell from Haswell.
30623 2014-01-27 Steve Ellcey <sellcey@mips.com>
30625 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
30626 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
30627 * config/mips/mips.c (mips_option_override): Change setting
30629 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
30630 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
30631 Change from Mask to Var.
30633 2014-01-27 Jeff Law <law@redhat.com>
30635 * ipa-inline.c (inline_small_functions): Fix typo.
30637 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
30639 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
30640 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
30641 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
30642 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
30643 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
30644 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
30645 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
30646 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
30647 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
30648 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
30649 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
30650 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
30651 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
30652 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
30653 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
30654 (_mm512_storeu_epi64): Ditto.
30655 (_mm512_cmpge_epi32_mask): Ditto.
30656 (_mm512_cmpge_epu32_mask): Ditto.
30657 (_mm512_cmpge_epi64_mask): Ditto.
30658 (_mm512_cmpge_epu64_mask): Ditto.
30659 (_mm512_cmple_epi32_mask): Ditto.
30660 (_mm512_cmple_epu32_mask): Ditto.
30661 (_mm512_cmple_epi64_mask): Ditto.
30662 (_mm512_cmple_epu64_mask): Ditto.
30663 (_mm512_cmplt_epi32_mask): Ditto.
30664 (_mm512_cmplt_epu32_mask): Ditto.
30665 (_mm512_cmplt_epi64_mask): Ditto.
30666 (_mm512_cmplt_epu64_mask): Ditto.
30667 (_mm512_cmpneq_epi32_mask): Ditto.
30668 (_mm512_cmpneq_epu32_mask): Ditto.
30669 (_mm512_cmpneq_epi64_mask): Ditto.
30670 (_mm512_cmpneq_epu64_mask): Ditto.
30671 (_mm512_expand_pd): Ditto.
30672 (_mm512_expand_ps): Ditto.
30673 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
30674 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
30675 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
30676 * config/i386/i386.c (ix86_builtins): Add
30677 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
30678 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
30679 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
30680 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
30681 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
30682 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
30683 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
30684 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
30685 IX86_BUILTIN_PMOVUSQW512_MEM.
30686 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
30687 __builtin_ia32_pmovsqd512mem_mask,
30688 __builtin_ia32_pmovqd512mem_mask,
30689 __builtin_ia32_pmovusqw512mem_mask,
30690 __builtin_ia32_pmovsqw512mem_mask,
30691 __builtin_ia32_pmovqw512mem_mask,
30692 __builtin_ia32_pmovusdw512mem_mask,
30693 __builtin_ia32_pmovsdw512mem_mask,
30694 __builtin_ia32_pmovdw512mem_mask,
30695 __builtin_ia32_pmovqb512mem_mask,
30696 __builtin_ia32_pmovusqb512mem_mask,
30697 __builtin_ia32_pmovsqb512mem_mask,
30698 __builtin_ia32_pmovusdb512mem_mask,
30699 __builtin_ia32_pmovsdb512mem_mask,
30700 __builtin_ia32_pmovdb512mem_mask.
30701 (bdesc_args): Add __builtin_ia32_expanddf512,
30702 __builtin_ia32_expandsf512.
30703 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
30704 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
30705 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
30706 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
30707 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
30708 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
30709 (avx512f_<code>v8div16qi2_mask_store): This.
30710 (avx512f_expand<mode>): New.
30712 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
30714 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
30716 (_mm512_mask_prefetch_i64gather_pd): Ditto.
30717 (_mm512_prefetch_i32scatter_pd): Ditto.
30718 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
30719 (_mm512_prefetch_i64scatter_pd): Ditto.
30720 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
30721 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
30722 (_mm512_mask_prefetch_i64gather_ps): Ditto.
30723 (_mm512_prefetch_i32scatter_ps): Ditto.
30724 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
30725 (_mm512_prefetch_i64scatter_ps): Ditto.
30726 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
30727 * config/i386/i386-builtin-types.def: Define
30728 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
30729 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
30730 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
30731 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
30732 IX86_BUILTIN_SCATTERPFQPD.
30733 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
30734 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
30735 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
30736 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
30737 __builtin_ia32_scatterpfqps.
30738 (ix86_expand_builtin): Expand new built-ins.
30739 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
30740 fix memory access data type.
30741 (*avx512pf_gatherpf<mode>_mask): Ditto.
30742 (*avx512pf_gatherpf<mode>): Ditto.
30743 (avx512pf_scatterpf<mode>): Ditto.
30744 (*avx512pf_scatterpf<mode>_mask): Ditto.
30745 (*avx512pf_scatterpf<mode>): Ditto.
30746 (GATHER_SCATTER_SF_MEM_MODE): New.
30747 (avx512pf_gatherpf<mode>df): Ditto.
30748 (*avx512pf_gatherpf<mode>df_mask): Ditto.
30749 (*avx512pf_scatterpf<mode>df): Ditto.
30751 2014-01-27 Jakub Jelinek <jakub@redhat.com>
30754 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
30755 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
30758 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
30760 * common/config/arm/arm-common.c
30761 (arm_rewrite_mcpu): Handle multiple names.
30763 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
30765 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
30767 * gimple-builder.h (create_gimple_tmp): Delete.
30769 2014-01-27 Christian Bruel <christian.bruel@st.com>
30771 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
30774 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
30776 * config/pa/pa.md (call): Generate indirect long calls to non-local
30777 functions when outputing 32-bit code.
30778 (call_value): Likewise except for special call to buggy powf function.
30780 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
30781 portable runtime and PIC indirect calls.
30782 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
30783 and PIC call sequences. Use ldo instead of blr to set return register
30784 in PIC call sequence.
30786 2014-01-25 Walter Lee <walt@tilera.com>
30788 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
30789 avoid clobbering a live register.
30791 2014-01-25 Walter Lee <walt@tilera.com>
30793 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
30794 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
30795 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
30796 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
30798 2014-01-25 Walter Lee <walt@tilera.com>
30800 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
30801 arguments on even registers.
30802 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
30804 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
30805 (BIGGEST_ALIGNMENT): Ditto.
30806 (BIGGEST_FIELD_ALIGNMENT): Ditto.
30808 2014-01-25 Walter Lee <walt@tilera.com>
30810 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
30811 insns before bundling.
30812 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
30814 2014-01-25 Walter Lee <walt@tilera.com>
30816 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
30817 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
30818 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
30820 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
30822 * config/mips/constraints.md (kl): Delete.
30823 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
30824 define expands, using...
30825 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
30826 instructions for MIPS16.
30827 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
30828 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
30830 2014-01-25 Walter Lee <walt@tilera.com>
30832 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
30836 2014-01-25 Walter Lee <walt@tilera.com>
30838 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
30839 (TARGET_EXPAND_TO_RTL_HOOK): Define.
30841 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
30843 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
30846 2014-01-25 Jakub Jelinek <jakub@redhat.com>
30848 * print-rtl.c (in_call_function_usage): New var.
30849 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
30850 EXPR_LIST mode as mode and not as reg note name.
30852 PR middle-end/59561
30853 * cfgloopmanip.c (copy_loop_info): If
30854 loop->warned_aggressive_loop_optimizations, make sure
30855 the flag is set in target loop too.
30857 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
30859 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
30861 * builtins.def: Likewise.
30862 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
30863 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
30864 * ira.c (ira_setup_eliminable_regset): Likewise.
30865 * omp-low.c (gate_expand_omp): Likewise.
30866 (execute_lower_omp): Likewise.
30867 (diagnose_sb_0): Likewise.
30868 (gate_diagnose_omp_blocks): Likewise.
30869 (simd_clone_clauses_extract): Likewise.
30872 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30874 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
30875 correction for little endian...
30876 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
30879 2014-01-24 Jeff Law <law@redhat.com>
30881 PR tree-optimization/59919
30882 * tree-vrp.c (find_assert_locations_1): Do not register asserts
30883 for non-returning calls.
30885 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
30887 * common/config/aarch64/aarch64-common.c
30888 (aarch64_rewrite_mcpu): Handle multiple names.
30889 * config/aarch64/aarch64.h
30890 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
30892 2014-01-24 Dodji Seketeli <dodji@redhat.com>
30894 * input.c (add_file_to_cache_tab): Handle the case where fopen
30897 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
30900 * config/i386/i386.md (pushsf splitter): Get stack adjustment
30901 from push operand if code of push isn't PRE_DEC.
30903 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
30906 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
30907 -mquad-memory-atomic. Update -mquad-memory documentation to say
30908 it is only used for non-atomic loads/stores.
30910 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
30911 -mquad-memory or -mquad-memory-atomic switches.
30913 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
30914 -mquad-memory-atomic to ISA 2.07 support.
30916 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
30917 to separate support of normal quad word memory operations (ldq, stq)
30918 from the atomic quad word memory operations.
30920 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
30921 support to separate non-atomic quad word operations from atomic
30922 quad word operations. Disable non-atomic quad word operations in
30923 little endian mode so that we don't have to swap words after the
30924 load and before the store.
30925 (quad_load_store_p): Add comment about atomic quad word support.
30926 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
30927 options printed with -mdebug=reg.
30929 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
30930 -mquad-memory-atomic as the test for whether we have quad word
30931 atomic instructions.
30932 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
30933 or -mp8-vector are used, allow byte/half-word atomic operations.
30935 * config/rs6000/sync.md (load_lockedti): Insure that the address
30936 is a proper indexed or indirect address for the lqarx instruction.
30937 On little endian systems, swap the hi/lo registers after the lqarx
30939 (load_lockedpti): Use indexed_or_indirect_operand predicate to
30940 insure the address is valid for the lqarx instruction.
30941 (store_conditionalti): Insure that the address is a proper indexed
30942 or indirect address for the stqcrx. instruction. On little endian
30943 systems, swap the hi/lo registers before doing the stqcrx.
30945 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
30946 insure the address is valid for the stqcrx. instruction.
30948 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
30949 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
30950 type of quad memory support is available.
30952 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
30954 PR regression/59915
30955 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
30956 there is a danger of looping.
30958 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
30960 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
30961 force flag_ira_loop_pressure if set via command line.
30963 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
30965 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
30966 (ashr_simd): New builtin handling DI mode.
30967 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
30968 (aarch64_sshr_simddi): New match pattern.
30969 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
30970 (vshrd_n_s64): Likewise.
30971 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
30973 2014-01-23 Nick Clifton <nickc@redhat.com>
30975 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
30976 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
30977 favour of mcu specific scripts.
30978 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
30981 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
30982 Alex Velenko <Alex.Velenko@arm.com>
30984 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
30985 (vaddv_s16): Likewise.
30986 (vaddv_s32): Likewise.
30987 (vaddv_u8): Likewise.
30988 (vaddv_u16): Likewise.
30989 (vaddv_u32): Likewise.
30990 (vaddvq_s8): Likewise.
30991 (vaddvq_s16): Likewise.
30992 (vaddvq_s32): Likewise.
30993 (vaddvq_s64): Likewise.
30994 (vaddvq_u8): Likewise.
30995 (vaddvq_u16): Likewise.
30996 (vaddvq_u32): Likewise.
30997 (vaddvq_u64): Likewise.
30998 (vaddv_f32): Likewise.
30999 (vaddvq_f32): Likewise.
31000 (vaddvq_f64): Likewise.
31001 (vmaxv_f32): Likewise.
31002 (vmaxv_s8): Likewise.
31003 (vmaxv_s16): Likewise.
31004 (vmaxv_s32): Likewise.
31005 (vmaxv_u8): Likewise.
31006 (vmaxv_u16): Likewise.
31007 (vmaxv_u32): Likewise.
31008 (vmaxvq_f32): Likewise.
31009 (vmaxvq_f64): Likewise.
31010 (vmaxvq_s8): Likewise.
31011 (vmaxvq_s16): Likewise.
31012 (vmaxvq_s32): Likewise.
31013 (vmaxvq_u8): Likewise.
31014 (vmaxvq_u16): Likewise.
31015 (vmaxvq_u32): Likewise.
31016 (vmaxnmv_f32): Likewise.
31017 (vmaxnmvq_f32): Likewise.
31018 (vmaxnmvq_f64): Likewise.
31019 (vminv_f32): Likewise.
31020 (vminv_s8): Likewise.
31021 (vminv_s16): Likewise.
31022 (vminv_s32): Likewise.
31023 (vminv_u8): Likewise.
31024 (vminv_u16): Likewise.
31025 (vminv_u32): Likewise.
31026 (vminvq_f32): Likewise.
31027 (vminvq_f64): Likewise.
31028 (vminvq_s8): Likewise.
31029 (vminvq_s16): Likewise.
31030 (vminvq_s32): Likewise.
31031 (vminvq_u8): Likewise.
31032 (vminvq_u16): Likewise.
31033 (vminvq_u32): Likewise.
31034 (vminnmv_f32): Likewise.
31035 (vminnmvq_f32): Likewise.
31036 (vminnmvq_f64): Likewise.
31038 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
31040 * config/aarch64/aarch64-simd.md
31041 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
31042 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
31043 (*aarch64_mul3_elt<mode>): Likewise.
31044 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
31045 (*aarch64_mul3_elt_to_64v2df): Likewise.
31046 (*aarch64_mla_elt<mode>): Likewise.
31047 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
31048 (*aarch64_mls_elt<mode>): Likewise.
31049 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
31050 (*aarch64_fma4_elt<mode>): Likewise.
31051 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
31052 (*aarch64_fma4_elt_to_64v2df): Likewise.
31053 (*aarch64_fnma4_elt<mode>): Likewise.
31054 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
31055 (*aarch64_fnma4_elt_to_64v2df): Likewise.
31056 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
31057 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
31058 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
31059 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
31060 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
31061 (aarch64_sqdmull_lane<mode>_internal): Likewise.
31062 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
31064 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
31066 * config/aarch64/aarch64-simd.md
31067 (aarch64_be_checked_get_lane<mode>): New define_expand.
31068 * config/aarch64/aarch64-simd-builtins.def
31069 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
31070 New builtin definition.
31071 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
31072 Use new safe be builtin.
31074 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
31076 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
31078 (aarch64_be_st1<mode>): Likewise.
31079 (aarch_ld1<VALL:mode>): Define_expand modified.
31080 (aarch_st1<VALL:mode>): Likewise.
31081 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
31082 (UNSPEC_ST1): Likewise.
31084 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
31086 * config/microblaze/microblaze.md: Add trap insn and attribute
31088 2014-01-23 Dodji Seketeli <dodji@redhat.com>
31090 PR preprocessor/58580
31091 * input.h (location_get_source_line): Take an additional line_size
31093 (void diagnostics_file_cache_fini): Declare new function.
31094 * input.c (struct fcache): New type.
31095 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
31096 New static constants.
31097 (diagnostic_file_cache_init, total_lines_num)
31098 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
31099 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
31100 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
31101 (get_next_line, read_next_line, goto_next_line, read_line_num):
31102 New static function definitions.
31103 (diagnostic_file_cache_fini): New function.
31104 (location_get_source_line): Take an additional output line_len
31105 parameter. Re-write using lookup_or_add_file_to_cache_tab and
31107 * diagnostic.c (diagnostic_finish): Call
31108 diagnostic_file_cache_fini.
31109 (adjust_line): Take an additional input parameter for the length
31110 of the line, rather than calculating it with strlen.
31111 (diagnostic_show_locus): Adjust the use of
31112 location_get_source_line and adjust_line with respect to their new
31113 signature. While displaying a line now, do not stop at the first
31114 null byte. Rather, display the zero byte as a space and keep
31115 going until we reach the size of the line.
31116 * Makefile.in: Add vec.o to OBJS-libcommon
31118 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
31119 Ilya Tocar <ilya.tocar@intel.com>
31121 * config/i386/avx512fintrin.h (_mm512_kmov): New.
31122 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
31123 (__builtin_ia32_kmov16): Ditto.
31124 * config/i386/i386.md (UNSPEC_KMOV): New.
31127 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
31129 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
31130 (_mm512_storeu_si512): Ditto.
31132 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
31135 * rtl.h (get_referenced_operands): Declare.
31136 * recog.c (get_referenced_operands): New function.
31137 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
31138 operands have been referenced when recording LO_SUM references.
31140 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
31142 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
31144 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
31146 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
31147 Enable for generic and recent AMD targets.
31149 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
31151 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
31152 ARG_SIZE note when adjustment was eliminated.
31154 2014-01-22 Jeff Law <law@redhat.com>
31156 PR tree-optimization/59597
31157 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
31158 in file. Accept new argument REGISTERING and use it to modify
31159 dump output appropriately.
31160 (register_jump_thread): Corresponding changes.
31161 (mark_threaded_blocks): Reinstate code to cancel unprofitable
31162 thread paths involving joiner blocks. Add code to dump cancelled
31163 jump threading paths.
31165 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
31167 PR rtl-optimization/59477
31168 * lra-constraints.c (inherit_in_ebb): Process call for living hard
31169 regs. Update reloads_num and potential_reload_hard_regs for all insns.
31171 2014-01-22 Tom Tromey <tromey@redhat.com>
31173 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
31175 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
31177 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
31179 PR rtl-optimization/59896
31180 * lra-constraints.c (process_alt_operands): Check unused note for
31181 matched operands of insn with no output reloads.
31183 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
31185 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
31186 (mips_move_from_gpr_cost): Likewise.
31188 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
31190 PR rtl-optimization/59858
31191 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
31192 ira_class_hard_regs_num.
31193 (process_alt_operands): Increase reject for dying matched operand.
31195 2014-01-21 Jakub Jelinek <jakub@redhat.com>
31198 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
31199 smaller than size, perform several stores or loads and stores
31200 at dst + count - size to store or copy all of size bytes, rather
31201 than just last modesize bytes.
31203 2014-01-20 DJ Delorie <dj@redhat.com>
31205 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
31206 that CLOBBERs are REGs before propogating their values.
31208 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
31210 PR middle-end/59789
31211 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
31212 (cgraph_inline_failed_type): New function.
31213 * cgraph.h (DEFCIFCODE): Add type.
31214 (cgraph_inline_failed_type_t): New enum.
31215 (cgraph_inline_failed_type): New prototype.
31216 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
31217 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
31218 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
31219 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
31220 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
31221 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
31222 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
31223 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
31224 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
31225 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
31226 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
31227 OPTIMIZATION_MISMATCH.
31228 * tree-inline.c (expand_call_inline): Emit errors during
31229 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
31231 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
31234 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
31235 mode attribute in insn output.
31237 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
31239 * output.h (output_constant): Delete.
31240 * varasm.c (output_constant): Make private.
31242 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
31244 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
31246 2014-01-20 Jakub Jelinek <jakub@redhat.com>
31248 PR middle-end/59860
31249 * tree.h (fold_builtin_strcat): New prototype.
31250 * builtins.c (fold_builtin_strcat): No longer static. Add len
31251 argument, if non-NULL, don't call c_strlen. Optimize
31252 directly into __builtin_memcpy instead of __builtin_strcpy.
31253 (fold_builtin_2): Adjust fold_builtin_strcat caller.
31254 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
31256 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
31258 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
31259 for SImode_address_operand operands, having only a REG argument.
31261 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
31263 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
31264 loader name using mbig-endian.
31265 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
31267 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
31269 * doc/invoke.texi (-march): Clarify documentation for AArch64.
31270 (-mtune): Likewise.
31273 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
31275 * config/aarch64/aarch64-protos.h
31276 (aarch64_cannot_change_mode_class_ptr): Declare.
31277 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
31278 aarch64_cannot_change_mode_class_ptr): New.
31279 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
31280 backend hook aarch64_cannot_change_mode_class.
31282 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
31284 * common/config/aarch64/aarch64-common.c
31285 (aarch64_handle_option): Don't handle any option order logic here.
31286 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
31287 selected_cpu, warn on architecture version mismatch.
31288 (aarch64_override_options): Fix parsing order for option strings.
31290 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
31291 Iain Sandoe <iain@codesourcery.com>
31294 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
31295 warning. Amend comment to reflect current functionality.
31297 2014-01-20 Richard Biener <rguenther@suse.de>
31299 PR middle-end/59860
31300 * builtins.c (fold_builtin_strcat): Remove case better handled
31301 by tree-ssa-strlen.c.
31303 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
31305 * config/aarch64/aarch64.opt
31306 (mcpu, march, mtune): Make case-insensitive.
31308 2014-01-20 Jakub Jelinek <jakub@redhat.com>
31311 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
31312 if operands[1] is a REG or ZERO_EXTEND of a REG.
31314 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
31316 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
31318 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
31320 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
31321 long non-pic millicode calls.
31323 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
31325 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
31327 2014-01-19 Kito Cheng <kito@0xlab.org>
31329 * builtins.c (expand_movstr): Check movstr expand done or fail.
31331 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
31332 H.J. Lu <hongjiu.lu@intel.com>
31335 * config/i386/i386.md (*lea<mode>): Zero-extend return register
31336 to DImode for zero-extended addresses.
31338 2014-01-19 Jakub Jelinek <jakub@redhat.com>
31340 PR rtl-optimization/57763
31341 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
31342 on the new indirect jump_insn and increment LABEL_NUSES (label).
31344 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
31348 * config.gcc (x86_archs): New variable.
31349 (x86_64_archs): Likewise.
31350 (x86_cpus): Likewise.
31351 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
31352 --with-arch/--with-cpu= options.
31353 Support --with-arch=/--with-cpu={nehalem,westmere,
31354 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
31356 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
31358 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
31359 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
31361 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
31363 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
31365 2014-01-18 Jakub Jelinek <jakub@redhat.com>
31368 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
31369 clear cpp_get_options (parse_in)->warn_unused_macros for
31370 ix86_target_macros_internal with cpp_define.
31372 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
31374 * jump.c (delete_related_insns): Keep (use (insn))s.
31375 * reorg.c (redundant_insn): Check for barriers too.
31377 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
31379 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
31381 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
31383 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
31384 call to $$dyncall when TARGET_LONG_CALLS is true.
31386 2014-01-17 Jeff Law <law@redhat.com>
31388 * ree.c (combine_set_extension): Temporarily disable test for
31389 changing number of hard registers.
31391 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
31393 PR middle-end/58125
31394 * ipa-inline-analysis.c (inline_free_summary):
31395 Do not free summary of aliases.
31397 2014-01-17 Jakub Jelinek <jakub@redhat.com>
31399 PR middle-end/59706
31400 * gimplify.c (gimplify_expr): Use create_tmp_var
31401 instead of create_tmp_var_raw. If cond doesn't have
31402 integral type, don't add the IFN_ANNOTATE builtin at all.
31404 2014-01-17 Martin Jambor <mjambor@suse.cz>
31407 * ipa-cp.c (prev_edge_clone): New variable.
31408 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
31409 Also resize prev_edge_clone vector.
31410 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
31411 (ipcp_edge_removal_hook): New function.
31412 (ipcp_driver): Register ipcp_edge_removal_hook.
31414 2014-01-17 Andrew Pinski <apinski@cavium.com>
31415 Steve Ellcey <sellcey@mips.com>
31418 * config/mips/mips.c (mips_print_operand): Check operand mode instead
31421 2014-01-17 Jeff Law <law@redhat.com>
31423 PR middle-end/57904
31424 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
31425 so that pass_ccp runs first.
31427 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
31429 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
31430 (ix86_adjust_cost): Use !TARGET_XXX.
31431 (do_reorder_for_imul): Likewise.
31432 (swap_top_of_ready_list): Likewise.
31433 (ix86_sched_reorder): Likewise.
31435 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
31437 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
31438 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
31439 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
31440 (intel_memset): New. Duplicate slm_memset.
31441 (intel_cost): New. Duplicate slm_cost.
31442 (m_INTEL): New macro.
31443 (processor_target_table): Add "intel".
31444 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
31445 with PROCESSOR_INTEL for "intel".
31446 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
31447 PROCESSOR_SILVERMONT.
31448 (ix86_issue_rate): Likewise.
31449 (ix86_adjust_cost): Likewise.
31450 (ia32_multipass_dfa_lookahead): Likewise.
31451 (swap_top_of_ready_list): Likewise.
31452 (ix86_sched_reorder): Likewise.
31453 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
31454 instead of TARGET_OPT_AGU.
31455 * config/i386/i386.h (TARGET_INTEL): New.
31456 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
31457 (processor_type): Add PROCESSOR_INTEL.
31458 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
31459 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
31461 2014-01-17 Marek Polacek <polacek@redhat.com>
31464 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
31467 2014-01-17 Richard Biener <rguenther@suse.de>
31469 PR tree-optimization/46590
31470 * opts.c (default_options_table): Add entries for
31471 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
31472 all enabled at -O1 but not for -Og.
31473 * common.opt (fbranch-count-reg): Remove Init(1).
31474 (fmove-loop-invariants): Likewise.
31475 (ftree-pta): Likewise.
31477 2014-01-17 Jakub Jelinek <jakub@redhat.com>
31479 * config/i386/i386.c (ix86_data_alignment): For compatibility with
31480 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
31481 decls to at least the GCC 4.8 used alignments.
31484 * tree-nested.c (convert_nonlocal_reference_stmt,
31485 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
31486 of GIMPLE_BIND stmts, adjust associated decls.
31488 2014-01-17 Richard Biener <rguenther@suse.de>
31490 PR tree-optimization/46590
31491 * vec.h (vec<>::bseach): New member function implementing
31492 binary search according to C89 bsearch.
31493 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
31494 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
31495 bitmap pointer again. Make accesses_in_loop a flat array.
31496 (mem_ref_obstack): New global.
31497 (outermost_indep_loop): Adjust for mem_ref->stored changes.
31498 (mark_ref_stored): Likewise.
31499 (ref_indep_loop_p_2): Likewise.
31500 (set_ref_stored_in_loop): New helper function.
31501 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
31502 (memref_free): Adjust.
31503 (record_mem_ref_loc): Simplify.
31504 (gather_mem_refs_stmt): Adjust.
31505 (sort_locs_in_loop_postorder_cmp): New function.
31506 (analyze_memory_references): Sort accesses_in_loop after
31507 loop postorder number.
31508 (find_ref_loc_in_loop_cmp): New function.
31509 (for_all_locs_in_loop): Find relevant cluster of locs in
31510 accesses_in_loop and iterate without recursion.
31511 (execute_sm): Avoid uninit warning.
31512 (struct ref_always_accessed): Simplify.
31513 (ref_always_accessed::operator ()): Likewise.
31514 (ref_always_accessed_p): Likewise.
31515 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
31516 loop postorder numbers here.
31517 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
31520 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
31523 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
31524 on decls for which assemble_alias has been called.
31526 2014-01-17 Nick Clifton <nickc@redhat.com>
31528 * config/msp430/msp430.opt: (mcpu): New option.
31529 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
31530 (msp430_option_override): Parse target_cpu. If the MCU name
31531 matches a generic string, clear target_mcu.
31532 (msp430_attr): Allow numeric interrupt values up to 63.
31533 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
31534 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
31536 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
31538 * config/msp430/msp430.md (popm): Use %J rather than %I.
31539 (addsi3): Use msp430_nonimmediate_operand for operand 2.
31540 (addhi_cy_i): Use immediate_operand for operand 2.
31541 * doc/invoke.texi: Document -mcpu option.
31543 2014-01-17 Richard Biener <rguenther@suse.de>
31545 PR rtl-optimization/38518
31546 * df.h (df_analyze_loop): Declare.
31547 * df-core.c: Include cfgloop.h.
31548 (df_analyze_1): Split out main part of df_analyze.
31549 (df_analyze): Adjust.
31550 (loop_inverted_post_order_compute): New function.
31551 (loop_post_order_compute): Likewise.
31552 (df_analyze_loop): New function avoiding whole-function
31553 postorder computes.
31554 * loop-invariant.c (find_defs): Use df_analyze_loop.
31555 (find_invariants): Adjust.
31556 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
31558 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
31560 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
31561 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
31563 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
31565 * ipa-ref.c (ipa_remove_stmt_references): Fix references
31566 traversal when removing references.
31568 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
31571 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
31573 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
31575 PR middle-end/56791
31576 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
31577 pushing a reload for an autoinc when we had previously reloaded an
31578 inner part of the address.
31580 2014-01-16 Jakub Jelinek <jakub@redhat.com>
31582 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
31584 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
31585 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
31586 when not giving up or versioning for alias only because of
31588 (vect_analyze_data_ref_dependences): Set to true.
31589 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
31591 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
31592 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
31595 PR middle-end/58344
31596 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
31599 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
31600 operand 0 predicate for gathers, use a new pseudo as subtarget.
31602 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
31604 PR middle-end/59609
31605 * lra-constraints.c (process_alt_operands): Add printing debug info.
31606 Check absence of input/output reloads for matched operands too.
31608 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
31610 PR rtl-optimization/59835
31611 * ira.c (ira_init_register_move_cost): Increase cost for
31614 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
31616 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
31618 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
31621 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
31622 non-register objects. Use gen_(high/low)part more consistently.
31625 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
31628 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
31629 endian support, remove tests for WORDS_BIG_ENDIAN.
31630 (p8_mfvsrd_3_<mode>): Likewise.
31631 (reload_gpr_from_vsx<mode>): Likewise.
31632 (reload_gpr_from_vsxsf): Likewise.
31633 (p8_mfvsrd_4_disf): Likewise.
31635 2014-01-16 Richard Biener <rguenther@suse.de>
31637 PR rtl-optimization/46590
31638 * lcm.c (compute_antinout_edge): Use postorder iteration.
31639 (compute_laterin): Use inverted postorder iteration.
31641 2014-01-16 Nick Clifton <nickc@redhat.com>
31643 PR middle-end/28865
31644 * varasm.c (output_constant): Return the number of bytes actually
31646 (output_constructor_array_range): Update the field size with the
31647 number of bytes emitted by output_constant.
31648 (output_constructor_regular_field): Likewise. Also do not
31649 complain if the total number of bytes emitted is now greater
31650 than the expected fieldpos.
31651 * output.h (output_constant): Update prototype and descriptive comment.
31653 2014-01-16 Marek Polacek <polacek@redhat.com>
31655 PR middle-end/59827
31656 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
31657 it is error_mark_node.
31659 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
31661 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
31662 VALID_AVX256_REG_OR_OI_MODE.
31664 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
31666 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
31667 current procedure should be profiled.
31669 2014-01-15 Andrew Pinski <apinski@cavium.com>
31671 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
31672 of moving from/to the STACK_REG register class.
31674 2014-01-15 Richard Henderson <rth@redhat.com>
31677 * reginfo.c (global_regs_decl): Globalize.
31678 * rtl.h (global_regs_decl): Declare.
31679 * ira.c (do_reload): Diagnose frame_pointer_needed and it
31680 reserved via global_regs.
31682 2014-01-15 Teresa Johnson <tejohnson@google.com>
31684 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
31686 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
31688 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
31689 and vmulosh rather than call gen_vec_widen_smult_*.
31690 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
31691 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
31692 (vec_widen_smult_even_v16qi): Likewise.
31693 (vec_widen_umult_even_v8hi): Likewise.
31694 (vec_widen_smult_even_v8hi): Likewise.
31695 (vec_widen_umult_odd_v16qi): Likewise.
31696 (vec_widen_smult_odd_v16qi): Likewise.
31697 (vec_widen_umult_odd_v8hi): Likewise.
31698 (vec_widen_smult_odd_v8hi): Likewise.
31699 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
31700 vmuloub rather than call gen_vec_widen_umult_*.
31701 (vec_widen_umult_lo_v16qi): Likewise.
31702 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
31703 vmulosb rather than call gen_vec_widen_smult_*.
31704 (vec_widen_smult_lo_v16qi): Likewise.
31705 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
31706 rather than call gen_vec_widen_umult_*.
31707 (vec_widen_umult_lo_v8hi): Likewise.
31708 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
31709 rather than call gen_vec_widen_smult_*.
31710 (vec_widen_smult_lo_v8hi): Likewise.
31712 2014-01-15 Jeff Law <law@redhat.com>
31714 PR tree-optimization/59747
31715 * ree.c (find_and_remove_re): Properly handle case where a second
31716 eliminated extension requires widening a copy created for elimination
31717 of a prior extension.
31718 (combine_set_extension): Ensure that the number of hard regs needed
31719 for a destination register does not change when we widen it.
31721 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
31723 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
31724 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
31725 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
31726 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
31727 (avr-*-rtems*): Likewise.
31728 (bfin*-rtems*): Likewise.
31729 (moxie-*-rtems*): Likewise.
31730 (h8300-*-rtems*): Likewise.
31731 (i[34567]86-*-rtems*): Likewise.
31732 (lm32-*-rtems*): Likewise.
31733 (m32r-*-rtems*): Likewise.
31734 (m68k-*-rtems*): Likewise.
31735 (microblaze*-*-rtems*): Likewise.
31736 (mips*-*-rtems*): Likewise.
31737 (powerpc-*-rtems*): Likewise.
31738 (sh-*-rtems*): Likewise.
31739 (sparc-*-rtems*): Likewise.
31740 (sparc64-*-rtems*): Likewise.
31741 (v850-*-rtems*): Likewise.
31742 (m32c-*-rtems*): Likewise.
31744 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
31746 PR rtl-optimization/59511
31747 * ira.c (ira_init_register_move_cost): Use memory costs for some
31748 cases of register move cost calculations.
31749 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
31750 instead of BB frequency.
31751 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
31752 * lra-assigns.c (find_hard_regno_for): Ditto.
31754 2014-01-15 Richard Biener <rguenther@suse.de>
31756 PR tree-optimization/59822
31757 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
31758 (vectorizable_load): Use it to hoist defs of uses of invariant
31759 loads out of the loop.
31761 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
31762 Kugan Vivekanandarajah <kuganv@linaro.org>
31765 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
31768 2014-01-15 Richard Biener <rguenther@suse.de>
31770 PR rtl-optimization/59802
31771 * lcm.c (compute_available): Use inverted postorder to seed
31772 the initial worklist.
31774 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31777 * config/s390/s390.c (s390_preferred_reload_class): Don't return
31778 ADDR_REGS for invalid symrefs in non-PIC code.
31780 2014-01-15 Jakub Jelinek <jakub@redhat.com>
31783 * builtins.c (determine_block_size): Initialize *probable_max_size
31784 even if len_rtx is CONST_INT.
31786 2014-01-14 Andrew Pinski <apinski@cavium.com>
31788 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
31789 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
31790 (cortexa53_tunings): Likewise.
31791 (aarch64_sched_issue_rate): New function.
31792 (TARGET_SCHED_ISSUE_RATE): Define.
31794 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
31796 * ira-costs.c (find_costs_and_classes): Add missed
31797 ira_init_register_move_cost_if_necessary.
31799 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
31802 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
31804 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
31807 * config/i386/i386.c (type_natural_mode): Add a bool parameter
31808 to indicate if type is used for function return value. Warn ABI
31809 change if the vector mode isn't available for function return value.
31810 (ix86_function_arg_advance): Pass false to type_natural_mode.
31811 (ix86_function_arg): Likewise.
31812 (ix86_gimplify_va_arg): Likewise.
31813 (function_arg_32): Don't warn ABI change.
31814 (ix86_function_value): Pass true to type_natural_mode.
31815 (ix86_return_in_memory): Likewise.
31816 (ix86_struct_value_rtx): Removed.
31817 (TARGET_STRUCT_VALUE_RTX): Likewise.
31819 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
31821 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
31822 converting a conditional jump into a conditional return.
31824 2014-01-14 Richard Biener <rguenther@suse.de>
31826 PR tree-optimization/58921
31827 PR tree-optimization/59006
31828 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
31829 hoisting invariant stmts.
31830 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
31831 invariant loads on the preheader edge if possible.
31833 2014-01-14 Joey Ye <joey.ye@arm.com>
31835 * doc/plugin.texi (Building GCC plugins): Update to C++.
31837 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
31839 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
31840 (_mm_rcp28_round_ss): Ditto.
31841 (_mm_rsqrt28_round_sd): Ditto.
31842 (_mm_rsqrt28_round_ss): Ditto.
31843 (_mm_rcp28_sd): Ditto.
31844 (_mm_rcp28_ss): Ditto.
31845 (_mm_rsqrt28_sd): Ditto.
31846 (_mm_rsqrt28_ss): Ditto.
31847 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
31848 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
31849 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
31850 (IX86_BUILTIN_RCP28SD): Ditto.
31851 (IX86_BUILTIN_RCP28SS): Ditto.
31852 (IX86_BUILTIN_RSQRT28SD): Ditto.
31853 (IX86_BUILTIN_RSQRT28SS): Ditto.
31854 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
31855 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
31856 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
31857 (ix86_expand_special_args_builtin): Expand new FTYPE.
31858 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
31859 (srcp14<mode>): Make insn unary.
31860 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
31861 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
31862 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
31863 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
31864 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
31865 Fix rounding: make it SAE only.
31866 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
31868 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
31870 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
31871 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
31872 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
31873 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
31874 (round_saeonly_mask_scalar_operand4): Ditto.
31875 (round_saeonly_mask_scalar_op3): Ditto.
31876 (round_saeonly_mask_scalar_op4): Ditto.
31878 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31880 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
31881 Implement -maltivec=be for vec_insert and vec_extract.
31883 2014-01-10 DJ Delorie <dj@redhat.com>
31885 * config/msp430/msp430.md (call_internal): Don't allow memory
31886 references with SP as the base register.
31887 (call_value_internal): Likewise.
31888 * config/msp430/constraints.md (Yc): New. For memory references
31889 that don't use SP as a base register.
31891 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
31892 "an integer without a # prefix"
31893 * config/msp430/msp430.md (epilogue_helper): Use it.
31895 2014-01-13 Jakub Jelinek <jakub@redhat.com>
31898 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
31899 AVX512F gather builtins.
31900 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
31901 on gather decls with INTEGER_TYPE masktype.
31902 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
31903 directly into the builtin rather than hoisting it before loop.
31905 PR tree-optimization/59387
31906 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
31907 (scev_const_prop): If folded_casts and type has undefined overflow,
31908 use force_gimple_operand instead of force_gimple_operand_gsi and
31909 for each added stmt if it is assign with
31910 arith_code_with_undefined_signed_overflow, call
31911 rewrite_to_defined_overflow.
31912 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
31913 gimple-fold.h instead.
31914 (arith_code_with_undefined_signed_overflow,
31915 rewrite_to_defined_overflow): Moved to ...
31916 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
31917 rewrite_to_defined_overflow): ... here. No longer static.
31918 Include gimplify-me.h.
31919 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
31920 rewrite_to_defined_overflow): New prototypes.
31922 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31924 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
31926 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
31928 * builtins.c (get_object_alignment_2): Minor tweak.
31929 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
31931 2014-01-13 Christian Bruel <christian.bruel@st.com>
31933 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
31934 optimized non constant lengths.
31936 2014-01-13 Jakub Jelinek <jakub@redhat.com>
31939 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
31940 load as __atomic_load_N if possible.
31942 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
31944 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
31946 (rs6000_expand_builtin): Adjust call.
31948 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
31951 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
31952 * config/rs6000/rs6000.c: Include target-globals.h.
31953 (rs6000_set_current_function): Instead of doing target_reinit
31954 unconditionally, use save_target_globals_default_opts and
31955 restore_target_globals.
31957 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
31959 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
31960 (rs6000_expand_builtin): Handle mffs and mtfsf.
31961 (rs6000_init_builtins): Define mffs and mtfsf.
31962 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
31963 (rs6000_mffs): New pattern.
31964 (rs6000_mtfsf): New pattern.
31966 2014-01-11 Bin Cheng <bin.cheng@arm.com>
31968 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
31969 Start narrowing with START. Apply candidate-use pair
31970 and check overall cost in narrowing.
31971 (iv_ca_prune): Pass new argument.
31973 2014-01-10 Jeff Law <law@redhat.com>
31975 PR middle-end/59743
31976 * ree.c (combine_reaching_defs): Ensure the defining statement
31977 occurs before the extension when optimizing extensions with
31978 different source and destination hard registers.
31980 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
31983 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
31984 vtables into the type inheritance graph.
31986 2014-01-10 Jakub Jelinek <jakub@redhat.com>
31988 PR rtl-optimization/59754
31989 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
31990 modes in the REGNO != REGNO case.
31992 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31994 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
31996 2014-01-10 Jakub Jelinek <jakub@redhat.com>
31998 PR tree-optimization/59745
31999 * tree-predcom.c (tree_predictive_commoning_loop): Call
32000 free_affine_expand_cache if giving up because components is NULL.
32002 * target-globals.c (save_target_globals): Allocate < 4KB structs using
32003 GC in payload of target_globals struct instead of allocating them on
32004 the heap and the larger structs separately using GC.
32005 * target-globals.h (struct target_globals): Make regs, hard_regs,
32006 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
32007 of GTY((skip)) and change type to void *.
32008 (reset_target_globals): Cast loads from those fields to corresponding
32011 2014-01-10 Steve Ellcey <sellcey@mips.com>
32014 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
32015 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
32016 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
32018 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
32021 * aarch64-modes.def (CC_Zmode): New flags mode.
32022 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
32023 represents an equality.
32024 (aarch64_get_condition_code): Handle CC_Zmode.
32025 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
32027 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32029 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
32030 extraction in good case.
32032 2014-01-10 Richard Biener <rguenther@suse.de>
32034 PR tree-optimization/59374
32035 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
32036 checking after SLP discovery. Mark stmts not participating
32037 in any SLP instance properly.
32039 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32041 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
32042 when handling a SET rtx.
32044 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32046 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
32047 (cortex-a57): Likewise.
32048 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
32050 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32052 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
32053 non-iwmmxt builtins.
32055 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
32059 * ipa-devirt.c record_target_from_binfo): Take as argument
32060 stack of binfos and lookup matching one for virtual inheritance.
32061 (possible_polymorphic_call_targets_1): Update.
32063 2014-01-10 Huacai Chen <chenhc@lemote.com>
32065 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
32066 kernel strings for Loongson-2E/2F/3A.
32068 2014-01-10 Jakub Jelinek <jakub@redhat.com>
32070 PR middle-end/59670
32071 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
32072 is_gimple_call before calling gimple_call_internal_p.
32074 2014-01-09 Steve Ellcey <sellcey@mips.com>
32076 * Makefile.in (TREE_FLOW_H): Remove.
32077 (TREE_SSA_H): Add file names from tree-flow.h.
32078 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
32079 * tree.h: Remove tree-flow.h reference.
32080 * hash-table.h: Remove tree-flow.h reference.
32081 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
32082 reference with tree-ssa-loop.h.
32084 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32086 * doc/invoke.texi: Add -maltivec={be,le} options, and document
32087 default element-order behavior for -maltivec.
32088 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
32089 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
32090 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
32091 when targeting big endian, at least for now.
32092 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
32094 2014-01-09 Jakub Jelinek <jakub@redhat.com>
32096 PR middle-end/47735
32097 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
32098 var satisfies use_register_for_decl, just take into account type
32099 alignment, rather than decl alignment.
32101 PR tree-optimization/59622
32102 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
32103 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
32104 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
32105 Don't devirtualize for inplace at all. For targets.length () == 1,
32106 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
32108 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
32110 * config/i386/i386.md (cpu): Remove the unused btver1.
32112 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
32114 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
32116 2014-01-09 Jakub Jelinek <jakub@redhat.com>
32119 * tree-core.h (struct target_globals): New forward declaration.
32120 (struct tree_target_option): Add globals field.
32121 * tree.h (TREE_TARGET_GLOBALS): Define.
32122 (prepare_target_option_nodes_for_pch): New prototype.
32123 * target-globals.h (struct target_globals): Define even if
32124 !SWITCHABLE_TARGET.
32125 * tree.c (prepare_target_option_node_for_pch,
32126 prepare_target_option_nodes_for_pch): New functions.
32127 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
32128 * config/i386/i386.c: Include target-globals.h.
32129 (ix86_set_current_function): Instead of doing target_reinit
32130 unconditionally, use save_target_globals_default_opts and
32131 restore_target_globals.
32133 2014-01-09 Richard Biener <rguenther@suse.de>
32135 PR tree-optimization/59715
32136 * tree-cfg.h (split_critical_edges): Declare.
32137 * tree-cfg.c (split_critical_edges): Export.
32138 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
32140 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
32142 * cfgexpand.c (expand_stack_vars): Optionally disable
32143 asan stack protection.
32144 (expand_used_vars): Likewise.
32145 (partition_stack_vars): Likewise.
32146 * asan.c (asan_emit_stack_protection): Optionally disable
32147 after return stack usage.
32148 (instrument_derefs): Optionally disable memory access instrumentation.
32149 (instrument_builtin_call): Likewise.
32150 (instrument_strlen_call): Likewise.
32151 (asan_protect_global): Optionally disable global variables protection.
32152 * doc/invoke.texi: Added doc for new options.
32153 * params.def: Added new options.
32154 * params.h: Likewise.
32156 2014-01-09 Jakub Jelinek <jakub@redhat.com>
32158 PR rtl-optimization/59724
32159 * ifcvt.c (cond_exec_process_if_block): Don't call
32160 flow_find_head_matching_sequence with 0 longest_match.
32161 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
32162 non-active insns if !stop_after.
32163 (try_head_merge_bb): Revert 2014-01-07 changes.
32165 2014-01-08 Jeff Law <law@redhat.com>
32167 * ree.c (get_sub_rtx): New function, extracted from...
32168 (merge_def_and_ext): Here.
32169 (combine_reaching_defs): Use get_sub_rtx.
32171 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
32173 * cgraph.h (varpool_variable_node): Do not choke on null node.
32175 2014-01-08 Catherine Moore <clm@codesourcery.com>
32177 * config/mips/mips.md (simple_return): Attempt to use JRC
32179 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
32181 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
32183 PR rtl-optimization/59137
32184 * reorg.c (steal_delay_list_from_target): Call update_block for
32186 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
32188 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32190 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
32191 two duplicate entries.
32193 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
32196 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
32198 * config/mips/mips.c (mips_truncated_op_cost): New function.
32199 (mips_rtx_costs): Adjust test for BADDU.
32200 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
32202 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
32204 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
32205 (*baddu_si): ...this new pattern.
32207 2014-01-08 Jakub Jelinek <jakub@redhat.com>
32210 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
32212 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
32214 PR middle-end/57748
32215 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
32217 (expand_expr, expand_normal): Adjust.
32218 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
32219 inner_reference_p. Use inner_reference_p to expand inner references.
32220 (store_expr): Adjust.
32221 * cfgexpand.c (expand_call_stmt): Adjust.
32223 2014-01-08 Rong Xu <xur@google.com>
32225 * gcov-io.c (gcov_var): Move from gcov-io.h.
32226 (gcov_position): Ditto.
32227 (gcov_is_error): Ditto.
32228 (gcov_rewrite): Ditto.
32229 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
32230 only part to libgcc/libgcov.h.
32232 2014-01-08 Marek Polacek <polacek@redhat.com>
32234 PR middle-end/59669
32235 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
32237 2014-01-08 Marek Polacek <polacek@redhat.com>
32240 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
32242 2014-01-08 Jakub Jelinek <jakub@redhat.com>
32244 PR rtl-optimization/59649
32245 * stor-layout.c (get_mode_bounds): For BImode return
32246 0 and STORE_FLAG_VALUE.
32248 2014-01-08 Richard Biener <rguenther@suse.de>
32250 PR middle-end/59630
32251 * gimple.h (is_gimple_builtin_call): Remove.
32252 (gimple_builtin_call_types_compatible_p): New.
32253 (gimple_call_builtin_p): New overload.
32254 * gimple.c (is_gimple_builtin_call): Remove.
32255 (validate_call): Rename to ...
32256 (gimple_builtin_call_types_compatible_p): ... this and export. Also
32257 check return types.
32258 (validate_type): New static function.
32259 (gimple_call_builtin_p): New overload and adjust.
32260 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
32261 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
32262 (gimple_fold_stmt_to_constant_1): Likewise.
32263 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
32265 2014-01-08 Richard Biener <rguenther@suse.de>
32267 PR middle-end/59471
32268 * gimplify.c (gimplify_expr): Gimplify register-register type
32269 VIEW_CONVERT_EXPRs to separate stmts.
32271 2014-01-07 Jeff Law <law@redhat.com>
32273 PR middle-end/53623
32274 * ree.c (combine_set_extension): Handle case where source
32275 and destination registers in an extension insn are different.
32276 (combine_reaching_defs): Allow source and destination registers
32277 in extension to be different under limited circumstances.
32278 (add_removable_extension): Remove restriction that the
32279 source and destination registers in the extension are the same.
32280 (find_and_remove_re): Emit a copy from the extension's
32281 destination to its source after the defining insn if
32282 the source and destination registers are different.
32284 PR middle-end/59285
32285 * ifcvt.c (merge_if_block): If we are merging a block with more than
32286 one successor with a block with no successors, remove any BARRIER
32287 after the second block.
32289 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
32291 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
32293 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
32296 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
32297 for 14-bit register offsets when INT14_OK_STRICT is false.
32299 2014-01-07 Roland Stigge <stigge@antcom.de>
32300 Michael Meissner <meissner@linux.vnet.ibm.com>
32303 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
32304 Only check TFmode for SPE constants. Don't check TImode or TDmode.
32306 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
32308 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
32311 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
32313 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
32314 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
32315 rtx is const0_rtx or not.
32317 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
32320 * target-globals.c (save_target_globals): Remove this_fn_optab
32322 * toplev.c: Include optabs.h.
32323 (target_reinit): Temporarily restore the global options if another
32324 set of options are in force.
32326 2014-01-07 Jakub Jelinek <jakub@redhat.com>
32328 PR rtl-optimization/58668
32329 * cfgcleanup.c (flow_find_cross_jump): Don't count
32330 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
32331 to determine what is counted.
32332 (flow_find_head_matching_sequence): Use active_insn_p to determine
32334 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
32336 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
32337 determine what is counted.
32339 PR tree-optimization/59643
32340 * tree-predcom.c (split_data_refs_to_components): If one dr is
32341 read and one write, determine_offset fails and the write isn't
32342 in the bad component, just put the read into the bad component.
32344 2014-01-07 Mike Stump <mikestump@comcast.net>
32345 Jakub Jelinek <jakub@redhat.com>
32348 * tree-core.h (struct tree_optimization_option): Change optabs
32349 type from unsigned char * to void *.
32350 * optabs.c (init_tree_optimization_optabs): Adjust
32351 TREE_OPTIMIZATION_OPTABS initialization.
32353 2014-01-06 Jakub Jelinek <jakub@redhat.com>
32356 * config/i386/i386.h (struct machine_function): Add
32357 no_drap_save_restore field.
32358 * config/i386/i386.c (ix86_save_reg): Use
32359 !cfun->machine->no_drap_save_restore instead of
32360 crtl->stack_realign_needed.
32361 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
32362 this function clears frame_pointer_needed. Set
32363 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
32364 and DRAP reg is needed.
32366 2014-01-06 Marek Polacek <polacek@redhat.com>
32369 * doc/implement-c.texi: Mention that other integer types are
32370 permitted as bit-field types in strictly conforming mode.
32372 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
32374 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
32375 is newly allocated.
32377 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
32379 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
32381 2014-01-06 Martin Jambor <mjambor@suse.cz>
32384 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
32386 * ipa-prop.c (ipa_print_node_params): Fix indentation.
32388 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
32392 * var-tracking.c (add_stores): Preserve the value of the source even if
32393 we don't record the store.
32395 2014-01-06 Terry Guo <terry.guo@arm.com>
32397 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
32399 2014-01-05 Iain Sandoe <iain@codesourcery.com>
32402 * config/darwin.c (darwin_function_section): Adjust return values to
32403 correspond to optimisation changes made in r206070.
32405 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
32407 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
32408 from prefetch_block tune setting.
32409 (nocona_cost): Correct size of prefetch block to 64.
32411 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
32413 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
32414 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
32415 used to save the static chain register in the computation of the offset
32416 from which the FP registers need to be restored.
32418 2014-01-04 Jakub Jelinek <jakub@redhat.com>
32420 PR tree-optimization/59519
32421 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
32422 ICE if get_current_def (current_new_name) is already non-NULL, as long
32423 as it is a phi result of some other phi in *new_exit_bb that has
32426 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
32427 or vmovdqu* for misaligned_operand.
32428 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
32429 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
32430 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
32431 aligned_mem for AVX512F masked aligned load and store builtins and for
32432 non-temporal moves.
32434 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
32436 PR tree-optimization/59651
32437 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
32438 Address range for negative step should be added by TYPE_SIZE_UNIT.
32440 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
32442 * config/m68k/m68k.c (handle_move_double): Handle pushes with
32443 overlapping registers also for registers other than the stack pointer.
32445 2014-01-03 Marek Polacek <polacek@redhat.com>
32448 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
32451 2014-01-03 Jakub Jelinek <jakub@redhat.com>
32454 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
32457 * config/i386/i386.md (MODE_SIZE): New mode attribute.
32458 (push splitter): Use <P:MODE_SIZE> instead of
32459 GET_MODE_SIZE (<P:MODE>mode).
32460 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
32461 (mov -1, reg peephole2): Likewise.
32462 * config/i386/sse.md (*mov<mode>_internal,
32463 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
32464 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
32465 *<code><mode>3, *andnot<mode>3<mask_name>,
32466 <mask_codefor><code><mode>3<mask_name>): Likewise.
32467 * config/i386/subst.md (mask_mode512bit_condition,
32468 sd_mask_mode512bit_condition): Likewise.
32470 2014-01-02 Xinliang David Li <davidxl@google.com>
32472 PR tree-optimization/59303
32473 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
32474 (dump_predicates): Better output format.
32475 (pred_equal_p): New function.
32476 (is_neq_relop_p): Ditto.
32477 (is_neq_zero_form_p): Ditto.
32478 (pred_expr_equal_p): Ditto.
32479 (pred_neg_p): Ditto.
32480 (simplify_pred): Ditto.
32481 (simplify_preds_2): Ditto.
32482 (simplify_preds_3): Ditto.
32483 (simplify_preds_4): Ditto.
32484 (simplify_preds): Ditto.
32485 (push_pred): Ditto.
32486 (push_to_worklist): Ditto.
32487 (get_pred_info_from_cmp): Ditto.
32488 (is_degenerated_phi): Ditto.
32489 (normalize_one_pred_1): Ditto.
32490 (normalize_one_pred): Ditto.
32491 (normalize_one_pred_chain): Ditto.
32492 (normalize_preds): Ditto.
32493 (normalize_cond_1): Remove function.
32494 (normalize_cond): Ditto.
32495 (is_gcond_subset_of): Ditto.
32496 (is_subset_of_any): Ditto.
32497 (is_or_set_subset_of): Ditto.
32498 (is_and_set_subset_of): Ditto.
32499 (is_norm_cond_subset_of): Ditto.
32500 (pred_chain_length_cmp): Ditto.
32501 (convert_control_dep_chain_into_preds): Type change.
32502 (find_predicates): Ditto.
32503 (find_def_preds): Ditto.
32504 (destroy_predicates_vecs): Ditto.
32505 (find_matching_predicates_in_rest_chains): Ditto.
32506 (use_pred_not_overlap_with_undef_path_pred): Ditto.
32507 (is_pred_expr_subset): Ditto.
32508 (is_pred_chain_subset_of): Ditto.
32509 (is_included_in): Ditto.
32510 (is_superset_of): Ditto.
32512 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
32514 Update copyright years.
32516 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
32518 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
32519 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
32520 config/arc/arc.md, config/arc/arc.opt,
32521 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
32522 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
32523 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
32524 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
32525 config/linux-protos.h, config/linux.c, config/winnt-c.c,
32526 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
32527 vtable-verify.c, vtable-verify.h: Use the standard form for the
32530 2014-01-02 Tobias Burnus <burnus@net-b.de>
32532 * gcc.c (process_command): Update copyright notice dates.
32533 * gcov-dump.c: Ditto.
32535 * doc/cpp.texi: Bump @copying's copyright year.
32536 * doc/cppinternals.texi: Ditto.
32537 * doc/gcc.texi: Ditto.
32538 * doc/gccint.texi: Ditto.
32539 * doc/gcov.texi: Ditto.
32540 * doc/install.texi: Ditto.
32541 * doc/invoke.texi: Ditto.
32543 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
32545 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
32547 2014-01-01 Jakub Jelinek <jakub@redhat.com>
32549 * config/i386/sse.md (*mov<mode>_internal): Guard
32550 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
32552 PR rtl-optimization/59647
32553 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
32554 new_rtx into UNSIGNED_FLOAT rtxes.
32556 Copyright (C) 2014 Free Software Foundation, Inc.
32558 Copying and distribution of this file, with or without modification,
32559 are permitted in any medium without royalty provided the copyright
32560 notice and this notice are preserved.