1 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
3 * config/aarch64/aarch64.c
4 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
5 (thunderx_tunings): Likewise.
6 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
7 (thunderx2t99_tunings): Likewise.
8 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
9 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
11 2019-12-04 Richard Biener <rguenther@suse.de>
13 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
14 empty CTOR and memset partial-def registering. Take advantage
15 of fancy offset analysis in memset handling.
17 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
19 * fold-const.c (native_encode_vector_part): Handle
20 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
21 (native_decode_vector_tree): Delete, moving the bulk of the code to...
22 (native_interpret_vector_part): ...this new function. Use a pointer
23 and length instead of a vec<> and start index.
24 (native_interpret_vector): Use native_interpret_vector_part.
25 (fold_view_convert_vector_encoding): Likewise.
27 2019-12-04 Richard Biener <rguenther@suse.de>
29 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
30 non-constant defs in the most trivial way.
31 (vn_reference_lookup_3): Also push down SSA partial defs.
33 2019-12-04 Martin Liska <mliska@suse.cz>
35 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
36 Initialize count of newly created BB.
38 2019-12-04 Jakub Jelinek <jakub@redhat.com>
40 PR tree-optimization/92734
41 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
42 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
44 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
47 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
48 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
50 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
52 * ipa-fnsummary.c: Include tree-into-ssa.h.
53 (compute_fn_summary): Call update_ssa.
55 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
57 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
58 is set only for symbol in comdat group.
59 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
61 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
63 * cgraph.c: Include tree-into-ssa.h
64 (cgraph_node::get_body): Call update_ssa.
65 * cgraphunit.c (cgraph_node::expand): Likewise.
66 * lto-streamer-in.c (input_function): Do not call update_ssa.
68 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
70 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
71 an array element size if array_element_size is already an invariant.
72 Similarly don't gimplify and install a field offset if
73 component_ref_field_offset is already an invariant.
75 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
77 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
78 with POLY_INT_CST size is made to a fixed-size object, force the
79 object to live in memory.
81 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
83 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
86 2019-12-03 Richard Biener <rguenther@suse.de>
88 PR tree-optimization/92758
89 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
90 operation on uniform vectors.
92 2019-12-03 Richard Biener <rguenther@suse.de>
94 PR tree-optimization/92645
95 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
96 from or to a properly aligned register variable.
98 2019-12-03 Matthias Klose <doko@ubuntu.com>
100 * Makefile.in (SOURCES): Add doc/lto-dump.1.
101 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
102 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
104 2019-12-03 Richard Biener <rguenther@suse.de>
106 PR tree-optimization/92751
107 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
108 when a clobber ends up in the partial-def vector.
109 (vn_reference_lookup_3): Let clobbers be handled by the
110 assignment from CTOR handling.
112 2019-12-03 Jakub Jelinek <jakub@redhat.com>
114 PR tree-optimization/92734
115 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
116 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
119 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
120 Jakub Jelinek <jakub@redhat.com>
123 * config/i386/i386.md (peephole2 for *swap<mode>): Use
124 general_reg_operand predicates instead of register_operand.
126 2019-12-03 Richard Biener <rguenther@suse.de>
128 PR tree-optimization/92645
129 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
130 a full def of a vector via a BIT_INSERT_EXPR.
132 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
134 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
136 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
139 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
142 * fold-const.c (fold_convertible_p): Check vector types more
145 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
147 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
148 (aarch64_expand_mov_immediate): Use it when attempting to measure
149 the length of an SVE vector.
150 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
153 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
155 * config/aarch64/aarch64-sve-builtins.h
156 (gimple_folder::force_vector): Declare.
157 * config/aarch64/aarch64-sve-builtins.cc
158 (gimple_folder::force_vector): New function.
159 * config/aarch64/aarch64-sve-builtins-base.cc
160 (svcmp_impl::fold): Likewise.
161 (svdup_impl::fold): Handle svdup_z too.
163 2019-12-02 Martin Liska <mliska@suse.cz>
165 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
167 (debug_tree_odr_name): New.
168 * ipa-utils.h (get_odr_name_for_type): New.
170 2019-12-02 Richard Biener <rguenther@suse.de>
172 PR tree-optimization/92742
173 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
174 touch the def-type but verify it is consistent with the
177 2019-12-02 Jakub Jelinek <jakub@redhat.com>
179 PR tree-optimization/92712
180 * match.pd ((A * B) +- A -> (B +- 1) * A,
181 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
182 even when we don't know anything about range of A, but do know
183 something about range of B and the simplification won't introduce
186 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
189 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
190 (ipa-cp-min-recursive-probability): Likewise.
191 * params.opt (ipa-cp-max-recursive-depth): New.
192 (ipa-cp-min-recursive-probability): Likewise.
193 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
195 (self_recursively_generated_p): New function.
196 (get_val_across_arith_op): Likewise.
197 (propagate_vals_across_arith_jfunc): Add constant propagation for
198 self-recursive function.
199 (incorporate_penalties): Do not penalize pure self-recursive function.
200 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
201 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
202 (get_info_about_necessary_edges): Relax hotness check for edge to
203 self-recursive function.
204 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
206 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
210 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
211 objects of flexible types to be small if they have internal linkage
212 or are declared extern.
213 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
214 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
215 instead of the size of the object initializer.
216 * tree.c (flexible_array_type_p): Move from C front end, and
217 generalize to handle fields in non-C structures.
218 * tree.h (flexible_array_type_p): Declare.
220 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
222 * profile-count.h (profile_count::operator<): Use IPA value for
224 (profile_count::operator>): Likewise.
225 (profile_count::operator<=): Likewise.
226 (profile_count::operator>=): Likewise.
227 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
229 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
231 * ipa-inline.c (compute_max_insns): Return int64_t.
232 (inline_small_functions): Simplify.
234 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
236 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
239 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
241 * cgraph.h (symtab_node): Add symver flag.
242 * cgraphunit.c (process_symver_attribute): New.
243 (process_common_attributes): Use process_symver_attribute.
244 * lto-cgraph.c (lto_output_node): Stream symver.
245 (lto_output_varpool_node): Stream symver.
246 (input_overwrite_node): Stream symver.
247 (input_varpool_node): Stream symver.
248 * output.h (do_assemble_symver): Decalre.
249 * symtab.c (symtab_node::dump_base): Dump symver.
250 (symtab_node::verify_base): Verify symver.
251 (symtab_node::resolve_alias): Handle symver.
252 * varasm.c (do_assemble_symver): New function.
253 * varpool.c (varpool_node::assemble_aliases): Use it.
254 * doc/extend.texi: (symver attribute): Document.
255 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
257 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
259 * target.h (type_context_kind): New enum.
260 (verify_type_context): Declare.
261 * target.def (verify_type_context): New target hook.
262 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
263 * doc/tm.texi: Regenerate.
264 * tree.c (verify_type_context): New function.
265 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
267 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
269 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
270 (TARGET_VERIFY_TYPE_CONTEXT): Define.
272 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
274 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
275 * cgraph.h (cgraph_node): Add unit_id and
276 merged_extern_inline.
277 (symbol_table): Add max_unit.
278 (symbol_table::symbol_table): Initialize it.
279 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
280 merged_comdat, merged_extern_inline.
281 (cgraph_node::create_clone): Likewise.
282 (cgraph_node::create_version_clone): Likewise.
283 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
285 * ipa-fnsummary.h (cross_module_call_p): New inline function.
286 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
287 * ipa-inline.c (inline_small_functions): Likewise.
288 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
289 copy merged_comdat and merged_extern_inline.
290 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
291 merged_extern_inline and unit_id.
292 (input_overwrite_node): Stream in these.
293 (input_cgraph_1): Set unit_base.
294 * lto-streamer.h (lto_file_decl_data): Add unit_base.
295 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
297 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
299 * gcc.c (process_command): Only warn about an ineffective `-x'
300 option if any input files have actually been supplied.
302 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
304 * doc/install.texi (Options specification): Remove the list of
305 target library subdirectories supporting
306 `--enable-version-specific-runtime-libs'. Document defaults for
309 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
311 PR rtl-optimization/92283
312 * lra.c (lra): Update reg notes after inheritance sub-pass and
313 before constraint sub-pass.
315 2019-11-29 Richard Biener <rguenther@suse.de>
317 PR tree-optimization/91003
318 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
319 operand number, avoid handling the non-condition operands of
320 COND_EXPRs as comparisons.
321 (vect_get_constant_vectors): Pass down the operand number.
322 (vect_get_slp_defs): Likewise.
324 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
326 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
327 generic_expr_could_trap_p to check if the condition of COND_EXPR or
328 VEC_COND_EXPR can trap.
330 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
332 PR tree-optimization/92677
333 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
334 to zero when dissolving a group of strided accesses.
336 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
338 PR tree-optimization/92596
339 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
341 (vectorizable_operation): Likewise, instead of relying on
342 vect_get_mask_type_for_stmt to do this.
343 (vect_get_vector_types_for_stmt): Always return a vector type
344 immediately, rather than deferring the choice for boolean results.
345 Use a vector mask type instead of a normal vector if
346 vect_use_mask_type_p.
347 (vect_get_mask_type_for_stmt): Delete.
348 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
349 mask_producers argument and special boolean_type_node handling.
350 (vect_determine_vf_for_stmt): Remove mask_producers argument and
351 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
352 (vect_determine_vectorization_factor): Update call accordingly.
353 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
354 boolean_type_node handling.
355 (vect_slp_analyze_node_operations_1): Likewise.
357 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
359 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
360 (vect_use_mask_type_p): New function.
361 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
362 mask precision to the pattern statement.
363 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
364 and use it to initialize the new stmt's mask precision.
365 (search_type_for_mask_1): Delete.
366 (search_type_for_mask): Replace with...
367 (integer_type_for_mask): ...this new function. Use the information
368 cached in the stmt_vec_info.
369 (vect_recog_bool_pattern): Update accordingly.
370 (build_mask_conversion): Pass the scalar type associated with the
371 mask type to append_pattern_def_seq.
372 (vect_recog_mask_conversion_pattern): Likewise. Call
373 integer_type_for_mask instead of search_type_for_mask.
374 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
375 of search_type_for_mask.
376 (possible_vector_mask_operation_p): New function.
377 (vect_determine_mask_precision): Likewise.
378 (vect_determine_stmt_precisions): Call it.
380 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
382 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
383 the slp_tree parameter with a group size parameter.
384 (vect_get_mask_type_for_stmt): Likewise.
385 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
386 (vect_get_mask_type_for_stmt): Likewise.
387 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
390 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
392 * tree-vect-stmts.c (vectorizable_operation): Punt early
393 on codes that are handled elsewhere.
395 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
397 * doc/sourcebuild.texi (vect_bool_cmp): Document.
398 * tree-vect-patterns.c (search_type_for_mask_1): If neither
399 operand to a boolean comparison is a natural vector mask,
400 handle both operands like normal integers instead.
402 2019-11-29 Richard Biener <rguenther@suse.de>
404 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
405 out early for too large objects.
407 2019-11-29 Martin Jambor <mjambor@suse.cz>
410 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
411 the summary only if the summary exists.
412 (find_more_scalar_values_for_callers_subset): Check node_dead in
413 the summary only if the summary exists.
414 (ipcp_store_bits_results): Ignore nodes without lattices.
415 (ipcp_store_vr_results): Likewise.
416 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
417 header files required by them.
418 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
420 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
422 PR tree-optimization/92710
423 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
424 vector mask arguments.
426 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
428 * profile-count.c (profile_count::to_cgraph_frequency,
429 profile_count::to_sreal_scale): Check for compaibility of counts.
430 * profile-count.h (compatible_p): Make public; add checking for
431 global0 versus global types.
432 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
434 2019-11-29 Richard Biener <rguenther@suse.de>
436 PR tree-optimization/92715
437 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
438 out for uniform vectors and source vectors with less elements
439 than the destination.
441 2019-11-29 Martin Liska <mliska@suse.cz>
444 * ipa-devirt.c (types_same_for_odr): Check for existence
447 2019-11-29 Richard Biener <rguenther@suse.de>
449 PR tree-optimization/92704
450 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
451 in loops performing only loads.
453 2019-11-29 Julian Brown <julian@codesourcery.com>
455 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
456 BT_DFLOAT128_PTR) Remove.
457 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
458 TI_DFLOAT128_PTR_TYPE): Remove.
459 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
460 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
461 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
462 dfloat128_ptr_type_node): Remove macros.
464 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
466 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
468 (*movdi_internal64): Ditto.
470 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
473 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
474 indexed_or_indirect_operand to be memory_operand.
475 (bswap<mode>2_store for HSI): Ditto.
476 (bswapdi2_load): Ditto.
477 (bswapdi2_store): Ditto.
479 2019-11-28 Martin Liska <mliska@suse.cz>
482 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
483 headers for translation.
485 2019-11-28 Martin Liska <mliska@suse.cz>
488 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
491 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
493 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
496 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
498 * profile-count.c (profile_count::combine_with_ipa_count): Return
499 uninitialized count if called on ininitialized count.
501 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
503 * ipa-inline-transform.c (inline_transform): Scale profile before
506 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
508 * profile-count.h (profile_count::max): Work on profiles of different
510 (profile_count::apply_scale): Be sure that ret is not local or global0
511 type if num is global.
513 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
515 * profile-count.h (profile_count::max): Work on profiles of different
517 (profile_count::apply_scale): Be sure that ret is not local or global0
518 type if num is global.
520 2019-11-28 Martin Jambor <mjambor@suse.cz>
523 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
525 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
526 Removed trailig whitespace.
528 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
530 * profile-count.h (profile_count::combine_with_ipa_count_within):
532 * profile-count.c (profile_count::combine_with_ipa_count_within):
534 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
537 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
539 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
540 of counters are done same way.
542 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
544 * ipa-cp.c (update_profiling_info): Fix scaling.
546 2019-11-28 Richard Biener <rguenther@suse.de>
548 PR tree-optimization/92645
549 * tree-inline.c (remap_gimple_stmt): When the return value
550 is not wanted, elide GIMPLE_RETURN.
552 2019-11-28 Richard Biener <rguenther@suse.de>
554 PR tree-optimization/92645
555 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
556 conversions inside a mode class. Remove restriction on
557 preserving the element size.
558 (simplify_vector_constructor): Deal with the above and for
559 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
560 and VEC_PACK_TRUNC_EXPR.
562 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
564 Must use push insn to pass varargs arguments of DFmode because
565 otherwise the middle-end generates wrong code.
568 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
570 2019-11-28 Jakub Jelinek <jakub@redhat.com>
572 PR tree-optimization/92691
573 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
575 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
576 calls, return !handle_printf_call rather than always returning true.
577 (check_and_optimize_stmt): Describe return value meaning in function
578 comment. Formatting fix.
580 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
582 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
583 combination of globa0 and global counters..
585 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
588 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
589 by VECTOR_UNIT_NONE_P instead.
591 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
593 * gcc/config/i386/sse.md (avx512f_maskcmp<mode>3):
594 Refine VF to VF_AVX512VL.
596 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
598 * config/rs6000/rs6000.md (movsi_internal): Reformat.
599 (movdi_internal64): Reformat.
601 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
604 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
605 builtin if we don't have an actual type.
606 (builtin_function_type): If the builtin function uses a DFP type
607 and decimal float has been disabled, then return NULL_TREE.
609 2019-11-27 Jakub Jelinek <jakub@redhat.com>
611 PR rtl-optimization/92510
612 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
613 of comparison into a comparison with different mode if both imode and
614 omode are scalar integral modes.
616 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
618 PR rtl-optimization/90007
619 * recog.c (constrain_operands): Permit hard registers too for
620 memory when LRA is used.
622 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
624 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
625 between Coldfire and regular m68k.
626 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
628 2019-11-27 Richard Biener <rguenther@suse.de>
630 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
631 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
632 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
633 * optabs-tree.c (supportable_convert_operation): Do not call
634 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
635 * optabs-tree.h (supportable_convert_operation): Adjust.
636 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
637 * doc/tm.texi: Regenerate.
638 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
639 * tree-vect-generic.c (expand_vector_conversion): Likewise.
640 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
641 unused decl parameter and adjust.
642 (vect_create_vectorized_promotion_stmts): Likewise.
643 (vectorizable_conversion): Adjust.
645 2019-11-27 Richard Biener <rguenther@suse.de>
647 PR tree-optimization/92690
648 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
649 converting elements not originally converted.
651 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
654 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
655 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
656 mpfr_rnd_t instead of mp_rnd_t.
657 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
658 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
659 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
660 Use mpfr_exp_t instead of mp_exp_t.
661 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
662 MPFR_RNDx instead of GMP_RNDx.
663 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
664 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
665 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
666 of mp_rnd_t and remove MPFR_RNDx poisoning.
667 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
669 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
671 PR tree-optimization/91790
672 * gcc/tree-vect-stmts.c (vectorizable_load): Use the adjusted
673 DR for vect_setup_realignment when first_stmt_info is different
674 from first_stmt_info_for_drptr.
676 2019-11-27 Richard Biener <rguenther@suse.de>
678 PR tree-optimization/92645
679 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
680 CTORs with just a subset of the original vectors.
682 2019-11-27 Richard Biener <rguenther@suse.de>
685 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
686 edges and instead record blocks in bitmap.
687 (gimple_expand_calls_inline): Adjust.
688 (fold_marked_statements): Delay EH cleanup until all folding is
690 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
693 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
695 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
697 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
700 2019-11-27 Jakub Jelinek <jakub@redhat.com>
703 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
705 2019-11-26 Martin Sebor <msebor@redhat.com>
707 PR tree-optimization/92683
708 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
709 inadvertently removed in a previous change. Rename local variable
712 2019-11-26 Richard Biener <rguenther@suse.de>
715 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
718 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
720 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
722 2019-11-26 Jakub Jelinek <jakub@redhat.com>
724 PR tree-optimization/92644
725 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
726 next to INTEGER_CST checks.
728 2019-11-26 Richard Biener <rguenther@suse.de>
730 PR tree-optimization/92645
731 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
732 do not build the operation from scalars if the operand is.
734 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
736 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
737 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
740 2019-11-25 Martin Liska <mliska@suse.cz>
742 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
743 up used dump message.
745 2019-11-25 Martin Liska <mliska@suse.cz>
748 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
749 too strict checking assert.
751 2019-11-25 Joseph Myers <joseph@codesourcery.com>
754 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
755 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
756 error_mark_node if corresponding global tree node is NULL.
757 * tree.c (build_common_tree_nodes): Do not initialize
758 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
759 decimal floating-point not supported.
761 2019-11-25 Joseph Myers <joseph@codesourcery.com>
763 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
766 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
768 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
769 Replace code for non-CONST_INT constants with gcc_unreachable.
770 * config/m68k/m68k.md (cbranchdi): Don't generate individual
772 (CMPMODE): New mode_iterator.
773 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
775 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
777 (cmp<mode>_68881): Remove 'F' constraint from first comparison
779 (bit test insns patterns): Use nonimmediate_operand, not
780 register_operand, for source operands that allow memory in
782 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
783 Use register_operand, not nonimmediate_operand, for the
785 (DBCC): New mode_iterator.
786 (dbcc peepholes): Use it to reduce duplication.
787 (trap): Use const_true_rtx, not const1_rtx.
788 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
789 from m68k_subword_comparison_operand and changed to handle
793 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
795 (m68k_init_cc): New declaration.
796 (m68k_output_compare_di, m68k_output_compare_si)
797 (m68k_output_compare_hi, m68k_output_compare_qi)
798 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
799 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
800 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
801 m68k_output_branch_float, m68k_output_branch_float_rev):
803 (valid_dbcc_comparison_p_2, flags_in_68881)
804 (output_btst): Remove declaration.
805 * config/m68k/m68k.c (INCLDUE_STRING): Define.
806 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
807 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
808 (flags_compare_op0, flags_compare_op1, flags_operand1,
809 flags_operand2, flags_valid): New static variables.
810 (m68k_find_flags_value, m68k_init_cc): New functions.
811 (handle_flags_for_move, m68k_asm_final_postscan_insn,
812 remember_compare_flags): New static functions.
813 (output_dbcc_and_branch): New argument CODE. Use it, and add
814 PLUS and MINUS to the possible codes. All callers changed.
815 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
816 and INSN arguments, add CODE arg. Return the comparison code
817 to use. All callers changed. Use CODE instead of
818 next_insn_tests_no_inequality, and replace cc_status management
819 with changing the return code.
820 (m68k_rtx_costs): Instead of testing for COMPARE, test for
821 RTX_COMPARE or RTX_COMM_COMPARE.
822 (output_move_simode, output_move_qimode): Call
823 handle_flags_for_move.
824 (notice_update_cc): Delete function.
825 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
826 m68k_output_compare_hi, m68k_output_compare_qi,
827 m68k_output_compare_fp, m68k_output_branch_integer,
828 m68k_output_branch_integer_rev, m68k_output_scc,
829 m68k_output_branch_float, m68k_output_branch_float_rev,
830 m68k_output_scc_float): New functions.
831 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
832 once at the start, and set flags_valid and flags_operand1 if the
834 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
835 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
837 (CC_STATUS_INIT): Define.
838 * config/m68k/m68k.md (flags_valid): New define_attr.
839 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
840 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
841 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
842 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
843 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
844 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
845 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
846 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
847 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
848 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
849 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
850 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
851 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
852 ctrapqi4, conditional_trap): Delete patterns.
853 (cbranchdi4_insn): New pattern.
854 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
855 test high part only. When testing EQ or NE, generate beq0_di
856 and bne0_di patterns directly.
857 (cstoredi4): When testing LT or GE, test high part only.
858 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
860 (scc0_constraints, cmp1_constraints, cmp2_constraints,
861 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
862 cmp2_cf_predicate): New define_mode_attrs.
863 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
864 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
865 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
867 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
868 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
869 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
871 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
872 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
874 (BTST): New define_mode_iterator.
875 (btst_predicate, btst_constraint, btst_range): New
877 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
879 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
880 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
881 patterns): Set attr "flags_valid".
882 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
883 management. Set attr "flags_valid".
884 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
885 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
886 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
887 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
888 manual CC_STATUS management.
889 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
890 unnamed strict_lowpart subhi and subqi patterns): Set attr
892 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
893 Remove code to operate on address regs and assert the case
895 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
896 manual CC_STATUS_INIT.
897 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
898 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
899 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
900 one_cmplqi2, unnamed strict_lowpart patterns
901 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
902 one_cmplhi and one_cmplqi): Set attr "flags_valid".
903 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
904 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
906 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
907 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
908 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
909 unnamed strict_low_part patterns for HI and
910 QI versions): Set attr "flags_valid".
911 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
912 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
913 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
914 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
915 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
916 (various unnamed peepholes): Adjust compare/branch sequences
917 for new cbranch patterns.
918 (dbcc peepholes): Likewise, and output the comparison here
920 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
921 (fp_src_operand): Allow constant zero.
922 (address_reg_operand): New predicate.
924 * rtl.h (inequality_comparisons_p): Remove declaration.
925 * recog.h (next_insn_tests_no_inequality): Likewise.
926 * rtlanal.c (inequality_comparisons_p): Delete function.
927 * recog.c (next_insn_tests_no_inequality): Likewise.
929 2019-11-25 Richard Biener <rguenther@suse.de>
931 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
932 (vect_detect_hybrid_slp): Swap lane and instance iteration,
933 properly re-building the visited hash-map for each lane.
935 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
937 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
938 gcn_md_reorg): Remove unused variables.
939 (gcn_emutls_var_init): Add missing (but unreachable) return
941 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
942 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
943 an uninitialized variable.
945 2019-11-25 Martin Jambor <mjambor@suse.cz>
948 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
949 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
950 (cgraph_materialize_clone): Move removel from clone tree to the
951 the new method and use it instead.
952 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
953 bodies of clones, also remove it from the clone tree.
955 2019-11-25 Martin Jambor <mjambor@suse.cz>
958 * ipa-sra.c (process_isra_node_results): Put the new node to the
959 same comdat group as the original node.
961 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
963 Build double32 / long-double32 multilibs if needed.
967 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
968 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
969 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
970 tm_defines and pass to genmultilib.awk.
971 * config/avr/genmultilib.awk: Use these variables to add double32
972 and / or long-double32 multilib(s) as needed.
973 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
975 2019-11-25 Richard Biener <rguenther@suse.de>
977 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
978 loop body, defaulted to NULL.
979 (single_likely_exit): Add exit vector argument
980 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
981 (number_of_iterations_exit): Likewise.
982 (number_of_iterations_exit_assumptions): Likewise.
983 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
985 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
986 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
987 Compute exit vector around call to single_likely_exit.
988 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
989 loop body to loop_only_exit_p.
990 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
992 (number_of_iterations_exit_assumptions): Get loop body from caller
994 (number_of_iterations_exit): Pass through new loop body arg.
995 (infer_loop_bounds_from_undefined): Get loop body from caller.
996 (estimate_numbers_of_iterations): Compute loop body once.
998 2019-11-25 Richard Biener <rguenther@suse.de>
1000 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1001 auto_bb_flag instead of an sbitmap for visited handling.
1003 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1005 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1007 (vector_fp_comparison_complex): Likewise.
1008 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1010 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1012 (vector_lt<mode> for VEC_F): Refactor with
1013 vector_fp_comparison_simple.
1014 (vector_le<mode> for VEC_F): Likewise.
1015 (vector_unge<mode> for VEC_F): Likewise.
1016 (vector_unle<mode> for VEC_F): Likewise.
1017 (vector_ne<mode> for VEC_F): Likewise.
1018 (vector_ungt<mode> for VEC_F): Likewise.
1019 (vector_unlt<mode> for VEC_F): Likewise.
1020 (vector_ltgt<mode> for VEC_F): Refactor with
1021 vector_fp_comparison_complex.
1022 (vector_ordered<mode> for VEC_F): Likewise.
1023 (vector_uneq<mode> for VEC_F): Likewise.
1024 (vector_unordered<mode> for VEC_F): Likewise.
1026 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1028 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1029 COMPARE, representing an overflow detection.
1031 * combine.c (combine_instructions): Record costs for jumps.
1033 * combine.c (can_combine_p): Allow autoinc in jumps.
1035 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1037 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1038 * doc/invoke.texi (max-inline-insns-single-O2,
1039 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1040 early-inlining-insns-O2): Remove documentation.
1041 * ipa-fnsummary.c (analyze_function_body,
1042 compute_fn_summary): Use opt_for_fn when accessing parameters.
1043 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1044 inline_insns_auto, can_inline_edge_by_limits_p,
1045 want_early_inline_function_p, big_speedup_p,
1046 want_inline_small_function_p, want_inline_self_recursive_call_p,
1047 recursive_inlining, compute_max_insns, inline_small_functions):
1049 * opts.c (default_options): Add -O3 defaults for
1050 OPT__param_early_inlining_insns_,
1051 OPT__param_inline_heuristics_hint_percent_,
1052 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1053 * params.opt (-param=early-inlining-insns-O2=,
1054 -param=inline-heuristics-hint-percent-O2=,
1055 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1056 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1057 -param=inline-min-speedup=, -param=inline-unit-growth=,
1058 -param=large-function-growth=, -param=large-stack-frame=,
1059 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1060 -param=max-inline-insns-recursive=,
1061 -param=max-inline-insns-recursive-auto=,
1062 -param=max-inline-insns-single=,
1063 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1064 -param=max-inline-recursive-depth=,
1065 -param=max-inline-recursive-depth-auto=,
1066 -param=min-inline-recursive-probability=,
1067 -param=partial-inlining-entry-probability=,
1068 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1069 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1072 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1074 * ipa-fnsummary.c: Fix comment typos.
1075 * ipa-ref.h: Likewise.
1076 * ipa-predicate.h: Likewise.
1077 * ipa-split.c: Likewise.
1078 * ipa-inline-analysis.c: Likewise.
1079 * ipa-predicate.c: Likewise.
1080 * ipa-devirt.c: Likewise.
1081 * ipa-icf.h: Likewise.
1082 * profile-count.c: Likewise.
1083 * ipa-icf.c: Likewise.
1084 (sem_function::equals_wpa): Fix typos in dump messages.
1085 * ipa-icf-gimple.h: Fix comment typos.
1086 * ipa-inline-transform.c: Likewise.
1087 * ipa-polymorphic-call.c: Likewise.
1088 * ipa-fnsummary.h: Likewise.
1089 * ipa-inline.c: Likewise.
1090 (dump_inline_stats): Fix typo in debug dump message.
1091 * profile-count.h: Fix comment typos.
1094 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1095 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1096 register_operand, force x into register before storing it into dest.
1100 * doc/extend.texi (attribute access): Fix a typo.
1102 PR rtl-optimization/92610
1103 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1104 cse_cfg_altered is set, even when tem is 0.
1105 (rest_of_handle_cse_after_global_opts): Likewise.
1107 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1110 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1111 tree_hash): Move to ...
1112 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1113 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1115 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1117 PR tree-optimization/92618
1118 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1119 containing the auto_vec and a tree.
1120 (undistribute_bitref_for_vector): Handle the case when element type
1121 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1124 2019-11-22 Martin Sebor <msebor@redhat.com>
1127 * attribs.h (struct attr_access): New.
1128 * attribs.c (decl_attributes): Add an informational note.
1129 * builtins.c (check_access): Make extern. Consistently set no-warning
1130 after issuing a warning. Handle calls through function pointers. Set
1132 * builtins.h (check_access): Declare.
1133 * calls.c (rdwr_access_hash): New type.
1135 (init_attr_rdwr_indices): New function.
1136 (maybe_warn_rdwr_sizes): Same.
1137 (initialize_argument_information): Call init_attr_rdwr_indices.
1138 Call maybe_warn_rdwr_sizes.
1139 (get_size_range): Avoid null argument.
1140 * doc/extend.texi (attribute access): Document new attribute.
1142 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1144 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1145 (ACC_LDS_SIZE): Define.
1146 (OTHER_LDS_SIZE): Define.
1147 (LDS_SIZE): Redefine using above.
1148 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1150 2019-11-22 Martin Sebor <msebor@redhat.com>
1153 * builtins.c (check_nul_terminated_array): New function.
1154 (fold_builtin_0): Remove declaration.
1155 (fold_builtin_1): Same.
1156 (fold_builtin_2): Same.
1157 (fold_builtin_3): Same.
1158 (fold_builtin_strpbrk): Add argument.
1159 (fold_builtin_strspn): Same.
1160 (fold_builtin_strcspn): Same.
1161 (expand_builtin_strcat): Call it. Remove unused argument.
1162 (expand_builtin_stpncpy): Same.
1163 (expand_builtin_strncat): Same.
1164 (expand_builtin_strncpy): Same. Adjust indentation.
1165 (expand_builtin_strcmp): Same.
1166 (expand_builtin_strncmp): Same.
1167 (expand_builtin_fork_or_exec): Same.
1168 (expand_builtin): Handle more built-ins.
1169 (fold_builtin_2): Add argument.
1170 (fold_builtin_n): Make static. Add argument.
1171 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1172 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1173 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1174 (fold_call_stmt): Pass new argument to fold_builtin_n.
1175 * builtins.h: Correct a comment.
1176 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1177 check_nul_terminated_array.
1178 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1179 check_nul_terminated_array.
1180 (handle_builtin_strchr): Same.
1181 (handle_builtin_string_cmp): Same.
1183 2019-11-22 Martin Sebor <msebor@redhat.com>
1185 PR tree-optimization/92501
1186 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1187 handle unterminated arrays. Rename local variables for clarity.
1189 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1191 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1192 granulated_sgprs according to architecture.
1194 2019-11-22 Jan Hubicka <jh@suse.cz>
1196 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1197 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1198 (memory_block_pool::reduce_free_list): ... this one.
1199 (memory_block_pool::trim): New static function.
1200 * memory-block.h (memory_block_pool::freelist_size): New constant
1201 (memory_block_pool::clear_free_list): Rename to ...
1202 (memory_block_pool::reduce_free_list): ... this one.
1203 (memory_block_pool::trim): Declare.
1205 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1207 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1209 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1211 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1213 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1215 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1216 (bic_cmp0_noout): New pattern.
1217 (bic_cmp0): Likewise.
1218 (neg_scc_insn): Remove pattern.
1219 (not_scc_insn): Likewise.
1221 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1223 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1225 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1227 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1228 pedwarn instead of warning_at for fallthrough not preceding a case
1231 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1233 PR tree-optimization/92608
1234 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1237 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1239 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1241 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1242 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1243 special for FP comparisons that need a cror instruction eventually.
1244 (rs6000_emit_fp_cror): New function.
1245 (rs6000_emit_sCOND): Expand all floating point comparisons to one
1246 instruction, for normal FP modes, with HONOR_NANS.
1247 (rs6000_emit_cbranch): Reformat.
1248 * config/rs6000/rs6000.md (fp_rev): New iterator.
1249 (fp_two): New iterator.
1250 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1251 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1252 *cbranch_2insn: New define_insn_and_split.
1254 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1256 PR tree-optimization/92526
1257 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
1258 versioning for alignment if the accesses do not have a consistent
1259 mask, rather than asserting that the masks are consistent.
1261 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1263 PR tree-optimization/92595
1264 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
1266 (vectorizable_store, vectorizable_load): Likewise.
1268 2019-11-21 Jan Hubicka <jh@suse.cz>
1270 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
1271 (resolve_noninline_speculation, inline_small_functions): Avoid
1274 2019-11-21 Richard Biener <rguenther@suse.de>
1276 * lra.c (lra_insn_recog_data_pool): New.
1277 (free_insn_recog_data): Adjust.
1278 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
1279 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
1281 2019-11-21 Richard Biener <rguenther@suse.de>
1283 PR tree-optimization/92596
1284 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
1286 2019-11-21 Jan Hubicka <jh@suse.cz>
1288 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
1289 ready for some vectors to not be allocated.
1290 (evaluate_properties_for_edge): Document better; make
1291 known_vals and known_aggs caller allocated; avoid determining
1292 values of parameters which are not used.
1293 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
1295 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
1296 (do_estimate_edge_size): Likewise.
1297 (do_estimate_edge_hints): Likewise.
1298 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
1299 values are not known.
1300 (ipa_release_agg_values): Add option to not release vector itself.
1301 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
1303 2019-11-21 Richard Biener <rguenther@suse.de>
1305 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
1306 (loop_iterator::to_visit): Use an auto_vec with internal storage.
1307 (loop_iterator::loop_iterator): Adjust.
1308 * cfganal.c (compute_dominance_frontiers_1): Fold into...
1309 (compute_dominance_frontiers): ... this. Hoist invariant
1310 get_immediate_dominator call.
1311 (compute_idf): Use a work-set instead of a work-list for more
1312 optimal iteration order and duplicate avoidance.
1313 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
1314 the vector all the time, instead pre-allocate the vector only
1316 (delete_update_ssa): Simplify.
1317 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
1319 2019-11-21 Jakub Jelinek <jakub@redhat.com>
1321 PR tree-optimization/91355
1322 * tree-ssa-sink.c (select_best_block): Use >= rather than >
1323 for early_bb scaled count with best_bb count comparison.
1325 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
1327 * ipa-inline.c (edge_badness): Likewise.
1328 * lto-streamer.h (class lto_location_cache): Likewise.
1329 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
1330 gratutious -> gratuitous.
1332 2019-11-21 Richard Biener <rguenther@suse.de>
1335 2019-09-17 Richard Biener <rguenther@suse.de>
1337 PR tree-optimization/91790
1338 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1339 use the correct DR for setting up realignment.
1341 2019-11-21 Richard Biener <rguenther@suse.de>
1343 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
1344 (equiv_class_obstack): New.
1345 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
1346 (perform_var_substitution): Initialize equiv_class_obstack.
1347 (free_var_substitution_info): Free equiv_class_obstack.
1349 2019-11-20 Jan Hubicka <jh@suse.cz>
1351 * ipa-inline.c (want_early_inline_function_p): Do not estimate
1352 edge growth when callee function is very large.
1353 * ipa-inline.h (estimate_min_edge_growth): New.
1355 2019-11-20 Jan Hubicka <jh@suse.cz>
1357 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
1358 negative time in calls summary; correct roundoff errors
1359 leading to negative times.
1360 (ipa_merge_fn_summary_after_inlining): Update calls size time table
1362 (ipa_update_overall_fn_summary): Add RESET parameter.
1363 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
1364 * ipa-inline-transform.c (inline_call): Enable incremental updates.
1366 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1368 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
1369 def types for two-operation SLP.
1371 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1374 * doc/sourcebuild.texi (vect_char_add): Document.
1376 2019-11-20 Alexandre Oliva <oliva@adacore.com>
1378 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
1379 * function.c (record_final_call): Record even calls that might
1380 have been in the cgraph.
1381 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
1384 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
1386 * configure.ac: Use https for gcc.gnu.org
1387 * configure: Regenerated.
1388 * doc/install.texi: Use https for gcc.gnu.org.
1389 * doc/sourcebuild.texi: Likewise.
1391 2019-11-20 Julian Brown <julian@codesourcery.com>
1393 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
1395 2019-11-20 Jan Hubicka <jh@suse.cz>
1397 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
1398 parameter and update call_size_time_table.
1399 (ipa_fn_summary::max_size_time_table_size): New constant.
1400 (estimate_calls_size_and_time_1): Break out from ...
1401 (estimate_calls_size_and_time): ... here; implement summary production.
1402 (summarize_calls_size_and_time): New function.
1403 (ipa_call_context::estimate_size_and_time): Bypass
1404 estimate_calls_size_and_time for leaf functions.
1405 (ipa_update_overall_fn_summary): Likewise.
1406 * ipa-fnsummary.h (call_size_time_table): New.
1407 (ipa_fn_summary::account_size_time): Update prototype.
1409 2019-11-20 Joseph Myers <joseph@codesourcery.com>
1411 * doc/invoke.texi (-Wc11-c2x-compat): Document.
1413 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
1416 * common.opt (fcommon): Change init to 1.
1417 * doc/invoke.texi (-fcommon): Update documentation.
1419 2019-11-20 Jan Hubicka <jh@suse.cz>
1421 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
1424 2019-11-20 Jan Hubicka <jh@suse.cz>
1426 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
1427 Add allocator parameter.
1428 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
1429 (fibonacci_heap<K,V>::m_allocator): New.
1430 (fibonacci_heap<K,V>::m_own_allocator): New.
1431 (fibonacci_heap<K,V>::insert): Use allocator.
1432 (fibonacci_heap<K,V>::extract_min): Likewise.
1433 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
1435 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
1437 * fibonacci_heap.c: Include alloc-pool
1438 (test_empty_heap): Initialize allocator.
1439 (test_union): Likewise.
1440 * bb-reorder.c: Include alloc-pool.h.
1441 * tracer.c: Inlclude alloc-pool.h.
1443 2019-11-20 Jan Hubicka <jh@suse.cz>
1445 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
1446 Preallocate for 32 entries.
1447 (DFS::worklist): Likewise.
1448 (DFS::DFS): Do not initialize sccstack and worklist.
1449 (DFS::~DFS): Do not release sccstack.
1451 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
1454 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
1455 Handle UNORDERED if !HONOR_NANS.
1457 2019-11-20 Jan Hubicka <jh@suse.cz>
1459 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
1460 (edge_badness): ... here.
1461 (inline_small_functions): Use monotonicity of badness calculation
1462 to avoid redundant updates.
1464 2019-11-20 Richard Biener <rguenther@suse.de>
1466 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
1467 constructors we are actually analyzing.
1468 (vect_slp_check_for_constructors): Do not vectorize uniform
1469 constuctors, do not dump here.
1471 2019-11-20 Richard Biener <rguenther@suse.de>
1473 PR tree-optimization/92537
1474 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
1475 vectorization validity check...
1476 (vect_slp_analyze_operations): ... here.
1478 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
1480 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
1481 (make_pass_arc_predicate_delay_insns): Likewise.
1482 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
1483 method, remove clone.
1484 (class pass_arc_predicate_delay_insns): Likewise.
1485 (arc_init): Remove registering of ARC specific passes.
1486 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
1487 * config/arc/arc-passes.def: New file.
1489 2019-11-20 Jakub Jelinek <jakub@redhat.com>
1492 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
1493 and has a mode that doesn't have corresponding integral type.
1496 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
1497 clear opts->x_ix86_isa_flags{,2} here...
1498 (ix86_valid_target_attribute_inner_p): ... but here when seeing
1499 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
1502 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
1504 (insert_clobbers_for_var): Fix a typo in function comment.
1506 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
1507 Jakub Jelinek <jakub@redhat.com>
1510 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
1511 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
1514 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
1516 Make 0-series device specs work with older versions of avr-gcc.
1519 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
1520 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1521 <*link_pm_base_address>: Don't write spec.
1522 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
1524 2019-11-20 Richard Biener <rguenther@suse.de>
1527 * builtins.c (compute_objsize): Deal with VLAs.
1529 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
1531 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
1533 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
1535 (power9_sched_reorder2): Call new function.
1536 (rs6000_sched_reorder2): Likewise.
1538 2019-11-18 Jan Hubicka <jh@suse.cz>
1540 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
1541 (estimate_calls_size_and_time): Update.
1543 2019-11-18 Jan Hubicka <jh@suse.cz>
1545 * ipa-inline.c (inlining_speedup): New function.
1546 (edge_badness): Use it.
1548 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
1549 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1551 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
1552 Mark as not having "likely" version.
1553 * config/mips/mips.md (insn_count): The simd_div instruction with
1554 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
1555 (can_delay): Exclude simd_branch.
1556 (defile_delay *): Add simd_branch instructions.
1557 They have one regular delay slot.
1559 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
1562 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1564 * cse.c (cse_insn): Delete no-op register moves too.
1565 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1566 Take a second comparison to control the value for NE.
1567 (mask_to_comparison): Handle unsigned comparisons.
1568 (simplify_logical_relational_operation): Likewise. Update call
1569 to comparison_to_mask. Handle AND if !HONOR_NANs.
1570 (simplify_binary_operation_1): Call the above for AND too.
1572 2019-11-19 Martin Liska <mliska@suse.cz>
1574 * toplev.c (general_init): Move the call...
1575 (toplev::main): ... here as we need init_options_struct
1578 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1581 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
1584 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1586 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
1587 (armv7-a): Likewise.
1588 (armv7ve): Likewise.
1590 2019-11-19 Richard Biener <rguenther@suse.de>
1592 PR tree-optimization/92581
1593 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
1594 condition reduction chains gather all conditions involved
1595 for computing the index reduction vector.
1597 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
1599 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
1600 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
1601 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
1602 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
1603 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
1604 (aarch64_init_memtag_builtins): New.
1605 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
1606 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
1607 (aarch64_expand_builtin_memtag): New.
1608 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
1609 (AARCH64_BUILTIN_SUBCODE): New macro.
1610 (aarch64_resolve_overloaded_memtag): New.
1611 (aarch64_resolve_overloaded_builtin_general): New. Call
1612 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
1613 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1614 __ARM_FEATURE_MEMORY_TAGGING when enabled.
1615 (aarch64_resolve_overloaded_builtin): Call
1616 aarch64_resolve_overloaded_builtin_general.
1617 * config/aarch64/aarch64-protos.h
1618 (aarch64_resolve_overloaded_builtin_general): New declaration.
1619 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
1620 (TARGET_MEMTAG): Likewise.
1621 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
1622 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
1623 (irg, gmi, subp, addg, ldg, stg): New instructions.
1624 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
1625 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
1626 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
1627 (__arm_mte_get_tag): Likewise.
1628 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
1629 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
1630 * config/arm/types.md (memtag): New.
1631 * doc/invoke.texi (-memtag): Update description.
1633 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
1635 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
1636 to define __GCC_ASM_FLAG_OUTPUTS__.
1637 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
1638 (arm_option_params_internal): Swap out targetm.md_asm_adjust
1639 depending on TARGET_THUMB1.
1640 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
1642 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1645 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
1648 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
1649 operand is negative and one non-negative, compare the non-negative
1650 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
1651 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
1652 and s2 == 0, unless one of them is known to be negative. Remove
1653 tem2 variable, use tem where tem2 has been used before.
1655 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
1657 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
1659 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1661 PR tree-optimization/92557
1662 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
1663 vmode rather than asserting it always is.
1665 2019-11-19 Richard Biener <rguenther@suse.de>
1667 PR tree-optimization/92554
1668 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
1669 for the actual condition stmt and deal with sign-changes.
1671 2019-11-19 Richard Biener <rguenther@suse.de>
1673 PR tree-optimization/92555
1674 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
1677 2019-11-19 Martin Liska <mliska@suse.cz>
1680 * config/riscv/riscv.c (riscv_address_insns): Initialize
1681 addr in order to remove boostrap -Wmaybe-uninitialized
1684 2019-11-18 Martin Sebor <msebor@redhat.com>
1686 PR tree-optimization/92493
1687 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
1690 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
1692 * cfgloop.c (get_loop_body_in_custom_order): New.
1693 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
1694 * tree-loop-distribution.c (class loop_distribution): New.
1695 (bb_top_order_cmp): Remove.
1696 (bb_top_order_cmp_r): New.
1697 (create_rdg_vertices): Move into class loop_distribution.
1698 (stmts_from_loop): Same as above.
1699 (update_for_merge): Same as above.
1700 (partition_merge_into): Same as above.
1701 (get_data_dependence): Same as above.
1702 (data_dep_in_cycle_p): Same as above.
1703 (update_type_for_merge): Same as above.
1704 (build_rdg_partition_for-vertex): Same as above.
1705 (classify_builtin_ldst): Same as above.
1706 (classify_partition): Same as above.
1707 (share_memory_accesses): Same as above.
1708 (rdg_build_partitions): Same as above.
1709 (pg_add_dependence_edges): Same as above.
1710 (build_partition_graph): Same as above.
1711 (merge_dep_scc_partitions): Same as above.
1712 (break_alias_scc_partitions): Same as above.
1713 (finalize_partitions): Same as above.
1714 (distribute_loop): Same as above.
1715 (bb_top_order_init): New method
1716 (bb_top_order_destroy): New method.
1717 (get_bb_top_order_index_size): New method.
1718 (get_bb_top_order_index_index): New method.
1719 (get_bb_top_order_index_index): New method.
1720 (loop_distribution::execute): New method.
1721 (pass_loop_distribution::execute): Instantiate loop_distribution.
1723 2019-11-18 Jan Hubicka <jh@suse.cz>
1726 * ipa-inline.c (inline_small_functions): Add new edges after reseting
1728 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
1730 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1732 * doc/sourcebuild.texi (vect_check_ptrs): Document.
1733 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
1734 * doc/md.texi: Document them.
1735 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
1737 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
1738 * internal-fn.c (check_ptrs_direct): New macro.
1739 (expand_check_ptrs_optab_fn): Likewise.
1740 (direct_check_ptrs_optab_supported_p): Likewise.
1741 (internal_check_ptrs_fn_supported_p): New fuction.
1742 * tree-data-ref.c: Include internal-fn.h.
1743 (create_ifn_alias_checks): New function.
1744 (create_intersect_range_checks): Use it.
1745 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
1746 (optab, cmp_op): Handle it.
1747 (raw_war, unspec): New int attributes.
1748 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
1750 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
1752 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
1754 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
1757 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1759 * tree.c (build_vector_from_ctor): Directly return a zero vector for
1762 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1764 * cse.c (cse_insn): Delete no-op register moves too.
1765 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1766 Take a second comparison to control the value for NE.
1767 (mask_to_comparison): Handle unsigned comparisons.
1768 (simplify_logical_relational_operation): Likewise. Update call
1769 to comparison_to_mask. Handle AND if !HONOR_NANs.
1770 (simplify_binary_operation_1): Call the above for AND too.
1772 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1774 * fold-const.c (native_encode_vector): Turn into a wrapper function,
1775 splitting the main code out into...
1776 (native_encode_vector_part): ...this new function.
1777 (native_decode_vector_tree): New function.
1778 (fold_view_convert_vector_encoding): Likewise.
1779 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
1782 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1784 * tree-data-ref.c (create_intersect_range_checks_index): If the
1785 alias pair describes simple WAW and WAR dependencies, just check
1786 whether the first B access overlaps later A accesses.
1787 (create_waw_or_war_checks): New function that performs the same
1788 optimization on addresses.
1789 (create_intersect_range_checks): Call it.
1791 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1793 * lra-constraints.c (valid_address_p): Take the operand and a
1794 constraint as argument. If the operand is a MEM and the constraint
1795 is a memory constraint, check whether the eliminated form of the
1796 MEM already satisfies the constraint.
1797 (process_address_1): Update calls accordingly.
1799 2019-11-18 Tom Tromey <tromey@adacore.com>
1801 * doc/tm.texi: Rebuild.
1802 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
1803 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
1805 2019-11-18 Richard Biener <rguenther@suse.de>
1807 PR tree-optimization/92516
1808 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
1809 argument, hoist bst_map creation/destruction to ...
1810 (vect_analyze_slp): ... here, forming a true graph with
1811 SLP instances being the entries.
1812 (vect_detect_hybrid_slp_stmts): Remove wrapper.
1813 (vect_detect_hybrid_slp): Use one visited set for all
1815 (vect_slp_analyze_node_operations): Simplify visited/lvisited
1816 to hash-sets of slp_tree.
1817 (vect_slp_analyze_operations): Likewise.
1818 (vect_bb_slp_scalar_cost): Remove wrapper.
1819 (vect_bb_vectorization_profitable_p): Use one visited set for
1821 (vect_schedule_slp_instance): Elide bst_map use.
1822 (vect_schedule_slp): Likewise.
1824 2019-11-18 Richard Biener <rguenther@suse.de>
1826 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
1827 was vectorized with just external refs fail.
1829 2019-11-18 Martin Liska <mliska@suse.cz>
1832 * ipa-icf.c (sem_function::init): Unset m_checker
1833 at the end of the function.
1835 2019-11-18 Richard Biener <rguenther@suse.de>
1837 PR tree-optimization/92558
1838 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
1839 reducting the width of a reduction vector def update new_phis.
1841 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1843 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
1844 and s390*-*-linux-musl* targets.
1845 * configure: Regenerate.
1847 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1849 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
1850 (MUSL_DYNAMIC_LINKER64): Define.
1852 2019-11-18 Martin Liska <mliska@suse.cz>
1854 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
1855 message for an unknown counter.
1856 (dbg_cnt_process_single_pair): Support 0 as minimum value.
1857 (dbg_cnt_process_opt): Remove unreachable code.
1859 2019-11-18 Martin Liska <mliska@suse.cz>
1862 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
1863 Compare LHS types of NOP_EXPR.
1865 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
1867 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
1868 "initial_pass_name" argument -- by running "*clean_state" pass.
1869 Also free the "initial_pass_name" when done.
1871 2019-11-18 Richard Biener <rguenther@suse.de>
1873 PR rtl-optimization/92462
1874 * alias.c (find_base_term): Restrict the look through ANDs.
1875 (find_base_value): Likewise.
1877 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
1879 Add support for AVR devices from the 0-series.
1882 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
1883 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
1884 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
1885 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
1886 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1887 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
1888 for spec definitions.
1889 * doc/avr-mmcu.texi: Regenerate.
1891 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
1894 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
1895 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
1896 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
1897 (ix86_reassociation_width): Ditto.
1898 * config/i386/i386-options.c (ix86_option_override_internal):
1899 Replace TARGET_AVX128_OPTIAML with
1900 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
1901 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
1902 (TARGET_AVX128_OPTIMAL): Deleted.
1903 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
1906 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1908 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
1909 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
1911 (cceq_rev_compare): Rename to...
1912 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
1914 (define_split for <bd>tf_<mode>): Add SImode first argument to
1915 gen_cceq_ior_compare.
1917 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1919 * common/config/powerpcspe: Delete.
1921 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1923 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
1924 output in UNSPEC_WRFFR.
1926 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1928 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
1929 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
1931 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1933 * tree-data-ref.c (create_intersect_range_checks_index)
1934 (create_intersect_range_checks): Print dump messages.
1936 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1938 * tree-data-ref.c (dump_alias_pair): New function.
1939 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
1941 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1943 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
1944 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
1945 merging data references with different steps.
1946 (create_intersect_range_checks_index): Take a
1947 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
1948 Bail out if DR_ALIAS_MIXED_STEPS is set.
1949 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
1950 instead of two dr_with_seg_lens. Update call to
1951 create_intersect_range_checks_index.
1952 (create_runtime_alias_checks): Update call accordingly.
1954 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1956 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
1957 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
1958 (dr_with_seg_len_pair_t::sequencing): New enum.
1959 (dr_with_seg_len_pair_t::flags): New member variable.
1960 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
1961 parameter and initialize the flags member variable.
1962 * tree-loop-distribution.c (compute_alias_check_pairs): Update
1964 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
1965 Ensure the two data references in an alias pair are in statement
1966 order, if there is a defined order.
1967 * tree-data-ref.c (prune_runtime_alias_test_list): Use
1968 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
1969 swapped the references in a dr_with_seg_len_pair_t. OR together
1970 the flags when merging two dr_with_seg_len_pair_ts. After merging,
1971 try to restore the original dr_with_seg_len order, updating the
1972 flags if that fails.
1974 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1976 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
1977 swapping the dr_as based on init values until we've decided
1978 whether to merge them.
1980 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1982 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
1983 two accesses in each dr_with_seg_len_pair_t before trying to
1984 combine separate dr_with_seg_len_pair_ts.
1985 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
1987 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
1989 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1991 * config/aarch64/aarch64-sve.md
1992 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
1993 (scatter_store<SVE_24:mode><v_int_container>): ...this.
1994 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
1995 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
1996 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
1997 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
1998 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2000 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2001 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2002 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2003 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2005 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2007 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2008 (SVE_4HSI): New mode iterators.
2009 (ANY_EXTEND2): New code iterator.
2010 * config/aarch64/aarch64-sve.md
2011 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2013 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2014 ...this, handling extension to partial modes as well as full modes.
2015 Describe the extension as a predicated rather than unpredicated
2017 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2018 Likewise extend to...
2019 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2020 ...this, making the same adjustments.
2021 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2022 Likewise extend to...
2023 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2024 ...this, making the same adjustments.
2025 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2026 Likewise extend to...
2027 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2028 ...this, making the same adjustments.
2029 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2031 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2032 extension predicate.
2033 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2034 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2035 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2036 Describe the extension as a predicated rather than unpredicated
2038 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2039 Likewise. Canonicalize to a constant extension predicate.
2040 * config/aarch64/aarch64-sve-builtins-base.cc
2041 (svld1_gather_extend_impl::expand): Add an extra predicate for
2043 (svldff1_gather_extend_impl::expand): Likewise.
2045 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2047 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2049 * config/aarch64/aarch64-sve.md
2050 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2051 (gather_load<SVE_24:mode><v_int_container>): ...this.
2052 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2053 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2054 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2055 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2056 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2058 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2059 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2060 Allow the nominal extension predicate to be different from the
2062 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2063 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2065 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2067 * config/aarch64/aarch64-sve.md
2068 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2069 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2071 (aarch64_sve_adjust_stmt_cost): Call it.
2073 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2075 * config/aarch64/aarch64-sve.md
2076 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2077 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2078 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2080 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2081 ...this new pattern, handling extension to partial modes as well
2082 as full modes. Describe the extension as a predicated rather than
2083 unpredicated extension.
2084 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2085 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2086 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2088 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2089 ...this new pattern, handling extension to partial modes as well
2090 as full modes. Describe the extension as a predicated rather than
2091 unpredicated extension.
2092 * config/aarch64/aarch64-sve-builtins.cc
2093 (function_expander::use_contiguous_load_insn): Add an extra
2094 predicate for extending loads.
2095 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2096 (aarch64_sve_adjust_stmt_cost): Likewise.
2097 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2098 the cost of SVE vector stmts.
2100 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2102 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2103 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2104 * config/aarch64/aarch64-sve.md
2105 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2106 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2107 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2108 comment. Avoid new narrower_mask ambiguity.
2109 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2110 (*cond_uxt<mode>_2): Update comment.
2111 (*cond_uxt<mode>_any): Likewise.
2113 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2115 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2117 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2119 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2120 new vector float modes.
2121 (aarch64_sve_container_bits): New function.
2122 (aarch64_sve_pred_mode): Likewise.
2123 (aarch64_get_mask_mode): Use it.
2124 (aarch64_sve_element_int_mode): Handle structure modes and partial
2126 (aarch64_sve_container_int_mode): New function.
2127 (aarch64_vectorize_related_mode): Return SVE modes when given
2128 SVE modes. Handle partial modes, taking the preferred number
2129 of units from the size of the given mode.
2130 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2132 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2133 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2134 (aarch64_split_sve_subreg_move): Use the mode form of
2135 aarch64_sve_pred_mode.
2136 (aarch64_secondary_reload): Handle partial modes in the same way
2137 as full big-endian vectors.
2138 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2139 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2140 merging with the Advanced SIMD modes. If two modes have the
2141 same size, try the Advanced SIMD mode first.
2142 (aarch64_simd_valid_immediate): Use the container rather than
2143 the element mode for INDEX constants.
2144 (aarch64_simd_vector_alignment): Make the alignment of partial
2145 SVE vector modes the same as their minimum size.
2146 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2147 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2148 (mov<SVE_ALL:mode>): ...this.
2149 (movmisalign<SVE_FULL:mode>): Extend to...
2150 (movmisalign<SVE_ALL:mode>): ...this.
2151 (*aarch64_sve_mov<mode>_le): Rename to...
2152 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2153 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2154 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2155 partial modes regardless of endianness.
2156 (aarch64_sve_reload_be): Rename to...
2157 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2158 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2159 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2160 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2161 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2162 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2163 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2164 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2165 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2166 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2167 (maskload<SVE_FULL:mode><vpred>): Extend to...
2168 (maskload<SVE_ALL:mode><vpred>): ...this.
2169 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2170 (maskstore<SVE_ALL:mode><vpred>): ...this.
2171 (vec_duplicate<SVE_FULL:mode>): Extend to...
2172 (vec_duplicate<SVE_ALL:mode>): ...this.
2173 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2174 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2175 (sve_ld1r<SVE_FULL:mode>): Extend to...
2176 (sve_ld1r<SVE_ALL:mode>): ...this.
2177 (vec_series<SVE_FULL_I:mode>): Extend to...
2178 (vec_series<SVE_I:mode>): ...this.
2179 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2180 (*vec_series<SVE_I:mode>_plus): ...this.
2181 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2182 new VPRED ambiguity.
2183 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2184 (add<SVE_FULL_I:mode>3): Extend to...
2185 (add<SVE_I:mode>3): ...this.
2186 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2187 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2188 (VPRED, vpred): Likewise.
2189 (Vctype): New iterator.
2190 (vw): Remove SVE modes.
2192 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2194 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2195 (SVE_PARTIAL_I): ...this.
2196 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2198 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2200 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2201 (SVE_FULL): ...this.
2202 (SVE_I): Rename to...
2203 (SVE_FULL_I): ...this.
2204 (SVE_F): Rename to...
2205 (SVE_FULL_F): ...this.
2206 (SVE_BHSI): Rename to...
2207 (SVE_FULL_BHSI): ...this.
2208 (SVE_HSD): Rename to...
2209 (SVE_FULL_HSD): ...this.
2210 (SVE_HSDI): Rename to...
2211 (SVE_FULL_HSDI): ...this.
2212 (SVE_HSF): Rename to...
2213 (SVE_FULL_HSF): ...this.
2214 (SVE_SD): Rename to...
2215 (SVE_FULL_SD): ...this.
2216 (SVE_SDI): Rename to...
2217 (SVE_FULL_SDI): ...this.
2218 (SVE_SDF): Rename to...
2219 (SVE_FULL_SDF): ...this.
2220 (SVE_S): Rename to...
2221 (SVE_FULL_S): ...this.
2222 (SVE_D): Rename to...
2223 (SVE_FULL_D): ...this.
2224 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2225 * config/aarch64/aarch64-sve2.md: Likewise.
2227 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2229 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2231 * doc/invoke.texi: Document it.
2232 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2233 By default, return VECT_COMPARE_COSTS for SVE.
2235 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2237 * target.h (VECT_COMPARE_COSTS): New constant.
2238 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2239 * doc/tm.texi: Regenerate.
2240 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2241 * targhooks.c (default_autovectorize_vector_modes): Likewise.
2242 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2244 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2245 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2246 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2247 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2248 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2249 (_loop_vec_info::vec_inside_cost): New member variables.
2250 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2251 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2252 (vect_analyze_loop): When autovectorize_vector_modes returns
2253 VECT_COMPARE_COSTS, try vectorizing the loop with each available
2254 vector mode and picking the one with the lowest cost.
2255 (vect_estimate_min_profitable_iters): Record the computed costs
2256 in the loop_vec_info.
2258 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2260 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
2261 element type rather than an element mode.
2262 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2263 Use get_vectype_for_scalar_type to query the natural types
2264 for a given element type rather than basing everything on
2265 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
2266 query to MAX_FIXED_MODE_SIZE.
2267 (duplicate_and_interleave): Update call accordingly.
2268 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2270 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2272 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
2273 optional maximum nunits.
2274 (get_vectype_for_scalar_type): Likewise. Also declare a form that
2276 (get_mask_type_for_scalar_type): Take an optional slp_tree.
2277 (vect_get_mask_type_for_stmt): Likewise.
2278 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
2279 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
2280 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
2281 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
2282 to get an assumed vector type for data references.
2283 * tree-vect-slp.c (vect_update_shared_vectype): New function.
2284 (vect_update_all_shared_vectypes): Likewise.
2285 (vect_build_slp_tree_1): Pass the group size to
2286 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
2287 for BB vectorization.
2288 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
2289 before building the vectof from scalars.
2290 (vect_analyze_slp_instance): Pass the group size to
2291 get_vectype_for_scalar_type.
2292 (vect_slp_analyze_node_operations_1): Don't recompute the vector
2293 types for BB vectorization here; just handle the case in which
2294 we deferred the choice for booleans.
2295 (vect_get_constant_vectors): Pass the slp_tree to
2296 get_vectype_for_scalar_type.
2297 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
2298 (vectorizable_call): Likewise.
2299 (vectorizable_simd_clone_call): Likewise.
2300 (vectorizable_conversion): Likewise.
2301 (vectorizable_shift): Likewise.
2302 (vectorizable_operation): Likewise.
2303 (vectorizable_comparison): Likewise.
2304 (vect_is_simple_cond): Take the slp_tree as argument and
2305 pass it to get_vectype_for_scalar_type.
2306 (vectorizable_condition): Update call accordingly.
2307 (get_vectype_for_scalar_type): Take a group_size argument.
2308 For BB vectorization, limit the the vector to that number
2309 of elements. Also define an overload that takes an slp_tree.
2310 (get_mask_type_for_scalar_type): Add an slp_tree argument and
2311 pass it to get_vectype_for_scalar_type.
2312 (vect_get_vector_types_for_stmt): Add a group_size argument
2313 and pass it to get_vectype_for_scalar_type. Don't use the
2314 cached vector type for BB vectorization if a group size is given.
2315 Handle data references in that case.
2316 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
2317 pass it to get_mask_type_for_scalar_type.
2319 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2321 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
2323 (estimate_edge_time): Use it.
2324 * ipa-inline-analysis.c (do_estimate_edge_time): Add
2325 ret_nonspec_time parameter.
2327 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
2329 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
2331 2019-11-15 Nick Clifton <nickc@redhat.com>
2332 Szabolcs Nagy <szabolcs.nagy@arm.com>
2335 * config/microblaze/microblaze.c (print_operand): Print value as long.
2337 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2339 * ipa-inline.c (edge_badness, inline_small_functions): Revert
2342 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2344 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
2345 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
2347 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2349 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
2350 (gcn_conditional_register_usage): Use constants in place of hard-coded
2352 (gcn_hsa_declare_function_name): Set lower bound for number of
2353 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
2354 MAX_NORMAL_VGPR_COUNT.
2356 2019-11-15 Martin Jambor <mjambor@suse.cz>
2358 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
2361 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2363 * config/gcn/gcn.c (default_requested_args): New.
2364 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
2365 set with default_requested_args.
2366 (gcn_conditional_register_usage): Limit register usage of non-kernel
2367 functions. Reassign fixed registers if a non-standard set of args is
2369 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
2371 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
2374 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
2375 aggregate jump function when inlined-to caller has no edge summary.
2377 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2379 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
2381 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2383 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
2385 (print_operand_address): Use v1 for zero vector offset.
2387 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2389 PR tree-optimization/92515
2390 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
2391 types when converting a vector/scalar shift into a vector/vector one,
2392 using tree_nop_conversion_p instead of useless_type_conversion_p.
2393 Move the conversion code to the transform block.
2395 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2397 * read-rtl-function.c
2398 (function_reader::add_fixup_source_location): Take additional
2399 parameter of a column.
2400 (function_reader::maybe_read_location): Optionally parse column
2401 information and pass to add_fixup_source_location.
2403 2019-11-15 Richard Biener <rguenther@suse.de>
2405 PR tree-optimization/92512
2406 * tree-vect-loop.c (check_reduction_path): Fix operand index
2407 computability check. Add check for second use in COND_EXPRs.
2409 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2412 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
2413 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
2415 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2417 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
2418 register class for VCC_LO and VCC_HI.
2419 (gcn_spill_class): Use SGPR_REGS to spill registers in
2420 VCC_CONDITIONAL_REG.
2422 2019-11-15 Richard Biener <rguenther@suse.de>
2424 PR tree-optimization/92324
2425 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2426 singedness of SLP reduction epilouge operations. Also reduce
2427 the vector width for SLP reductions before doing elementwise
2428 operations if possible.
2430 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2432 * passes.c (skip_pass): Set epilogue_completed if skipping the
2433 pro_and_epilogue pass.
2435 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2437 * passes.c (should_skip_pass_p): Always run "dfinish".
2439 2019-11-15 Richard Biener <rguenther@suse.de>
2441 * ipa-inline.c (inline_small_functions): Move assignment
2442 to next before call destroying edge.
2444 2019-11-15 Richard Biener <rguenther@suse.de>
2446 PR tree-optimization/92039
2447 PR tree-optimization/91975
2448 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
2449 previous change, treat invariants consistently as non-constant.
2450 (tree_estimate_loop_size): Ternary ops with just the first op
2451 constant are not optimized away.
2453 2019-11-15 Jakub Jelinek <jakub@redhat.com>
2455 * gimplify.c (gimplify_call_expr): Don't call
2456 omp_resolve_declare_variant after gimplification.
2457 * omp-general.c (omp_context_selector_matches): For isa that might
2458 match in some other function, defer if in declare simd function.
2459 (omp_context_compute_score): Don't look for " score" in construct
2460 trait set. Set *score to -1 if it can't ever match.
2461 (omp_resolve_declare_variant): If any variants need to be deferred,
2462 don't punt immediately, but compute scores of all variants and if
2463 ther eis a score winner that doesn't need to be deferred, return that.
2465 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
2467 * ipa-comdats.c: Fix comments typo.
2468 * ipa-profile.c: Fix comments typo.
2469 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
2470 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
2471 (gimple_gen_ic_func_profiler): Likewise.
2472 (pass_ipa_tree_profile::gate): Fix comments typo.
2474 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
2476 * ipa-inline.c (inline_small_functions): Update iterator of next.
2478 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
2480 * lra-spills.c (assign_spill_hard_regs): Check that the spill
2481 register is suitable for the mode.
2483 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2485 * range-op.h (range_operator::fold_range): Return a bool.
2486 * range-op.cc (range_operator::wi_fold): Assert supported type.
2487 (range_operator::fold_range): Assert supported type and return true.
2488 (operator_equal::fold_range): Return true.
2489 (operator_not_equal::fold_range): Same.
2490 (operator_lt::fold_range): Same.
2491 (operator_le::fold_range): Same.
2492 (operator_gt::fold_range): Same.
2493 (operator_ge::fold_range): Same.
2494 (operator_plus::op1_range): Adjust call to fold_range.
2495 (operator_plus::op2_range): Same.
2496 (operator_minus::op1_range): Same.
2497 (operator_minus::op2_range): Same.
2498 (operator_exact_divide::op1_range): Same.
2499 (operator_lshift::fold_range): Return true and adjust fold_range call.
2500 (operator_rshift::fold_range): Same.
2501 (operator_cast::fold_range): Return true.
2502 (operator_logical_and::fold_range): Same.
2503 (operator_logical_or::fold_range): Same.
2504 (operator_logical_not::fold_range): Same.
2505 (operator_bitwise_not::fold_range): Adjust call to fold_range.
2506 (operator_bitwise_not::op1_range): Same.
2507 (operator_cst::fold_range): Return true.
2508 (operator_identity::fold_range): Return true.
2509 (operator_negate::fold_range): Return true and adjust fold_range call.
2510 (operator_addr_expr::fold_range): Return true.
2511 (operator_addr_expr::op1_range): Adjust call to fold_range.
2513 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
2514 (range_fold_unary_symbolics_p): Same.
2516 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2518 PR tree-optimization/92506
2519 * range-op.cc (range_operator::fold_range): Start with range undefined.
2520 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
2521 overflow is varying.
2523 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2525 * range-op.cc (*operator*::*range): Remove calls to
2526 range_intersect, range_invert, and range_union in favor of calling
2527 the in-place API methods.
2528 (range_tests): Same.
2529 * range.cc (range_intersect): Remove.
2530 (range_union): Remove.
2531 (range_invert): Remove.
2532 * range.h (range_intersect): Remove.
2533 (range_union): Remove.
2534 (range_intersect): Remove.
2536 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
2538 PR rtl-optimization/92430
2539 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
2540 (pass_jump_after_combine::execute): Perform jump threading
2543 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2544 Doug Rupp <rupp@adacore.com>
2545 Olivier Hainque <hainque@adacore.com>
2547 * config.gcc: Collapse the arm-vxworks entries into
2548 a single arm-wrs-vxworks7* one, bpabi based. Update
2549 the default cpu from arm8 to armv7-a
2550 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
2551 we always use ARM_UNWIND_INFO.
2552 (DWARF2_UNWIND_INFO): Remove redefinition.
2553 (ARM_TARGET2_DWARF_FORMAT): Likewise.
2554 (VXWORKS_PERSONALITY): Define, to "llvm".
2555 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
2557 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2559 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
2560 _VX_CPU instead of CPU and handle arm_arch8.
2562 2019-11-14 Doug Rupp <rupp@adacore.com>
2563 Olivier Hainque <hainque@adacore.com>
2564 Jerome Lambourg <lambourg@adacore.com>
2566 * config.gcc: Handle aarch64*-wrs-vxworks7*.
2567 * config/aarch64/aarch64-vxworks.h: New file.
2568 * config/aarch64/t-aarch64-vxworks: New file.
2570 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
2571 Olivier Hainque <hainque@adacore.com>
2573 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
2574 definition, pointless with a VxWorks specific version
2576 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
2577 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
2578 New local macros, controlling the addition of vxworks specific
2579 crtstuff objects depending on the EH mechanism and kind of
2580 module being linked.
2581 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
2583 2019-11-06 Pat Bernardi <bernardi@adacore.com>
2584 Jerome Lambourg <lambourg@adacore.com>
2585 Olivier Hainque <hainque@adacore.com>
2587 * config.gcc: Add comment to introduce the TARGET_VXWORKS
2588 common macro definitions, conveying VXWORKS7 or 64bit general
2589 variations. Add a block to set gcc_cv_initfini_array
2590 unconditionally to "yes" for VxWorks7.
2591 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
2592 by default. Update some comments.
2593 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
2594 default, to be added the end of VXWORKS_LIBS_RTP.
2595 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
2596 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
2598 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
2599 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
2600 to account for the now available TLS abilities.
2601 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
2602 (VXWORKS_HAVE_TLS): Likewise.
2604 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2606 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
2607 (vect_slp_convert_to_external): Likewise.
2608 (vect_slp_analyze_node_operations): If analysis fails, try building
2609 the node from scalars instead.
2611 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2613 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
2614 between vector types.
2615 * tree-vect-stmts.c (vectorizable_conversion): Extend the
2616 non-widening and non-narrowing path to handle standard
2617 conversion codes, if the target supports them.
2618 * expr.c (convert_move): Try using the extend and truncate optabs
2620 * optabs-tree.c (supportable_convert_operation): Likewise.
2621 * config/aarch64/iterators.md (Vnarroqw): New iterator.
2622 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
2623 (trunc<mode><Vnarrowq>2): New patterns.
2625 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2627 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
2628 require vectype and nunits_vectype to have the same size;
2629 instead assert that nunits_vectype has at least as many
2630 elements as vectype. Don't compute a separate nunits_vectype
2631 if the scalar type is obviously the same as vectype's.
2632 Tweak dump messages.
2634 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2636 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
2638 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
2639 (TARGET_VECTORIZE_RELATED_MODE): Define.
2641 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2643 * tree-vectorizer.h (vec_info::mode_set): New typedef.
2644 (vec_info::used_vector_mode): New member variable.
2645 (vect_chooses_same_modes_p): Declare.
2646 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
2647 chosen vector mode in vec_info::used_vector_mode.
2648 (vect_chooses_same_modes_p): New function.
2649 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
2650 the same vector statements multiple times.
2651 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2653 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2655 * machmode.h (opt_machine_mode::operator==): New function.
2656 (opt_machine_mode::operator!=): Likewise.
2657 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
2658 (get_related_vectype_for_scalar_type): Delete.
2659 (get_vectype_for_scalar_type_and_size): Declare.
2660 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
2661 whether analysis passed or failed, and with what vector modes.
2662 Use related_vector_mode to check whether trying a particular
2663 vector mode would be redundant with the autodetected mode,
2664 and print a dump message if we decide to skip it.
2665 * tree-vect-loop.c (vect_analyze_loop): Likewise.
2666 (vect_create_epilog_for_reduction): Use
2667 get_related_vectype_for_scalar_type instead of
2668 get_vectype_for_scalar_type_and_size.
2669 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
2671 (get_related_vectype_for_scalar_type): ...this new function.
2672 Take a starting/"prevailing" vector mode rather than a vector size.
2673 Take an optional nunits argument, with the same meaning as for
2674 related_vector_mode. Use related_vector_mode when not
2675 auto-detecting a mode, falling back to mode_for_vector if no
2677 (get_vectype_for_scalar_type): Update accordingly.
2678 (get_same_sized_vectype): Likewise.
2679 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
2681 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2683 * tree-vect-stmts.c (vectorizable_call): Require the types
2684 to have the same size.
2686 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2688 * tree-vect-stmts.c (vectorizable_call): If an operand is
2689 constant or external, use get_vectype_for_scalar_type
2690 rather than get_same_sized_vectype to get its vector type.
2691 (vectorizable_conversion, vectorizable_shift): Likewise.
2692 (vectorizable_operation): Likewise.
2694 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2696 * tree-vectorizer.h (vec_info::vector_size): Replace with...
2697 (vec_info::vector_mode): ...this new field.
2698 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
2699 (vect_analyze_loop, vect_transform_loop): Likewise.
2700 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
2701 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2702 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
2703 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
2704 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
2706 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2708 * target.h (vector_sizes, auto_vector_sizes): Delete.
2709 (vector_modes, auto_vector_modes): New typedefs.
2710 * target.def (autovectorize_vector_sizes): Replace with...
2711 (autovectorize_vector_modes): ...this new hook.
2712 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
2714 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
2715 * doc/tm.texi: Regenerate.
2716 * targhooks.h (default_autovectorize_vector_sizes): Delete.
2717 (default_autovectorize_vector_modes): New function.
2718 * targhooks.c (default_autovectorize_vector_sizes): Delete.
2719 (default_autovectorize_vector_modes): New function.
2720 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
2721 of autovectorize_vector_sizes. Use the number of units in the mode
2722 to calculate the maximum VF.
2723 * omp-low.c (omp_clause_aligned_alignment): Use
2724 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2725 Use a loop based on related_mode to iterate through all supported
2726 vector modes for a given scalar mode.
2727 * optabs-query.c (can_vec_mask_load_store_p): Use
2728 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2729 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
2730 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2731 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
2733 (aarch64_autovectorize_vector_modes): ...this new function.
2734 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2735 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2736 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
2737 (arc_autovectorize_vector_modes): ...this new function.
2738 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2739 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2740 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
2741 (arm_autovectorize_vector_modes): ...this new function.
2742 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2743 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2744 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
2745 (ix86_autovectorize_vector_modes): ...this new function.
2746 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2747 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2748 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
2749 (mips_autovectorize_vector_modes): ...this new function.
2750 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2751 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2753 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2755 * tree-vect-stmts.c (vectorizable_shift): Check the number
2756 of vector elements as well as the type mode when deciding
2757 whether an op1_vectype is compatible. Reuse the result of
2758 this check when generating vector statements.
2760 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2762 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
2763 targetm.vectorize.preferred_simd_mode returns an integer mode,
2764 use mode_for_vector to decide what the vector type's mode
2765 should actually be. Use build_vector_type_for_mode instead
2766 of build_vector_type.
2768 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2770 * target.def (get_mask_mode): Take a vector mode itself as argument,
2771 instead of properties about the vector mode.
2772 * doc/tm.texi: Regenerate.
2773 * targhooks.h (default_get_mask_mode): Update to reflect new
2774 get_mode_mask interface.
2775 * targhooks.c (default_get_mask_mode): Likewise. Use
2776 related_int_vector_mode.
2777 * optabs-query.c (can_vec_mask_load_store_p): Update call
2779 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
2780 first that the original mode really is a vector.
2781 * tree.c (build_truth_vector_type_for): Likewise.
2782 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
2783 get_mode_mask interface.
2784 (aarch64_expand_sve_vcond): Update call accordingly.
2785 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
2786 get_mode_mask interface.
2787 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
2789 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2791 * tree.h (build_truth_vector_type): Delete.
2792 (build_same_sized_truth_vector_type): Likewise.
2793 * tree.c (build_truth_vector_type): Rename to...
2794 (build_truth_vector_type_for): ...this. Make static and take
2795 a vector type as argument.
2796 (truth_type_for): Update accordingly.
2797 (build_same_sized_truth_vector_type): Delete.
2798 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
2799 instead of build_same_sized_truth_vector_type.
2800 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
2801 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
2802 * tree-vect-patterns.c (build_mask_conversion): Likeise.
2803 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2804 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
2805 (vect_build_gather_load_calls, vectorizable_call): Likewise.
2806 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
2807 (vectorizable_store, vectorizable_condition): Likewise.
2808 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
2809 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
2810 build_truth_vector_type.
2811 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
2812 Use truth_type_for instead of build_same_sized_truth_vector_type.
2813 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
2815 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2817 * tree.h (build_truth_vector_type_for_mode): Declare.
2818 * tree.c (build_truth_vector_type_for_mode): New function,
2820 (build_truth_vector_type): ...here.
2821 (build_opaque_vector_type): Fix head comment.
2822 * tree-vectorizer.h (supportable_narrowing_operation): Remove
2824 (vect_halve_mask_nunits): Replace vec_info parameter with the
2825 mode of the new vector.
2826 (vect_double_mask_nunits): Likewise.
2827 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
2828 (vect_double_mask_nunits): Likewise.
2829 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
2830 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
2831 to vect_halve_mask_nunits, getting the required mode from the unpack
2833 (vect_set_loop_condition_masked): Update call accordingly.
2834 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
2835 parameter and update call to vect_double_mask_nunits.
2836 (vectorizable_conversion): Update call accordingly.
2837 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
2838 (vectorizable_call): Update call accordingly.
2839 (supportable_widening_operation): Update call to
2840 vect_halve_mask_nunits.
2841 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
2842 Use build_truth_vector_type_mode instead of build_truth_vector_type.
2844 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2846 * machmode.h (mode_for_int_vector): Delete.
2847 (related_int_vector_mode): Declare.
2848 * stor-layout.c (mode_for_int_vector): Delete.
2849 (related_int_vector_mode): New function.
2850 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
2851 instead of mode_for_int_vector.
2852 (expand_vec_perm_const): Likewise.
2853 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
2854 (aarch64_evpc_sve_tbl): Likewise.
2855 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
2856 (s390_expand_vcond): Likewise.
2858 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2860 * target.def (related_mode): New hook.
2861 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
2862 * doc/tm.texi: Regenerate.
2863 * targhooks.h (default_vectorize_related_mode): Declare.
2864 * targhooks.c (default_vectorize_related_mode): New function.
2865 * machmode.h (related_vector_mode): Declare.
2866 * stor-layout.c (related_vector_mode): New function.
2867 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
2868 * optabs-query.c (qimode_for_vec_perm): Likewise.
2869 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
2870 (vectorizable_store, vectorizable_load): Likewise
2872 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
2874 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
2875 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
2876 * config/arm/arm-c.c (arm_cpu_builtins): Define
2877 __GCC_ASM_FLAG_OUTPUTS__.
2878 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
2879 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
2880 Define __GCC_ASM_FLAG_OUTPUTS__.
2881 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
2882 * doc/extend.texi (FlagOutputOperands): Add documentation
2883 for ARM and AArch64.
2885 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
2886 * config/arm/predicates.md (nz_comparison_operator): Rename
2887 from noov_comparison_operator.
2888 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
2889 (arm_gen_dicompare_reg): Likewise.
2890 (maybe_get_arm_condition_code): Likewise.
2891 (thumb1_final_prescan_insn): Likewise.
2892 (arm_emit_coreregs_64bit_shift): Likewise.
2893 * config/arm/arm.md (addsi3_compare0): Likewise.
2894 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
2895 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
2896 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
2897 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
2898 (*mulsi3addsi_compare0_scratch): Likewise.
2899 (*mulsi3addsi_compare0_scratch_v6): Likewise.
2900 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
2901 (*zeroextractsi_compare0_scratch): Likewise.
2902 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
2903 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
2904 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
2905 (andsi_not_shiftsi_si_scc): Likewise.
2906 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
2907 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
2908 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
2909 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
2910 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
2911 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
2912 (return_addr_mask, *check_arch2): Likewise.
2913 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
2914 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
2915 (compare_scc splitters): Likewise.
2916 (movcond_addsi): Likewise.
2917 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
2918 (*thumb2_addsi3_compare0_scratch): Likewise.
2919 (*thumb2_mulsi_short_compare0): Likewise.
2920 (*thumb2_mulsi_short_compare0_scratch): Likewise.
2921 (compare peephole2s): Likewise.
2922 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
2923 nz_comparison_operator names.
2924 (cbranchsi4_insn): Likewise.
2926 * config/arm/constraints.md (c): Use cc_register predicate.
2928 * config/aarch64/constraints.md (c): New constraint.
2930 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2932 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
2933 ipa_merge_fn_summary_after_inlining): Micro optimize.
2935 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2937 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
2939 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2941 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
2942 (ipa_value_range_from_jfunc): New function.
2943 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
2944 known_value_ranges parameter; use it to evalulate conditions.
2945 (evaluate_properties_for_edge): Compute known value ranges.
2946 (ipa_fn_summary_t::duplicate): Update use of
2947 evaluate_conditions_for_known_args.
2948 (estimate_ipcp_clone_size_and_time): Likewise.
2949 (ipa_merge_fn_summary_after_inlining): Likewise.
2950 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
2952 2019-11-14 Martin Liska <mliska@suse.cz>
2954 * ipa-inline.c (want_inline_small_function_p): Use
2955 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
2956 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
2958 2019-11-14 Martin Liska <mliska@suse.cz>
2960 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
2961 of a callee to get value of the param.
2962 * ipa-inline.c (inline_insns_auto): Use proper
2964 * opts.c (maybe_default_option): Do not overwrite param
2965 value if optimization level does not match. Note that
2966 params usually have default value set via Init() keyword.
2967 * params.opt: Remove -param=max-inline-insns-auto-O2.
2968 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
2969 * doc/invoke.texi: Remove documentation of
2970 max-inline-insns-auto-O2.
2972 2019-11-14 Martin Liska <mliska@suse.cz>
2974 * tree-switch-conversion.c (switch_conversion::switch_conversion):
2975 Do not initialize m_other_count.
2976 (switch_conversion::collect): Do not count m_default_count and
2977 m_other_count as we use frequencies for edges.
2978 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
2980 2019-11-14 Martin Liska <mliska@suse.cz>
2983 * doc/invoke.texi: Document -fallocation-dce.
2985 2019-11-14 Martin Liska <mliska@suse.cz>
2988 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
2989 PTA_ICELAKE_CLIENT which is later interited by
2990 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
2992 2019-11-14 Martin Liska <mliska@suse.cz>
2994 * ipa-icf.c (sem_item_optimizer::execute): Save
2996 (sem_item_optimizer::parse_nonsingleton_classes):
2997 Return number of loaded symbols.
2998 (sem_item_optimizer::merge_classes): Print
2999 statistics about totally needed symbols.
3000 * ipa-icf.h (parse_nonsingleton_classes): Change return
3002 (merge_classes): Add one argument.
3004 2019-11-14 Martin Liska <mliska@suse.cz>
3006 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3007 func_checker::hash_operand by handling of FIELD_DECLs.
3009 2019-11-14 Martin Liska <mliska@suse.cz>
3011 * ipa-icf-gimple.h (func_checker::func_checker): Add
3012 default constructor.
3013 * ipa-icf.c (sem_function::init): Make operand_equal_p
3014 and hash_operand public.
3015 (sem_item::add_expr): Remove.
3016 (sem_item::add_type): Remove.
3017 (sem_function::hash_stmt): Use m_checker for hashing
3018 of GIMPLE statements.
3019 (sem_function::parse): Init with checker.
3020 (sem_variable::parse): Pass NULL as checker.
3021 (sem_item_optimizer::parse_funcs_and_vars):
3022 Pass checker to ::parse function.
3023 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3024 (sem_variable::parse): New function.
3025 (sem_variable::get_hash): Only return computed hash value.
3026 (sem_variable::init): Initialize hash of a variable.
3027 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3028 to couple of functions as a new argument.
3030 2019-11-14 Martin Liska <mliska@suse.cz>
3032 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3034 (func_checker::compare_gimple_assign): Likewise.
3036 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3038 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3039 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3040 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3042 * omp-general.c (omp_context_name_list_prop): New function.
3043 (omp_context_selector_matches): Use it. Return 0 if it returns
3045 (omp_context_selector_props_compare): Allow equivalency of an
3046 identifier and a string literal containing no embedded zeros.
3048 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3050 * range-op.cc (RANGE3): Remove.
3051 (range_tests): Remove all selftest that check for multi-ranges.
3052 Put tests in namespace selftest.
3053 * selftest.h: Move range_tests into namespace selftest.
3054 * value-range.h (class value_range): Unfriend range_tests.
3056 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3058 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3059 normalize_symbolics and normalize_addresses working in place.
3060 (range_fold_unary_symbolics_p): Same.
3061 (range_fold_unary_symbolics_p): Same.
3062 * value-range.cc (num_pairs): Same.
3063 (lower_bound): Same.
3064 (upper_bound): Same.
3066 (normalize_addresses): Same.
3067 (normalize_symbolics): Same.
3068 * value-range.h (normalize_symbolics): Same.
3069 (normalize_addresses): Same.
3071 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3074 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3075 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3076 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3077 (ipa_agg_jump_function): Remove member function equal_to.
3078 (ipa_agg_jump_function_p): Remove typedef.
3079 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3080 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3081 information for aggregate jump function.
3082 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3083 record last definition statement.
3084 (load_from_unmodified_param_or_agg): New function.
3085 (ipa_known_agg_contents_list): Add new field type and value, remove
3087 (build_agg_jump_func_from_list): Rename parameter const_count to
3088 value_count, build aggregate jump function from ipa_load_agg_data.
3089 (analyze_agg_content_value): New function.
3090 (extract_mem_content): Analyze memory store assignment to prepare
3091 information for aggregate jump function generation.
3092 (determine_known_aggregate_parts): Add new parameter fbi, remove
3093 parameter aa_walk_budeget_p.
3094 (update_jump_functions_after_inlining): Update aggregate jump function.
3095 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3096 (try_make_edge_direct_simple_call): Add new parameter new_root.
3097 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3099 (update_indirect_edges_after_inlining): Pass new argument to
3100 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3101 (ipa_write_jump_function): Write aggregate jump function to file.
3102 (ipa_read_jump_function): Read aggregate jump function from file.
3103 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3104 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3105 (ipa_agg_value_from_node): Likewise.
3106 (ipa_agg_value_set_from_jfunc): Likewise.
3107 (propagate_vals_across_arith_jfunc): Likewise.
3108 (propagate_aggregate_lattice): Likewise.
3109 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3110 (propagate_vals_across_pass_through): Call
3111 propagate_vals_across_arith_jfunc.
3112 (get_clone_agg_value): Move forward.
3113 (propagate_aggs_across_jump_function): Handle value propagation for
3114 aggregate jump function.
3115 (agg_jmp_p_vec_for_t_vec): Remove.
3116 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3117 with vec<ipa_agg_value>.
3118 (copy_plats_to_inter, intersect_with_plats): Likewise.
3119 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3120 (intersect_aggregate_with_edge): Likewise.
3121 (find_aggregate_values_for_callers_subset): Likewise.
3122 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3123 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3124 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3125 (gather_context_independent_values): Likewise.
3126 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3127 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3128 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3129 (evaluate_properties_for_edge): Likewise.
3130 (estimate_edge_devirt_benefit): Likewise.
3131 (estimate_edge_size_and_time): Likewise.
3132 (estimate_calls_size_and_time): Likewise.
3133 (ipa_call_context::ipa_call_context): Likewise.
3134 (estimate_ipcp_clone_size_and_time): Likewise.
3135 * ipa-fnsummary.h (ipa_call_context): Replace
3136 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3137 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3138 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3139 (do_estimate_edge_size): Likewise.
3140 (do_estimate_edge_hints): Likewise.
3142 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3144 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3147 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3149 * ipa-profile.c (check_argument_count): Check properly that e_info
3150 is non-NULL; do not check descriptors.
3152 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3154 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3155 check for ipa profiles.
3157 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3160 * ipa-prop.c (update_indirect_edges_after_inlining):
3161 Mark parameter as used.
3162 * ipa-inline.c (recursive_inlining): Reset node cache
3164 (inline_small_functions): Remove checking ifdef.
3165 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3168 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3171 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3173 (ipa_profile): Fix reversed test.
3175 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3177 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3178 (propagate_constants_topo): Fix typo.
3180 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3182 * Makefile.in (OBJS): Add value-range.o.
3183 (GTFILES): Add value-range.h.
3184 * gengtype.c (open_base_files): Add value-range.h to list of
3186 * tree-vrp.c: Move the following value_range related functions:
3187 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3188 constant_p, set_undefined, set_varying, may_contain_p,
3189 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3190 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3191 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3192 value_inside_range, ranges_from_anti_range, union_ranges,
3193 intersect_ranges, intersect_helper, union_helper, union_,
3194 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3195 upper_bound, contains_p, invert, intersect...
3196 * value-range.cc: ...to here.
3197 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3198 associated inline methods from here...
3199 * value-range.h: ...to here.
3201 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3203 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3204 instead of asserting its value.
3206 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3208 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3209 constructors and set methods so value_range_kind is the last
3210 argument and defaults to VR_RANGE.
3211 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3212 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3213 * ipa-prop.c (ipa_get_value_range): Same.
3214 (ipa_compute_jump_functions_for_edge): Same.
3215 * range-op.cc (value_range_from_overflowed_bounds): Same.
3216 (operator_cast::op1_range): Same.
3217 (range_tests): Same.
3218 * range.cc (range_nonzero): Same.
3219 * tree-ssanames.c (get_range_info): Same.
3220 * tree-vrp.c (value_range_equiv::set): Same.
3221 (value_range::value_range): Same.
3222 (value_range_equiv::value_range_equiv): Same.
3223 (value_range_equiv::update): Same.
3224 (value_range_equiv::deep_copy): Same.
3225 (value_range_equiv::move): Same.
3226 (value_range_equiv::set_undefined): Same.
3227 (value_range::set): Same.
3228 (value_range::set_nonzero): Same.
3229 (ranges_from_anti_range): Same.
3230 (extract_range_from_plus_minus_expr): Same.
3231 (value_range::intersect_helper): Same.
3232 (value_range_equiv::intersect): Same.
3233 (value_range::union_helper): Same.
3234 (value_range_equiv::union_): Same.
3235 (value_range::normalize_symbolics): Same.
3236 (value_range::invert): Same.
3237 (determine_value_range_1): Same.
3238 * tree-vrp.h (class value_range): Same.
3239 (class value_range_equiv): Same.
3240 * vr-values.c (set_value_range_to_nonnegative): Same.
3241 (set_value_range_to_truthvalue): Same.
3242 (vr_values::update_value_range): Same.
3243 (vr_values::extract_range_for_var_from_comparison_expr): Same.
3244 (vr_values::extract_range_from_binary_expr): Same.
3245 (vr_values::extract_range_from_comparison): Same.
3246 (vr_values::extract_range_basic): Same.
3247 (vr_values::adjust_range_with_scev): Same.
3248 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3249 (vr_values::extract_range_from_phi_node): Same.
3251 2019-11-13 Ulrich Drepper <drepper@redhat.com>
3253 * tree-dump.c (dequeue_and_dump): Print first tree operand
3254 for VIEW_CONVERT_EXPR.
3256 2019-11-13 Joseph Myers <joseph@codesourcery.com>
3258 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
3259 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
3260 * real.c (get_max_float): Add norm_max argument.
3261 * real.h (get_max_float): Update prototype.
3262 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
3265 2019-11-13 Martin Liska <mliska@suse.cz>
3267 * dbgcnt.c (test_sorted_dbg_counters): New.
3268 (dbgcnt_c_tests): Likewise.
3269 * selftest-run-tests.c (selftest::run_tests): Likewise.
3270 * selftest.h (dbgcnt_c_tests): Likewise.
3272 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3273 Martin Jambor <mjambor@suse.cz>
3276 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
3277 (identify_dead_nodes): Likewise.
3279 2019-11-13 Martin Liska <mliska@suse.cz>
3281 * ipa-icf.c (sem_function::equals_private): Do not overuse
3282 push/pop_cfun functions.
3284 2019-11-13 Martin Liska <mliska@suse.cz>
3286 * common.opt: Document change of -fdbg-cnt option.
3287 * dbgcnt.c (DEBUG_COUNTER): Remove.
3288 (dbg_cnt_is_enabled): Remove.
3289 (dbg_cnt): Work with new intervals.
3290 (dbg_cnt_set_limit_by_index): Set to new
3292 (dbg_cnt_set_limit_by_name): Likewise.
3293 (dbg_cnt_process_single_pair): Process new format.
3294 (dbg_cnt_process_opt): Likewise.
3295 (dbg_cnt_list_all_counters): Likewise.
3296 * doc/invoke.texi: Document change of -fdbg-cnt option.
3299 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3301 * ipa-inline.c (ipa_inline): Check that function is defined before
3304 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3305 Julian Brown <julian@codesourcery.com>
3307 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
3308 flag_worker_partitioning is not set.
3309 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
3310 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
3312 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3314 * config/gcn/gcn-run.c (heap_region): New global variable.
3315 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
3316 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
3317 (get_kernarg_region): Move contents to ....
3318 (get_memory_region): .... here.
3319 (get_heap_region): New function.
3320 (init_device): Initialize the heap_region.
3321 (device_malloc): Add region parameter.
3322 (struct kernargs): Move heap ....
3323 (heap): ... to global scope.
3324 (main): Allocate heap separate to kernargs.
3326 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3328 * ipa-prop.c (ipa_print_node_jump_functions,
3329 ipa_print_node_params): Print info about missing summaries.
3331 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3333 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
3334 the cost of generating loop masks.
3336 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3338 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
3340 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
3341 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3342 (vect_transform_loop): Likewise.
3343 (vect_analyze_loop_costing): Don't take the cost of versioning
3344 into account for the static profitability threshold if it turns
3345 out that no versioning is needed.
3347 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3349 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
3350 and target_option_default_node to get -fprofile-generate ctors working
3353 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3355 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
3356 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
3357 (vectorizable_assignment): Don't add a cost for nop conversions.
3358 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3360 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
3362 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3364 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
3365 number of ncopies as an additional argument.
3366 (vectorizable_conversion): Update call accordingly. Use "modifier"
3367 to check whether a conversion is between vectors with the same
3370 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3372 * config/aarch64/aarch64-sve-builtins-functions.h
3373 (unary_count::expand): Use aarch64_sve_int_mode instead of
3374 mode_for_int_vector.
3376 2019-11-13 Martin Liska <mliska@suse.cz>
3378 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
3380 2019-11-13 Martin Liska <mliska@suse.cz>
3382 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3383 Remove call to finalize_options_struct.
3385 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
3388 * config/avr/t-avr (avr-mcus): Do not depend on
3389 $(srcdir)/config/avr/t-multilib.
3391 2019-11-13 Richard Biener <rguenther@suse.de>
3393 PR tree-optimization/92473
3394 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
3395 direct optab reduction in the correct type.
3397 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3399 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
3400 hexadecimal literal.
3402 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3404 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
3405 UNORDERED if !HONOR_NANS (DFmode).
3406 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
3407 if !HONOR_NANS (<MODE>mode).
3409 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3411 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
3412 (ipcp_verify_propagated_values): Likewise.
3413 (propagate_constants_across_call): Likewise.
3414 (propagate_constants_topo): Likewise.
3415 (ipcp_propagate_stage): Likewise.
3417 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3420 * ipa-profile.c (check_argument_count): Break out from ...;
3421 watch for missing summaries.
3422 (ipa_profile): Here.
3424 2019-11-12 Martin Sebor <msebor@redhat.com>
3426 PR tree-optimization/92412
3427 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
3430 2019-11-12 Martin Sebor <msebor@redhat.com>
3433 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
3434 (directive::argno): New member.
3435 (format_result::aliases, format_result::alias_count): New data members.
3436 (format_result::append_alias): New member function.
3437 (fmtresult::dst_offset): New data member.
3438 (pass_sprintf_length::call_info::dst_origin): New data member.
3439 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
3440 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
3441 (get_origin_and_offset): Same.
3442 (format_string): Call it.
3443 (format_directive): Call append_alias and set directive argument
3445 (maybe_warn_overlap): New function.
3446 (pass_sprintf_length::compute_format_length): Call it.
3447 (pass_sprintf_length::handle_gimple_call): Initialize new members.
3448 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
3450 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
3452 PR rtl-optimization/92430
3453 * cfgcleanup.c (pass_jump_after_combine::execute): Free
3454 dominance info at the beginning.
3456 2019-11-12 Richard Biener <rguenther@suse.de>
3458 PR tree-optimization/92460
3459 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
3460 expression before gimplifying.
3462 2019-11-12 Richard Biener <rguenther@suse.de>
3464 PR tree-optimization/92461
3465 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
3466 stmt after propagation.
3468 2019-11-12 Martin Liska <mliska@suse.cz>
3470 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
3471 Use SET_OPTION_IF_UNSET.
3472 (ix86_option_override_internal): Likewise.
3473 * opts.c (default_options_optimization): Likewise.
3474 (finish_options): Likewise.
3475 (enable_fdo_optimizations): Likewise.
3476 (common_handle_option): Likewise.
3478 2019-11-12 Martin Liska <mliska@suse.cz>
3480 * common/common-target.def: Remove option_validate_param and
3481 option_default_params.
3482 * common/common-targhooks.c (default_option_validate_param):
3484 * common/common-targhooks.h (default_option_validate_param):
3486 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
3487 Remove usage of this.
3488 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
3489 (aarch64_option_validate_param): Likewise.
3490 (aarch64_option_default_params): Likewise
3491 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
3492 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3493 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3494 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3495 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3496 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3497 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3498 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3499 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3500 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3501 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
3503 * doc/tm.texi: Remove option_default_params and option_validate_param.
3504 * doc/tm.texi.in: Likewise.
3506 2019-11-12 Martin Liska <mliska@suse.cz>
3508 * common/common-target.def:
3509 Do not mention set_default_param_value
3510 and set_param_value.
3511 * doc/tm.texi: Likewise.
3513 2019-11-12 Martin Liska <mliska@suse.cz>
3515 * common.opt: Remove param_values.
3516 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
3517 Remove finalize_options_struct.
3518 * gcc.c (driver::decode_argv): Do not call global_init_params
3520 (driver::finalize): Do not call params_c_finalize
3521 and finalize_options_struct.
3522 * opt-suggestions.c (option_proposer::get_completions): Remove
3523 special casing of params.
3524 (option_proposer::find_param_completions): Remove.
3525 (test_completion_partial_match): Update expected output.
3526 * opt-suggestions.h: Remove find_param_completions.
3527 * opts-common.c (add_misspelling_candidates): Add
3528 --param with a space.
3529 * opts.c (handle_param): Remove.
3530 (init_options_struct):. Remove init_options_struct and
3532 (finalize_options_struct): Remove.
3533 (common_handle_option): Use SET_OPTION_IF_UNSET.
3534 * opts.h (finalize_options_struct): Remove.
3535 * toplev.c (general_init): Do not call global_init_params.
3536 (toplev::finalize): Do not call params_c_finalize and
3537 finalize_options_struct.
3539 2019-11-12 Martin Liska <mliska@suse.cz>
3541 * Makefile.in: Remove PARAMS_H and params.list
3543 * params-enum.h: Remove.
3544 * params-list.h: Remove.
3545 * params-options.h: Remove.
3547 * params.def: Remove.
3549 * asan.c: Do not include params.h.
3550 * auto-profile.c: Likewise.
3551 * bb-reorder.c: Likewise.
3552 * builtins.c: Likewise.
3553 * cfgcleanup.c: Likewise.
3554 * cfgexpand.c: Likewise.
3555 * cfgloopanal.c: Likewise.
3556 * cgraph.c: Likewise.
3557 * combine.c: Likewise.
3558 * common/config/aarch64/aarch64-common.c: Likewise.
3559 * common/config/gcn/gcn-common.c: Likewise.
3560 * common/config/ia64/ia64-common.c: Likewise.
3561 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
3562 * common/config/rs6000/rs6000-common.c: Likewise.
3563 * common/config/sh/sh-common.c: Likewise.
3564 * config/aarch64/aarch64.c: Likewise.
3565 * config/alpha/alpha.c: Likewise.
3566 * config/arm/arm.c: Likewise.
3567 * config/avr/avr.c: Likewise.
3568 * config/csky/csky.c: Likewise.
3569 * config/i386/i386-builtins.c: Likewise.
3570 * config/i386/i386-expand.c: Likewise.
3571 * config/i386/i386-features.c: Likewise.
3572 * config/i386/i386-options.c: Likewise.
3573 * config/i386/i386.c: Likewise.
3574 * config/ia64/ia64.c: Likewise.
3575 * config/rs6000/rs6000-logue.c: Likewise.
3576 * config/rs6000/rs6000.c: Likewise.
3577 * config/s390/s390.c: Likewise.
3578 * config/sparc/sparc.c: Likewise.
3579 * config/visium/visium.c: Likewise.
3580 * coverage.c: Likewise.
3581 * cprop.c: Likewise.
3583 * cselib.c: Likewise.
3585 * emit-rtl.c: Likewise.
3586 * explow.c: Likewise.
3587 * final.c: Likewise.
3588 * fold-const.c: Likewise.
3591 * ggc-common.c: Likewise.
3592 * ggc-page.c: Likewise.
3593 * gimple-loop-interchange.cc: Likewise.
3594 * gimple-loop-jam.c: Likewise.
3595 * gimple-loop-versioning.cc: Likewise.
3596 * gimple-ssa-split-paths.c: Likewise.
3597 * gimple-ssa-sprintf.c: Likewise.
3598 * gimple-ssa-store-merging.c: Likewise.
3599 * gimple-ssa-strength-reduction.c: Likewise.
3600 * gimple-ssa-warn-alloca.c: Likewise.
3601 * gimple-ssa-warn-restrict.c: Likewise.
3602 * graphite-isl-ast-to-gimple.c: Likewise.
3603 * graphite-optimize-isl.c: Likewise.
3604 * graphite-scop-detection.c: Likewise.
3605 * graphite-sese-to-poly.c: Likewise.
3606 * graphite.c: Likewise.
3607 * haifa-sched.c: Likewise.
3608 * hsa-gen.c: Likewise.
3609 * ifcvt.c: Likewise.
3610 * ipa-cp.c: Likewise.
3611 * ipa-fnsummary.c: Likewise.
3612 * ipa-inline-analysis.c: Likewise.
3613 * ipa-inline.c: Likewise.
3614 * ipa-polymorphic-call.c: Likewise.
3615 * ipa-profile.c: Likewise.
3616 * ipa-prop.c: Likewise.
3617 * ipa-split.c: Likewise.
3618 * ipa-sra.c: Likewise.
3619 * ira-build.c: Likewise.
3620 * ira-conflicts.c: Likewise.
3621 * loop-doloop.c: Likewise.
3622 * loop-invariant.c: Likewise.
3623 * loop-unroll.c: Likewise.
3624 * lra-assigns.c: Likewise.
3625 * lra-constraints.c: Likewise.
3626 * modulo-sched.c: Likewise.
3627 * opt-suggestions.c: Likewise.
3629 * postreload-gcse.c: Likewise.
3630 * predict.c: Likewise.
3631 * reload.c: Likewise.
3632 * reorg.c: Likewise.
3633 * resource.c: Likewise.
3634 * sanopt.c: Likewise.
3635 * sched-deps.c: Likewise.
3636 * sched-ebb.c: Likewise.
3637 * sched-rgn.c: Likewise.
3638 * sel-sched-ir.c: Likewise.
3639 * sel-sched.c: Likewise.
3640 * shrink-wrap.c: Likewise.
3642 * targhooks.c: Likewise.
3643 * toplev.c: Likewise.
3644 * tracer.c: Likewise.
3645 * trans-mem.c: Likewise.
3646 * tree-chrec.c: Likewise.
3647 * tree-data-ref.c: Likewise.
3648 * tree-if-conv.c: Likewise.
3649 * tree-inline.c: Likewise.
3650 * tree-loop-distribution.c: Likewise.
3651 * tree-parloops.c: Likewise.
3652 * tree-predcom.c: Likewise.
3653 * tree-profile.c: Likewise.
3654 * tree-scalar-evolution.c: Likewise.
3655 * tree-sra.c: Likewise.
3656 * tree-ssa-ccp.c: Likewise.
3657 * tree-ssa-dom.c: Likewise.
3658 * tree-ssa-dse.c: Likewise.
3659 * tree-ssa-ifcombine.c: Likewise.
3660 * tree-ssa-loop-ch.c: Likewise.
3661 * tree-ssa-loop-im.c: Likewise.
3662 * tree-ssa-loop-ivcanon.c: Likewise.
3663 * tree-ssa-loop-ivopts.c: Likewise.
3664 * tree-ssa-loop-manip.c: Likewise.
3665 * tree-ssa-loop-niter.c: Likewise.
3666 * tree-ssa-loop-prefetch.c: Likewise.
3667 * tree-ssa-loop-unswitch.c: Likewise.
3668 * tree-ssa-math-opts.c: Likewise.
3669 * tree-ssa-phiopt.c: Likewise.
3670 * tree-ssa-pre.c: Likewise.
3671 * tree-ssa-reassoc.c: Likewise.
3672 * tree-ssa-sccvn.c: Likewise.
3673 * tree-ssa-scopedtables.c: Likewise.
3674 * tree-ssa-sink.c: Likewise.
3675 * tree-ssa-strlen.c: Likewise.
3676 * tree-ssa-structalias.c: Likewise.
3677 * tree-ssa-tail-merge.c: Likewise.
3678 * tree-ssa-threadbackward.c: Likewise.
3679 * tree-ssa-threadedge.c: Likewise.
3680 * tree-ssa-uninit.c: Likewise.
3681 * tree-switch-conversion.c: Likewise.
3682 * tree-vect-data-refs.c: Likewise.
3683 * tree-vect-loop.c: Likewise.
3684 * tree-vect-slp.c: Likewise.
3685 * tree-vrp.c: Likewise.
3687 * value-prof.c: Likewise.
3688 * var-tracking.c: Likewise.
3690 2019-11-12 Martin Liska <mliska@suse.cz>
3692 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
3693 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
3695 (asan_sanitize_allocas_p): Likewise.
3696 (asan_emit_stack_protection): Likewise.
3697 (asan_protect_global): Likewise.
3698 (instrument_derefs): Likewise.
3699 (instrument_builtin_call): Likewise.
3700 (asan_expand_mark_ifn): Likewise.
3701 * auto-profile.c (auto_profile): Likewise.
3702 * bb-reorder.c (copy_bb_p): Likewise.
3703 (duplicate_computed_gotos): Likewise.
3704 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
3705 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
3706 (try_crossjump_bb): Likewise.
3707 * cfgexpand.c (defer_stack_allocation): Likewise.
3708 (stack_protect_classify_type): Likewise.
3709 (pass_expand::execute): Likewise.
3710 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
3711 (estimate_reg_pressure_cost): Likewise.
3712 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
3713 * combine.c (combine_instructions): Likewise.
3714 (record_value_for_reg): Likewise.
3715 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
3716 (aarch64_option_default_params): Likewise.
3717 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3718 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3719 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3720 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3721 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
3722 (aarch64_allocate_and_probe_stack_space): Likewise.
3723 (aarch64_expand_epilogue): Likewise.
3724 (aarch64_override_options_internal): Likewise.
3725 * config/alpha/alpha.c (alpha_option_override): Likewise.
3726 * config/arm/arm.c (arm_option_override): Likewise.
3727 (arm_valid_target_attribute_p): Likewise.
3728 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
3729 * config/i386/i386.c (get_probe_interval): Likewise.
3730 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
3731 (ix86_max_noce_ifcvt_seq_cost): Likewise.
3732 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
3733 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
3734 (get_stack_clash_protection_guard_size): Likewise.
3735 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
3736 * config/s390/s390.c (allocate_stack_space): Likewise.
3737 (s390_emit_prologue): Likewise.
3738 (s390_option_override_internal): Likewise.
3739 * config/sparc/sparc.c (sparc_option_override): Likewise.
3740 * config/visium/visium.c (visium_option_override): Likewise.
3741 * coverage.c (get_coverage_counts): Likewise.
3742 (coverage_compute_profile_id): Likewise.
3743 (coverage_begin_function): Likewise.
3744 (coverage_end_function): Likewise.
3745 * cse.c (cse_find_path): Likewise.
3746 (cse_extended_basic_block): Likewise.
3747 (cse_main): Likewise.
3748 * cselib.c (cselib_invalidate_mem): Likewise.
3749 * dse.c (dse_step1): Likewise.
3750 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
3751 (get_max_insn_count): Likewise.
3752 (make_debug_insn_raw): Likewise.
3753 (init_emit): Likewise.
3754 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
3755 * final.c (compute_alignments): Likewise.
3756 * fold-const.c (fold_range_test): Likewise.
3757 (fold_truth_andor): Likewise.
3758 (tree_single_nonnegative_warnv_p): Likewise.
3759 (integer_valued_real_single_p): Likewise.
3760 * gcse.c (want_to_gcse_p): Likewise.
3761 (prune_insertions_deletions): Likewise.
3762 (hoist_code): Likewise.
3763 (gcse_or_cprop_is_too_expensive): Likewise.
3764 * ggc-common.c: Likewise.
3765 * ggc-page.c (ggc_collect): Likewise.
3766 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
3767 (MAX_DATAREFS): Likewise.
3768 (OUTER_STRIDE_RATIO): Likewise.
3769 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
3770 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
3771 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
3772 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
3773 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
3774 (imm_store_chain_info::output_merged_store): Likewise.
3775 (pass_store_merging::process_store): Likewise.
3776 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
3777 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
3778 (scop_to_isl_ast): Likewise.
3779 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
3780 (optimize_isl): Likewise.
3781 * graphite-scop-detection.c (build_scops): Likewise.
3782 * haifa-sched.c (set_modulo_params): Likewise.
3783 (rank_for_schedule): Likewise.
3784 (model_add_to_worklist): Likewise.
3785 (model_promote_insn): Likewise.
3786 (model_choose_insn): Likewise.
3787 (queue_to_ready): Likewise.
3788 (autopref_multipass_dfa_lookahead_guard): Likewise.
3789 (schedule_block): Likewise.
3790 (sched_init): Likewise.
3791 * hsa-gen.c (init_prologue): Likewise.
3792 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
3793 (cond_move_process_if_block): Likewise.
3794 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
3795 (merge_agg_lats_step): Likewise.
3796 (devirtualization_time_bonus): Likewise.
3797 (hint_time_bonus): Likewise.
3798 (incorporate_penalties): Likewise.
3799 (good_cloning_opportunity_p): Likewise.
3800 (ipcp_propagate_stage): Likewise.
3801 * ipa-fnsummary.c (decompose_param_expr): Likewise.
3802 (set_switch_stmt_execution_predicate): Likewise.
3803 (analyze_function_body): Likewise.
3804 (compute_fn_summary): Likewise.
3805 * ipa-inline-analysis.c (estimate_growth): Likewise.
3806 * ipa-inline.c (caller_growth_limits): Likewise.
3807 (inline_insns_single): Likewise.
3808 (inline_insns_auto): Likewise.
3809 (can_inline_edge_by_limits_p): Likewise.
3810 (want_early_inline_function_p): Likewise.
3811 (big_speedup_p): Likewise.
3812 (want_inline_small_function_p): Likewise.
3813 (want_inline_self_recursive_call_p): Likewise.
3814 (edge_badness): Likewise.
3815 (recursive_inlining): Likewise.
3816 (compute_max_insns): Likewise.
3817 (early_inliner): Likewise.
3818 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
3819 * ipa-profile.c (ipa_profile): Likewise.
3820 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
3821 (ipa_analyze_node): Likewise.
3822 (ipcp_transform_function): Likewise.
3823 * ipa-split.c (consider_split): Likewise.
3824 * ipa-sra.c (allocate_access): Likewise.
3825 (process_scan_results): Likewise.
3826 (ipa_sra_summarize_function): Likewise.
3827 (pull_accesses_from_callee): Likewise.
3828 * ira-build.c (loop_compare_func): Likewise.
3829 (mark_loops_for_removal): Likewise.
3830 * ira-conflicts.c (build_conflict_bit_table): Likewise.
3831 * loop-doloop.c (doloop_optimize): Likewise.
3832 * loop-invariant.c (gain_for_invariant): Likewise.
3833 (move_loop_invariants): Likewise.
3834 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
3835 (decide_unroll_runtime_iterations): Likewise.
3836 (decide_unroll_stupid): Likewise.
3837 (expand_var_during_unrolling): Likewise.
3838 * lra-assigns.c (spill_for): Likewise.
3839 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
3840 * modulo-sched.c (sms_schedule): Likewise.
3841 (DFA_HISTORY): Likewise.
3842 * opts.c (default_options_optimization): Likewise.
3843 (finish_options): Likewise.
3844 (common_handle_option): Likewise.
3845 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
3847 * predict.c (get_hot_bb_threshold): Likewise.
3848 (maybe_hot_count_p): Likewise.
3849 (probably_never_executed): Likewise.
3850 (predictable_edge_p): Likewise.
3851 (predict_loops): Likewise.
3852 (expr_expected_value_1): Likewise.
3853 (tree_predict_by_opcode): Likewise.
3854 (handle_missing_profiles): Likewise.
3855 * reload.c (find_equiv_reg): Likewise.
3856 * reorg.c (redundant_insn): Likewise.
3857 * resource.c (mark_target_live_regs): Likewise.
3858 (incr_ticks_for_insn): Likewise.
3859 * sanopt.c (pass_sanopt::execute): Likewise.
3860 * sched-deps.c (sched_analyze_1): Likewise.
3861 (sched_analyze_2): Likewise.
3862 (sched_analyze_insn): Likewise.
3863 (deps_analyze_insn): Likewise.
3864 * sched-ebb.c (schedule_ebbs): Likewise.
3865 * sched-rgn.c (find_single_block_region): Likewise.
3866 (too_large): Likewise.
3867 (haifa_find_rgns): Likewise.
3868 (extend_rgns): Likewise.
3869 (new_ready): Likewise.
3870 (schedule_region): Likewise.
3871 (sched_rgn_init): Likewise.
3872 * sel-sched-ir.c (make_region_from_loop): Likewise.
3873 * sel-sched-ir.h (MAX_WS): Likewise.
3874 * sel-sched.c (process_pipelined_exprs): Likewise.
3875 (sel_setup_region_sched_flags): Likewise.
3876 * shrink-wrap.c (try_shrink_wrapping): Likewise.
3877 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
3878 * toplev.c (print_version): Likewise.
3879 (process_options): Likewise.
3880 * tracer.c (tail_duplicate): Likewise.
3881 * trans-mem.c (tm_log_add): Likewise.
3882 * tree-chrec.c (chrec_fold_plus_1): Likewise.
3883 * tree-data-ref.c (split_constant_offset): Likewise.
3884 (compute_all_dependences): Likewise.
3885 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
3886 * tree-inline.c (remap_gimple_stmt): Likewise.
3887 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
3888 * tree-parloops.c (MIN_PER_THREAD): Likewise.
3889 (create_parallel_loop): Likewise.
3890 * tree-predcom.c (determine_unroll_factor): Likewise.
3891 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
3892 * tree-sra.c (analyze_all_variable_accesses): Likewise.
3893 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
3894 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
3895 (dse_optimize_redundant_stores): Likewise.
3896 (dse_classify_store): Likewise.
3897 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
3898 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
3899 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
3900 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
3901 (try_peel_loop): Likewise.
3902 (tree_unroll_loops_completely): Likewise.
3903 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
3904 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
3905 (MAX_CONSIDERED_GROUPS): Likewise.
3906 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
3907 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
3908 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
3909 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
3910 (L1_CACHE_SIZE_BYTES): Likewise.
3911 (L2_CACHE_SIZE_BYTES): Likewise.
3912 (should_issue_prefetch_p): Likewise.
3913 (schedule_prefetches): Likewise.
3914 (determine_unroll_factor): Likewise.
3915 (volume_of_references): Likewise.
3916 (add_subscript_strides): Likewise.
3917 (self_reuse_distance): Likewise.
3918 (mem_ref_count_reasonable_p): Likewise.
3919 (insn_to_prefetch_ratio_too_small_p): Likewise.
3920 (loop_prefetch_arrays): Likewise.
3921 (tree_ssa_prefetch_arrays): Likewise.
3922 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
3923 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
3924 (convert_mult_to_fma): Likewise.
3925 (math_opts_dom_walker::after_dom_children): Likewise.
3926 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
3927 (hoist_adjacent_loads): Likewise.
3928 (gate_hoist_loads): Likewise.
3929 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
3930 (compute_partial_antic_aux): Likewise.
3931 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
3932 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
3933 (vn_reference_lookup): Likewise.
3934 (do_rpo_vn): Likewise.
3935 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
3936 * tree-ssa-sink.c (select_best_block): Likewise.
3937 * tree-ssa-strlen.c (new_stridx): Likewise.
3938 (new_addr_stridx): Likewise.
3939 (get_range_strlen_dynamic): Likewise.
3940 (class ssa_name_limit_t): Likewise.
3941 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
3942 (create_variable_info_for_1): Likewise.
3943 (init_alias_vars): Likewise.
3944 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
3945 (tail_merge_optimize): Likewise.
3946 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
3947 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
3948 (thread_jumps::find_jump_threads_backwards): Likewise.
3949 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
3950 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
3951 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
3952 (jump_table_cluster::can_be_handled): Likewise.
3953 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
3954 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
3955 (param_switch_conversion_branch_ratio): Likewise.
3956 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
3957 (vect_enhance_data_refs_alignment): Likewise.
3958 (vect_prune_runtime_alias_test_list): Likewise.
3959 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
3960 (vect_get_datarefs_in_loop): Likewise.
3961 (vect_analyze_loop): Likewise.
3962 * tree-vect-slp.c (vect_slp_bb): Likewise.
3963 * tree-vectorizer.h: Likewise.
3964 * tree-vrp.c (find_switch_asserts): Likewise.
3965 (vrp_prop::check_mem_ref): Likewise.
3966 * tree.c (wide_int_to_tree_1): Likewise.
3967 (cache_integer_cst): Likewise.
3968 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
3969 (reverse_op): Likewise.
3970 (vt_find_locations): Likewise.
3972 2019-11-12 Martin Liska <mliska@suse.cz>
3974 * Makefile.in: Include params.opt.
3975 * flag-types.h (enum parloops_schedule_type): Add
3976 parloops_schedule_type used in params.opt.
3977 * params.opt: New file.
3979 2019-11-12 Martin Liska <mliska@suse.cz>
3981 * common.opt: Remove --param and --param= options.
3982 * opt-functions.awk: Mark CL_PARAMS for options
3983 that have Param keyword.
3984 * opts-common.c (decode_cmdline_options_to_array):
3985 Replace --param key=value with --param=key=value.
3986 * opts.c (print_filtered_help): Remove special
3988 (print_specific_help): Update title for params.
3989 (common_handle_option): Do not handle OPT__param.
3990 opts.h (SET_OPTION_IF_UNSET): New macro.
3991 * doc/options.texi: Document Param keyword.
3993 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
3994 Frederik Harwath <frederik@codesourcery.com>
3995 Thomas Schwinge <thomas@codesourcery.com>
3998 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
3999 enumeration constant.
4000 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4001 (is_gimple_omp_offloaded): Likewise.
4002 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4003 constant. Adjust the value of ORT_NONE accordingly.
4004 (is_gimple_stmt): Handle OACC_SERIAL.
4005 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4006 (gomp_needs_data_present): Likewise.
4007 (gimplify_adjust_omp_clauses): Likewise.
4008 (gimplify_omp_workshare): Handle OACC_SERIAL.
4009 (gimplify_expr): Likewise.
4010 * omp-expand.c (expand_omp_target):
4011 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4012 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4013 * omp-low.c (is_oacc_parallel): Rename function to...
4014 (is_oacc_parallel_or_serial): ... this.
4015 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4016 (scan_sharing_clauses): Adjust accordingly.
4017 (scan_omp_for): Likewise.
4018 (lower_oacc_head_mark): Likewise.
4019 (convert_from_firstprivate_int): Likewise.
4020 (lower_omp_target): Likewise.
4021 (check_omp_nesting_restrictions): Handle
4022 GF_OMP_TARGET_KIND_OACC_SERIAL.
4023 (lower_oacc_reductions): Likewise.
4024 (lower_omp_target): Likewise.
4025 * tree.def (OACC_SERIAL): New tree code.
4026 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4028 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4030 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4033 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4034 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4036 PR tree-optimization/92452
4037 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4038 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4041 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4043 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4046 2019-11-12 Alan Modra <amodra@gmail.com>
4048 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4049 element of unspec vec.
4050 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4052 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4053 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4054 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4055 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4057 2019-11-12 Alan Modra <amodra@gmail.com>
4059 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4060 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4061 (IS_NOMARK_TLSGETADDR): Likewise.
4062 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4063 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4064 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4065 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4066 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4067 (rs6000_indirect_call_template_1): Likewise.
4068 (rs6000_pltseq_template): Likewise.
4069 (rs6000_opt_vars): Remove "tls-markers" entry.
4070 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4072 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4073 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4074 (pltseq_plt_pcrel<mode>): Likewise.
4075 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4076 (call_value_local64): Likewise.
4077 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4078 output and length attribute sub-expression.
4079 (call_value_nonlocal_sysv<mode>),
4080 (call_value_nonlocal_sysv_secure<mode>),
4081 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4082 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4083 (call_value_indirect_pcrel<mode>): Likewise.
4084 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4085 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4086 * configure: Regenerate.
4087 * config.in: Regenerate.
4089 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4091 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4092 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4093 address being a prefixed load/store.
4094 (stack_protect_testdi): Deal with either address being a prefixed
4097 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4100 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4101 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4104 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4106 PR tree-optimization/92420
4107 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4109 (get_group_load_store_type): Use it for reversed SLP accesses.
4111 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4113 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4115 (ipcp_transformation_t::duplicate): Break out from ...
4116 (ipa_node_params_t::duplicate): ... here; add copying of agg
4118 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4119 (ipcp_transformation_t): Add duplicate.
4121 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4124 * doc/install.texi: Document that the minimum MPFR version is
4127 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4129 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4130 use new register constraint letters.
4132 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4134 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4135 as well, if interesting recover the symbol and re-legitimize the
4138 2019-11-11 Martin Liska <mliska@suse.cz>
4140 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4143 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4145 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4146 account when checking if there are enough iterations to vectorize
4149 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4150 Kwok Cheung Yeung <kcy@codesourcery.com>
4152 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4153 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4154 (LANG_HOOKS_DECLS): Rename also here.
4155 * langhooks.h (lang_hooks_for_decls): Rename
4156 omp_is_optional_argument to omp_check_optional_argument; take
4157 additional bool argument.
4158 * omp-general.h (omp_check_optional_argument): Likewise.
4159 * omp-general.h (omp_check_optional_argument): Likewise.
4160 * omp-low.c (lower_omp_target): Update calls; handle absent
4161 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4163 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4166 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4167 -fPIC and -shared the last to create offload image.
4169 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4171 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4174 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4175 (config.status): Use/depend on it.
4176 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4177 * configure: Regenerate.
4179 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4181 PR tree-optimization/88760
4182 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4183 * gcc/common/config/rs6000/rs6000-common.c
4184 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4185 Turn on -funroll-loops and -munroll-only-small-loops.
4186 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4187 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4188 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4189 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4190 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4191 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4193 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4195 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4196 Make scalar_load, vector_load, unaligned_load and
4197 vector_gather_load cost more to conform hardware latency and
4200 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4202 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4203 (MACHO_SYMBOL_LINKER_VIS_P): New.
4205 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4207 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4208 registers in eliminable_regset.
4210 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4212 * ipa-inline.c (compute_uninlined_call_time,
4213 compute_inlined_call_time): Take edge frequency as
4214 parameter rather than computing it by itself.
4215 (big_speedup_p, edge_badness): Manually CSE sreal
4216 frequency calculations.
4218 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4220 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4221 case where profiles are same.
4223 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4225 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4227 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4229 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4230 args summaries of inlined edge unless it holds info about
4231 described reference.
4233 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4235 * config/rs6000/rs6000.md (CC_any): New mode iterator.
4236 (*movcc_internal1): Rename to...
4237 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
4239 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4241 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4242 (cgraph_node::create_virtual_clone): Copy it.
4243 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4245 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4246 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4248 (propagate_constants_across_call): If callee is not analyzed, give up.
4249 (propagate_constants_topo): Lower to bottom latties of all callees of
4250 functions with ipa-cp disabled.
4251 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4252 (cgraph_edge_brings_value_p): Check for availability first.
4253 (create_specialized_node): Set ipcp_clone.
4254 (ipcp_store_bits_results): Check that info is present.
4255 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4257 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4258 conservative when callee summary is missing.
4259 (remap_edge_summaries): Lookup call summary only when needed.
4260 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
4261 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
4263 (ipa_analyze_node): Use get_create.
4264 (propagate_controlled_uses): Do not propagate when function is not
4266 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
4267 (ipa_read_node_info): Use get_create.
4268 * ipa-prop.h (IPA_NODE_REF): Use get.
4269 (IPA_NODE_REF_GET_CREATE): New.
4271 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4273 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
4276 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4278 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
4279 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4280 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
4281 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4283 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4285 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
4286 capping the growth cumulated.
4287 (offline_size): Break out from ...
4288 (estimate_growth): ... here.
4289 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
4291 (growth_likely_positive): Turn to ...
4292 (growth_positive_p): Re-implement.
4293 * ipa-inline.h (growth_likely_positive): Remove.
4294 (growth_positive_p): Declare.
4295 * ipa-inline.c (want_inline_small_function_p): Use
4297 (want_inline_function_to_all_callers_p): Likewise.
4299 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4301 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
4302 calculation of min_size.
4303 (ipa_update_overall_fn_summary): Likewise.
4305 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4307 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
4308 estimate_edge_devirt_benefit when not computing hints;
4309 do not compute time when not asked for.
4310 (estimate_calls_size_and_time): Pass NULL hints and time when
4311 these are not computed; do not evaluate hint predicates when these are
4313 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
4316 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4318 PR tree-optimization/92401
4319 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
4320 if res_op->code is an expression with code length 1.
4321 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
4322 if res_op->code is an expression with code length 2.
4323 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
4324 if res_op->code is an expression with code length 3.
4326 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
4328 * config/darwin.c (machopic_mcount_stub_name): Validate the
4329 symbol stub name when it is created.
4330 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
4333 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4335 * symtab.c: Fix comment typos.
4336 * cgraphunit.c: Likewise.
4337 * cgraph.h: Likewise.
4338 * cgraphclones.c: Likewise.
4339 * cgraph.c: Likewise.
4340 * varpool.c: Likewise.
4341 * tree-ssa-strlen.c: Likewise.
4342 * ipa-sra.c: Likewise.
4343 (scan_expr_access, check_all_callers_for_issues): Fix typo
4346 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
4348 * config/darwin-protos.h: Add include quard.
4350 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
4352 * range-op.h (range_operator::fold_range): Return result in a
4353 reference parameter instead of by value.
4354 (range_operator::wi_fold): Same.
4355 * range-op.cc (range_operator::wi_fold): Return result in a reference
4356 parameter instead of by value.
4357 (range_operator::fold_range): Same.
4358 (value_range_from_overflowed_bounds): Same.
4359 (value_range_with_overflow): Same
4360 (create_possibly_reversed_range): Same.
4361 (operator_equal::fold_range): Same.
4362 (operator_not_equal::fold_range): Same.
4363 (operator_lt::fold_range): Same.
4364 (operator_le::fold_range): Same.
4365 (operator_gt::fold_range): Same.
4366 (operator_ge::fold_range): Same.
4367 (operator_plus::wi_fold): Same.
4368 (operator_plus::op1_range): Change call to fold_range.
4369 (operator_plus::op2_range): Change call to fold_range.
4370 (operator_minus::wi_fold): Return result via reference parameter.
4371 (operator_minus::op1_range): Change call to fold_range.
4372 (operator_minus::op2_range): Change call to fold_range.
4373 (operator_min::wi_fold): Return result via reference parameter.
4374 (operator_max::wi_fold): Same.
4375 (cross_product_operator::wi_cross_product): Same.
4376 (operator_mult::wi_fold): Same.
4377 (operator_div::wi_fold): Same.
4378 (operator_div op_floor_div): Fix whitespace.
4379 (operator_exact_divide::op1_range): Change call to fold_range.
4380 (operator_lshift::fold_range): Return result via reference parameter.
4381 (operator_lshift::wi_fold): Same.
4382 (operator_rshift::fold_range): Same.
4383 (operator_rshift::wi_fold): Same.
4384 (operator_cast::fold_range): Same.
4385 (operator_cast::op1_range): Change calls to fold_range.
4386 (operator_logical_and::fold_range): Return result via reference.
4387 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
4388 (operator_bitwise_and::wi_fold): Return result via reference.
4389 (operator_logical_or::fold_range): Same.
4390 (operator_bitwise_or::wi_fold): Same.
4391 (operator_bitwise_xor::wi_fold): Same.
4392 (operator_trunc_mod::wi_fold): Same.
4393 (operator_logical_not::fold_range): Same.
4394 (operator_bitwise_not::fold_range): Same.
4395 (operator_bitwise_not::op1_range): Change call to fold_range.
4396 (operator_cst::fold_range): Return result via reference.
4397 (operator_identity::fold_range): Same.
4398 (operator_abs::wi_fold): Same.
4399 (operator_absu::wi_fold): Same.
4400 (operator_negate::fold_range): Same.
4401 (operator_negate::op1_range): Change call to fold_range.
4402 (operator_addr_expr::fold_range): Return result via reference.
4403 (operator_addr_expr::op1_range): Change call to fold_range.
4404 (operator_pointer_plus::wi_fold): Return result via reference.
4405 (operator_pointer_min_max::wi_fold): Same.
4406 (operator_pointer_and::wi_fold): Same.
4407 (operator_pointer_or::wi_fold): Same.
4408 (range_op_handler): Change call to fold_range.
4410 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
4412 (range_fold_unary_symbolics_p): Same.
4413 (range_fold_binary_expr): Same.
4414 (range_fold_unary_expr): Same.
4416 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4418 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
4419 vector type as an argument rather than reading it from the
4421 (vect_create_epilog_for_reduction): Update accordingly.
4422 (vectorizable_reduction): Likewise.
4423 (vect_transform_cycle_phi): Likewise.
4425 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
4427 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
4428 the comparison codes that make sense for the mode used, and only the
4429 codes that can be done with a single branch instruction.
4431 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4433 PR tree-optimization/92351
4434 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
4435 peeling the main loop for alignment, make sure to set the misalignment
4436 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
4438 2019-11-08 Richard Biener <rguenther@suse.de>
4440 * dbgcnt.def (ivopts_loop): Add.
4441 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
4442 ivopts_loop before optimizing a loop.
4444 2019-11-08 Richard Biener <rguenther@suse.de>
4447 * tree-inline.c (declare_return_variable): Properly handle
4448 type mismatches for the return slot.
4450 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
4453 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
4454 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
4456 (got_helper_needed): New static variable.
4457 (output_load_pcrel_sym): New function.
4458 (get_pc_thunk_name): Remove after inlining...
4459 (load_got_register): ...here. Rework the initialization of the GOT
4460 register and of the GOT helper.
4461 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
4462 (sparc_file_end): Test got_helper_needed to decide whether the GOT
4463 helper must be emitted. Use output_asm_insn instead of fprintf.
4464 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
4465 if optimization is enabled.
4466 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
4467 by calling output_load_pcrel_sym.
4469 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4471 * tree-sra.c (create_access): Delay disqualifying the base
4472 for poly_int values until we know we have a base.
4474 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4476 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
4477 for loops with SIMDUID set. Enable epilogue vectorization for loops
4478 with SIMDLEN set after finding a main loop with a VF that matches it.
4480 2019-11-08 Jakub Jelinek <jakub@redhat.com>
4483 * gimple-ssa-store-merging.c (find_constituent_stores): For return
4484 value only, return non-NULL if there is a single non-clobber
4485 constituent store even if there are constituent clobbers and return
4486 one of clobber constituent stores if all constituent stores are
4488 (split_group): Handle clobbers.
4489 (imm_store_chain_info::output_merged_store): When computing
4490 bzero_first, look after all clobbers at the start. Don't count
4491 clobber stmts in orig_num_stmts, except if the first orig store is
4492 a clobber covering the whole area and split_stores cover the whole
4493 area, consider equal number of stmts ok. Punt if split_stores
4494 contains only ->orig stores and their number plus number of original
4495 clobbers is equal to original number of stmts. For ->orig, look past
4496 clobbers in the constituent stores.
4497 (imm_store_chain_info::output_merged_stores): Don't remove clobber
4499 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
4501 (store_valid_for_store_merging_p): Allow clobber stmts.
4502 (verify_clear_bit_region_be): Fix up a thinko in function comment.
4505 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
4506 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
4508 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
4509 force creation of a unique data.stack_parm slot.
4511 2019-11-08 Richard Biener <rguenther@suse.de>
4513 * genmatch.c (expr::gen_transform): Use the resimplify
4514 member function instead of hard-coding the gimple_resimplifyN variant.
4515 (dt_simplify::gen_1): Likewise.
4517 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4519 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4522 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4524 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
4525 instead of INTEGER_CST.
4527 2019-11-08 Richard Biener <rguenther@suse.de>
4529 PR tree-optimization/92324
4530 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4531 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
4532 sign-conversions as necessary.
4533 (vectorizable_reduction): Reject conversions in the chain
4534 that are not sign-conversions, base analysis on a non-converting
4535 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
4536 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
4538 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
4539 (STMT_VINFO_REDUC_VECTYPE): Likewise.
4541 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
4544 * config/avr/avr.opt (-mdouble=, -mlong-double=):
4545 Fix a missing '-' when displaying these options in the
4548 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4550 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
4552 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4554 * config/aarch64/aarch64-builtins.c
4555 (aarch64_builtin_vectorized_function): Remove bswap handling.
4557 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4559 * tree-core.h (tree_type_common::indivisible_p): New member variable.
4560 * tree.h (TYPE_INDIVISIBLE_P): New macro.
4561 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4562 Treat the vector types as indivisible.
4564 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4566 * optabs.def (gather_load_optab, mask_gather_load_optab)
4567 (scatter_store_optab, mask_scatter_store_optab): Turn into
4568 conversion optabs, with the offset mode given explicitly.
4569 * doc/md.texi: Update accordingly.
4570 * config/aarch64/aarch64-sve-builtins-base.cc
4571 (svld1_gather_impl::expand): Likewise.
4572 (svst1_scatter_impl::expand): Likewise.
4573 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
4574 (expand_scatter_store_optab_fn): Likewise.
4575 (direct_gather_load_optab_supported_p): Likewise.
4576 (direct_scatter_store_optab_supported_p): Likewise.
4577 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
4579 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
4580 (internal_gather_scatter_fn_supported_p): Replace the offset sign
4581 argument with the offset vector type. Require the two vector
4582 types to have the same number of elements but allow their element
4583 sizes to be different. Treat the optabs as conversion optabs.
4584 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
4585 prototype accordingly.
4586 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
4587 (supports_vec_convert_optab_p): ...this new function.
4588 (supports_vec_gather_load_p): Update accordingly.
4589 (supports_vec_scatter_store_p): Likewise.
4590 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
4591 Replace the offset sign and bits parameters with a scalar type tree.
4592 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
4593 Pass back the offset vector type instead of the scalar element type.
4594 Allow the offset to be wider than the memory elements. Search for
4595 an offset type that the target supports, stopping once we've
4596 reached the maximum of the element size and pointer size.
4597 Update call to internal_gather_scatter_fn_supported_p.
4598 (vect_check_gather_scatter): Update calls accordingly.
4599 When testing a new scale before knowing the final offset type,
4600 check whether the scale is supported for any signed or unsigned
4601 offset type. Check whether the target supports the source and
4602 target types of a conversion before deciding whether to look
4603 through the conversion. Record the chosen offset_vectype.
4604 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
4605 (vect_recog_gather_scatter_pattern): Get the scalar offset type
4606 directly from the gs_info's offset_vectype instead. Pass a zero
4607 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
4608 * tree-vect-stmts.c (check_load_store_masking): Update call to
4609 internal_gather_scatter_fn_supported_p, passing the offset vector
4610 type recorded in the gs_info.
4611 (vect_truncate_gather_scatter_offset): Update call to
4612 vect_check_gather_scatter, leaving it to search for a valid
4614 (vect_use_strided_gather_scatters_p): Convert the offset to the
4615 element type of the gs_info's offset_vectype.
4616 (vect_get_gather_scatter_ops): Get the offset vector type directly
4618 (vect_get_strided_load_store_ops): Likewise.
4619 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
4620 and IFN_MASK_GATHER_LOAD.
4621 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
4622 (gather_load<mode><v_int_equiv>): ...this.
4623 (mask_gather_load<mode>): Rename to...
4624 (mask_gather_load<mode><v_int_equiv>): ...this.
4625 (scatter_store<mode>): Rename to...
4626 (scatter_store<mode><v_int_equiv>): ...this.
4627 (mask_scatter_store<mode>): Rename to...
4628 (mask_scatter_store<mode><v_int_equiv>): ...this.
4630 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
4633 * config/rs6000/predicates.md
4634 (signed_or_equality_comparison_operator): New predicate.
4635 (unsigned_or_equality_comparison_operator): Likewise.
4636 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
4637 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
4638 * config/rs6000/vector.md
4639 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
4640 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
4641 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
4642 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
4643 vector modes and same-size integer vector modes.
4644 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
4645 (vector_lt<mode> for VEC_F): New expand.
4646 (vector_le<mode> for VEC_F): Likewise.
4647 (vector_ne<mode> for VEC_F): Likewise.
4648 (vector_unge<mode> for VEC_F): Likewise.
4649 (vector_ungt<mode> for VEC_F): Likewise.
4650 (vector_unle<mode> for VEC_F): Likewise.
4651 (vector_unlt<mode> for VEC_F): Likewise.
4652 (vector_uneq<mode>): Expose name.
4653 (vector_ltgt<mode>): Likewise.
4654 (vector_unordered<mode>): Likewise.
4655 (vector_ordered<mode>): Likewise.
4657 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
4660 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
4661 Enhance ix86_expand_vector_init_concat.
4663 2019-11-08 Joseph Myers <joseph@codesourcery.com>
4665 * doc/invoke.texi (-Wold-style-definition): Document () not being
4666 considered an old-style definition for C2x.
4668 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
4670 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
4672 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
4673 insn patterns using ldcw instruction.
4674 (memory_barrier): Remove insn pattern using sync instruction.
4675 * config/pa/pa.opt (coherent-ldcw): New option.
4676 (ordered): New option.
4678 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4680 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
4683 2019-11-07 Jakub Jelinek <jakub@redhat.com>
4685 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
4686 typo - mistmatch -> mismatch.
4687 * ipa-profile.c (ipa_profile): Likewise.
4688 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
4689 - mistmatch -> mismatch.
4691 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4693 * simplify-rtx.c (comparison_to_mask): New function.
4694 (mask_to_comparison): New function.
4695 (simplify_logical_relational_operation): New function.
4696 (simplify_binary_operation_1): Call
4697 simplify_logical_relational_operation.
4699 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
4702 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
4703 modes for integer constants.
4705 2019-11-07 Jan Hubicka <jh@suse.cz>
4708 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
4711 2019-11-07 Jan Hubicka <jh@suse.cz>
4713 * optc-save-gen.awk: Generate cl_target_option_free
4714 and cl_optimization_option_free.
4715 * opth-en.awk: Declare cl_target_option_free
4716 and cl_optimization_option_free.
4717 * tree.c (free_node): Use it.
4719 2019-11-06 Jan Hubicka <jh@suse.cz>
4721 * lto-streamer-in.c: Include alloc-pool.h.
4722 (freeing_string_slot_hasher): Remove.
4723 (string_slot_allocator): New object allocator.
4724 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
4725 (file_name_obstack): New obstack.
4726 (canon_file_name): Allocate in obstack and allocator.
4727 (lto_reader_init): Initialize obstack and allocator.
4728 (lto_free_file_name_hash): New function.
4729 * lto-streamer.h (lto_free_file_name_hash): New.
4731 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
4733 PR tree-optimization/89134
4734 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
4735 * params.def: Add min-loop-cond-split-prob.
4736 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
4737 outside checks on loop into the function.
4738 (split_info): New class.
4739 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
4740 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
4741 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
4742 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
4743 (stmt_semi_invariant_p, branch_removable_p): Likewise.
4744 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
4745 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
4746 (split_loop_on_cond): Likewise.
4747 (tree_ssa_split_loops): Add loop split on conditional statement.
4749 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
4751 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
4754 2019-11-07 Richard Biener <rguenther@suse.de>
4756 PR tree-optimization/92405
4757 * tree-vect-loop.c (vectorizable_reduction): Appropriately
4758 restrict lane-reducing ops to single stmt chains.
4760 2019-11-07 Martin Jambor <mjambor@suse.cz>
4763 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
4764 * cgraph.h (gimple_check_call_matching_types): Remove
4765 * cgraph.c (gimple_check_call_args): Likewise.
4766 (gimple_check_call_matching_types): Likewise.
4767 (symbol_table::create_edge): Do not call
4768 gimple_check_call_matching_types.
4769 (cgraph_edge::make_direct): Likewise.
4770 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4771 * value-prof.h (check_ic_target): Remove.
4772 * value-prof.c (check_ic_target): Remove.
4773 (gimple_ic_transform): Do nat call check_ic_target.
4774 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
4775 (afdo_indirect_call): Likewise.
4776 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
4777 gimple_check_call_matching_types.
4778 * ipa-inline.c (early_inliner): Likewise.
4780 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4782 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
4783 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
4784 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
4785 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4786 * config/arm/iterators.md (USSAT16): New int_iterator.
4787 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
4789 * config/arm/predicates.md (ssat16_imm): New predicate.
4790 (usat16_imm): Likewise.
4791 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
4793 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4795 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
4797 (arm_<simd32_op>): New define_expands.
4798 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
4799 __smuad, __smuadx): Define.
4800 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4801 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
4802 (SIMD32_BINOP_Q): Likewise.
4803 (simd32_op): Handle the above.
4804 * config/arm/unspecs.md: Define unspecs for the above.
4806 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4808 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
4809 * config/arm/arm.md (APSRGE_REGNUM): Define.
4810 (arm_<simd32_op>): New define_insn.
4811 (arm_sel): Likewise.
4812 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
4813 (CALL_USED_REGISTERS): Likewise.
4814 (REG_ALLOC_ORDER): Likewise.
4815 (FIRST_PSEUDO_REGISTER): Update value.
4816 (ARM_GE_BITS_READ): Define.
4817 * config/arm/arm.c (arm_conditional_register_usage): Clear
4818 APSRGE_REGNUM from operand_reg_set.
4819 (arm_ge_bits_access): Define.
4820 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
4822 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
4823 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
4824 FAIL if ARM_GE_BITS_READ.
4825 (*arm_add<mode>3): New define_insn.
4826 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
4827 (*arm_sub<mode>3): New define_insn.
4828 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
4829 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
4831 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4832 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
4833 (simd32_op): Handle the above.
4834 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
4835 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
4836 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
4837 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
4839 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4841 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
4842 (arm_smlabb): New define_expand.
4843 (*maddhisi4tb): Rename to...
4844 (maddhisi4tb): ... This.
4845 (*maddhisi4tt): Rename to...
4846 (maddhisi4tt): ... This.
4847 (arm_smlatb_setq): New define_insn.
4848 (arm_smlatb): New define_expand.
4849 (arm_smlatt_setq): New define_insn.
4850 (arm_smlatt): New define_expand.
4851 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
4852 (arm_<smlaw_op>): New define_expand.
4853 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
4854 __smlawb, __smlawt): Define.
4855 * config/arm_acle_builtins.def: Define builtins for the above.
4856 * config/arm/iterators.md (SMLAWBT): New int_iterator.
4857 (slaw_op): New int_attribute.
4858 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
4860 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4862 * config/arm/arm.md (arm_<ss_op>): New define_expand.
4863 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
4864 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
4865 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
4866 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
4867 (ss_op): New code_attr.
4869 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4871 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
4872 * config/arm/arm.md (APSRQ_REGNUM): Define.
4873 (add_setq): New define_subst.
4874 (add_clobber_q_name): New define_subst_attr.
4875 (add_clobber_q_pred): Likewise.
4876 (maddhisi4): Change to define_expand. Split into mult and add if
4878 (arm_maddhisi4): New define_insn.
4879 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
4880 (*maddhisi4tt): Likewise.
4881 (arm_ssat): New define_expand.
4882 (arm_usat): Likewise.
4883 (arm_get_apsr): New define_insn.
4884 (arm_set_apsr): Likewise.
4885 (arm_saturation_occurred): New define_expand.
4886 (arm_set_saturation): Likewise.
4887 (*satsi_<SAT:code>): Rename to...
4888 (satsi_<SAT:code><add_clobber_q_name>): ... This.
4889 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
4890 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
4891 (CALL_USED_REGISTERS): Mark apsrq.
4892 (FIRST_PSEUDO_REGISTER): Update value.
4893 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
4894 (machine_function): Add q_bit_access.
4895 (ARM_Q_BIT_READ): Define.
4896 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
4897 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
4899 (arm_q_bit_access): Define.
4900 * config/arm/arm-builtins.c: Include stringpool.h.
4901 (arm_sat_binop_imm_qualifiers,
4902 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
4903 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
4904 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
4905 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
4906 SET_SAT_QUALIFIERS): Likewise.
4907 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
4908 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
4909 Handle 0 argument expander.
4910 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
4911 (arm_check_builtin_call): Define.
4912 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
4913 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
4914 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
4915 (arm_q_bit_access): Likewise.
4916 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
4917 __saturation_occurred, __set_saturation_occurred): Define.
4918 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
4919 saturation_occurred, set_saturation_occurred.
4920 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
4921 (UNSPEC_APSR_READ): Likewise.
4922 (VUNSPEC_APSR_WRITE): Likewise.
4923 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
4924 (*arm_ssadd<mode>3): New define_insn.
4925 (sssub<mode>3): Convert to define_expand.
4926 (*arm_sssub<mode>3): New define_insn.
4927 (ssmulsa3): Convert to define_expand.
4928 (*arm_ssmulsa3): New define_insn.
4929 (usmulusa3): Convert to define_expand.
4930 (*arm_usmulusa3): New define_insn.
4931 (ssmulha3): FAIL if ARM_Q_BIT_READ.
4932 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
4933 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
4935 2019-11-07 Martin Liska <mliska@suse.cz>
4938 * cgraph.c (delete_function_version): Clear global
4939 variable version_info_node if equal to deleted
4942 2019-11-07 Martin Liska <mliska@suse.cz>
4944 * fold-const.c (operand_compare::operand_equal_p): Add comparison
4945 of CONSTRUCTOR_NO_CLEARING.
4946 (operand_compare::hash_operand): Likewise.
4948 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
4950 Support 64-bit double and 64-bit long double configurations.
4953 * config.gcc (tm_defines) [avr]: Set from --with-double=,
4954 --with-long-double=.
4955 * config/avr/t-multilib: Remove.
4956 * config/avr/t-avr: Output of genmultilib.awk is now fully
4957 dynamically generated and no more part of the repo.
4958 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
4959 Pass them down to...
4960 * config/avr/genmultilib.awk: ...here and handle them.
4961 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
4962 (-mlong-double=, avr_long_double). New option and var.
4963 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
4964 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
4965 Set default as requested by --with-double=
4966 (TARGET_HANDLE_OPTION): Define to this...
4967 (avr_handle_option): ...new hook worker.
4968 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
4969 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
4970 (avr_double_lib): New proto for spec function.
4971 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
4972 (DRIVER_SELF_SPECS): Call %:double-lib.
4973 * config/avr/avr.c (avr_option_override): Assert
4974 sizeof(long double) >= sizeof(double) for the target.
4975 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
4976 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
4977 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
4978 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
4979 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
4980 New built-in define depending on --with-double=, --with-long-double=.
4981 * config/avr/driver-avr.c (avr_double_lib): New spec function.
4982 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
4983 * doc/install.texi (Cross-Compiler-Specific Options)
4984 <--with-double=, --with-long-double=>: Doc.
4986 2019-11-07 Richard Biener <rguenther@suse.de>
4988 * dbgcnt.def (gimple_unroll): New.
4989 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
4990 gimple_unroll debug counter before applying transform.
4991 (try_peel_loop): Likewise.
4993 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
4995 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
4996 frame pointer in multiple registers.
4997 (ira_setup_eliminable_regset): Setup eliminable_regset,
4998 ira_no_alloc_regs and regs_ever_live for frame pointer in
5001 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5003 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5006 2019-11-06 Jan Hubicka <jh@suse.cz>
5008 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5010 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5011 Do not silently ignore summary corruptions.
5013 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5015 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5016 the epilogue if there are peeled iterations for it to handle.
5018 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5020 * config/arc/arc.c (arc_split_ior): Add asserts.
5021 (arc_split_mov_const): Likewise.
5022 (arc_check_ior_const): Do not match known short immediate values.
5023 * config/arc/arc.md (movsi): Don't split predicated instructions
5026 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5028 * config/arc/arc.opt (mea): Update help string.
5029 * doc/invoke.texi(ARC): Update mea option info.
5031 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5033 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5034 (zero_extendqisi2_ac): Likewise.
5035 (zero_extendhisi2_i): Likewise.
5036 (extendqihi2_i): Likewise.
5037 (extendqisi2_ac): Likewise.
5038 (extendhisi2_i): Likewise.
5040 2019-11-06 Richard Biener <rguenther@suse.de>
5042 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5043 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5044 Simplify single_defuse_cycle condition.
5046 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5048 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5049 epilogue loop, make sure that the VF is small enough or that
5050 the epilogue loop can be fully-masked.
5052 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5054 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5055 loop when we've finished, rather than returning directly from
5056 the loop. Use a local variable to track whether we're still
5057 searching for the preferred simdlen. Make vect_epilogues
5058 record whether the next iteration should try to treat the
5059 loop as an epilogue.
5061 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5063 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5064 __arc_hard_float__, __ARC_HARD_FLOAT__,
5065 __arc_soft_float__, __ARC_SOFT_FLOAT__
5067 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5069 PR tree-optimization/92317
5070 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5071 update phi's with constant phi arguments.
5073 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5074 Alexandre Oliva <oliva@adacore.com>
5076 * common.opt (-fcallgraph-info[=]): New option.
5077 * doc/invoke.texi (Developer options): Document it.
5078 * opts.c (common_handle_option): Handle it.
5079 * builtins.c (expand_builtin_alloca): Record allocation if
5080 -fcallgraph-info=da.
5081 * calls.c (expand_call): If -fcallgraph-info, record the call.
5082 (emit_library_call_value_1): Likewise.
5083 * flag-types.h (enum callgraph_info_type): New type.
5084 * explow.c: Include stringpool.h.
5085 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5086 * function.c (allocate_stack_usage_info): New.
5087 (allocate_struct_function): Call it for -fcallgraph-info.
5088 (prepare_function_start): Call it otherwise.
5089 (record_final_call, record_dynamic_alloc): New.
5090 * function.h (struct callinfo_callee): New.
5091 (CALLEE_FROM_CGRAPH_P): New.
5092 (struct callinfo_dalloc): New.
5093 (struct stack_usage): Add callees and dallocs.
5094 (record_final_call, record_dynamic_alloc): Declare.
5095 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5096 object if -fcallgraph-info=da.
5097 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5098 * print-tree.h (print_decl_identifier): Declare.
5099 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5100 * print-tree.c: Include print-tree.h.
5101 (print_decl_identifier): New function.
5102 * toplev.c: Include print-tree.h.
5103 (callgraph_info_file): New global variable.
5104 (callgraph_info_external_printed): Likewise.
5105 (output_stack_usage): Rename to...
5106 (output_stack_usage_1): ... this. Make it static, add cf
5107 parameter. If -fcallgraph-info=su, print stack usage to cf.
5108 If -fstack-usage, use print_decl_identifier for
5110 (INDIRECT_CALL_NAME): New.
5111 (dump_final_node_vcg_start): New.
5112 (dump_final_callee_vcg, dump_final_node_vcg): New.
5113 (output_stack_usage): New.
5114 (lang_dependent_init): Open and start file if
5115 -fcallgraph-info. Allocated callgraph_info_external_printed.
5116 (finalize): If callgraph_info_file is not null, finish it,
5117 close it, and release callgraph_info_external_printed.
5119 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5120 Frederik Harwath <frederik@codesourcery.com>
5121 Thomas Schwinge <thomas@codesourcery.com>
5123 * omp-low.c (struct omp_context): New fields
5124 local_reduction_clauses, outer_reduction_clauses.
5125 (new_omp_context): Initialize these.
5126 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5127 (scan_omp_for): Check reduction clauses for incorrect nesting.
5129 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5132 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5133 operands with non-memory constraints.
5135 2019-11-05 Martin Sebor <msebor@redhat.com>
5137 PR tree-optimization/92373
5138 * tree.c (component_ref_size): Only consider initializers of objects
5139 of matching struct types.
5140 Return null for instances of interior zero-length arrays.
5142 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5144 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5146 2019-11-05 Jason Merrill <jason@redhat.com>
5148 PR tree-optimization/91825
5149 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5151 2019-11-05 Jim Wilson <jimw@sifive.com>
5154 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5155 optimize_insn_for_speed_p is true.
5157 2019-11-05 Martin Sebor <msebor@redhat.com>
5161 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5163 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5164 name and location for a temporary variable.
5166 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5168 * tree-vrp.c (value_range::value_range): Fix whitespace.
5169 (defined_ranges_p): Same.
5170 (range_fold_binary_symbolics_p): Same.
5171 (value_range::intersect_helper): Same.
5172 (value_range::union_helper): Same.
5173 * tree-vrp.h (range_fold_binary_expr): Same.
5175 2019-11-04 Martin Sebor <msebor@redhat.com>
5179 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5180 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5181 of message printed in a warning for empty arrays.
5182 (vrp_prop::check_mem_ref): Also handle function parameters and
5185 2019-11-05 Richard Biener <rguenther@suse.de>
5187 PR tree-optimization/92371
5188 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5189 on the original stmt of live stmts in the chain.
5190 (vectorizable_live_operation): Look at the original stmt when
5191 checking STMT_VINFO_REDUC_DEF.
5193 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5195 * gimple-fold.c, gimple-loop-versioning.cc,
5196 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5197 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5198 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5199 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5200 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5201 value_range_equiv, and value_range_base to value_range.
5203 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5205 * expr.c (build_personality_function): Fix generated type to
5206 match actual personality functions.
5208 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5210 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5211 enough bytes for the NULL character.
5213 2019-11-05 Richard Biener <rguenther@suse.de>
5215 PR tree-optimization/92280
5216 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5217 had a single use do not create a new CTOR.
5218 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5219 BIT_FIELD_REF of a CTOR via GENERIC.
5221 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5223 * config/s390/s390.c (s390_vector_alignment): Check if the value
5224 fits into uhwi before using it.
5226 2019-11-05 Martin Liska <mliska@suse.cz>
5228 * symbol-summary.h: Use ggc_delete.
5230 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5232 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5233 Change vec_perm field to 10.
5235 2019-11-05 Arnaud Charlet <charlet@adacore.com>
5237 * doc/install.texi: Further fix syntax for html generation.
5239 2019-11-05 Martin Liska <mliska@suse.cz>
5241 * symbol-summary.h: Rename allocator to m_allocator and
5244 2019-11-05 Richard Biener <rguenther@suse.de>
5246 PR tree-optimization/92324
5247 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5248 all signed or unsigned operations.
5250 2019-11-05 Jan Hubicka <jh@suse.cz>
5252 * hsa-brig.c: Include alloc-pool.h
5253 * hsa-dump.c: Likewise.
5254 * hsa-gen.c: Likewise.
5255 * hse-regalloc.c: Likewise.
5256 * ipa-hsa.c: Likewise.
5257 * ipa-predicate.c: Likewise.
5258 * ipa-reference.c: Likewise.
5259 * ipa-sra.c: Likewise.
5260 * omp-expand.c: Likewise.
5261 * omp-general.c: Likewise.
5262 * omp-low.c: Likewise.
5263 * sumbol-summary.h (function_summary_base): Add allocator.
5264 (function_summary<T *>::function_summary): Update construction.
5265 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
5266 (call_summary_base): Add allcator.
5267 (call_summary<T *>::call_summary): Update construction.
5268 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
5270 2019-11-05 Jakub Jelinek <jakub@redhat.com>
5272 PR tree-optimization/91945
5273 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
5274 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
5277 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5279 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
5280 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
5281 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
5282 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
5283 (vrp_set_zero_nonzero_bits): Move to...
5284 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
5285 (vr_values::simplify_bit_ops_using_ranges): Rename
5286 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
5288 2019-11-05 Martin Liska <mliska@suse.cz>
5291 * fold-const.c (operand_compare::hash_operand): Remove
5292 FIELD_DECL handling.
5294 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5296 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
5297 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
5300 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5302 * tree-vrp.c (value_range_base::operator==): Use equal_p to
5303 properly handle symbolics.
5304 (range_compatible_p): Remove.
5306 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
5308 * common.opt (-fabi-version): Document =14.
5309 * doc/invoke.texi (C++ Dialect Options): Likewise.
5311 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5313 * tree-vrp.c (value_range_base::set): Do not special case pointers.
5315 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5317 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
5318 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5319 gcn_omp_device_kind_arch_isa.
5320 * config/gcn/t-omp-device: New file.
5321 * configure.ac: Support gcn for omp_device_property.
5322 * configure: Regenerate.
5324 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5326 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
5327 (vrp_val_max): Same.
5328 (vrp_val_is_min): Same.
5329 (vrp_val_is_max): Same.
5330 (value_range_base::nonzero_p): Remove last argument to
5332 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
5333 (vrp_val_max): Same.
5334 (vrp_val_is_min): Same.
5335 (vrp_val_is_max): Same.
5336 (value_range_base::set_varying): Remove last argument to vrp_val*.
5337 (value_range_base::dump): Same.
5338 (value_range_base::set): Same.
5339 (value_range_base::normalize_symbolics): Same.
5340 (value_range_base::num_pairs): Same.
5341 (value_range_base::lower_bound): Same.
5342 (value_range_base::upper_bound): Same.
5343 (ranges_from_anti_range): Remove handle_pointers argument.
5344 (value_range_base::singleton_p): Remove last argument to
5345 ranges_from_anti_range.
5347 2019-11-04 Jan Hubicka <jh@suse.cz>
5349 * ipa-reference.c (init_function_info): Initialize
5350 info->global.statics_read.
5352 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5354 * tree-vrp.c (value_range_base::invert): Use constructors to build
5357 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5359 * tree-vrp.c (range_int_cst_singleton_p): Remove.
5360 * tree-vrp.h (range_int_cst_singleton_p): Remove.
5362 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5364 * tree-vrp.c (value_range_base::normalize_addresses): Handle
5367 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5369 * tree-vrp.c (dump_assert_info): New.
5370 (dump_asserts_info): New.
5372 2019-11-04 Jan Hubicka <jh@suse.cz>
5374 * ipa-inline-transform.c: Include ipa-utils.h
5375 (inline_call): Set thunk_expansion flag.
5376 * ipa-utils.h (thunk_expansion): Declare.
5377 * ipa-devirt.c (thunk_expansion): New global var.
5378 (devirt_node_removal_hook): Do not invalidate cache while
5379 doing thunk expansion.
5381 2019-11-04 Tamar Christina <tamar.christina@arm.com>
5383 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
5385 2019-11-04 Martin Sebor <msebor@redhat.com>
5387 PR tree-optimization/92349
5388 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
5389 memebers have constant sizes.
5391 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
5393 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
5395 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
5396 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
5399 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
5401 * expr.c (store_constructor): Modify to handle single element vectors.
5402 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
5404 (vect_slp_check_for_constructors): New function.
5405 (vect_slp_analyze_bb_1): Call new function to check for vector
5407 (vectorize_slp_instance_root_stmt): New function.
5408 (vect_schedule_slp): Call new function to vectorize root stmt of vector
5410 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
5412 2019-11-04 Richard Biener <rguenther@suse.de>
5414 PR tree-optimization/92345
5415 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
5416 we produced a reduction chain.
5417 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
5418 LOOP_VINFO_REDUCTIONS.
5420 2019-11-04 Jan Hubicka <jh@suse.cz>
5422 * cgraphclones.c (cgraph_node::create_version_clone): Do not
5423 duplicate summaries.
5424 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
5426 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
5427 access call summaries.
5428 (dump_ipa_call_summary): Be ready for missing edge summaries.
5429 (analyze_function_body): Use get instead of get_create to access
5431 (estimate_calls_size_and_time): Do not access summaries of
5432 inlined edges; sanity check they are missing.
5433 (ipa_call_context::estimate_size_and_time): Use get instead
5434 of get_create to access node summary.
5435 (inline_update_callee_summaries): Do not update depth of
5437 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
5439 (ipa_merge_fn_summary_after_inlining): Use get instead
5441 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
5442 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
5444 (initialize_growth_caches): Update.
5445 (do_estimate_edge_time): Remove redundant copy of context.
5446 (ipa_remove_from_growth_caches): New function.
5447 * ipa-inline.c (flatten_function): Update overall summary
5448 only when optimizing.
5449 (inline_to_all_callers): Update overall summary of function
5451 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
5452 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
5455 2019-11-04 Richard Biener <rguenther@suse.de>
5457 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
5458 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
5460 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
5462 * ggc-common.c: Include system.h before malloc.h.
5464 2019-11-04 Alexandre Oliva <oliva@adacore.com>
5466 * configure.ac: Pass --enable-obsolete=* and
5467 --enable-option-checking=* down to build configure, and fail
5468 if it fails. AC_SUBST HAVE_AUTO_BUILD.
5469 * configure: Rebuild.
5470 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
5471 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
5473 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5475 * config.in: Regenerate.
5476 * config/msp430/msp430.c (msp430_option_override): Emit an error if
5477 -mtiny-printf is used without GCC being configured with
5478 --enable-newlib-nano-formatted-io.
5479 * config/msp430/msp430.h (LINK_SPEC): Pass
5480 "--wrap puts --wrap printf" when -mtiny-printf is used.
5481 * config/msp430/msp430.opt: Document -mtiny-printf.
5482 * configure: Regenerate.
5483 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
5484 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
5485 --enable-newlib-nano-formatted-io is passed.
5486 * doc/invoke.texi: Document -mtiny-printf.
5488 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5490 * configure: Regenerate.
5492 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5494 * config/msp430/driver-msp430.c
5495 (msp430_get_linker_devices_include_path): New spec function.
5496 * config/msp430/msp430-devices.c (msp430_dirname): New function.
5497 (extract_devices_dir_from_exec_prefix): New function.
5498 (extract_devices_dir_from_collect_gcc): New function.
5499 (msp430_check_env_var_for_devices): New function.
5500 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
5501 (parse_devices_csv): Call msp430_check_env_var_for_devices if
5502 devices.csv was not found using other methods.
5503 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
5505 (msp430_dirname): Likewise.
5506 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
5507 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
5508 msp430_get_linker_devices_include_path.
5509 (TARGET_EXTRA_PRE_INCLUDES): Define.
5510 * doc/invoke.texi: Document new ways of searching for support files.
5512 2019-11-04 Richard Biener <rguenther@suse.de>
5514 PR tree-optimization/92301
5515 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
5516 as required by epilogue generation
5518 2019-11-04 Martin Liska <mliska@suse.cz>
5521 * fold-const.c (operand_compare::hash_operand): Fix field
5522 hashing of CONSTRUCTOR.
5524 2019-11-04 Martin Liska <mliska@suse.cz>
5526 * ggc.h (ggc_delete): New function.
5527 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
5528 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
5529 (ipa_free_all_node_params): Likewise.
5530 * ipa-sra.c (ipa_sra_analysis): Likewise.
5532 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5534 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
5535 set_switch_stmt_execution_predicate, compute_bb_predicates,
5536 will_be_nonconstant_expr_predicate,
5537 phi_result_unknown_predicate,
5538 analyze_function_body): Pass arround params summary.
5539 (ipa_call_context::duplicate_from): New comment;
5540 only duplicate useful values.
5541 (ipa_call_context::equal_to): Only compare useful values.
5542 (remap_edge_summaries): Pass params_summary.
5543 (remap_hint_predicate): Likewise.
5544 (ipa_merge_fn_summary_after_inlining): Likewise.
5545 (inline_read_section): Initialize params summary used flags.
5546 * ipa-predicate.c (predicate::remap_after_inlining): Pass
5547 around param_summary.
5548 (add_condition): Initialized used params summary flags.
5549 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
5550 (inline_param_summary::useless_p): New predicate.
5551 (remap_after_inlining, add_condition): Update prototype
5552 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
5554 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
5556 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
5557 (ipa_analyze_virtual_call_uses): Likewise.
5558 (update_indirect_edges_after_inlining): Update param summaries.
5559 (ipa_print_node_params): Print used flags.
5560 (ipa_read_indirect_edge_info): Update param summareis.
5561 * ipa-prop.h (ipa_param_descriptor): Add
5562 used_by_ipa_predicates, used_by_indirect_call
5563 and used_by_polymorphic_call.
5564 (ipa_set_param_used_by_ipa_predicates,
5565 ipa_set_param_used_by_indirect_call,
5566 ipa_set_param_used_by_polymorphic_call,
5567 ipa_is_param_used_by_ipa_predicates,
5568 ipa_is_param_used_by_indirect_call,
5569 ipa_is_param_used_by_polymorphic_call): New inline functions.
5571 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5573 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
5575 (ipa_call_context::release): Add ALL parameter.
5576 (ipa_call_context::equal_to): New member function.
5577 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
5578 duplicate_form, release, equal_to and exists_p member functoins.
5579 * ipa-inline-analysis.c (node_context_cache_entry): New
5581 (node_context_summary): Likewise.
5582 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
5583 node_context_clear): New static vars.
5584 (initialize_growth_caches): New function.
5585 (free_growth_caches): Also delete node_context_cache; output stats.
5586 (do_estimate_edge_time): Cache contexts.
5587 (reset_node_cache): New function.
5588 * ipa-inline.c (reset_edge_caches): Reset also node cache.
5589 (inline_small_functions): Initialize growth caches.
5590 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
5592 * ipa-predicate.h (inline_param_summary::equal_to): New.
5593 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
5594 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
5595 (ipa_agg_jump_function): Implement equal_to member function.
5597 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5599 * ipa-fnsummary.c (inline_read_section): Set vector size
5602 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5604 * ipa-fnsummary.c (ipa_call_context): New constructor.
5605 (estimate_node_size_and_time): Turn to ...
5606 (ipa_call_context::estimate_size_and_time): ... this one.
5607 (ipa_call_context::release): New.
5608 * ipa-fnsummary.h (ipa_call_context): New class.
5609 (estimate_node_size_and_time): Remove.
5610 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
5611 do_estimate_edge_hints): Update.
5613 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5615 * config.in: Regenerate.
5616 * configure: Regenerate.
5617 * configure.ac: Check for mallinfo.
5618 * ggc-common.c: Include malloc.h if available;
5620 (report_heap_memory_use): New functoin.
5621 * ggc-page.c (ggc_grow): Do not print "start".
5622 * ggc.h (report_heap_memory_use): Declare.
5623 * pases.c (execute_one_pass): Report memory after IPA passes.
5624 (ipa_read_summaries_1): Likewise.
5625 (ipa_read_optimization_summaries_1): Likewise.
5627 2019-11-02 Jakub Jelinek <jakub@redhat.com>
5629 * gimplify.h (omp_construct_selector_matches): Change return
5630 type to int, add a new SCORES argument.
5631 * gimplify.c (omp_construct_selector_matches): Likewise. If
5632 SCORES is non-NULL, compute scores of each construct.
5633 * omp-general.h (omp_get_context_selector): Declare.
5634 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
5635 Adjust omp_construct_selector_matches callers.
5636 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
5637 (omp_context_compute_score): New function.
5638 (omp_resolve_declare_variant): Compute scores and decide based on
5642 * configure.ac: Don't look for omp-device-properties files from
5643 installed offloading compilers. Instead add tmake_file snippets
5644 for configured offloading targets and use files they generate.
5645 * Makefile.in (install): Don't depend on
5646 install-omp-device-properties.
5647 (install-omp-device-properties): Remove goal.
5648 * config/i386/t-omp-device: New file.
5649 * config/i386/t-intelmic (omp-device-properties): Remove goal.
5650 * config/nvptx/t-omp-device: New file.
5651 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
5652 * configure: Regenerated.
5654 * omp-general.h (omp_context_selector_set_compare): Declare.
5655 * omp-general.c (omp_construct_simd_compare,
5656 omp_context_selector_props_compare, omp_context_selector_set_compare,
5657 omp_context_selector_compare): New functions.
5658 (omp_resolve_declare_variant): Prune variants that are strict subset
5661 2019-11-01 Martin Sebor <msebor@redhat.com>
5667 * doc/invoke.texi (-Wzero-length-bounds): Document.
5668 * gimple-match-head.c (try_conditional_simplification): Use memcpy
5669 instead of a hand-rolled loop to avoid PR 92323.
5670 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
5672 (vrp_prop::check_mem_ref): Handle declared struct objects.
5673 * tree.c (last_field): New function.
5674 (array_at_struct_end_p): Handle MEM_REF.
5675 (get_initializer_for): New helper.
5676 (component_ref_size): Add argument. Rename locals. Call
5677 get_initializer_for instead of fold_ctor_reference. Correct handling
5678 of flexible array members.
5679 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
5681 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5683 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
5684 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
5685 UNSPEC_VSX_CVSPUXDS): Remove.
5686 (vsx_xvcvspdp): New define_expand, old define_insn split to...
5687 (vsx_xvcvspdp_be): ... this. New. And...
5688 (vsx_xvcvspdp_le): ... this. New.
5689 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
5690 (vsx_xvcv<su>xwdp_be): ... this. New. And...
5691 (vsx_xvcv<su>xwdp_le): ... this. New.
5692 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
5693 (vsx_xvcvsp<su>xds_be): ... this. New. And...
5694 (vsx_xvcvsp<su>xds_le): ... this. New.
5696 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5698 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
5699 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
5700 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
5701 UNSPEC_VSX_XVCVSPSXWS): Remove.
5702 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
5703 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
5705 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5707 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
5708 (UNSPEC_VSX_XVCDPSP): Remove.
5709 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
5710 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
5712 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
5714 * hooks.c (hook_tree_tree_bool_null): New.
5715 * hooks.h (hook_tree_tree_bool_null): Declare.
5716 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
5717 (LANG_HOOKS_DECLS): Add it.
5718 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
5719 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
5720 (lower_omp_target): Handle Fortran array with descriptor in
5721 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
5723 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
5725 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5726 Assert that the type we store in abi_vector_types is its own
5728 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
5730 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5732 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
5733 from a CONST_INT address when TARGET_THUMB2.
5735 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5737 * config/arm/arm.md (add_not_cin): New insn.
5738 (add_not_shift_cin): Likewise.
5740 2019-10-31 Martin Liska <mliska@suse.cz>
5742 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
5743 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
5744 and compare_memory_operand.
5746 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5748 * configure.ac: Compute and substitute omp_device_properties and
5749 omp_device_property_deps.
5750 * Makefile.in (generated_files): Add omp-device-properties.h.
5751 (omp-general.o): Depend on omp-device-properties.h.
5752 (omp_device_properties): New make variable.
5753 (omp-device-properties.h, s-omp-device-properties-h,
5754 install-omp-device-properties): New goals.
5755 (install): Depend on install-omp-device-properties for accelerators.
5756 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
5757 * target.h (enum omp_device_kind_arch_isa): New enum.
5758 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
5760 * omp-general.c: Include omp-device-properties.h.
5761 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
5762 colon instead of comma.
5763 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
5765 (omp_context_selector_matches): Implement device set arch/isa
5766 selectors, improve device set kind selector handling.
5767 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
5768 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
5769 TARGET_SIMD_CLONE_USABLE): Formatting fix.
5770 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5771 ix86_omp_device_kind_arch_isa.
5772 * config/i386/i386-options.c (struct ix86_target_opts): Move type
5773 definition from ix86_target_string to file scope.
5774 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
5776 (ix86_omp_device_kind_arch_isa): New function.
5777 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
5778 isa_opts definitions to file scope.
5779 * config/i386/t-intelmic (omp-device-properties): New goal.
5780 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
5781 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
5782 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5783 nvptx_omp_device_kind_arch_isa.
5784 * configure: Regenerate.
5785 * doc/tm.texi: Regenerate.
5788 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
5789 DECL_BUILT_IN in comment. Remove redundant ()s around return
5791 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
5792 before calling fndecl_built_in_p.
5793 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
5794 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
5795 fndecl_built_in_p on it.
5797 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
5799 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
5801 2019-10-31 Martin Liska <mliska@suse.cz>
5803 * config/arm/arm.c (arm_get_pcs_model): Remove usage
5804 of cgraph_local_info and use local_info_node instead.
5805 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
5806 (bfin_function_ok_for_sibcall): Likewise.
5807 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
5808 (must_reload_pic_reg_p): Likewise.
5810 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5813 * tree.h (type_initializer_zero_p): Remove.
5814 * tree.c (type_initializer_zero_p): Remove.
5816 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5818 * doc/invoke.texi (-Wshadow, -Wshadow=global
5819 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
5821 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
5823 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
5824 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
5825 and 'target exit data'.
5827 2019-10-30 Martin Jambor <mjambor@suse.cz>
5830 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
5831 availability comparison.
5833 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5835 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
5836 calls to __mspabi_mpy* functions.
5837 * config/msp430/msp430.md (mulhisi3): New define_expand.
5838 (umulhisi3): New define_expand.
5839 (*mulhisi3_inline): Use old mulhisi3 define_insn.
5840 (*umulhisi3_inline): Use old umulhisi3 define_insn.
5842 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5844 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
5845 (msp430_check_plus_not_high_mem): New.
5846 (msp430_op_not_in_high_mem): Use new functions to check if the operand
5847 might be in low memory.
5848 Indicate that a 16-bit absolute address is in lower memory.
5850 2019-10-30 Martin Jambor <mjambor@suse.cz>
5852 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
5853 ultimate_alias_target.
5855 2019-10-30 Richard Biener <rguenther@suse.de>
5857 PR tree-optimization/92275
5858 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
5859 Copy all loop-closed PHIs.
5861 2019-10-30 Martin Liska <mliska@suse.cz>
5863 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
5864 const_tree as function argument.
5865 (func_checker::compare_decl): Likewise.
5866 (func_checker::operand_equal_p): Likewise.
5867 (func_checker::compare_variable_decl): Likewise.
5868 (func_checker::parse_labels): Likewise.
5869 * ipa-icf-gimple.h: Likewise.
5871 2019-10-30 Martin Liska <mliska@suse.cz>
5873 * ipa-icf-gimple.c (func_checker::compatible_types_p):
5874 Do not compare alias sets. It's handled by operand_equal_p.
5876 2019-10-30 Martin Liska <mliska@suse.cz>
5878 * ipa-icf-gimple.c (func_checker::func_checker): Do not
5879 initialize m_compare_polymorphic.
5880 (func_checker::compare_decl): Do not compare polymorphic types.
5881 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
5882 * ipa-icf.c (sem_function::equals_private): Do not call
5883 compare_polymorphic_p.
5885 2019-10-30 Martin Liska <mliska@suse.cz>
5887 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
5889 (func_checker::compare_memory_operand): Remove.
5890 (func_checker::compare_cst_or_decl): Remove.
5891 (func_checker::operand_equal_valueize): Do not handle
5893 (func_checker::compare_gimple_call): Call compare_operand.
5894 (func_checker::compare_gimple_assign): Likewise.
5895 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
5896 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
5897 * ipa-icf.h (icf_handled_component_p): Remove.
5899 2019-10-30 Martin Liska <mliska@suse.cz>
5901 * ipa-icf-gimple.c (func_checker::hash_operand): New.
5902 (func_checker::compare_cst_or_decl): Remove handling
5904 (func_checker::compare_operand): Transform to ...
5905 (func_checker::operand_equal_p): ... this.
5906 * ipa-icf-gimple.h (class func_checker): Add
5907 operand_equal_p and hash_operand.
5908 * ipa-icf.c (sem_function::equals_private): Fix
5909 pushing and popping of cfun.
5911 2019-10-30 Martin Liska <mliska@suse.cz>
5913 * fold-const.c (operand_equal_p): Move to ...
5914 (operand_compare::operand_equal_p): ... here.
5915 (operand_compare::verify_hash_value): New.
5916 (add_expr): Move to ...
5917 (operand_compare::hash_operand): ... here.
5918 * fold-const.h (operand_equal_p): Move to the class.
5919 (class operand_compare): New.
5920 * tree.c (add_expr): Remove.
5922 2019-10-30 Martin Liska <mliska@suse.cz>
5924 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
5925 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
5927 2019-10-30 Martin Liska <mliska@suse.cz>
5931 * cgraph.c (cgraph_node::get_create): Overwrite node->order
5932 from a first_clone in order to get proper LTO section
5934 (cgraph_node::get_untransformed_body):
5935 Use lto_get_section_data where symtab_node::order
5937 * cgraphclones.c (cgraph_node::find_replacement):
5938 Update also symbol order.
5939 * ipa-fnsummary.c (ipa_fn_summary_read):
5940 Use new function lto_get_summary_section_data.
5941 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
5942 * ipa-icf.c (sem_item_optimizer::read_summary):
5944 * ipa-prop.c (ipa_prop_read_jump_functions):
5946 (ipcp_read_transformation_summaries): Likewise.
5947 * ipa-sra.c (ipa_sra_read_summary): Likewise.
5948 * lto-cgraph.c (input_node): Add also order_base.
5949 (input_varpool_node): Likewise.
5950 (input_cgraph_1): Assign the order_base.
5951 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
5952 * lto-opts.c (lto_write_options): Pass new argument.
5953 * lto-section-in.c (lto_get_section_data): Add new argumente order.
5954 (lto_get_summary_section_data): New.
5955 (lto_get_raw_section_data): Add order argument.
5956 (lto_create_simple_input_block): Likewise.
5957 * lto-section-out.c (lto_destroy_simple_output_block):
5959 * lto-streamer-in.c (lto_input_toplevel_asms):
5960 Use lto_get_summary_section_data.
5961 (lto_input_mode_table): Likewise.
5962 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
5963 (lto_output_toplevel_asms): Pass new argument.
5964 (copy_function_or_variable): Likewise.
5965 (produce_lto_section):Likewise.
5966 (produce_symtab): Likewise.
5967 (lto_write_mode_table): Likewise.
5968 (produce_asm_for_decls): Likewise.
5969 * lto-streamer.c (lto_get_section_name): Concat symbol name
5971 * lto-streamer.h (lto_get_section_data): Add order argument.
5972 (lto_get_summary_section_data): New.
5973 (lto_get_raw_section_data): Add order argument.
5974 (lto_get_section_name): Likewise.
5975 * varpool.c (varpool_node::get_constructor): Pass order argument.
5977 2019-10-30 Jakub Jelinek <jakub@redhat.com>
5979 PR tree-optimization/92262
5980 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
5981 ubase or cbase here.
5982 (remove_unused_ivs): Unshare comp before using it.
5984 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
5986 * ipa-prop.c (update_jump_functions_after_inlining):
5987 Watch for missing summaries.
5989 2019-10-30 Richard Biener <rguenther@suse.de>
5991 PR tree-optimization/65930
5992 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
5993 chains also allow a leading and trailing conversion.
5994 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
5995 intermediate reduction chains.
5996 (vect_analyze_slp_instance): Likewise. Build a SLP
5997 node for a trailing conversion manually.
5999 2019-10-30 Martin Liska <mliska@suse.cz>
6001 * cgraph.c (cgraph_node::local_info): Transform to ...
6002 (cgraph_node::local_info_node): ... this.
6003 (cgraph_node::dump): Remove cgraph_local_info and
6004 put its fields directly into cgraph_node.
6005 (cgraph_node::get_availability): Likewise.
6006 (cgraph_node::make_local): Likewise.
6007 (cgraph_node::verify_node): Likewise.
6008 * cgraph.h (struct GTY): Likewise.
6009 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6010 (duplicate_thunk_for_node): Likewise.
6011 (cgraph_node::create_clone): Likewise.
6012 (cgraph_node::create_virtual_clone): Likewise.
6013 (cgraph_node::create_version_clone): Likewise.
6014 * cgraphunit.c (cgraph_node::reset): Likewise.
6015 (cgraph_node::finalize_function): Likewise.
6016 (cgraph_node::add_new_function): Likewise.
6017 (analyze_functions): Likewise.
6018 * combine.c (setup_incoming_promotions): Likewise.
6019 * config/i386/i386.c (ix86_function_regparm): Likewise.
6020 (ix86_function_sseregparm): Likewise.
6021 (init_cumulative_args): Likewise.
6022 * ipa-cp.c (determine_versionability): Likewise.
6023 (count_callers): Likewise.
6024 (set_single_call_flag): Likewise.
6025 (initialize_node_lattices): Likewise.
6026 (estimate_local_effects): Likewise.
6027 (create_specialized_node): Likewise.
6028 (identify_dead_nodes): Likewise.
6029 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6030 (ipa_fn_summary_generate): Likewise.
6031 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6032 (process_hsa_functions): Likewise.
6033 * ipa-icf.c (set_local): Likewise.
6034 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6035 * ipa-inline.c (speculation_useful_p): Likewise.
6036 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6037 (ipa_profile): Likewise.
6038 * ipa-split.c (split_function): Likewise.
6039 (execute_split_functions): Likewise.
6040 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6041 (ipa_sra_ipa_function_checks): Likewise.
6042 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6043 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6044 * lto-cgraph.c (lto_output_node): Likewise.
6045 (input_overwrite_node): Likewise.
6046 * multiple_target.c (expand_target_clones): Likewise.
6047 * omp-simd-clone.c (simd_clone_create): Likewise.
6048 * trans-mem.c (expand_call_tm): Likewise.
6049 (ipa_tm_mayenterirr_function): Likewise.
6050 (ipa_tm_diagnose_tm_safe): Likewise.
6051 (ipa_tm_diagnose_transaction): Likewise.
6052 (ipa_tm_create_version): Likewise.
6053 (ipa_tm_transform_calls_redirect): Likewise.
6054 (ipa_tm_execute): Likewise.
6055 * tree-inline.c (expand_call_inline): Likewise.
6057 2019-10-29 Martin Liska <mliska@suse.cz>
6059 * symbol-summary.h (function_summary): Pass memory location
6060 to underlaying hash_map (or vec).
6061 (V>::fast_function_summary): Likewise.
6063 2019-10-29 Martin Liska <mliska@suse.cz>
6065 * ggc.h (ggc_alloc_no_dtor): New function.
6066 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6067 destructor and ggc_free.
6068 (ipa_free_size_summary): Call delete instead
6070 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6071 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6072 (ipa_free_all_edge_args): Call destructor and ggc_free.
6073 (ipa_free_all_node_params): Likewise.
6074 (ipcp_free_transformation_sum): Likewise.
6075 * ipa-prop.h (ipa_check_create_node_params):
6076 Call new ggc_alloc_no_dtor.
6077 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6078 (ipa_sra_analysis): Call destructor and ggc_free.
6079 Replace release with delete operator.
6080 * symbol-summary.h (release): Remove ..
6081 (V>::~fast_function_summary): and move logic here.
6082 Likewise for other classes.
6084 2019-10-29 Richard Biener <rguenther@suse.de>
6086 PR tree-optimization/92260
6087 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6090 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6092 PR tree-optimization/88915
6093 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6094 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6095 and make the valueize function pointer also take a void pointer.
6096 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6097 around vn_valueize, to call it without a context.
6098 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6099 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6100 (~_loop_vec_info): Release epilogue_vinfos.
6101 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6102 number of iterations of epilogue.
6103 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6104 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6105 versioning threshold needed for main loop.
6106 (vect_analyze_loop): Likewise.
6107 (find_in_mapping): New helper function.
6108 (update_epilogue_loop_vinfo): New function.
6109 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6110 on main loop and call update_epilogue_loop_vinfo to update it.
6111 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6112 stmts on loop preheader edge.
6113 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6114 we decided to vectorize epilogues. Update epilogues NITERS and
6115 construct ADVANCE to update epilogues data references where needed.
6116 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6117 (vect_do_peeling, vect_update_inits_of_drs,
6118 determine_peel_for_niter, vect_analyze_loop): Add or update
6120 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6121 created loop_vec_info's for epilogues when available. Otherwise analyse
6122 epilogue separately.
6124 2019-10-29 Richard Biener <rguenther@suse.de>
6126 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6129 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6131 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6132 index for the COND_EXPR from stmt_info rather than reduc_info.
6134 2019-10-29 Richard Biener <rguenther@suse.de>
6136 PR tree-optimization/65930
6137 * tree-vect-loop.c (check_reduction_path): Relax single-use
6138 check allowing out-of-loop uses.
6139 (vect_is_simple_reduction): SLP reduction chains cannot have
6140 intermediate stmts used outside of the loop.
6141 (vect_create_epilog_for_reduction): The adjustment might need
6143 (vectorizable_reduction): Annotate live stmts of the reduction
6144 chain with STMT_VINFO_REDUC_DEF.
6145 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6147 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6149 * calls.c (pass_by_reference): Leave the target to decide whether
6150 POLY_INT_CST-sized arguments should be passed by value or reference,
6151 rather than forcing them to be passed by reference.
6152 (must_pass_in_stack_var_size): Likewise.
6153 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6154 V31_REGNUM to P15_REGNUM.
6155 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6156 Take an extra "silent_p" parameter, defaulting to false.
6157 (aarch64_sve::svbool_type_p): Declare.
6158 (aarch64_sve::nvectors_if_data_type): Likewise.
6159 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6160 (aarch64_frame::reg_offset): Turn into poly_int64s.
6161 (aarch64_frame::save_regs_size): Likewise.
6162 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6163 (aarch64_frame::sve_callee_adjust): Likewise.
6164 (aarch64_frame::spare_reg_reg): Likewise.
6165 (ARM_PCS_SVE): New arm_pcs value.
6166 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6167 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6168 (CUMULATIVE_ARGS::silent_p): Likewise.
6169 (BITS_PER_SVE_PRED): New macro.
6170 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6171 function. Reject aarch64_vector_pcs attributes on SVE functions.
6172 (aarch64_attribute_table): Use the above handler.
6173 (aarch64_sve_abi): New function.
6174 (aarch64_sve_argument_p): Likewise.
6175 (aarch64_returns_value_in_sve_regs_p): Likewise.
6176 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6177 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6178 descriptor for them.
6179 (aarch64_simd_decl_p): Delete.
6180 (aarch64_emit_cfi_for_reg_p): New function.
6181 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6182 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6183 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6184 as partly clobbered for the SVE PCS.
6185 (aarch64_function_ok_for_sibcall): Check whether the two functions
6186 use the same ABI, rather than checking specifically for whether
6187 they're aarch64_vector_pcs functions.
6188 (aarch64_pass_by_reference): Raise an error for attempts to pass
6189 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6190 if there are not enough free registers left, or if the argument is
6192 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6193 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6195 (aarch64_layout_arg): Take a function_arg_info rather than
6196 individual properties. Handle SVE predicates, vectors and tuples.
6197 Raise an error if they are passed to unprototyped functions.
6198 (aarch64_function_arg): If the silent_p flag is set, suppress the
6199 usual error about using float registers without TARGET_FLOAT.
6200 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6201 it in the cumulative_args structure. Initialize aapcs_nprn and
6202 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6203 error about using float registers without TARGET_FLOAT.
6204 If the silent_p flag is not set, also raise an error about
6205 using SVE functions when SVE is disabled.
6206 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6207 and call it for SVE functions too. Update aapcs_nprn similarly
6208 to the other register counts.
6209 (aarch64_layout_frame): If a big-endian function needs to save
6210 and restore Z8-Z15, search for a spare predicate that it can use.
6211 Store SVE predicates at the bottom of the register save area,
6212 followed by SVE vectors, then followed by the normal slots.
6213 Keep pointing the hard frame pointer at the base of the normal slots,
6214 above the SVE vectors. Update the various frame creation and
6215 tear-down strategies for the new layout, initializing the new
6216 sve_callee_adjust field. Add an additional layout for frames
6217 whose saved registers are all SVE registers.
6218 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6219 (aarch64_return_address_signing_enabled): Likewise.
6220 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6221 aarch64_reg_save_mode.
6222 (aarch64_adjust_sve_callee_save_base): New function.
6223 (aarch64_add_cfa_expression): Move earlier in file. Take the
6224 saved register as an rtx rather than a register number and use
6225 its mode for the MEM slot.
6226 (aarch64_save_callee_saves): Remove the mode argument and instead
6227 use aarch64_reg_save_mode to get the mode of each save slot.
6228 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6229 offsets. Allow GP offsets to be saved at a VL-based offset from
6230 the stack, handling this case using the frame pointer if available
6231 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6232 big-endian SVE functions; use normal moves for other SVE saves.
6233 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6234 returns true. Add explicit CFA notes when not storing via the
6235 stack pointer. Do not try to pair SVE saves.
6236 (aarch64_restore_callee_saves): Cope with poly_int64 register
6237 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6238 use normal moves for other SVE restores. Only add CFA restore notes
6239 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
6241 (aarch64_get_separate_components): Always keep the first SVE save
6242 in the prologue if we need to use it as a stack probe. Don't allow
6243 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6244 Likewise the spare predicate register that they need. Update the
6245 offset calculation to account for the SVE save area. Use the
6246 appropriate range check for SVE LDR and STR instructions.
6247 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6248 (aarch64_process_components): Likewise. Update the offset
6249 calculation to account for the SVE save area. Only mark the
6250 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6251 Do not try to pair SVE saves.
6252 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6253 reg_offsets. When handling the final allocation, expect the
6254 first SVE register save to be part of the initial allocation
6255 and for it to act as a probe at SP. Account for the SVE callee
6256 save area in the dump information.
6257 (aarch64_expand_prologue): Update the frame diagram. Fold the
6258 SVE callee allocation into the initial allocation if stack clash
6259 protection is enabled. Use new variables to track the offset
6260 of the frame chain (and hard frame pointer) from the current
6261 stack pointer, and likewise the offset of the bottom of the
6262 register save area. Update calls to aarch64_save_callee_saves
6263 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
6264 saving the FP&SIMD registers. Save the predicate registers.
6265 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
6266 into account when setting the stack pointer from the frame pointer,
6267 and when deciding whether we can inherit the initial adjustment
6268 amount from the prologue. Restore the predicate registers after
6269 the vector registers, then apply sve_callee_adjust, then restore
6270 the general registers.
6271 (aarch64_secondary_reload): Don't use secondary SVE reloads
6273 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
6274 (aarch64_short_vector_p): Return false for SVE types.
6275 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
6276 at the start of the function. Return false for SVE types.
6277 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
6279 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
6280 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
6281 to big-endian targets for bytewise moves.
6282 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
6284 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6285 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6286 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6288 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
6289 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
6290 aarch64-sve-builtins-base.o to extra_objs. Add
6291 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
6292 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
6293 (aarch64-sve-builtins-shapes.o): Likewise.
6294 (aarch64-sve-builtins-base.o): New rules.
6295 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
6296 (aarch64_resolve_overloaded_builtin): Likewise.
6297 (aarch64_check_builtin_call): Likewise.
6298 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
6299 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
6301 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
6302 (aarch64_svprfop): New enum.
6303 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
6304 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
6305 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
6306 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6307 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
6308 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
6309 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
6310 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
6311 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
6312 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
6313 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
6314 (aarch64_sve::mangle_builtin_type): Likewise.
6315 (aarch64_sve::resolve_overloaded_builtin): Likewise.
6316 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
6317 (aarch64_sve::expand_builtin): Likewise.
6318 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
6319 (aarch64_sve_int_mode): Likewise.
6320 (aarch64_ptrue_all_mode): New function.
6321 (aarch64_convert_sve_data_to_pred): Make public.
6322 (svprfop_token): New function.
6323 (aarch64_output_sve_prefetch): Likewise.
6324 (aarch64_fold_sve_cnt_pat): Likewise.
6325 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6326 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
6327 instead of gen_while_ult.
6328 (aarch64_replace_reg_mode): Make public.
6329 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
6330 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
6331 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
6332 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
6333 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
6334 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
6335 (aarch64_sve_ptrue_svpattern_p): Likewise.
6336 (aarch64_sve_pred_valid_immediate): Check
6337 aarch64_sve_ptrue_svpattern_p.
6338 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
6339 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
6341 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
6342 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
6343 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
6344 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
6345 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
6346 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
6348 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
6349 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
6350 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
6351 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
6352 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
6353 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
6354 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
6355 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
6356 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
6357 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
6358 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
6359 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
6360 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
6361 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
6362 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
6363 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
6364 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
6365 (Vesize): Handle partial vector modes.
6366 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
6368 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
6370 (s, paired_extend, inc_dec): New code attributes.
6371 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
6372 (SVE_INT_UNARY): Add UNSPEC_RBIT.
6373 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
6374 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
6375 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
6376 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6378 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
6379 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
6380 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6381 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
6382 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
6383 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
6384 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
6385 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
6386 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
6387 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
6388 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
6389 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
6390 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
6391 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
6392 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
6393 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
6395 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6396 (binqops_op, binqops_op_rev, last_op): New int attributes.
6397 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
6398 (fn, ab): New int attributes.
6399 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
6400 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
6401 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
6402 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
6404 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
6405 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
6406 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
6407 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
6408 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6410 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
6411 (brk_reg_con, brk_reg_opno): New int attributes.
6412 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
6413 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
6414 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
6416 (max_elem_bits): New int attribute.
6417 (min_elem_bits): Handle UNSPEC_RBIT.
6418 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
6419 TRUNCATE as well as SUBREG.
6420 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
6421 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
6422 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
6423 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
6424 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
6425 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
6426 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
6427 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
6428 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
6429 (aarch64_gather_scale_operand_h): New predicates.
6430 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
6431 (vgd, vgh, vgw, vsQ, vsS): New constraints.
6432 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
6433 (*aarch64_sve_reinterpret<mode>): Allow any source register
6434 instead of requiring an exact match.
6435 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
6436 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
6437 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
6438 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
6439 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
6440 (aarch64_update_ffrt): New patterns.
6441 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6442 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6443 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6444 (@aarch64_ld<fn>f1<mode>): New patterns.
6445 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6446 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6447 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6448 (@aarch64_ldnt1<mode>): New patterns.
6449 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6450 the scalar part of the address.
6451 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
6452 scalar part of the addresse and add an alternative for handling
6454 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6455 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
6456 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6457 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6458 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6459 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6460 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
6461 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
6462 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6463 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6464 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6465 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6466 (@aarch64_sve_prefetch<mode>): New patterns.
6467 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
6468 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
6469 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
6470 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
6471 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
6472 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6473 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6474 (@aarch64_stnt1<mode>): New patterns.
6475 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6476 the scalar part of the address.
6477 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
6478 the scalar part of the addresse and add an alternative for handling
6480 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6481 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
6482 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6483 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6484 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
6485 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
6487 (vec_duplicate<mode>): Use QI as the mode of the input operand.
6488 (extract_last_<mode>): Generalize to...
6489 (@extract_<LAST:last_op>_<mode>): ...this.
6490 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
6491 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
6492 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
6493 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
6494 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
6495 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
6496 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
6497 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
6498 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
6499 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
6500 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
6501 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
6502 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
6503 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
6504 (*aarch64_adr_uxtw_unspec): Likewise.
6505 (*aarch64_adr_uxtw): Rename to...
6506 (*aarch64_adr_uxtw_and): ...this.
6507 (@aarch64_adr<mode>_shift): New expander.
6508 (*aarch64_adr_shift_sxtw): New pattern.
6509 (aarch64_<su>abd<mode>_3): Rename to...
6510 (@aarch64_pred_<su>abd<mode>): ...this.
6511 (<su>abd<mode>_3): Update accordingly.
6512 (@aarch64_cond_<su>abd<mode>): New expander.
6513 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
6514 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
6515 (*<su>mul<mode>3_highpart): Rename to...
6516 (@aarch64_pred_<optab><mode>): ...this.
6517 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
6518 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
6519 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
6520 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
6521 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
6522 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
6523 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
6524 (*v<ASHIFT:optab><mode>3): Rename to...
6525 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
6526 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
6527 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
6528 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
6529 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
6530 (@cond_asrd<mode>): New expander.
6531 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
6532 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
6533 (*sdiv_pow2<mode>3): Delete.
6534 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
6535 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
6536 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
6537 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
6538 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
6539 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
6540 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
6541 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
6542 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
6543 (*add<SVE_F:mode>3): Rename to...
6544 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
6546 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
6547 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
6548 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
6549 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
6550 (*sub<SVE_F:mode>3): Rename to...
6551 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
6553 (@aarch64_pred_abd<SVE_F:mode>): New expander.
6554 (*fabd<SVE_F:mode>3): Rename to...
6555 (*aarch64_pred_abd<SVE_F:mode>): ...this.
6556 (@aarch64_cond_abd<SVE_F:mode>): New expander.
6557 (*mul<SVE_F:mode>3): Rename to...
6558 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
6560 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
6561 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
6563 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
6564 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
6565 (*<nlogical><PRED_ALL:mode>3): Rename to...
6566 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
6567 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
6568 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
6569 (*<logical_nn><PRED_ALL:mode>3): Rename to...
6570 (aarch64_pred_<logical_nn><mode>_z): ...this.
6571 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
6572 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
6573 (*fma<SVE_I:mode>4): Rename to...
6574 (@aarch64_pred_fma<SVE_I:mode>): ...this.
6575 (*fnma<SVE_I:mode>4): Rename to...
6576 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
6577 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
6578 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
6579 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
6580 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
6581 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
6582 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
6583 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
6584 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
6585 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
6586 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
6587 (@aarch64_sve_tmad<mode>): Likewise.
6588 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
6589 (*aarch64_sel_dup<mode>): Rename to...
6590 (@aarch64_sel_dup<mode>): ...this.
6591 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
6592 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
6593 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
6594 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
6595 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
6596 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
6597 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
6598 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
6599 (*fcm<cmp_op><mode>): Rename to...
6600 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
6601 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6602 (*fcmuo<mode>): Rename to...
6603 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
6604 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6605 (@aarch64_pred_fac<cmp_op><mode>): New expander.
6606 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
6607 (fold_extract_last_<mode>): Generalize to...
6608 (@fold_extract_<last_op>_<mode>): ...this.
6609 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
6610 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
6611 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
6612 DImode result explicit.
6613 (reduc_plus_scal_<mode>): Update accordingly.
6614 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
6615 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
6616 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
6617 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
6618 (*aarch64_sve_tbl<mode>): Rename to...
6619 (@aarch64_sve_tbl<mode>): ...this.
6620 (@aarch64_sve_compact<mode>): New pattern.
6621 (*aarch64_sve_dup_lane<mode>): Rename to...
6622 (@aarch64_sve_dup_lane<mode>): ...this.
6623 (@aarch64_sve_dupq_lane<mode>): New pattern.
6624 (@aarch64_sve_splice<mode>): Likewise.
6625 (aarch64_sve_<perm_insn><mode>): Rename to...
6626 (@aarch64_sve_<perm_insn><mode>): ...this.
6627 (*aarch64_sve_ext<mode>): Rename to...
6628 (@aarch64_sve_ext<mode>): ...this.
6629 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
6630 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
6632 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
6633 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6635 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6637 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
6638 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
6639 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
6640 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
6642 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
6643 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
6645 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
6646 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
6647 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
6649 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
6650 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
6651 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
6652 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
6653 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
6655 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
6656 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
6657 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
6658 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
6659 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
6660 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
6661 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
6662 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
6663 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
6664 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
6665 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
6666 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
6667 (aarch64_sve_cnt_pat): Likewise.
6668 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6669 (*aarch64_sve_incsi_pat): Likewise.
6670 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6671 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6672 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6673 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6674 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6675 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6676 (*aarch64_sve_decsi_pat): Likewise.
6677 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6678 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6679 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6680 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6681 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6682 (@aarch64_pred_cntp<mode>): Likewise.
6683 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6685 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6686 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6687 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6689 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6691 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
6692 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6693 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
6694 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6695 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
6696 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6697 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6699 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6700 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6701 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6703 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6705 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
6707 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6708 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
6710 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6711 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
6713 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6714 * config/aarch64/arm_sve.h: New file.
6715 * config/aarch64/aarch64-sve-builtins.h: Likewise.
6716 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
6717 * config/aarch64/aarch64-sve-builtins.def: Likewise.
6718 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
6719 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
6720 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
6721 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
6722 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
6723 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
6725 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6727 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
6729 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
6732 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6734 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
6735 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
6737 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
6738 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
6739 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
6740 (aarch64_hard_regno_nregs): Handle the new register classes.
6741 (aarch64_hard_regno_mode_ok): Likewise.
6742 (aarch64_regno_regclass): Likewise.
6743 (aarch64_class_max_nregs): Likewise.
6744 (aarch64_register_move_cost): Likewise.
6745 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
6746 as general register_operands.
6748 2019-10-29 Martin Liska <mliska@suse.cz>
6750 * ggc-common.c: One can't subtract unsigned types
6751 in compare function.
6753 2019-10-29 Martin Liska <mliska@suse.cz>
6755 * cgraphunit.c (symbol_table::compile): Pass
6756 title as dump_memory_report argument.
6757 * toplev.c (dump_memory_report): New argument.
6758 (finalize): Pass new argument.
6759 * toplev.h (dump_memory_report): Add argument.
6761 2019-10-29 Martin Liska <mliska@suse.cz>
6763 * ggc-common.c: Move Leak to the first column.
6765 2019-10-29 Martin Liska <mliska@suse.cz>
6767 * cgraphunit.c (symbol_table::compile): Remove argument
6768 for dump_memory_report.
6769 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
6770 (compare_final): Remove in order to make report
6772 * ggc.h (dump_ggc_loc_statistics): Remove argument.
6773 * mem-stats.h (mem_alloc_description::get_list):
6775 (mem_alloc_description::dump): Likewise here.
6776 * toplev.c (dump_memory_report): Remove final
6778 (finalize): Likewise.
6779 * toplev.h (dump_memory_report): Remove argument.
6781 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6783 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
6784 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
6785 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
6786 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
6789 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6791 * coretypes.h (string_int_pair): New typedef.
6792 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
6793 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
6794 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
6796 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6798 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
6799 (simulate_builtin_function_decl): Declare.
6800 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
6801 (LANG_HOOKS_INITIALIZER): Include it.
6802 * langhooks.c (add_builtin_function_common): Rename to...
6803 (build_builtin_function): ...this. Add a location parameter and use
6804 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
6806 (add_builtin_function): Update accordingly, passing the returned
6807 decl to the lang hook.
6808 (add_builtin_function_ext_scope): Likewise
6809 (simulate_builtin_function_decl): New function.
6811 2019-10-29 Jakub Jelinek <jakub@redhat.com>
6813 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
6814 example, use actual names of supported offload targets.
6817 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
6819 2019-10-28 Martin Sebor <msebor@redhat.com>
6821 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
6822 (handle_store): Pass argument to get_addr_stridx.
6824 2019-10-28 Martin Sebor <msebor@redhat.com>
6826 PR tree-optimization/92226
6827 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
6828 the offset is in the open range outlined by SI's length.
6830 2019-10-28 Martin Sebor <msebor@redhat.com>
6833 * doc/cpp.texi (__has_builtin): Document.
6834 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
6836 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6839 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
6840 doubleword and low doubleword result of multiplication on
6843 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
6844 pure qualifier to the built-in.
6845 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
6847 (struct mips_builtin_description): Add is_pure flag.
6848 (mips_init_builtins): Mark built-in as pure if the flag in the
6849 corresponding mips_builtin_description struct is set.
6851 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
6852 alternative which covers the floating-point input value. Also
6853 forbid the split of insert.d pattern for floating-point values.
6855 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
6857 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
6858 * config/riscv/riscv-sr.c: New file.
6859 * config/riscv/riscv.c (riscv_reorg): New function.
6860 (TARGET_MACHINE_DEPENDENT_REORG): Define.
6861 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
6862 (riscv_remove_unneeded_save_restore_calls): Declare.
6863 * config/riscv/t-riscv (riscv-sr.o): New build rule.
6865 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6867 PR tree-optimization/92163
6868 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
6869 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
6870 before calling bitmap_set_bit.
6871 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
6872 delete_dead_or_redundant_assignment.
6873 (dse_dom_walker::dse_optimize_stmt): Likewise.
6874 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
6876 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6879 * tree-vect-stmts.c (vectorizable_condition): Support
6880 EXTRACT_LAST_REDUCTION with fully-masked loops.
6882 2019-10-28 Richard Biener <rguenther@suse.de>
6884 PR tree-optimization/92252
6885 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
6886 STMT_VINFO_REDUC_IDX when swapping operands.
6888 2019-10-28 Richard Biener <rguenther@suse.de>
6890 PR tree-optimization/92241
6891 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
6892 we failed to update the reduction index do not use the pattern
6893 stmts for the reduction chain.
6894 (vectorizable_reduction): When the reduction chain is corrupt,
6896 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
6897 fail to update the reduction chain.
6899 2019-10-28 Richard Biener <rguenther@suse.de>
6901 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
6902 STMT_VINFO_REDUC_IDX from the actual stmt.
6903 (vect_transform_reduction): Likewise.
6904 (vectorizable_reduction): Compute the reduction chain length,
6905 do not recompute the reduction operand index. Remove no longer
6906 necessary restriction for condition reduction chains.
6908 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
6911 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
6912 condition for V2DImode.
6914 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
6916 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
6917 Remove %k operand modifier.
6918 (*vec_extractv2df_1_sse): Remove %q operand modifier.
6920 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
6922 PR rtl-optimization/92007
6923 * cfgcleanup.c (thread_jump): Add an assertion that we don't
6924 call it after reload if hot/cold partitioning has been done.
6925 (class pass_postreload_jump): Rename to
6926 pass_jump_after_combine.
6927 (make_pass_postreload_jump): Rename to
6928 make_pass_jump_after_combine.
6929 * passes.def(pass_postreload_jump): Move before reload, rename
6930 to pass_jump_after_combine.
6931 * tree-pass.h (make_pass_postreload_jump): Rename to
6932 make_pass_jump_after_combine.
6934 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
6937 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
6938 for missing EDGE_REF
6939 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
6941 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
6943 PR tree-optimization/88760
6944 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
6945 Enable -funroll-loops for -O2 and above.
6946 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
6947 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
6948 do not turn on web and rngreg implicitly, if the unroller is not
6951 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6953 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
6956 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
6958 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
6959 * cgraph.h (cgraph_node::rtl_info): Likewise.
6961 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6963 * ipa-cp.c (propagate_constants_across_call): If args are not available
6964 just drop everything to varying.
6965 (find_aggregate_values_for_callers_subset): Watch for missing
6967 (find_more_scalar_values_for_callers_subs): Likewise.
6968 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
6969 update_jump_functions_after_inlining, propagate_controlled_uses):
6970 Watch for missing summaries.
6971 (ipa_propagate_indirect_call_infos): Remove summary after propagation
6973 (ipa_write_node_info): Watch for missing summaries.
6974 (ipa_read_edge_info): Create new ref.
6975 (ipa_edge_args_sum_t): Add remove.
6976 (IPA_EDGE_REF_GET_CREATE): New macro.
6977 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
6979 (remap_edge_change_prob): Likewise.
6981 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6983 * ipa-inline-transform.c (inline_call): update function summaries
6984 after expanidng thunk.
6986 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6988 * ipa-icf.c (sem_function::merge): Update function summaries.
6989 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
6991 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
6993 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
6994 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
6995 operand already has scalar mode.
6996 (iptr): Remove SF/DF.
6998 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7001 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7002 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7005 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7007 * config/i386/sse.md
7008 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7009 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7010 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7011 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7012 <sse>_vmmaskcmp<mode>3):
7013 Change predicates from vector_operand to nonimmediate_operand,
7014 constraints xBm to xm, since scalar operations don't need
7015 memory address alignment.
7016 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7017 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7018 round_saeonly_nimm_predicate with
7019 round_saeonly_nimm_scalar_predicate.
7020 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7021 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7022 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7023 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7024 avx512f_vmfmadd_<mode>_mask3<round_name>,
7025 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7026 *avx512f_vmfmsub_<mode>_mask<round_name>,
7027 avx512f_vmfmsub_<mode>_mask3<round_name>,
7028 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7029 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7030 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7031 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7032 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7033 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7034 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7035 cvtusi2<ssescalarmodesuffix>32<round_name>,
7036 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7037 round_nimm_predicate with round_nimm_scalr_predicate.
7038 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7039 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7040 avx512er_vmrcp28<mode><round_saeonly_name>,
7041 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7042 ): Replace round_saeonly_nimm_predicate with
7043 round_saeonly_nimm_scalar_predicate.
7044 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7045 vector_operand with nonimmediate_operand.
7046 * config/i386/subst.md (round_scalar_nimm_predicate,
7047 round_saeonly_scalar_nimm_predicate): Replace
7048 vector_operand with nonimmediate_operand.
7050 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7053 * config/i386/i386.md (*rcpsf2_sse): Add
7054 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7055 (*rsqrtsf2_sse): Ditto.
7056 (*sqrt<mode>2_sse): Ditto.
7057 (sse4_1_round<mode>2): separate constraint vm, add
7058 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7059 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7061 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7063 (*sse_vmrsqrtv4sf2): Ditto.
7064 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7065 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7066 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7067 <iptr> pointer size modifier since vround support memory operand.
7069 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7072 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7075 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7076 Tobias Burnus <tobias@codesourcery.com>
7078 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7079 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7082 2019-10-25 Richard Biener <rguenther@suse.de>
7084 PR tree-optimization/92222
7085 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7086 (_slp_oprnd_info::second_pattern): Likewise.
7087 (_slp_oprnd_info::any_pattern): New.
7088 (vect_create_oprnd_info): Adjust.
7089 (vect_get_and_check_slp_defs): Compute whether any stmt is
7091 (vect_build_slp_tree_2): Avoid building up a node from scalars
7092 if any of the operand defs, not just the first, is in a pattern.
7094 2019-10-25 Richard Biener <rguenther@suse.de>
7096 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7097 swapping if we actually have to modify the IL on a shared stmt.
7098 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7099 because we no longer modify the IL.
7101 2019-10-25 Martin Liska <mliska@suse.cz>
7103 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7105 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7107 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7108 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7109 handled by vect_transform_reduction. Allow fully-masked loops
7110 to be used with reduction chains.
7111 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7112 operations in fully-masked loops.
7113 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7114 operations in fully-masked loops.
7116 2019-10-25 Richard Biener <rguenther@suse.de>
7118 * tree-vect-loop.c (vectorizable_reduction): Verify
7119 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7121 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7122 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7125 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7127 * gimplify.h (omp_construct_selector_matches): Declare.
7128 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7129 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7130 called function if needed for flag_openmp.
7131 (gimplify_scan_omp_clauses): Set ctx->code.
7132 (omp_construct_selector_matches): New function.
7133 * omp-general.h (omp_constructor_traits_to_codes,
7134 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7135 * omp-general.c (omp_constructor_traits_to_codes,
7136 omp_context_selector_matches, omp_resolve_declare_variant): New
7139 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7141 * config/rx/rx.c (rx_print_operand): Likewise.
7142 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7143 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7144 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7146 * genemit.c (emit_c_code): Likewise.
7147 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7149 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7151 * symbols-summary.h (fast_function_summary<T *, V>::release,
7152 fast_call_summary<T *, V>::release): Free m_vector.
7154 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7156 * cgraphunit.c (symbol_table::process_new_functions): Call
7157 ipa_free_size_summary.
7158 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7159 (devirtualization_time_bonus): Update.
7160 (ipcp_propagate_stage): Update.
7161 * ipa-fnsummary.c (ipa_size_summaries): New.
7162 (ipa_fn_summary_alloc): Alloc size summary.
7163 (dump_ipa_call_summary): Update.
7164 (ipa_dump_fn_summary): Update.
7165 (analyze_function_body): Update.
7166 (compute_fn_summary): Likewise.
7167 (ipa_get_stack_frame_offset): New function.
7168 (inline_update_callee_summaries): Do not update frame offsets.
7169 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7170 remove call and function summary.
7171 (ipa_update_overall_fn_summary): Update.
7172 (inline_read_section): Update.
7173 (ipa_fn_summary_write): Update.
7174 (ipa_free_fn_summary): Do not remove summaries.
7175 (ipa_free_size_summary): New.
7176 (release summary pass): Also run at WPA.
7177 * ipa-fnsummary.h (ipa_size_summary): Declare.
7178 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7179 estimated_self_stack_size.
7180 (ipa_size_summary_t): New type.
7181 (ipa_size_summaries): Declare.
7182 (ipa_free_size_summary): Declare.
7183 (ipa_get_stack_frame_offset): Declare.
7184 * ipa-icf.c (sem_function::merge): Update.
7185 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7186 (estimate_growth): Update.
7187 (growth_likely_positive): Update.
7188 (clone_inlined_nodes): Update.
7189 (inline_call): Update.
7190 * ipa-inline.c (caller_growth_limits): Update.
7191 (edge_badness): Update.
7192 (recursive_inlining): Update.
7193 (inline_small_functions): Update.
7194 (inline_to_all_callers_1): Update.
7195 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7197 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7199 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7200 (uavg<mode>3_ceil): ... This.
7201 (altivec_vavgs<VI_char>): Rename to...
7202 (avg<mode>3_ceil): ... This.
7203 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7204 VAVGUW, VAVGSW): Adjust.
7206 2019-10-24 Nathan Sidwell <nathan@acm.org>
7208 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7210 2019-10-24 Martin Liska <mliska@suse.cz>
7212 * symbol-summary.h (gt_pch_nx): Mark all functions
7213 with gcc_unreachable as we do not expect to be called.
7215 2019-10-24 Richard Biener <rguenther@suse.de>
7217 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7218 chains try harder with operand swapping and instead of
7219 putting a shifted chain into the reduction operands put
7220 a repetition of the final reduction op there as if we'd
7221 reassociate the expression.
7223 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7225 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7226 statics_not_read and statics_not_written to statics_read and
7227 statics_written respectively.
7228 (no_module_statics): New static var.
7229 (ipa_reference_get_not_read_global): Rename to ...
7230 (ipa_reference_get_read_global): ... this.
7231 (ipa_reference_get_not_written_global): Rename to ...
7232 (ipa_reference_get_written_global): ... this.
7233 (dump_static_vars_set_to_file): Dump no_module_statics.
7234 (copy_static_var_set): Add for propagation parameter.
7235 (ipa_init): Initialize no_module_statics.
7236 (ipa_ref_opt_summary_t::duplicate): Update.
7237 (ipa_ref_opt_summary_t::remove): Update.
7238 (propagate): Update.
7239 (write_node_summary_p): Look correctly for bitmap differences.
7240 (ipa_reference_write_optimization_summary): Update.
7241 (ipa_reference_read_optimization_summary): Update.
7243 (ipa_reference_get_not_read_global): Rename to ...
7244 (ipa_reference_get_read_global): ... this.
7245 (ipa_reference_get_not_written_global): Rename to ...
7246 (ipa_reference_get_written_global): ... this.
7247 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7248 (call_may_clobber_ref_p_1): Update.
7250 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7252 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7254 (msp430_hard_regno_nregs_with_padding): Remove.
7256 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7258 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
7259 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
7260 shift amount is between 1 and 4.
7261 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
7264 2019-10-24 Richard Biener <rguenther@suse.de>
7266 PR tree-optimization/92205
7267 * tree-vect-loop.c (vectorizable_reduction): Restrict
7268 search for alternate vectype_in to lane-reducing patterns
7271 2019-10-24 Richard Biener <rguenther@suse.de>
7273 PR tree-optimization/92203
7274 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7275 Skip eliminating conversion stmts inserted by insertion.
7277 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
7279 * config/s390/s390.c (s390_get_thread_pointer): Use
7280 gen_get_thread_pointer.
7281 (s390_expand_split_stack_prologue): Likewise.
7282 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
7283 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
7284 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
7285 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
7288 2019-10-24 Richard Biener <rguenther@suse.de>
7290 * tree-vect-slp.c (vect_analyze_slp): When reduction group
7291 SLP discovery fails try to handle the reduction as part
7292 of SLP reduction discovery.
7294 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
7296 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
7298 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
7299 attribute if it exists, rather than the insn size. If we use the
7300 insn size, adjust the size to remove the extra size that prefixed
7302 (rs6000_adjust_insn_length): New function.
7303 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
7304 update the instruction sized if prefixed instructions are used.
7305 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
7306 (non_prefixed_length attribute): Delete.
7307 (num_insns attribute): New insn attribute to return the number of
7309 (max_prefixed_insns attribute): New insn attribute to return the
7310 maximum number of prefixed instructions in an insn.
7311 (length attribute): Do not adjust for prefix instructions here,
7312 punt to ADJUST_INSN_LENGTH.
7313 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
7314 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
7315 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
7316 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
7317 max_prefixed_insns and num_insns.
7319 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
7320 (movtd_64bit_nodm): Reformat.
7321 (mov<mode>_32bit): Reformat.
7322 (mov<mode>_softfloat): Reformat.
7323 (FMOVE128_GPR splitter): Reformat.
7324 (DIFD splitter): Reformat.
7325 (TI2 splitter): Reformat.
7326 * config/rs6000/predicates.md (lwa_operand): If the bottom two
7327 bits of the offset for the memory address are non-zero, use PLWA
7328 if prefixed instructions are available.
7330 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7332 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
7334 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7336 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
7339 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7341 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
7342 (cmp_symbol_files): New.
7343 (lto_output): Copy sections in file order.
7344 * lto-streamer.h (lto_file_decl_data): Add field order.
7346 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7348 * ipa-reference.h (ipa_reference_var_uid): Move offline.
7349 * ipa-reference.c (reference_vars_map_t): new type.
7350 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
7351 (ipa_reference_var_uid): Implement.
7352 (varpool_node_hooks): New static var.
7353 (varpool_removal_hook): New function.
7354 (is_improper): Do not check bitmap for id==-1
7355 (get_static_name): Update.
7356 (ipa_init): Initialize new datastructures.
7357 (analyze_function): Do not recompute ids.
7358 (propagate): Free reference_vars_to_consider.
7359 (stream_out_bitmap): Update.
7360 (ipa_reference_read_optimization_summary): Update.
7362 2019-10-23 qing zhao <qing.zhao@oracle.com>
7364 PR gcov-profile/91971
7365 * coverage.c (coverage_init): Mangle the full path of filename when
7366 filename is a absolute path.
7368 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7370 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
7371 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
7372 (msp430_has_hwmult): New.
7373 (msp430_output_labelref):
7374 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
7375 * config/msp430/msp430.md (mulhisi3): Likewise.
7376 (umulhisi3): Likewise.
7377 (mulsidi3): Likewise.
7378 (umulsidi3): Likewise.
7380 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7383 * params.def (inline-heuristics-hint-percent): Set to 600.
7385 2019-10-23 Richard Biener <rguenther@suse.de>
7387 PR tree-optimization/65930
7388 * tree-vect-loop.c (check_reduction_path): Allow conversions
7389 that only change the sign.
7390 (vectorizable_reduction): Relax latch def stmts we handle further.
7392 2019-10-23 Jakub Jelinek <jakub@redhat.com>
7395 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
7396 (remove_unused_ivs): Use it instead of get_computation_at. When
7397 choosing best candidate, only consider candidates where
7398 get_debug_computation_at actually returns non-NULL.
7400 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
7402 PR tree-optimization/92131
7403 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
7404 range would be symbolic, drop to varying for any explicit overflow
7405 in the constant part or if neither range is a singleton.
7407 2019-10-23 Martin Liska <mliska@suse.cz>
7410 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
7413 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
7415 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
7416 int_mode_for_mode rather than mode_for_int_vector for scalars.
7418 2019-10-23 Richard Biener <rguenther@suse.de>
7420 PR tree-optimization/92179
7421 * tree-vect-stmts.c (vectorizable_shift): For shift args
7422 that are all the same remove type restriction in the SLP case.
7423 Adjust SLP code to handle converting of the shift arg to
7424 only apply in case the modes are different.
7426 2019-10-23 Martin Liska <mliska@suse.cz>
7429 * ipa-inline.c (recursive_inlining): Do not print
7430 when curr->count is not initialized.
7432 2019-10-23 Richard Biener <rguenther@suse.de>
7434 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
7435 op from scalars in case there's a constant operand in its
7438 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
7440 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
7441 against out of range max skip or log values.
7443 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
7445 * cgraph.c (dump_graphviz): Change name to dump_name
7447 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7449 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
7450 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7451 subtraction from a carry operation.
7453 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7455 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
7457 2019-10-22 Richard Biener <rguenther@suse.de>
7459 PR tree-optimization/92173
7460 * tree-vect-loop.c (vectorizable_reduction): If
7461 vect_transform_reduction cannot handle code-generation try without
7462 the single-def-use-cycle optimization. Pass optab_vector to
7463 optab_for_tree_code to get vector shifts as that's what we'd
7466 2019-10-22 Michael Matz <matz@suse.de>
7469 * gimple-loop-jam.c (any_access_function_variant_p): New function.
7470 (adjust_unroll_factor): Use it to constrain safety, new parameter.
7471 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
7473 2019-10-22 Richard Biener <rguenther@suse.de>
7475 PR tree-optimization/92173
7476 * tree-vect-loop.c (vectorizable_reduction): If
7477 vect_transform_reduction cannot handle code-generation try without
7478 the single-def-use-cycle optimization. Pass optab_vector to
7479 optab_for_tree_code to get vector shifts as that's what we'd
7482 2019-10-22 Martin Liska <mliska@suse.cz>
7484 * diagnostic-format-json.cc (json_from_expanded_location):
7485 Use json::integer_number.
7486 * gcov.c (output_intermediate_json_line): Use new
7487 json::integer_number.
7488 (output_json_intermediate_file): Likewise.
7489 * json.cc (number::print): Move to ...
7490 (float_number::print): ... this.
7491 (integer_number::print): New.
7492 (test_writing_numbers): Move to ...
7493 (test_writing_float_numbers): ... this.
7494 (test_writing_integer_numbers): New.
7495 (json_cc_tests): Register test_writing_integer_numbers.
7496 * json.h (class value): Add forward declaration
7497 for float_number and integer_number.
7498 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
7499 (class number): Move to ...
7500 (class float_number): ... this.
7501 (class integer_number): New.
7502 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
7503 Use json::integer_number.
7504 (optrecord_json_writer::location_to_json): Likewise.
7505 (optrecord_json_writer::profile_count_to_json): Likewise.
7506 (optrecord_json_writer::pass_to_json): Likewise.
7508 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
7510 * tree-vect-slp.c (vect_slp_bb_region): Check whether
7511 autodetected_vector_size rather than vector_size is zero.
7512 * tree-vect-loop.c (vect_analyze_loop): Likewise.
7513 Set autodetected_vector_size immediately after calling
7514 vect_analyze_loop_2. Check for a fatal error before advancing
7517 2019-10-21 Jason Merrill <jason@redhat.com>
7519 * lock-and-run.sh: Check for process existence rather than timeout.
7521 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7523 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
7524 widening multiplication.
7526 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
7528 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
7529 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
7531 (subsi3_carryin_shift): Separate into register and constant controlled
7532 alternatives. Use shift_amount_operand for operand 4. Set shift
7533 attribute and simplify type attribute.
7534 (subsi3_carryin_shift_alt): Likewise.
7535 (rsbsi3_carryin_shift): Likewise.
7536 (rsbsi3_carryin_shift_alt): Likewise.
7537 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
7538 and register controlled shifts into distinct alternatives.
7539 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
7540 (andsi_not_shiftsi_si_scc): Likewise.
7541 (arm_cmpsi_negshiftsi_si): Likewise.
7542 (not_shiftsi): Remove redundant M constraint from alternative 1.
7543 (not_shiftsi_compare0): Likewise.
7544 (arm_cmpsi_insn): Remove redundant alternative 2.
7545 (cmpsi_shift_swp): Likewise.
7546 (sub_shiftsi): Likewise.
7547 (sub_shiftsi_compare0_scratch): Likewise.
7548 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
7549 (thumb2_cmpsi_neg_shiftsi): Likewise.
7551 2019-10-21 Richard Biener <rguenther@suse.de>
7553 PR tree-optimization/92162
7554 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
7555 STMT_VINFO_REDUC_IDX in reduc_info.
7556 * tree-vect-stmts.c (vectorizable_condition): Likewise.
7558 2019-10-21 Richard Biener <rguenther@suse.de>
7560 * tree-vectorizer.h (_slp_tree::ops): New member.
7561 (SLP_TREE_SCALAR_OPS): New.
7562 (vect_get_slp_defs): Adjust prototype.
7563 * tree-vect-slp.c (vect_free_slp_tree): Release
7564 SLP_TREE_SCALAR_OPS.
7565 (vect_create_new_slp_node): Initialize it. New overload for
7566 initializing by an operands array.
7567 (_slp_oprnd_info::ops): New member.
7568 (vect_create_oprnd_info): Initialize it.
7569 (vect_free_oprnd_info): Release it.
7570 (vect_get_and_check_slp_defs): Populate the operands array.
7571 Do not swap operands in the IL when not necessary.
7572 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
7573 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
7574 swap operands in the operands array. Do not swap operands in
7576 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
7577 (vect_gather_slp_loads): Fix.
7578 (vect_detect_hybrid_slp_stmts): Likewise.
7579 (vect_slp_analyze_node_operations_1): Search for a internal
7580 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
7581 (vect_slp_analyze_node_operations): Skip ops-only stmts for
7582 the def-type push/pop dance.
7583 (vect_get_constant_vectors): Compute number_of_vectors here.
7584 Use SLP_TREE_SCALAR_OPS and simplify greatly.
7585 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
7586 (vect_get_slp_defs): Simplify greatly.
7587 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
7588 (vect_transform_reduction): Likewise.
7589 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
7590 (vectorizable_call): Likewise.
7591 (vectorizable_operation): Likewise.
7592 (vectorizable_load): Likewise.
7593 (vectorizable_condition): Likewise.
7594 (vectorizable_comparison): Likewise.
7596 2019-10-21 Richard Biener <rguenther@suse.de>
7598 PR tree-optimization/92161
7599 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
7602 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7604 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
7605 (aarch64_rndr): New define_insn.
7606 (aarch64_rndrrs): Likewise.
7607 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
7608 (TARGET_RNG): Likewise.
7609 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
7611 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
7612 Add fourth argument in prototype.
7613 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
7614 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
7615 (aarch64_init_rng_builtins): Define.
7616 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
7617 (aarch64_expand_rng_builtin): Define.
7618 (aarch64_general_expand_builtin): Use IGNORE argument, handle
7620 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7621 __ARM_FEATURE_RNG when TARGET_RNG.
7622 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
7624 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
7626 * tree-vect-stmts (ensure_base_align): Only change alignment if new
7627 alignment is more restrictive.
7629 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7631 * tree-vectorizer.h (vec_info::vector_size): New member variable.
7632 (vect_update_max_nunits): Update comment.
7633 (current_vector_size): Delete.
7634 * tree-vect-stmts.c (current_vector_size): Likewise.
7635 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
7636 of current_vector_size.
7637 (get_mask_type_for_scalar_type): Likewise.
7638 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
7639 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
7640 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
7641 (vect_double_mask_nunits, vect_transform_loop): Likewise.
7642 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7643 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
7645 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7647 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
7648 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
7649 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
7652 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7654 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
7655 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
7656 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
7658 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
7660 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7662 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
7664 (vect_set_loop_condition_masked): Update call accordingly.
7666 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7668 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
7669 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
7670 (simple_integer_narrowing): Update call accordingly.
7671 (vectorizable_conversion): Likewise.
7673 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7675 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
7676 (vectorizable_call): Update call accordingly.
7678 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7680 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
7681 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7682 (duplicate_and_interleave): Update call accordingly.
7683 * tree-vect-loop.c (vectorizable_reduction): Likewise.
7685 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7687 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
7688 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
7689 (vect_get_constant_vectors): Update call accordingly.
7690 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
7692 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7694 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
7695 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
7696 (vect_prologue_cost_for_slp_op): Update call accordingly.
7697 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
7698 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
7699 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
7700 (get_mask_type_for_scalar_type): Likewise.
7701 (vect_get_vector_types_for_stmt): Likewise.
7702 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7703 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
7704 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
7705 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
7706 (vect_split_statement, vect_convert_input): Likewise.
7707 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
7708 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
7709 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
7710 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
7711 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
7712 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
7713 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
7714 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
7715 (vect_recog_mask_conversion_pattern): Likewise.
7716 (vect_add_conversion_to_pattern): Likewise.
7717 (vect_recog_gather_scatter_pattern): Likewise.
7718 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
7719 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
7721 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7723 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
7724 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
7725 (vect_check_load_store_mask): Update call accordingly.
7726 (vect_get_mask_type_for_stmt): Likewise.
7727 * tree-vect-patterns.c (check_bool_pattern): Likewise.
7728 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
7729 (vect_convert_mask_for_vectype): Likewise.
7731 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7733 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
7735 (vect_recog_dot_prod_pattern): Update call accordingly.
7736 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
7737 (vect_recog_widen_sum_pattern): Likewise.
7739 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7741 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
7742 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
7743 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
7746 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7748 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
7749 get_vectype_for_scalar_type_and_size instead of
7750 get_vectype_for_scalar_type.
7752 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7754 * common.opt (-fcommon): Fix description.
7756 2019-10-20 Jakub Jelinek <jakub@redhat.com>
7758 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
7759 * config/i386/i386.c (ix86_pre_reload_split): New function.
7760 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
7761 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
7762 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
7763 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
7764 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
7765 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
7766 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
7767 *<shift_insn><dwi>3_doubleword_mask,
7768 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
7769 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
7770 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
7771 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
7772 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
7773 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
7774 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
7775 *avx2_<code>v8qiv8si2<mask_name>_2,
7776 *sse4_1_<code>v4qiv4si2<mask_name>_2,
7777 *sse4_1_<code>v4hiv4si2<mask_name>_2,
7778 *avx512f_<code>v8qiv8di2<mask_name>_2,
7779 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
7780 *sse4_1_<code>v2hiv2di2<mask_name>_2,
7781 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
7782 sse4_2_pcmpistr): Likewise.
7784 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
7786 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
7787 now defaults to https.
7789 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
7791 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
7792 skip non-zero array accesses.
7794 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7796 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
7797 and return a boolean success value. Move the allocation and
7798 initialization of the bb_vec_info to...
7799 (vect_slp_bb_region): ...here. Update call accordingly.
7800 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
7801 than in vect_slp_analyze_bb_1.
7803 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7805 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
7806 when processing the given datarefs for the first time and
7807 check_datarefs subsequently.
7808 (vect_slp_bb_region): New function, split out of...
7809 (vect_slp_bb): ...here. Don't recompute the region bounds and
7810 dataref sets when retrying with a different vector size.
7812 2019-10-19 Jakub Jelinek <jakub@redhat.com>
7813 Uroš Bizjak <ubizjak@gmail.com>
7816 * config/i386/predicates.md (int_nonimmediate_operand): New special
7818 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
7819 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
7820 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
7821 define_insn_and_split patterns.
7823 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
7825 * config/rs6000/rs6000.md: Delete out--of-date comment about
7826 special-casing integer loads.
7828 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
7830 * escaped_string.h (escaped_string): New header.
7831 * tree.c (escaped_string): Remove escaped_string class.
7833 2019-10-18 Martin Sebor <msebor@redhat.com>
7835 PR tree-optimization/92157
7836 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
7837 compute_string_length to return a negative result.
7839 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7841 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
7842 (negvsi3, negvdi3): Delete.
7843 (negdi2_compare): Delete.
7845 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7847 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
7849 (subdi3_compare1): Delete pattern.
7850 (subvsi3_borrow): New insn pattern.
7851 (subvsi3_borrow_imm): Likewise.
7853 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7855 * config/arm/arm.md (subv<mode>4): Delete.
7856 (subvdi4): New expander pattern.
7857 (subvsi4): Likewise. Handle some immediate values.
7858 (subvsi3_intmin): New insn pattern.
7859 (subvsi3): Likewise.
7860 (subvsi3_imm1): Likewise.
7861 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
7864 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7866 * config/arm/arm.md (usubvdi4): Allow registers or integers for
7867 incoming operands. Early split the calculation into SImode
7869 (usubvsi3_borrow): New insn pattern.
7870 (usubvsi3_borrow_imm): Likewise.
7872 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7874 * config/arm/arm.md (usubv<mode>4): Delete expansion.
7875 (usubvsi4): New pattern. Allow some immediate values for inputs.
7876 (usubvdi4): New pattern.
7878 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7880 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
7881 or second operand of the PLUS inside a DImode equality test to be
7882 sign-extend when selecting CC_Vmode.
7883 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
7885 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
7887 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
7888 (addsi3_cin_vout_0): Likewise.
7889 (adddi3_compareV): Delete.
7891 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7893 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
7894 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
7895 to transform this back into the summation version when that leads
7898 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7900 * config/arm/arm.md (addv<mode>4): Delete.
7901 (addvsi4): New pattern. Handle immediate values that the architecture
7903 (addvdi4): New pattern.
7904 (addsi3_compareV): Rename to ...
7905 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
7906 and use COMPARE rather than NE.
7907 (addsi3_compareV_imm): New pattern.
7908 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
7909 a signed-overflow check.
7911 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7913 * config/arm/arm-modes.def (CC_ADC): New CC mode.
7914 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
7916 (maybe_get_arm_condition_code): Handle CC_ADCmode.
7917 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
7919 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
7921 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
7922 (addsi3_cin_cout_imm_insn): Likewise.
7923 (adddi3_compareC): Delete insn.
7924 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
7926 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7928 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
7929 * (uaddv<mode>4): Delete expansion pattern.
7930 (uaddvsi4): New pattern.
7931 (uaddvdi4): Likewise.
7932 (addsi3_compareC): Delete pattern, change callers to use
7934 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
7935 reduce the number of alternatives and re-work type attribute handling.
7936 (addsi3_compare_op2): Clean up constraints to reduce the number of
7937 alternatives and re-work type attribute handling.
7938 (compare_addsi2_op0): Likewise.
7939 (compare_addsi2_op1): Likewise.
7941 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7943 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
7944 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
7945 for DImode operands.
7946 (arm_gen_dicompare_reg): Remove unreachable expansion code.
7947 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
7949 * config/arm/arm.md (arm_cmpdi_insn): Delete.
7950 (arm_cmpdi_unsigned): Delete.
7952 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7954 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
7955 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
7956 unchanged only if that will be cheaper.
7957 (arm_select_cc_mode): Recognize a swapped comparison that will
7958 be regenerated using RSBS or RSCS. Relax restriction on selecting
7960 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
7962 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
7964 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
7966 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
7967 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
7969 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7971 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
7972 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
7974 (arm_gen_dicompare_reg): New code to early expand the sub-operations
7975 of EQ, NE, LT, GE, LTU and GEU.
7976 * config/arm/iterators.md (CC_EXTEND): New code attribute.
7977 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
7978 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
7979 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
7980 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
7982 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7984 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
7986 (cstoredi4): Similarly, but for operand 3.
7987 * config/arm/arm.c (arm_canoncialize_comparison): Allow
7988 canonicalization of unsigned compares with a constant on Arm.
7989 Prefer using const+1 and adjusting the comparison over swapping the
7990 operands whenever the original constant was not valid.
7991 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
7993 (arm_validize_comparison): Do not force invalid DImode operands to
7996 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7998 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
7999 return CC_Zmode if comparing against a constant where one word is
8001 (arm_gen_compare_reg): Split DImode handling to ...
8002 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8003 against simple constants.
8004 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8006 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8008 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8009 (rsbsi3_carryin_shift_alt): Likewise.
8011 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8013 * config/arm/arm.md (negscc_borrow): New pattern.
8014 (mov_negscc): Don't split if the insn would match negscc_borrow.
8015 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8016 (thumb2_mov_negscc_strict_it): Likewise.
8018 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8020 * config/arm/arm.c (arm_insn_cost): New function.
8021 (TARGET_INSN_COST): Override default definition.
8023 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8025 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8028 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8030 * config/arm/arm.c (strip_carry_operation): New function.
8031 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8034 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8036 * config/arm/predicates.md (arm_carry_operation): New special
8038 * config/arm/iterators.md (LTUGEU): Delete iterator.
8039 (cnb): Delete code attribute.
8040 (optab): Delete ltu and geu elements.
8041 * config/arm/arm.md (addsi3_carryin): Renamed from
8042 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8043 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8044 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8045 (addsi3_carryin_clobercc): Similarly.
8046 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8049 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8051 * config/arm/arm.md (arm_subdi3): Delete insn.
8052 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8054 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8056 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8057 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8058 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8060 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8061 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8063 (subdi3): Rewrite to early-expand the sub-operations.
8064 (rsb_im_compare): New pattern.
8066 (negdi2_insn): Delete.
8067 (arm_negsi2): Correct type attribute to alu_imm.
8068 (negsi2_0compare): New insn pattern.
8069 (negsi2_carryin): New insn pattern.
8071 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8073 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8076 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8078 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8079 to match canonical form.
8081 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8083 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8084 (extend<mode>di2): Likewise.
8086 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8088 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8089 * config/arm/arm.c (arm_decompose_di_binop): New function.
8090 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8091 If not generating Thumb-1 code, decompose the operation into 32-bit
8093 * add0si_carryin_<optab>: New pattern.
8095 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8097 * arm.md (adddi3): Only accept register operands.
8098 (arm_adddi3): Convert to simple insn with no split. Do not accept
8100 (adddi_sesidi_di): Delete patern.
8101 (adddi_zesidi_di): Likewise.
8102 (uaddv<mode>4): Use LTU as condition for branch.
8103 (adddi3_compareV): Convert to simple insn with no split.
8104 (addsi3_compareV_upper): Delete pattern.
8105 (adddi3_compareC): Convert to simple insn with no split. Correct
8106 flags setting expression.
8107 (addsi3_compareC_upper): Delete pattern.
8108 (addsi3_compareC): Correct flags setting expression.
8109 (subdi3_compare1): Convert to simple insn with no split.
8110 (subsi3_carryin_compare): Delete pattern.
8111 (arm_subdi3): Convert to simple insn with no split.
8112 (subdi_zesidi): Delete pattern.
8113 (subdi_di_sesidi): Delete pattern.
8114 (subdi_zesidi_di): Delete pattern.
8115 (subdi_sesidi_di): Delete pattern.
8116 (subdi_zesidi_zesidi): Delete pattern.
8117 (negvdi3): Use s_register_operand.
8118 (negdi2_compare): Convert to simple insn with no split.
8119 (negdi2_insn): Likewise.
8120 (negsi2_carryin_compare): Delete pattern.
8121 (negdi_zero_extendsidi): Delete pattern.
8122 (arm_cmpdi_insn): Convert to simple insn with no split.
8123 (negdi2): Don't call gen_negdi2_neon.
8124 * config/arm/neon.md (adddi3_neon): Delete pattern.
8125 (subdi3_neon): Delete pattern.
8126 (negdi2_neon): Delete pattern.
8127 (splits for negdi2_neon): Delete splits.
8129 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8132 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8135 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8137 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8138 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8139 new multilib variants and new mappings.
8141 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8144 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8146 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8147 Richard Sandiford <richard.sandiford@arm.com>
8150 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8151 and define hashmap traits for it.
8152 (loop_vec_info::scalar_cond_masked_set): New member.
8153 (vect_record_loop_mask): Adjust prototype.
8154 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8156 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8157 vect_record_loop_mask.
8158 (vectorizable_live_operation): Likewise.
8159 (vect_record_loop_mask): New param scalar_mask. Add entry
8160 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8161 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8162 Pass it as last arg to vect_record_loop_mask.
8163 (vectorizable_call): Pass scalar_mask as last arg to
8164 vect_record_loop_mask.
8165 (vectorizable_store): Likewise.
8166 (vectorizable_load): Likewise.
8167 (vectorizable_condition): Check if another part of vectorized code
8168 applies loop_mask to condition or to it's inverse, and if yes,
8169 apply loop_mask to result of vector comparison.
8171 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8173 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8175 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8177 PR tree-optimization/92056
8178 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8179 before calling compute_builtin_object_size.
8181 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8184 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8185 (movdi_low_st): Delete.
8186 * config/rs6000/rs6000.c
8187 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8188 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8189 * config/rs6000/rs6000.md (movsi_low): Delete.
8191 2019-10-17 Jason Merrill <jason@redhat.com>
8193 * gimplify.h (get_initialized_tmp_var): Add default argument to
8195 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8196 NULL post_p argument.
8197 * targhooks (std_gimplify_va_arg_expr): Likewise.
8199 2019-10-17 Richard Biener <rguenther@suse.de>
8201 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8202 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8203 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8204 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8205 * tree-vect-loop.c (vect_is_simple_reduction): Set
8206 STMT_VINFO_REDUC_CODE.
8207 (vectorizable_reduction): Remove dead and redundant code, use
8208 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8210 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8212 Fix breakage introduced by r276985.
8214 * config/avr/avr.c (avr_option_override): Remove set of
8215 PARAM_ALLOW_STORE_DATA_RACES.
8216 * common/config/avr/avr-common.c (avr_option_optimization_table)
8217 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8219 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8221 * config/i386/i386.h (processor_costs): Add clear_ratio.
8222 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8223 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8224 of 6 and move_ratio in all cost models.
8226 2019-10-17 Richard Biener <rguenther@suse.de>
8228 * tree-vect-loop.c (check_reduction_path): Compute reduction
8230 (vect_is_simple_reduction): Remove special-case of single-stmt
8231 reduction path detection.
8233 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
8235 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8237 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
8239 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8240 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8241 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8242 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8243 New combine patterns.
8244 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8246 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8248 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
8250 * tree-vrp.c (value_range_base::dump): Display +INF for both
8251 pointers and integers when appropriate.
8253 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8255 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8256 when to use versioning threshold.
8258 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8260 * tree-vect-loop.c (determine_peel_for_niter): New function contained
8261 outlined code from ...
8262 (vect_analyze_loop_2): ... here.
8264 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8266 * tree-vect-loop.c (vect_transform_loop): Move code from here...
8267 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
8268 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
8270 2019-10-17 Richard Biener <rguenther@suse.de>
8272 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
8273 (vect_is_simple_reduction): Move all validity checks ...
8274 (vectorizable_reduction): ... here. Compute whether we
8275 need a fold-left reduction here.
8276 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
8277 both overloads, check needs_fold_left_reduction_p directly.
8278 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
8280 2019-10-17 Richard Biener <rguenther@suse.de>
8282 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
8283 TARGET_MEM_REF creation.
8285 2019-10-17 Richard Biener <rguenther@suse.de>
8287 PR tree-optimization/92129
8288 * tree-vect-loop.c (vectorizable_reduction): Also fail
8289 on GIMPLE_SINGLE_RHS.
8291 2019-10-17 Jakub Jelinek <jakub@redhat.com>
8293 PR tree-optimization/92056
8294 * tree-object-size.c (cond_expr_object_size): Return early if then_
8295 processing resulted in unknown size.
8297 PR tree-optimization/92115
8298 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
8299 temporary if it could trap.
8301 2019-10-17 Richard Biener <rguenther@suse.de>
8304 * dwarf2out.c (gen_formal_parameter_die): Also try to match
8305 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
8307 2019-10-16 Jakub Jelinek <jakub@redhat.com>
8309 * tree-ssa-strlen.c (maybe_invalidate): Use
8310 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
8312 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
8313 Jim Wilson <jimw@sifive.com>
8315 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
8316 regs to SIBCALL_REGS.
8317 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
8318 passing regs to SIBCALL_REGS.
8320 2019-10-16 Martin Sebor <msebor@redhat.com>
8322 PR tree-optimization/83821
8323 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
8324 the length of a string when available.
8325 (handle_builtin_memset) Add argument.
8326 (handle_store, strlen_check_and_optimize_call): Same.
8327 (check_and_optimize_stmt): Same. Pass it to callees.
8329 2019-10-16 Martin Sebor <msebor@redhat.com>
8331 PR tree-optimization/91996
8332 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
8334 (compare_nonzero_chars): Add an overload.
8335 (count_nonzero_bytes): Add an argument. Call overload above.
8336 Handle non-constant lengths in some range.
8337 (handle_store): Add an argument.
8338 (check_and_optimize_stmt): Pass an argument to handle_store.
8340 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
8342 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
8344 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8346 * config/mips/mips.c (mips_expand_builtin_insn): Force the
8347 operands which correspond to the same input-output register to
8348 have the same pseudo assigned to them.
8350 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
8352 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
8354 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
8356 * config/aarch64/aarch64.c (aarch64_classify_symbol):
8357 Apply reasonable limit to symbol offsets.
8359 2019-10-16 Richard Biener <rguenther@suse.de>
8361 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
8362 (vect_is_simple_reduction): Delay checking to
8363 vectorizable_reduction and relax the checking.
8364 (vectorizable_reduction): Check we have a simple use. Check
8365 for bogus condition reductions.
8366 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
8367 are looking at the last stmt in a pattern sequence when
8368 filling in backedge PHI values.
8370 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
8371 Jiufu Guo <guojiufu@linux.ibm.com>
8374 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
8375 the callee explicitly disables some isa_flags the caller is using.
8377 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8379 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
8381 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8383 * genmodes.c (mode_data::order): New field.
8384 (blank_mode): Update accordingly.
8385 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
8386 (make_vector_modes): Likewise.
8387 (VECTOR_MODES): Update use accordingly.
8388 (cmp_modes): Sort by the new order field ahead of sorting by size.
8389 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
8390 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
8391 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
8392 (aarch64_classify_vector_mode): Handle the new partial modes.
8393 (aarch64_vl_bytes): New function.
8394 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
8395 when counting the number of registers in an SVE mode.
8396 (aarch64_class_max_nregs): Likewise.
8397 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
8399 (aarch64_classify_address): Treat partial vectors analogously
8401 (aarch64_print_address_internal): Consolidate the printing of
8402 MUL VL addresses, using aarch64_vl_bytes as the number of
8403 bytes represented by "VL".
8404 (aarch64_vector_mode_supported_p): Reject partial vector modes.
8406 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8408 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
8409 rather than known_lt when choosing frame layouts.
8411 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8413 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
8414 that all the adjustments add up to the full frame size.
8415 Use crtl->outgoing_args_size directly as the final adjustment
8418 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8420 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
8421 "frame" reference instead of always referring directly to
8422 "cfun->machine->frame".
8424 2019-10-16 Richard Biener <rguenther@suse.de>
8426 PR tree-optimization/92119
8427 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
8428 against missing bswap lhs.
8430 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8433 * poly-int.h (constant_lower_bound_with_limit): New function.
8434 (constant_upper_bound_with_limit): Likewise.
8435 * doc/poly-int.texi: Document them.
8436 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
8437 into the worst-case INTEGER_CST bounds.
8439 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
8442 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
8443 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
8444 * ipa-predicat.h (struct expr_eval_op): New struct.
8445 (expr_eval_ops): New typedef.
8446 (struct condition): Add type and param_ops fields, remove size field.
8447 (add_condition): Replace size parameter with type parameter, add
8448 param_ops parameter.
8449 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
8450 (predicate::add_clause): Add comparisons on type and param_ops.
8451 (dump_condition): Add debug dump for param_ops.
8452 (remap_after_inlining): Adjust call arguments to add_condition.
8453 (add_condition): Replace size parameter with type parameter, add
8454 param_ops parameter. Unshare constant value used in conditions.
8455 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
8456 parameter expressions using param_ops.
8457 (decompose_param_expr): New function.
8458 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
8459 to replace call to unmodified_parm_or_parm_agg_item.
8460 (set_switch_stmt_execution_predicate): Likewise.
8461 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
8463 (inline_read_section): Read param_ops from summary stream.
8464 (ipa_fn_summary_write): Write param_ops to summary stream.
8466 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8468 PR rtl-optimization/92107
8469 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
8472 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8474 * config/darwin.c: Update description of fix and continue.
8476 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8478 * config/darwin.c (darwin_binds_local_p): Update to call
8479 default_binds_local_p_3 () directly. amend comments.
8481 2019-10-15 Richard Biener <rguenther@suse.de>
8483 * lto-streamer-out.c (lto_variably_modified_type_p): New.
8484 (tree_is_indexable): Use it.
8485 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8486 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
8487 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8489 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8491 * config/msp430/msp430.md (zero_extendqipsi2): New.
8492 (zero_extendqisi2): Optimize case where src register and base dst
8493 register are the same.
8494 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
8495 (zero_extendpsisi2): Optimize r->m case.
8496 Add unnamed insn patterns to catch insns combine searches for when
8497 optimizing pointer manipulation.
8499 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8501 * config/msp430/msp430.md: Group zero_extend* insns together.
8503 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8505 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
8507 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
8509 (msp430_subreg): Likewise.
8510 (msp430_split_addsi): Likewise.
8511 (msp430_print_operand_addr): Likewise.
8512 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
8513 (USE_STORE_POST_INCREMENT): Define.
8514 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
8515 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
8516 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
8517 (msp430_general_dst_operand): New.
8518 (msp430_general_dst_nonv_operand): New.
8519 (msp430_nonsubreg_operand): Remove.
8520 (msp430_nonsubreg_dst_operand): New.
8521 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
8522 of defunct msp430_nonsubreg_operand.
8523 (msp430_nonsubregnonpostinc_or_imm_operand): New.
8525 2019-10-15 Richard Biener <rguenther@suse.de>
8527 PR tree-optimization/91929
8528 * tree-ssa-pre.c (pre_expr_d::loc): New member.
8529 (get_or_alloc_expr_for_name): Initialize it.
8530 (get_or_alloc_expr_for_constant): Likewise.
8531 (phi_translate_1): Copy it.
8532 (create_expression_by_pieces): Use the original location
8533 of the expression for the inserted stmt.
8534 (compute_avail): Record the location of the stmt for the
8535 expressions created.
8537 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
8539 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
8540 before using tree_to_uhwi.
8542 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
8544 * config/s390/s390.md: Run %a0:DI splitters only after reload.
8546 2019-10-15 Richard Biener <rguenther@suse.de>
8548 PR tree-optimization/92094
8549 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
8550 do not adjust the reduction definition def type.
8551 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
8552 defines the latch argument of the PHI.
8554 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
8557 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
8558 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
8559 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
8560 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
8561 _mm_maskz_roundscale_round_sd): New intrinsics.
8562 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
8563 __builtin_ia32_rndscales?_mask_round builtins instead of
8564 __builtin_ia32_rndscales?_round.
8565 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
8566 __builtin_ia32_rndscalesd_round): Remove.
8567 (__builtin_ia32_rndscaless_mask_round,
8568 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
8569 * config/i386/sse.md
8570 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
8571 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
8572 ... this, adjust and add subst atrributes to make it maskable.
8574 2019-10-15 Richard Biener <rguenther@suse.de>
8577 * common.opt (fallow-store-data-races): New.
8578 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
8579 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
8580 * doc/invoke.texi (fallow-store-data-races): Document.
8581 (--param allow-store-data-races): Remove docs.
8582 * opts.c (default_options_table): Enable -fallow-store-data-races
8584 (default_options_optimization): Do not enable --param
8585 allow-store-data-races at -Ofast.
8586 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
8587 instead of PARAM_ALLOW_STORE_DATA_RACES.
8588 * tree-ssa-loop-im.c (execute_sm): Likewise.
8590 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8592 PR tree-optimization/92085
8593 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
8594 instead of calling it unconditionally after
8595 delete_dead_or_redundant_assignment and fix indentation.
8597 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8599 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
8601 (*fmsub<SDF:mode>4): Likewise.
8602 *fnmsub<SDF:mode>4): Likewise.
8603 (*fnmadd<SDF:mode>4): Likewise.
8605 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
8607 * doc/tree-ssa.texi: Update renamed macro name.
8609 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8611 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
8614 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
8616 * config/darwin.c: Use unsigned ints for the picbase label
8617 counters, initialise the vars explicitly.
8618 (update_pic_label_number_if_needed): Move a variable declaration
8619 to where it's needed.
8620 (machopic_output_function_base_name): Use a more strict checking
8621 assert, and and unsigned int for the picbase label counter.
8622 (machopic_get_function_picbase): Likewise.
8624 2019-10-14 Richard Biener <rguenther@suse.de>
8627 * dse.c (scan_insn): Use param max_active_local_stores.
8628 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
8629 based on optimization level.
8630 * loop-invariant.c (move_loop_invariants): Adjust
8631 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
8632 * opts.c (default_options_optimization): Do not adjust
8633 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
8634 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
8636 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8638 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
8640 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8642 * config/arm/arm.c (arm_option_override): Don't override sched
8645 2019-10-14 Richard Biener <rguenther@suse.de>
8647 PR tree-optimization/92069
8648 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
8649 cycles do not set vect_nested_cycle on the latch definition.
8651 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
8653 * function-abi.h (expr_callee_abi): Declare.
8654 * function-abi.cc (expr_callee_abi): New function.
8656 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
8658 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
8660 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
8661 non-zero being represented as [1,MAX].
8663 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8665 * tree-sra.c (dump_access): Add missing braces.
8667 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8669 * config/darwin.c (machopic_indirection_name): Rework the
8670 function to emit linker-visible symbols only for indirections
8671 in the data section. Clean up the code and update comments.
8673 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8675 * config/darwin.c (machopic_indirect_data_reference): Remove
8678 2019-10-13 Nathan Sidwell <nathan@acm.org>
8680 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
8682 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8684 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
8687 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
8689 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
8690 so non-virutal are before virutals.
8691 (output_function): Avoid body modifications.
8693 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8695 * config/pa/pa.c (pa_output_call): Load descriptor address to register
8696 %r22. Load function address before global pointer.
8697 (pa_attr_length_indirect_call): Adjust length of inline versions of
8699 (pa_output_indirect_call): Remove fast inline version of $$dyncall
8700 before normal cases. Update inline $$dyncall sequences to preserve
8701 function descriptor address in register %r22.
8702 (TRAMPOLINE_CODE_SIZE): Adjust.
8703 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
8704 register %r22 contains trampoline address.
8705 (pa_trampoline_init): Adjust offsets.
8706 (pa_trampoline_adjust_address): Likewise.
8707 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
8709 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8712 * config/darwin.c (machopic_indirection): New field to flag
8713 non-lazy-symbol-pointers in the data section.
8714 (machopic_indirection_name): Compute if an indirection should
8715 appear in the data section.
8716 (machopic_output_data_section_indirection): New callback split
8717 from machopic_output_indirection.
8718 (machopic_output_stub_indirection): Likewise.
8719 (machopic_output_indirection): Retain the code for non-lazy
8720 symbol pointers in their regular section.
8721 (machopic_finish): Use the new callbacks to order the indirection
8724 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8726 * config/darwin-protos.h (machopic_finish): Delete.
8727 * config/darwin.c (machopic_finish): Make static.
8729 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8731 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
8732 sections when building kernel extension code.
8734 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
8736 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
8739 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8741 * config/pa/pa.c (pa_option_override): Remove trailing comma
8744 2019-10-12 Jakub Jelinek <jakub@redhat.com>
8747 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
8748 <case VEC_COND_EXPR>: Return false with *handled = false.
8749 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
8750 recursing on the first operand.
8751 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
8752 instead of tree_could_trap_p.
8753 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
8755 2019-10-11 Jim Wilson <jimw@sifive.com>
8757 PR rtl-optimization/91860
8758 * combine.c (subst): If new_rtx is a constant, also check for
8759 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
8761 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
8763 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
8764 INTVAL when calling store_bit_field.
8766 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
8768 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
8771 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
8773 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
8774 vectorizable_live_operation.
8775 (vectorizable_live_operation): Adjust parameters.
8776 * tree-vect-stmts.c (vect_init_vector,
8777 vect_gen_widened_results_half): Fix typo in function comment.
8778 (can_vectorize_live_stmts): Adjust function comment.
8779 Adjust parameters. Adjust call to vectorizable_live_operation.
8780 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
8781 (vect_transform_stmt): Adjust function comment. Adjust call to
8782 can_vectorize_live_stmts.
8783 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
8785 2019-10-11 Richard Biener <rguenther@suse.de>
8787 PR tree-optimization/90883
8788 PR tree-optimization/91091
8789 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
8790 alias-sets both for recording VN table entries and continuing
8791 walking after translating through copies. Handle same-sized
8792 reads from SSA names by returning the plain SSA name.
8793 (eliminate_dom_walker::eliminate_stmt): Properly handle
8794 non-size precision stores in redundant store elimination.
8796 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8798 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
8799 (ggc_collect): Dump later to not interfere with release_page dump.
8800 (ggc_trim): New function.
8801 * ggc-none.c (ggc_trim): New.
8802 * ggc.h (ggc_trim): Declare.
8804 2019-10-11 Richard Biener <rguenther@suse.de>
8806 PR tree-optimization/92066
8807 PR tree-optimization/92046
8808 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8809 Fix bogus cost model check.
8811 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
8813 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
8814 (LANG_HOOKS_DECLS): Add it.
8815 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
8816 update comment for omp_is_optional_argument.
8817 * omp-general.c (omp_is_allocatable_or_ptr): New.
8818 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
8819 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
8820 Fortran's optional arguments and allocatable/pointer scalars
8821 with use_device_addr.
8823 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
8826 * config/s390/2827.md: Add new opcodes.
8827 * config/s390/2964.md: Likewise.
8828 * config/s390/3906.md: Likewise.
8829 * config/s390/8561.md: Likewise.
8830 * config/s390/s390-builtins.def (s390_vfchesb): Use
8831 the new vec_cmpgev4sf_quiet_nocc.
8832 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
8833 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
8834 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
8835 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
8836 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
8837 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
8838 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
8839 * config/s390/s390-modes.def (CCSFPS): New mode.
8840 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
8841 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
8842 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
8843 (s390_expand_vec_compare): Use non-signaling patterns where
8845 (s390_reverse_condition): Support CCSFPS.
8846 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
8847 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
8848 (asm_fcmp_op): Likewise.
8849 (*smaxv2df3_vx): Use pattern for quiet comparison.
8850 (*sminv2df3_vx): Likewise.
8851 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
8852 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
8853 (vec_cmpgt<mode>_quiet_nocc): Likewise.
8854 (vec_cmplt<mode>_quiet_nocc): New expander.
8855 (vec_cmpge<mode>_quiet_nocc): New pattern.
8856 (vec_cmple<mode>_quiet_nocc): New expander.
8857 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
8858 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
8859 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
8860 (*vec_cmpge<mode>_signaling_nocc): Likewise.
8861 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
8862 (vec_cmpungt<mode>): New expander.
8863 (vec_cmpunge<mode>): Likewise.
8864 (vec_cmpuneq<mode>): Use quiet patterns.
8865 (vec_cmpltgt<mode>): Allow only on z14+.
8866 (vec_cmpordered<mode>): Use quiet patterns.
8867 (vec_cmpunordered<mode>): Likewise.
8868 (VEC_CMP_EXPAND): Add ungt and unge.
8870 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8872 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
8874 * lto-streamer-out.c: Include tree-dfa.h.
8875 (output_cfg): Do not use cfun.
8876 (lto_prepare_function_for_streaming): New.
8877 (output_function): Do not push cfun; do not initialize loop optimizer.
8878 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
8879 * passes.c (ipa_write_summaries): Use it.
8880 (ipa_write_optimization_summaries): Do not modify bodies.
8881 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
8882 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
8883 * tree-ssa-dse.c (pass_dse::execute): Update use of
8884 renumber_gimple_stmt_uids.
8885 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
8887 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
8889 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
8890 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
8892 2019-10-10 Joseph Myers <joseph@codesourcery.com>
8894 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
8896 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
8897 Also define DFP macros for these conditions.
8898 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
8899 DEC128_SUBNORMAL_MIN): Do not define.
8900 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
8901 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
8903 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
8904 Sandra Loosemore <sandra@codesourcery.com>
8907 * doc/lto.texi (IPA): Reference to the IPA passes.
8908 * doc/passes.texi (Pass manager): Add node IPA passes and
8909 description for each IPA pass.
8911 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8913 * ipa-reference.c: Do not include splay-tree.h
8914 (reference_vars_to_consider): Turn to hash map.
8915 (get_static_name, ipa_init, analyze_function, propagate,
8916 stream_out_bitmap, ipa_reference_write_optimization_summary,
8917 ipa_reference_write_optimization_summary): Update.
8919 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8921 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
8923 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
8925 * config/darwin.c: Lookup Objective C metadata and force indirection
8928 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
8930 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
8932 (mem_operand_gpr): Add check for prefixed addresses.
8933 (mem_operand_ds_form): Add check for prefixed addresses.
8934 (rs6000_legitimate_offset_address_p): If we support prefixed
8935 addresses, check for a 34-bit offset instead of 16-bit.
8936 (rs6000_legitimate_address_p): Add check for prefixed addresses.
8937 Do not allow load/store with update if the address is prefixed.
8938 (rs6000_mode_dependent_address): If we support prefixed
8939 addresses, check for a 34-bit offset instead of 16-bit.
8941 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
8944 * config/s390/vector.md (vcond_comparison_operator): New
8946 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
8948 2019-10-10 David Malcolm <dmalcolm@redhat.com>
8951 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
8953 * configure.ac (--with-documentation-root-url): New option.
8954 * configure: Regenerate.
8955 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
8956 option URL, add it as a new string field of the diagnostic option.
8957 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
8958 (print_option_information): If get_option_url is non-NULL, call
8959 it, and if the result is non-NULL, potentially emit an escape
8960 sequence to markup the option text with the resulting URL.
8961 * diagnostic.h (diagnostic_context::get_option_url): New callback.
8962 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
8963 example of JSON output.
8964 * opts-diagnostic.h (get_option_url): New decl.
8965 * opts.c (get_option_url): New function.
8966 * toplev.c (general_init): Initialize the get_option_url callback.
8968 2019-10-10 David Malcolm <dmalcolm@redhat.com>
8971 * common.opt (fdiagnostics-urls=): New option.
8972 (diagnostic-url.h): Add SourceInclude.
8973 (diagnostic_url_rule): New enum.
8974 * diagnostic-color.c: Include "diagnostic-url.h".
8975 (diagnostic_urls_enabled_p): New function.
8976 * diagnostic-url.h: New file.
8977 * diagnostic.c: Include "diagnostic-url.h".
8978 (diagnostic_urls_init): New function.
8979 * diagnostic.h (diagnostic_urls_init): New decl.
8980 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
8981 -fdiagnostics-urls to the list.
8982 (-fdiagnostics-urls): New option.
8983 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
8984 (driver::global_initializations): Call diagnostic_urls_init.
8985 * opts-global.c (init_options_once): Likewise.
8986 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
8987 * pretty-print.c (pretty_printer::pretty_printer): Initialize
8989 (pp_begin_url): New function.
8990 (pp_end_url): New function.
8991 (selftest::test_urls): New selftest.
8992 (selftest::pretty_print_c_tests): Call it.
8993 * pretty-print.h (pretty_printer::show_urls): New field.
8994 (pp_begin_url): New decl.
8995 (pp_end_url): New decl.
8997 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9000 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9002 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9005 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9006 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9007 also for TARGET_FPU_SH4_300.
9008 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9010 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9011 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9012 (*negsf2_i): Split into ...
9013 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9014 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9015 (**abssf2_i): Split into ...
9016 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9017 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9018 (*negdf2_i): Split into ...
9019 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9020 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9021 (**abssf2_i): Split into ...
9022 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9024 2019-10-10 Richard Biener <rguenther@suse.de>
9027 * opts.c (finish_options): Do not influence global --params
9028 from options that are adjustable per function.
9029 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9030 Apply --param adjustment based on active cost-model.
9031 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9032 further store-sinking when vectorization or if-conversion
9035 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9038 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9039 rather than ggc_alloc_cleared to alloc symbol table.
9040 * toplev.c (general_init): Likewise.
9041 * cgraph.h (symbol_table): Explicitly construct every field.
9043 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9045 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9047 * config.gcc: Add z15 as option for --with-arch and --with-tune
9049 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9050 error reporting for unsupported builtins.
9051 * config/s390/s390-opts.h (enum processor_type): Rename
9052 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9053 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9054 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9056 * config/s390/s390-builtins.def: Likewise.
9057 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9058 (s390_expand_builtin): Add missing check for unsupported builtins.
9059 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9060 (s390_rtx_costs): Likewise.
9061 (s390_get_sched_attrmask): Rename arch13 to z15.
9062 (s390_get_unit_mask): Likewise.
9063 (s390_is_fpd): Likewise.
9064 (s390_is_fxd): Likewise.
9065 * config/s390/s390.h (enum processor_flags): Likewise.
9066 * config/s390/s390.md: Likewise.
9067 * config/s390/vector.md: Likewise.
9068 * config/s390/vx-builtins.md: Likewise.
9069 * config/s390/s390.opt: Add z15 to processor_type value.
9071 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9074 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9076 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9077 ("split_stack_data", "split_stack_call")
9078 ("split_stack_call_<mode>", "split_stack_cond_call")
9079 ("split_stack_cond_call_<mode>"): Remove.
9080 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9082 * config/s390/s390.c (s390_output_split_stack_data): New function.
9083 (s390_expand_split_stack_prologue): Use the merged expander.
9085 2019-10-09 Martin Sebor <msebor@redhat.com>
9087 PR tree-optimization/90879
9088 * builtins.c (check_access): Avoid using maxbound when null.
9089 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9090 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9091 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9093 (get_range_strlen): Overwrite initial maxbound when non-null.
9094 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9096 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9097 (used_only_for_zero_equality): New function.
9098 (handle_builtin_memcmp): Call it.
9099 (determine_min_objsize): Return an integer instead of tree.
9100 (get_len_or_size, strxcmp_eqz_result): New functions.
9101 (maybe_warn_pointless_strcmp): New function.
9102 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9103 between a longer string and a smaller array.
9104 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9106 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9108 * config/darwin.c (darwin_override_options): Make the check for
9109 Objective-C ABI version more specific for 64bit code.
9111 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9113 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9114 indicate that the new symbol is an indirection.
9115 (machopic_indirect_call_target): Likewise.
9116 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9117 (MACHO_SYMBOL_INDIRECTION_P): New.
9118 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9120 2019-10-08 Jason Merrill <jason@redhat.com>
9122 * doc/invoke.texi: Document -fconcepts-ts.
9124 2019-10-09 Richard Biener <rguenther@suse.de>
9126 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9127 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9129 2019-10-08 Richard Biener <rguenther@suse.de>
9131 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9132 (_stmt_vec_info::force_single_cycle): Likewise.
9133 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9134 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9135 * tree-vect-loop.c (vectorizable_reduction): Set
9136 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9137 (vect_transform_reduction): Use them to remove redundant code.
9138 (vect_transform_cycle_phi): Likewise.
9140 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9142 PR tree-optimization/90836
9143 * match.pd (popcount): New pattern.
9145 2019-10-08 Martin Sebor <msebor@redhat.com>
9149 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9150 again once nbytes has been set. Set the access size when not yet set.
9152 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9154 * config/darwin.c (machopic_select_section): Remove dead code for
9155 old Objective-C section selection method, replace with unreachable.
9157 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9159 * config/darwin.c (machopic_indirect_data_reference): Check for
9160 required indirections before making direct access to defined
9162 (machopic_output_indirection): Place the indirected pointes for
9163 required indirections into the non-lazy symbol pointers section.
9164 (darwin_encode_section_info):
9165 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9166 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9168 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9171 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9172 instead of ALL_SSE_REG to check if function call preserves some
9173 256-bit SSE registers.
9175 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9177 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9178 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9179 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9181 2019-10-08 Richard Biener <rguenther@suse.de>
9183 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9184 (_stmt_vec_info::is_reduc_info): Add.
9185 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9186 (vectorizable_condition): Remove.
9187 (vectorizable_shift): Likewise.
9188 (vectorizable_reduction): Adjust.
9189 (info_for_reduction): New.
9190 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9191 (vect_analyze_scalar_cycles_1): ... here.
9192 (vect_analyze_loop_operations): Adjust.
9193 (needs_fold_left_reduction_p): Simplify for single caller.
9194 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9195 for nested cycles not part of double reductions.
9196 (vect_model_reduction_cost): Pass in the reduction type.
9197 (info_for_reduction): New function.
9198 (vect_create_epilog_for_reduction): Use it, access reduction
9199 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9200 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9201 (vectorize_fold_left_reduction): Remove pointless assert.
9202 (vectorizable_reduction): Analyze the full reduction when
9203 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9204 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9205 stmt code-generation to vectorizable_* in most cases. Verify
9206 code-generation only for cases handled by
9207 vect_transform_reductuon.
9208 (vect_transform_reduction): Use info_for_reduction to get at
9209 reduction meta. Simplify.
9210 (vect_transform_cycle_phi): Likewise.
9211 (vectorizable_live_operation): Likewise.
9212 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9213 at the PHI node for STMT_VINFO_REDUC_TYPE.
9214 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9215 longer necessary code.
9216 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9217 (vectorizable_condition): Likewise. Get at reduction related
9218 info via info_for_reduction.
9219 (vect_analyze_stmt): Adjust.
9220 (vect_transform_stmt): Likewise.
9221 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9222 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9224 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9226 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9227 -fno-fp-int-builtin-inexact default for C2X.
9229 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9230 Richard Biener <rguenther@suse.de>
9232 PR tree-optimization/91532
9233 * tree-if-conv.c: Include tree-ssa-dse.h.
9234 (ifcvt_local_dce): Change param from bb to loop,
9235 and call dse_classify_store.
9236 (tree_if_conversion): Pass loop instead of loop->header as arg
9238 * tree-ssa-dse.c: Include tree-ssa-dse.h.
9239 (delete_dead_or_redundant_assignment): Remove static qualifier from
9240 declaration, and add prototype in tree-ssa-dse.h.
9241 (dse_store_status): Move to tree-ssa-dse.h.
9242 (dse_classify_store): Remove static qualifier and add new tree param
9243 stop_at_vuse, and add prototype in tree-ssa-dse.h.
9244 * tree-ssa-dse.h: New header.
9246 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9248 * config/darwin.c (machopic_output_indirection): Don't put
9249 hidden symbol indirections into the .data section, use the
9250 non-lazy symbol pointers section as normal.
9251 (darwin_encode_section_info): Record if a symbol is hidden.
9252 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9253 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9255 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9257 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9258 predicates instead of accessing bits directly.
9259 (machopic_indirect_call_target): Likewise.
9260 (machopic_output_indirection): Likewise.
9261 (darwin_encode_section_info): Improve description. Use renamed
9262 symbol flags. Use predicate macros for variables and functions.
9264 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
9265 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
9266 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
9267 (MACHO_SYMBOL_VARIABLE_P): New.
9268 (MACHO_SYMBOL_DEFINED_P):New.
9269 (MACHO_SYMBOL_STATIC_P): New.
9270 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
9271 (SYMBOL_FLAG_SUBT_DEP): New.
9272 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
9274 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9276 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
9277 (msp430_expand_epilogue): Likewise.
9278 * config/msp430/predicates.md: Likewise.
9279 * config/msp430/msp430.md: Likewise.
9280 Replace blocks of 8 spaces with tabs.
9282 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9284 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
9285 * config/msp430/msp430.c (msp430_split_addsi): New.
9286 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
9287 a block of C code for splitting addsi.
9289 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
9291 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
9292 ix86_expand_rounddf_32): Reorder functions.
9293 * config/i386/i386-protos.h: Update.
9295 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9297 * config.in: Regenerate.
9298 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
9299 Add new "Yx" constraint.
9300 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
9302 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
9304 * config/msp430/msp430.c (msp430_option_override): Allow the lower
9305 code/data region to be selected in the small memory model.
9306 (msp430_section_attr): Don't warn if the "section" and "lower"
9307 attributes are used together.
9308 (msp430_handle_generic_attribute): Likewise.
9309 (msp430_var_in_low_mem): New function.
9310 (TARGET_ENCODE_SECTION_INFO): Define.
9311 (msp430_encode_section_info): New function.
9312 (gen_prefix): Return early in the small memory model.
9313 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
9314 ".lower" prefix if -m{code,data}-region=lower have been passed.
9315 (msp430_output_aligned_decl_common): Emit common symbols when
9316 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
9318 (TARGET_ASM_FILE_END): Define.
9319 (msp430_file_end): New function.
9320 (msp430_do_not_relax_short_jumps): Allow relaxation when
9321 function will be in the lower region.
9322 (msp430_op_not_in_high_mem): New function.
9323 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
9324 the 'X' operand selector.
9325 Clarify comment for 'x' operand selector.
9326 * config/msp430/msp430.h (LINK_SPEC): Propagate
9327 -m{code,data}-region to the linker via spec function
9328 msp430_propagate_region_opt.
9329 (msp430_propagate_region_opt): New prototype.
9330 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
9331 (SYMBOL_FLAG_LOW_MEM): Define.
9332 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
9334 (zero_extendqihi2): Fix operand number used by "%X" selector.
9335 (zero_extendqisi2): Likewise.
9336 (zero_extendhisi2): Likewise.
9337 (movqi): Use "Yx" constraint in place of "%X" operand selector.
9342 (addhi3_cy): Likewise.
9343 (addchi4_cy): Likewise.
9347 (bic<mode>3): Likewise.
9348 (and<mode>3): Likewise.
9349 (ior<mode>3): Likewise.
9350 (xor<mode>3): Likewise.
9351 (slli_1): Add missing "%X" operand selector.
9359 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
9361 (cbranchhi4_real): Likewise.
9362 (cbranchqi4_reversed): Likewise.
9363 (cbranchhi4_reversed): Likewise.
9364 (*bitbranch<mode>4): Likewise.
9365 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
9366 * config/msp430/msp430.opt (mcode-region=): Set default to
9367 MSP430_REGION_LOWER. Improve docstring.
9368 (mdata-region=): Likewise.
9369 (muse-lower-region-prefix): New option.
9370 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
9371 mdata-region=none multilib.
9372 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
9373 mdata-region=none multilib.
9374 MULTILIB_EXCEPTIONS: Remove.
9375 MULTILIB_REQUIRED: Define.
9376 * configure: Regenerate.
9377 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
9378 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
9379 * doc/extend.texi: Clarify comment for {upper,lower,either}
9380 function attributes.
9381 Add separate description for "lower" variable attribute.
9383 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9386 * optabs-tree.c (vcond_icode_p): New function.
9387 (vcond_eq_icode_p): Likewise.
9388 (expand_vec_cond_expr_p): Use vcond_icode_p and
9390 * optabs.c (can_vcond_compare_p): New function.
9391 * optabs.h (can_vcond_compare_p): Likewise.
9393 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9396 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
9397 caller passes a non-trapping condition.
9398 (is_gimple_condexpr): Allow trapping conditions.
9399 (is_gimple_condexpr_1): New helper function.
9400 (is_gimple_condexpr_for_cond): New function, acts like old
9402 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
9403 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
9404 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
9405 * gimplify.c (gimplify_cond_expr): Use
9406 is_gimple_condexpr_for_cond.
9407 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
9408 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
9410 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
9411 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
9412 is_gimple_condexpr_for_cond, remove pointless tmp check
9413 (forward_propagate_into_cond): Remove pointless tmp check.
9415 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9417 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
9418 match that of other gsi_next_* functions. Adjust the comment.
9419 (gsi_start_nonvirtual_phis): New function.
9420 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
9421 gsi_next_nonvirtual_phi accordingly. (No functional change.)
9423 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9425 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
9426 setjmp situation here. Fix a verb's ending: "the exact variables or
9427 elements for which there are warnings depends" -> "... depend".
9429 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9431 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
9433 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9435 * ipa-prop.c (ipa_vr::nonzero_p): New.
9436 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
9438 * ipa-prop.h (class ipa_vr): Add nonzero_p.
9439 * tree-vrp.c (range_has_numeric_bounds_p): New.
9440 (range_int_cst_p): Use range_has_numeric_bounds_p.
9441 (get_range_op_handler): New.
9442 (supported_types_p): New.
9443 (defined_ranges_p): New.
9444 (drop_undefines_to_varying): New.
9445 (range_fold_binary_symbolics_p): New.
9446 (range_fold_unary_symbolics_p): New.
9447 (range_fold_unary_expr): Extract out into above functions.
9448 (range_fold_binary_expr): Same.
9449 (value_range_base::normalize_addresses): New.
9450 (value_range_base::normalize_symbolics): Normalize addresses.
9451 * tree-vrp.h (class value_range_base): Add normalize_addresses.
9453 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9455 * tree-vrp.c (value_range_base::singleton_p): Use
9456 value_range_base::num_pairs instead of vrp_val_is* to check
9457 if a range has one sub-range.
9459 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9461 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
9462 DEF is not a true earlyclobber but is tied to a specific input
9463 operand, and so is effectively earlyclobber wrt inputs that have
9465 (make_early_clobber_and_input_conflicts): Pass this case to the above.
9467 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9469 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
9470 (pod_mode): Mark operators likewise.
9471 (scalar_int_mode): Mark non-default constructors and
9472 operators with CONSTEXPR.
9473 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
9474 (fixed_size_mode): Likewise.
9476 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9479 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
9480 and wrap the unspec_volatile in a parallel.
9481 (*avx_vzeroupper): New define_insn. Use a match_parallel around
9482 the unspec_volatile.
9483 * config/i386/predicates.md (vzeroupper_pattern): Expect the
9484 unspec_volatile to be wrapped in a parallel.
9485 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
9486 (ix86_add_reg_usage_to_vzerouppers): New functions.
9487 (rest_of_handle_insert_vzeroupper): Use them to add register
9488 usage information to the vzeroupper instructions.
9490 2019-10-07 Richard Biener <rguenther@suse.de>
9492 PR tree-optimization/91975
9493 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
9496 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
9498 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
9499 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
9501 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
9503 * config/darwin.c (darwin_override_options): Adjust objective-c
9504 ABI version error messages to avoid punctuation and contracted
9507 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
9509 * ipa-inline.c: Fix type; compute size rather than self_size
9510 for size of caller function.
9512 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
9515 * config/darwin.c (darwin_rodata_section): Add relocation flag,
9516 choose const_data section for constants with relocations.
9517 (machopic_select_section): Pass relocation flag to
9518 darwin_rodata_section ().
9520 2019-10-05 Jakub Jelinek <jakub@redhat.com>
9522 PR tree-optimization/91734
9523 * generic-match-head.c: Include fold-const-call.h.
9524 * match.pd (sqrt(x) cmp c): Check the boundary value and
9525 in case inexact computation of c*c affects comparison of the boundary,
9526 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
9527 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
9528 for -frounding-math. For c2, try the next smaller or larger floating
9529 point constant depending on comparison code and if it has the same
9530 sqrt as c2, use it instead of c2.
9532 2019-10-04 Martin Sebor <msebor@redhat.com>
9535 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
9536 MEM_REF right operand. Avoid failing for MEM_REF assignments from
9537 uninitialized objects.
9539 2019-10-04 Martin Sebor <msebor@redhat.com>
9541 * builtins.c (compute_objsize): Add an argument.
9542 * tree-object-size.c (addr_object_size): Same.
9543 (compute_builtin_object_size): Same.
9544 * tree-object-size.h (compute_builtin_object): Same.
9546 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
9548 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
9550 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
9552 * match.pd (sinh (x) / cosh (x)): New simplification rule.
9554 2019-10-04 Martin Jambor <mjambor@suse.cz>
9556 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
9557 fntype when switching to calling memcpy instead of memset.
9559 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9561 * hash-table.h (hash_table::empty_slow): Don't assign
9562 size_t values to int variables.
9564 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9566 * expr.c (convert_mode_scalar): Remove shadowing local var.
9567 (emit_block_move): Rename local vars.
9568 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
9569 (emit_push_insn): Rename local vars.
9570 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
9571 shadowing local vars.
9572 (store_constructor): Remove shadowing local vars. Rename local var.
9573 (store_field, expand_cond_expr_using_cmove,
9574 expand_expr_real_2): Remove shadowing local vars.
9575 (expand_expr_real_1,
9576 do_store_flag): Remove shadowing local vars. Rename local vars.
9578 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9580 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
9582 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9584 * genmatch.c (commutate): Rename local var.
9585 (lower_cond): Reuse local var.
9586 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
9587 dt_operand::gen, dt_operand::gen_gimple_expr,
9588 dt_simplify::gen): Add a param. Rename generated vars.
9589 (decision_tree::insert_operand,
9590 (capture_info::walk_match, capture_info::walk_result,
9591 capture_info::walk_c_expr): Rename local vars.
9592 (expr::gen_transform): Rename generated vars.
9593 Use snprintf. Rename local vars.
9594 (capture::gen_transform, dt_operand::get_name,
9595 dt_operand::gen_opname): Rename generated vars.
9596 (write_predicate): Adjust call to gen_kids.
9597 (parser::get_internal_capture_id): Rename generated vars.
9598 (parser::parse_expr): Rename local vars.
9599 (parser::parse_if): Remove local var.
9600 (parser::parse_pattern, add_operator): Rename local vars.
9602 2019-10-04 Joseph Myers <joseph@codesourcery.com>
9604 * builtins.def (DEF_C2X_BUILTIN): New macro.
9605 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
9606 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
9607 (strndup): Use DEF_C2X_BUILTIN.
9608 * coretypes.h (enum function_class): Add function_c2x_misc.
9610 2019-10-04 Maya Rashish <coypu@sdf.org>
9612 * ira-color.c (update_costs_from_allocno): Call
9613 ira_init_register_move_cost_if_necessary.
9615 2019-10-04 Jeff Law <law@redhat.com>
9617 * config/h8300/h8300.md (cpymemsi): Disable.
9618 (movmd, movmd_internal_<mode>, movstr, movsd):
9619 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
9620 (movmd splitter, movsd splitter): Likewise.
9622 * range-op.cc (range_tests): Avoid two tests when ints and
9623 shorts are the same size.
9625 2019-10-04 Richard Biener <rguenther@suse.de>
9628 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
9631 2019-10-04 Richard Biener <rguenther@suse.de>
9633 PR tree-optimization/91982
9634 * tree-vect-loop.c (vectorizable_live_operation): Also guard
9635 against EXTRACT_LAST_REDUCTION.
9636 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
9638 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
9640 * range-op.o (value_range_from_overflowed_bounds): Rename from
9641 adjust_overflow_bound.
9642 (value_range_with_overflow): Rename from
9643 create_range_with_overflow.
9644 (create_possibly_reversed_range): Adjusted for above renames.
9645 (operator_*::wi_fold): Same.
9646 (cross_product_operator::wi_cross_productor): Same.
9648 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9650 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
9651 -Wshadow=compatible-local): Fix description.
9652 Add an example where -Wshadow=compatible-local does not
9655 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
9657 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
9659 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
9660 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
9662 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
9664 * expr.c (emit_block_move_hints): Slightly cleaner fix to
9665 can_move_by_pieces issue.
9667 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
9670 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
9671 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
9672 is available and the user has not set one on the command line.
9674 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
9677 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
9678 instead of REGNO equality check on addr.reg.
9680 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
9682 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
9683 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
9684 * doc/invoke.texi (inline-heuristics-hint-percent,
9685 inline-heuristics-hint-percent-O2): Document.
9686 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
9688 (can_inline_edge_by_limits_p): Use it.
9690 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
9692 * config/arm/arm.c (arm_print_value): Use real_to_decimal
9693 to print CONST_DOUBLEs.
9695 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
9697 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
9698 * ipa-prop.c (ipcp_free_transformation_sum): New function.
9699 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
9701 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
9703 * Makefile.in (OBJS): Add range.o and range-op.o.
9704 Remove wide-int-range.o.
9705 * function-tests.c (test_ranges): New.
9706 (function_tests_c_tests): Call test_ranges.
9707 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
9708 range_fold_unary_expr instead of extract_range_from_unary_expr.
9709 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
9710 * range-op.cc: New file.
9711 * range-op.h: New file.
9712 * range.cc: New file.
9713 * range.h: New file.
9714 * selftest.h (range_tests): New prototype.
9715 * ssa.h: Include range.h.
9716 * tree-vrp.c (value_range_base::value_range_base): New
9718 (value_range_base::singleton_p): Do not call
9719 ranges_from_anti_range until sure we will need to.
9720 (value_range_base::type): Rename gcc_assert to
9721 gcc_checking_assert.
9722 (vrp_val_is_max): New argument.
9723 (vrp_val_is_min): Same.
9724 (wide_int_range_set_zero_nonzero_bits): Move from
9726 (extract_range_into_wide_ints): Remove.
9727 (extract_range_from_multiplicative_op): Remove.
9728 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
9729 from extract_range_from_binary_expr.
9730 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
9731 from extract_range_from_binary_expr.
9732 (extract_range_from_binary_expr): Remove.
9733 (normalize_for_range_ops): New.
9734 (range_fold_binary_expr): New.
9735 (range_fold_unary_expr): New.
9736 (value_range_base::num_pairs): New.
9737 (value_range_base::lower_bound): New.
9738 (value_range_base::upper_bound): New.
9739 (value_range_base::upper_bound): New.
9740 (value_range_base::contains_p): New.
9741 (value_range_base::invert): New.
9742 (value_range_base::union_): New.
9743 (value_range_base::intersect): New.
9744 (range_compatible_p): New.
9745 (value_range_base::operator==): New.
9746 (determine_value_range_1): Call range_fold_*expr instead of
9747 extract_range_from_*expr.
9748 * tree-vrp.h (class value_range_base): Add new constructors.
9749 Add methods for union_, intersect, operator==, contains_p,
9750 num_pairs, lower_bound, upper_bound, invert.
9751 (vrp_val_is_min): Add handle_pointers argument.
9752 (vrp_val_is_max): Same.
9753 (extract_range_from_unary_expr): Remove.
9754 (extract_range_from_binary_expr): Remove.
9755 (range_fold_unary_expr): New.
9756 (range_fold_binary_expr): New.
9757 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
9758 range_fold_binary_expr instead of extract_range_from_binary_expr.
9759 (vr_values::extract_range_basic): Same.
9760 (vr_values::extract_range_from_unary_expr): Call
9761 range_fold_unary_expr instead of extract_range_from_unary_expr.
9762 * wide-int-range.cc: Remove.
9763 * wide-int-range.h: Remove.
9765 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
9767 * config/rs6000/rs6000.c (mem_operand_gpr): Use
9768 SIGNED_16BIT_OFFSET_EXTRA_P macro.
9769 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
9770 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
9773 2019-10-02 Joseph Myers <joseph@codesourcery.com>
9775 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
9776 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
9777 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
9778 * glimits.h: Likewise.
9780 2019-10-03 Jakub Jelinek <jakub@redhat.com>
9782 PR rtl-optimization/91976
9783 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
9784 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
9785 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
9787 2019-10-02 Martin Sebor <msebor@redhat.com>
9789 PR tree-optimization/80936
9790 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
9792 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9794 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
9795 instead of reg_class_contents[ALL_REGS].
9797 2019-09-30 Jason Merrill <jason@redhat.com>
9799 Add some hash_map_safe_* functions like vec_safe_*.
9800 * hash-map.h (default_hash_map_size): New variable.
9801 (create_ggc): Use it as default argument.
9802 (hash_map_maybe_create, hash_map_safe_get)
9803 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
9805 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
9807 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
9808 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
9809 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
9810 (can_inline_edge_by_limits_p): Use it.
9811 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
9812 (want_inline_small_function_p): Use O2 bounds.
9813 (edge_badness): LIkewise.
9814 * opts.c (default_options): Add OPT_finline_functions.
9815 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
9816 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
9818 * doc/invoke.texi (-finline-functions): Update documentation.
9819 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
9820 inline-min-speedup-O2): Document.
9821 (early-inlining-insns-O2): Simplify docs.
9823 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
9825 PR rtl-optimization/87047
9826 * ifcvt.c (average_cost): New static function. Use it...
9827 (noce_process_if_block): ... here.
9829 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9831 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
9832 * config/rs6000/rs6000-string.c (expand_block_move): Add
9834 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
9835 (cpymemsi): Add might_overlap parm to expand_block_move() call.
9837 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9839 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
9840 (expand_builtin_memcpy): Use might_overlap parm.
9841 (expand_builtin_mempcpy_args): Use might_overlap parm.
9842 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
9843 (expand_builtin_memory_copy_args): Add might_overlap parm.
9844 * expr.c (emit_block_move_via_cpymem): Rename to
9845 emit_block_move_via_pattern, add might_overlap parm, use cpymem
9846 or movmem optab as appropriate.
9847 (emit_block_move_hints): Add might_overlap parm, do the right
9848 thing for might_overlap==true.
9849 * expr.h (emit_block_move_hints): Update prototype.
9851 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
9853 * tree-eh.h (unsplit_eh_edges): Declare.
9854 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
9855 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
9856 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
9857 (struct store_immediate_info): Add lp_nr field.
9858 (store_immediate_info::store_immediate_info): Add NR2 parameter and
9859 initialize lp_nr with it.
9860 (struct merged_store_group): Add lp_nr and only_constants fields.
9861 (merged_store_group::merged_store_group): Initialize them.
9862 (merged_store_group::can_be_merged_into): Deal with them.
9863 (pass_store_merging): Rename terminate_and_release_chain into
9864 terminate_and_process_chain.
9865 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
9866 renaming and remove useless assertions.
9867 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
9868 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
9869 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
9870 instead of always recomputing it and compare lp_nr.
9871 (imm_store_chain_info::output_merged_store): If the group is in an
9872 active EH region, register new stores if they can throw. Moreover,
9873 if the insertion has created new basic blocks, adjust the PHI nodes
9874 of the post landing pad.
9875 (imm_store_chain_info::output_merged_stores): If the original stores
9876 are in an active EH region, deregister them.
9877 (lhs_valid_for_store_merging_p): Prettify.
9878 (adjust_bit_pos): New function extracted from...
9879 (mem_valid_for_store_merging): ...here. Use it for the base address
9880 and also for the offset if it is the addition of a constant.
9881 (lp_nr_for_store): New function.
9882 (pass_store_merging::process_store): Change return type to bool.
9883 Call lp_nr_for_store to initialize the store info. Propagate the
9884 return status of various called functions to the return value.
9885 (store_valid_for_store_merging_p): New predicate.
9886 (enum basic_block_status): New enumeration.
9887 (get_status_for_store_merging): New function.
9888 (pass_store_merging::execute): If the function can throw and catch
9889 non-call exceptions, unsplit the EH edges on entry and clean up the
9890 CFG on exit if something changed. Call get_status_for_store_merging
9891 for every basic block and keep the chains open across basic blocks
9892 when possible. Terminate and process open chains at the end, if any.
9894 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9896 * reginfo.c (globalize_reg): Fix shadowed variable in
9899 2019-10-02 Martin Jambor <mjambor@suse.cz>
9901 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
9902 do not compute some stuff when set.
9903 (cgraph_node::create_edge): Likewise.
9904 (cgraph_node::create_indirect_edge): Renamed last parameter to
9905 coning_p and flipped its meaning, don't even calculate
9906 inline_failed when set.
9907 * cgraph.h (cgraph_node::create_edge): Add new parameter.
9908 (symbol_table::::create_edge): Likewise.
9909 (cgraph_node::create_indirect_edge): Rename last parameter, flip
9911 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
9912 call graph edge creating functions.
9914 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9917 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
9920 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
9922 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
9924 2019-10-02 Richard Biener <rguenther@suse.de>
9926 * tree-vectorizer.h (vect_transform_reduction): Declare.
9927 * tree-vect-stmts.c (vect_transform_stmt): Use it.
9928 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
9929 stmt transform to ...
9930 (vect_transform_reduction): ... this.
9932 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
9934 * omp-low.c (lower_omp_target): Dereference optional argument
9935 to work with the right pointer.
9937 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
9939 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
9941 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
9942 * langhooks.h (omp_is_optional_argument): New hook.
9943 * omp-general.c (omp_is_optional_argument): New.
9944 * omp-general.h (omp_is_optional_argument): New declaration.
9945 * omp-low.c (lower_omp_target): Create temporary for received value
9946 and take the address for new_var if the original variable was a
9947 DECL_BY_REFERENCE. Use size of referenced object when a
9948 pass-by-reference optional argument used as argument to firstprivate.
9950 2019-10-02 Jakub Jelinek <jakub@redhat.com>
9952 PR tree-optimization/91940
9953 * tree-vect-patterns.c: Include tree-vector-builder.h and
9955 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
9956 unpromoting the argument back to uint16_t, or by converting into a
9957 rotate, or into shifts plus ior.
9959 2019-10-02 Richard Biener <rguenther@suse.de>
9961 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
9963 (vect_transform_cycle_phi): Declare.
9964 * tree-vect-stmts.c (vect_transform_stmt): Call
9965 vect_transform_cycle_phi.
9966 * tree-vect-loop.c (vectorizable_reduction): Split out
9967 PHI transformation stage to ...
9968 (vect_transform_cycle_phi): ... here.
9970 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9973 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
9974 eliminable registers.
9975 (make_hard_regno_live): Likewise, and don't make them live.
9977 2019-10-01 David Malcolm <dmalcolm@redhat.com>
9979 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
9980 Call pp_emit_prefix.
9981 (layout::print_source_line): Likewise.
9982 (layout::start_annotation_line): Likewise.
9983 (diagnostic_show_locus): Remove call to temporarily clear the
9985 (selftest::test_one_liner_fixit_remove): Add test coverage for the
9986 interaction of pp_set_prefix with rulers and fix-it hints.
9987 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
9988 prefix when calling diagnostic_show_locus, rather than destroying
9990 (print_parseable_fixits): Temporarily clear prefix.
9991 * pretty-print.c (pp_format): Save and restore line_length, rather
9992 than assuming it is zero.
9993 (pp_output_formatted_text): Remove assertion that line_length is
9996 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9998 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10000 (nonoverlapping_refs_since_match_p): ... this; handle also
10002 (alias_stats): Update stats.
10003 (dump_alias_stats): Likewise.
10004 (cheap_array_ref_low_bound): New function.
10005 (aliasing_matching_component_refs_p): Add partial_overlap
10007 pass it to nonoverlapping_refs_since_match_p.
10008 (aliasing_component_refs_walk): Update call of
10009 aliasing_matching_component_refs_p
10010 (nonoverlapping_array_refs_p): New function.
10011 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10012 indirect_refs_may_alias_p): Update calls of
10013 nonoverlapping_refs_since_match_p.
10015 2019-10-01 Maya Rashish <coypu@sdf.org>
10018 * ira-color.c (allocno_copy_cost_saving): Call
10019 ira_init_register_move_cost_if_necessary.
10021 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10023 * Makefile.in (gnat_install_lib): New variable.
10024 * configure.ac: Substitute it.
10025 * configure: Regenerate.
10027 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10030 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10031 is matched with non-C++ type
10033 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10035 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10038 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10040 * doc/invoke.texi (early-inlining-insns-O2): Document.
10041 (early-inlining-insns): Update.
10042 * params.def (early-inlining-insns-O2): New bound.
10043 (early-inlining-insns): Update docs.
10044 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10046 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10049 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10050 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10051 a memory access insn.
10053 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10055 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10058 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10061 * config/s390/s390.c (s390_expand_vec_compare): Use
10062 gen_vec_cmpordered and gen_vec_cmpunordered.
10063 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10064 vec_unordered): Delete.
10065 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10066 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10067 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10068 (vec_cmp<code>): Generic dispatcher.
10070 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10073 * config/s390/vector.md (V_HW): Add V1TI in order to make
10074 vcond$a$b generate vcondv1tiv1tf.
10076 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10078 PR rtl-optimization/91948
10079 * ira-build.c (ira_create_allocno): Initialize
10080 ALLOCNO_CROSSED_CALLS_ABIS.
10081 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10082 than regno to ira_need_caller_save_p.
10084 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10086 * config/i386/i386-options.c
10087 (ix86_recompute_optlev_based_flags): New, moved out of...
10088 (ix86_option_override_internal): ... this. Call it.
10089 (ix86_override_options_after_change): Call it here too.
10092 * dwarf2out.c (override_type_for_decl_p): New.
10093 (gen_variable_die): Use it.
10095 2019-10-01 Richard Biener <rguenther@suse.de>
10097 * tree-vect-loop.c (vectorizable_reduction): Move variables
10098 to where they are used.
10100 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10102 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10103 (build_def_use): Use PC instead of CC0 in a comment.
10105 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10107 * rtl.def (CLOBBER_HIGH): Delete.
10108 * doc/rtl.texi (clobber_high): Remove documentation.
10109 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10110 (reg_is_clobbered_by_clobber_high): Delete.
10111 (gen_hard_reg_clobber_high): Likewise.
10112 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10113 * cfgexpand.c (expand_gimple_stmt): Likewise.
10114 * combine-stack-adj.c (single_set_for_csa): Likewise.
10115 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10116 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10117 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10118 * cse.c (invalidate_reg): Remove clobber_high parameter.
10119 (invalidate): Update call accordingly.
10120 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10121 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10122 (count_reg_usage, insn_live_p): Likewise.
10123 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10124 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10125 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10126 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10127 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10128 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10129 (mark_nonreg_stores_2): Likewise.
10130 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10131 (df_get_call_refs): Likewise.
10132 * dwarf2out.c (mem_loc_descriptor): Likewise.
10133 * emit-rtl.c (verify_rtx_sharing): Likewise.
10134 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10135 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10136 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10137 * genemit.c (gen_exp, gen_insn): Likewise.
10138 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10139 * haifa-sched.c (haifa_classify_rtx): Likewise.
10140 * ira-build.c (create_insn_allocnos): Likewise.
10141 * ira-costs.c (scan_one_insn): Likewise.
10142 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10143 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10144 * jump.c (mark_jump_label_1): Likewise.
10145 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10146 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10148 (mark_not_eliminable): Likewise.
10149 * lra-lives.c (process_bb_lives): Likewise.
10150 * lra.c (new_insn_reg): Remove clobber_high parameter.
10151 (collect_non_operand_hard_regs): Likewise. Update call to new
10152 insn_reg. Remove CLOBBER_HIGH handling.
10153 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10154 to collect_non_operand_hard_regs.
10155 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10156 Update call to new_insn_reg.
10157 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10158 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10159 (move2add_note_store): Likewise.
10160 * print-rtl.c (print_pattern): Likewise.
10161 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10162 (if_test_bypass_p): Likewise.
10163 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10164 * reginfo.c (reg_scan_mark_refs): Likewise.
10165 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10166 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10167 (forget_old_reloads_1): Likewise.
10168 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10169 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10170 (dbr_schedule): Likewise.
10171 * resource.c (update_live_status, mark_referenced_resources)
10172 (mark_set_resources): Likewise.
10173 * rtl.c (copy_rtx): Likewise.
10174 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10175 (note_pattern_stores): Likewise.
10176 (reg_is_clobbered_by_clobber_high): Delete.
10177 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10178 CLOBBER_HIGH handling.
10180 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10183 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10184 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10185 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10186 Handle ARM_PCS_TLSDESC.
10187 (aarch64_tlsdesc_abi_id): New function.
10188 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10189 rtx instead of a list of clobbers and clobber_highs.
10190 (tlsdesc_small_<mode>): Update accordingly.
10192 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10194 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10195 extra callee_abi argument.
10196 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10197 Insert a CALLEE_ABI unspec into the call pattern as the second
10198 element in the PARALLEL.
10199 (aarch64_simd_call_p): Delete.
10200 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10201 the new CALLEE_ABI element of the PARALLEL.
10202 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10203 from the function type, if given.
10204 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10205 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10206 when passed the function_arg_info end marker.
10207 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10208 final argument of gen_sibcall.
10209 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10210 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10211 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10213 (call_value): Likewise operand 3.
10214 (sibcall): Likewise operand 2. Place the unspec before rather than
10216 (sibcall_value): Likewise operand 3.
10217 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10218 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10219 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10220 constraint strings.
10221 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10223 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10225 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10226 choose_hard_reg_mode.
10227 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10229 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10231 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10232 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10233 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10235 2019-09-30 David Malcolm <dmalcolm@redhat.com>
10237 * diagnostic-show-locus.c (line_label::line_label): Initialize
10239 (line_label::comparator): Reverse the sort order by m_state_idx,
10240 so that when the list is walked backwards the labels appear in
10241 order of insertion into the rich_location.
10242 (line_label::m_has_vbar): New field.
10243 (layout::print_any_labels): When dealing with multiple labels at
10244 the same line and column, only print vertical bars for the one
10245 with the highest label_line.
10246 (selftest::test_one_liner_labels): Update test for multiple labels
10247 to expect the labels to be in the order of insertion into the
10248 rich_location. Add a test for many such labels, where the column
10249 numbers are out-of-order relative to the insertion order.
10251 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10253 * config/i386/i386.h (ix86_frame::expensive_p): New field.
10254 (ix86_frame::expensive_count): Likewise.
10255 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10256 of use_fast_prologue_epilogue robust against incidental changes
10259 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10262 * config/s390/vector.md (vec_unordered<mode>): Call
10263 gen_vec_ordered<mode>.
10265 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
10267 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
10268 New pattern for ASRD.
10269 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
10270 * internal-fn.def (IFN_DIV_POW2): New internal function.
10271 * optabs.def (sdiv_pow2_optab): New optab.
10272 * tree-vect-patterns.c (vect_recog_divmod_pattern):
10273 Modify pattern to support new operation.
10274 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
10275 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
10276 Document new target selector.
10278 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10280 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
10281 to test whether we're compiling a vector PCS function and to test
10282 whether the function needs to save a particular register.
10283 Remove the vector PCS handling of df_set_regs_ever_live.
10284 (aarch64_components_for_bb): Use crtl->abi to test whether
10285 the function needs to save a particular register.
10286 (aarch64_process_components): Use crtl->abi to test whether
10287 we're compiling a vector PCS function.
10288 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
10289 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
10291 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10293 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
10295 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
10296 whether the block calls a function that clobbers more registers
10297 than the current function is allowed to.
10298 (aarch64_use_simple_return_insn_p): Delete.
10299 * config/aarch64/aarch64.md (simple_return): Remove condition.
10301 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10303 * function-abi.h (function_abi_aggregator): New class.
10304 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
10306 * ira.c (update_equiv_regs_prescan): New function. Call
10307 set_paradoxical_subreg here rather than...
10308 (update_equiv_regs): ...here.
10309 (ira): Call update_equiv_regs_prescan.
10311 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10313 * hard-reg-set.h (regs_invalidated_by_call): Only define if
10315 (call_used_or_fixed_regs): Likewise.
10316 (call_used_or_fixed_reg_p): Likewise.
10317 * reginfo.c (regs_invalidated_by_call): New macro.
10319 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10321 * shrink-wrap.c: Include function-abi.h.
10322 (requires_stack_frame_p): Use crtl->abi to test whether the
10323 current function can use a register without saving it first.
10325 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10327 * sel-sched-ir.h (_def::crosses_call): Replace with...
10328 (_def::crossed_call_abis): ..this new field.
10329 (def_list_add): Take a mask of ABIs instead of a crosses_call
10331 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
10332 of _def accordingly.
10333 * sel-sched.c: Include function-abi.h.
10334 (hard_regs_data::regs_for_call_clobbered): Delete.
10335 (reg_rename::crosses_call): Replace with...
10336 (reg_rename::crossed_call_abis): ...this new field.
10337 (fur_static_params::crosses_call): Replace with...
10338 (fur_static_params::crossed_call_abis): ...this new field.
10339 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
10340 (init_hard_regs_data): Use crtl->abi to test which registers the
10341 current function would need to save before it uses them.
10342 (mark_unavailable_hard_regs): Update handling of call-clobbered
10343 registers, using call_clobbers_in_region to find out which registers
10344 might be call-clobbered (but without taking -fipa-ra into account
10345 for now). Remove separate handling of partially call-clobbered
10347 (verify_target_availability): Use crossed_call_abis instead of
10349 (get_spec_check_type_for_insn, find_used_regs): Likewise.
10350 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
10352 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10354 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
10355 function to test whether a register is fully or partly clobbered.
10357 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10359 * rtlanal.c: Include function-abi.h.
10360 (reg_set_p): Use insn_callee_abi to get the ABI of the called
10361 function and clobbers_reg_p to test whether the register
10363 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
10364 to get the ABI of the called function and full_reg_clobbers to
10365 get the set of fully call-clobbered registers. Warn about the
10366 pitfalls of using this mode.
10368 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10370 * reload.c: Include function-abi.h.
10371 (find_equiv_reg): Use clobbers_reg_p to test whether either
10372 of the equivalent registers is clobbered by a call.
10373 * reload1.c: Include function-abi.h.
10374 (reg_reloaded_call_part_clobbered): Delete.
10375 (reload): Use crtl->abi to test which registers would need
10376 saving in the prologue before use.
10377 (find_reg): Likewise.
10378 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
10379 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
10380 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
10382 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10384 * regrename.h (du_head::call_clobber_mask): New field.
10385 (du_head::need_caller_save_reg): Replace with...
10386 (du_head::call_abis): ...this new field.
10387 * regrename.c: Include function-abi.h.
10388 (call_clobbered_in_chain_p): New function.
10389 (check_new_reg_p): Use crtl->abi when deciding whether a register
10390 is free for use after RA. Use call_clobbered_in_chain_p to test
10391 whether a candidate register would be clobbered by a call.
10392 (find_rename_reg): Don't add call-clobber conflicts here.
10393 (rename_chains): Check call_abis instead of need_caller_save_reg.
10394 (merge_chains): Update for changes to du_head.
10395 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
10396 target. Record the ABI identifier in call_abis and the set of
10397 fully or partially clobbered registers in call_clobber_mask.
10398 Add fully-clobbered registers to hard_conflicts here rather
10399 than in find_rename_reg.
10400 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
10401 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
10402 * config/aarch64/falkor-tag-collision-avoidance.c: Include
10404 * config/c6x/c6x.c: Likewise.
10406 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10408 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
10409 mode of the register when deciding whether it is no longer
10410 available after a call.
10412 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10414 * recog.c: Include function-abi.h.
10415 (peep2_find_free_register): Use crtl->abi when deciding whether
10416 a register is free for use after RA.
10418 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10420 * postreload-gcse.c: Include regs.h and function-abi.h.
10421 (record_opr_changes): Use insn_callee_abi to get the ABI of the
10422 call insn target. Conservatively assume that partially-clobbered
10423 registers are altered.
10425 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10427 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
10428 when deciding whether a register is free for use after RA.
10429 (reload_combine): Remove unnecessary use of fixed_reg_set.
10430 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
10431 call insn target. Use reg_mode when testing whether a register
10432 is no longer available.
10434 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10436 * target.def (return_call_with_max_clobbers): Delete.
10437 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10438 * doc/tm.texi: Regenerate.
10439 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
10440 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10441 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
10442 (lra_reg::call_insn): Delete.
10443 * lra.c: Include function-abi.h.
10444 (initialize_lra_reg_info_element): Don't initialize the fields above.
10445 (lra): Use crtl->abi to test whether the current function needs to
10446 save a register in the prologue. Remove special pre-inheritance
10447 lra_create_live_ranges pass for flag_ipa_ra.
10448 * lra-assigns.c: Include function-abi.h
10449 (find_hard_regno_for_1): Use crtl->abi to test whether the current
10450 function needs to save a register in the prologue.
10451 (lra_assign): Assert that registers aren't allocated to a
10452 conflicting register, rather than checking only for overlaps
10453 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
10454 and for registers that are not live across a call.
10455 * lra-constraints.c (last_call_for_abi): New variable.
10456 (full_and_partial_call_clobbers): Likewise.
10457 (setup_next_usage_insn): Remove the register from
10458 full_and_partial_call_clobbers.
10459 (need_for_call_save_p): Use call_clobbered_in_region_p to test
10460 whether the register needs a caller save.
10461 (need_for_split_p): Use full_and_partial_reg_clobbers instead
10462 of call_used_or_fixed_regs.
10463 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
10464 full_and_partial_call_clobbers.
10465 * lra-lives.c (check_pseudos_live_through_calls): Replace
10466 last_call_used_reg_set and call_insn arguments with an abi argument.
10467 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
10468 as the set of conflicting registers.
10469 (calls_have_same_clobbers_p): Delete.
10470 (process_bb_lives): Track the ABI of the last call instead of an
10471 insn/HARD_REG_SET pair. Update calls to
10472 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
10473 the set of registers that could be clobbered by an EH edge.
10474 Include partially-clobbered as well as fully-clobbered registers.
10475 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
10476 * lra-remat.c: Include function-abi.h.
10477 (call_used_regs_arr_len, call_used_regs_arr): Delete.
10478 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
10479 registers and bitmap_view to combine them into dead_regs.
10480 (call_used_input_regno_present_p): Take a function_abi argument
10481 and use it to test whether a register is call-clobbered.
10482 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
10483 call insn target. Update tje call to call_used_input_regno_present_p.
10484 (do_remat): Likewise.
10485 (lra_remat): Remove the initialization of call_used_regs_arr_len
10486 and call_used_regs_arr.
10488 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10490 * loop-iv.c: Include regs.h and function-abi.h.
10491 (simplify_using_initial_values): Use insn_callee_abi to get the
10492 ABI of the call insn target. Conservatively assume that
10493 partially-clobbered registers are altered.
10495 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10497 * function-abi.h (call_clobbers_in_region): Declare.
10498 (call_clobbered_in_region_p): New function.
10499 * function-abi.cc (call_clobbers_in_region): Likewise.
10500 * ira-int.h: Include function-abi.h.
10501 (ira_allocno::crossed_calls_abis): New field.
10502 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
10503 (ira_need_caller_save_regs): New function.
10504 (ira_need_caller_save_p): Likewise.
10505 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
10506 of call_used_or_fixed_regs.
10507 (do_reload): Use crtl->abi to test whether the current function
10508 needs to save a register in the prologue. Count registers that
10509 need to be saved rather than registers that don't.
10510 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
10511 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10512 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
10513 (propagate_some_info_from_allocno): Likewise.
10514 (copy_info_to_removed_store_destinations): Likewise.
10515 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
10516 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
10517 (ira_build): Use ira_need_caller_save_regs instead of
10518 call_used_or_fixed_regs.
10519 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
10520 whether the current function would need to save a register
10522 (calculate_spill_cost): Likewise.
10523 (allocno_reload_assign): Use ira_need_caller_save_regs and
10524 ira_need_caller_save_p instead of call_used_or_fixed_regs.
10525 * ira-conflicts.c (ira_build_conflicts): Use
10526 ira_need_caller_save_regs rather than call_used_or_fixed_regs
10527 as the set of call-clobbered registers. Remove the
10528 call_used_or_fixed_regs mask from the calculation of
10529 temp_hard_reg_set and mask its use instead. Remove special
10530 handling of partially-clobbered registers.
10531 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
10532 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
10533 calculate the set of conflicting registers for calls that
10534 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
10535 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
10536 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10537 Use eh_edge_abi to calculate the set of registers that could
10538 be clobbered by an EH edge. Include partially-clobbered as
10539 well as fully-clobbered registers.
10541 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10543 * haifa-sched.c: Include function-abi.h.
10544 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
10545 the function would need to save a register before using it.
10547 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10549 * gcse.c: Include function-abi.h.
10550 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
10551 the call insn target. Invalidate partially call-clobbered
10552 registers as well as fully call-clobbered ones.
10554 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10556 * function.c (aggregate_value_p): Work out which ABI the
10557 function is using before testing which registers are at least
10558 partly preserved by a call.
10560 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10562 * early-remat.c: Include regs.h and function-abi.h.
10563 (early_remat::maybe_add_candidate): Don't check for call-clobbered
10565 (early_remat::restrict_remat_for_unavail_regs): New function.
10566 (early_remat::restrict_remat_for_call): Likewise.
10567 (early_remat::process_block): Before calling emit_remat_insns
10568 for a previous call in the block, invalidate any candidates
10569 that would clobber call-preserved registers.
10570 (early_remat::emit_remat_insns_for_block): Likewise for the
10571 final call in a block. Do the same thing for live-in registers
10572 when calling emit_remat_insns at the head of a block.
10574 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10576 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
10577 whether the current function needs to save at least part of a
10578 register before using it.
10579 (df_get_exit_block_use_set): Likewise for epilogue restores.
10581 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10583 * df-problems.c: Include regs.h and function-abi.h.
10584 (df_rd_problem_data): Rename sparse_invalidated_by_call to
10585 sparse_invalidated_by_eh and dense_invalidated_by_call to
10586 dense_invalidated_by_eh.
10587 (df_print_bb_index): Update accordingly.
10588 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
10589 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
10590 that are clobbered by an EH edge. Clobber partially-clobbered
10591 registers as well as fully-clobbered ones.
10592 (df_md_confluence_n): Likewise.
10593 (df_rd_local_compute): Likewise. Update for changes to
10594 df_rd_problem_data.
10595 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
10596 of registers that are clobbered by an EH edge. Includde partially-
10597 clobbered registers as well as fully-clobbered ones.
10599 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10601 * cselib.c (cselib_process_insn): If we know what mode a
10602 register was set in, check whether it is clobbered in that
10603 mode by a call. Only fall back to reg_raw_mode if that fails.
10605 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10607 * cse.c: Include regs.h and function-abi.h.
10608 (invalidate_for_call): Take the call insn as an argument.
10609 Use insn_callee_abi to get the ABI of the call and invalidate
10610 partially clobbered registers as well as fully clobbered ones.
10611 (cse_insn): Update call accordingly.
10613 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10615 * combine.c: Include function-abi.h.
10616 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
10617 of the target of call insns. Invalidate partially-clobbered
10618 registers as well as fully-clobbered ones.
10620 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10622 * cfgloopanal.c: Include regs.h and function-abi.h.
10623 (init_set_costs): Use default_function_abi to test whether
10624 a general register is call-clobbered.
10626 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10628 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
10629 instead of the call-clobbered sets.
10631 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10633 * caller-save.c (setup_save_areas): Remove redundant |s of
10635 (save_call_clobbered_regs): Likewise. Use the call ABI rather
10636 than call_used_or_fixed_regs to decide whether a REG_RETURNED
10639 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10641 * rtl.h (predefined_function_abi): Declare.
10642 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10643 instead of a boolean call_save flag.
10644 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
10646 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10647 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10648 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
10649 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10650 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10651 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
10652 * reginfo.c (init_reg_modes_target): Likewise.
10653 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10654 instead of a boolean call_save flag.
10655 * targhooks.c: Include function-abi.h.
10656 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
10657 using eh_edge_abi to choose the mode.
10659 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10661 * target.def (hard_regno_call_part_clobbered): Take an ABI
10662 identifier instead of an rtx_insn.
10663 * doc/tm.texi: Regenerate.
10664 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
10665 (hook_bool_uint_uint_mode_false): New function.
10666 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
10667 (hook_bool_uint_uint_mode_false): New function.
10668 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10669 Take an ABI identifier instead of an rtx_insn.
10670 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
10671 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
10672 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
10673 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
10674 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
10676 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
10677 * cselib.c: Include function-abi.h.
10678 (cselib_process_insn): Update call to
10679 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10680 to get the appropriate ABI identifier.
10681 * function-abi.cc (predefined_function_abi::initialize): Update call
10682 to targetm.hard_regno_call_part_clobbered.
10683 * ira-conflicts.c (ira_build_conflicts): Likewise.
10684 * ira-costs.c (ira_tune_allocno_costs): Likewise.
10685 * lra-constraints.c: Include function-abi.h.
10686 (need_for_call_save_p): Update call to
10687 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10688 to get the appropriate ABI identifier.
10689 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
10690 * regcprop.c (copyprop_hardreg_forward_1): Update call
10691 to targetm.hard_regno_call_part_clobbered.
10692 * reginfo.c (choose_hard_reg_mode): Likewise.
10693 * regrename.c (check_new_reg_p): Likewise.
10694 * reload.c (find_equiv_reg): Likewise.
10695 * reload1.c (emit_reload_insns): Likewise.
10696 * sched-deps.c: Include function-abi.h.
10697 (deps_analyze_insn): Update call to
10698 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10699 to get the appropriate ABI identifier.
10700 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
10701 call to targetm.hard_regno_call_part_clobbered.
10702 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
10704 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10706 * config/i386/i386.c: Include function-abi.h.
10707 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
10708 if they preserve some 256-bit or 512-bit SSE registers.
10710 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10712 * target.def (insn_callee_abi): New hook.
10713 (remove_extra_call_preserved_regs): Delete.
10714 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
10715 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10716 * doc/tm.texi: Regenerate.
10717 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
10718 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
10719 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
10721 (aarch64_remove_extra_call_preserved_regs): Delete.
10722 (aarch64_insn_callee_abi): New function.
10723 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10724 (TARGET_INSN_CALLEE_ABI): New macro.
10725 * rtl.h (get_call_fndecl): Declare.
10726 (cgraph_rtl_info): Fix formatting. Tweak comment for
10727 function_used_regs. Remove function_used_regs_valid.
10728 * rtlanal.c (get_call_fndecl): Moved from final.c
10729 * function-abi.h (insn_callee_abi): Declare.
10730 (target_function_abi_info): Mention insn_callee_abi.
10731 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
10732 way to get_call_reg_set_usage did.
10733 (insn_callee_abi): New function.
10734 * regs.h (get_call_reg_set_usage): Delete.
10735 * final.c: Include function-abi.h.
10736 (collect_fn_hard_reg_usage): Add fixed and stack registers to
10737 function_used_regs before the main loop rather than afterwards.
10738 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
10739 if function_used_regs ends up not being useful.
10740 (get_call_fndecl): Move to rtlanal.c
10741 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
10742 * caller-save.c: Include function-abi.h.
10743 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
10744 instead of get_call_reg_set_usage.
10745 * cfgcleanup.c: Include function-abi.h.
10746 (old_insns_match_p): Use insn_callee_abi instead of
10747 get_call_reg_set_usage.
10748 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
10750 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
10751 function_used_regs.
10752 * df-scan.c: Include function-abi.h.
10753 (df_get_call_refs): Use insn_callee_abi instead of
10754 get_call_reg_set_usage.
10755 * ira-lives.c: Include function-abi.h.
10756 (process_bb_node_lives): Use insn_callee_abi instead of
10757 get_call_reg_set_usage.
10758 * lra-lives.c: Include function-abi.h.
10759 (process_bb_lives): Use insn_callee_abi instead of
10760 get_call_reg_set_usage.
10761 * postreload.c: Include function-abi.h.
10762 (reload_combine): Use insn_callee_abi instead of
10763 get_call_reg_set_usage.
10764 * regcprop.c: Include function-abi.h.
10765 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
10766 get_call_reg_set_usage.
10767 * resource.c: Include function-abi.h.
10768 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
10769 instead of get_call_reg_set_usage.
10770 * var-tracking.c: Include function-abi.h.
10771 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
10772 get_call_reg_set_usage.
10774 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10776 * target.def (fntype_abi): New target hook.
10777 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
10778 * doc/tm.texi: Regenerate.
10779 * target.h (predefined_function_abi): Declare.
10780 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
10782 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
10783 * config/aarch64/aarch64.c: Include function-abi.h.
10784 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
10785 (TARGET_FNTYPE_ABI): Define.
10787 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10789 * Makefile.in (OBJS): Add function-abi.o.
10790 (GTFILES): Add function-abi.h.
10791 * function-abi.cc: New file.
10792 * function-abi.h: Likewise.
10793 * emit-rtl.h (rtl_data::abi): New field.
10794 * function.c: Include function-abi.h.
10795 (prepare_function_start): Initialize crtl->abi.
10796 * read-rtl-function.c: Include regs.h and function-abi.h.
10797 (read_rtl_function_body): Initialize crtl->abi.
10798 (read_rtl_function_body_from_file_range): Likewise.
10799 * reginfo.c: Include function-abi.h.
10800 (init_reg_sets_1): Initialize default_function_abi.
10801 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
10802 when making a register global.
10803 * target-globals.h (this_target_function_abi_info): Declare.
10804 (target_globals::function_abi_info): New field.
10805 (restore_target_globals): Copy it.
10806 * target-globals.c: Include function-abi.h.
10807 (default_target_globals): Initialize the function_abi_info field.
10808 (target_globals): Allocate it.
10809 (save_target_globals): Free it.
10811 2019-09-30 Nick Clifton <nickc@redhat.com>
10814 * config/frv/frv.c (frv_register_move_cost): Add break statements
10815 to avoid falling through to the wrong cases. Tidy code.
10817 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10819 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10820 For multi-registers modes, test how big each register part is.
10822 2019-09-30 Nick Clifton <nickc@redhat.com>
10825 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
10826 (TARGET_ASM_SELECT_SECTION): Remove definition.
10827 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
10829 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10831 * emit-rtl.c (init_raw_REG): New function.
10832 (gen_raw_REG): Use init_raw_REG.
10833 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
10835 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
10836 * rtl.h (rtx_init): New function.
10837 (rtx_alloca): New function.
10838 (init_raw_REG): New function.
10839 (alloca_raw_REG): New macro.
10841 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
10843 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
10844 (pcrel_local_address): Replace pcrel_address predicate, use the
10845 new function address_to_insn_form.
10846 (pcrel_external_address): Replace with new implementation using
10847 address_to_insn_form..
10848 (prefixed_mem_operand): Delete predicate which is now unused.
10849 (pcrel_external_mem_operand): Delete predicate which is now
10851 * config/rs6000/rs6000-protos.h (enum insn_form): New
10853 (enum non_prefixed_form): New enumeration.
10854 (address_to_insn_form): New declaration.
10855 (prefixed_load_p): New declaration.
10856 (prefixed_store_p): New declaration.
10857 (prefixed_paddi_p): New declaration.
10858 (rs6000_asm_output_opcode): New declaration.
10859 (rs6000_final_prescan_insn): Move declaration and update calling
10861 (address_is_prefixed): New helper inline function.
10862 * config/rs6000/rs6000.c(print_operand_address): Check for either
10863 PC-relative local symbols or PC-relative external symbols.
10864 (rs6000_emit_move): Support loading PC-relative addresses.
10865 (mode_supports_prefixed_address_p): Delete, no longer used.
10866 (rs6000_prefixed_address_mode_p): Delete, no longer used.
10867 (address_to_insn_form): New function to decode an address format.
10868 (reg_to_non_prefixed): New function to identify what the
10869 non-prefixed memory instruction format is for a register.
10870 (prefixed_load_p): New function to identify prefixed loads.
10871 (prefixed_store_p): New function to identify prefixed stores.
10872 (prefixed_paddi_p): New function to identify prefixed load
10874 (next_insn_prefixed_p): New static state variable.
10875 (rs6000_final_prescan_insn): New function to determine if an insn
10876 uses a prefixed instruction.
10877 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
10878 prefixed instruction.
10879 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
10880 (ASM_OUTPUT_OPCODE): New target hook.
10881 * config/rs6000/rs6000.md (prefixed): New insn attribute for
10882 prefixed instructions.
10883 (prefixed_length): New insn attribute for the size of prefixed
10885 (non_prefixed_length): New insn attribute for the size of
10886 non-prefixed instructions.
10887 (pcrel_local_addr): New insn to load up a local PC-relative
10889 (pcrel_extern_addr): New insn to load up an external PC-relative
10891 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
10892 GPR and loading a 128-bit floating point type to a GPR.
10894 2019-09-30 Richard Biener <rguenther@suse.de>
10896 * gimple.c (gimple_get_lhs): For PHIs return the result.
10897 * tree-vectorizer.h (vectorizable_live_operation): Also get the
10898 SLP instance as argument.
10899 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
10900 double-reduction PHIs with vectorizable_lc_phi.
10901 (vect_analyze_loop_operations): Adjust.
10902 (vect_create_epilog_for_reduction): Remove all code not dealing
10903 with reduction LC PHI or epilogue generation.
10904 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
10905 for live stmts of reductions.
10906 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
10907 do not handle defs that are not vect_internal_def.
10908 (can_vectorize_live_stmts): Adjust.
10909 (vect_analyze_stmt): When the vectorized stmt defined a value
10910 used on backedges adjust the backedge uses of vectorized PHIs.
10912 2019-09-30 Martin Jambor <mjambor@suse.cz>
10915 * tree-inline.c (force_value_to_type): New function.
10916 (setup_one_parameter): Use force_value_to_type to convert type.
10917 * tree-inline.c (force_value_to_type): Declare.
10918 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
10919 with register type mismatches.
10921 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
10923 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
10925 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
10926 * config/rs6000/t-freebsd64: Make use of the above define and build
10927 the 32-bit libraries with secure-plt.
10929 2019-09-30 Jakub Jelinek <jakub@redhat.com>
10932 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
10933 gen_int_mode instead of GEN_INT.
10935 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
10937 * config/darwin.c (gen_macho_low): Amend to include the mode
10939 (machopic_indirect_data_reference): Amend gen_macho_low call
10940 to include mode argument
10941 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
10942 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
10943 the macho_high expander and two define_insn entries.
10945 2019-09-29 Jakub Jelinek <jakub@redhat.com>
10948 * optc-save-gen.awk: Fix up printing string option differences.
10950 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
10952 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
10953 vec_perm cost to 1 for non-Power7 VSX architectures.
10955 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
10957 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
10958 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
10959 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
10961 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
10963 * config/darwin.c (gen_macho_high): Amend to include the mode
10965 (machopic_indirect_data_reference): Amend gen_macho_high call
10966 to include mode argument.
10967 (machopic_legitimize_pic_address): Likewise.
10968 * config/rs6000/rs6000.c (rs6000_legitimize_address):
10969 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
10970 the macho_high expander and two define_insn entries.
10972 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
10975 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
10977 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
10980 * config/sh/sh.c (parse_validate_atomic_model_option): Use
10981 std::string::compare instead of std::string::find.
10983 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
10985 * configure: Regenerate.
10987 2019-09-27 Jakub Jelinek <jakub@redhat.com>
10989 PR middle-end/91920
10990 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
10991 variables as shared.
10993 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
10995 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
10996 replaces the expander and two define_insn entries.
10997 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
10999 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11001 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11003 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11004 (fibonacci_heap::nodes): Likewise.
11005 (fibonacci_heap::min_key): Likewise.
11006 (fibonacci_heap::min): Likewise.
11008 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11010 * cgraph.c (cgraph_node::get_fun): Make const.
11011 * cgraph.h (cgraph_node::get_fun): Likewise.
11013 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11016 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11019 2019-09-27 Richard Biener <rguenther@suse.de>
11021 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11022 (STMT_VINFO_REDUC_FN): Likewise.
11023 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11024 STMT_VINFO_REDUC_FN.
11025 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11026 for condition reductions.
11027 (vect_create_epilog_for_reduction): Compute all required state
11028 from the stmt to be vectorized.
11029 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11030 invocation and remove then dead code. For single def-use chains
11031 record only a single vector stmt.
11033 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11035 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11036 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11037 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11038 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11039 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11040 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11041 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11042 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11043 (aarch64_general_builtin_rsqrt): Declare.
11044 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11046 (aarch64_mangle_builtin_type): Rename to...
11047 (aarch64_general_mangle_builtin_type): ...this.
11048 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11049 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11050 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11051 aarch64_general_add_builtin instead of add_builtin_function.
11052 (aarch64_init_builtins): Rename to...
11053 (aarch64_general_init_builtins): ...this. Use
11054 aarch64_general_add_builtin instead of add_builtin_function.
11055 (aarch64_builtin_decl): Rename to...
11056 (aarch64_general_builtin_decl): ...this and remove the unused
11058 (aarch64_expand_builtin): Rename to...
11059 (aarch64_general_expand_builtin): ...this and remove the unused
11061 (aarch64_builtin_rsqrt): Rename to...
11062 (aarch64_general_builtin_rsqrt): ...this.
11063 (aarch64_fold_builtin): Rename to...
11064 (aarch64_general_fold_builtin): ...this. Take the function subcode
11065 and return type as arguments. Remove the "ignored" argument.
11066 (aarch64_gimple_fold_builtin): Rename to...
11067 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11068 subcode and gcall as arguments, and return the new function call.
11069 * config/aarch64/aarch64.c (aarch64_init_builtins)
11070 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11071 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11072 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11073 instead of aarch64_builtin_rsqrt.
11074 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11075 instead of aarch64_mangle_builtin_type.
11077 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11079 * target.def (check_builtin_call): New target hook.
11080 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11081 * doc/tm.texi: Regenerate.
11083 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11085 PR tree-optimization/91909
11086 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11087 reduc_index parameter. When handling COND_REDUCTION, make sure
11088 that the reduction phi operand is in the correct arm of the
11090 (vectorizable_reduction): Pass reduc_index to the above.
11092 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11094 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11095 New combine pattern.
11097 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11099 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11100 loop instruction into new basic block before the loop when basic
11101 block that precedes the loop is empty.
11103 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11105 * function.c (gimplify_parameters): Use build_clobber function.
11106 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11107 * tree-inline.c (expand_call_inline): Likewise.
11108 * tree-sra.c (clobber_subtree): Likewise.
11109 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11110 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11111 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11112 lower_omp_target): Likewise.
11113 * omp-expand.c (expand_omp_for_generic): Likewise.
11114 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11116 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11118 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11119 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11120 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11121 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11122 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11123 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11124 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11125 LD_ELEMREV_V16QI): Use the PURE attribute.
11127 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11129 * config/rs6000/darwin.md: Replace the expanders for
11130 load_macho_picbase and reload_macho_picbase with use of '@'
11131 and <mode> in their respective define_insns.
11132 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11133 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11134 Pmode to gen_load_macho_picbase.
11135 * config/rs6000/rs6000.md: Likewise.
11137 2019-09-25 Richard Biener <rguenther@suse.de>
11139 PR tree-optimization/91896
11140 * tree-vect-loop.c (vectorizable_reduction): The single
11141 def-use cycle optimization cannot apply when there's more
11142 than one pattern stmt involved.
11144 2019-09-26 Richard Biener <rguenther@suse.de>
11146 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11147 loop-closed PHIs that are vect_internal_def.
11148 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11150 (vectorizable_lc_phi): New.
11151 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11152 (vect_transform_stmt): Likewise.
11153 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11154 (vectorizable_lc_phi): Declare.
11156 2019-09-26 Richard Biener <rguenther@suse.de>
11158 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11159 vectorizable_reduction for vect_double_reduction_def.
11160 (vect_transform_loop): Likewise.
11161 (vect_create_epilog_for_reduction): Move double-reduction
11162 PHI creation and preheader argument setting of PHIs ...
11163 (vectorizable_reduction): ... here. Also process
11164 vect_double_reduction_def PHIs, creating the vectorized
11165 PHI nodes, remembering the scalar adjustment computed for
11166 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11167 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11168 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11169 Initialize STMT_VINFO_REDUC_CODE.
11170 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11171 (_stmt_vec_info::reduc_code): Likewise.
11172 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11173 (STMT_VINFO_REDUC_CODE): Likewise.
11175 2019-09-26 Matt Turner <mattst88@gmail.com>
11178 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11179 (mtune=): Add Negative(mtune=).
11180 (mcpu=): Add Negative(mcpu=).
11181 * config/arm/arm.opt: Likewise.
11183 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11185 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11186 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11188 * config/arm/arm_acle.h: Define builtins for the above.
11189 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11190 (simd32_op): Handle the above.
11191 * config/arm/unspecs.md: Define unspecs for the above.
11193 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11195 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11196 (arm_<sup>xtb16): Likewise.
11197 (arm_usada8): Likewise.
11198 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11199 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11200 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11201 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11202 __sxtb16, __uxtab16, __uxtb16): Define.
11203 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11204 * config/arm/unspecs.md: Define unspecs for the above.
11205 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11206 (USXTB16): Likewise.
11207 (simd32_op): New int_attribute.
11208 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11209 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11211 2019-09-26 Martin Jambor <mjambor@suse.cz>
11213 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11216 2019-09-26 Martin Jambor <mjambor@suse.cz>
11218 * ipa-sra.c (process_scan_results): Fix continue condition.
11220 2019-09-26 Martin Liska <mliska@suse.cz>
11222 PR tree-optimization/91885
11223 * tree-vectorizer.c (try_vectorize_loop_1): Add
11224 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11226 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11228 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11229 aarch64_plus_immediate rather than aarch64_uimm12_shift
11230 to test for valid PLUS immediates.
11232 2019-09-25 Martin Jambor <mjambor@suse.cz>
11234 * tree-sra.c (no_accesses_p): Remove.
11235 (no_accesses_representant): Likewise.
11237 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11239 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11241 (vaba_s16): Likewise.
11242 (vaba_s32): Likewise.
11243 (vaba_u8): Likewise.
11244 (vaba_u16): Likewise.
11245 (vaba_u32): Likewise.
11246 (vabal_high_s8): Likewise.
11247 (vabal_high_s16): Likewise.
11248 (vabal_high_s32): Likewise.
11249 (vabal_high_u8): Likewise.
11250 (vabal_high_u16): Likewise.
11251 (vabal_high_u32): Likewise.
11252 (vabal_s8): Likewise.
11253 (vabal_s16): Likewise.
11254 (vabal_s32): Likewise.
11255 (vabal_u8): Likewise.
11256 (vabal_u16): Likewise.
11257 (vabal_u32): Likewise.
11258 (vabaq_s8): Likewise.
11259 (vabaq_s16): Likewise.
11260 (vabaq_s32): Likewise.
11261 (vabaq_u8): Likewise.
11262 (vabaq_u16): Likewise.
11263 (vabaq_u32): Likewise.
11264 (vabd_s8): Likewise.
11265 (vabd_s16): Likewise.
11266 (vabd_s32): Likewise.
11267 (vabd_u8): Likewise.
11268 (vabd_u16): Likewise.
11269 (vabd_u32): Likewise.
11270 (vabdl_high_s8): Likewise.
11271 (vabdl_high_s16): Likewise.
11272 (vabdl_high_s32): Likewise.
11273 (vabdl_high_u8): Likewise.
11274 (vabdl_high_u16): Likewise.
11275 (vabdl_high_u32): Likewise.
11276 (vabdl_s8): Likewise.
11277 (vabdl_s16): Likewise.
11278 (vabdl_s32): Likewise.
11279 (vabdl_u8): Likewise.
11280 (vabdl_u16): Likewise.
11281 (vabdl_u32): Likewise.
11282 (vabdq_s8): Likewise.
11283 (vabdq_s16): Likewise.
11284 (vabdq_s32): Likewise.
11285 (vabdq_u8): Likewise.
11286 (vabdq_u16): Likewise.
11287 (vabdq_u32): Likewise.
11288 (vaddlv_s8): Likewise.
11289 (vaddlv_s16): Likewise.
11290 (vaddlv_u8): Likewise.
11291 (vaddlv_u16): Likewise.
11292 (vaddlvq_s8): Likewise.
11293 (vaddlvq_s16): Likewise.
11294 (vaddlvq_s32): Likewise.
11295 (vaddlvq_u8): Likewise.
11296 (vaddlvq_u16): Likewise.
11297 (vaddlvq_u32): Likewise.
11298 (vcvtx_f32_f64): Likewise.
11299 (vcvtx_high_f32_f64): Likewise.
11300 (vcvtxd_f32_f64): Likewise.
11301 (vmla_n_f32): Likewise.
11302 (vmla_n_s16): Likewise.
11303 (vmla_n_s32): Likewise.
11304 (vmla_n_u16): Likewise.
11305 (vmla_n_u32): Likewise.
11306 (vmla_s8): Likewise.
11307 (vmla_s16): Likewise.
11308 (vmla_s32): Likewise.
11309 (vmla_u8): Likewise.
11310 (vmla_u16): Likewise.
11311 (vmla_u32): Likewise.
11312 (vmlal_high_n_s16): Likewise.
11313 (vmlal_high_n_s32): Likewise.
11314 (vmlal_high_n_u16): Likewise.
11315 (vmlal_high_n_u32): Likewise.
11316 (vmlal_high_s8): Likewise.
11317 (vmlal_high_s16): Likewise.
11318 (vmlal_high_s32): Likewise.
11319 (vmlal_high_u8): Likewise.
11320 (vmlal_high_u16): Likewise.
11321 (vmlal_high_u32): Likewise.
11322 (vmlal_n_s16): Likewise.
11323 (vmlal_n_s32): Likewise.
11324 (vmlal_n_u16): Likewise.
11325 (vmlal_n_u32): Likewise.
11326 (vmlal_s8): Likewise.
11327 (vmlal_s16): Likewise.
11328 (vmlal_s32): Likewise.
11329 (vmlal_u8): Likewise.
11330 (vmlal_u16): Likewise.
11331 (vmlal_u32): Likewise.
11332 (vmlaq_n_f32): Likewise.
11333 (vmlaq_n_s16): Likewise.
11334 (vmlaq_n_s32): Likewise.
11335 (vmlaq_n_u16): Likewise.
11336 (vmlaq_n_u32): Likewise.
11337 (vmlaq_s8): Likewise.
11338 (vmlaq_s16): Likewise.
11339 (vmlaq_s32): Likewise.
11340 (vmlaq_u8): Likewise.
11341 (vmlaq_u16): Likewise.
11342 (vmlaq_u32): Likewise.
11343 (vmls_n_f32): Likewise.
11344 (vmls_n_s16): Likewise.
11345 (vmls_n_s32): Likewise.
11346 (vmls_n_u16): Likewise.
11347 (vmls_n_u32): Likewise.
11348 (vmls_s8): Likewise.
11349 (vmls_s16): Likewise.
11350 (vmls_s32): Likewise.
11351 (vmls_u8): Likewise.
11352 (vmls_u16): Likewise.
11353 (vmls_u32): Likewise.
11354 (vmlsl_high_n_s16): Likewise.
11355 (vmlsl_high_n_s32): Likewise.
11356 (vmlsl_high_n_u16): Likewise.
11357 (vmlsl_high_n_u32): Likewise.
11358 (vmlsl_high_s8): Likewise.
11359 (vmlsl_high_s16): Likewise.
11360 (vmlsl_high_s32): Likewise.
11361 (vmlsl_high_u8): Likewise.
11362 (vmlsl_high_u16): Likewise.
11363 (vmlsl_high_u32): Likewise.
11364 (vmlsl_n_s16): Likewise.
11365 (vmlsl_n_s32): Likewise.
11366 (vmlsl_n_u16): Likewise.
11367 (vmlsl_n_u32): Likewise.
11368 (vmlsl_s8): Likewise.
11369 (vmlsl_s16): Likewise.
11370 (vmlsl_s32): Likewise.
11371 (vmlsl_u8): Likewise.
11372 (vmlsl_u16): Likewise.
11373 (vmlsl_u32): Likewise.
11374 (vmlsq_n_f32): Likewise.
11375 (vmlsq_n_s16): Likewise.
11376 (vmlsq_n_s32): Likewise.
11377 (vmlsq_n_u16): Likewise.
11378 (vmlsq_n_u32): Likewise.
11379 (vmlsq_s8): Likewise.
11380 (vmlsq_s16): Likewise.
11381 (vmlsq_s32): Likewise.
11382 (vmlsq_u8): Likewise.
11383 (vmlsq_u16): Likewise.
11384 (vmlsq_u32): Likewise.
11385 (vmovl_high_s8): Likewise.
11386 (vmovl_high_s16): Likewise.
11387 (vmovl_high_s32): Likewise.
11388 (vmovl_high_u8): Likewise.
11389 (vmovl_high_u16): Likewise.
11390 (vmovl_high_u32): Likewise.
11391 (vmovl_s8): Likewise.
11392 (vmovl_s16): Likewise.
11393 (vmovl_s32): Likewise.
11394 (vmovl_u8): Likewise.
11395 (vmovl_u16): Likewise.
11396 (vmovl_u32): Likewise.
11397 (vmovn_high_s16): Likewise.
11398 (vmovn_high_s32): Likewise.
11399 (vmovn_high_s64): Likewise.
11400 (vmovn_high_u16): Likewise.
11401 (vmovn_high_u32): Likewise.
11402 (vmovn_high_u64): Likewise.
11403 (vmovn_s16): Likewise.
11404 (vmovn_s32): Likewise.
11405 (vmovn_s64): Likewise.
11406 (vmovn_u16): Likewise.
11407 (vmovn_u32): Likewise.
11408 (vmovn_u64): Likewise.
11409 (vmull_high_n_s16): Likewise.
11410 (vmull_high_n_s32): Likewise.
11411 (vmull_high_n_u16): Likewise.
11412 (vmull_high_n_u32): Likewise.
11413 (vmull_high_p8): Likewise.
11414 (vmull_high_s8): Likewise.
11415 (vmull_high_s16): Likewise.
11416 (vmull_high_s32): Likewise.
11417 (vmull_high_u8): Likewise.
11418 (vmull_high_u16): Likewise.
11419 (vmull_high_u32): Likewise.
11420 (vmull_n_s16): Likewise.
11421 (vmull_n_s32): Likewise.
11422 (vmull_n_u16): Likewise.
11423 (vmull_n_u32): Likewise.
11424 (vmull_p8): Likewise.
11425 (vmull_s8): Likewise.
11426 (vmull_s16): Likewise.
11427 (vmull_s32): Likewise.
11428 (vmull_u8): Likewise.
11429 (vmull_u16): Likewise.
11430 (vmull_u32): Likewise.
11431 (vpadal_s8): Likewise.
11432 (vpadal_s16): Likewise.
11433 (vpadal_s32): Likewise.
11434 (vpadal_u8): Likewise.
11435 (vpadal_u16): Likewise.
11436 (vpadal_u32): Likewise.
11437 (vpadalq_s8): Likewise.
11438 (vpadalq_s16): Likewise.
11439 (vpadalq_s32): Likewise.
11440 (vpadalq_u8): Likewise.
11441 (vpadalq_u16): Likewise.
11442 (vpadalq_u32): Likewise.
11443 (vpaddl_s8): Likewise.
11444 (vpaddl_s16): Likewise.
11445 (vpaddl_s32): Likewise.
11446 (vpaddl_u8): Likewise.
11447 (vpaddl_u16): Likewise.
11448 (vpaddl_u32): Likewise.
11449 (vpaddlq_s8): Likewise.
11450 (vpaddlq_s16): Likewise.
11451 (vpaddlq_s32): Likewise.
11452 (vpaddlq_u8): Likewise.
11453 (vpaddlq_u16): Likewise.
11454 (vpaddlq_u32): Likewise.
11455 (vpaddq_s8): Likewise.
11456 (vpaddq_s16): Likewise.
11457 (vpaddq_s32): Likewise.
11458 (vpaddq_s64): Likewise.
11459 (vpaddq_u8): Likewise.
11460 (vpaddq_u16): Likewise.
11461 (vpaddq_u32): Likewise.
11462 (vpaddq_u64): Likewise.
11463 (vqdmulh_n_s16): Likewise.
11464 (vqdmulh_n_s32): Likewise.
11465 (vqdmulhq_n_s16): Likewise.
11466 (vqdmulhq_n_s32): Likewise.
11467 (vqmovn_high_s16): Likewise.
11468 (vqmovn_high_s32): Likewise.
11469 (vqmovn_high_s64): Likewise.
11470 (vqmovn_high_u16): Likewise.
11471 (vqmovn_high_u32): Likewise.
11472 (vqmovn_high_u64): Likewise.
11473 (vqmovun_high_s16): Likewise.
11474 (vqmovun_high_s32): Likewise.
11475 (vqmovun_high_s64): Likewise.
11476 (vqrdmulh_n_s16): Likewise.
11477 (vqrdmulh_n_s32): Likewise.
11478 (vqrdmulhq_n_s16): Likewise.
11479 (vqrdmulhq_n_s32): Likewise.
11480 (vrsqrte_u32): Likewise.
11481 (vrsqrteq_u32): Likewise.
11482 (vtst_p8): Likewise.
11483 (vtst_p16): Likewise.
11484 (vtst_p64): Likewise.
11485 (vtstq_p8): Likewise.
11486 (vtstq_p16): Likewise.
11487 (vtstq_p64): Likewise.
11488 (vaddlv_s32): Likewise.
11489 (vaddlv_u32): Likewise.
11490 (vqtbl1_p8): Likewise.
11491 (vqtbl1_s8): Likewise.
11492 (vqtbl1_u8): Likewise.
11493 (vqtbl1q_p8): Likewise.
11494 (vqtbl1q_s8): Likewise.
11495 (vqtbl1q_u8): Likewise.
11496 (vqtbx1_s8): Likewise.
11497 (vqtbx1_u8): Likewise.
11498 (vqtbx1_p8): Likewise.
11499 (vqtbx1q_s8): Likewise.
11500 (vqtbx1q_u8): Likewise.
11501 (vqtbx1q_p8): Likewise.
11502 (vtbl1_s8): Likewise.
11503 (vtbl1_u8): Likewise.
11504 (vtbl1_p8): Likewise.
11505 (vtbl2_s8): Likewise.
11506 (vtbl2_u8): Likewise.
11507 (vtbl2_p8): Likewise.
11508 (vtbl3_s8): Likewise.
11509 (vtbl3_u8): Likewise.
11510 (vtbl3_p8): Likewise.
11511 (vtbl4_s8): Likewise.
11512 (vtbl4_u8): Likewise.
11513 (vtbl4_p8): Likewise.
11514 (vtbx2_s8): Likewise.
11515 (vtbx2_u8): Likewise.
11516 (vtbx2_p8): Likewise.
11517 (vld1_f32): Likewise.
11518 (vld1_f64): Likewise.
11519 (vld1_p8): Likewise.
11520 (vld1_p16): Likewise.
11521 (vld1_p64): Likewise.
11522 (vld1_s8): Likewise.
11523 (vld1_s16): Likewise.
11524 (vld1_s32): Likewise.
11525 (vld1_s64): Likewise.
11526 (vld1_u8): Likewise.
11527 (vld1_u16): Likewise.
11528 (vld1_u32): Likewise.
11529 (vld1_u64): Likewise.
11530 (vld1q_f32): Likewise.
11531 (vld1q_f64): Likewise.
11532 (vld1q_p8): Likewise.
11533 (vld1q_p16): Likewise.
11534 (vld1q_p64): Likewise.
11535 (vld1q_s8): Likewise.
11536 (vld1q_s16): Likewise.
11537 (vld1q_s32): Likewise.
11538 (vld1q_s64): Likewise.
11539 (vld1q_u8): Likewise.
11540 (vld1q_u16): Likewise.
11541 (vld1q_u32): Likewise.
11542 (vld1q_u64): Likewise.
11543 (vpmax_s8): Likewise.
11544 (vpmax_s16): Likewise.
11545 (vpmax_s32): Likewise.
11546 (vpmax_u8): Likewise.
11547 (vpmax_u16): Likewise.
11548 (vpmax_u32): Likewise.
11549 (vpmaxq_s8): Likewise.
11550 (vpmaxq_s16): Likewise.
11551 (vpmaxq_s32): Likewise.
11552 (vpmaxq_u8): Likewise.
11553 (vpmaxq_u16): Likewise.
11554 (vpmaxq_u32): Likewise.
11555 (vpmax_f32): Likewise.
11556 (vpmaxq_f32): Likewise.
11557 (vpmaxq_f64): Likewise.
11558 (vpmaxqd_f64): Likewise.
11559 (vpmaxs_f32): Likewise.
11560 (vpmaxnm_f32): Likewise.
11561 (vpmaxnmq_f32): Likewise.
11562 (vpmaxnmq_f64): Likewise.
11563 (vpmaxnmqd_f64): Likewise.
11564 (vpmaxnms_f32): Likewise.
11565 (vpmin_s8): Likewise.
11566 (vpmin_s16): Likewise.
11567 (vpmin_s32): Likewise.
11568 (vpmin_u8): Likewise.
11569 (vpmin_u16): Likewise.
11570 (vpmin_u32): Likewise.
11571 (vpminq_s8): Likewise.
11572 (vpminq_s16): Likewise.
11573 (vpminq_s32): Likewise.
11574 (vpminq_u8): Likewise.
11575 (vpminq_u16): Likewise.
11576 (vpminq_u32): Likewise.
11577 (vpmin_f32): Likewise.
11578 (vpminq_f32): Likewise.
11579 (vpminq_f64): Likewise.
11580 (vpminqd_f64): Likewise.
11581 (vpmins_f32): Likewise.
11582 (vpminnm_f32): Likewise.
11583 (vpminnmq_f32): Likewise.
11584 (vpminnmq_f64): Likewise.
11585 (vpminnmqd_f64): Likewise.
11586 (vpminnms_f32): Likewise.
11587 (vmla_f32): Likewise.
11588 (vmlaq_f32): Likewise.
11589 (vmlaq_f64): Likewise.
11590 (vmls_f32): Likewise.
11591 (vmlsq_f32): Likewise.
11592 (vmlsq_f64): Likewise.
11593 (vqtbl2_s8): Likewise.
11594 (vqtbl2_u8): Likewise.
11595 (vqtbl2_p8): Likewise.
11596 (vqtbl2q_s8): Likewise.
11597 (vqtbl2q_u8): Likewise.
11598 (vqtbl2q_p8): Likewise.
11599 (vqtbl3_s8): Likewise.
11600 (vqtbl3_u8): Likewise.
11601 (vqtbl3_p8): Likewise.
11602 (vqtbl3q_s8): Likewise.
11603 (vqtbl3q_u8): Likewise.
11604 (vqtbl3q_p8): Likewise.
11605 (vqtbl4_s8): Likewise.
11606 (vqtbl4_u8): Likewise.
11607 (vqtbl4_p8): Likewise.
11608 (vqtbl4q_s8): Likewise.
11609 (vqtbl4q_u8): Likewise.
11610 (vqtbl4q_p8): Likewise.
11611 (vqtbx2_s8): Likewise.
11612 (vqtbx2_u8): Likewise.
11613 (vqtbx2_p8): Likewise.
11614 (vqtbx2q_s8): Likewise.
11615 (vqtbx2q_u8): Likewise.
11616 (vqtbx2q_p8): Likewise.
11617 (vqtbx3_s8): Likewise.
11618 (vqtbx3_u8): Likewise.
11619 (vqtbx3_p8): Likewise.
11620 (vqtbx3q_s8): Likewise.
11621 (vqtbx3q_u8): Likewise.
11622 (vqtbx3q_p8): Likewise.
11623 (vqtbx4_s8): Likewise.
11624 (vqtbx4_u8): Likewise.
11625 (vqtbx4_p8): Likewise.
11626 (vqtbx4q_s8): Likewise.
11627 (vqtbx4q_u8): Likewise.
11628 (vqtbx4q_p8): Likewise.
11629 (vrev16_p8): Likewise.
11630 (vrev16_s8): Likewise.
11631 (vrev16_u8): Likewise.
11632 (vrev16q_p8): Likewise.
11633 (vrev16q_s8): Likewise.
11634 (vrev16q_u8): Likewise.
11635 (vrev32_p8): Likewise.
11636 (vrev32_p16): Likewise.
11637 (vrev32_s8): Likewise.
11638 (vrev32_s16): Likewise.
11639 (vrev32_u8): Likewise.
11640 (vrev32_u16): Likewise.
11641 (vrev32q_p8): Likewise.
11642 (vrev32q_p16): Likewise.
11643 (vrev32q_s8): Likewise.
11644 (vrev32q_s16): Likewise.
11645 (vrev32q_u8): Likewise.
11646 (vrev32q_u16): Likewise.
11647 (vrev64_f32): Likewise.
11648 (vrev64_p8): Likewise.
11649 (vrev64_p16): Likewise.
11650 (vrev64_s8): Likewise.
11651 (vrev64_s16): Likewise.
11652 (vrev64_s32): Likewise.
11653 (vrev64_u8): Likewise.
11654 (vrev64_u16): Likewise.
11655 (vrev64_u32): Likewise.
11656 (vrev64q_f32): Likewise.
11657 (vrev64q_p8): Likewise.
11658 (vrev64q_p16): Likewise.
11659 (vrev64q_s8): Likewise.
11660 (vrev64q_s16): Likewise.
11661 (vrev64q_s32): Likewise.
11662 (vrev64q_u8): Likewise.
11663 (vrev64q_u16): Likewise.
11664 (vrev64q_u32): Likewise.
11665 (vsha1cq_u32): Likewise.
11666 (vsha1mq_u32): Likewise.
11667 (vsha1pq_u32): Likewise.
11668 (vsha1h_u32): Likewise.
11669 (vsha1su0q_u32): Likewise.
11670 (vsha1su1q_u32): Likewise.
11671 (vsha256hq_u32): Likewise.
11672 (vsha256h2q_u32): Likewise.
11673 (vsha256su0q_u32): Likewise.
11674 (vsha256su1q_u32): Likewise.
11675 (vmull_p64): Likewise.
11676 (vmull_high_p64): Likewise.
11677 (vsqrt_f32): Likewise.
11678 (vsqrtq_f32): Likewise.
11679 (vsqrt_f64): Likewise.
11680 (vsqrtq_f64): Likewise.
11681 (vst1_f32): Likewise.
11682 (vst1_f64): Likewise.
11683 (vst1_p8): Likewise.
11684 (vst1_p16): Likewise.
11685 (vst1_p64): Likewise.
11686 (vst1_s8): Likewise.
11687 (vst1_s16): Likewise.
11688 (vst1_s32): Likewise.
11689 (vst1_s64): Likewise.
11690 (vst1_u8): Likewise.
11691 (vst1_u16): Likewise.
11692 (vst1_u32): Likewise.
11693 (vst1_u64): Likewise.
11694 (vst1q_f32): Likewise.
11695 (vst1q_f64): Likewise.
11696 (vst1q_p8): Likewise.
11697 (vst1q_p16): Likewise.
11698 (vst1q_p64): Likewise.
11699 (vst1q_s8): Likewise.
11700 (vst1q_s16): Likewise.
11701 (vst1q_s32): Likewise.
11702 (vst1q_s64): Likewise.
11703 (vst1q_u8): Likewise.
11704 (vst1q_u16): Likewise.
11705 (vst1q_u32): Likewise.
11706 (vst1q_u64): Likewise.
11707 (vst1_s64_x2): Likewise.
11708 (vst1_u64_x2): Likewise.
11709 (vst1_f64_x2): Likewise.
11710 (vst1_s8_x2): Likewise.
11711 (vst1_p8_x2): Likewise.
11712 (vst1_s16_x2): Likewise.
11713 (vst1_p16_x2): Likewise.
11714 (vst1_s32_x2): Likewise.
11715 (vst1_u8_x2): Likewise.
11716 (vst1_u16_x2): Likewise.
11717 (vst1_u32_x2): Likewise.
11718 (vst1_f16_x2): Likewise.
11719 (vst1_f32_x2): Likewise.
11720 (vst1_p64_x2): Likewise.
11721 (vst1q_s8_x2): Likewise.
11722 (vst1q_p8_x2): Likewise.
11723 (vst1q_s16_x2): Likewise.
11724 (vst1q_p16_x2): Likewise.
11725 (vst1q_s32_x2): Likewise.
11726 (vst1q_s64_x2): Likewise.
11727 (vst1q_u8_x2): Likewise.
11728 (vst1q_u16_x2): Likewise.
11729 (vst1q_u32_x2): Likewise.
11730 (vst1q_u64_x2): Likewise.
11731 (vst1q_f16_x2): Likewise.
11732 (vst1q_f32_x2): Likewise.
11733 (vst1q_f64_x2): Likewise.
11734 (vst1q_p64_x2): Likewise.
11735 (vst1_s64_x3): Likewise.
11736 (vst1_u64_x3): Likewise.
11737 (vst1_f64_x3): Likewise.
11738 (vst1_s8_x3): Likewise.
11739 (vst1_p8_x3): Likewise.
11740 (vst1_s16_x3): Likewise.
11741 (vst1_p16_x3): Likewise.
11742 (vst1_s32_x3): Likewise.
11743 (vst1_u8_x3): Likewise.
11744 (vst1_u16_x3): Likewise.
11745 (vst1_u32_x3): Likewise.
11746 (vst1_f16_x3): Likewise.
11747 (vst1_f32_x3): Likewise.
11748 (vst1_p64_x3): Likewise.
11749 (vst1q_s8_x3): Likewise.
11750 (vst1q_p8_x3): Likewise.
11751 (vst1q_s16_x3): Likewise.
11752 (vst1q_p16_x3): Likewise.
11753 (vst1q_s32_x3): Likewise.
11754 (vst1q_s64_x3): Likewise.
11755 (vst1q_u8_x3): Likewise.
11756 (vst1q_u16_x3): Likewise.
11757 (vst1q_u32_x3): Likewise.
11758 (vst1q_u64_x3): Likewise.
11759 (vst1q_f16_x3): Likewise.
11760 (vst1q_f32_x3): Likewise.
11761 (vst1q_f64_x3): Likewise.
11762 (vst1q_p64_x3): Likewise.
11763 (vst2_s64): Likewise.
11764 (vst2_u64): Likewise.
11765 (vst2_f64): Likewise.
11766 (vst2_s8): Likewise.
11767 (vst2_p8): Likewise.
11768 (vst2_s16): Likewise.
11769 (vst2_p16): Likewise.
11770 (vst2_s32): Likewise.
11771 (vst2_u8): Likewise.
11772 (vst2_u16): Likewise.
11773 (vst2_u32): Likewise.
11774 (vst2_f16): Likewise.
11775 (vst2_f32): Likewise.
11776 (vst2_p64): Likewise.
11777 (vst2q_s8): Likewise.
11778 (vst2q_p8): Likewise.
11779 (vst2q_s16): Likewise.
11780 (vst2q_p16): Likewise.
11781 (vst2q_s32): Likewise.
11782 (vst2q_s64): Likewise.
11783 (vst2q_u8): Likewise.
11784 (vst2q_u16): Likewise.
11785 (vst2q_u32): Likewise.
11786 (vst2q_u64): Likewise.
11787 (vst2q_f16): Likewise.
11788 (vst2q_f32): Likewise.
11789 (vst2q_f64): Likewise.
11790 (vst2q_p64): Likewise.
11791 (vst3_s64): Likewise.
11792 (vst3_u64): Likewise.
11793 (vst3_f64): Likewise.
11794 (vst3_s8): Likewise.
11795 (vst3_p8): Likewise.
11796 (vst3_s16): Likewise.
11797 (vst3_p16): Likewise.
11798 (vst3_s32): Likewise.
11799 (vst3_u8): Likewise.
11800 (vst3_u16): Likewise.
11801 (vst3_u32): Likewise.
11802 (vst3_f16): Likewise.
11803 (vst3_f32): Likewise.
11804 (vst3_p64): Likewise.
11805 (vst3q_s8): Likewise.
11806 (vst3q_p8): Likewise.
11807 (vst3q_s16): Likewise.
11808 (vst3q_p16): Likewise.
11809 (vst3q_s32): Likewise.
11810 (vst3q_s64): Likewise.
11811 (vst3q_u8): Likewise.
11812 (vst3q_u16): Likewise.
11813 (vst3q_u32): Likewise.
11814 (vst3q_u64): Likewise.
11815 (vst3q_f16): Likewise.
11816 (vst3q_f32): Likewise.
11817 (vst3q_f64): Likewise.
11818 (vst3q_p64): Likewise.
11819 (vst4_s64): Likewise.
11820 (vst4_u64): Likewise.
11821 (vst4_f64): Likewise.
11822 (vst4_s8): Likewise.
11823 (vst4_p8): Likewise.
11824 (vst4_s16): Likewise.
11825 (vst4_p16): Likewise.
11826 (vst4_s32): Likewise.
11827 (vst4_u8): Likewise.
11828 (vst4_u16): Likewise.
11829 (vst4_u32): Likewise.
11830 (vst4_f16): Likewise.
11831 (vst4_f32): Likewise.
11832 (vst4_p64): Likewise.
11833 (vst4q_s8): Likewise.
11834 (vst4q_p8): Likewise.
11835 (vst4q_s16): Likewise.
11836 (vst4q_p16): Likewise.
11837 (vst4q_s32): Likewise.
11838 (vst4q_s64): Likewise.
11839 (vst4q_u8): Likewise.
11840 (vst4q_u16): Likewise.
11841 (vst4q_u32): Likewise.
11842 (vst4q_u64): Likewise.
11843 (vst4q_f16): Likewise.
11844 (vst4q_f32): Likewise.
11845 (vst4q_f64): Likewise.
11846 (vst4q_p64): Likewise.
11847 (vtbx4_s8): Likewise.
11848 (vtbx4_u8): Likewise.
11849 (vtbx4_p8): Likewise.
11850 (vtrn_f32): Likewise.
11851 (vtrn_p8): Likewise.
11852 (vtrn_p16): Likewise.
11853 (vtrn_s8): Likewise.
11854 (vtrn_s16): Likewise.
11855 (vtrn_s32): Likewise.
11856 (vtrn_u8): Likewise.
11857 (vtrn_u16): Likewise.
11858 (vtrn_u32): Likewise.
11859 (vtrnq_f32): Likewise.
11860 (vtrnq_p8): Likewise.
11861 (vtrnq_p16): Likewise.
11862 (vtrnq_s8): Likewise.
11863 (vtrnq_s16): Likewise.
11864 (vtrnq_s32): Likewise.
11865 (vtrnq_u8): Likewise.
11866 (vtrnq_u16): Likewise.
11867 (vtrnq_u32): Likewise.
11868 (vrsqrte_f16): Likewise.
11869 (vrsqrteq_f16): Likewise.
11870 (vsqrt_f16): Likewise.
11871 (vsqrtq_f16): Likewise.
11872 (vabd_f16): Likewise.
11873 (vabdq_f16): Likewise.
11874 (vpadd_f16): Likewise.
11875 (vpaddq_f16): Likewise.
11876 (vpmax_f16): Likewise.
11877 (vpmaxq_f16): Likewise.
11878 (vpmaxnm_f16): Likewise.
11879 (vpmaxnmq_f16): Likewise.
11880 (vpmin_f16): Likewise.
11881 (vpminq_f16): Likewise.
11882 (vpminnm_f16): Likewise.
11883 (vpminnmq_f16): Likewise.
11884 (vrsqrts_f16): Likewise.
11885 (vrsqrtsq_f16): Likewise.
11887 2019-09-25 Richard Biener <rguenther@suse.de>
11889 PR tree-optimization/91896
11890 * tree-vect-loop.c (vectorizable_reduction): The single
11891 def-use cycle optimization cannot apply when there's more
11892 than one pattern stmt involved.
11894 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
11896 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
11897 the 'P' mode iterator, replacing the (removed) SI and DI variants.
11898 (reload_macho_picbase_<mode>): Likewise.
11900 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
11902 * config/rs6000/rs6000.md: Move darwin.md include until
11903 after the definition of the mode iterators.
11905 2019-09-23 Martin Sebor <msebor@redhat.com>
11907 PR tree-optimization/91570
11908 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
11909 non-constant minlen, maxlen and maxbound.
11911 2019-09-24 Richard Biener <rguenther@suse.de>
11913 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
11915 (_stmt_vec_info::cond_reduc_code): ... this.
11916 (_stmt_vec_info::induc_cond_initial_val): Add.
11917 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
11918 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
11919 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
11920 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
11921 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
11922 the reduction code.
11923 (vect_create_epilog_for_reduction): Drop special
11924 induction condition reduction params, pass in reduction code
11926 (vectorizable_reduction): Perform condition reduction kind
11927 selection only at analysis time. Adjust passing on state.
11929 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11931 * config/aarch64/aarch64.md (mov<mode>): Don't call
11932 aarch64_split_dimode_const_store on volatile MEM.
11934 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
11936 * config/aarch64/aarch64-option-extensions.def (fp16fml):
11937 Update hwcap string for fp16fml.
11939 2019-09-24 Jakub Jelinek <jakub@redhat.com>
11941 PR middle-end/91866
11942 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
11943 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
11945 2019-09-24 Martin Liska <mliska@suse.cz>
11947 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
11948 instead of if-elseif-elseif-...
11949 * gimple-expr.c (extract_ops_from_tree): Likewise.
11950 * gimple.c (get_gimple_rhs_num_ops): Likewise.
11951 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
11953 2019-09-24 Martin Jambor <mjambor@suse.cz>
11956 * ipa-param-manipulation.c (carry_over_param): Make a method of
11957 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
11958 in case of a context mismatch.
11959 (ipa_param_body_adjustments::common_initialization): Adjust call to
11961 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
11962 private method carry_over_param.
11964 2019-09-24 Martin Jambor <mjambor@suse.cz>
11967 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
11969 2019-09-24 Richard Biener <rguenther@suse.de>
11971 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
11974 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11976 * config/arm/t-arm (arm-builtins.o): Add dependency on
11977 arm_acle_builtins.def.
11979 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
11982 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
11983 canonical CONST_INTs. Use gen_rtvec.
11985 2019-09-23 Richard Biener <rguenther@suse.de>
11987 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
11988 avoid adjusting by + 0 or * 1.
11989 (vect_create_epilog_for_reduction): Get reduction code only
11990 when necessary. Deal with adjustment_def only when necessary.
11992 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
11994 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
11997 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12000 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12003 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12005 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12006 code. Merge code blocks with common conditionals. Use declared
12007 macro instead of a magic number for PIC level.
12009 2019-09-21 Martin Sebor <msebor@redhat.com>
12011 PR middle-end/91830
12012 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12013 Simplify computation of the offset of the referenced subobject.
12015 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12017 * config/darwin.c (machopic_legitimize_pic_address): Check
12018 for lra not reload.
12020 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12022 * ira-conflicts.c (can_use_same_reg_p): New function.
12023 (process_reg_shuffles): Take an insn parameter. Ignore cases
12024 in which input operand op_num could seemingly never be allocated
12025 to the same register as the destination.
12026 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12028 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12030 * simplify-rtx.c (neg_const_int): Replace with...
12031 (neg_poly_int_rtx): ...this new function.
12032 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12033 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12034 (simplify_plus_minus): Likewise for constant terms here.
12036 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12038 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12039 HOST_WIDE_PRINT_UNSIGNED.
12041 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12043 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12046 2019-09-20 Maya Rashish <coypu@sdf.org>
12049 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12050 Define to speculation_safe_value_not_needed.
12052 2019-09-20 Richard Biener <rguenther@suse.de>
12053 Uros Bizjak <ubizjak@gmail.com>
12056 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12058 (general_scalar_chain::convert_op): Force not suitable memory
12059 operands to a register.
12061 2019-09-20 Richard Biener <rguenther@suse.de>
12063 PR tree-optimization/91821
12064 * tree-vect-loop.c (check_reduction_path): Check we can compute
12066 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12067 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12068 operands in canonical order.
12069 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12070 STMT_VINFO_REDUC_IDX.
12071 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12072 (STMT_VINFO_REDUC_IDX): Likewise.
12074 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12077 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12079 2019-09-20 Richard Biener <rguenther@suse.de>
12081 PR tree-optimization/91822
12082 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12084 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12085 for reduc_index in nested cycles, adjust vectorizable_condition
12087 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12089 (vect_analyze_stmt): Adjust.
12090 (vect_transform_stmt): Likewise.
12092 2019-09-20 Richard Biener <rguenther@suse.de>
12095 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12096 Ensure there's a sequence point between allocating the new register
12097 and passing a reference to a reg via regno_reg_rtx.
12099 2019-09-20 Martin Jambor <mjambor@suse.cz>
12101 * coretypes.h (cgraph_edge): Declare.
12102 * ipa-param-manipulation.c: Rewrite.
12103 * ipa-param-manipulation.h: Likewise.
12104 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12105 (OBJS): Added ipa-sra.o.
12106 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12107 and ref_p, added fields param_adjustments and performed_splits.
12108 (struct cgraph_clone_info): Remove ags_to_skip and
12109 combined_args_to_skip, new field param_adjustments.
12110 (cgraph_node::create_clone): Changed parameters to use
12111 ipa_param_adjustments.
12112 (cgraph_node::create_virtual_clone): Likewise.
12113 (cgraph_node::create_virtual_clone_with_body): Likewise.
12114 (tree_function_versioning): Likewise.
12115 (cgraph_build_function_type_skip_args): Removed.
12116 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12117 using ipa_param_adjustments.
12118 (clone_of_p): Likewise.
12119 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12120 (build_function_decl_skip_args): Likewise.
12121 (duplicate_thunk_for_node): Adjust parameters using
12122 ipa_param_body_adjustments, copy param_adjustments instead of
12124 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12125 (cgraph_node::create_virtual_clone): Likewise.
12126 (cgraph_node::create_version_clone_with_body): Likewise.
12127 (cgraph_materialize_clone): Likewise.
12128 (symbol_table::materialize_all_clones): Likewise.
12129 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12130 ipa_replace_map check.
12131 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12132 (initialize_node_lattices): Make aware that some parameters might have
12133 already been removed.
12134 (want_remove_some_param_p): New function.
12135 (create_specialized_node): Convert to using ipa_param_adjustments and
12136 deal with possibly pre-existing adjustments.
12137 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12138 (output_node_opt_summary): Do not stream removed fields. Stream
12139 parameter adjustments instead of argumetns to skip.
12140 (input_node_opt_summary): Likewise.
12141 (input_node_opt_summary): Likewise.
12142 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12143 * lto-streamer.h (lto_section_type): Likewise.
12144 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12146 (copy_decl_to_var): Declare.
12147 * tree-inline.c (update_clone_info): Do not remap old_tree.
12148 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12149 statements, walk all extra generated statements and remap their
12151 (redirect_all_calls): Add killed SSA names to a hash set.
12152 (remap_ssa_name): Do not remap killed SSA names.
12153 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12154 half of functionality moved to ipa_param_body_adjustments.
12155 (copy_decl_to_var): Make exported.
12156 (copy_body): Destroy killed_new_ssa_names hash set.
12157 (expand_call_inline): Remap performed splits.
12158 (update_clone_info): Likewise.
12159 (tree_function_versioning): Simplify tree_map processing. Updated to
12160 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12161 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12162 for the new interface.
12163 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12164 (simd_clone_compute_base_data_type): Likewise.
12165 (simd_clone_init_simd_arrays): Adjust for the new interface.
12166 (simd_clone_adjust_argument_types): Likewise.
12167 (struct modify_stmt_info): Likewise.
12168 (ipa_simd_modify_stmt_ops): Likewise.
12169 (ipa_simd_modify_function_body): Likewise.
12170 (simd_clone_adjust): Likewise.
12171 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12172 (type_internals_preclude_sra_p): Make public.
12173 * tree-sra.h: New file.
12174 * ipa-inline-transform.c (save_inline_function_body): Update to
12175 refelct new tree_function_versioning signature.
12176 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12177 ipa_param_adjustments to get current parameter indices.
12178 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12179 (ipcp_update_bits): Likewise.
12180 (ipcp_update_vr): Likewise.
12181 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12182 * ipa-sra.c: New file.
12183 * multiple_target.c (create_target_clone): Update to reflet new type
12184 of create_version_clone_with_body.
12185 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12186 tree_function_versioning.
12187 (modify_function): Update to reflect new type of
12188 tree_function_versioning.
12189 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12190 * passes.def: Remove old IPA-SRA and add new one.
12191 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12192 (make_pass_ipa_sra): Declare.
12193 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12195 * doc/invoke.texi (ipa-sra-max-replacements): New.
12197 2019-09-19 Martin Sebor <msebor@redhat.com>
12199 PR middle-end/91631
12200 * builtins.c (component_size): Correct trailing array computation,
12201 rename to component_ref_size and move...
12202 (compute_objsize): Adjust.
12203 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12204 (builtin_access::strict): Do not consider memmove.
12205 (builtin_access::write_off): New function.
12206 (builtin_memref::builtin_memref): Initialize refsize.
12207 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12209 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12211 (builtin_access::builtin_access): Initialize dstoff to destination
12212 refeence offset here instead of in maybe_diag_overlap. Adjust
12213 referencess even to unrelated objects. Adjust sizrange of bounded
12214 string functions to reflect bound. For strcat, adjust destination
12215 sizrange by that of source.
12216 (builtin_access::strcat_overlap): Adjust offsets and sizes
12217 to reflect the increase in destination sizrange above.
12218 (builtin_access::overlap): Do not set dstoff here but instead
12219 in builtin_access::builtin_access.
12220 (check_bounds_or_overlap): Use builtin_access::write_off.
12221 (maybe_diag_access_bounds): Add argument. Add informational notes.
12222 (dump_builtin_memref, dump_builtin_access): New functions.
12223 * tree.c (component_ref_size): ...to here.
12224 * tree.h (component_ref_size): Declare.
12225 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12226 nul in the size of the source string.
12228 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12231 * doc/cpp.texi: Document support for extended characters in
12233 * doc/cppopts.texi: Likewise.
12235 2019-09-19 Richard Biener <rguenther@suse.de>
12237 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12238 (check_reduction_path): New overload having the path as result.
12239 (vect_is_simple_reduction): From the detected reduction
12240 path build a SLP reduction chain if possible.
12242 2019-09-19 Richard Biener <rguenther@suse.de>
12245 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12246 Force operand to a register if it isn't nonimmediate_operand.
12248 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12250 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12251 * config/arm/iterators.md (optab): Add and, ior, xor entries.
12252 (logical_op): Remove code attribute.
12253 (logical_OP): Likewise.
12255 2019-09-19 Martin Liska <mliska@suse.cz>
12257 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12258 Use proper casting.
12260 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
12262 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
12265 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
12266 for NE comparison of TImode values.
12267 (aarch64_emit_load_exclusive): Add support for TImode.
12268 (aarch64_emit_store_exclusive): Likewise.
12269 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
12270 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
12271 Change iterator from ALLI to ALLI_TI.
12272 (@atomic_compare_and_swap<JUST_TI>): New.
12273 (@atomic_compare_and_swap<JUST_TI>_lse): New.
12274 (aarch64_load_exclusive_pair): New.
12275 (aarch64_store_exclusive_pair): New.
12276 * config/aarch64/iterators.md (JUST_TI): New.
12278 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
12279 strong_zero_p for aarch64_track_speculation; unify some code paths;
12280 use aarch64_gen_compare_reg instead of open-coding.
12282 * config/aarch64/aarch64.opt (-moutline-atomics): New.
12283 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
12284 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
12285 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
12286 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
12287 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
12288 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
12289 (atomic_<atomic_op><ALLI>): Likewise.
12290 (atomic_fetch_<atomic_op><ALLI>): Likewise.
12291 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
12292 * doc/invoke.texi: Document -moutline-atomics.
12294 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
12296 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
12297 trivial predicate for condition branch.
12298 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
12300 (compute_bb_predicates): Update predicate based on post-dominating
12302 (analyze_function_body): Calculate post-dominating information.
12304 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12306 * tree-vectorizer.h (vectorizable_condition): Take an int
12307 reduction index instead of a boolean flag.
12308 * tree-vect-stmts.c (vectorizable_condition): Likewise.
12309 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
12310 reductions if the reduction accumulator is the "then" rather
12311 than the "else" value.
12312 (vect_analyze_stmt): Update call accordingly.
12313 (vect_transform_stmt): Likewise.
12314 * tree-vect-loop.c (vectorizable_reduction): Likewise,
12315 asserting that the index is > 0.
12317 2019-09-19 Martin Liska <mliska@suse.cz>
12319 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
12320 (sort_congruence_classes_by_decl_uid): Likewise.
12321 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
12323 (sem_item_optimizer::merge_classes): Likewise.
12325 2019-09-19 Richard Biener <rguenther@suse.de>
12327 PR tree-optimization/91812
12328 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
12331 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12333 * defaults.h (TARGET_UNIT): New macro.
12334 (target_unit): New type.
12335 * rtl.h (native_encode_rtx, native_decode_rtx)
12336 (native_decode_vector_rtx, subreg_size_lsb): Declare.
12337 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
12338 * rtlanal.c (subreg_lsb_1): Delete.
12339 (subreg_size_lsb): New function.
12340 * simplify-rtx.c: Include rtx-vector-builder.h
12341 (simplify_immed_subreg): Delete.
12342 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
12343 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
12345 (simplify_subreg): Use them.
12346 (test_vector_subregs_modes, test_vector_subregs_repeating)
12347 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
12348 (test_vector_subregs): New functions.
12349 (test_vector_ops): Call test_vector_subregs for integer vector
12350 modes with at least 2 elements.
12352 2019-09-19 Richard Biener <rguenther@suse.de>
12354 * tree-parloops.c (parloops_is_slp_reduction): Do not set
12355 LOOP_VINFO_OPERANDS_SWAPPED.
12356 (parloops_is_simple_reduction): Likewise.
12357 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
12358 initialize operands_swapped.
12359 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
12360 (vect_is_slp_reduction): Do not swap operands.
12361 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
12362 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
12364 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
12367 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
12368 Add avx_partial_xmm_update.
12370 2019-09-18 Jim Wilson <jimw@sifive.com>
12373 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
12374 (riscv_move_integer): Likewise.
12375 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
12376 riscv_move_integer arg.
12377 (riscv_legitimize_move): Likewise.
12378 (riscv_force_temporary): New parameter in_splitter. Don't call
12380 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
12382 (riscv_add_offset): Likewise.
12383 (riscv_split_symbol): New parameter in_splitter. Pass to
12384 riscv_force_temporary.
12385 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
12387 (riscv_move_integer): New parameter in_splitter. New local
12388 can_create_psuedo. Don't call riscv_split_integer or force_reg when
12390 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
12391 riscv_split_symbol, and riscv_force_temporary args.
12392 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
12393 riscv_move_integer arg.
12394 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
12396 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12399 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
12400 hard register store cost to 6.
12402 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12405 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
12406 pseudo register store cost from 3 to 6 to make it the same as
12409 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12412 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
12413 (one_cmpldi2): Likewise.
12414 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
12415 of the constant parts is simple.
12416 * config/arm/iterators.md (LOGICAL): Add new code iterator.
12417 (logical_op): Add new code attribute.
12418 (logical_OP): Likewise.
12419 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
12420 (arm_iordi_operand): Add predicate.
12421 (arm_xordi_operand): Add predicate.
12423 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12425 * config/arm/arm.md (maddsidi4): Remove expander.
12426 (mulsidi3adddi): Remove pattern.
12427 (mulsidi3adddi_v6): Likewise.
12428 (mulsidi3_nov6): Likewise.
12429 (mulsidi3_v6): Likewise.
12430 (umulsidi3): Remove expander.
12431 (umulsidi3_nov6): Remove pattern.
12432 (umulsidi3_v6): Likewise.
12433 (umulsidi3adddi): Likewise.
12434 (umulsidi3adddi_v6): Likewise.
12435 (<Us>mulsidi3): Add combined expander.
12436 (<Us>maddsidi4): Likewise.
12437 (<US>mull): Add combined umull and smull pattern.
12438 (<US>mlal): Likewise.
12439 * config/arm/iterators.md (Us): Add new iterator.
12441 2019-09-18 Richard Biener <rguenther@suse.de>
12443 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
12445 (vectorize_fold_left_reduction): Remove assert.
12446 (vectorizable_reduction): Also expect COND_EXPR non-reduction
12447 operand in position 2. Remove assert.
12449 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12451 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
12452 (smulsi3_highpart_nov6): Remove pattern.
12453 (smulsi3_highpart_v6): Likewise.
12454 (umulsi3_highpart): Likewise.
12455 (umulsi3_highpart_nov6): Likewise.
12456 (umulsi3_highpart_v6): Likewise.
12457 (<US>mull_high): Add new combined multiply pattern.
12459 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12461 * config/arm/arm.md (arm_mulsi3): Remove pattern.
12462 (arm_mulsi3_v6): Likewise.
12463 (mulsi3addsi_v6): Likewise.
12464 (mulsi3subsi): Likewise.
12465 (mul): Add new multiply pattern.
12469 2019-09-18 Richard Biener <rguenther@suse.de>
12471 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
12472 (parloops_valid_reduction_input_p): Copy from
12473 valid_reduction_input_p.
12474 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
12475 (parloops_needs_fold_left_reduction_p): Copy from
12476 needs_fold_left_reduction_p.
12477 (parloops_is_simple_reduction): Copy from
12478 vect_is_simple_reduction.
12479 (parloops_force_simple_reduction): Copy from
12480 vect_force_simple_reduction.
12481 (gather_scalar_reductions): Adjust.
12482 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
12483 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
12485 2019-09-18 Richard Biener <rguenther@suse.de>
12487 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
12488 * tree-vect-loop.c (get_initial_def_for_reduction): Make
12490 (vect_create_epilog_for_reduction): Remove dead code.
12492 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12494 * varasm.c (assemble_real): Generate canonical const_ints.
12496 2019-09-18 Richard Biener <rguenther@suse.de>
12499 * lto-streamer-in.c (input_eh_regions): Move EH init to
12500 lto_materialize_function.
12501 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
12504 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12506 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
12509 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12511 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
12512 of checking specifically for INTEGER_CST.
12514 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12516 * stor-layout.c (compute_record_mode): Operate on poly_uint64
12517 sizes instead of uhwi sizes.
12519 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12521 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
12522 (add_const_value_attribute): Handle CONST_POLY_INT.
12524 2019-09-18 Martin Liska <mliska@suse.cz>
12526 * dbgcnt.def (store_merging): New counter.
12527 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
12528 Use it in store merging.
12530 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12532 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
12534 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12535 * config/arm/arm.c (arm_sched_variable_issue): New function.
12536 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12538 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12540 * config/arm/types.md (no_reservation): New reservation.
12541 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
12543 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
12544 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
12545 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
12546 * config/arm/arm1020e.md (1020alu_op): Likewise.
12547 * config/arm/arm1026ejs.md (alu_op): Likewise.
12548 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12549 * config/arm/arm926ejs.md (9_alu_op): Likewise.
12550 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12551 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
12552 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12553 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12554 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
12555 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
12556 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12557 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12558 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12559 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
12560 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
12561 * config/arm/fa526.md (526_alu_op): Likewise.
12562 * config/arm/fa606te.md (606te_alu_op): Likewise.
12563 * config/arm/fa626te.md (626te_alu_op): Likewise.
12564 * config/arm/fa726te.md (726te_alu_op): Likewise.
12565 * config/arm/xgene1.md (xgene1_nop): Likewise.
12567 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12569 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
12570 "no_insn" to "branch".
12572 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12574 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
12576 2019-09-17 Richard Biener <rguenther@suse.de>
12579 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
12580 was missing generate locations only once.
12582 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
12585 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
12587 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
12588 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
12589 for switch default case using range analysis information.
12591 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
12594 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
12595 mode attributed is supported by FDPIC.
12597 2019-09-17 Richard Biener <rguenther@suse.de>
12599 PR tree-optimization/91790
12600 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
12601 use the correct DR for setting up realignment.
12603 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
12606 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
12607 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
12608 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
12609 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
12611 2019-09-16 Jason Merrill <jason@redhat.com>
12613 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
12615 2019-09-16 Martin Liska <mliska@suse.cz>
12617 * gimple-fold.c (or_comparisons_1): Remove rules moved
12619 * match.pd: ... here.
12621 2019-09-16 Martin Liska <mliska@suse.cz>
12623 * gimple-fold.c (or_comparisons_1): Remove rules
12625 * match.pd: ... here.
12627 2019-09-16 Martin Liska <mliska@suse.cz>
12629 * genmatch.c (dt_node::append_simplify): Do not print
12630 warning when we have duplicate patterns belonging
12631 to a same simplify rule.
12632 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
12633 (maybe_fold_comparisons_from_match_pd): Handle
12634 tcc_comparison as a results.
12635 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
12637 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12638 Qi Feng <ffengqi@linux.ibm.com>
12640 PR middle-end/88784
12641 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
12642 (x > y && x == XXX_MIN): Optimize into 'false'.
12643 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
12644 (x < y && x != XXX_MAX): Optimize into 'x < y'.
12645 (x < y && x == XXX_MAX): Optimize into 'false'.
12646 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
12647 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
12648 (x <= y || x != XXX_MIN): Optimize into 'true'.
12649 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
12650 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
12651 (x >= y || x != XXX_MAX): Optimize into 'true'.
12652 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
12654 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12655 Martin Liska <mliska@suse.cz>
12657 * gimple-fold.c (and_comparisons_1): Add type as first
12659 (and_var_with_comparison): Likewise.
12660 (and_var_with_comparison_1): Likewise.
12661 (or_comparisons_1): Likewise.
12662 (or_var_with_comparison): Likewise.
12663 (or_var_with_comparison_1): Likewise.
12664 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
12665 (maybe_fold_or_comparisons): Likewise.
12666 (maybe_fold_comparisons_from_match_pd): New.
12667 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
12668 (maybe_fold_or_comparisons): Likewise.
12669 * gimple.c (gimple_size): Make it public and add num_ops argument.
12670 (gimple_init): New function.
12671 (gimple_alloc): Call gimple_init.
12672 * gimple.h (gimple_size): New.
12673 (gimple_init): Likewise.
12674 * tree-if-conv.c (fold_or_predicates): Pass type.
12675 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
12676 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
12677 (optimize_vec_cond_expr): Likewise.
12678 (ovce_extract_ops): Return type of conditional expression.
12679 * tree-ssanames.c (init_ssa_name_imm_use): New.
12680 (make_ssa_name_fn): Use init_ssa_name_imm_use.
12681 * tree-ssanames.h (init_ssa_name_imm_use): New.
12683 2019-09-16 Richard Biener <rguenther@suse.de>
12685 PR tree-optimization/91756
12686 PR tree-optimization/87132
12687 * tree-ssa-alias.h (enum translate_flags): New.
12688 (get_continuation_for_phi): Use it instead of simple bool flag.
12689 (walk_non_aliased_vuses): Likewise.
12690 * tree-ssa-alias.c (maybe_skip_until): Adjust.
12691 (get_continuation_for_phi): When looking across backedges only
12692 disallow valueization.
12693 (walk_non_aliased_vuses): Adjust.
12694 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
12697 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
12699 PR middle-end/80791
12700 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
12701 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12702 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12703 * target.def (have_count_reg_decr_p): New hook.
12704 (doloop_cost_for_generic): Likewise.
12705 (doloop_cost_for_address): Likewise.
12706 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
12707 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12708 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12709 * doc/tm.texi: Regenerate.
12710 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
12712 (record_group): Init doloop_p.
12713 (add_candidate_1): Add optional argument doloop, change the handlings
12715 (add_candidate): Likewise.
12716 (generic_predict_doloop_p): Update attribute.
12717 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
12718 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
12719 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
12721 (get_computation_cost): Update for doloop IV cand extra cost.
12722 (determine_group_iv_cost_cond): Update for doloop IV cand.
12723 (determine_iv_cost): Likewise.
12724 (ivopts_estimate_reg_pressure): Likewise.
12725 (may_eliminate_iv): Update handlings for doloop IV cand.
12726 (add_iv_candidate_for_doloop): New function.
12727 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
12728 (iv_ca_set_no_cp): Update for doloop IV cand.
12729 (iv_ca_set_cp): Likewise.
12730 (iv_ca_dump): Dump register cost.
12731 (find_doloop_use): New function.
12732 (analyze_and_mark_doloop_use): Likewise.
12733 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
12735 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
12737 PR middle-end/91708
12738 * cse.c (cse_insn): Do not replace anything with a
12741 2019-09-13 Ian Lance Taylor <iant@golang.org>
12743 * doc/invoke.texi (Optimize Options): Fix typo.
12745 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
12747 PR tree-optimization/89386
12748 * config/i386/sse.md (smulhrs<mode>3): New expander.
12749 (smulhrsv4hi3): Ditto.
12751 2019-09-12 Richard Biener <rguenther@suse.de>
12753 PR tree-optimization/91750
12754 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
12755 in the type of the evolution.
12757 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
12759 PR tree-optimization/89386
12760 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
12761 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
12762 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
12763 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
12764 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
12765 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
12766 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
12767 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
12768 (su, r): Handle the unspecs above.
12769 (bt): New int attribute.
12770 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
12771 * internal-fn.c (first_commutative_argument): Commutativity info for
12773 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
12774 (umulhrs_optab): New optabs.
12775 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
12776 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
12777 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
12779 (vect_vect_recog_func_ptrs): Add it.
12781 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
12783 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
12786 2019-09-11 Nathan Sidwell <nathan@acm.org>
12788 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
12789 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
12791 2019-09-11 Richard Biener <rguenther@suse.de>
12793 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
12794 * lto-wrapper.c (merge_and_complain): Pick up -g.
12795 (append_compiler_options): Likewise.
12796 (run_gcc): Re-instantiate handling -g0 at link-time.
12797 * doc/invoke.texi (flto): Document debug info generation.
12799 2019-09-11 Richard Biener <rguenther@suse.de>
12801 PR tree-optimization/90387
12802 * vr-values.c (vr_values::extract_range_basic): After inlining
12803 simplify non-constant __builtin_constant_p to false.
12805 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
12807 PR rtl-optimization/89795
12808 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
12809 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
12811 2019-09-11 Jakub Jelinek <jakub@redhat.com>
12813 PR tree-optimization/91723
12814 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
12815 instead of pointer equality when checking if argument vectypes are
12818 PR middle-end/91725
12819 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
12820 of get_nonzero_bits, only call it for integral types.
12822 2019-09-11 Richard Biener <rguenther@suse.de>
12825 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
12827 * match.pd: Add flag_unsafe_math_optimizations check
12828 before deciding on the widest type in a binary math operation.
12830 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12832 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
12833 and CALL_REALLY_USED_REGISTERS must be defined, and that
12834 CALL_REALLY_USED_REGISTERS is preferred.
12835 * doc/tm.texi: Regenerate.
12836 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
12837 (call_really_used_regs): Likewise.
12838 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
12839 CALL_REALLY_USED_REGISTERS are defined.
12840 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
12841 initial value if defined.
12842 (initial_call_really_used_regs): Delete.
12843 (saved_call_really_used_regs): Likewise.
12844 (CALL_REALLY_USED_REGNO_P): Likewise.
12845 (init_reg_sets): Remove handling of call_really_used_regs.
12846 (save_register_info, restore_register_info, globalize_reg): Likewise.
12847 (init_reg_sets_1): Likewise. Use call_used_regs instead of
12848 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
12849 outside operand_reg_set.
12850 (fix_register): Don't change call_used_regs if
12851 CALL_REALLY_USED_REGISTERS is defined.
12852 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
12853 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
12854 instead of call_really_used_regs.
12855 (csky_conditional_register_usage): Remove the old handling of
12856 call_used_regs and change the handling of call_really_used_regs
12857 to use call_used_regs instead.
12858 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
12859 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
12860 making a register fixed.
12861 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
12862 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
12863 instead of call_really_used_regs.
12864 (m32r_conditional_register_usage): Don't set call_used_regs when
12865 making a register fixed.
12866 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
12867 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
12868 instead of call_really_used_regs.
12869 (mips_interrupt_extra_call_saved_reg_p): Likewise.
12870 (mips_cfun_call_saved_reg_p): Likewise.
12871 (mips_swap_registers): Remove the old handling of call_used_regs
12872 and change the handling of call_really_used_regs to use call_used_regs
12874 (mips_conditional_register_usage): Likewise.
12875 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
12876 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
12877 instead of call_really_used_regs.
12878 (mn10300_get_live_callee_saved_regs): Likewise.
12879 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
12880 (mn10300_conditional_register_usage): Don't set call_used_regs when
12881 making a register fixed.
12882 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
12883 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
12884 Remove the old handling of call_used_regs and change the handling
12885 of call_really_used_regs to use call_used_regs instead.
12886 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
12887 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
12888 instead of call_really_used_regs.
12889 (s390_register_info_gprtofpr, s390_register_info): Likewise.
12890 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
12891 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
12892 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
12893 (s390_conditional_register_usage): Remove the old handling of
12894 call_used_regs and change the handling of call_really_used_regs
12895 to use call_used_regs instead.
12896 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
12897 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
12898 (sh_fix_range, reg_unused_after): Likewise.
12899 (sh_conditional_register_usage): Remove the old handling of
12900 call_used_regs and change the handling of call_really_used_regs
12901 to use call_used_regs instead.
12902 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
12903 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
12904 call_used_regs when making a register fixed.
12905 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
12906 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
12907 call_used_regs when making a register fixed.
12908 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
12909 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
12910 set call_used_regs when making a register fixed.
12911 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
12912 * config/visium/visium.c (visium_conditional_register_usage): Remove
12913 the old handling of call_used_regs and change the handling of
12914 call_really_used_regs to use call_used_regs instead.
12916 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12918 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
12919 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
12920 * reginfo.c (call_used_regs): New macro.
12922 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12924 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
12926 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
12927 (bpf_expand_epilogue): Likewise.
12928 * config/c6x/c6x.c (c6x_save_reg): Likewise.
12929 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
12930 (ft32_expand_epilogue): Likewise.
12931 * config/i386/i386.c (ix86_save_reg): Likewise.
12932 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
12933 (moxie_expand_epilogue): Likewise.
12934 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
12935 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
12936 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
12938 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12940 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
12941 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
12942 instead of testing call_used_regs directly.
12943 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
12944 (aarch64_components_for_bb): Likewise.
12945 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
12946 * config/arc/arc.c (arc_must_save_register): Likewise.
12947 (arc_epilogue_uses): Likewise.
12948 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
12949 (legitimize_pic_address, callee_saved_reg_p): Likewise.
12950 (arm_compute_save_reg0_reg12_mask): Likewise.
12951 (arm_compute_save_core_reg_mask): Likewise.
12952 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
12953 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
12954 (cmse_nonsecure_entry_clear_before_return): Likewise.
12955 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
12956 (arm_expand_epilogue): Likewise.
12957 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
12958 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
12959 (_reg_unused_after): Likewise.
12960 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
12961 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
12962 (add_to_reg, hwloop_optimize): Likewise.
12963 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
12964 (bpf_expand_epilogue): Likewise.
12965 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
12966 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
12967 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
12968 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
12969 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
12970 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
12971 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
12972 * config/frv/frv.c (frv_stack_info): Likewise.
12973 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
12974 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
12975 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
12976 (move_callee_saved_registers): Likewise.
12977 * config/h8300/h8300.c (byte_reg): Likewise.
12978 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
12979 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
12980 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
12981 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
12982 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
12983 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
12984 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
12985 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
12986 * config/m32c/m32c.c (need_to_save): Likewise.
12987 * config/m68k/m68k.c (m68k_save_reg): Likewise.
12988 * config/mcore/mcore.c (calc_live_regs): Likewise.
12989 * config/microblaze/microblaze.c (microblaze_must_save_register):
12991 * config/mmix/mmix.c (mmix_local_regno): Likewise.
12992 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
12993 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
12994 (mmix_expand_epilogue): Likewise.
12995 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
12996 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
12997 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
12998 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
12999 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13000 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13001 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13002 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13003 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13004 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13005 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13006 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13007 * config/rl78/rl78.c (need_to_save): Likewise.
13008 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13009 (rs6000_stack_info, generate_set_vrsave): Likewise.
13010 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13011 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13012 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13013 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13014 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13015 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13016 (save_local_or_in_reg_p): Likewise.
13017 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13018 (xstormy16_epilogue_uses): Likewise.
13019 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13020 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13021 * config/v850/v850.c (compute_register_save_size): Likewise.
13022 * config/vax/vax.c (vax_expand_prologue): Likewise.
13023 * config/visium/visium.c (visium_save_reg_p): Likewise.
13024 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13025 * cselib.c (cselib_process_insn): Likewise.
13026 * df-scan.c (df_get_entry_block_def_set): Likewise.
13027 * function.c (aggregate_value_p): Likewise.
13028 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13029 * ira-lives.c (process_bb_node_lives): Likewise.
13030 * ira.c (do_reload): Likewise.
13031 * lra-lives.c (process_bb_lives): Likewise.
13032 * lra-remat.c (lra_remat): Likewise.
13033 * lra.c (lra): Likewise.
13034 * postreload.c (reload_combine_recognize_pattern): Likewise.
13035 (reload_cse_move2add): Likewise.
13036 * recog.c (peep2_find_free_register): Likewise.
13037 * regrename.c (check_new_reg_p): Likewise.
13038 * reload.c (find_equiv_reg): Likewise.
13039 * reload1.c (reload, find_reg): Likewise.
13040 * sel-sched.c (init_hard_regs_data): Likewise.
13042 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13044 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13045 regs_invalidated_by_call & ~fixed_reg_set instead of
13046 call_used_or_fixed_regs & ~fixed_reg_set.
13047 * config/sh/sh.c (output_stack_adjust): Likewise.
13049 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13051 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13052 (call_used_reg_set): Delete.
13053 (call_used_or_fixed_regs): New macro.
13054 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13055 of call_used_reg_set.
13056 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13057 instead of call_used_regs.
13058 (save_call_clobbered_regs): Likewise.
13059 * cfgcleanup.c (old_insns_match_p): Likewise.
13060 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13061 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13063 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13064 * config/sh/sh.c (output_stack_adjust): Likewise.
13065 * final.c (collect_fn_hard_reg_usage): Likewise.
13066 * ira-build.c (ira_build): Likewise.
13067 * ira-color.c (calculate_saved_nregs): Likewise.
13068 (allocno_reload_assign, calculate_spill_cost): Likewise.
13069 * ira-conflicts.c (ira_build_conflicts): Likewise.
13070 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13071 * ira-lives.c (process_bb_node_lives): Likewise.
13072 * ira.c (setup_reg_renumber): Likewise.
13073 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13074 * lra-constraints.c (need_for_call_save_p): Likewise.
13075 (need_for_split_p, inherit_in_ebb): Likewise.
13076 * lra-lives.c (process_bb_lives): Likewise.
13077 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13078 * postreload.c (reload_combine): Likewise.
13079 * regrename.c (find_rename_reg): Likewise.
13080 * reload1.c (reload_as_needed): Likewise.
13081 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13082 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13083 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13085 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13087 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13088 (no_caller_save_reg_set): Delete.
13089 * caller-save.c (init_caller_save): Don't initialize it.
13090 * ira-conflicts.c (ira_build_conflicts): Calculate
13091 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13093 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13095 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13096 (target_hard_regs::x_savable_regs): New field.
13097 (call_fixed_reg_set): Delete.
13098 (savable_regs): New macro,
13099 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13100 (init_reg_sets_1): Likewise. Initialize savable_regs.
13101 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13102 for all registers. Set savable_regs instead of call_fixed_reg_set.
13103 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13104 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13105 * config/sh/sh.c (output_stack_adjust): Likewise.
13107 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13109 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13110 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13111 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13113 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13115 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13116 * rtlanal.c (get_call_rtx_from): Likewise.
13117 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13118 than the pattern to get_call_rtx_from.
13119 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13120 an rtx_insn * instead of an rtx.
13121 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13123 2019-09-10 Martin Liska <mliska@suse.cz>
13125 * common.opt: Use newly added WarnRemoved.
13126 * config/aarch64/aarch64.opt: Likewise.
13127 * config/arm/arm.opt: Likewise.
13128 * config/i386/i386.opt: Likewise.
13129 * config/ia64/ia64.opt: Likewise.
13130 * config/rs6000/rs6000.opt: Likewise.
13131 * doc/options.texi: Document WarnRemoved properly.
13132 * dwarf2out.c (gen_producer_string): Handle renamed
13133 OPT_SPECIAL_warn_removed.
13134 * lto-opts.c (lto_write_options): Likewise.
13135 * lto-wrapper.c (merge_and_complain): Likewise.
13136 * opts-common.c (decode_cmdline_option): Likewise.
13137 (prune_options): Likewise.
13138 (read_cmdline_option): Likewise.
13139 (control_warning_option): Likewise.
13140 * opts.c (print_filtered_help): Likewise.
13141 * optc-gen.awk: Parse for WarnRemoved and make usage
13142 of Deprecated an error.
13143 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13145 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13147 * doc/install.texi: Fix syntax for html generation.
13149 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13151 PR middle-end/91680
13152 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13153 the shift type to type.
13155 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13157 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13159 (stack_protect_combined_test_insn): Likewise.
13161 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13162 Mickaël Guêné <mickael.guene@st.com>
13164 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13165 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13166 (load_tp_soft_fdpic): New pattern.
13167 (load_tp_soft): Disable in FDPIC mode.
13169 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13170 Mickaël Guêné <mickael.guene@st.com>
13172 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13173 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13174 (arm_call_tls_get_addr): Add FDPIC support.
13175 (legitimize_tls_address): Likewise.
13176 (arm_emit_tls_decoration): Likewise.
13178 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13179 Mickaël Guêné <mickael.guene@st.com>
13181 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13183 (arm_trampoline_init): Likewise.
13184 (arm_trampoline_adjust_address): Likewise.
13185 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13187 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13188 Mickaël Guêné <mickael.guene@st.com>
13190 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13191 (legitimize_pic_address): Enforce binding rules on function
13192 pointers in FDPIC mode.
13193 (arm_assemble_integer): Likewise.
13195 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13196 Mickaël Guêné <mickael.guene@st.com>
13198 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13199 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13202 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13203 Mickaël Guêné <mickael.guene@st.com>
13205 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13208 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13209 Mickaël Guêné <mickael.guene@st.com>
13211 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13213 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13215 * config/arm/arm.c (arm_option_override): Define pic register to
13217 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13218 have no decl or go through PLT.
13219 (calculate_pic_address_constant): New function.
13220 (legitimize_pic_address): Call calculate_pic_address_constant.
13221 (arm_load_pic_register): Handle TARGET_FDPIC.
13222 (arm_is_segment_info_known): New function.
13223 (arm_pic_static_addr): Add support for FDPIC.
13224 (arm_load_function_descriptor): New function.
13225 (arm_emit_call_insn): Add support for FDPIC.
13226 (arm_assemble_integer): Add support for FDPIC.
13227 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13228 Define. (FDPIC_REGNUM): New define.
13229 * config/arm/arm.md (call): Add support for FDPIC.
13230 (call_value): Likewise.
13231 (restore_pic_register_after_call): New pattern.
13232 (untyped_call): Disable if FDPIC.
13233 (untyped_return): Likewise.
13234 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13236 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13237 Mickaël Guêné <mickael.guene@st.com>
13239 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13240 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13241 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13242 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13243 (CC1_SPEC): Use FDPIC_CC1_SPEC.
13244 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13245 * config/arm/uclinuxfdpiceabi.h: New file.
13247 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13249 * config.gcc: Handle *-*-uclinuxfdpiceabi.
13251 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13252 Mickaël Guêné <mickael.guene@st.com>
13254 * config/arm/arm.opt: Add -mfdpic option.
13255 * doc/invoke.texi: Add documentation for -mfdpic.
13257 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13259 * expmed.c (extract_bit_field): Update function comment
13261 * expr.c (expand_expr_real): Update function comment
13263 (expand_misaligned_mem_ref): New helper function.
13264 (expand_expr_real_2): Use expand_misaligned_mem_ref.
13265 Remove duplicate assignment to "base" at case MEM_REF.
13266 Remove a shadowed variable "unsignedp" at case VCE.
13268 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13270 * regset.h (regs_invalidated_by_call_regset): Delete.
13271 (fixed_reg_set_regset): Likewise.
13272 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
13273 (fixed_reg_set_regset, persistent_obstack): Likewise.
13274 (init_reg_sets_1, globalize_reg): Update accordingly.
13275 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
13276 instead of a bitmap.
13277 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
13278 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
13279 instead of regs_invalidated_by_call_regset.
13280 (df_lr_confluence_n, df_md_confluence_n): Likewise.
13281 * df-scan.c (df_scan_start_dump): Likewise.
13282 * dse.c (copy_fixed_regs): Likewise.
13283 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
13285 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13287 * array-traits.h: New file.
13288 * coretypes.h (array_traits, bitmap_view): New types.
13289 * bitmap.h: Include "array-traits.h"
13290 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13291 (base_bitmap_view, bitmap_view): New classes.
13292 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13293 * hard-reg-set.h: Include array-traits.h.
13294 (array_traits<HARD_REG_SET>): New struct.
13295 * regset.h (IOR_REG_SET_HRS): New macro.
13296 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
13297 rather than iterating over each hard register.
13298 * sched-deps.c (sched_analyze_insn): Likewise.
13299 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
13301 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13303 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
13304 instead of a HARD_REG_SET *.
13305 * ira-build.c (ior_hard_reg_conflicts): Likewise.
13306 (ira_build): Update call accordingly.
13307 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13309 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13311 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
13312 (HARD_REG_SET::operator!=): Likewise.
13313 (hard_reg_set_equal_p): Delete.
13314 * cfgcleanup.c (old_insns_match_p): Use == instead of
13315 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
13316 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
13317 (add_allocno_hard_regs_to_forest): Likewise.
13318 (setup_allocno_available_regs_num): Likewise.
13319 * ira.c (setup_pressure_classes): Likewise.
13320 (setup_allocno_and_important_classes): Likewise.
13321 (setup_reg_class_relations): Likewise.
13322 * lra-lives.c (process_bb_lives): Likewise.
13323 * reg-stack.c (change_stack, convert_regs_1): Likewise.
13325 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13327 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
13328 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13329 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
13330 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
13332 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
13333 * ira.c (setup_reg_renumber): Likewise.
13334 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13335 * regrename.c (regrename_find_superclass): Likewise.
13336 * reload1.c (find_reg): Likewise.
13338 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13340 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
13341 * caller-save.c (setup_save_areas): Use "&~" instead of
13342 AND_COMPL_HARD_REG_SET.
13343 (save_call_clobbered_regs): Likewise.
13344 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13346 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13347 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13348 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
13349 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13350 (mips_conditional_register_usage): Likewise.
13351 * config/sh/sh.c (output_stack_adjust): Likewise.
13352 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
13353 (setup_profitable_hard_regs): Likewise.
13354 (get_conflict_and_start_profitable_regs): Likewise.
13355 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13356 (ira_build_conflicts): Likewise.
13357 * ira-costs.c (restrict_cost_classes): Likewise.
13358 (setup_regno_cost_classes_by_aclass): Likewise.
13359 * ira-lives.c (process_bb_node_lives): Likewise.
13360 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
13361 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
13362 (setup_allocno_and_important_classes, setup_class_translate_array)
13363 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
13365 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13366 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13367 (process_alt_operands, inherit_in_ebb): Likewise.
13368 * lra-eliminations.c (update_reg_eliminate): Likewise.
13369 * lra-lives.c (process_bb_lives): Likewise.
13370 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
13371 * resource.c (find_dead_or_set_registers): Likewise.
13372 (mark_target_live_regs): Likewise.
13373 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
13374 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13375 (implicit_clobber_conflict_p): Likewise.
13376 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13377 (try_shrink_wrapping): Likewise.
13379 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13381 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
13382 (HARD_REG_SET::operator|=): Likewise.
13383 (IOR_HARD_REG_SET): Delete.
13384 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
13386 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13387 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
13388 * final.c (collect_fn_hard_reg_usage): Likewise.
13389 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
13390 * ira-build.c (merge_hard_reg_conflicts): Likewise.
13391 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
13392 (propagate_some_info_from_allocno): Likewise.
13393 (copy_info_to_removed_store_destinations): Likewise.
13394 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
13395 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
13396 (fast_allocation): Likewise.
13397 * ira-conflicts.c (ira_build_conflicts): Likewise.
13398 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
13399 (process_bb_node_lives): Likewise.
13400 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
13401 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13402 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13403 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
13404 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
13405 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
13406 (process_bb_lives): Likewise.
13407 * lra-spills.c (assign_spill_hard_regs): Likewise.
13408 * postreload.c (reload_combine): Likewise.
13409 * reginfo.c (init_reg_sets_1): Likewise.
13410 * regrename.c (merge_overlapping_regs, find_rename_reg)
13411 (merge_chains): Likewise.
13412 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
13413 (find_reload_regs, finish_spills, choose_reload_regs_init)
13414 (emit_reload_insns): Likewise.
13415 * reorg.c (redundant_insn): Likewise.
13416 * resource.c (find_dead_or_set_registers, mark_set_resources)
13417 (mark_target_live_regs): Likewise.
13418 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13419 * sched-deps.c (sched_analyze_insn): Likewise.
13420 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13421 (find_best_reg_for_expr): Likewise.
13422 * shrink-wrap.c (try_shrink_wrapping): Likewise.
13424 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13426 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
13427 (HARD_REG_SET::operator&): Likewise.
13428 (AND_HARD_REG_SET): Delete.
13429 * caller-save.c (setup_save_areas): Use "&" instead of
13431 (save_call_clobbered_regs): Likewise.
13432 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13433 * config/m32c/m32c.c (reduce_class): Likewise.
13434 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13435 * final.c (get_call_reg_set_usage): Likewise.
13436 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
13437 (setup_left_conflict_sizes_p): Likewise.
13438 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13439 (ira_build_conflicts): Likewise.
13440 * ira-costs.c (restrict_cost_classes): Likewise.
13441 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
13442 (setup_reg_class_relations): Likewise.
13443 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
13444 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
13445 * resource.c (find_dead_or_set_registers): Likewise.
13446 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13448 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13450 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
13451 (COMPL_HARD_REG_SET): Delete.
13452 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
13453 of COMPL_HARD_REG_SET.
13454 (try_rename_operands): Likewise.
13455 * config/sh/sh.c (push_regs): Likewise.
13456 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13457 * lra-constraints.c (contains_reg_p): Likewise.
13458 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
13460 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13462 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
13463 * caller-save.c (save_call_clobbered_regs): Use assignment instead
13464 of COPY_HARD_REG_SET.
13465 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
13466 (epiphany_conditional_register_usage): Likewise.
13467 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13468 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13469 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13470 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13471 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
13472 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13473 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
13474 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13475 * config/sh/sh.c (output_stack_adjust): Likewise.
13476 * final.c (collect_fn_hard_reg_usage): Likewise.
13477 (get_call_reg_set_usage): Likewise.
13478 * ira-build.c (ira_create_object, remove_low_level_allocnos)
13479 (ira_flattening): Likewise.
13480 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
13481 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
13482 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
13483 (ira_reassign_pseudos): Likewise.
13484 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13485 (ira_build_conflicts): Likewise.
13486 * ira-costs.c (restrict_cost_classes): Likewise.
13487 (setup_regno_cost_classes_by_aclass): Likewise.
13488 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
13489 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
13490 (setup_stack_reg_pressure_class, setup_pressure_classes)
13491 (setup_allocno_and_important_classes, setup_class_translate_array)
13492 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
13493 (ira_setup_eliminable_regset): Likewise.
13494 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13495 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13496 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13497 (process_alt_operands, inherit_in_ebb): Likewise.
13498 * lra-lives.c (process_bb_lives): Likewise.
13499 * lra-spills.c (assign_spill_hard_regs): Likewise.
13500 * lra.c (lra): Likewise.
13501 * mode-switching.c (new_seginfo): Likewise.
13502 * postreload.c (reload_combine): Likewise.
13503 * reg-stack.c (straighten_stack): Likewise.
13504 * reginfo.c (save_register_info, restore_register_info): Likewise.
13505 (init_reg_sets_1, record_subregs_of_mode): Likewise
13506 * regrename.c (create_new_chain, rename_chains): Likewise.
13507 * reload1.c (order_regs_for_reload, find_reg): Likewise.
13508 (find_reload_regs): Likewise.
13509 * resource.c (find_dead_or_set_registers): Likewise.
13510 (mark_target_live_regs): Likewise.
13511 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13513 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13515 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
13516 (note_pattern_stores): Declare.
13517 (note_stores): Take an rtx_insn *.
13518 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
13519 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
13520 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
13521 (note_stores): Take an rtx_insn * as argument and process
13522 CALL_INSN_FUNCTION_USAGE. Rename old function to...
13523 (note_pattern_stores): ...this.
13524 (find_first_parameter_load): Pass the insn rather than
13525 its pattern to note_stores.
13526 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
13527 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
13528 (insert_one_insn): Likewise.
13529 * combine.c (combine_instructions): Likewise.
13530 (likely_spilled_retval_p): Likewise.
13531 (try_combine): Use note_pattern_stores instead of note_stores.
13532 (record_dead_and_set_regs): Pass the insn rather than its pattern
13534 (reg_dead_at_p): Likewise.
13535 * config/bfin/bfin.c (workaround_speculation): Likewise.
13536 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
13537 rather than an rtx.
13538 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
13539 instead of note_stores.
13540 (frv_optimize_membar_local): Pass the insn rather than its pattern
13542 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13543 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
13544 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
13545 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
13546 (mips_reorg_process_insns): Likewise.
13547 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
13548 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
13550 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
13551 its pattern to note_stores.
13552 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
13554 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
13555 the insn to note_stores.
13556 (prescan_insns_for_dce): Update call accordingly.
13557 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
13559 * df-problems.c (can_move_insns_across): Likewise.
13560 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
13561 * function.c (assign_parm_setup_reg): Likewise.
13562 * gcse-common.c (record_last_mem_set_info_common): Likewise.
13563 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
13564 (single_set_gcse): Likewise.
13565 * ira.c (validate_equiv_mem): Likewise.
13566 (update_equiv_regs): Use note_pattern_stores rather than note_stores
13568 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
13569 pattern to note_stores.
13570 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13571 * loop-iv.c (simplify_using_initial_values): Likewise.
13572 * mode-switching.c (optimize_mode_switching): Likewise.
13573 * optabs.c (emit_libcall_block_1): Likewise.
13574 (expand_atomic_compare_and_swap): Likewise.
13575 * postreload-gcse.c (load_killed_in_block_p): Likewise.
13576 (record_opr_changes): Likewise. Remove explicit handling of
13577 CALL_INSN_FUNCTION_USAGE.
13578 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
13579 * regcprop.c (kill_clobbered_values): Likewise.
13580 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
13582 * regrename.c (build_def_use): Likewise.
13583 * reload1.c (reload): Use note_pattern_stores instead of note_stores
13584 for mark_not_eliminable.
13585 (reload_as_needed): Pass the insn rather than its pattern
13587 (emit_output_reload_insns): Likewise.
13588 * resource.c (mark_target_live_regs): Likewise.
13589 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13590 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
13591 instead of note_stores.
13592 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
13593 its pattern to note_stores.
13594 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
13595 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
13597 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13599 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
13600 than a #define. Use a structure rather than an array as the
13601 fallback definition. Remove special cases for low array sizes.
13602 (const_hard_reg_set): New typedef.
13603 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
13604 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
13605 (hard_reg_set_empty_p): Likewise.
13606 (SET_HARD_REG_BIT): Use a function rather than a macro to
13607 handle the case in which HARD_REG_SET is a structure.
13608 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
13609 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
13610 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
13611 (IOR_COMPL_HARD_REG_SET): Likewise.
13612 (hard_reg_set_iterator::pset): Constify the pointer target.
13613 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
13614 of a "const HARD_REG_SET". Update the handling of non-integer
13616 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
13617 * reload.h: Likewise.
13618 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
13619 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
13620 of a "const HARD_REG_SET".
13621 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
13622 (range_in_hard_reg_set_p): Likewise.
13623 * ira-costs.c (restrict_cost_classes): Likewise.
13624 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
13625 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13626 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
13627 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
13628 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
13629 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
13630 take an unsigned int and open-code the HARD_REG_SET operations.
13632 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13634 * Makefile.in (OBJS): Remove bt-load.o.
13635 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
13636 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13637 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
13638 document that the option no longer does anything.
13639 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13640 * target.def (branch_target_register_class): Delete.
13641 (branch_target_register_callee_saved): Likewise.
13642 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
13643 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
13644 * doc/tm.texi: Regenerate.
13645 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
13646 (make_pass_branch_target_load_optimize2): Likewise.
13647 * passes.def (pass_branch_target_load_optimize1): Likewise.
13648 (pass_branch_target_load_optimize2): Likewise.
13649 * targhooks.h (default_branch_target_register_class): Likewise.
13650 * targhooks.c (default_branch_target_register_class): Likewise.
13651 * opt-suggestions.c (test_completion_valid_options): Remove
13652 -fbtr-bb-exclusive from the list of test options.
13653 * bt-load.c: Remove.
13655 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13657 * match.pd: Add flag_unsafe_math_optimizations check
13658 before deciding on the widest type in a binary math operation.
13660 2019-09-09 Martin Liska <mliska@suse.cz>
13662 * config/i386/i386.opt: Update comment of removed
13663 options that are preserved only for backward
13666 2019-09-09 Jakub Jelinek <jakub@redhat.com>
13669 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
13670 instead of __v16qs.
13673 * config/i386/avxintrin.h (__v32qs): New typedef.
13674 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
13675 instead of __v32qi.
13677 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13679 * doc/invoke.texi (Option Summary): Cover eBPF.
13680 (eBPF Options): New section.
13681 * doc/extend.texi (BPF Built-in Functions): Likewise.
13682 (BPF Kernel Helpers): Likewise.
13684 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13686 * config.gcc: Support for bpf-*-* targets.
13687 * common/config/bpf/bpf-common.c: New file.
13688 * config/bpf/t-bpf: Likewise.
13689 * config/bpf/predicates.md: Likewise.
13690 * config/bpf/constraints.md: Likewise.
13691 * config/bpf/bpf.opt: Likewise.
13692 * config/bpf/bpf.md: Likewise.
13693 * config/bpf/bpf.h: Likewise.
13694 * config/bpf/bpf.c: Likewise.
13695 * config/bpf/bpf-protos.h: Likewise.
13696 * config/bpf/bpf-opts.h: Likewise.
13697 * config/bpf/bpf-helpers.h: Likewise.
13698 * config/bpf/bpf-helpers.def: Likewise.
13700 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13702 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13705 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13707 * opt-functions.awk (integer_range_info): Make sure values are in
13708 numeric context before operating with them.
13710 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
13712 * genemit.c (gen_split): Print the filename and line number where the
13713 splitter (or peephole2) was defined, to the dump file.
13715 2019-09-07 Jakub Jelinek <jakub@redhat.com>
13717 PR tree-optimization/91665
13718 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
13719 incompatible with the type of PHI result.
13721 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
13724 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
13725 gen_unaligned_storedi for 4-byte aligned addresses.
13727 2019-09-06 Jim Wilson <jimw@sifive.com>
13729 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
13732 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13734 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
13736 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13738 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
13739 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
13741 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
13744 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
13745 cost of SSE->integer and integer->SSE moves from 2 to 6.
13746 (core_cost): Ditto.
13748 2019-09-06 Jakub Jelinek <jakub@redhat.com>
13750 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
13751 before testing TYPE_TRANSPARENT_AGGR.
13752 * calls.c (initialize_argument_information, load_register_parameters):
13755 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
13757 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
13759 (cmp_ior): Likewise.
13761 2019-09-06 Martin Liska <mliska@suse.cz>
13763 * doc/match-and-simplify.texi: Separate tuples with ;.
13765 2019-09-06 Martin Liska <mliska@suse.cz>
13768 * Makefile.in: Remove tlink.o.
13769 * collect2.c (do_link): New function isolated
13772 * collect2.h (do_tlink): Remove declaration of do_tlink.
13773 * doc/extend.texi: Remove documentation of -frepo.
13774 * doc/invoke.texi: Likewise.
13775 * doc/sourcebuild.texi: Remove cleanup-repo-files.
13778 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13779 Jim Wilson <jimw@sifive.com>
13782 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
13783 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
13784 paradoxical_subreg_p (operands[0]).
13785 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
13786 use as intermediate value.
13788 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
13790 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
13791 (sync_compare_and_swap<mode>_insn): Likewise.
13793 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
13795 PR middle-end/91615
13796 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
13797 without movmisalign optab.
13799 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13801 PR middle-end/91001
13802 PR middle-end/91105
13803 PR middle-end/91106
13804 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
13805 types, use type of their first field instead of type of
13806 args[i].tree_value.
13808 2019-09-05 Richard Biener <rguenther@suse.de>
13810 PR rtl-optimization/91656
13811 * postreload-gcse.c (record_last_mem_set_info): Revert addition
13814 2019-09-05 Richard Biener <rguenther@suse.de>
13816 PR middle-end/90501
13817 * tree-inline.c (declare_return_variable): Mark the return
13818 slot as addressable after building an address of it.
13820 2019-09-05 Arnaud Charlet <charlet@adacore.com>
13822 * doc/install.texi: Update and clarify requirements to build GNAT.
13824 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
13826 PR middle-end/91577
13827 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
13828 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
13829 call to be in memory.
13830 (pass_expand::execute): Call discover_nonconstant_array_refs before
13831 setting currently_expanding_to_rtl.
13833 2019-09-04 Caroline Tice <cmtice@google.com>
13835 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
13836 specified together.
13838 2019-09-04 Marek Polacek <polacek@redhat.com>
13840 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
13842 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
13845 * config/i386/i386.c (inline_secondary_memory_needed): Return true
13846 for QI and HImode moves between SSE and general registers.
13848 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13851 * doc/invoke.texi: Document -Wenum-conversion.
13853 2019-09-04 Richard Biener <rguenther@suse.de>
13855 PR rtl-optimization/36262
13856 * postreload-gcse.c: Include intl.h and gcse.h.
13857 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
13858 to avoid linear list walk.
13859 (record_last_mem_set_info): Gate off if not computing transparentness.
13860 (get_bb_avail_insn): If transparentness isn't computed give up
13862 (gcse_after_reload_main): Skip compute_transp and extended PRE
13863 if gcse_or_cprop_is_too_expensive says so.
13865 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13867 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
13869 (msp430_select_section): Handle decls with the "noinit" attribute with
13870 default_elf_select_section.
13871 Handle SECCAT_RODATA_MERGE_* section types with
13872 default_elf_select_section.
13873 Add comments about handling of unsupported section types.
13874 (msp430_section_type_flags): Remove handling of the noinit section.
13876 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13878 * config/msp430/msp430.c (msp430_attr): Remove warnings about
13879 conflicting msp430-specific attributes.
13880 (msp430_section_attr): Likewise.
13881 Add warnings about conflicts with generic "noinit" and "section"
13883 Fix grammar in -mlarge error message.
13884 (msp430_data_attr): Rename to msp430_persist_attr.
13885 Add warnings about conflicts with generic "noinit" and "section"
13887 Add warning for when variable is not initialized.
13888 Chain conditionals which prevent the attribute being added.
13889 (ATTR_EXCL): New helper.
13890 (attr_reent_exclusions): New exclusion table.
13891 (attr_naked_exclusions): Likewise.
13892 (attr_crit_exclusions): Likewise.
13893 (attr_lower_exclusions): Likewise.
13894 (attr_upper_exclusions): Likewise.
13895 (attr_either_exclusions): Likewise.
13896 (attr_persist_exclusions): Likewise.
13897 (msp430_attribute_table): Update with exclusion rules.
13898 (msp430_output_aligned_decl_common): Don't output common symbol if decl
13901 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13903 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
13904 (msp430_handle_generic_attribute): New function.
13905 * doc/tm.texi: Regenerate.
13906 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
13907 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
13908 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
13909 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
13911 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
13913 PR tree-optimization/91504
13914 * match.pd: Add ((~a & b) ^a) --> (a | b).
13916 2019-09-03 Jakub Jelinek <jakub@redhat.com>
13919 * config/i386/i386-expand.c (split_double_mode): If there is more than
13920 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
13921 already split matching MEM operand instead of calling adjust_address
13924 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
13926 * config.gcc: Obsolete spu target. Remove references to spu.
13927 * configure.ac: Remove references to spu.
13928 * configure: Regenerate.
13929 * config/spu/: Remove directory.
13930 * common/config/spu/: Remove directory.
13932 * doc/extend.texi: Remove references to spu.
13933 * doc/invoke.texi: Likewise.
13934 * doc/md.texi: Likewise.
13935 * doc/sourcebuild.texi: Likewise.
13937 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13939 PR middle-end/91603
13940 PR middle-end/91612
13941 PR middle-end/91613
13942 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
13943 and SSA_NAME referring to CONSTANT_P correctly.
13945 2019-09-03 Richard Biener <rguenther@suse.de>
13947 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
13948 (vn_nary_op_insert): Likewise.
13949 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
13950 (vn_nary_op_lookup): Likewise.
13951 (vn_nary_op_insert): Likewise.
13953 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
13955 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
13956 (*op0, 1) instead of XEXP (*op1, 0).
13958 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13960 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
13961 (aarch64_fjcvtzs): New define_insn.
13962 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
13963 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
13965 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
13966 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
13967 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
13968 __ARM_FEATURE_JCVT where appropriate.
13969 * config/aarch64/arm_acle.h (__jcvt): Define.
13971 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13973 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
13974 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
13975 (aarch64_<frintnzs_op><mode>): New define_insn.
13976 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
13977 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
13978 __ARM_FEATURE_FRINT when appropriate.
13979 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
13980 frint32x, frint64z, frint64x.
13981 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
13982 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
13983 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
13984 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
13985 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
13986 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
13987 * config/aarch64/iterators.md (VSFDF): Define.
13988 (FRINTNZX): Likewise.
13989 (frintnzs_op): Likewise.
13991 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
13993 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
13994 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
13996 * config/aarch64/aarch64-tune.md: Regenerated.
13997 * doc/invoke.texi: Document the new processors.
13999 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14001 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14005 (sve2-sm4): Likewise.
14006 (sveaes): Likewise.
14007 (svesha3): Likewise.
14008 (svebitperm): Likewise.
14010 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14011 Richard Biener <rguenther@suse.de>
14013 PR tree-optimization/91597
14014 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14015 BIT_AND_EXPR optimization for pointers, even if both operand
14016 ranges don't include NULL, the result can be NULL.
14018 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14020 PR middle-end/91605
14021 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14022 (non_mem_decl_p): ...this.
14023 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14024 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14025 unconditionally as before.
14027 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14030 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14031 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14032 * tree.def (LTGT_EXPR): Likewise.
14033 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14035 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14038 * fold-const.c (range_check_type): For enumeral and boolean
14039 type, pass 1 to type_for_size langhook instead of
14040 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14041 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14042 (build_range_check): Don't call unsigned_type_for for pointer types.
14043 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14044 range_check_type result.
14046 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14048 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14049 (replace_ref): Do not replace a chain of only two candidates which are
14050 valid memory references.
14052 2019-09-02 Martin Liska <mliska@suse.cz>
14054 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14055 Bail out when we'll end up with the same number of clusters as
14057 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14058 (jump_table_cluster::can_be_handled): Remove the guard
14059 as it's already handled in ::is_enabled. Allocate output
14060 after early bail out.
14062 2019-09-02 Martin Liska <mliska@suse.cz>
14064 PR gcov-profile/91601
14065 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14066 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14067 also negative edges.
14068 (circuit): Handle also negative edges as they can happen
14069 in some situations.
14071 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14074 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14075 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14076 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14078 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14080 PR middle-end/91623
14081 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14082 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14083 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14087 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14088 GIMPLE_ASM TREE_LIST operands.
14090 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14092 * doc/generic.texi (Unary and Binary Expressions): Mark up
14093 an instance of TYPE_MIN.
14095 2019-08-31 Stafford Horne <shorne@gmail.com>
14097 * config/or1k/constraints.md (t): New constraint.
14098 * config/or1k/or1k.h (GOT_REGS): New register class.
14099 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14101 2019-08-30 Jim Wilson <jimw@sifive.com>
14103 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14104 and -fpic and -mplt then disable -msave-restore and warn.
14106 2019-08-30 Martin Sebor <msebor@redhat.com>
14108 PR middle-end/91599
14109 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14110 the statement doesn't have one.
14111 * gimple-pretty-print.c (percent_G_format): Same.
14113 PR middle-end/91584
14114 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14115 before using them to validate MEM_REF offset.
14117 2019-08-30 Marek Polacek <polacek@redhat.com>
14119 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14121 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14123 * config/arm/arm.md (unaligned_loaddi,
14124 unaligned_storedi): New unspec insn patterns.
14125 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14126 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14127 and unaligned_storedi for 4-byte aligned memory.
14128 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14129 4-byte aligned memory.
14131 2019-08-30 Martin Jambor <mjambor@suse.cz>
14133 tree-optimization/91579
14134 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14135 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14137 (arg_needs_copy_p): Removed.
14138 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14140 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14142 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14144 * config/i386/i386-features.c
14145 (general_scalar_chain::compute_convert_gain):
14146 Correct cost for double-word shifts.
14147 (general_scalar_to_vector_candidate_p): Reject count operands
14148 greater or equal to mode bitsize.
14150 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14152 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14153 for moves between SSE and non-general registers and between
14154 mask and non-general registers.
14155 (ix86_register_move_cost): Remove stalled comment.
14157 2019-08-29 Richard Biener <rguenther@suse.de>
14159 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14160 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14162 2019-08-29 Richard Biener <rguenther@suse.de>
14165 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14166 Do not emit scalar copies for debug-insns, instead replace
14167 their uses with the reg copy used in the chain or reset them
14168 if there is a reaching definition outside of the chain as well.
14170 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14173 * config/i386/i386-expand.c (expand_vec_perm_movs,
14174 expand_vec_perm_blend, expand_vec_perm_vpermil,
14175 expand_vec_perm_pshufb, expand_vec_perm_1,
14176 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14177 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14178 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14179 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14180 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14181 comments - replace ix86_expand_vec_perm_builtin_1 with
14182 ix86_expand_vec_perm_const_1.
14183 (expand_vec_perm2_vperm2f128_vblend): New function.
14184 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14185 expand_vec_perm2_vperm2f128_vblend as last resort.
14186 (canonicalize_perm): Formatting fix.
14188 PR tree-optimization/91351
14189 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14191 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14192 range_check_type returns NULL.
14193 * tree-switch-conversion.c (switch_conversion::build_one_array):
14194 Use range_check_type instead of unsigned_type_for, don't perform
14195 linear opt if it returns NULL.
14196 (bit_test_cluster::find_bit_tests): Formatting fix.
14197 (bit_test_cluster::emit): Use range_check_type instead of
14199 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14202 2019-08-29 Richard Biener <rguenther@suse.de>
14204 PR tree-optimization/91568
14205 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14206 (vect_update_max_nunits): Add overload for poly_uint64.
14207 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14208 (vect_build_slp_tree): Record max_nunits into the subtree
14209 and merge it upwards.
14210 (vect_print_slp_tree): Print max_nunits.
14212 2019-08-28 Marek Polacek <polacek@redhat.com>
14214 Implement P1152R4: Deprecating some uses of volatile.
14216 * doc/invoke.texi: Document -Wvolatile.
14218 2019-08-28 Marek Polacek <polacek@redhat.com>
14220 PR c++/91360 - Implement C++20 P1143R2: constinit.
14221 * doc/invoke.texi: Document -Wc++20-compat.
14223 2019-08-28 Martin Sebor <msebor@redhat.com>
14225 PR tree-optimization/91457
14226 * builtins.c (component_size): New function.
14227 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14228 * builtins.h (compute_objsize): Add argument.
14229 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14230 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14231 (vrp_prop::check_mem_ref): Same.
14232 (vrp_prop::search_for_addr_array): Set no-warning bit.
14233 (check_array_bounds): Same.
14235 2019-08-28 Martin Sebor <msebor@redhat.com>
14238 * opts-common.c (option_enabled): Correct checking for language
14241 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
14243 * config/i386/i386.c (ix86_register_move_cost): Do not
14244 limit the cost of moves to/from XMM register to minimum 8.
14246 2019-08-28 Martin Jambor <mjambor@suse.cz>
14249 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14250 checking assert a normal assert to test it really is redundant.
14251 * ipa-prop.c (compute_complex_assign_jump_func): Removed
14253 (update_jump_functions_after_inlining): Removed combining unary
14254 arithmetic operations with an ancestor jump function.
14255 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14258 2019-08-28 Richard Biener <rguenther@suse.de>
14260 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
14261 add the MD problem.
14263 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14264 Richard Biener <rguenther@suse.de>
14266 * expr.c (expand_assignment): Handle misaligned DECLs.
14267 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
14268 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
14270 (assign_parm_setup_stack): Allocate properly aligned stack slots.
14271 * varasm.c (build_constant_desc): Align constants of misaligned types.
14272 * config/arm/predicates.md (aligned_operand): New predicate.
14273 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
14274 aligned_operand to check restrictions on memory addresses.
14275 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
14276 * config/arm/vec-common.md (mov<VALL>): Likewise.
14278 2019-08-28 Jakub Jelinek <jakub@redhat.com>
14281 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
14282 V_128 iterator instead of VI_128.
14284 2019-08-28 Martin Liska <mliska@suse.cz>
14286 PR tree-optimization/90970
14287 * builtins.c (check_access): Remove assignment to maxread
14288 as it hasn't been used since when it was introduced in r255755.
14290 2019-08-27 Martin Sebor <msebor@redhat.com>
14292 PR tree-optimization/91567
14293 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
14294 of unknown strings.
14295 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
14296 to PTRDIFF_MAX - 2.
14298 2019-08-27 Jeff Law <law@redhat.com>
14300 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
14301 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
14303 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
14306 * config/i386/i386-features.c (convert_scalars_to_vector):
14307 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
14308 crtl->stack_realign_processed. Update crtl->drap_reg by calling
14309 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
14310 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
14312 2019-08-27 Richard Biener <rguenther@suse.de>
14314 * config/i386/i386-features.h
14315 (general_scalar_chain::~general_scalar_chain): Add.
14316 (general_scalar_chain::insns_conv): New bitmap.
14317 (general_scalar_chain::n_sse_to_integer): New.
14318 (general_scalar_chain::n_integer_to_sse): Likewise.
14319 (general_scalar_chain::make_vector_copies): Adjust signature.
14320 * config/i386/i386-features.c
14321 (general_scalar_chain::general_scalar_chain): Outline,
14322 initialize new members.
14323 (general_scalar_chain::~general_scalar_chain): New.
14324 (general_scalar_chain::mark_dual_mode_def): Record insns
14325 we need to insert conversions at and count them.
14326 (general_scalar_chain::compute_convert_gain): Account
14327 for conversion instructions at chain boundary.
14328 (general_scalar_chain::make_vector_copies): Generate a single
14329 copy for a def by a specific insn.
14330 (general_scalar_chain::convert_registers): First populate
14331 defs_map, then make copies at out-of chain insns.
14333 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
14335 * config/arm/arm.md (stack_protect_set_insn): Add security-related
14337 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
14339 2019-08-27 Martin Liska <mliska@suse.cz>
14341 * cgraph.c (cgraph_node::remove): Remove dead assignment before
14343 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
14344 Enclose in anonymous namespace.
14345 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
14346 hard_register initialization in braces.
14347 * tree-vrp.h (value_range_base::supports_type_p): Return false
14348 for function with boolean return type.
14350 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
14352 * config/i386/i386.c (emit_i387_cw_initialization)
14353 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
14355 2019-08-26 Martin Sebor <msebor@redhat.com>
14358 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
14359 (sprintf_dom_walker): Remove class.
14360 (get_int_range): Make argument const.
14361 (directive::fmtfunc, directive::set_precision): Same.
14362 (format_none): Same.
14363 (build_intmax_type_nodes): Same.
14364 (adjust_range_for_overflow): Same.
14365 (format_floating): Same.
14366 (format_character): Same.
14367 (format_string): Same.
14368 (format_plain): Same.
14369 (get_int_range): Cast away constness.
14370 (format_integer): Same.
14371 (get_string_length): Call get_range_strlen_dynamic. Handle
14372 null lendata.maxbound.
14373 (should_warn_p): Adjust argument scope qualifier.
14374 (maybe_warn): Same.
14375 (format_directive): Same.
14376 (parse_directive): Same.
14377 (is_call_safe): Same.
14378 (try_substitute_return_value): Same.
14379 (sprintf_dom_walker::handle_printf_call): Rename...
14380 (handle_printf_call): ...to this. Initialize target to host charmap
14381 here instead of in pass_sprintf_length::execute.
14382 (struct call_info): Make global.
14383 (sprintf_dom_walker::compute_format_length): Make global.
14384 (sprintf_dom_walker::handle_gimple_call): Same.
14385 * passes.def (pass_sprintf_length): Replace with pass_strlen.
14386 * print-rtl.c (print_pattern): Reduce the number of spaces to
14387 avoid -Wformat-truncation.
14388 * tree-pass.h (make_pass_warn_printf): New function.
14389 * tree-ssa-strlen.c (strlen_optimize): New variable.
14390 (get_string_length): Add comments.
14391 (get_range_strlen_dynamic): New function.
14392 (check_and_optimize_call): New function.
14393 (handle_integral_assign): New function.
14394 (strlen_check_and_optimize_stmt): Factor code out into
14395 strlen_check_and_optimize_call and handle_integral_assign.
14396 (strlen_dom_walker::evrp): New member.
14397 (strlen_dom_walker::before_dom_children): Use evrp member.
14398 (strlen_dom_walker::after_dom_children): Use evrp member.
14399 (printf_strlen_execute): New function.
14400 (pass_strlen::gate): Update to handle printf calls.
14401 (dump_strlen_info): New function.
14402 (pass_data_warn_printf): New variable.
14403 (pass_warn_printf): New class.
14404 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
14405 (handle_printf_call): Same.
14406 * tree-vrp.c (value_range_base::type): Adjust assertion.
14407 * vr-values.c (vr_values::update_value_range): Use type of the first
14408 argument rather than the second.
14410 2019-08-26 Richard Biener <rguenther@suse.de>
14412 * config/i386/i386-features.c (general_remove_non_convertible_regs):
14414 (convert_scalars_to_vector): Do not call it.
14416 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14417 Uros Bizjak <ubizjak@gmail.com>
14419 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
14420 CASE_MATHFN_FLOATN for roundeven.
14421 * config/i386/i386.c (ix86_i387_mode_needed): Add case
14423 (ix86_mode_needed): Likewise.
14424 (ix86_mode_after): Likewise.
14425 (ix86_mode_entry): Likewise.
14426 (ix86_mode_exit): Likewise.
14427 (ix86_emit_mode_set): Likewise.
14428 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
14429 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
14430 (ix86_entity): Add I387_ROUNDEVEN.
14431 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
14432 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
14433 (define_int_iterator): Likewise.
14434 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
14435 (define_constant): Define ROUND_ROUNDEVEN mode.
14436 (define_attr): Add roundeven mode for i387_cw.
14437 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
14438 * internal-fn.def (ROUNDEVEN): New builtin function.
14439 * optabs.def (roundeven_optab): New optab.
14441 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14443 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
14445 * builtins.def: Added function definitions for roundeven function
14447 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
14448 function call. Adjust condition for floor, ceil, trunc and round.
14449 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
14450 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
14451 (integer_valued_real_call_p): Added case for roundeven function.
14452 * real.c (is_even): New function. Returns true if real number is even,
14453 otherwise returns false.
14454 (is_halfway_below): New function. Returns true if real number is
14455 halfway between two integers, else return false.
14456 (real_roundeven): New function. Round real number to nearest integer,
14457 rounding halfway cases towards even.
14458 * real.h (real_value): Added descriptive comments. Added function
14459 declaration for roundeven function.
14460 * doc/extend.texi (Other Builtins): List roundeven variants among
14461 functions which can be handled as builtins.
14463 2019-08-26 Richard Biener <rguenther@suse.de>
14467 * config/i386/i386-features.h (general_scalar_chain::defs_map):
14469 (general_scalar_chain::replace_with_subreg): Remove.
14470 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14471 (general_scalar_chain::convert_reg): Adjust signature.
14472 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
14473 iterate over all defs of a reg.
14474 (general_scalar_chain::replace_with_subreg): Remove.
14475 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14476 (general_scalar_chain::make_vector_copies): Populate defs_map,
14477 place copy only after defs that are used as vectors in the chain.
14478 (general_scalar_chain::convert_reg): Emit a copy for a specific
14479 def in a specific instruction.
14480 (general_scalar_chain::convert_op): All reg uses are converted here.
14481 (general_scalar_chain::convert_insn): Emit copies for scalar
14482 uses of defs here. Replace uses with the copies we created.
14483 Replace and convert the def. Adjust REG_DEAD notes, remove
14484 REG_EQUIV/EQUAL notes.
14485 (general_scalar_chain::convert_registers): Only handle copies
14486 into the chain here.
14488 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14490 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
14492 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14494 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
14495 Add nop_convert case.
14496 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
14497 Fold all statements if requested.
14498 * tree-ssa-propagate.h (class substitute_and_fold_engine):
14499 Allow to fold all statements.
14500 * tree-vrp.c (class vrp_folder):
14501 Let substitute_and_fold_engine fold all statements.
14503 2019-08-26 Richard Biener <rguenther@suse.de>
14505 PR tree-optimization/91526
14506 * passes.def: Note that after late FRE we do TODO_update_address_taken.
14507 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
14508 TODO_update_address_taken.
14510 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
14512 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
14515 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
14517 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
14518 machine mode for unspec_volatile operand.
14520 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
14522 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
14523 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
14524 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
14525 (prefer_neon_for_64bits): Remove.
14526 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
14527 (tune_params): Remove PREF_NEON_64_FALSE uses.
14528 (arm_option_override): Remove prefer_neon selection code.
14529 (arm_print_tune_info): Remove prefer_neon_for_64bits.
14530 * config/arm/arm-protos.h (tune_params): Remove
14531 prefer_neon_for_64bits.
14532 (prefer_neon_for_64bits): Remove.
14534 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
14537 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
14538 and issue any diagnostics needed before collecting the pre-PCH
14541 2019-08-23 Jakub Jelinek <jakub@redhat.com>
14543 PR middle-end/91283
14544 * common.opt (fexcess-precision=): Add Optimization flag. Use
14545 flag_excess_precision variable instead of
14546 flag_excess_precision_cmdline.
14547 * flags.h (class target_flag_state): Remove x_flag_excess_precision
14549 (flag_excess_precision): Don't define.
14550 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
14551 flag_excess_precision_cmdline. Remove comment.
14552 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
14553 and x_flag_excess_precision instead of
14554 frontend_set_flag_excess_precision_cmdline and
14555 x_flag_excess_precision_cmdline.
14556 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
14557 x_flag_excess_precision_cmdline.
14558 * toplev.c (init_excess_precision): Remove.
14559 (lang_dependent_init_target): Don't call it.
14561 2019-08-23 Martin Liska <mliska@suse.cz>
14563 * lto-wrapper.c (run_gcc): When setting jobserver
14564 set also parallel to 1. This was done so before r273908.
14566 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
14568 * config/arm/arm-cpus.in (cortex-m35p): New entry.
14569 (cortex-a76ae): Likewise.
14570 (cortex-a77): Likewise
14571 * config/arm/arm-tables.opt: Regenerate.
14572 * config/arm/arm-tune.md: Likewise.
14573 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
14574 cortex-a77 CPU options.
14576 2019-08-23 Martin Liska <mliska@suse.cz>
14578 * profile.c (instrument_values): Do not set
14579 0 as last argument.
14580 * tree-profile.c (gimple_gen_interval_profiler): Remove
14582 (gimple_gen_pow2_profiler): Likewise.
14583 (gimple_gen_topn_values_profiler): Likewise.
14584 (gimple_gen_ic_profiler): Likewise.
14585 (gimple_gen_time_profiler): Likewise.
14586 (gimple_gen_average_profiler): Likewise.
14587 (gimple_gen_ior_profiler): Likewise.
14588 * value-prof.c (dump_histogram_value): Use default
14589 in switch statement instead of HIST_TYPE_MAX.
14590 (stream_in_histogram_value): Likewise.
14591 (gimple_duplicate_stmt_histograms): Do not
14592 use NULL for implicitly set arguments.
14593 (gimple_divmod_values_to_profile): Do not use
14594 reserve+quick_push.
14595 (gimple_indirect_call_to_profile): Likewise.
14596 (gimple_find_values_to_profile): Use implicit
14597 function call arguments.
14598 * value-prof.h (gimple_alloc_histogram_value):
14599 Set default values.
14600 (gimple_gen_interval_profiler): Remove last argument.
14601 (gimple_gen_pow2_profiler): Likewise.
14602 (gimple_gen_topn_values_profiler): Likewise.
14603 (gimple_gen_ic_profiler): Likewise.
14604 (gimple_gen_time_profiler): Likewise.
14605 (gimple_gen_average_profiler): Likewise.
14606 (gimple_gen_ior_profiler): Likewise.
14608 2019-08-22 Martin Sebor <msebor@redhat.com>
14610 PR middle-end/91490
14611 * builtins.c (c_strlen): Rename argument and introduce new local.
14612 Set no-warning bit on original argument.
14613 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
14614 Fold empty and zero constructors into empty strings.
14615 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
14616 for missing initializers.
14617 * tree.c (build_string_literal): Handle optional argument.
14618 * tree.h (build_string_literal): Add defaulted argument.
14619 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
14620 no-warning bit on original expression.
14622 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14625 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14626 and UNSPEC_DARN_RAW.
14627 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
14629 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
14630 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
14631 (darn): Use an unspec_volatile, and UNSPECV_DARN.
14633 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14635 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14636 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
14637 * config/rs6000/rs6000.md (unspec): ... here.
14638 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
14639 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14640 cmpeqb, *cmpeqb_internal): Delete, move to...
14641 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
14642 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14643 cmpeqb, *cmpeqb_internal): ... here.
14645 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14647 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
14648 intrinsics if __ARM_FP.
14649 Use __ARM_FEATURE_CRC32 ifdef guard.
14651 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14653 * config/arm/arm.md (neon_for_64bits): Remove.
14654 (avoid_neon_for_64bits): Remove.
14655 (arm_adddi3): Always split early.
14656 (arm_subdi3): Always split early.
14657 (negdi2): Remove Neon expansion.
14658 (split zero_extend): Split before reload.
14659 (split sign_extend): Split before reload.
14661 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14663 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
14664 (qhs_extenddi_cstr): Likewise.
14665 * config/arm/arm.md (ashldi3): Always expand early.
14666 (ashlsi3): Likewise.
14667 (ashrsi3): Likewise.
14668 (zero_extend<mode>di2): Remove Neon variants.
14669 (extend<mode>di2): Likewise.
14670 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
14671 (signed_shift_di3_neon): Likewise.
14672 (unsigned_shift_di3_neon): Likewise.
14673 (ashrdi3_neon_imm_noclobber): Likewise.
14674 (lshrdi3_neon_imm_noclobber): Likewise.
14675 (<shift>di3_neon): Likewise.
14676 (split extend): Remove DI extend split patterns.
14678 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14680 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
14681 (split not): Add DImode not splitter.
14682 (anddi3): Remove pattern.
14683 (anddi3_insn): Likewise.
14684 (anddi_zesidi_di): Likewise.
14685 (anddi_sesdi_di): Likewise.
14686 (anddi_notdi_di): Likewise.
14687 (anddi_notzesidi_di): Likewise.
14688 (anddi_notsesidi_di): Likewise.
14689 (iordi3): Likewise.
14690 (iordi3_insn): Likewise.
14691 (iordi_zesidi_di): Likewise.
14692 (iordi_sesidi_di): Likewise.
14693 (xordi3): Likewise.
14694 (xordi3_insn): Likewise.
14695 (xordi_sesidi_di): Likewise.
14696 (xordi_zesidi_di): Likewise.
14697 (one_cmpldi2): Likewise.
14698 (one_cmpldi2_insn): Likewise.
14699 * config/arm/constraints.md: Remove De, Df, Dg constraints.
14700 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
14702 (iwmmxt_xordi3): Likewise.
14703 (iwmmxt_anddi3): Likewise.
14704 * config/arm/neon.md (orndi3_neon): Remove pattern.
14705 (anddi_notdi_di): Likewise.
14706 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
14707 (arm_iordi_operand_neon): Likewise.
14708 (arm_xordi_operand_neon): Likewise.
14709 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
14710 (iordi_notzesidi_di): Likewise.
14711 (iordi_notdi_zesidi): Likewise.
14712 (iordi_notsesidi_di): Likewise.
14714 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
14716 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
14718 (iorsi3_compare0_scratch): Likewise.
14720 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
14722 * config/aarch64/aarch64-simd-builtins.def:
14725 * config/aarch64/aarch64-simd.md:
14726 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
14727 (aarch64_st1x4<VALLDIF:mode>): Likewise.
14728 (aarch64_ld1_x4_<mode>): Likewise.
14729 (aarch64_st1_x4_<mode>): Likewise.
14730 * config/aarch64/arm_neon.h:
14731 (vld1_s8_x4): New function.
14732 (vld1q_s8_x4): Likewise.
14733 (vld1_s16_x4): Likewise.
14734 (vld1q_s16_x4): Likewise.
14735 (vld1_s32_x4): Likewise.
14736 (vld1q_s32_x4): Likewise.
14737 (vld1_u8_x4): Likewise.
14738 (vld1q_u8_x4): Likewise.
14739 (vld1_u16_x4): Likewise.
14740 (vld1q_u16_x4): Likewise.
14741 (vld1_u32_x4): Likewise.
14742 (vld1q_u32_x4): Likewise.
14743 (vld1_f16_x4): Likewise.
14744 (vld1q_f16_x4): Likewise.
14745 (vld1_f32_x4): Likewise.
14746 (vld1q_f32_x4): Likewise.
14747 (vld1_p8_x4): Likewise.
14748 (vld1q_p8_x4): Likewise.
14749 (vld1_p16_x4): Likewise.
14750 (vld1q_p16_x4): Likewise.
14751 (vld1_s64_x4): Likewise.
14752 (vld1_u64_x4): Likewise.
14753 (vld1_p64_x4): Likewise.
14754 (vld1q_s64_x4): Likewise.
14755 (vld1q_u64_x4): Likewise.
14756 (vld1q_p64_x4): Likewise.
14757 (vld1_f64_x4): Likewise.
14758 (vld1q_f64_x4): Likewise.
14759 (vst1_s8_x4): Likewise.
14760 (vst1q_s8_x4): Likewise.
14761 (vst1_s16_x4): Likewise.
14762 (vst1q_s16_x4): Likewise.
14763 (vst1_s32_x4): Likewise.
14764 (vst1q_s32_x4): Likewise.
14765 (vst1_u8_x4): Likewise.
14766 (vst1q_u8_x4): Likewise.
14767 (vst1_u16_x4): Likewise.
14768 (vst1q_u16_x4): Likewise.
14769 (vst1_u32_x4): Likewise.
14770 (vst1q_u32_x4): Likewise.
14771 (vst1_f16_x4): Likewise.
14772 (vst1q_f16_x4): Likewise.
14773 (vst1_f32_x4): Likewise.
14774 (vst1q_f32_x4): Likewise.
14775 (vst1_p8_x4): Likewise.
14776 (vst1q_p8_x4): Likewise.
14777 (vst1_p16_x4): Likewise.
14778 (vst1q_p16_x4): Likewise.
14779 (vst1_s64_x4): Likewise.
14780 (vst1_u64_x4): Likewise.
14781 (vst1_p64_x4): Likewise.
14782 (vst1q_s64_x4): Likewise.
14783 (vst1q_u64_x4): Likewise.
14784 (vst1q_p64_x4): Likewise.
14785 (vst1_f64_x4): Likewise.
14786 (vst1q_f64_x4): Likewise.
14788 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14790 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
14792 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14793 Richard Sandiford <richard.sandiford@arm.com>
14796 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
14797 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
14799 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14802 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
14803 in reg if it fails aarch64_plus_operand predicate.
14805 2019-08-21 Richard Biener <rguenther@suse.de>
14807 PR tree-optimization/91482
14808 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
14809 BUILT_IN_ASSUME_ALIGNED calls.
14811 2019-08-21 Richard Biener <rguenther@suse.de>
14815 * config/i386/i386-features.c
14816 (general_scalar_chain::make_vector_copies): Copy stack temporary
14817 rtx when using it multiple times.
14818 (general_scalar_chain::convert_reg): Likewise.
14820 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14822 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
14824 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
14826 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
14827 catch more redundant zero initialization cases.
14828 (dse_dom_walker::dse_optimize_stmt): Likewise.
14830 2019-08-20 Richard Biener <rguenther@suse.de>
14833 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
14834 by collect2 when targetm.have_ctors_dtors which avoids dragging
14835 in temporary filenames from LTO input objects.
14837 2019-08-20 Richard Biener <rguenther@suse.de>
14839 PR tree-optimization/37242
14840 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
14841 to (T)a + (T)b if we know that a + b does not overflow.
14843 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
14845 PR rtl-optimization/91347
14846 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
14847 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
14849 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14851 * calls.h (function_arg_info): Add a pass_by_reference field,
14852 defaulting to false.
14853 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
14854 when applying pass-by-reference semantics.
14855 (initialize_argument_information): Likewise.
14856 (emit_library_call_value_1): Likewise.
14857 * function.c (assign_parm_data_one): Remove passed_pointer field.
14858 (assign_parm_find_data_types): Don't set it.
14859 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
14860 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
14861 arg.pass_by_reference instead of passed_pointer.
14863 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14865 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
14866 into a single function_arg_info, updating its fields when we
14867 apply pass-by-reference and promotion semantics. Use the
14868 function_arg_info to track the mode rather than keeping it in
14869 a separate local variable.
14870 (initialize_argument_information): Likewise. Base the final
14871 arg_to_skip on this new function_arg_info rather than creating
14872 a new one from scratch.
14874 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14876 * function.c (assign_parm_data_one): Replace passed_type,
14877 promoted_mode and named_arg with a function_arg_info field.
14878 (assign_parm_find_data_types): Remove local variables and
14879 assign directly to "data". Make data->passed_mode shadow
14880 data->arg.mode until promotion, then assign the promoted
14881 mode to data->arg.mode.
14882 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
14883 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
14884 (assign_parm_remove_parallels, assign_parm_setup_block_p)
14885 (assign_parm_setup_block, assign_parm_setup_reg)
14886 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
14887 arg.mode instead of promoted_mode, arg.type instead of passed_type
14888 and arg.named instead of named_arg. Use data->arg for
14889 function_arg_info structures that had the field values passed_type,
14890 promoted_mode and named_arg. Base other function_arg_infos on
14891 data->arg, changing the necessary properties.
14893 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14895 * calls.h (apply_pass_by_reference_rules): Declare.
14896 * calls.c (apply_pass_by_reference_rules): New function.
14897 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
14898 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
14899 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
14900 * function.c (assign_parm_find_data_types): Likewise.
14901 * var-tracking.c (prepare_call_arguments): Likewise.
14903 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14905 * target.def (must_pass_in_stack): Take a function_arg_info instead
14906 of a mode and a type.
14907 * doc/tm.texi: Regenerate.
14908 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
14909 instead of a mode and a type.
14910 (must_pass_in_stack_var_size_or_pad): Likewise.
14911 * calls.c (must_pass_in_stack_var_size): Likewise.
14912 (must_pass_in_stack_var_size_or_pad): Likewise.
14913 (initialize_argument_information): Update call to
14914 targetm.calls.must_pass_in_stack.
14915 (must_pass_va_arg_on_stack): Likewise.
14916 * function.c (assign_parm_find_entry_rtl): Likewise.
14917 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
14918 * config/alpha/alpha.c (alpha_function_arg): Likewise.
14919 (alpha_function_arg_advance): Likewise.
14920 * config/cr16/cr16.c (cr16_function_arg): Likewise.
14921 (cr16_function_arg_advance): Likewise.
14922 * config/cris/cris.c (cris_pass_by_reference): Likewise.
14923 (cris_arg_partial_bytes): Likewise.
14924 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
14925 * config/lm32/lm32.c (lm32_function_arg): Likewise.
14926 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
14927 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
14928 * config/mips/mips.c (mips_pass_by_reference): Likewise.
14929 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
14930 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
14931 * config/sh/sh.c (sh_pass_by_reference): Likewise.
14932 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
14933 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
14934 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
14935 instead of a mode and a type.
14936 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
14937 (fr30_num_arg_regs): Likewise.
14938 (fr30_setup_incoming_varargs): Update calls accordingly.
14939 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
14940 (fr30_function_arg_advance): Likewise.
14941 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
14942 instead of a mode and a type.
14943 * config/gcn/gcn.c (num_arg_regs): Likewise.
14944 (gcn_function_arg, gcn_function_arg_advance): Update calls to
14945 num_arg_regs and targetm.calls.must_pass_in_stack.
14946 (gcn_arg_partial_bytes): Likewise.
14947 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
14948 function_arg_info instead of a mode and a type.
14949 (classify_argument): Update call accordingly.
14950 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
14951 function_arg_info instead of a mode and a type.
14952 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
14954 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
14955 (rs6000_parm_needs_stack): Update call accordingly.
14956 (setup_incoming_varargs): Likewise.
14958 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14960 * target.def (callee_copies): Take a function_arg_info instead
14961 of a mode, type and named flag.
14962 * doc/tm.texi: Regenerate.
14963 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
14964 instead of a mode, type and named flag.
14965 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
14966 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
14967 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
14968 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
14969 instead of a mode, type and named flag.
14970 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
14971 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
14972 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
14973 * calls.h (reference_callee_copied): Take a function_arg_info
14974 instead of a mode, type and named flag.
14975 * calls.c (reference_callee_copied): Likewise.
14976 (initialize_argument_information): Update call accordingly.
14977 (emit_library_call_value_1): Likewise.
14978 * function.c (gimplify_parameters): Likewise.
14979 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
14980 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
14981 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
14982 * config/c6x/c6x.c (c6x_callee_copies): Delete.
14983 (TARGET_CALLEE_COPIES): Define to
14984 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
14985 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
14986 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14987 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14988 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
14989 instead of a mode, type and named flag.
14990 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
14991 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14992 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14993 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
14994 * config/msp430/msp430.c (msp430_callee_copies): Delete.
14995 (TARGET_CALLEE_COPIES): Define to
14996 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
14997 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
14998 instead of a mode, type and named flag.
14999 * config/sh/sh.c (sh_callee_copies): Likewise.
15000 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15001 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15002 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15004 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15006 * target.def (function_arg_advance): Take a function_arg_info instead
15007 of a mode, type and named flag.
15008 * doc/tm.texi: Regenerate.
15009 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15010 instead of a mode, type and named flag.
15011 * targhooks.c (default_function_arg_advance): Likewise.
15012 * calls.c (initialize_argument_information): Update call to
15013 targetm.calls.function_arg_advance.
15014 (emit_library_call_value_1): Likewise.
15015 * dse.c (get_call_args): Likewise.
15016 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15017 * function.c (assign_parms, gimplify_parameters): Likewise.
15018 * var-tracking.c (prepare_call_arguments): Likewise.
15019 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15020 function_arg_info instead of a mode, type and named flag.
15021 (aarch64_setup_incoming_varargs): Update call accordingly.
15022 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15023 function_arg_info instead of a mode, type and named flag.
15024 (alpha_setup_incoming_varargs): Update call accordingly.
15025 * config/arc/arc.c (arc_function_arg_advance): Take a
15026 function_arg_info instead of a mode, type and named flag.
15027 (arc_setup_incoming_varargs): Update call accordingly.
15028 * config/arm/arm.c (arm_function_arg_advance): Take a
15029 function_arg_info instead of a mode, type and named flag.
15030 (cmse_func_args_or_return_in_stack): Update call accordingly.
15031 (arm_function_ok_for_sibcall): Likewise.
15032 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15033 * config/avr/avr.c (avr_function_arg_advance): Take a
15034 function_arg_info instead of a mode, type and named flag.
15035 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15036 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15037 (c6x_call_saved_register_used): Update call accordingly.
15038 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15039 function_arg_info instead of a mode, type and named flag.
15040 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15041 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15042 (csky_setup_incoming_varargs): Update call accordingly.
15043 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15044 function_arg_info instead of a mode, type and named flag.
15045 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15046 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15047 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15048 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15049 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15050 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15051 (ix86_setup_incoming_varargs): Update call accordingly.
15052 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15053 function_arg_info instead of a mode, type and named flag.
15054 (ia64_setup_incoming_varargs): Update call accordingly.
15055 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15056 function_arg_info instead of a mode, type and named flag.
15057 (iq2000_expand_prologue): Update call accordingly.
15058 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15059 function_arg_info instead of a mode, type and named flag.
15060 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15061 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15062 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15063 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15064 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15066 (microblaze_expand_prologue): Update call accordingly.
15067 * config/mips/mips.c (mips_function_arg_advance): Take a
15068 function_arg_info instead of a mode, type and named flag.
15069 (mips_setup_incoming_varargs): Update call accordingly.
15070 (mips_output_args_xfer): Likewise.
15071 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15072 function_arg_info instead of a mode, type and named flag.
15073 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15074 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15075 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15076 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15077 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15078 (nios2_setup_incoming_varargs): Update call accordingly.
15079 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15080 function_arg_info instead of a mode, type and named flag.
15081 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15082 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15083 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15084 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15085 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15086 (riscv_setup_incoming_varargs): Update call accordingly.
15087 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15088 function_arg_info instead of a mode, type and named flag.
15089 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15091 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15092 (rs6000_parm_needs_stack): Update call accordingly.
15093 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15094 instead of a mode, type and named flag.
15095 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15096 (s390_call_saved_register_used): Update call accordingly.
15097 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15098 instead of a mode, type and named flag.
15099 (sh_output_mi_thunk): Update call accordingly.
15100 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15101 function_arg_info instead of a mode, type and named flag.
15102 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15103 (spu_setup_incoming_varargs): Update call accordingly.
15104 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15105 function_arg_info instead of a mode, type and named flag.
15106 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15107 (tilegx_setup_incoming_varargs): Update call accordingly.
15108 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15109 function_arg_info instead of a mode, type and named flag.
15110 (tilegx_setup_incoming_varargs): Update call accordingly.
15111 * config/v850/v850.c (v850_function_arg_advance): Take a
15112 function_arg_info instead of a mode, type and named flag.
15113 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15114 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15115 (visium_setup_incoming_varargs): Update call accordingly.
15116 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15117 function_arg_info instead of a mode, type and named flag.
15119 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15121 * target.def (function_arg, function_incoming_arg): Take a
15122 function_arg_info instead of a mode, tree and named flag.
15123 * doc/tm.texi: Regenerate.
15124 * targhooks.h (default_function_arg): Take a function_arg_info
15125 instead of a mode, tree and named flag.
15126 (default_function_incoming_arg): Likewise.
15127 * targhooks.c (default_function_arg): Likewise.
15128 (default_function_incoming_arg): Likewise.
15129 * calls.h (function_arg_info::end_marker_p): New function.
15130 (function_arg_info::end_marker): Likewise.
15131 * calls.c (prepare_call_address, initialize_argument_information)
15132 (expand_call, emit_library_call_value_1): Update calls to
15133 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15134 * dse.c: Include calls.h.
15135 (get_call_args): Update call to targetm.calls.function_arg.
15136 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15137 * var-tracking.c (prepare_call_arguments): Likewise.
15138 * function.c (assign_parm_find_entry_rtl): Update call to
15139 targetm.calls.function_incoming_arg.
15140 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15141 function_arg_info instead of a mode, tree and named flag.
15142 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15143 * config/arc/arc.c (arc_function_arg): Likewise.
15144 * config/arm/arm.c (arm_function_arg): Likewise.
15145 (cmse_func_args_or_return_in_stack): Update call accordingly.
15146 (arm_function_ok_for_sibcall): Likewise.
15147 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15148 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15149 instead of a mode, tree and named flag.
15150 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15151 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15152 (c6x_call_saved_register_used): Update call accordingly.
15153 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15154 instead of a mode, tree and named flag.
15155 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15156 (cris_function_arg_1): Likewise.
15157 * config/csky/csky.c (csky_function_arg): Likewise.
15158 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15159 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15160 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15161 (frv_function_arg_1): Likewise.
15162 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15163 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15164 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15165 * config/i386/i386.c (ix86_function_arg): Likewise.
15166 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15167 (ia64_function_arg_1): Likewise.
15168 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15169 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15171 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15172 instead of a mode, tree and named flag.
15173 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15174 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15175 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15176 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15177 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15178 (microblaze_expand_prologue): Update call accordingly.
15179 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15180 instead of a mode, tree and named flag.
15181 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15182 (mmix_function_arg_1): Likewise.
15183 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15184 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15185 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15186 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15187 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15188 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15189 (nvptx_function_incoming_arg): Likewise.
15190 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15191 * config/pa/pa.c (pa_function_arg): Likewise.
15192 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15193 * config/pru/pru.c (pru_function_arg): Likewise.
15194 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15195 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15196 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15197 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15198 (rs6000_parm_needs_stack): Update call accordingly.
15199 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15200 instead of a mode, tree and named flag.
15201 * config/s390/s390.c (s390_function_arg): Likewise.
15202 (s390_call_saved_register_used): Update call accordingly.
15203 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15204 instead of a mode, tree and named flag.
15205 (sh_output_mi_thunk): Update call accordingly.
15206 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15207 (sparc_function_incoming_arg): Take a function_arg_info instead of
15208 a mode, tree and named flag.
15209 * config/spu/spu.c (spu_function_arg): Likewise.
15210 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15211 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15212 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15213 * config/v850/v850.c (v850_function_arg): Likewise.
15214 * config/vax/vax.c (vax_function_arg): Likewise.
15215 * config/visium/visium.c (visium_function_arg): Likewise.
15216 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15217 (xtensa_function_incoming_arg): Likewise.
15219 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15221 * target.def (setup_incoming_varargs): Take a function_arg_info
15222 instead of a mode and tree.
15223 * doc/tm.texi: Regenerate.
15224 * targhooks.h (default_setup_incoming_varargs): Take a
15225 function_arg_info instead of a mode and tree.
15226 * targhooks.c (default_setup_incoming_varargs): Likewise.
15227 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15228 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15229 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15230 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15231 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15232 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15233 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15234 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15236 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15237 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15238 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15239 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15240 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15241 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15242 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15243 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15244 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15245 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15246 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15247 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15248 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15249 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15250 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15251 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15252 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15253 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15254 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15255 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15256 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15257 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15258 * function.c (assign_parms_setup_varargs): Update call to
15259 targetm.calls.setup_incoming_varargs.
15261 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15263 * target.def (pass_by_reference): Take a function_arg_info instead
15264 of a mode, type and named flag.
15265 * doc/tm.texi: Regenerate.
15266 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
15268 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
15269 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
15270 function_arg_info instead of a mode, type and named flag.
15271 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
15272 * calls.h (pass_by_reference): Take a function_arg_info instead of a
15273 mode, type and named flag.
15274 * calls.c (pass_by_reference): Likewise.
15275 (pass_va_arg_by_reference): Update call accordingly.
15276 (initialize_argument_information): Likewise.
15277 (emit_library_call_value_1): Likewise.
15278 * function.c (assign_parm_find_data_types): Likewise.
15279 * var-tracking.c (prepare_call_arguments): Likewise.
15280 * stor-layout.c: Include calls.h.
15281 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
15282 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
15283 function_arg_info instead of a mode, type and named flag.
15284 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
15285 * config/arc/arc.c (arc_pass_by_reference): Likewise.
15286 * config/arm/arm.c (arm_pass_by_reference): Likewise.
15287 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
15288 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
15289 (c6x_call_saved_register_used): Update call to pass_by_reference.
15290 * config/cris/cris.c (cris_pass_by_reference): Take a
15291 function_arg_info instead of a mode, type and named flag.
15292 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
15293 function_arg_info instead of a mode, type and named flag.
15294 (epiphany_arg_partial_bytes): Update call accordingly.
15295 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
15296 function_arg_info instead of a mode, type and named flag.
15297 (ft32_arg_partial_bytes): Update call accordingly.
15298 * config/i386/i386.c (ix86_pass_by_reference): Take a
15299 function_arg_info instead of a mode, type and named flag.
15300 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15301 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
15302 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
15303 (m32r_return_in_memory): Update call accordingly.
15304 * config/mips/mips.c (mips_pass_by_reference): Take a
15305 function_arg_info instead of a mode, type and named flag.
15306 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
15307 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15308 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
15309 (moxie_arg_partial_bytes): Update call accordingly.
15310 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
15311 function_arg_info instead of a mode, type and named flag.
15312 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
15313 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
15314 * config/pa/pa.c (pa_pass_by_reference): Likewise.
15315 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
15316 (riscv_return_in_memory): Update call accordingly.
15317 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
15318 function_arg_info instead of a mode, type and named flag.
15319 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
15320 (rs6000_parm_needs_stack): Update call to pass_by_reference.
15321 * config/s390/s390.c (s390_pass_by_reference): Take a
15322 function_arg_info instead of a mode, type and named flag.
15323 (s390_call_saved_register_used): Update call accordingly.
15324 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
15325 instead of a mode, type and named flag.
15326 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
15327 * config/spu/spu.c (spu_pass_by_reference): Likewise.
15328 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
15329 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
15330 * config/v850/v850.c (v850_pass_by_reference): Likewise.
15331 * config/visium/visium.c (visium_pass_by_reference): Likewise.
15333 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15335 * target.def (arg_partial_bytes): Take a function_arg_info instead
15336 of a mode, type and named flag.
15337 * doc/tm.texi: Regenerate.
15338 * target.h (function_arg_info): Declare.
15339 * calls.h (function_arg_info): New class.
15340 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15341 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
15342 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15343 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
15344 * calls.c (initialize_argument_information): Update call to
15345 targetm.calls.partial_bytes.
15346 (emit_library_call_value_1): Likewise.
15347 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15348 * function.c (assign_parm_find_entry_rtl): Likewise.
15349 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
15350 function_arg_info instead of a mode, type and named flag.
15351 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
15352 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
15353 (cmse_func_args_or_return_in_stack): Update accordingly.
15354 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
15355 function_arg_info instead of a mode, type and named flag.
15356 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
15357 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
15358 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
15359 * config/fr30/fr30.c: Include calls.h.
15360 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
15361 type and named flag.
15362 * config/frv/frv.c: Include calls.h.
15363 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
15364 type and named flag.
15365 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
15366 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
15367 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
15368 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
15369 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
15370 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
15371 * config/microblaze/microblaze.c (function_arg_partial_bytes):
15373 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
15374 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
15375 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
15376 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
15377 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
15378 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
15379 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
15380 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
15381 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
15382 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
15383 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
15384 (rs6000_parm_needs_stack): Update call accordingly.
15385 * config/sh/sh.c (sh_arg_partial_bytes): Take a
15386 function_arg_info instead of a mode, type and named flag.
15387 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
15388 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
15390 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15392 * calls.h (must_pass_va_arg_in_stack): Declare.
15393 * calls.c (must_pass_va_arg_in_stack): New function.
15394 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
15395 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
15396 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
15398 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15400 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15402 * calls.h (pass_va_arg_by_reference): Declare.
15403 * calls.c (pass_va_arg_by_reference): New function.
15404 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
15405 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
15406 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
15407 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
15408 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15409 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
15410 (mips_gimplify_va_arg_expr): Likewise.
15411 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
15412 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15413 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
15414 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
15415 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
15416 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
15417 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
15418 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
15419 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
15420 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15421 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15423 2019-08-20 Richard Biener <rguenther@suse.de>
15426 * config/i386/i386-features.c (general_scalar_chain::convert_op):
15427 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
15428 (convert_scalars_to_vector): Add timode_p parameter and use it
15429 to guard TImode-only operation.
15430 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
15431 (pass_stv::execute): Pass down timode_p.
15433 2019-08-20 Lili Cui <lili.cui@intel.com>
15435 * common/config/i386/i386-common.c
15436 (processor_names): Add tigerlake and cooperlake.
15437 (processor_alias_table): Add tigerlake and cooperlake.
15438 * config.gcc: Add -march=tigerlake and cooperlake.
15439 * config/i386/driver-i386.c
15440 (host_detect_local_cpu): Detect tigerlake and cooperlake.
15441 Add "has_avx" to classify processor.
15442 * config/i386/i386-builtins.c (processor_model) :
15443 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
15444 (arch_names_table): Add tigerlake and cooperlake.
15445 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
15446 and PROCESSOR_COOPERLAKE.
15447 * config/i386/i386-c.c
15448 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
15449 * config/i386/i386-options.c
15450 (m_TIGERLAKE): Define.
15451 (m_COOPERLAKE): Ditto.
15452 (m_CORE_AVX512): Ditto.
15453 (processor_cost_table): Add cascadelake.
15454 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
15455 * config/i386/i386.h
15456 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
15457 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15458 (PTA_MOVDIRI): Ditto.
15459 (PTA_MOVDIR64B): Ditto.
15460 (PTA_COOPERLAKE): Ditto.
15461 (PTA_TIGERLAKE): Ditto.
15462 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15463 * doc/extend.texi: Add tigerlake and cooperlake.
15464 * doc/invoke.texi: Add tigerlake and cooperlake.
15466 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
15468 * doc/install.texi (Specific, alpha): Remove note to use
15469 binutils 2.11.2 or later.
15471 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15473 PR middle-end/89544
15474 * function.c (assign_parm_find_stack_rtl): Use larger alignment
15477 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
15479 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
15480 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
15481 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
15482 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
15483 * config/aarch64/constraints.md (Dt): New constraint
15484 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
15486 2019-08-19 Richard Biener <rguenther@suse.de>
15488 PR tree-optimization/91403
15489 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
15490 cases we can handle with tail-recursion...
15491 (follow_ssa_edge_expr): ... here. Do so.
15493 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
15496 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
15497 implemented for -fsanitize=kernel-address, and merge check logic
15498 with -fsanitize=address.
15500 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
15502 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
15503 for cpu and machine. Factor 64/32b builtins.
15505 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
15507 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
15508 gone, point to sourceforge.net.
15510 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15512 * doc/ux.texi (User Experience Guidelines): Update reference.
15514 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15516 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
15519 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
15521 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
15522 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
15524 2019-08-16 Martin Sebor <msebor@redhat.com>
15526 * tree.def (TYPE_SIZE): Clarify.
15527 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
15529 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
15531 PR tree-optimization/91109
15532 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
15533 * lra.c (lra): Use lra_need_for_scratch_reg_p.
15534 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
15536 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
15538 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
15539 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
15540 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
15541 (uavg<mode>3_ceil): New expander.
15542 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
15543 mode iterator when creating CONST1_RTX.
15544 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
15545 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
15546 mode iterator for const1_operand predicate.
15548 2019-08-16 Richard Biener <rguenther@suse.de>
15550 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
15551 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
15553 (follow_ssa_edge_in_condition_phi_branch): Likewise.
15554 (analyze_evolution_in_loop): Likewise.
15555 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
15556 (follow_ssa_edge_expr): ... here. Refactor code.
15558 2019-08-16 Richard Biener <rguenther@suse.de>
15561 * config/i386/i386-features.c
15562 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
15564 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15567 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
15568 only if subst_name matches curr_attr string.
15570 2019-08-16 Richard Biener <rguenther@suse.de>
15572 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
15573 stmt at gsi_p, instead replace it with a NOP removed later.
15574 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
15575 that became dead because of that.
15577 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
15579 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
15580 for which we can't represent a range.
15581 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
15583 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
15584 Set VR_UNDEFINED if type is not supported.
15585 * tree-ssanames.c (get_range_info): Pass type to set_varying.
15586 * tree-vrp.c (value_range_base::check): Assert that a varying has
15588 (value_range_base::equal_p): Early bail for undefines.
15589 (value_range_base::set_varying): Accept a type.
15590 (value_range::set_varying): Same.
15591 (value_range_base::type): VARYING can have a type, while UNDEFINE
15593 (value_range_base::dump): Print type for VARYING nodes.
15594 (value_range_base::set): Add type to VARYING.
15595 (extract_range_from_multiplicative_op): Pass type to set_varying.
15596 (extract_range_from_binary_expr): Same.
15597 (value_range_base::intersect_helper): Same.
15598 (value_range_base::union_helper): Same.
15599 (value_range_base::normalize_symbolics): Same.
15600 (determine_value_range_1): Same.
15601 * tree-vrp.h (class value_range_base): Add type to set_varying.
15602 Add prototype for dump(void).
15603 Add prototype for supports_type_p.
15604 (class value_range): Add type to set_varying.
15605 Add prototype for dump(void).
15606 * vr-values.c (set_value_range_to_truthvalue): Pass type to
15608 (vr_values::get_lattice_entry): Set varying even if propagation
15610 Pass type to set_varying.
15611 (vr_values::get_value_range): Remove vr_const_varying.
15612 Reallocate the lattice if needed.
15613 (vr_values::update_value_range): Pass type to set_varying.
15614 (vr_values::extract_range_for_var_from_comparison_expr): Same.
15615 (vr_values::extract_range_from_binary_expr): Same.
15616 (vr_values::extract_range_from_unary_expr): Same.
15617 (vr_values::extract_range_from_cond_expr): Same.
15618 (vr_values::check_for_binary_op_overflow): Same.
15619 (vr_values::extract_range_basic): Same.
15620 (vr_values::extract_range_from_assignment): Same.
15621 (vr_values::vr_values): Increase size of num_vr_values.
15622 (vr_values::extract_range_from_phi_node): Pass type to
15625 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
15628 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
15629 for costs of hard register moves.
15630 (ix86_register_move_cost): Likewise.
15631 * config/i386/i386.h (processor_costs): Move costs of hard
15632 register moves to hard_register. Add int_load, int_store,
15633 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15634 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
15635 for costs of RTL expressions.
15636 * config/i386/x86-tune-costs.h: Move costs of hard register
15637 moves to hard_register. Duplicate int_load, int_store,
15638 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15639 sse_load, sse_store for costs of RTL expressions.
15641 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15643 * target.def (setup_incoming_vararg_bounds): Remove.
15644 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
15645 * doc/tm.texi: Regenerate.
15646 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
15647 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
15648 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
15649 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
15651 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15653 MSP430: Fix lines over 80 characters long in
15654 config/msp430/*.{c,h} files
15656 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
15657 specifier in string.
15658 (msp430_select_hwmult_lib): Split line more than 80 characters long.
15659 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
15660 redundant old comment.
15661 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
15662 Split line more than 80 characters long.
15663 * config/msp430/msp430.c (msp430_option_override): Likewise.
15664 (msp430_return_in_memory): Likewise.
15665 (msp430_gimplify_va_arg_expr): Likewise.
15666 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
15667 (msp430_legitimate_constant): Likewise.
15668 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
15669 (msp430_attr): Likewise.
15670 (msp430_data_attr): Likewise.
15671 (msp430_start_function): Likewise.
15672 (gen_prefix): Likewise.
15673 (msp430_init_sections): Likewise.
15674 (msp430_select_section): Likewise.
15675 (msp430_function_section): Likewise.
15676 (msp430_unique_section): Likewise.
15677 (msp430_output_aligned_decl_common): Likewise.
15678 (msp430_do_not_relax_short_jumps): Likewise.
15679 (msp430_init_builtins): Likewise.
15680 (msp430_expand_delay_cycles): Likewise.
15681 (msp430_expand_prologue): Likewise.
15682 (msp430_expand_epilogue): Likewise.
15683 (msp430_expand_helper): Likewise.
15684 (msp430_split_movsi): Likewise.
15685 (msp430_print_operand): Likewise.
15686 (msp430_return_addr_rtx): Likewise.
15687 (msp430x_extendhisi): Likewise.
15688 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
15689 (ASM_SPEC): Likewise.
15690 Remove very obvious comments.
15691 (LIB_SPEC): Split line more than 80 characters long.
15692 (EH_RETURN_HANDLER_RTX): Likewise.
15693 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15695 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15697 MSP430: Fix whitespace errors and incorrect indentation in
15698 config/msp430/*.{c,h} files
15700 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
15701 (msp430_select_hwmult_lib): Likewise.
15702 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
15703 (msp430_extract_mcu_data): Likewise.
15704 (struct t_msp430_mcu_data): Likewise.
15705 * config/msp430/msp430.c (struct machine_function): Remove whitespace
15706 before left square bracket.
15707 (msp430_option_override): Fix indentation.
15708 (msp430_hard_regno_nregs_with_padding): Likewise.
15709 (msp430_initial_elimination_offset): Likewise.
15710 (msp430_special_register_convention_p): Remove whitespace before left
15711 square bracket and after exclamation mark.
15712 (msp430_evaluate_arg): Likewise.
15713 (msp430_callee_copies): Fix indentation.
15714 (msp430_gimplify_va_arg_expr): Likewise.
15715 (msp430_function_arg_advance): Remove whitespace before left square
15717 (reg_ok_for_addr): Likewise.
15718 (msp430_preserve_reg_p): Likewise.
15719 (msp430_compute_frame_info): Likewise.
15720 (msp430_asm_output_addr_const_extra): Add space between function name
15721 and open parenthesis.
15722 (has_section_name): Fix indentation.
15723 (msp430_attr): Remove trailing whitespace.
15724 (msp430_section_attr): Likewise.
15725 (msp430_data_attr): Likewise.
15726 (struct msp430_attribute_table): Fix comment and whitespace.
15727 (msp430_start_function): Remove whitespace before left square bracket.
15728 Add space between function name and open parenthesis.
15729 (msp430_select_section): Remove trailing whitespace.
15730 (msp430_section_type_flags): Remove trailing whitespace.
15731 (msp430_unique_section): Remove space before closing parenthesis.
15732 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
15733 (msp430_builtins): Remove whitespace before left square bracket.
15734 (msp430_init_builtins): Fix indentation.
15735 (msp430_expand_prologue): Remove whitespace before left square bracket.
15736 Remove space before closing parenthesis.
15737 (msp430_expand_epilogue): Remove whitespace before left square bracket.
15738 (msp430_split_movsi): Remove space before closing parenthesis.
15739 (helper_function_name_mappings): Fix indentation.
15740 (msp430_use_f5_series_hwmult): Fix whitespace.
15741 (use_32bit_hwmult): Likewise.
15742 (msp430_no_hwmult): Likewise.
15743 (msp430_output_labelref): Remove whitespace before left square bracket.
15744 (msp430_print_operand_raw): Likewise.
15745 (msp430_print_operand_addr): Likewise.
15746 (msp430_print_operand): Add two spaces after '.' in comment.
15747 Fix trailing whitespace.
15748 (msp430x_extendhisi): Fix indentation.
15749 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
15751 (PC_REGNUM): Likewise.
15752 (STACK_POINTER_REGNUM): Likewise.
15753 (CC_REGNUM): Likewise.
15755 2019-08-15 Richard Biener <rguenther@suse.de>
15758 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
15760 (general_scalar_chain::make_vector_copies): Use it.
15762 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
15764 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
15766 2019-08-15 Martin Liska <mliska@suse.cz>
15768 * tree-ssa-dce.c (propagate_necessity): We can't reach now
15769 operators with no arguments.
15770 (eliminate_unnecessary_stmts): Likewise here.
15772 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
15774 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
15775 <case COMPARE>: Revert 2019-08-14 change.
15776 (convertible_comparison_p): Revert 2019-08-14 change. Return false
15777 for (TARGET_64BIT || mode != DImode).
15779 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
15781 * tree-vrp.c (value_range_base::set): Merge in code from
15782 value_range_base::set_and_canonicalize.
15783 Enforce canonicalization at set time.
15784 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
15785 (value_range_base::set_undefined): Inline call to set().
15786 (value_range_base::set_varying): Same.
15787 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
15788 (vrp_val_max): New argument handle_pointers.
15789 (vrp_val_min): Same.
15790 (ranges_from_anti_range): Same.
15791 (extract_range_into_wide_ints): Use tree argument instead of sign
15793 (extract_range_from_multiplicative_op): Take in tree type instead
15794 of precision and sign. Adapt function for canonicalized ranges.
15795 (extract_range_from_binary_expr): Pass type to
15796 extract_range_from_multiplicative_op.
15797 Adapt for canonicalized ranges.
15798 (extract_range_from_unary_expr): Same.
15799 (value_range_base::intersect_helper): Adjust for canonicalized
15801 (value_range_base::union_helper): Same.
15802 (value_range_base::normalize_symbolics): New.
15803 * tree-vrp.h (class value_range_base): Remove
15804 set_and_canonicalize.
15805 New prototype for normalize_symbolics.
15806 (class value_range): Remove set_and_canonicalize.
15807 (vrp_val_min): Adjust prototype.
15808 (vrp_val_max): Same.
15810 (vr_values::extract_range_for_var_from_comparison_expr): Call set
15811 instead of set_and_canonicalize.
15813 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15815 PR middle-end/91444
15816 * tree-vect-stmts.c (vectorizable_call): Check that the function
15817 is a BUILT_IN_MD function before passing it to
15818 targetm.vectorize.builtin_md_vectorized_function.
15820 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15822 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
15823 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
15824 (aarch64_select_early_remat_modes): Use it.
15826 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15828 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
15829 16 for SVE predicates even if they are fixed-length.
15831 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15833 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
15834 operand order match the MOV /Z alias.
15836 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15838 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
15839 the vector pattern as an aarch64_svpattern argument. Update the
15840 overloaded caller accordingly.
15841 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
15842 (aarch64_output_sve_vector_inc_dec): Likewise.
15844 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15846 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
15847 multiplication case, try to compute VG * (lowest set bit) directly
15848 rather than always basing the multiplication on VG. Use
15849 expand_mult for the multiplication if we can.
15851 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15853 * config/aarch64/aarch64-protos.h
15854 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
15855 (aarch64_sve_inc_dec_immediate_p): Rename to...
15856 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15857 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
15858 (aarch64_output_sve_scalar_inc_dec): Declare.
15859 (aarch64_output_sve_inc_dec_immediate): Rename to...
15860 (aarch64_output_sve_vector_inc_dec): ...this.
15861 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
15862 (aarch64_output_sve_scalar_inc_dec): New functions.
15863 (aarch64_output_sve_addvl_addpl): Remove the base and offset
15864 arguments. Only handle true ADDVL and ADDPL instructions;
15865 don't emit an INC or DEC.
15866 (aarch64_sve_inc_dec_immediate_p): Rename to...
15867 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15868 (aarch64_output_sve_inc_dec_immediate): Rename to...
15869 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
15870 aarch64_sve_vector_inc_dec_immediate_p.
15871 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
15872 (aarch64_sve_plus_immediate): New predicates.
15873 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
15874 rather than aarch64_sve_addvl_addpl_immediate.
15875 (aarch64_sve_inc_dec_immediate): Rename to...
15876 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
15877 aarch64_sve_vector_inc_dec_immediate_p.
15878 (aarch64_sve_add_operand): Update accordingly.
15879 * config/aarch64/constraints.md (Uai): New constraint.
15880 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
15881 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
15882 operand into a register if it satisfies aarch64_sve_plus_immediate.
15883 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
15884 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
15885 * config/aarch64/aarch64-sve.md (add<mode>3): Call
15886 aarch64_output_sve_vector_inc_dec instead of
15887 aarch64_output_sve_inc_dec_immediate.
15889 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15891 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
15892 (UNSPEC_REVW): New constants.
15893 (elem_bits): New mode attribute.
15894 (SVE_INT_UNARY): New int iterator.
15895 (optab): Handle UNSPEC_REV[BHW].
15896 (sve_int_op): New int attribute.
15897 (min_elem_bits): Handle VNx16QI and the predicate modes.
15898 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
15899 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
15900 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
15901 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
15902 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
15903 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
15904 unspecs based on the total width of the reversed data.
15905 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
15906 reinterpret followed by a subreg on big-endian targets.
15908 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15909 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15911 * config/aarch64/aarch64-sve.md
15912 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
15913 alternatives in which one of the inputs is in the same register
15916 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15918 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
15919 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
15921 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15923 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
15924 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
15926 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15927 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15929 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
15930 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
15931 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
15933 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15934 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15936 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
15937 Add an alternative that uses reversed shifts.
15939 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15941 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
15944 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15946 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
15947 a commutativity marker.
15949 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15950 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15952 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
15953 (aarch64_prepare_sve_cond_int_fma): Declare.
15954 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
15955 (aarch64_prepare_sve_int_fma): New functions.
15956 (aarch64_prepare_sve_cond_int_fma): Likewise.
15957 * config/aarch64/aarch64-sve.md
15958 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
15959 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
15960 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
15961 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
15962 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
15963 (*madd<mode>): Rename to...
15964 (*fma<mode>4): ...this.
15965 (*msub<mode>): Rename to...
15966 (*fnma<mode>4): ...this.
15968 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15969 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15971 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
15972 Print 2.0 naturally.
15973 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
15974 * config/aarch64/predicates.md
15975 (aarch64_sve_float_negated_arith_immediate): New predicate,
15976 renamed from aarch64_sve_float_arith_with_sub_immediate.
15977 (aarch64_sve_float_arith_with_sub_immediate): Test for both
15978 positive and negative constants.
15979 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
15980 or an aarch64_sve_float_arith_with_sub_immediate.
15981 * config/aarch64/constraints.md (vsN): Use
15982 aarch64_sve_float_negated_arith_immediate.
15983 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
15985 (sve_pred_fp_rhs2_immediate): New int attribute.
15986 * config/aarch64/aarch64-sve.md
15987 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
15988 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
15989 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
15990 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
15991 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
15992 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
15994 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15995 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15997 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
15998 (*aarch64_cond_abd<SVE_F:mode>_3)
15999 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16001 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16002 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16004 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16005 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16007 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16008 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16010 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16011 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16012 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16013 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16015 * optabs.h (create_convert_operand_from): Expand comment.
16016 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16017 when mapping scalar rtxes to vector operands.
16018 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16019 ashiftrt and lshiftrt.
16020 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16021 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16022 (*cond_<optab><mode>_any_const): New patterns.
16024 2019-08-15 Martin Liska <mliska@suse.cz>
16027 * cgraph.c (cgraph_node::remove): When setting
16028 n->origin = NULL for all nested functions, reset
16031 2019-08-15 Martin Liska <mliska@suse.cz>
16033 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16036 2019-08-15 Martin Liska <mliska@suse.cz>
16039 * passes.c (order): Remove.
16040 (uid_hash_t): Likewise).
16041 (remove_cgraph_node_from_order): Remove from set
16042 of pointers (cgraph_node *).
16043 (insert_cgraph_node_to_order): New.
16044 (duplicate_cgraph_node_to_order): New.
16045 (do_per_function_toporder): Register all 3 cgraph hooks.
16046 Skip removed_nodes now as we know about all of them.
16048 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16050 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16051 <case E_V8QImode>: Use vector_set path for
16052 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16053 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16054 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16056 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16058 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16060 2019-08-14 Martin Sebor <msebor@redhat.com>
16062 PR tree-optimization/91294
16063 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16064 source length as exact.
16066 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16068 * doc/extend.texi: Add "noinit" attribute documentation.
16069 * doc/sourcebuild.texi: Add noinit effective target documentation.
16070 * varasm.c (default_section_type_flags): Add support for "noinit"
16072 (default_elf_select_section): Add support for "noinit" attribute.
16073 * config/msp430/msp430.c (msp430_attribute_table): Remove
16076 2019-08-14 Richard Biener <rguenther@suse.de>
16077 Uroš Bizjak <ubizjak@gmail.com>
16080 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16082 (scalar_chain::smode): New member.
16083 (scalar_chain::vmode): Likewise.
16084 (dimode_scalar_chain): Rename to...
16085 (general_scalar_chain): ... this.
16086 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16087 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16088 base with TImode and V1TImode.
16089 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16090 (general_scalar_chain::vector_const_cost): Adjust for SImode
16092 (general_scalar_chain::compute_convert_gain): Likewise. Add
16093 {S,U}{MIN,MAX} support.
16094 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16095 (general_scalar_chain::make_vector_copies): Likewise. Handle
16096 non-DImode chains appropriately.
16097 (general_scalar_chain::convert_reg): Likewise.
16098 (general_scalar_chain::convert_op): Likewise.
16099 (general_scalar_chain::convert_insn): Likewise. Add
16100 fatal_insn_not_found if the result is not recognized.
16101 (convertible_comparison_p): Pass in the scalar mode and use that.
16102 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16103 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16104 (scalar_to_vector_candidate_p): Remove by inlining into single
16106 (general_remove_non_convertible_regs): Rename from
16107 dimode_remove_non_convertible_regs.
16108 (remove_non_convertible_regs): Remove by inlining into single caller.
16109 (convert_scalars_to_vector): Handle SImode and DImode chains
16110 in addition to TImode chains.
16111 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16112 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16113 (*<maxmin>di3_doubleword): Likewise.
16115 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16116 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16118 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16119 (*cond_bic<mode>_any): New patterns.
16121 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16123 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16124 take the equivalent mask, as well as a bit count.
16125 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16126 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16127 (aarch64_sve_pred_and_operand): New predicates.
16128 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16130 * config/aarch64/aarch64-sve.md
16131 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16132 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16134 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16136 * config/aarch64/aarch64-sve.md
16137 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16138 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16141 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16142 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16144 * config/aarch64/aarch64-sve.md
16145 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16146 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16148 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16149 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16151 * config/aarch64/aarch64-sve.md
16152 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16153 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16155 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16157 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16158 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16161 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16162 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16164 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16166 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16167 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16169 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16170 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16171 (aarch64_print_operand): Add support for %I.
16172 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16173 Bitcast floating-point constants to the corresponding integer constant.
16174 (aarch64_float_const_representable_p): Handle vectors as well
16176 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16177 for the new vcond_mask_<mode><vpred> expander.
16178 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16179 test aarch64_float_const_representable_p.
16180 (aarch64_sve_reg_or_dup_imm): New predicate.
16181 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16182 gen_vcond_mask_<mode><vpred> instead of
16183 gen_aarch64_sve_dup<mode>_const.
16184 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16185 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16186 for operands 1 and 2 respectively. Force operand 2 into a
16187 register if operand 1 is a register. Fold old define_insn...
16188 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16189 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16190 floating-point constants that can be moved as integers. Add
16191 alternatives for MOV /M and FMOV /M.
16192 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16193 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16194 1 and 2 respectively.
16195 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16197 (vss): New constraint.
16199 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16201 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16202 (aarch64_sve_float_maxmin_operand): New predicates.
16203 * config/aarch64/constraints.md (vsB): New constraint.
16205 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16206 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16207 UNSPEC_COND_FMINNM.
16208 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16209 Use aarch64_sve_float_maxmin_operand for operand 2.
16210 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16211 Add alternatives for the constant forms.
16213 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16215 * config/aarch64/constraints.md (vsb): New constraint.
16216 (vsm): Generalize description.
16217 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16219 (sve_imm_con): Handle smax, smin, umax and umin.
16220 (sve_imm_prefix): New code attribute.
16221 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16222 (aarch64_sve_vsb_operand): New predicates.
16223 (aarch64_sve_mul_immediate): Rename to...
16224 (aarch64_sve_vsm_immediate): ...this.
16225 (aarch64_sve_mul_operand): Rename to...
16226 (aarch64_sve_vsm_operand): ...this.
16227 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16228 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16229 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16230 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16231 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16232 add movprfx support for the immediate alternatives.
16233 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16235 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16238 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16240 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16241 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16242 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16244 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16246 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16247 (optab, sve_int_op): Handle them.
16248 * config/aarch64/aarch64-sve.md: Expand comment.
16250 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16252 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16253 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16254 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16256 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16258 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
16259 (aarch64_expand_sve_const_pred_trn): New functions.
16260 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
16261 use the above functions when the parameter is true.
16262 (aarch64_expand_sve_const_pred): Update call accordingly.
16263 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
16265 (@aarch64_sve_<perm_insn><mode>): ...this.
16267 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16269 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
16271 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
16272 (aarch64_sve_emit_int_cmp): New functions.
16273 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
16274 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
16275 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
16276 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
16277 (UNSPEC_PRED_Z): New unspec.
16278 (set_clobber_cc_nzc): Delete.
16279 * config/aarch64/aarch64-sve.md: Add a block comment about
16281 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
16282 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
16283 the old pattern with that name. Use UNSPEC_PRED_Z instead of
16284 UNSPEC_MERGE_PTRUE.
16285 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
16286 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
16287 check for compatible predicates.
16288 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
16289 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
16290 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
16293 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16295 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
16296 * config/aarch64/aarch64-sve.md: Add a section describing it.
16297 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
16298 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
16299 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
16300 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
16301 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
16302 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
16303 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
16304 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
16305 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
16306 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
16307 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16308 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
16309 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
16310 (aarch64_evpc_rev_local): Update accordingly.
16312 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16314 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
16316 (SVE_BHSI, SVE_SDI): Tweak comment.
16317 (SVE_HSDI): Likewise. Fix definition.
16318 (SVE_SDF): New mode iterator.
16319 (elem_bits): New mode attribute.
16320 (SVE_COND_FCVT): New int iterator.
16321 * config/aarch64/aarch64-sve.md
16322 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
16323 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
16324 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
16325 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16326 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
16327 ...these new patterns.
16328 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
16329 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
16330 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
16332 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
16333 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
16334 ...these new patterns.
16335 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
16336 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
16337 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
16338 ...this new pattern.
16339 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
16340 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
16341 ...this new pattern.
16342 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
16344 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16346 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
16347 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
16348 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
16350 (optab, su): Handle them.
16351 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
16352 * config/aarch64/aarch64-sve.md
16353 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
16354 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
16355 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
16356 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
16357 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
16358 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
16359 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
16360 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
16361 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
16363 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
16364 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
16365 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
16366 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
16367 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
16368 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
16369 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
16370 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
16371 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
16372 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
16373 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
16374 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
16375 of UNSPEC_FLOAT_CONVERT.
16376 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
16377 aarch64_sve_extend<mode><Vwide>2.
16379 2019-08-14 Richard Biener <rguenther@suse.de>
16382 * config/i386/i386-features.c
16383 (dimode_scalar_chain::compute_convert_gain): Compute and dump
16384 individual instruction gain. Fix reg-reg copy GRP cost. Use
16385 ix86_cost->sse_op for vector instruction costs.
16387 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16389 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
16390 (cmp_op): Handle it.
16391 (SVE_COND_FP_CMP): Rename to...
16392 (SVE_COND_FP_CMP_I0): ...this.
16393 (SVE_FP_CMP): Remove.
16394 * config/aarch64/aarch64-sve.md
16395 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
16396 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
16397 using unspecs to represent the comparison.
16398 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
16399 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
16401 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
16402 (aarch64_unspec_cond_code): Move after integer code. Handle
16404 (aarch64_emit_sve_predicated_cond): Replace with...
16405 (aarch64_emit_sve_fp_cond): ...this new function.
16406 (aarch64_emit_sve_or_conds): Replace with...
16407 (aarch64_emit_sve_or_fp_conds): ...this new function.
16408 (aarch64_emit_sve_inverted_cond): Replace with...
16409 (aarch64_emit_sve_invert_fp_cond): ...this new function.
16410 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
16412 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16414 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
16415 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
16416 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
16417 SVE_HSD instead of SVE_SD.
16419 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16420 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16422 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
16424 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
16426 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
16427 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
16428 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
16429 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
16430 (*div<SVE_F:mode>3): Generalize to...
16431 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
16433 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16434 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16436 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
16438 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
16440 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
16442 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
16444 * config/aarch64/aarch64-sve.md: Add a block comment about the
16445 handling of predicated FP operations.
16446 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
16447 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
16448 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16449 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
16450 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
16452 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
16453 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
16455 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
16456 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
16457 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
16458 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
16459 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
16460 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16461 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16462 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
16463 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
16464 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
16465 strictness operands. Use aarch64_sve_pred_dominates_p to check
16466 whether the predicate on the conditional operation is suitable
16467 for merging. Split patterns into the canonical equal-predicate form.
16468 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
16469 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
16471 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16472 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16474 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
16475 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
16476 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
16478 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
16479 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
16482 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16483 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16485 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
16486 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
16487 actually has, rather than relying on REG_EQUAL notes.
16488 Make the insn operand order match the SVE operand order.
16489 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
16490 the SVE operand order.
16492 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16494 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
16495 (aarch64_emit_set_immediate): Likewise.
16496 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
16497 (aarch64_pfalse_reg): Likewise.
16498 (aarch64_convert_sve_data_to_pred): New function.
16499 (aarch64_sve_move_pred_via_while): Take an optional target register
16500 and the required register mode.
16501 (aarch64_expand_sve_const_pred_1): New function.
16502 (aarch64_expand_sve_const_pred): Likewise.
16503 (aarch64_expand_mov_immediate): Build an all-true predicate
16504 if the significant bits of the immediate are all true. Use
16505 aarch64_expand_sve_const_pred for all compile-time predicate constants.
16506 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
16507 before register allocation.
16508 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
16509 a VNx16BI PTRUE when splitting the memory alternative.
16510 (vec_duplicate<mode>): Update accordingly.
16511 (*pred_cmp<cmp_op><mode>): Rename to...
16512 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
16514 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16516 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
16517 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
16518 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
16519 (UNSPEC_PTEST): New unspec.
16520 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
16521 * config/aarch64/iterators.md (data_bytes): New mode attribute.
16522 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
16523 * config/aarch64/aarch64-sve.md: Add a new section describing the
16524 handling of UNSPEC_PTEST.
16525 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
16526 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
16527 (ptest_ptrue<mode>): Replace with...
16528 (aarch64_ptest<mode>): ...this new pattern.
16529 (cbranch<mode>4): Update after above changes.
16530 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
16531 UNSPEC_PTEST_PTRUE.
16532 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
16533 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
16534 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
16536 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
16539 * builtins.c (builtin_with_linkage_p): New function.
16540 * builtins.h (builtin_with_linkage_p): New function.
16541 * symtab.c (write_symbol): Remove redundant assert.
16542 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
16543 Remove FIXME and use builtin_with_linkage_p.
16545 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16547 PR middle-end/91421
16548 * tree-core.h (function_decl::function_code): Change type to
16550 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
16551 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
16552 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
16553 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
16554 is BUILT_IN_NORMAL.
16555 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
16556 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
16557 (fndecl_built_in_p): Change the type of the "name" argument to
16559 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
16560 after check for DECL_BUILT_IN_CLASS.
16561 * cgraphclones.c (build_function_decl_skip_args): Use
16562 set_decl_built_in_function.
16563 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
16564 * ipa-split.c (split_function): Likewise.
16565 * langhooks.c (add_builtin_function_common): Likewise.
16566 * omp-simd-clone.c (simd_clone_create): Likewise.
16567 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
16568 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
16569 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
16570 DECL_FUNCTION_CODE.
16571 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
16572 instead of DECL_FUNCTION_CODE.
16573 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
16574 instead of DECL_FUNCTION_CODE.
16575 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
16576 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
16577 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
16578 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
16579 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
16580 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
16581 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
16582 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
16583 (alpha_gimple_fold_builtin): Likewise.
16584 * config/arc/arc.c (arc_expand_builtin): Likewise.
16585 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
16586 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
16587 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
16588 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
16589 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
16590 * config/frv/frv.c (frv_expand_builtin): Likewise.
16591 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
16592 (gcn_expand_builtin): Likewise.
16593 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
16594 (fold_builtin_cpu): Likewise.
16595 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
16596 * config/i386/i386.c (ix86_fold_builtin): Likewise.
16597 (ix86_gimple_fold_builtin): Likewise.
16598 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
16599 (ia64_expand_builtin): Likewise.
16600 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
16601 * config/mips/mips.c (mips_expand_builtin): Likewise.
16602 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
16603 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
16604 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
16605 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
16606 * config/pa/pa.c (pa_expand_builtin): Likewise.
16607 * config/pru/pru.c (pru_expand_builtin): Likewise.
16608 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
16609 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16611 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
16612 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
16613 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
16614 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
16615 (rs6000_builtin_reciprocal): Likewise.
16616 * config/rx/rx.c (rx_expand_builtin): Likewise.
16617 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16618 * config/s390/s390.c (s390_expand_builtin): Likewise.
16619 * config/sh/sh.c (sh_expand_builtin): Likewise.
16620 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
16621 (sparc_fold_builtin): Likewise.
16622 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
16623 * config/spu/spu.c (spu_expand_builtin): Likewise.
16624 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
16625 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
16626 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
16627 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
16628 (xtensa_expand_builtin): Likewise.
16630 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16632 PR middle-end/91421
16633 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
16634 before the DECL_FUNCTION_CODE.
16635 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
16636 to check for a BUILT_IN_ALLOCA call.
16637 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
16638 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
16639 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
16640 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16641 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
16642 for BUILT_IN_NORMAL functions.
16643 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
16644 test for BUILT_IN_TM_ABORT.
16645 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
16646 to check for a BUILT_IN_STACK_RESTORE call.
16647 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
16648 * tree-ssa-threadedge.c
16649 (record_temporary_equivalences_from_stmts_at_dest): Check for a
16650 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
16651 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
16652 test for a BUILT_IN_NORMAL call instead of a negative test for
16653 an internal function call.
16655 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16657 * tree.h (build_vector_a_then_b): Declare.
16658 * tree.c (build_vector_a_then_b): New function.
16659 * fold-const-call.c (fold_while_ult): Likewise.
16660 (fold_const_call): Use it to handle IFN_WHILE_ULT.
16661 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
16662 (aarch64_svpattern): New enum.
16663 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
16664 constants through aarch64_expand_mov_immediate.
16665 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
16666 than general_operand as the predicate for operand 1.
16667 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
16668 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
16670 (simd_immediate_info::simd_immediate_info): New overload that
16671 takes a scalar_int_mode and an svpattern.
16672 (simd_immediate_info::u): Add a "pattern" field.
16673 (svpattern_token): New function.
16674 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
16675 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
16676 (aarch64_sve_move_pred_via_while): New functions.
16677 (aarch64_expand_mov_immediate): Try using
16678 aarch64_sve_move_pred_via_while for predicates that contain N ones
16679 followed by M zeros but that do not correspond to a VLnnn pattern.
16680 (aarch64_sve_pred_valid_immediate): New function.
16681 (aarch64_simd_valid_immediate): Use it instead of dealing directly
16682 with PTRUE and PFALSE.
16683 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
16686 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
16688 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
16690 (darwin_override_options): Likewise.
16691 * config/darwin.h: Likewise.
16692 * config/darwin.opt: Likewise.
16693 * config/i386/i386.c (output_pic_addr_const): Likewise.
16694 * config/rs6000/darwin.h: Likewise.
16695 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
16696 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
16697 ... this TARGET_MACHO_SYMBOL_STUBS.
16698 (FUNCTION_PROFILER):Likewise.
16699 * config/i386/i386.h: Likewise.
16701 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16703 * config/i386/i386-expand.c (ix86_expand_vector_extract)
16704 <case E_V2SImode>: Use vec_extr path for
16705 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16706 <case E_V8QImode>: Ditto.
16707 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
16708 Use SWI48 mode iterator. Use %k to output operand 0.
16709 (*mmx_pextrw): New insn pattern.
16710 (*mmx_pextrb): Ditto.
16711 (*mmx_pextrb_zext): Ditto.
16713 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
16715 * target.def (libc_has_function, libc_has_fast_function): Improve
16716 documentation strings.
16717 * doc/tm.texi: Regenerate.
16719 2019-08-13 Caroline Tice <cmtice@google.com>
16722 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
16723 vtv_end.o or vtv_end_preinit.o files if !static.
16725 2019-08-13 Olivier Hainque <hainque@adacore.com>
16727 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
16729 2019-08-13 Olivier Hainque <hainque@adacore.com>
16731 * rtlanal.c (tablejump_casesi_pattern): New function, to
16732 determine if a tablejump insn is a casesi dispatcher. Extracted
16733 from patch_jump_insn.
16734 * rtl.h (tablejump_casesi_pattern): Declare.
16735 * cfgrtl.c (patch_jump_insn): Use it.
16736 * dwarf2cfi.c (create_trace_edges): Use it.
16738 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16741 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
16742 operand is larger than a long int.
16744 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16746 * machmode.h (opt_mode::else_mode): New function.
16747 (opt_mode::else_blk): Use it.
16748 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
16749 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
16750 (aarch64_gen_stepped_int_parallel): Likewise.
16751 (aarch64_stepped_int_parallel_p): Likewise.
16752 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16754 * config/aarch64/aarch64.c
16755 (aarch64_expand_sve_widened_duplicate): Delete.
16756 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
16757 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
16758 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16759 argument. Use early returns in the !CONST_INT_P handling.
16760 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
16761 than handling some inline.
16762 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
16764 (aarch64_simd_container_mode): ...here.
16765 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
16766 (aarch64_sve_ld1rq_operand_p): New functions.
16767 * config/aarch64/predicates.md (descending_int_parallel)
16768 (aarch64_sve_ld1rq_operand): New predicates.
16769 * config/aarch64/constraints.md (UtQ): New constraint.
16770 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
16771 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
16772 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
16773 (@aarch64_sve_reinterpret<mode>): New expander.
16774 (*aarch64_sve_reinterpret<mode>): New pattern.
16775 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
16776 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
16777 (*sve_ld1rq<Vesize>): Replace with...
16778 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
16780 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16782 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
16785 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16787 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
16788 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
16789 (msp430_check_path_for_devices): New.
16790 (parse_devices_csv_1): New.
16791 (parse_devices_csv): New.
16792 (msp430_extract_mcu_data): Try to find devices.csv and search for the
16793 MCU data in devices.csv before using the hard-coded data.
16794 Warn if devices.csv isn't found and the MCU wasn't found in the
16795 hard-coded data either.
16796 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
16797 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
16798 Search for devices.csv on -I and -L paths.
16799 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
16800 msp430_set_driver_var.
16801 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
16802 -mdevices-csv-loc=.
16803 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
16804 searched for devices.csv.
16805 (mwarn-devices-csv): Document option.
16807 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16809 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
16810 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
16811 Use a single Dn alternative instead of separate Dz and Dm
16812 alternatives. Use aarch64_output_sve_move_immediate.
16813 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
16815 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
16816 for predicates too.
16817 (aarch64_output_sve_mov_immediate): Handle predicate modes.
16818 (aarch64_output_ptrue): Delete.
16820 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16822 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
16824 (simd_immediate_info::value, simd_immediate_info::step)
16825 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
16827 (simd_immediate_info::u): ...this new union.
16828 (simd_immediate_info::simd_immediate_info): Update accordingly.
16829 (aarch64_output_simd_mov_immediate): Likewise.
16830 (aarch64_output_sve_mov_immediate): Likewise.
16832 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16834 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
16836 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
16837 (msp430_select_cpu): New spec function.
16838 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
16840 * config/msp430/msp430-devices.c: New file.
16841 * config/msp430/msp430-devices.h: New file.
16842 * config/msp430/msp430.c: Remove msp430_mcu_data.
16843 (msp430_option_override): Use msp430_extract_mcu_data to extract
16845 (msp430_use_f5_series_hwmult): Likewise.
16846 (use_32bit_hwmult): Likewise.
16847 (msp430_no_hwmult): Likewise.
16848 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
16850 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
16852 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
16853 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
16854 Remove hard-coded MCU multilib data.
16856 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16858 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
16859 based on the mode instead of testing properties of it.
16861 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16863 * doc/md.texi: Document the x and y constraints for AArch64.
16864 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
16865 (FP_LO8_REGS): New reg_class.
16866 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
16867 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
16868 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
16869 * config/aarch64/predicates.md (aarch64_simd_register): Use
16870 FP_REGNUM_P instead of checking the classes manually.
16871 * config/aarch64/constraints.md (y): New constraint.
16873 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16875 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
16876 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
16877 * config/aarch64/aarch64-simd.md
16878 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
16879 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
16880 from the asm template.
16881 * config/aarch64/aarch64-sve.md
16882 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
16883 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
16884 from the asm template.
16885 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
16886 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
16887 from the asm template.
16888 * config/aarch64/aarch64-simd-builtins.def: Update comment.
16890 2019-08-13 Martin Liska <mliska@suse.cz>
16892 * value-prof.c (gimple_ic_transform): Add new line.
16893 Print details with MSG_NOTE.
16895 2019-08-13 Martin Liska <mliska@suse.cz>
16897 * doc/invoke.texi: Document automatic detection of jobserver.
16898 * lto-wrapper.c (run_gcc): Detect jobserver always.
16900 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16902 * config/i386/i386-expand.c (ix86_expand_vector_set)
16903 <case E_V2SImode>: Use vec_merge path for
16904 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16905 <case E_V8QImode>: Ditto.
16906 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
16907 (*mmx_pinsrb): Ditto.
16909 2019-08-12 Jakub Jelinek <jakub@redhat.com>
16913 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
16914 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
16915 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
16916 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
16917 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
16919 2019-08-12 Richard Biener <rguenther@suse.de>
16922 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
16925 2019-08-12 Richard Biener <rguenther@suse.de>
16928 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
16929 lang_mask option, always use CL_DRIVER.
16930 (get_options_from_collect_gcc_options): Adjust.
16931 (find_and_merge_options): Likewise.
16932 (run_gcc): Likewise.
16934 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16936 * ipa-predicate.c (add_condition): Restore inverted test.
16938 2019-08-10 Jakub Jelinek <jakub@redhat.com>
16940 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
16941 (enum omp_clause_device_type_kind): New enum.
16942 (struct tree_omp_clause): Add subcode.device_type_kind.
16943 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
16944 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
16945 for device_type clause.
16946 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
16947 * tree-pretty-print.c (dump_omp_clause): Likewise.
16950 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
16953 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
16955 * reload1.c (finish_spills): Do not check ira_conflicts_p when
16956 handling spilled pseudos.
16958 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
16961 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
16962 to preserve the contents of the original insns.
16964 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
16966 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
16967 (addsi3_compare_op2): Likewise.
16969 2019-08-09 Martin Liska <mliska@suse.cz>
16971 * alias.c (alias_ptr_types_compatible_p): Strengten
16972 type comparison in LTO mode.
16974 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
16976 PR middle-end/90313
16977 * tree-tailcall.c (find_tail_calls): Reject calls that might
16978 read from an escaped RESULT_DECL.
16980 2019-08-09 Martin Liska <mliska@suse.cz>
16982 * doc/invoke.texi: Document the option value.
16983 * lto-wrapper.c (run_gcc): Set auto_parallel
16984 only with -flto=auto.
16986 2019-08-09 Martin Liska <mliska@suse.cz>
16988 * opts.c (common_handle_option): Error for an invalid argument
16991 2019-08-09 Martin Liska <mliska@suse.cz>
16993 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
16994 use dump_printf to report optimization.
16995 (sem_variable::merge): Likwise.
16996 (sem_item_optimizer::merge_classes): Use dump_printf to report
16999 2019-08-09 Martin Liska <mliska@suse.cz>
17001 * value-prof.c (gimple_divmod_fixed_value_transform):
17002 Use dump_printf_loc.
17003 (gimple_mod_pow2_value_transform): Likewise.
17004 (gimple_mod_subtract_transform): Likewise.
17005 (init_node_map): Likewise.
17006 (gimple_ic_transform): Likewise.
17007 (gimple_stringops_transform): Likewise.
17009 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17011 * doc/extend.texi: Add const qualifier to ld intrinsics.
17013 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17015 * config/rs6000/dfp.md (D64_D128): Rename to ...
17016 (DDTD): ... this, throughout.
17017 (dfp_suffix): Rename to ...
17018 (q): ... this, throughout.
17020 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17022 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17023 (dfp_suffix): Ditto.
17024 (adddd3, addtd3): Merge to ...
17025 (add<mode>3 for D64_D128): ... this.
17026 (subdd3, subtd3): Merge to ...
17027 (sub<mode>3 for D64_D128): ... this.
17028 (muldd3, multd3): Merge to ...
17029 (mul<mode>3 for D64_D128): ... this.
17030 (divdd3, divtd3): Merge to ...
17031 (div<mode>3 for D64_D128): ... this.
17032 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17033 (*cmp<mode>_internal1 for D64_D128): ... this.
17034 (ftruncdd2, ftrunctd2): Merge to ...
17035 (ftrunc<mode>2 for D64_D128): ... this.
17036 (fixdddi2, fixtddi2): Merge to ...
17037 (fix<mode>di2 for D64_D128): ... this.
17039 2019-08-08 Jim Wilson <jimw@sifive.com>
17042 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17043 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17044 Pass into recursive call.
17045 (riscv_flatten_aggregate_argument): New arg. Pass to
17046 riscv_flatten_aggregate_field.
17047 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17048 riscv_flatten_aggregate_argument twice, with false and true as last
17049 arg. Process result twice. Compare results and warn if different.
17050 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17052 2019-08-08 Martin Liska <mliska@suse.cz>
17055 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17056 * lto-wrapper.c (jobserver_active_p): Likewise.
17058 2019-08-08 Martin Liska <mliska@suse.cz>
17060 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17061 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17062 (create_version_clone_with_body): Likewise.
17064 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17066 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17067 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17068 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17069 GOVD_EXPLICIT flags.
17070 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17071 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17072 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17073 call install_var_field with mask 11 instead of 3.
17074 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17075 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17077 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17079 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17080 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17082 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17084 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17085 MOVPRFX alternatives. Make the GPR alternatives more expensive
17088 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17090 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17091 Disparage the GPR alternative relative to the FPR one.
17092 Fix handling of 8-bit and 16-bit FPR values.
17094 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17096 * config/aarch64/iterators.md (BITWISEV): Delete.
17097 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17098 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17099 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17100 UNSPEC_FMINNMV, UNSPEC_FMINV.
17101 (bit_reduc_op): Delete.
17102 (sve_int_op): New int attribute.
17103 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17104 UNSPEC_FMINNMV, UNSPEC_FMINV.
17105 * config/aarch64/aarch64-sve.md
17106 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17107 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17108 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17109 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17110 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17111 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17113 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17114 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17115 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17116 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17117 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17120 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17122 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17123 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17124 (fms<mode>4, *fms<mode>4): Replace with...
17125 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17126 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17127 Use unspecs instead of rtx codes.
17128 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17129 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17131 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17133 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17135 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17136 * config/aarch64/aarch64-sve.md
17137 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17138 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17139 use a single unspec for the rhs.
17140 (*<su><maxmin><mode>3): Delete.
17141 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17143 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17145 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17146 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17147 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17148 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17149 (optab, sve_fp_op): Handle them.
17150 (SVE_FP_UNARY): Delete.
17151 (optab): Remove sqrt entry.
17152 (sve_fp_op): Remove neg, abs and sqrt entries.
17153 (SVE_COND_FP_UNARY): New int iterator.
17154 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17155 (*<frint_pattern><mode>2): Delete.
17156 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17157 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17158 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17159 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17161 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17163 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17165 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17167 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17168 (UNSPEC_COND_FADD): ...this.
17169 (UNSPEC_COND_SUB): Rename to...
17170 (UNSPEC_COND_FSUB): ...this.
17171 (UNSPEC_COND_MUL): Rename to...
17172 (UNSPEC_COND_FMUL): ...this.
17173 (UNSPEC_COND_DIV): Rename to...
17174 (UNSPEC_COND_FDIV): ...this.
17175 (UNSPEC_COND_MAX): Rename to...
17176 (UNSPEC_COND_FMAXNM): ...this.
17177 (UNSPEC_COND_MIN): Rename to...
17178 (UNSPEC_COND_FMINNM): ...this.
17179 (UNSPEC_COND_LT): Rename to...
17180 (UNSPEC_COND_FCMLT): ...this.
17181 (UNSPEC_COND_LE): Rename to...
17182 (UNSPEC_COND_FCMLE): ...this.
17183 (UNSPEC_COND_EQ): Rename to...
17184 (UNSPEC_COND_FCMEQ): ...this.
17185 (UNSPEC_COND_NE): Rename to...
17186 (UNSPEC_COND_FCMNE): ...this.
17187 (UNSPEC_COND_GE): Rename to...
17188 (UNSPEC_COND_FCMGE): ...this.
17189 (UNSPEC_COND_GT): Rename to...
17190 (UNSPEC_COND_FCMGT): ...this.
17191 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17192 (sve_fp_op_rev): Update accordingly.
17193 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17195 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17197 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17199 * config/aarch64/check-sve-md.awk: New file.
17200 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17201 (insn-conditions.md): Depend on it.
17203 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17206 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17207 (*negsi2_cmpz_zext): Ditto.
17209 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17211 * config/aarch64/iterators.md (commutative): Remove.
17213 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17216 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17217 processing COLLECT_GCC_OPTIONS.
17218 (run_gcc): Likewise.
17220 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17222 PR tree-optimization/91109
17223 * lra-remat.c (update_scratch_ops): Remove assignment of the
17226 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17228 * data-streamer.h (streamer_write_poly_uint64): Declare.
17229 (streamer_read_poly_uint64): Likewise.
17230 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17231 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17232 * ipa-predicate.h (condition::size): Turn into a poly_int64.
17233 (add_condition): Take a poly_int64 size.
17234 * ipa-predicate.c (add_condition): Likewise.
17235 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17236 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17237 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17238 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17239 condition::size as a poly_int64.
17240 (unmodified_parm_1): Take a poly_int64 size pointer.
17241 (unmodified_parm): Likewise.
17242 (unmodified_parm_or_parm_agg_item): Likewise.
17243 (set_cond_stmt_execution_predicate): Update accordingly.
17244 (set_switch_stmt_execution_predicate): Likewise.
17245 (will_be_nonconstant_expr_predicate): Likewise.
17246 (will_be_nonconstant_predicate): Likewise.
17247 (inline_read_section): Stream condition::size as a poly_int.
17248 (ipa_fn_summary_write): Likewise.
17250 2019-08-07 Martin Liska <mliska@suse.cz>
17252 * fold-const.c (twoval_comparison_p): Replace int
17253 with bool as a return type.
17254 (simple_operand_p): Likewise.
17255 (operand_equal_p): Replace int with bool as a return type.
17256 * fold-const.h (operand_equal_p): Likewise.
17258 2019-08-07 Jakub Jelinek <jakub@redhat.com>
17260 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
17261 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
17262 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17263 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
17264 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
17265 * tree-pretty-print.c (dump_omp_clause): Likewise.
17266 * tree-nested.c (convert_nonlocal_omp_clauses,
17267 convert_local_omp_clauses): Likewise.
17268 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17270 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
17271 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
17272 clause with array or reference to array types, no matter what type
17273 except for reference it has.
17275 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
17277 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
17279 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
17281 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
17282 (arch_canonicalize): Support rv32g and rv64g and fix error
17285 2019-08-06 Martin Liska <mliska@suse.cz>
17287 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
17288 and DECL_IS_OPERATOR_DELETE_P.
17290 2019-08-06 Jakub Jelinek <jakub@redhat.com>
17292 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
17293 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
17294 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
17295 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
17296 (gimplify_omp_for): Don't do C++ random access iterator clause
17297 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
17298 don't predetermine the artificial iterator in case of C++ random
17299 access iterators as lastprivate, but private. For OMP_LOOP, force
17300 bind expr around simd body and force for_pre_body before the
17301 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
17302 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
17303 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
17304 diff var of C++ random access iterators. Handle
17305 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
17306 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
17307 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
17308 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
17309 * omp-low.c (lower_rec_input_clauses): For
17310 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
17311 variables instead of default constructing them.
17312 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
17313 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
17314 is_taskloop_ctx check from the assert to the guarding condition.
17316 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
17318 * config/riscv/multilib-generator: (canonical_order): New.
17319 (arch_canonicalize): Dito.
17320 Apply arch_canonicalize for alts.
17322 2019-08-05 Martin Sebor <msebor@redhat.com>
17324 * doc/extend.texi (Common Variable Attributes): Document alias
17327 2019-08-05 Marek Polacek <polacek@redhat.com>
17329 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
17330 * doc/invoke.texi: Document -Wcomma-subscript.
17332 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17334 * tree-core.h (tree_function_decl): Make function_code an
17335 independent field. Group the remaining bitfields into bytes
17336 and move decl_type so that it contines to be at a byte boundary.
17337 Leave 12 bits for future expansion.
17339 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17341 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
17342 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
17343 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
17346 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17348 * gimple.h (gimple_move_vops): Declare.
17349 * gimple.c (gimple_move_vops): New function
17350 * gimple-fold.c (replace_call_with_call_and_fold)
17351 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
17352 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
17353 (gimple_fold_call): Use it.
17354 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
17355 * tree-call-cdce.c (use_internal_fn): Likewise.
17356 * tree-if-conv.c (predicate_load_or_store): Likewise.
17357 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
17358 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
17359 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
17360 (update_call_from_tree): Likewise.
17361 * tree-vect-stmts.c (vectorizable_load): Likewise.
17362 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
17364 2019-08-05 Martin Liska <mliska@suse.cz>
17367 * tree-ssa-dce.c (propagate_necessity): Handle new operators
17368 with not arguments.
17369 (eliminate_unnecessary_stmts): Likewise.
17371 2019-08-05 Richard Biener <rguenther@suse.de>
17373 PR middle-end/91169
17374 * fold-const.c (get_array_ctor_element_at_index): Create
17375 offset_ints according to the sign of the index type and treat
17376 that as signed if it is obviously so.
17378 2019-08-05 Jakub Jelinek <jakub@redhat.com>
17381 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
17382 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
17383 _mm256_storeu2_m128i): New function.
17385 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
17387 * config/riscv/riscv.c (riscv_promote_function_mode): New.
17388 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
17390 2019-08-05 Alan Modra <amodra@gmail.com>
17393 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
17394 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
17396 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
17398 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
17399 bug that was fixed in Tcl 8.6.1.
17401 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
17403 * config/rs6000/future.md: New file.
17404 * config/rs6000/rs6000.md: Include future.md.
17405 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
17407 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
17409 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
17410 check to use targetm.slow_unaligned_access instead.
17412 * function.c (assign_param_data_one): Remove unused data members.
17414 2019-08-02 Steve Ellcey <sellcey@marvell.com>
17416 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
17417 build_distinct_type_copy.
17418 (simd_clone_adjust_argument_types): Ditto.
17419 (simd_clone_adjust): Call build_distinct_type_copy here.
17420 (expand_simd_clones): Ditto.
17422 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17425 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
17427 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
17429 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
17430 from 'const void *'.
17431 (sort_locs_in_loop_postorder_cmp): Likewise.
17433 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
17435 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
17436 (hot-bb-count-ws-permille): Likewise.
17437 (hot-bb-frequency-fraction): Likewise.
17438 (unlikely-bb-count-fraction): Likewise.
17439 * params.def (hot-bb-count-fraction): Rework description.
17440 (hot-bb-count-ws-permille): Likewise.
17441 (hot-bb-frequency-fraction): Likewise.
17442 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
17443 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
17445 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17448 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
17451 2019-08-02 Richard Biener <rguenther@suse.de>
17453 * vec.h (vec::sort): Add gcc_qsort_r support.
17454 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
17455 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
17456 to gcc_qsort_r style callback.
17457 (sort_locs_in_loop_postorder_cmp): Likewise.
17458 (analyze_memory_references): Use gcc_sort_r interfaces.
17459 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
17461 2019-08-02 Martin Liska <mliska@suse.cz>
17464 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
17465 to detect working job server.
17466 (driver::detect_jobserver): Test whether jobserver
17467 is active from GCC driver. That will prevent situation where
17468 GCC is invoked from a LD plugin and the linker already uses
17469 file descriptors suggested by make. That leads to a wrong
17471 * gcc.h (driver): Add detect_jobserver.
17472 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
17473 not scanning for --jobserver-auth prefix.
17475 2019-08-02 Jakub Jelinek <jakub@redhat.com>
17477 PR tree-optimization/91201
17478 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
17479 V16QImode extraction without sse4.1 try to use V4SImode lowpart
17482 2019-08-01 Martin Sebor <msebor@redhat.com>
17485 * tree.c (type_initializer_zero_p): Define.
17486 * tree.h (type_initializer_zero_p): New function.
17488 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17490 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
17492 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17494 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
17495 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
17496 * predict.c (maybe_hot_count_p): Likewise.
17497 (maybe_hot_bb_p): Tweak comment.
17498 (maybe_hot_edge_p): Likewise.
17499 (probably_never_executed): Likewise. Minor tweak.
17500 (probably_never_executed_bb_p): Likewise.
17501 (unlikely_executed_edge_p): Likewise.
17502 (probably_never_executed_edge_p): Likewise.
17503 (optimize_function_for_size_p): Likewise.
17504 (optimize_function_for_speed_p): Likewise.
17505 (function_optimization_type): Likewise.
17506 (optimize_bb_for_size_p): Likewise.
17507 (optimize_bb_for_speed_p): Likewise.
17508 (bb_optimization_type): Likewise.
17509 (optimize_edge_for_size_p): Likewise.
17510 (optimize_edge_for_speed_p): Likewise.
17511 (optimize_insn_for_size_p): Likewise.
17512 (optimize_insn_for_speed_p): Likewise.
17513 (optimize_loop_for_size_p): Likewise.
17514 (optimize_loop_for_speed_p): Likewise.
17515 (optimize_loop_nest_for_speed_p): Likewise.
17516 (optimize_loop_nest_for_size_p): Likewise.
17517 (predictable_edge_p): Likewise.
17518 (handle_missing_profiles): Minor tweak.
17520 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
17522 * config/rs6000/predicates.md (pcrel_external_address): Update
17525 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17528 * config/i386/mmx.md (usadv8qi): New expander.
17530 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
17533 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
17534 with reserved names that are in a system header.
17536 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17538 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
17539 (*vec_extractv2si_0_zext_sse4): New insn pattern.
17540 (*vec_extractv2si_0_zext): Ditto.
17541 (*vec_extractv2si_1): Add (rm,x) alternative.
17542 (*vec_extractv2si_1_zext): New insn pattern.
17543 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
17546 2019-08-01 Richard Biener <rguenther@suse.de>
17548 * domwalk.c (bb_postorder): Remove static variable.
17549 (cmp_bb_postorder): Adjust.
17550 (sort_bbs_postorder): Adjust and use gcc_sort_r.
17551 (dom_walker::walk): Adjust.
17553 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
17555 * sort.cc (sort_r_ctx): New struct.
17556 (reorder23): Make templated on context type.
17557 (reorder45): Ditto.
17558 (cmp1): Ditto. Adjust signature.
17560 (mergesort): Ditto.
17561 [CHECKING_P] (cmp2to3): New static function. Use it...
17562 (gcc_qsort) [CHECKING_P]: ...here.
17563 (gcc_sort_r): New function.
17564 * system.h (sort_r_cmp_fn): New function typedef.
17565 (qsort_chk): Adjust signature.
17566 (gcc_sort_r): Declare.
17567 * vec.c (qsort_chk_error): Adjust.
17568 (qsort_chk): Adjust.
17570 2019-08-01 Richard Biener <rguenther@suse.de>
17572 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
17573 (compute_antic): Localize it here.
17575 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
17577 * common/config/riscv/riscv-common.c: Check -march string ends
17580 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
17582 * ipa-devirt.c (type_warning_cmp): Make static.
17583 (decl_warning_cmp): Ditto.
17585 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
17588 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
17589 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
17590 use of deleted rs6000_dejagnu_cpu_index variable.
17591 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
17592 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17593 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
17594 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
17595 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
17596 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17598 2019-07-31 Richard Biener <rguenther@suse.de>
17600 PR tree-optimization/91280
17601 * tree-ssa-structalias.c (get_constraint_for_component_ref):
17602 Decompose MEM_REF manually for offset handling.
17604 2019-07-31 Richard Biener <rguenther@suse.de>
17606 PR tree-optimization/91293
17607 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
17608 of reduction stmts.
17610 2019-07-31 Matt Thomas <matt@3am-software.com>
17611 Nick Hudson <nick@nthcliff.demon.co.uk>
17612 Matthew Green <mrg@eterna.com.au>
17613 Maya Rashish <coypu@sdf.org>
17615 * config.gcc (hppa*-*-netbsd*): New target.
17616 * config/pa/pa-netbsd.h: New file.
17617 * config/pa/pa32-netbsd.h: New file.
17619 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17621 PR tree-optimization/91201
17622 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
17624 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
17626 * config/gcn/gcn-valu.md
17627 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
17628 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
17629 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
17630 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
17631 struct ilist. Add nops for delayeduse insns.
17632 * config/gcn/gcn.md (delayeduse): New attribute.
17633 (*movbi): Remove s_waitcnt from stores.
17634 (*mov<mode>_insn): Likewise.
17635 (*movti_insn): Likewise. Add delayeduse attribute.
17636 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
17637 (atomic_store<mode>): Remove or adjust s_waitcnt.
17639 2019-07-31 Richard Biener <rguenther@suse.de>
17641 * vr-values.h (vr_values::swap_vr_value): New.
17642 (vr_values::free_value_range): likewise.
17643 * vr-values.c (vr_values::swap_vr_value): Implement.
17644 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
17645 Do not return a range or take a var.
17646 (evrp_range_analyzer::stack): Change back to recording a non-const
17648 * gimple-ssa-evrp-analyze.c
17649 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
17651 (evrp_range_analyzer::pop_to_marker): Adjust.
17652 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
17653 (evrp_range_analyzer::pop_value_range): Likewise. Free the
17654 no longer needed value-range.
17656 2019-07-31 Martin Liska <mliska@suse.cz>
17658 * tree-ssa-dce.c (propagate_necessity): Delete operator can
17659 have size and (or) alignment as 2nd and later arguments.
17660 Mark all of them as necessary.
17662 2019-07-31 Richard Biener <rguenther@suse.de>
17664 PR tree-optimization/91178
17665 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
17666 Use tail-recursion.
17668 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17670 PR tree-optimization/91201
17671 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
17672 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
17674 (reduc_plus_scal_<mode>): Improve formatting by introducing
17677 2019-07-31 Sudakshina Das <sudi.das@arm.com>
17679 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
17680 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
17681 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
17682 (aarch64_init_tme_builtins): New.
17683 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
17684 (aarch64_expand_builtin_tme): New.
17685 (aarch64_expand_builtin): Handle TME builtins.
17686 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
17687 __ARM_FEATURE_TME when enabled.
17688 * config/aarch64/aarch64-option-extensions.def: Add "tme".
17689 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
17691 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
17692 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
17694 (tstart, ttest, tcommit, tcancel): New instructions.
17695 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
17696 (__tcancel, __ttest): New.
17697 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
17698 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
17699 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
17700 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
17701 * config/arm/types.md: Add new tme type attr.
17702 * doc/invoke.texi: Document "tme".
17704 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
17706 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
17707 warn_unused_result attribute.
17708 (cmse_check_address_range): Add warn_unused_result attribute.
17710 2019-07-31 Richard Biener <rguenther@suse.de>
17712 PR tree-optimization/91257
17713 * tree-vrp.c (union_ranges): Unify equality and less tests
17714 by using compare_values. Re-order cheap tests first.
17716 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17718 PR middle-end/91301
17719 * gimplify.c (gimplify_omp_for): If for class iterator on
17720 distribute parallel for there is no data sharing clause
17721 on inner_for_stmt, look for private clause on combined
17722 parallel too and if found, move it to inner_for_stmt.
17724 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
17726 * lra-int.h (lra_operand_data): Remove early_clobber field.
17727 (lra_insn_reg): Likewise.
17728 * lra.c (debug_operand_data): Update accordingly.
17729 (setup_operand_alternative): Likewise.
17730 (new_insn_reg): Likewise. Remove early_clobber parameter.
17731 (collect_non_operand_hard_regs): Update call accordingly.
17732 Don't assign to lra_insn_reg::early_clobber.
17733 (add_regs_to_insn_regno_info): Remove early_clobber parameter
17734 and update calls to new_insn_reg.
17735 (lra_update_insn_regno_info): Update calls accordingly.
17736 * lra-constraints.c (update_and_check_small_class_inputs): Take the
17737 alternative number as a parameter and test whether the operand
17738 is earlyclobbered in that particular alternative.
17739 (process_alt_operands): Update call accordingly. Use per-alternative
17740 checks for earyclobber here too.
17741 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
17742 against zero for IRA_UNKNOWN_ALT.
17744 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17746 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
17748 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
17750 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
17751 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17753 2019-07-30 Martin Liska <mliska@suse.cz>
17756 * cgraph.c (cgraph_edge::make_direct): Use
17757 edge->indirect_unknown_callee as edge->resolve_speculation can
17758 deallocate edge which is this pointer.
17760 2019-07-30 Richard Biener <rguenther@suse.de>
17762 PR tree-optimization/91257
17763 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
17765 2019-07-30 Martin Liska <mliska@suse.cz>
17767 * doc/invoke.texi: Document new behavior.
17768 * lto-wrapper.c (cpuset_popcount): New function
17769 is a copy of libgomp/config/linux/proc.c.
17770 (init_num_threads): Likewise.
17771 (run_gcc): Automatically detect core count for -flto.
17772 (jobserver_active_p): New function.
17774 2019-07-30 Richard Biener <rguenther@suse.de>
17776 PR tree-optimization/91257
17777 * bitmap.h (bitmap_ior_into_and_free): Declare.
17778 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
17779 whether to add the unliked element to the freelist.
17780 (bitmap_list_insert_element_after): Add defaulted param for
17781 an already allocated element.
17782 (bitmap_ior_into_and_free): New function.
17783 * tree-ssa-structalias.c (condense_visit): Reduce the
17784 ponts-to and edge bitmaps of the SCC members in a
17785 logarithmic fashion rather than all to one.
17787 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
17789 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
17790 parameter. When nonnull, make sure that the addition or subtraction
17791 has the same condition.
17792 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
17793 for CFN_COND_MUL too.
17795 2019-07-30 Richard Biener <rguenther@suse.de>
17797 PR tree-optimization/91291
17798 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
17801 2019-07-30 Jakub Jelinek <jakub@redhat.com>
17803 PR middle-end/91216
17804 * omp-low.c (global_nonaddressable_vars): New variable.
17805 (use_pointer_for_field): For global decls, if they are non-addressable,
17806 remember it in the global_nonaddressable_vars bitmap, if they are
17807 addressable and in the global_nonaddressable_vars bitmap, ignore their
17808 TREE_ADDRESSABLE bit.
17809 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
17810 vars in global_nonaddressable_vars bitmap.
17811 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
17814 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
17815 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
17816 comparison to unsigned HOST_WIDE_INT before shifting it left.
17818 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17820 * config/i386/i386.md (movstrict<mode>): Use register_operand
17821 predicate for operand 0. Add expander condition. Assert that
17822 operand 0 is a SUBREG RTX.
17823 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
17824 Update operand constraints and insn condition.
17825 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
17826 (zero_extendqihi2_and): Do not call gen_movstrictqi.
17827 (*setcc_qi_slp): Use register_operand predicate for operand 0.
17828 Update operand 0 constraints.
17829 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
17831 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17833 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
17834 when -m{code,data}-region are used without -mlarge.
17835 * config/msp430/msp430.c (msp430_option_override): Error when a
17836 non-default code or data region is used without -mlarge.
17837 (msp430_section_attr): Emit a warning and do not add upper/lower/either
17838 attributes when they are used without -mlarge.
17840 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17843 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
17845 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17847 PR middle-end/91242
17848 * wide-int.h (generic_wide_int::sext_elt): New function.
17849 * inchash.h (hash::add_wide_int): Use it instead of elt.
17851 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17853 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
17855 * config/arm/arm.md (<crc_variant>): Rename to...
17856 (arm_<crc_variant>): ... This.
17857 (<cdp>): Rename to...
17858 (arm_<cdp>): ... This.
17859 (<ldc>): Rename to...
17860 (arm_<ldc>): ... This.
17861 (<stc>): Rename to...
17862 (arm_<stc>): ... This.
17863 (<mcr>): Rename to...
17864 (arm_<mcr>): ... This.
17865 (<mrc>): Rename to...
17866 (arm_<mrc>): ... This.
17867 (<mcrr>): Rename to...
17868 (arm_<mcrr>): ... This.
17869 (<mrrc>): Rename to...
17870 (arm_<mrrc>): ... This.
17872 2019-07-29 Richard Biener <rguenther@suse.de>
17874 PR tree-optimization/91257
17875 * tree-ssa-sccvn.h (struct vn_avail): New.
17876 (struct vn_ssa_aux): Add avail member.
17877 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
17878 member, add m_avail_freelist one.
17879 (rpo_elim::~rpo_elim): Remove.
17880 (rpo_elim::eliminate_avail): Adjust to new avail tracking
17882 (rpo_elim::eliminate_push_avail): Likewise.
17883 (do_unwind): Likewise.
17884 (do_rpo_vn): Likewise.
17886 2019-07-29 Richard Biener <rguenther@suse.de>
17888 PR tree-optimization/91257
17889 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
17890 most cases, instead call compare_values which handles the
17891 symbolic ranges we handle specially.
17892 (compare_values_warnv): Do not call operand_less_p but open-code
17893 the effective fold calls. Avoid converting so much.
17895 2019-07-29 Martin Liska <mliska@suse.cz>
17897 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
17898 remove LHS of operator new call. It's handled latter.
17900 2019-07-29 Richard Biener <rguenther@suse.de>
17902 PR tree-optimization/91267
17903 * vr-values.c (vr_values::update_value_range): Add early return
17904 for effectively VARYING lattice entry.
17906 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17909 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
17910 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
17911 necessary if keep_all_vdefs_p is true.
17912 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
17913 that keep_all_vdefs_p is false.
17914 (mark_all_reaching_defs_necessary): Likewise.
17915 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
17917 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17919 * common.opt (Og): Change the initial value of flag_dse to 0.
17920 * opts.c (default_options_table): Move OPT_ftree_dse from
17921 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
17922 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
17923 entry before the OPT_ftree_sra entry.
17924 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
17925 of flags disabled by Og.
17927 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17929 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
17932 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17934 * doc/sourcebuild.texi (check-function-bodies): Document.
17936 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17938 * simplify-rtx.c (simplify_const_unary_operation): Fold a
17939 VEC_DUPLICATE of a fixed-length vector even if the result
17940 is variable-length. Likewise fold a duplicate of a
17941 variable-length vector if the variable-length vector is
17942 itself a duplicate of a fixed-length sequence.
17943 (test_vector_ops_duplicate): Test more cases.
17945 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17947 * vector-builder.h (vector_builder): Add a shape template parameter.
17948 (vector_builder::new_unary_operation): New function, generalizing
17949 the old tree_vector_builder function.
17950 (vector_builder::new_binary_operation): Likewise.
17951 (vector_builder::binary_encoded_nelts): Likewise.
17952 * int-vector-builder.h (int_vector_builder): Update template
17953 parameters to vector_builder.
17954 (int_vector_builder::shape_nelts): New function.
17955 * rtx-vector-builder.h (rtx_vector_builder): Update template
17956 parameters to vector_builder.
17957 (rtx_vector_builder::shape_nelts): New function.
17958 (rtx_vector_builder::nelts_of): Likewise.
17959 (rtx_vector_builder::npatterns_of): Likewise.
17960 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
17961 * tree-vector-builder.h (tree_vector_builder): Update template
17962 parameters to vector_builder.
17963 (tree_vector_builder::shape_nelts): New function.
17964 (tree_vector_builder::nelts_of): Likewise.
17965 (tree_vector_builder::npatterns_of): Likewise.
17966 (tree_vector_builder::nelts_per_pattern_of): Likewise.
17967 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
17968 (tree_vector_builder::new_binary_operation): Delete.
17969 (tree_vector_builder::binary_encoded_nelts): Likewise.
17970 * simplify-rtx.c: Include rtx-vector-builder.h.
17971 (distributes_over_addition_p): New function.
17972 (simplify_const_unary_operation)
17973 (simplify_const_binary_operation): Generalize handling of vector
17974 constants to include variable-length vectors.
17975 (test_vector_ops_series): Add more tests.
17977 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
17980 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
17981 than INDENTIFIER_POINTER.
17983 2019-07-28 Martin Liska <mliska@suse.cz>
17986 * cgraph.c (symbol_table::create_edge): Always allocate
17988 (symbol_table::free_edge): Store summary_id to
17989 edge_released_summary_ids if != -1;
17990 * cgraph.h (NEXT_FREE_NODE): Remove.
17991 (SET_NEXT_FREE_NODE): Likewise.
17992 (NEXT_FREE_EDGE): Likewise.
17993 (symbol_table::release_symbol): Store summary_id to
17994 cgraph_released_summary_ids if != -1;
17995 (symbol_table::allocate_cgraph_symbol): Always allocate
17998 2019-07-28 Alan Modra <amodra@gmail.com>
18000 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18003 2019-07-28 Alan Modra <amodra@gmail.com>
18006 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18008 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18009 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18010 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18012 2019-07-28 Alan Modra <amodra@gmail.com>
18015 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18016 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18017 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18018 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18019 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18020 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18021 in asm_default spec.
18022 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18023 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18025 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18027 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18029 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18032 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18033 * config/aarch64/aarch64-option-extensions.def: Add new comments
18034 and restore easier to read options.
18036 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18038 * convert.c (convert_to_real_1): Move part of conversion code...
18039 * match.pd: ...To here.
18041 2019-07-26 Martin Jambor <mjambor@suse.cz>
18044 * ipa-inline-transform.c (check_speculations_1): New function.
18045 (push_all_edges_in_set_to_vec): Likewise.
18046 (check_speculations): Use check_speculations_1, new parameter
18048 (inline_call): Pass new_edges to check_speculations.
18049 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18051 (speculation_useful_p): Early return true if edge is inlined, remove
18052 later checks for inline_failed.
18054 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18056 PR rtl-optimization/91223
18057 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18058 matching with INOUT operand.
18060 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18062 * stmt.c (expand_case): Try to narrow the index type if it's larger
18063 than a word. Tidy up.
18065 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18067 * cif-code.def (NEVER_CALL): New code.
18068 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18069 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18071 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18073 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18074 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18076 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18078 * ipa-devirt.c (add_type_duplicate): Fix return value.
18080 2019-07-25 Richard Biener <rguenther@suse.de>
18082 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18083 type parameter and use it instead of guessing expression
18084 type from the first operand.
18085 (extract_range_from_binary_expr): Pass expr_type down.
18087 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18089 * config/arm/arm.md (SATrev): Change to code attribute.
18090 (*satsi_<SAT:code>): Adjust for the above.
18091 (*satsi_<SAT:code>_shift): Likewise.
18093 2019-07-25 Richard Biener <rguenther@suse.de>
18095 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18096 Make value_range * temporary const.
18097 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18099 (evrp_range_analyzer::record_ranges_from_): Likewise.
18100 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18101 deal with having recorded a const one.
18102 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18103 Return a const value_range *.
18104 (evrp_range_analyzer::pop_value_range): Likewise.
18105 (evrp_range_analyzer::stack): Record const value_range *s.
18106 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18108 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18109 (format_integer): Likewise.
18110 (sprintf_dom_walker::handle_gimple_call): Likewise.
18111 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18112 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18113 (vrp_prop::get_value_range): Adjust.
18114 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18115 modifying the lattice in-place.
18116 (vrp_prop::visit_stmt): Likewise.
18117 * vr-values.c (vr_values::get_lattice_entry): New private method.
18118 (vr_values::get_value_range): Wrap it and return a const
18120 (vr_values::set_def_to_varying): New.
18121 (vr_values::set_defs_to_varying): Use it.
18122 (vr_values::update_value_range): Likewise.
18123 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18124 (values::op_with_constant_singleton_va): Likewise.
18125 (vr_values::extract_range_for_var_from_co): Likewise.
18126 (vr_values::extract_range_from_ssa_name): Likewise.
18127 (vr_values::extract_range_from_cond_expr): Likewise.
18128 (vr_values::extract_range_basic): Likewise.
18129 (compare_ranges): Take const value_range *, adjust.
18130 (compare_range_with_value): Likewise.
18131 (vrp_valueize): Adjust.
18132 (vrp_valueize_1): Likewise.
18133 (vr_values::get_vr_for_comparison): Return a const value_range *.
18134 (vr_values::compare_name_with_value): Adjust.
18135 (vr_values::compare_names): Likewise.
18136 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18138 (vr_values::vrp_evaluate_conditional): Likewise.
18139 (find_case_label_ranges): Take a const value_range *.
18140 (vr_values::vrp_visit_switch_stmt): Adjust.
18141 (vr_values::extract_range_from_phi_node): Likewise.
18142 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18143 (vr_values::simplify_abs_using_ranges): Likewise.
18144 (test_for_singularity): Take a const value_range *.
18145 (range_fits_type_p): Likewise.
18146 (vr_values::simplify_cond_using_ranges_1): Adjust.
18147 (vr_values::simplify_cond_using_ranges_2): Likewise.
18148 (vr_values::simplify_switch_using_ranges): Likewise.
18149 (vr_values::simplify_float_conversion_usi): Likewise.
18150 (vr_values::two_valued_val_range_p): Likewise.
18151 * vr-values.h (vr_values::get_value_range): Return a const
18153 (vr_values::set_def_to_varying): New.
18154 (vr_values::get_lattice_entry): New private method.
18155 (vr_values::get_vr_for_comparison): Return a const value_range *.
18157 2019-07-25 Martin Liska <mliska@suse.cz>
18158 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18161 * common.opt: Add -fallocation-dce
18162 * gimple.c (gimple_call_operator_delete_p): New.
18163 * gimple.h (gimple_call_operator_delete_p): Likewise.
18164 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18165 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18166 DECL_IS_OPERATOR_DELETE_P.
18167 (mark_all_reaching_defs_necessary_1): Likewise.
18168 (propagate_necessity): Likewise.
18169 (eliminate_unnecessary_stmts): Handle
18170 gimple_call_operator_delete_p.
18171 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18172 Add packing of OPERATOR_DELETE.
18173 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18175 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18176 (DECL_SET_IS_OPERATOR_DELETE): New.
18177 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18179 2019-07-25 Martin Liska <mliska@suse.cz>
18181 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18182 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18183 * coverage.c (coverage_begin_function): Likewise.
18184 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18185 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18186 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18187 (sem_item::hash_referenced_symbol_properties): Likewise.
18188 * lto-streamer-out.c (hash_tree): Likewise.
18189 * predict.c (expr_expected_value_1): Likewise.
18190 * tree-inline.c (expand_call_inline): Likewise.
18191 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18192 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18193 * tree-core.h (enum function_decl_type): New enum.
18194 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18195 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18196 (set_function_decl_type): Likewise.
18197 (DECL_IS_OPERATOR_NEW_P): New.
18198 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18199 (DECL_LAMBDA_FUNCTION): Likewise.
18200 (DECL_LAMBDA_FUNCTION_P): Likewise.
18201 (DECL_IS_OPERATOR_NEW): Remove.
18202 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18204 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18206 * ipa-profile.c (get_most_common_single_value): Use
18207 get_nth_most_common_value.
18208 * profile.c (sort_hist_value): New function.
18209 (compute_value_histograms): Call sort_hist_value to sort the
18210 values after loading from disk.
18211 * value-prof.c (get_most_common_single_value): Rename to ...
18212 get_nth_most_common_value. Add input params n, return
18213 the n_th value and count.
18214 (gimple_divmod_fixed_value_transform): Use
18215 get_nth_most_common_value.
18216 (gimple_ic_transform): Likewise.
18217 (gimple_stringops_transform): Likewise.
18218 * value-prof.h (get_most_common_single_value): Add input params
18221 2019-07-25 Richard Biener <rguenther@suse.de>
18223 PR tree-optimization/91236
18224 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18225 size of CONSTRUCTOR write. Fix buffer size we pass to
18226 native_encode_expr.
18228 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18230 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18231 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18234 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18236 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18237 explicitly disabled with --disable-initfini-array.
18239 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18241 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18244 2019-07-24 Martin Sebor <msebor@redhat.com>
18246 PR tree-optimization/91183
18247 PR tree-optimization/86688
18248 * builtins.c (compute_objsize): Handle MEM_REF.
18249 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18250 (get_min_string_length): Remove.
18251 (count_nonzero_bytes): New function.
18252 (handle_char_store): Rename...
18253 (handle_store): to this. Handle multibyte stores via integer types.
18254 (strlen_check_and_optimize_stmt): Adjust conditional and the called
18257 2019-07-24 Martin Sebor <msebor@redhat.com>
18260 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
18261 (diagnostic_report_diagnostic): Same.
18262 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
18263 (diagnostic_context::lang_mask): New data member.
18264 * ipa-pure-const.c (suggest_attribute): Use
18265 lang_hooks.option_lang_mask ().
18266 * opts-common.c (option_enabled): Handle new argument.
18267 (get_option_state): Pass an additional argument.
18268 * opts.c (print_filtered_help): Print supported languages for
18269 unsupported options. Adjust printing of current state.
18270 * opts.h (option_enabled): Add argument.
18271 * toplev.c (print_switch_values): Use lang_mask.
18272 (general_init): Set global_dc->lang_mask.
18274 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18277 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
18279 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
18281 * cgraphunit.c (symbol_table::compile): Start and stop
18282 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
18283 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
18285 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
18287 * gimplify.c (flag_instrument_functions_exclude_p): Include
18288 namespace/class information in the printable name.
18289 * opts.c (add_comma_separated_to_vector): Add NUL terminator
18290 to tokens entered into the vector.
18292 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
18294 * tree-nested.c (build_simple_mem_ref_notrap): New function.
18295 (get_static_chain): Call it instead of build_simple_mem_ref.
18296 (get_frame_field): Likewise.
18297 (get_nonlocal_debug_decl): Likewise.
18298 (convert_nonlocal_reference_op): Likewise.
18300 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
18302 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
18304 (arc_compute_frame_size): Millicode is disabled when compiling
18306 (arc_return_address_register): Likewise.
18307 (arc_compute_function_type): Likewise.
18308 (arc_compute_frame_size): Likewise.
18309 (secondary_reload_info): Likewise.
18310 (arc_get_unalign): Likewise.
18311 (arc_can_use_return_insn): Declare.
18312 * config/arc/arc.c (AUX_LP_START): Define
18313 (AUX_LP_END): Likewise.
18314 (arc_frame_info): Update gmask member to 64-bit datum.
18315 (GMASK_LEN): Update.
18316 (arc_compute_function_type): Make it static, move it forward.
18317 (arc_must_save_register): Update, consider the extra regs.
18318 (arc_compute_millicode_save_restore_regs): Update to use the 64
18320 (arc_compute_frame_size): Likewise.
18321 (arc_enter_leave_p): Likewise.
18322 (arc_save_callee_saves): Likewise.
18323 (arc_restore_callee_saves): Likewise.
18324 (arc_save_callee_enter): Likewise.
18325 (arc_restore_callee_leave): Likewise.
18326 (arc_save_callee_milli): Likewise.
18327 (arc_restore_callee_milli): Likewise.
18328 (arc_expand_prologue): Add new interrupt handling.
18329 (arc_return_address_register): Make it static, move it forward.
18330 (arc_expand_epilogue): Add new interrupt handling.
18331 (arc_get_unalign): Delete.
18332 (arc_epilogue_uses): Make sure we do not remove the extra
18333 saved/restored registers when interrupt.
18334 (arc_can_use_return_insn): New function.
18335 (push_reg): Likewise.
18336 (pop_reg): Likewise.
18337 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
18339 (arc_restore_callee_saves): Likewise, but restoring.
18340 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
18341 (R33_REG): Likewise.
18342 (R34_REG): Likewise.
18343 (R35_REG): Likewise.
18344 (R36_REG): Likewise.
18345 (R37_REG): Likewise.
18346 (R38_REG): Likewise.
18347 (R39_REG): Likewise.
18348 (R45_REG): Likewise.
18349 (R46_REG): Likewise.
18350 (R47_REG): Likewise.
18351 (R48_REG): Likewise.
18352 (R49_REG): Likewise.
18353 (R50_REG): Likewise.
18354 (R51_REG): Likewise.
18355 (R52_REG): Likewise.
18356 (R53_REG): Likewise.
18357 (R54_REG): Likewise.
18358 (R55_REG): Likewise.
18359 (R56_REG): Likewise.
18360 (R58_REG): Likewise.
18361 (type): Add rtie attribute.
18362 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
18363 (movsi_insn): Accept moves to lp_count.
18364 (rtie): Update pattern.
18365 (simple_return): Simplify it, don't use this pattern as a return
18367 (arc600_rtie): New pattern.
18368 (p_return_i): Clean up.
18369 (return): Likewise.
18370 * config/arc/builtins.def (rtie): Only available for non ARC6xx
18372 * config/arc/predicates.md (move_src_operand): Consider lp_count
18375 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
18377 * config/s390/predicates.md (addv_const_operand): New predicate.
18378 * config/s390/s390-modes.def (CCO): New condition code mode.
18379 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
18380 (s390_branch_condition_mask): Likewise.
18381 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
18382 ("mulv<mode>4"): New expanders.
18383 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
18384 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
18385 pattern definitions.
18387 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18389 PR middle-end/91166
18390 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
18391 (define_predicates): Add entry for uniform_vector_p.
18392 (vec_same_elem_p): New match pattern.
18394 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18397 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
18398 * config/i386/darwin32-biarch.h .. to here.
18399 * config/i386/darwin64-biarch.h: Adjust comments.
18400 * config/rs6000/darwin32-biarch.h: Likewise.
18401 * config/rs6000/darwin64-biarch.h: Likewise.
18402 * config.gcc: Missed commit from r273746
18403 (*-*-darwin*): Don't include CPU t-darwin here.
18404 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18405 an error message if i686-darwin configuration is attempted for
18408 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
18411 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
18412 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18413 an error message if i686-darwin configuration is attempted for
18415 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
18416 (powerpc-*-darwin*): Use biarch files where needed.
18417 (powerpc64-*-darwin*): Likewise.
18418 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
18419 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18421 * config/i386/darwin32-biarch.h: New.
18422 * config/i386/darwin64.h: Rename.
18423 * config/i386/darwin64-biarch.h: To this.
18424 * config/i386/t-darwin: Rename.
18425 * config/i386/t-darwin32-biarch: To this.
18426 * config/i386/t-darwin64: Rename.
18427 * config/i386/t-darwin64-biarch: To this.
18428 * config/rs6000/darwin32-biarch.h: New.
18429 * config/rs6000/darwin64.h: Rename.
18430 * config/rs6000/darwin64-biarch.h: To this.
18431 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18433 * config/rs6000/t-darwin8: Rename.
18434 * config/rs6000/t-darwin32-biarch: To this.
18435 * config/rs6000/t-darwin64 Rename.
18436 * config/rs6000/t-darwin64-biarch: To this.
18438 2019-07-23 Martin Sebor <msebor@redhat.com>
18440 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
18442 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18444 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
18445 (rh): New alias for it.
18447 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18449 * gdbhooks.py: Pass replace=True to
18450 gdb.printing.register_pretty_printer.
18452 2019-07-23 Richard Biener <rguenther@suse.de>
18455 * lto-streamer-in.c (input_function): Drop inline-entry markers
18456 that ended up with an unknown location block.
18458 2019-07-23 Richard Biener <rguenther@suse.de>
18460 PR tree-optimization/83518
18461 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
18462 init from a constant even when partial defs are already recorded.
18464 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18466 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
18467 * config/i386/znver1.md: Enable patterns for znver2 and add store
18468 variants which use extra AGU unit.
18470 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18472 * config/i386/i386-options.c (ix86_option_override_internal): Default
18473 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
18474 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
18477 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18479 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
18480 (znver2_costs): Update 256 bit SSE costs and multiplication.
18482 2019-07-23 Jan Beulich <jbeulich@suse.com>
18484 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
18485 Require only AVX512F.
18486 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
18487 alternative expanding to vpternlog.
18489 2019-07-23 Martin Liska <mliska@suse.cz>
18491 * dwarf2out.c (gen_producer_string): Canonize -flto=N
18492 to -flto in dwarf producer string.
18494 2019-07-23 Richard Biener <rguenther@suse.de>
18496 * tree-cfg.c (label_for_bb): Remove global var.
18497 (main_block_label): Take label_for_bb as argument.
18498 (cleanup_dead_labels_eh): Likewise, adjust.
18499 (cleanup_dead_labels): Adjust.
18501 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18503 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
18504 Configurations): Add documentation for __builtin_mtfsf.
18506 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
18508 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
18509 * config/riscv/riscv.c (riscv_constant_alignment): Use
18510 riscv_align_data_type.
18511 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
18512 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18513 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18514 * config/riscv/riscv.opt (malign-data): New.
18515 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
18517 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
18519 * cgraph.c (dump_graphviz): New function.
18520 * cgraph.h (dump_graphviz): New function.
18521 * symtab.c (dump_graphviz): New function.
18523 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
18525 * config/aarch64/aarch64-simd.md
18526 (*aarch64_simd_sra<mode>): New.
18527 * config/aarch64/iterators.md
18528 (SHIFTRT): New iterator.
18529 (sra_op): New attribute.
18531 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18533 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
18534 callee-saved regs R4->R10 in an interrupt function that calls another
18537 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18539 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
18540 (_mm_blendv_epi8): New.
18542 2019-07-22 Richard Biener <rguenther@suse.de>
18544 PR tree-optimization/91221
18545 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
18546 restrict partial-def handling of empty constructors and
18547 memset to refs with known offset.
18549 2019-07-22 Jan Beulich <jbeulich@suse.com>
18551 * config/i386/sse.md (ternlogsuffix): New.
18552 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
18554 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
18556 2019-07-22 Martin Liska <mliska@suse.cz>
18558 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
18560 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
18562 2019-07-22 Martin Liska <mliska@suse.cz>
18564 * lto-section-in.c (lto_get_section_data):
18565 Use new function get_compression.
18566 * lto-streamer-out.c (produce_lto_section): Use
18567 set_compression to encode compression algorithm.
18568 * lto-streamer.h (struct lto_section): Do not
18569 use bitfields in the format.
18571 2019-07-22 Martin Liska <mliska@suse.cz>
18574 * opts-common.c (decode_cmdline_option): Decode
18575 argument of -Werror and check it for a wrong language.
18576 * opts-global.c (complain_wrong_lang): Remove such case.
18578 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
18580 * config/arc/arc.c (prepare_move_operands): Always use an
18581 intermediate register when storing a TLS symbols.
18583 2019-07-22 Stafford Horne <shorne@gmail.com>
18585 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
18588 2019-07-22 Stafford Horne <shorne@gmail.com>
18590 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
18591 and munordered-float validations.
18592 * config/or1k/constraints.md (d): New register constraint.
18593 * config/or1k/predicates.md (fp_comparison_operator): New.
18594 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
18596 (or1k_expand_compare): Normalize unordered comparisons.
18597 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
18598 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
18599 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
18600 * config/or1k/or1k.md (type): Add fpu.
18601 (fpu): New instruction reservation.
18602 (F, f, fr, fi, FI, FOP, fop): New.
18603 (<fop><F:mode>3): New ALU instruction definition.
18604 (float<fi><F:mode>2): New conversion instruction definition.
18605 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
18606 (fpcmpcc): New code iterator.
18607 (*sf_fp_insn): New instruction definition.
18608 (cstore<F:mode>4): New expand definition.
18609 (cbranch<F:mode>4): New expand definition.
18610 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
18611 munordered-float): New options.
18612 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
18615 2019-07-22 Stafford Horne <shorne@gmail.com>
18617 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
18618 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
18619 documenation to be more clear.
18620 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
18622 * config/or1k/or1k.opt (mrori): New option.
18623 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
18624 msfimm, mshftimm): Rewrite documentation to be more clear.
18625 * config/or1k/or1k.md (insn_support): Add ror and rori.
18626 (enabled): Add conditions for ror and rori.
18627 (rotrsi3): Replace condition for shftimm with ror and rori.
18629 2019-07-22 Stafford Horne <shorne@gmail.com>
18632 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
18633 (extend<mode>si2): Update predicate.
18634 * config/or1k/predicates.md (volatile_mem_operand): New.
18635 (reg_or_mem_operand): New.
18637 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
18639 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
18640 * config/rs6000/rs6000-call.c: ... to here.
18642 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18644 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
18647 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18649 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
18651 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18653 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
18655 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18657 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
18658 (any_memory_operand): New predicate.
18659 (reg_or_mem_operand): Use it.
18661 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18664 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
18666 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
18668 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
18669 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
18671 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18673 * tree.def (OMP_LOOP): New tree code.
18674 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
18675 (enum omp_clause_bind_kind): New enum.
18676 (struct tree_omp_clause): Add subcode.bind_kind.
18677 * tree.h (OMP_LOOP_CHECK): Rename to ...
18678 (OMP_LOOPING_CHECK): ... this.
18679 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
18680 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
18681 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
18682 (OMP_CLAUSE_BIND_KIND): Define.
18683 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18684 bind clause entries.
18685 (walk_tree_1): Handle OMP_CLAUSE_BIND.
18686 * tree-pretty-print.c (dump_omp_clause): Likewise.
18687 (dump_generic_node): Handle OMP_LOOP.
18688 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
18689 (in_omp_construct): New variable.
18690 (is_gimple_stmt): Handle OMP_LOOP.
18691 (gimplify_scan_omp_clauses): For lastprivate don't set
18692 check_non_private if code == OMP_LOOP. For reduction clause
18693 on OMP_LOOP combined with parallel or teams propagate as shared
18694 on the combined construct. Handle OMP_CLAUSE_BIND.
18695 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
18696 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
18697 for constructs from a loop construct to gimplify_scan_omp_clauses.
18698 Don't predetermine iterator linear on OMP_SIMD from loop construct.
18699 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
18700 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
18701 to match the implicit ORT_TARGET construct around whole body.
18702 Temporarily clear in_omp_construct when processing body.
18703 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
18704 etc. temporarily set in_omp_construct when processing body.
18705 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
18706 * omp-low.c (struct omp_context): Add loop_p.
18707 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
18708 in that the original var might be private.
18709 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
18710 (check_omp_nesting_restrictions): Adjust nesting restrictions for
18711 addition of loop construct.
18712 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
18714 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
18715 lastprivate non-addressable iterator of a collapse(1) simd.
18717 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
18719 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
18722 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
18724 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
18725 refer to default conditions. Warn for the 'y' spec which is ignored
18726 by current linkers.
18728 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
18730 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
18731 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18732 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18733 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18734 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18735 init_cumulative_args, rs6000_promote_function_mode,
18736 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18737 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18738 rs6000_function_arg_boundary, rs6000_parm_offset,
18739 rs6000_parm_start, rs6000_arg_size,
18740 rs6000_darwin64_record_arg_advance_flush,
18741 rs6000_darwin64_record_arg_advance_recurse,
18742 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18743 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18744 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18745 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18746 rs6000_finish_function_arg, rs6000_function_arg,
18747 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18748 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18749 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18750 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18751 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18752 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18753 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18754 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18755 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18756 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18757 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18758 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18759 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18760 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18761 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18762 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18763 get_element_number, altivec_expand_vec_set_builtin,
18764 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18765 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18766 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18767 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18768 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18769 rs6000_expand_builtin, rs6000_vector_type,
18770 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18771 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18772 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
18774 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
18775 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18776 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18777 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18778 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18779 init_cumulative_args, rs6000_promote_function_mode,
18780 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18781 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18782 rs6000_function_arg_boundary, rs6000_parm_offset,
18783 rs6000_parm_start, rs6000_arg_size,
18784 rs6000_darwin64_record_arg_advance_flush,
18785 rs6000_darwin64_record_arg_advance_recurse,
18786 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18787 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18788 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18789 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18790 rs6000_finish_function_arg, rs6000_function_arg,
18791 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18792 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18793 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18794 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18795 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18796 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18797 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18798 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18799 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18800 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18801 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18802 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18803 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18804 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18805 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18806 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18807 get_element_number, altivec_expand_vec_set_builtin,
18808 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18809 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18810 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18811 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18812 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18813 rs6000_expand_builtin, rs6000_vector_type,
18814 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18815 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18816 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
18817 to here from rs6000.c.
18818 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
18819 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
18820 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
18821 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
18822 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
18823 rs6000_return_in_memory, rs6000_return_in_msb,
18824 rs6000_pass_by_reference, setup_incoming_varargs,
18825 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
18826 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
18827 rs6000_function_arg_padding, rs6000_function_arg,
18828 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
18829 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
18830 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
18831 rs6000_passes_long_double, rs6000_passes_vector,
18832 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
18833 altivec_builtin_mask_for_load) Add declarations.
18834 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
18835 * config/config.gcc: Add new source file rs6000-call.c to garbage
18836 collector and extra_objs.
18838 2019-07-19 Jeff Law <law@redhat.com>
18840 PR tree-optimization/86061
18841 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
18842 strncpy. Drop some trivial dead code.
18843 (maybe_trim_memstar_call): Handle strncpy.
18845 2019-07-19 Richard Biener <rguenther@suse.de>
18847 PR tree-optimization/91211
18848 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18849 memset encoding size.
18851 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
18854 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
18856 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
18859 * ipa-inline.c (recursive_inlining): Fix limits check.
18861 2019-07-19 Richard Biener <rguenther@suse.de>
18863 PR tree-optimization/91200
18864 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
18865 no PHI nodes in middle-bb.
18867 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
18869 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
18871 * config/aarch64/aarch64-option-extensions.def: Likewise.
18873 2019-07-19 Jakub Jelinek <jakub@redhat.com>
18875 PR middle-end/91190
18876 * function.c (insert_temp_slot_address): Store into the hash table
18877 a copy of address to avoid RTL sharing issues.
18879 2019-07-19 Richard Biener <rguenther@suse.de>
18881 PR tree-optimization/91207
18883 2019-07-17 Richard Biener <rguenther@suse.de>
18885 PR tree-optimization/91178
18886 * tree-vect-stmts.c (get_group_load_store_type): For SLP
18887 loads with a gap larger than the vector size always use
18889 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
18890 avoid loading vectors that are only contained in the gap
18891 and thus are not needed.
18893 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
18895 * config/i386/i386.md (*addqi_2_slp): Remove.
18896 (*<code>qi_2_slp): Ditto.
18898 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
18900 * config/rs6000/predicates.md (prefixed_mem_operand): Call
18901 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
18902 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
18903 Rename function from rs6000_prefixed_address.
18904 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18906 (TARGET_TOC): Likewise.
18907 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18909 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18911 (TARGET_TOC): Likewise.
18912 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18914 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18916 (TARGET_TOC): Likewise.
18917 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
18918 check to require -mcmodel=medium for pc-relative addressing.
18919 (create_TOC_reference): Add assertion for TARGET_TOC.
18920 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
18922 (rs6000_emit_move): Likewise.
18923 (TOC_alias_set): Rename TOC alias set static variable from 'set'
18924 to 'TOC_alias_set'.
18925 (get_TOC_alias_set): Likewise.
18926 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
18928 (rs6000_can_eliminate): Likewise.
18929 (rs6000_prefixed_address_mode_p): Rename function from
18930 rs6000_prefixed_address.
18931 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
18932 TARGET_HAS_TOC and not pc-relative.
18933 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
18934 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18936 (TARGET_TOC): Likewise.
18937 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18940 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
18943 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
18944 for operand 0. Do not use (match_dup) to match operand 1 with
18945 operand 0. Add check in insn constraint that either input operand
18946 matches operand 0. Use SWI12 mode iterator to also handle
18948 (*and<mode>_1_slp): Ditto.
18949 (*<code>qi_1_slp): Ditto.
18950 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
18951 Do not use (match_dup) to match operand 1 with operand 0. Add
18952 check in insn constraint that operand 1 matches operand 0.
18953 Use SWI12 mode iterator to also handle HImode operands.
18954 (*ashl<mode>3_1_slp): Ditto.
18955 (*<shift_insn><mode>3_1_slp): Ditto.
18956 (*<rotate_insn><mode>3_1_slp): Ditto.
18958 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
18960 * config/arm/arm-builtins.c
18961 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
18962 (arm_expand_unop_builtin): Likewise.
18963 * config/arm/crypto.md
18964 (crypto_sha1h): Convert from define_insn to define_expand.
18965 (crypto_<crypto_pattern>): Likewise.
18966 (crypto_sha1h_lb): New define_insn.
18967 (crypto_<crypto_pattern>_lb): Likewise.
18969 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
18972 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
18973 (vsha1cq_u32): Likewise.
18974 (vsha1pq_u32): Likewise.
18975 (vsha1mq_u32): Likewise.
18976 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
18978 (crypto_sha1c): Correct vec select.
18979 (crypto_sha1m): Likewise.
18980 (crypto_sha1p): Likewise.
18982 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
18984 * config/arm/predicates.md (arm_borrow_operation): New predicate.
18985 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
18986 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
18987 (subdi_zesidi_zesidi): Likewise.
18988 (negdi2_compare, negdi2_insn): Likewise.
18989 (negdi_extensidi): Likewise.
18990 (negdi_zero_extendsidi): Likewise.
18991 (arm_cmpdi_insn): Likewise.
18992 (subsi3_carryin): Use arm_borrow_operation.
18993 (subsi3_carryin_const): Likewise.
18994 (subsi3_carryin_const0): Likewise.
18995 (subsi3_carryin_compare): Likewise.
18996 (subsi3_carryin_compare_const): Likewise.
18997 (subsi3_carryin_compare_const0): Likewise.
18998 (subsi3_carryin_shift): Likewise.
18999 (rsbsi3_carryin_shift): Likewise.
19000 (negsi2_carryin_compare): Likewise.
19002 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19004 PR tree-optimization/91137
19005 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19006 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19007 Init, use and fini the above new field.
19008 (determine_base_object_1): New function.
19009 (determine_base_object): Reimplement using walk_tree.
19011 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19013 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19014 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19015 CLEANUP_FORCE_FAST_DCE is set.
19016 * ifcvt.c (rest_of_handle_if_conversion): Pass
19017 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19018 if-conversion succeeded.
19020 2019-07-18 Richard Biener <rguenther@suse.de>
19022 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19023 branches to make code less indented.
19025 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19027 PR middle-end/81824
19028 * attribs.c (decls_mismatched_attributes): Simplify the logic
19029 that avoids duplicates and false positives.
19031 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19033 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19034 data into data section when generating PIC code.
19035 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19036 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19037 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19038 return 2 for SOM and 0 for other targets.
19040 2019-07-17 Jeff Law <law@redhat.com>
19042 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19043 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19044 avoid unexpected switch statement fallthru.
19046 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19048 * config/i386/i386.md (*add<dwi>3_doubleword):
19049 Remove redundant constraints.
19050 (*add<mode>_1): Ditto.
19053 (*addqi_1_slp): Ditto.
19054 (*add<mode>_2): Ditto.
19055 (*addv<mode>4): Ditto.
19056 (*sub<dwi>3_doubleword): Ditto.
19057 (*sub<mode>_1): Ditto.
19058 (*subqi_1_slp): Ditto.
19059 (*sub<mode>_2): Ditto.
19060 (*subv<mode>4): Ditto.
19061 (*sub<mode>_3): Ditto.
19062 (@add<mode>3_carry): Ditto.
19063 (@sub<mode>3_carry): Ditto.
19064 (*add<mode>3_cc_overflow_1): Ditto.
19065 (*add<mode>3_zext_cc_overflow_2): Ditto.
19067 (*and<mode>_1): Ditto.
19069 (*andqi_1_slp): Ditto.
19071 (*andqi_2_maybe_si): Ditto.
19072 (*and<mode>_2): Ditto.
19073 (*andqi_2_slp): Ditto.
19074 (*<code><mode>_1): Ditto.
19075 (*<code>qi_1): Ditto.
19076 (*<code>qi_1_slp): Ditto.
19077 (*<code><mode>_2): Ditto.
19078 (*<code>qi_2_slp): Ditto.
19080 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19082 * alias.c (record_component_aliases): Do not simplify pointed-to
19083 types of ODR types.
19085 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19087 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19088 partial reg stall on alternative 2.
19090 2019-07-17 Richard Biener <rguenther@suse.de>
19092 PR tree-optimization/91178
19093 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19094 lower SSA names to avoid quadratic behavior in the common case.
19095 * tree-data-ref.c (split_constant_offset): Add limit argument
19096 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19097 (split_constant_offset_1): Add limit argument and use it to
19098 limit SSA def walking. Optimize the common plus/minus case.
19100 2019-07-17 Richard Biener <rguenther@suse.de>
19102 PR tree-optimization/91178
19103 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19104 loads with a gap larger than the vector size always use
19106 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19107 avoid loading vectors that are only contained in the gap
19108 and thus are not needed.
19110 2019-07-17 Richard Biener <rguenther@suse.de>
19112 PR tree-optimization/91180
19113 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19114 computation for memset partial defs.
19116 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19118 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19119 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19120 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19121 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19122 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19123 * omp-grid.c (grid_process_grid_body,
19124 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19125 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19126 == GF_OMP_FOR_KIND_SIMD.
19127 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19128 check_omp_nesting_restrictions, scan_omp_1_stmt,
19129 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19130 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19131 omp_find_scan): Likewise.
19132 * omp-expand.c (expand_omp_for): Likewise.
19133 * omp-general.c (omp_extract_for_data): Likewise.
19135 PR tree-optimization/91157
19136 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19137 a vector boolean with scalar mode.
19138 (expand_vector_condition): Handle first operand being a vector boolean
19140 (expand_vector_operations_1): For comparisons, don't bail out early
19141 if the return type is vector boolean with scalar mode, but comparison
19142 operand type is not.
19144 2019-07-17 Richard Biener <rguenther@suse.de>
19146 PR tree-optimization/91181
19147 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19148 IFN_LOADs as calls.
19150 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19152 * config/i386/i386.md (*testdi_1): Match CCZmode for
19153 constants that might have the SImode sign bit set.
19154 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19155 Use correct constraints for pentium pairing.
19156 (*test<mode>_1): Ditto.
19158 2019-07-16 Jeff Law <law@redhat.com>
19160 PR rtl-optimization/91173
19161 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19162 SSA_NAME with a constant value, fold its value into the offset
19163 and clear the base before calling gen_addr_rtx.
19165 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19167 PR rtl-optimization/91164
19168 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19169 invalidate dominance info.
19171 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19173 * read-md.h (md_reader::record_potential_iterator_use): Add a
19174 file_location parameter.
19175 * read-rtl.c (attribute_use::loc): New field.
19176 (map_attr_string): Take a file_location parameter. Report cases
19177 in which attributes map to multiple distinct values.
19178 (apply_attribute_uses): Update call accordingly.
19179 (md_reader::handle_overloaded_name): Likewise.
19180 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19182 (record_attribute_use): Take a file_location parameter.
19183 Initialize attribute_use::loc.
19184 (md_reader::record_potential_iterator_use): Take a file_location
19185 parameter. Update call to record_attribute_use.
19186 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19187 (rtx_reader::read_rtx_code): Likewise.
19188 (rtx_reader::read_rtx_operand): Likewise. Record a location
19189 for implicitly-expanded empty strings.
19191 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19193 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19194 Use file_location instead of separate fields.
19195 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19196 separate filename and line number.
19197 * read-md.c (ptr_loc): As above.
19198 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19199 (md_reader::fprint_md_ptr_loc): Likewise.
19200 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19201 instead of a separate filename and line number.
19202 (md_reader::read_string): Update call accordingly.
19204 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19206 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19207 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19208 leaving the choice between SFDF and P implicit.
19209 (*mov<mode>_update2): Likewise.
19210 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19211 rather than leaving the choice betweem IBM128 and GPR implicit.
19212 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19213 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19215 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19216 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19217 * config/rs6000/vsx.md
19218 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19219 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19220 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19221 and VSX_EXTRACT_I implicit.
19223 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19225 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19226 Explicitly use <MOVEP1:MODE> for the mode attribute.
19228 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19231 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19233 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
19236 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19237 .machine directive.
19239 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
19241 * config/i386/i386.md (@test<mode>_ccno_1):
19242 Rename from test<mode>_ccno_1.
19243 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
19244 (*testqi_1_maybe_si): Remove modrm attribute.
19245 (*test<mode>_1): Ditto.
19246 * config/i386/i386-expand.c (ix86_split_idivmod): Use
19247 gen_test_ccno_1 and gen_extend_insn.
19249 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
19251 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19254 2019-07-15 Richard Biener <rguenther@suse.de>
19256 PR middle-end/91162
19257 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19258 node make sure to replace all uses with something valid.
19260 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
19262 PR tree-optimization/88497
19263 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
19264 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
19265 function undistribute_bitref_for_vector.
19266 (undistribute_bitref_for_vector): New function.
19267 (cleanup_vinfo_map): Likewise.
19268 (sort_by_mach_mode): Likewise.
19270 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
19272 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
19273 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
19274 and testdi_ccno_1 using SWI48 mode attribute.
19275 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
19276 x86_64_szext_general_operand.
19277 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
19278 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
19279 instead of genera_operand mode attribute.
19281 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
19283 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
19284 fopen and fclose to their respective types.
19285 (DotFn.invoke): Ditto.
19287 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
19289 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
19290 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
19291 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
19292 (array_index_predicate): Remove.
19293 (analyze_function_body): Account cost for variable ofsetted array
19295 (estimate_node_size_and_time): Do not compute array index hint.
19296 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
19297 (inline_read_section): Do not read array index hint.
19298 (ipa_fn_summary_write): Do not write array index hint.
19299 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
19300 * ipa-cp.c (hint_time_bonus): Remove.
19301 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
19302 (ipa_fnsummary): Remove array_index.
19303 * ipa-inline.c (want_inline_small_function_p): Do not use
19305 (edge_badness): Likewise.
19306 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
19308 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
19311 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
19312 superfluous "builtin function" phrasing.
19314 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
19316 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
19318 (aliasing_component_refs_walk): Break out from ...
19319 (aliasing_component_refs_p): ... here.
19321 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
19324 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
19325 "builtin function" phrasing.
19327 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19330 * recog.h (temporary_volatile_ok): New class.
19331 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
19332 volatile_ok temporarily to true using temporary_volatile_ok.
19333 * expr.c (emit_block_move_via_cpymem): Likewise.
19334 * optabs.c (maybe_legitimize_operand): Likewise.
19336 2019-07-13 Jakub Jelinek <jakub@redhat.com>
19338 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
19339 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
19340 uses inside of order(concurrent) constructs.
19341 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
19342 OMP_CLAUSE_ORDER is seen.
19343 * omp-low.c (struct omp_context): Add order_concurrent member.
19344 (scan_sharing_clauses): Set ctx->order_concurrent if
19345 OMP_CLAUSE_ORDER is seen.
19346 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
19347 of simd order(concurrent). Diagnose constructs not allowed inside of
19348 for order(concurrent).
19349 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
19350 complaining about static double setjmp (double); or class static
19351 methods or non-global namespace setjmps.
19352 (omp_runtime_api_call): New function.
19353 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
19354 order(concurrent) loops.
19356 2019-07-12 Martin Sebor <msebor@redhat.com>
19358 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
19359 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
19360 * tree-vrp.c (vrp_prop::check_mem_ref): Use
19361 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19363 2019-07-12 Jan Hubicka <jh@suse.cz>
19365 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
19366 (indirect_refs_may_alias_p): ... here.
19367 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
19368 mem refs in the access paths.
19370 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
19372 PR tree-optimization/89430
19373 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
19374 store elimination for local variable without address escape.
19376 2019-07-12 Jeff Law <law@redhat.com>
19378 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
19379 for the ".far" section.
19381 2019-07-12 Richard Biener <rguenther@suse.de>
19383 PR tree-optimization/91145
19384 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
19387 2019-07-12 Alexandre Oliva <oliva@adacore.com>
19389 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
19390 rather than this_state as the lowering context for the ELSE
19391 seq in a GIMPLE_EH_ELSE.
19393 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19395 * vector-builder.h (vector_builder::elt): Allow already-supplied
19396 elements to be read back before building is complete.
19398 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19400 PR rtl-optimization/91136
19401 * df-core.c (ACCESSING REFS): Fix typos in comment.
19402 * resource.c (mark_target_live_reg): Add artificial defs that occur at
19403 the beginning of the block to the initial set of live registers.
19405 2019-07-12 Richard Biener <rguenther@suse.de>
19407 * fold-const.h (get_array_ctor_element_at_index): Adjust.
19408 * fold-const.c (get_array_ctor_element_at_index): Add
19409 ctor_idx output parameter informing the caller where in
19410 the constructor the element was (not) found. Add early exit
19411 for when the ctor is sorted.
19412 * gimple-fold.c (fold_array_ctor_reference): Support constant
19413 folding across multiple array elements.
19415 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19417 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
19418 doesn't have location, set the current location to the function's end.
19420 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19422 * config/aarch64/aarch64.md (*compare_condjump<mode>)
19423 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
19424 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
19425 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
19426 * config/aarch64/aarch64-simd.md
19427 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
19428 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
19429 * config/aarch64/aarch64-sve.md
19430 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
19431 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
19433 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19435 * doc/md.texi: Document that @ patterns can have different
19436 numbers of operands.
19437 * genemit.c (handle_overloaded_gen): Handle this case.
19438 * genopinit.c (handle_overloaded_gen): Likewise.
19439 * gensupport.c (replace_operands_with_dups): Iterate over
19440 the new rtx's format rather than the old one's.
19442 2019-07-12 Jakub Jelinek <jakub@redhat.com>
19444 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
19445 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19446 order clause entries.
19447 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
19448 * tree-pretty-print.c (dump_omp_clause): Likewise.
19449 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
19451 * omp-low.c (scan_sharing_clauses): Likewise.
19452 * tree-nested.c (convert_nonlocal_omp_clauses,
19453 convert_local_omp_clauses): Likewise.
19455 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
19457 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
19458 fallthrough target of current basic block isn't the placed
19461 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
19464 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
19465 (_mm512_storeu_epi64): Likewise.
19466 (_mm512_loadu_epi32): Likewise.
19467 (_mm512_storeu_epi32): Likewise.
19468 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
19469 (_mm_storeu_epi64): Likewise.
19470 (_mm256_storeu_epi32): Likewise.
19471 (_mm_storeu_epi32): Likewise.
19473 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19475 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
19477 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19479 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
19482 2019-07-11 Jakub Jelinek <jakub@redhat.com>
19485 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
19486 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19487 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
19488 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
19489 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
19490 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
19492 (ufix_truncv2dfv2si2<mask_name>): Change into ...
19493 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
19494 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
19496 (sse2_cvttpd2dq<mask_name>): Change into ...
19497 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
19498 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
19499 (*sse2_cvtpd2dq<mask_name>): Change into ...
19500 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19501 Add "C" constraint to const0_operand.
19502 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
19503 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
19507 * config/i386/i386-builtin-types.def
19508 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
19509 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
19510 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
19511 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
19512 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
19513 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
19514 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
19515 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
19516 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
19517 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
19518 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
19519 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
19520 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
19521 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
19522 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
19523 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
19524 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
19525 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
19526 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
19527 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
19528 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
19529 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
19530 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
19531 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
19532 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
19533 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
19534 __builtin_ia32_vpdpbusd_v4si_maskz,
19535 __builtin_ia32_vpdpbusds_v16si_mask,
19536 __builtin_ia32_vpdpbusds_v16si_maskz,
19537 __builtin_ia32_vpdpbusds_v8si_mask,
19538 __builtin_ia32_vpdpbusds_v8si_maskz,
19539 __builtin_ia32_vpdpbusds_v4si_mask,
19540 __builtin_ia32_vpdpbusds_v4si_maskz,
19541 __builtin_ia32_vpdpwssd_v16si_mask,
19542 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
19543 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
19544 __builtin_ia32_vpdpwssd_v4si_maskz,
19545 __builtin_ia32_vpdpwssds_v16si_mask,
19546 __builtin_ia32_vpdpwssds_v16si_maskz,
19547 __builtin_ia32_vpdpwssds_v8si_mask,
19548 __builtin_ia32_vpdpwssds_v8si_maskz,
19549 __builtin_ia32_vpdpwssds_v4si_mask,
19550 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
19551 suffixed types rather than *_INT.
19552 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
19553 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
19554 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
19555 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
19556 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
19557 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
19559 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
19561 * tree-vrp.c (intersect_ranges): If we know the intersection is
19562 empty, there is no need to conservatively add anything else to
19565 2019-07-11 Richard Biener <rguenther@suse.de>
19567 PR middle-end/91131
19568 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
19569 when the object is volatile and we have not cleared it even though
19570 there are no nonzero elements.
19572 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
19574 * config/rs6000/predicates.md (cint34_operand): Update
19575 SIGNED_34BIT_OFFSET_P call.
19576 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
19577 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
19578 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
19579 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
19580 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
19582 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
19583 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
19584 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
19585 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
19586 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
19588 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
19590 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
19591 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
19592 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
19593 (DEF_MIN_OSX_VERSION): New.
19595 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19597 * fold-const.c (fold_relational_const): Fix folding of
19598 vector-to-scalar NE_EXPRs.
19599 (test_vector_folding): Add more tests.
19601 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19604 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
19605 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
19606 (vec_setv2di_internal): Reexpress as...
19607 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
19608 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
19609 rather than gen_neon_vset_lane<mode>.
19611 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
19614 * lra-constraints.c (process_alt_operands): Don't match user
19615 defined regs only if they are early clobbers.
19617 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
19619 * wide-int.h (wi::lshift): Reject negative values for the fast path.
19621 2019-07-10 Richard Biener <rguenther@suse.de>
19623 PR tree-optimization/91126
19624 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
19625 native encoding offset for BYTES_BIG_ENDIAN.
19626 (vn_reference_lookup_3): Likewise.
19628 2019-07-10 Richard Biener <rguenther@suse.de>
19630 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
19631 LHS whenever possible.
19633 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
19635 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
19636 from ...; work also on duplicated types.
19637 (nonoverlapping_component_refs_since_match): ... here
19638 (ncr_type_uid): Break out from ...
19639 (ncr_compar): ... here; look for TYPE_UID of canonical type if
19641 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
19642 the types and nonoverlapping_component_refs_p_1 to disambiguate.
19644 2019-07-09 Martin Sebor <msebor@redhat.com>
19646 PR tree-optimization/90989
19647 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
19648 optimization to just single character stores.
19650 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
19652 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
19653 Swap operands only once.
19655 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
19657 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
19658 for both call instructions.
19660 2019-07-09 John Darrington <john@darrington.wattle.id.au>
19662 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
19663 rather than GET_MODE_BITSIZE to better handle partial integer modes.
19665 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
19667 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
19668 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
19669 function from rs6000-logue.c back to rs6000.c.
19670 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
19672 2019-07-09 Martin Sebor <msebor@redhat.com>
19675 * auto-profile.c: Change class-key of PODs to struct and others
19677 * basic-block.h: Same.
19678 * bitmap.c (bitmap_alloc): Same.
19680 * builtins.c (expand_builtin_prefetch): Same.
19681 (expand_builtin_interclass_mathfn): Same.
19682 (expand_builtin_strlen): Same.
19683 (expand_builtin_mempcpy_args): Same.
19684 (expand_cmpstr): Same.
19685 (expand_builtin___clear_cache): Same.
19686 (expand_ifn_atomic_bit_test_and): Same.
19687 (expand_builtin_thread_pointer): Same.
19688 (expand_builtin_set_thread_pointer): Same.
19689 * caller-save.c (setup_save_areas): Same.
19690 (replace_reg_with_saved_mem): Same.
19691 (insert_restore): Same.
19692 (insert_save): Same.
19693 (add_used_regs): Same.
19694 * cfg.c (get_bb_copy): Same.
19695 (set_loop_copy): Same.
19698 * cfgexpand.c (alloc_stack_frame_space): Same.
19699 (add_stack_var): Same.
19700 (add_stack_var_conflict): Same.
19701 (add_scope_conflicts_1): Same.
19702 (update_alias_info_with_stack_vars): Same.
19703 (expand_used_vars): Same.
19704 * cfghooks.c (redirect_edge_and_branch_force): Same.
19705 (delete_basic_block): Same.
19706 (split_edge): Same.
19707 (make_forwarder_block): Same.
19708 (force_nonfallthru): Same.
19709 (duplicate_block): Same.
19710 (lv_flush_pending_stmts): Same.
19711 * cfghooks.h: Same.
19712 * cfgloop.c (flow_loops_cfg_dump): Same.
19713 (flow_loop_nested_p): Same.
19714 (superloop_at_depth): Same.
19715 (get_loop_latch_edges): Same.
19716 (flow_loop_dump): Same.
19717 (flow_loops_dump): Same.
19718 (flow_loops_free): Same.
19719 (flow_loop_nodes_find): Same.
19720 (establish_preds): Same.
19721 (flow_loop_tree_node_add): Same.
19722 (flow_loop_tree_node_remove): Same.
19723 (flow_loops_find): Same.
19724 (find_subloop_latch_edge_by_profile): Same.
19725 (find_subloop_latch_edge_by_ivs): Same.
19726 (mfb_redirect_edges_in_set): Same.
19727 (form_subloop): Same.
19728 (merge_latch_edges): Same.
19729 (disambiguate_multiple_latches): Same.
19730 (disambiguate_loops_with_multiple_latches): Same.
19731 (flow_bb_inside_loop_p): Same.
19732 (glb_enum_p): Same.
19733 (get_loop_body_with_size): Same.
19734 (get_loop_body): Same.
19735 (fill_sons_in_loop): Same.
19736 (get_loop_body_in_dom_order): Same.
19737 (get_loop_body_in_custom_order): Same.
19738 (release_recorded_exits): Same.
19739 (get_loop_exit_edges): Same.
19740 (num_loop_branches): Same.
19741 (remove_bb_from_loops): Same.
19742 (find_common_loop): Same.
19743 (delete_loop): Same.
19744 (cancel_loop): Same.
19745 (verify_loop_structure): Same.
19746 (loop_preheader_edge): Same.
19747 (loop_exit_edge_p): Same.
19748 (single_exit): Same.
19749 (loop_exits_to_bb_p): Same.
19750 (loop_exits_from_bb_p): Same.
19751 (get_loop_location): Same.
19752 (record_niter_bound): Same.
19753 (get_estimated_loop_iterations_int): Same.
19754 (max_stmt_executions_int): Same.
19755 (likely_max_stmt_executions_int): Same.
19756 (get_estimated_loop_iterations): Same.
19757 (get_max_loop_iterations): Same.
19758 (get_max_loop_iterations_int): Same.
19759 (get_likely_max_loop_iterations): Same.
19760 * cfgloop.h (simple_loop_desc): Same.
19762 (loop_depth): Same.
19763 (loop_outer): Same.
19764 (loop_iterator::next): Same.
19765 (loop_outermost): Same.
19766 * cfgloopanal.c (mark_irreducible_loops): Same.
19767 (num_loop_insns): Same.
19768 (average_num_loop_insns): Same.
19769 (expected_loop_iterations_unbounded): Same.
19770 (expected_loop_iterations): Same.
19771 (mark_loop_exit_edges): Same.
19772 (single_likely_exit): Same.
19773 * cfgloopmanip.c (fix_bb_placement): Same.
19774 (fix_bb_placements): Same.
19775 (remove_path): Same.
19776 (place_new_loop): Same.
19778 (scale_loop_frequencies): Same.
19779 (scale_loop_profile): Same.
19780 (create_empty_if_region_on_edge): Same.
19781 (create_empty_loop_on_edge): Same.
19784 (fix_loop_placements): Same.
19785 (copy_loop_info): Same.
19786 (duplicate_loop): Same.
19787 (duplicate_subloops): Same.
19788 (loop_redirect_edge): Same.
19789 (can_duplicate_loop_p): Same.
19790 (duplicate_loop_to_header_edge): Same.
19791 (mfb_keep_just): Same.
19792 (has_preds_from_loop): Same.
19793 (create_preheader): Same.
19794 (create_preheaders): Same.
19795 (lv_adjust_loop_entry_edge): Same.
19796 (loop_version): Same.
19797 * cfgloopmanip.h: Same.
19799 * cgraphbuild.c: Same.
19800 * combine.c (make_extraction): Same.
19801 * config/i386/i386-features.c: Same.
19802 * config/i386/i386-features.h: Same.
19803 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
19804 (ix86_emit_outlined_ms2sysv_restore): Same.
19805 (ix86_noce_conversion_profitable_p): Same.
19806 (ix86_init_cost): Same.
19807 (ix86_simd_clone_usable): Same.
19808 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
19810 * coretypes.h: Same.
19811 * data-streamer-in.c (string_for_index): Change class-key of PODs
19812 to struct and others to class.
19813 (streamer_read_indexed_string): Same.
19814 (streamer_read_string): Same.
19815 (bp_unpack_indexed_string): Same.
19816 (bp_unpack_string): Same.
19817 (streamer_read_uhwi): Same.
19818 (streamer_read_hwi): Same.
19819 (streamer_read_gcov_count): Same.
19820 (streamer_read_wide_int): Same.
19821 * data-streamer.h (streamer_write_bitpack): Same.
19822 (bp_unpack_value): Same.
19823 (streamer_write_char_stream): Same.
19824 (streamer_write_hwi_in_range): Same.
19825 (streamer_write_record_start): Same.
19826 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
19827 (add_cross_iteration_register_deps): Same.
19828 (build_intra_loop_deps): Same.
19829 * df-core.c (df_analyze): Same.
19830 (loop_post_order_compute): Same.
19831 (loop_inverted_post_order_compute): Same.
19832 * df-problems.c (df_rd_alloc): Same.
19833 (df_rd_simulate_one_insn): Same.
19834 (df_rd_local_compute): Same.
19835 (df_rd_init_solution): Same.
19836 (df_rd_confluence_n): Same.
19837 (df_rd_transfer_function): Same.
19838 (df_rd_free): Same.
19839 (df_rd_dump_defs_set): Same.
19840 (df_rd_top_dump): Same.
19841 (df_lr_alloc): Same.
19842 (df_lr_reset): Same.
19843 (df_lr_local_compute): Same.
19844 (df_lr_init): Same.
19845 (df_lr_confluence_n): Same.
19846 (df_lr_free): Same.
19847 (df_lr_top_dump): Same.
19848 (df_lr_verify_transfer_functions): Same.
19849 (df_live_alloc): Same.
19850 (df_live_reset): Same.
19851 (df_live_init): Same.
19852 (df_live_confluence_n): Same.
19853 (df_live_finalize): Same.
19854 (df_live_free): Same.
19855 (df_live_top_dump): Same.
19856 (df_live_verify_transfer_functions): Same.
19857 (df_mir_alloc): Same.
19858 (df_mir_reset): Same.
19859 (df_mir_init): Same.
19860 (df_mir_confluence_n): Same.
19861 (df_mir_free): Same.
19862 (df_mir_top_dump): Same.
19863 (df_word_lr_alloc): Same.
19864 (df_word_lr_reset): Same.
19865 (df_word_lr_init): Same.
19866 (df_word_lr_confluence_n): Same.
19867 (df_word_lr_free): Same.
19868 (df_word_lr_top_dump): Same.
19869 (df_md_alloc): Same.
19870 (df_md_simulate_one_insn): Same.
19871 (df_md_reset): Same.
19872 (df_md_init): Same.
19873 (df_md_free): Same.
19874 (df_md_top_dump): Same.
19875 * df-scan.c (df_insn_delete): Same.
19876 (df_insn_rescan): Same.
19877 (df_notes_rescan): Same.
19878 (df_sort_and_compress_mws): Same.
19879 (df_install_mws): Same.
19880 (df_refs_add_to_chains): Same.
19881 (df_ref_create_structure): Same.
19882 (df_ref_record): Same.
19883 (df_def_record_1): Same.
19884 (df_find_hard_reg_defs): Same.
19885 (df_uses_record): Same.
19886 (df_get_conditional_uses): Same.
19887 (df_get_call_refs): Same.
19888 (df_recompute_luids): Same.
19889 (df_get_entry_block_def_set): Same.
19890 (df_entry_block_defs_collect): Same.
19891 (df_get_exit_block_use_set): Same.
19892 (df_exit_block_uses_collect): Same.
19893 (df_mws_verify): Same.
19894 (df_bb_verify): Same.
19895 * df.h (df_scan_get_bb_info): Same.
19896 * doc/tm.texi: Same.
19897 * dse.c (record_store): Same.
19898 * dumpfile.h: Same.
19899 * emit-rtl.c (const_fixed_hasher::equal): Same.
19900 (set_mem_attributes_minus_bitpos): Same.
19901 (change_address): Same.
19902 (adjust_address_1): Same.
19903 (offset_address): Same.
19904 * emit-rtl.h: Same.
19905 * except.c (dw2_build_landing_pads): Same.
19906 (sjlj_emit_dispatch_table): Same.
19907 * explow.c (allocate_dynamic_stack_space): Same.
19908 (emit_stack_probe): Same.
19909 (probe_stack_range): Same.
19910 * expmed.c (store_bit_field_using_insv): Same.
19911 (store_bit_field_1): Same.
19912 (store_integral_bit_field): Same.
19913 (extract_bit_field_using_extv): Same.
19914 (extract_bit_field_1): Same.
19915 (emit_cstore): Same.
19916 * expr.c (emit_block_move_via_cpymem): Same.
19917 (expand_cmpstrn_or_cmpmem): Same.
19918 (set_storage_via_setmem): Same.
19919 (emit_single_push_insn_1): Same.
19920 (expand_assignment): Same.
19921 (store_constructor): Same.
19922 (expand_expr_real_2): Same.
19923 (expand_expr_real_1): Same.
19924 (try_casesi): Same.
19926 * function.c (try_fit_stack_local): Same.
19927 (assign_stack_local_1): Same.
19928 (assign_stack_local): Same.
19929 (cut_slot_from_list): Same.
19930 (insert_slot_to_list): Same.
19931 (max_slot_level): Same.
19932 (move_slot_to_level): Same.
19933 (temp_address_hasher::equal): Same.
19934 (remove_unused_temp_slot_addresses): Same.
19935 (assign_temp): Same.
19936 (combine_temp_slots): Same.
19937 (update_temp_slot_address): Same.
19938 (preserve_temp_slots): Same.
19939 * function.h: Same.
19941 * gcc-rich-location.h: Same.
19943 * genattrtab.c (check_attr_test): Same.
19944 (check_attr_value): Same.
19945 (convert_set_attr_alternative): Same.
19946 (convert_set_attr): Same.
19947 (check_defs): Same.
19948 (copy_boolean): Same.
19949 (get_attr_value): Same.
19950 (expand_delays): Same.
19951 (make_length_attrs): Same.
19953 (make_alternative_compare): Same.
19954 (simplify_test_exp): Same.
19955 (tests_attr_p): Same.
19956 (get_attr_order): Same.
19957 (clear_struct_flag): Same.
19959 (compares_alternatives_p): Same.
19962 (find_attrs_to_cache): Same.
19963 (write_test_expr): Same.
19964 (walk_attr_value): Same.
19965 (write_attr_get): Same.
19966 (eliminate_known_true): Same.
19967 (write_insn_cases): Same.
19968 (write_attr_case): Same.
19969 (write_attr_valueq): Same.
19970 (write_attr_value): Same.
19971 (write_dummy_eligible_delay): Same.
19972 (next_comma_elt): Same.
19974 (make_internal_attr): Same.
19975 (copy_rtx_unchanging): Same.
19976 (gen_insn_reserv): Same.
19977 (check_tune_attr): Same.
19978 (make_automaton_attrs): Same.
19979 (handle_arg): Same.
19980 * genextract.c (gen_insn): Same.
19981 (VEC_char_to_string): Same.
19982 * genmatch.c (print_operand): Same.
19984 (parser::parse_operation): Same.
19985 (parser::parse_capture): Same.
19986 (parser::parse_c_expr): Same.
19987 (parser::parse_simplify): Same.
19989 * genoutput.c (output_operand_data): Same.
19990 (output_get_insn_name): Same.
19991 (compare_operands): Same.
19992 (place_operands): Same.
19993 (process_template): Same.
19994 (validate_insn_alternatives): Same.
19995 (validate_insn_operands): Same.
19996 (gen_expand): Same.
19997 (note_constraint): Same.
19998 * genpreds.c (write_one_predicate_function): Same.
19999 (add_constraint): Same.
20000 (process_define_register_constraint): Same.
20001 (write_lookup_constraint_1): Same.
20002 (write_lookup_constraint_array): Same.
20003 (write_insn_constraint_len): Same.
20004 (write_reg_class_for_constraint_1): Same.
20005 (write_constraint_satisfied_p_array): Same.
20006 * genrecog.c (optimize_subroutine_group): Same.
20007 * gensupport.c (process_define_predicate): Same.
20008 (queue_pattern): Same.
20009 (remove_from_queue): Same.
20010 (process_rtx): Same.
20011 (is_predicable): Same.
20012 (change_subst_attribute): Same.
20013 (subst_pattern_match): Same.
20014 (alter_constraints): Same.
20015 (alter_attrs_for_insn): Same.
20016 (shift_output_template): Same.
20017 (alter_output_for_subst_insn): Same.
20018 (process_one_cond_exec): Same.
20020 (process_define_cond_exec): Same.
20021 (mnemonic_htab_callback): Same.
20022 (gen_mnemonic_attr): Same.
20023 (read_md_rtx): Same.
20024 * ggc-page.c: Same.
20025 * gimple-loop-interchange.cc (dump_reduction): Same.
20026 (dump_induction): Same.
20027 (loop_cand::~loop_cand): Same.
20028 (free_data_refs_with_aux): Same.
20029 (tree_loop_interchange::interchange_loops): Same.
20030 (tree_loop_interchange::map_inductions_to_loop): Same.
20031 (tree_loop_interchange::move_code_to_inner_loop): Same.
20032 (compute_access_stride): Same.
20033 (compute_access_strides): Same.
20034 (proper_loop_form_for_interchange): Same.
20035 (tree_loop_interchange_compute_ddrs): Same.
20036 (prune_datarefs_not_in_loop): Same.
20037 (prepare_data_references): Same.
20038 (pass_linterchange::execute): Same.
20039 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20040 (unroll_jam_possible_p): Same.
20041 (fuse_loops): Same.
20042 (adjust_unroll_factor): Same.
20043 (tree_loop_unroll_and_jam): Same.
20044 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20045 (loop_versioning::expensive_stmt_p): Same.
20046 (loop_versioning::version_for_unity): Same.
20047 (loop_versioning::dump_inner_likelihood): Same.
20048 (loop_versioning::find_per_loop_multiplication): Same.
20049 (loop_versioning::analyze_term_using_scevs): Same.
20050 (loop_versioning::record_address_fragment): Same.
20051 (loop_versioning::analyze_expr): Same.
20052 (loop_versioning::analyze_blocks): Same.
20053 (loop_versioning::prune_conditions): Same.
20054 (loop_versioning::merge_loop_info): Same.
20055 (loop_versioning::add_loop_to_queue): Same.
20056 (loop_versioning::decide_whether_loop_is_versionable): Same.
20057 (loop_versioning::make_versioning_decisions): Same.
20058 (loop_versioning::implement_versioning_decisions): Same.
20059 * gimple-ssa-evrp-analyze.c
20060 (evrp_range_analyzer::record_ranges_from_phis): Same.
20061 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20062 (count_multiple_uses): Same.
20063 (split_group): Same.
20064 (imm_store_chain_info::output_merged_store): Same.
20065 (pass_store_merging::process_store): Same.
20066 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20067 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20069 (alloca_call_type): Same.
20070 (pass_walloca::execute): Same.
20071 * gimple-streamer-in.c (input_phi): Same.
20072 (input_gimple_stmt): Same.
20073 * gimple-streamer.h: Same.
20074 * godump.c (go_force_record_alignment): Same.
20075 (go_format_type): Same.
20076 (go_output_type): Same.
20077 (go_output_fndecl): Same.
20078 (go_output_typedef): Same.
20079 (keyword_hash_init): Same.
20080 (find_dummy_types): Same.
20081 * graph.c (draw_cfg_nodes_no_loops): Same.
20082 (draw_cfg_nodes_for_loop): Same.
20083 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20084 * hsa-brig.c: Same.
20085 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20086 * hsa-dump.c (dump_hsa_cfun): Same.
20087 * hsa-gen.c (gen_function_def_parameters): Same.
20088 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20089 * input.c (dump_line_table_statistics): Same.
20090 (test_lexer): Same.
20092 * internal-fn.c (get_multi_vector_move): Same.
20093 (expand_load_lanes_optab_fn): Same.
20094 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20095 (expand_GOMP_SIMT_EXIT): Same.
20096 (expand_GOMP_SIMT_LAST_LANE): Same.
20097 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20098 (expand_GOMP_SIMT_VOTE_ANY): Same.
20099 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20100 (expand_GOMP_SIMT_XCHG_IDX): Same.
20101 (expand_addsub_overflow): Same.
20102 (expand_neg_overflow): Same.
20103 (expand_mul_overflow): Same.
20104 (expand_call_mem_ref): Same.
20105 (expand_mask_load_optab_fn): Same.
20106 (expand_scatter_store_optab_fn): Same.
20107 (expand_gather_load_optab_fn): Same.
20108 * ipa-cp.c (ipa_get_parm_lattices): Same.
20109 (print_all_lattices): Same.
20110 (ignore_edge_p): Same.
20111 (build_toporder_info): Same.
20112 (free_toporder_info): Same.
20113 (push_node_to_stack): Same.
20114 (ipcp_lattice<valtype>::set_contains_variable): Same.
20115 (set_agg_lats_to_bottom): Same.
20116 (ipcp_bits_lattice::meet_with): Same.
20117 (set_single_call_flag): Same.
20118 (initialize_node_lattices): Same.
20119 (ipa_get_jf_ancestor_result): Same.
20120 (ipcp_verify_propagated_values): Same.
20121 (propagate_scalar_across_jump_function): Same.
20122 (propagate_context_across_jump_function): Same.
20123 (propagate_bits_across_jump_function): Same.
20124 (ipa_vr_operation_and_type_effects): Same.
20125 (propagate_vr_across_jump_function): Same.
20126 (set_check_aggs_by_ref): Same.
20127 (set_chain_of_aglats_contains_variable): Same.
20128 (merge_aggregate_lattices): Same.
20129 (agg_pass_through_permissible_p): Same.
20130 (propagate_aggs_across_jump_function): Same.
20131 (call_passes_through_thunk_p): Same.
20132 (propagate_constants_across_call): Same.
20133 (devirtualization_time_bonus): Same.
20134 (good_cloning_opportunity_p): Same.
20135 (context_independent_aggregate_values): Same.
20136 (gather_context_independent_values): Same.
20137 (perform_estimation_of_a_value): Same.
20138 (estimate_local_effects): Same.
20139 (value_topo_info<valtype>::add_val): Same.
20140 (add_all_node_vals_to_toposort): Same.
20141 (value_topo_info<valtype>::propagate_effects): Same.
20142 (ipcp_propagate_stage): Same.
20143 (ipcp_discover_new_direct_edges): Same.
20144 (same_node_or_its_all_contexts_clone_p): Same.
20145 (cgraph_edge_brings_value_p): Same.
20146 (gather_edges_for_value): Same.
20147 (create_specialized_node): Same.
20148 (find_more_scalar_values_for_callers_subset): Same.
20149 (find_more_contexts_for_caller_subset): Same.
20150 (copy_plats_to_inter): Same.
20151 (intersect_aggregates_with_edge): Same.
20152 (find_aggregate_values_for_callers_subset): Same.
20153 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20154 (decide_about_value): Same.
20155 (decide_whether_version_node): Same.
20156 (spread_undeadness): Same.
20157 (identify_dead_nodes): Same.
20158 (ipcp_store_vr_results): Same.
20159 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20160 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20161 (redirect_to_unreachable): Same.
20162 (edge_set_predicate): Same.
20163 (evaluate_conditions_for_known_args): Same.
20164 (evaluate_properties_for_edge): Same.
20165 (ipa_fn_summary_t::duplicate): Same.
20166 (ipa_call_summary_t::duplicate): Same.
20167 (dump_ipa_call_summary): Same.
20168 (ipa_dump_fn_summary): Same.
20169 (eliminated_by_inlining_prob): Same.
20170 (set_cond_stmt_execution_predicate): Same.
20171 (set_switch_stmt_execution_predicate): Same.
20172 (compute_bb_predicates): Same.
20173 (will_be_nonconstant_expr_predicate): Same.
20174 (phi_result_unknown_predicate): Same.
20175 (analyze_function_body): Same.
20176 (compute_fn_summary): Same.
20177 (estimate_edge_devirt_benefit): Same.
20178 (estimate_edge_size_and_time): Same.
20179 (estimate_calls_size_and_time): Same.
20180 (estimate_node_size_and_time): Same.
20181 (remap_edge_change_prob): Same.
20182 (remap_edge_summaries): Same.
20183 (ipa_merge_fn_summary_after_inlining): Same.
20184 (ipa_fn_summary_generate): Same.
20185 (inline_read_section): Same.
20186 (ipa_fn_summary_read): Same.
20187 (ipa_fn_summary_write): Same.
20188 * ipa-fnsummary.h: Same.
20189 * ipa-hsa.c (ipa_hsa_read_section): Same.
20190 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20191 * ipa-icf.c (sem_function::param_used_p): Same.
20192 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20193 * ipa-inline.c (edge_badness): Same.
20194 (inline_small_functions): Same.
20195 * ipa-polymorphic-call.c
20196 (ipa_polymorphic_call_context::stream_out): Same.
20197 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20198 (predicate::remap_after_inlining): Same.
20199 (predicate::stream_out): Same.
20200 * ipa-predicate.h: Same.
20201 * ipa-profile.c (ipa_profile_read_summary): Same.
20202 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20203 (count_formal_params): Same.
20204 (ipa_dump_param): Same.
20205 (ipa_alloc_node_params): Same.
20206 (ipa_print_node_jump_functions_for_edge): Same.
20207 (ipa_print_node_jump_functions): Same.
20208 (ipa_load_from_parm_agg): Same.
20209 (get_ancestor_addr_info): Same.
20210 (ipa_compute_jump_functions_for_edge): Same.
20211 (ipa_analyze_virtual_call_uses): Same.
20212 (ipa_analyze_stmt_uses): Same.
20213 (ipa_analyze_params_uses_in_bb): Same.
20214 (update_jump_functions_after_inlining): Same.
20215 (try_decrement_rdesc_refcount): Same.
20216 (ipa_impossible_devirt_target): Same.
20217 (update_indirect_edges_after_inlining): Same.
20218 (combine_controlled_uses_counters): Same.
20219 (ipa_edge_args_sum_t::duplicate): Same.
20220 (ipa_write_jump_function): Same.
20221 (ipa_write_indirect_edge_info): Same.
20222 (ipa_write_node_info): Same.
20223 (ipa_read_edge_info): Same.
20224 (ipa_prop_read_section): Same.
20225 (read_replacements_section): Same.
20226 * ipa-prop.h (ipa_get_param_count): Same.
20227 (ipa_get_param): Same.
20228 (ipa_get_type): Same.
20229 (ipa_get_param_move_cost): Same.
20230 (ipa_set_param_used): Same.
20231 (ipa_get_controlled_uses): Same.
20232 (ipa_set_controlled_uses): Same.
20233 (ipa_get_cs_argument_count): Same.
20234 * ipa-pure-const.c (analyze_function): Same.
20235 (pure_const_read_summary): Same.
20237 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20238 * ipa-split.c (test_nonssa_use): Same.
20239 (dump_split_point): Same.
20240 (dominated_by_forbidden): Same.
20241 (split_part_set_ssa_name_p): Same.
20242 (find_split_points): Same.
20243 * ira-build.c (finish_loop_tree_nodes): Same.
20244 (low_pressure_loop_node_p): Same.
20245 * ira-color.c (ira_reuse_stack_slot): Same.
20247 * ira.c (setup_reg_equiv): Same.
20248 (print_insn_chain): Same.
20250 * loop-doloop.c (doloop_condition_get): Same.
20252 (record_reg_sets): Same.
20253 (doloop_optimize): Same.
20254 * loop-init.c (loop_optimizer_init): Same.
20255 (fix_loop_structure): Same.
20256 * loop-invariant.c (merge_identical_invariants): Same.
20257 (compute_always_reached): Same.
20258 (find_exits): Same.
20259 (may_assign_reg_p): Same.
20260 (find_invariants_bb): Same.
20261 (find_invariants_body): Same.
20262 (replace_uses): Same.
20263 (can_move_invariant_reg): Same.
20264 (free_inv_motion_data): Same.
20265 (move_single_loop_invariants): Same.
20266 (change_pressure): Same.
20267 (mark_ref_regs): Same.
20268 (calculate_loop_reg_pressure): Same.
20269 * loop-iv.c (biv_entry_hasher::equal): Same.
20270 (iv_extend_to_rtx_code): Same.
20271 (check_iv_ref_table_size): Same.
20272 (clear_iv_info): Same.
20273 (latch_dominating_def): Same.
20274 (iv_get_reaching_def): Same.
20275 (iv_constant): Same.
20281 (get_biv_step): Same.
20283 (analyzed_for_bivness_p): Same.
20284 (record_biv): Same.
20285 (iv_analyze_biv): Same.
20286 (iv_analyze_expr): Same.
20287 (iv_analyze_def): Same.
20288 (iv_analyze_op): Same.
20289 (iv_analyze): Same.
20290 (iv_analyze_result): Same.
20292 (eliminate_implied_conditions): Same.
20293 (simplify_using_initial_values): Same.
20294 (shorten_into_mode): Same.
20295 (canonicalize_iv_subregs): Same.
20296 (determine_max_iter): Same.
20297 (check_simple_exit): Same.
20298 (find_simple_exit): Same.
20299 (get_simple_loop_desc): Same.
20300 * loop-unroll.c (report_unroll): Same.
20301 (decide_unrolling): Same.
20302 (unroll_loops): Same.
20303 (loop_exit_at_end_p): Same.
20304 (decide_unroll_constant_iterations): Same.
20305 (unroll_loop_constant_iterations): Same.
20306 (compare_and_jump_seq): Same.
20307 (unroll_loop_runtime_iterations): Same.
20308 (decide_unroll_stupid): Same.
20309 (unroll_loop_stupid): Same.
20310 (referenced_in_one_insn_in_loop_p): Same.
20311 (reset_debug_uses_in_loop): Same.
20312 (analyze_iv_to_split_insn): Same.
20313 * lra-eliminations.c (lra_debug_elim_table): Same.
20314 (setup_can_eliminate): Same.
20316 (lra_get_elimination_hard_regno): Same.
20317 (lra_eliminate_regs_1): Same.
20318 (eliminate_regs_in_insn): Same.
20319 (update_reg_eliminate): Same.
20320 (init_elimination): Same.
20321 (lra_eliminate): Same.
20323 * lra-lives.c (initiate_live_solver): Same.
20324 * lra-remat.c (create_remat_bb_data): Same.
20325 * lra-spills.c (lra_spill): Same.
20326 * lra.c (lra_set_insn_recog_data): Same.
20327 (lra_set_used_insn_alternative_by_uid): Same.
20328 (init_reg_info): Same.
20329 (expand_reg_info): Same.
20330 * lto-cgraph.c (output_symtab): Same.
20331 (read_identifier): Same.
20332 (get_alias_symbol): Same.
20333 (input_node): Same.
20334 (input_varpool_node): Same.
20336 (input_edge): Same.
20337 (input_cgraph_1): Same.
20338 (input_refs): Same.
20339 (input_symtab): Same.
20340 (input_offload_tables): Same.
20341 (output_cgraph_opt_summary): Same.
20342 (input_edge_opt_summary): Same.
20343 (input_cgraph_opt_section): Same.
20344 * lto-section-in.c (lto_free_raw_section_data): Same.
20345 (lto_create_simple_input_block): Same.
20346 (lto_free_function_in_decl_state_for_node): Same.
20347 * lto-streamer-in.c (lto_tag_check_set): Same.
20348 (lto_location_cache::revert_location_cache): Same.
20349 (lto_location_cache::input_location): Same.
20350 (lto_input_location): Same.
20351 (stream_input_location_now): Same.
20352 (lto_input_tree_ref): Same.
20353 (lto_input_eh_catch_list): Same.
20354 (input_eh_region): Same.
20355 (lto_init_eh): Same.
20356 (make_new_block): Same.
20358 (fixup_call_stmt_edges): Same.
20359 (input_struct_function_base): Same.
20360 (input_function): Same.
20361 (lto_read_body_or_constructor): Same.
20362 (lto_read_tree_1): Same.
20363 (lto_read_tree): Same.
20364 (lto_input_scc): Same.
20365 (lto_input_tree_1): Same.
20366 (lto_input_toplevel_asms): Same.
20367 (lto_input_mode_table): Same.
20368 (lto_reader_init): Same.
20369 (lto_data_in_create): Same.
20370 * lto-streamer-out.c (output_cfg): Same.
20371 * lto-streamer.h: Same.
20372 * modulo-sched.c (duplicate_insns_of_cycles): Same.
20373 (generate_prolog_epilog): Same.
20374 (mark_loop_unsched): Same.
20375 (dump_insn_location): Same.
20376 (loop_canon_p): Same.
20377 (sms_schedule): Same.
20378 * omp-expand.c (expand_omp_for_ordered_loops): Same.
20379 (expand_omp_for_generic): Same.
20380 (expand_omp_for_static_nochunk): Same.
20381 (expand_omp_for_static_chunk): Same.
20382 (expand_omp_simd): Same.
20383 (expand_omp_taskloop_for_inner): Same.
20384 (expand_oacc_for): Same.
20385 (expand_omp_atomic_pipeline): Same.
20386 (mark_loops_in_oacc_kernels_region): Same.
20387 * omp-offload.c (oacc_xform_loop): Same.
20388 * omp-simd-clone.c (simd_clone_adjust): Same.
20389 * optabs-query.c (get_traditional_extraction_insn): Same.
20390 * optabs.c (expand_vector_broadcast): Same.
20391 (expand_binop_directly): Same.
20392 (expand_twoval_unop): Same.
20393 (expand_twoval_binop): Same.
20394 (expand_unop_direct): Same.
20395 (emit_indirect_jump): Same.
20396 (emit_conditional_move): Same.
20397 (emit_conditional_neg_or_complement): Same.
20398 (emit_conditional_add): Same.
20399 (vector_compare_rtx): Same.
20400 (expand_vec_perm_1): Same.
20401 (expand_vec_perm_const): Same.
20402 (expand_vec_cond_expr): Same.
20403 (expand_vec_series_expr): Same.
20404 (maybe_emit_atomic_exchange): Same.
20405 (maybe_emit_sync_lock_test_and_set): Same.
20406 (expand_atomic_compare_and_swap): Same.
20407 (expand_atomic_load): Same.
20408 (expand_atomic_store): Same.
20409 (maybe_emit_op): Same.
20410 (valid_multiword_target_p): Same.
20411 (create_integer_operand): Same.
20412 (maybe_legitimize_operand_same_code): Same.
20413 (maybe_legitimize_operand): Same.
20414 (create_convert_operand_from_type): Same.
20415 (can_reuse_operands_p): Same.
20416 (maybe_legitimize_operands): Same.
20417 (maybe_gen_insn): Same.
20418 (maybe_expand_insn): Same.
20419 (maybe_expand_jump_insn): Same.
20420 (expand_insn): Same.
20421 * optabs.h (create_expand_operand): Same.
20422 (create_fixed_operand): Same.
20423 (create_output_operand): Same.
20424 (create_input_operand): Same.
20425 (create_convert_operand_to): Same.
20426 (create_convert_operand_from): Same.
20428 * poly-int.h: Same.
20429 * predict.c (optimize_insn_for_speed_p): Same.
20430 (optimize_loop_for_size_p): Same.
20431 (optimize_loop_for_speed_p): Same.
20432 (optimize_loop_nest_for_speed_p): Same.
20433 (get_base_value): Same.
20434 (predicted_by_loop_heuristics_p): Same.
20435 (predict_extra_loop_exits): Same.
20436 (predict_loops): Same.
20437 (predict_paths_for_bb): Same.
20438 (predict_paths_leading_to): Same.
20439 (propagate_freq): Same.
20440 (pass_profile::execute): Same.
20442 * profile-count.c (profile_count::differs_from_p): Same.
20443 (profile_probability::differs_lot_from_p): Same.
20444 * profile-count.h: Same.
20445 * profile.c (branch_prob): Same.
20446 * regrename.c (free_chain_data): Same.
20447 (mark_conflict): Same.
20448 (create_new_chain): Same.
20449 (merge_overlapping_regs): Same.
20450 (init_rename_info): Same.
20451 (merge_chains): Same.
20452 (regrename_analyze): Same.
20453 (regrename_do_replace): Same.
20454 (scan_rtx_reg): Same.
20455 (record_out_operands): Same.
20456 (build_def_use): Same.
20457 * regrename.h: Same.
20459 * reload1.c (init_reload): Same.
20460 (maybe_fix_stack_asms): Same.
20461 (copy_reloads): Same.
20462 (count_pseudo): Same.
20463 (count_spilled_pseudo): Same.
20465 (find_reload_regs): Same.
20466 (select_reload_regs): Same.
20467 (spill_hard_reg): Same.
20468 (fixup_eh_region_note): Same.
20469 (set_reload_reg): Same.
20470 (allocate_reload_reg): Same.
20471 (compute_reload_subreg_offset): Same.
20472 (reload_adjust_reg_for_icode): Same.
20473 (emit_input_reload_insns): Same.
20474 (emit_output_reload_insns): Same.
20475 (do_input_reload): Same.
20476 (inherit_piecemeal_p): Same.
20478 * sanopt.c (maybe_get_dominating_check): Same.
20479 (maybe_optimize_ubsan_ptr_ifn): Same.
20480 (can_remove_asan_check): Same.
20481 (maybe_optimize_asan_check_ifn): Same.
20482 (sanopt_optimize_walker): Same.
20483 * sched-deps.c (add_dependence_list): Same.
20484 (chain_to_prev_insn): Same.
20485 (add_insn_mem_dependence): Same.
20486 (create_insn_reg_set): Same.
20487 (maybe_extend_reg_info_p): Same.
20488 (sched_analyze_reg): Same.
20489 (sched_analyze_1): Same.
20490 (get_implicit_reg_pending_clobbers): Same.
20491 (chain_to_prev_insn_p): Same.
20492 (deps_analyze_insn): Same.
20493 (deps_start_bb): Same.
20494 (sched_free_deps): Same.
20496 (init_deps_reg_last): Same.
20498 * sched-ebb.c: Same.
20499 * sched-int.h: Same.
20500 * sched-rgn.c (add_branch_dependences): Same.
20501 (concat_insn_mem_list): Same.
20503 (sched_rgn_compute_dependencies): Same.
20504 * sel-sched-ir.c (reset_target_context): Same.
20505 (copy_deps_context): Same.
20506 (init_id_from_df): Same.
20507 (has_dependence_p): Same.
20508 (change_loops_latches): Same.
20509 (bb_top_order_comparator): Same.
20510 (make_region_from_loop_preheader): Same.
20511 (sel_init_pipelining): Same.
20512 (get_loop_nest_for_rgn): Same.
20513 (make_regions_from_the_rest): Same.
20514 (sel_is_loop_preheader_p): Same.
20515 * sel-sched-ir.h (inner_loop_header_p): Same.
20516 (get_all_loop_exits): Same.
20517 * selftest.h: Same.
20518 * sese.c (sese_build_liveouts): Same.
20519 (sese_insert_phis_for_liveouts): Same.
20520 * sese.h (defined_in_sese_p): Same.
20521 * sreal.c (sreal::stream_out): Same.
20523 * streamer-hooks.h: Same.
20524 * target-globals.c (save_target_globals): Same.
20525 * target-globals.h: Same.
20526 * target.def: Same.
20528 * targhooks.c (default_has_ifunc_p): Same.
20529 (default_empty_mask_is_expensive): Same.
20530 (default_init_cost): Same.
20531 * targhooks.h: Same.
20533 * tree-affine.c (aff_combination_mult): Same.
20534 (aff_combination_expand): Same.
20535 (aff_combination_constant_multiple_p): Same.
20536 * tree-affine.h: Same.
20537 * tree-cfg.c (build_gimple_cfg): Same.
20538 (replace_loop_annotate_in_block): Same.
20539 (replace_uses_by): Same.
20541 (dump_cfg_stats): Same.
20542 (gimple_duplicate_sese_region): Same.
20543 (gimple_duplicate_sese_tail): Same.
20544 (move_block_to_fn): Same.
20545 (replace_block_vars_by_duplicates): Same.
20546 (move_sese_region_to_fn): Same.
20547 (print_loops_bb): Same.
20548 (print_loop): Same.
20549 (print_loops): Same.
20551 (debug_loops): Same.
20552 * tree-cfg.h: Same.
20553 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
20554 (chrec_fold_multiply_poly_poly): Same.
20555 (chrec_evaluate): Same.
20556 (chrec_component_in_loop_num): Same.
20557 (reset_evolution_in_loop): Same.
20558 (is_multivariate_chrec): Same.
20559 (chrec_contains_symbols): Same.
20560 (nb_vars_in_chrec): Same.
20561 (chrec_convert_1): Same.
20562 (chrec_convert_aggressive): Same.
20563 * tree-chrec.h: Same.
20564 * tree-core.h: Same.
20565 * tree-data-ref.c (dump_data_dependence_relation): Same.
20566 (canonicalize_base_object_address): Same.
20567 (data_ref_compare_tree): Same.
20568 (prune_runtime_alias_test_list): Same.
20569 (get_segment_min_max): Same.
20570 (create_intersect_range_checks): Same.
20571 (conflict_fn_no_dependence): Same.
20572 (object_address_invariant_in_loop_p): Same.
20573 (analyze_ziv_subscript): Same.
20574 (analyze_siv_subscript_cst_affine): Same.
20575 (analyze_miv_subscript): Same.
20576 (analyze_overlapping_iterations): Same.
20577 (build_classic_dist_vector_1): Same.
20578 (add_other_self_distances): Same.
20579 (same_access_functions): Same.
20580 (build_classic_dir_vector): Same.
20581 (subscript_dependence_tester_1): Same.
20582 (subscript_dependence_tester): Same.
20583 (access_functions_are_affine_or_constant_p): Same.
20584 (get_references_in_stmt): Same.
20585 (loop_nest_has_data_refs): Same.
20586 (graphite_find_data_references_in_stmt): Same.
20587 (find_data_references_in_bb): Same.
20588 (get_base_for_alignment): Same.
20589 (find_loop_nest_1): Same.
20590 (find_loop_nest): Same.
20591 * tree-data-ref.h (dr_alignment): Same.
20592 (ddr_dependence_level): Same.
20593 * tree-if-conv.c (fold_build_cond_expr): Same.
20594 (add_to_predicate_list): Same.
20595 (add_to_dst_predicate_list): Same.
20596 (phi_convertible_by_degenerating_args): Same.
20597 (idx_within_array_bound): Same.
20598 (all_preds_critical_p): Same.
20599 (pred_blocks_visited_p): Same.
20600 (predicate_bbs): Same.
20601 (build_region): Same.
20602 (if_convertible_loop_p_1): Same.
20603 (is_cond_scalar_reduction): Same.
20604 (predicate_scalar_phi): Same.
20605 (remove_conditions_and_labels): Same.
20606 (combine_blocks): Same.
20607 (version_loop_for_if_conversion): Same.
20608 (versionable_outer_loop_p): Same.
20609 (ifcvt_local_dce): Same.
20610 (tree_if_conversion): Same.
20611 (pass_if_conversion::gate): Same.
20612 * tree-if-conv.h: Same.
20613 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
20614 * tree-loop-distribution.c (bb_top_order_cmp): Same.
20616 (stmt_has_scalar_dependences_outside_loop): Same.
20617 (copy_loop_before): Same.
20618 (create_bb_after_loop): Same.
20619 (const_with_all_bytes_same): Same.
20620 (generate_memset_builtin): Same.
20621 (generate_memcpy_builtin): Same.
20622 (destroy_loop): Same.
20623 (build_rdg_partition_for_vertex): Same.
20624 (compute_access_range): Same.
20625 (data_ref_segment_size): Same.
20626 (latch_dominated_by_data_ref): Same.
20627 (compute_alias_check_pairs): Same.
20628 (fuse_memset_builtins): Same.
20629 (finalize_partitions): Same.
20630 (find_seed_stmts_for_distribution): Same.
20631 (prepare_perfect_loop_nest): Same.
20632 * tree-parloops.c (lambda_transform_legal_p): Same.
20633 (loop_parallel_p): Same.
20634 (reduc_stmt_res): Same.
20635 (add_field_for_name): Same.
20636 (create_call_for_reduction_1): Same.
20637 (replace_uses_in_bb_by): Same.
20638 (transform_to_exit_first_loop_alt): Same.
20639 (try_transform_to_exit_first_loop_alt): Same.
20640 (transform_to_exit_first_loop): Same.
20642 (gen_parallel_loop): Same.
20643 (gather_scalar_reductions): Same.
20644 (get_omp_data_i_param): Same.
20645 (try_create_reduction_list): Same.
20646 (oacc_entry_exit_single_gang): Same.
20647 (parallelize_loops): Same.
20648 * tree-pass.h: Same.
20649 * tree-predcom.c (determine_offset): Same.
20650 (last_always_executed_block): Same.
20651 (split_data_refs_to_components): Same.
20652 (suitable_component_p): Same.
20653 (valid_initializer_p): Same.
20654 (find_looparound_phi): Same.
20655 (insert_looparound_copy): Same.
20656 (add_looparound_copies): Same.
20657 (determine_roots_comp): Same.
20658 (predcom_tmp_var): Same.
20659 (initialize_root_vars): Same.
20660 (initialize_root_vars_store_elim_1): Same.
20661 (initialize_root_vars_store_elim_2): Same.
20662 (finalize_eliminated_stores): Same.
20663 (initialize_root_vars_lm): Same.
20664 (remove_stmt): Same.
20665 (determine_unroll_factor): Same.
20666 (execute_pred_commoning_cbck): Same.
20667 (base_names_in_chain_on): Same.
20668 (combine_chains): Same.
20669 (pcom_stmt_dominates_stmt_p): Same.
20670 (try_combine_chains): Same.
20671 (prepare_initializers_chain_store_elim): Same.
20672 (prepare_initializers_chain): Same.
20673 (prepare_initializers): Same.
20674 (prepare_finalizers_chain): Same.
20675 (prepare_finalizers): Same.
20676 (insert_init_seqs): Same.
20677 * tree-scalar-evolution.c (loop_phi_node_p): Same.
20678 (compute_overall_effect_of_inner_loop): Same.
20679 (add_to_evolution_1): Same.
20680 (add_to_evolution): Same.
20681 (follow_ssa_edge_binary): Same.
20682 (follow_ssa_edge_expr): Same.
20683 (backedge_phi_arg_p): Same.
20684 (follow_ssa_edge_in_condition_phi_branch): Same.
20685 (follow_ssa_edge_in_condition_phi): Same.
20686 (follow_ssa_edge_inner_loop_phi): Same.
20687 (follow_ssa_edge): Same.
20688 (analyze_evolution_in_loop): Same.
20689 (analyze_initial_condition): Same.
20690 (interpret_loop_phi): Same.
20691 (interpret_condition_phi): Same.
20692 (interpret_rhs_expr): Same.
20693 (interpret_expr): Same.
20694 (interpret_gimple_assign): Same.
20695 (analyze_scalar_evolution_1): Same.
20696 (analyze_scalar_evolution): Same.
20697 (analyze_scalar_evolution_for_address_of): Same.
20698 (get_instantiated_value_entry): Same.
20699 (loop_closed_phi_def): Same.
20700 (instantiate_scev_name): Same.
20701 (instantiate_scev_poly): Same.
20702 (instantiate_scev_binary): Same.
20703 (instantiate_scev_convert): Same.
20704 (instantiate_scev_not): Same.
20705 (instantiate_scev_r): Same.
20706 (instantiate_scev): Same.
20707 (resolve_mixers): Same.
20708 (initialize_scalar_evolutions_analyzer): Same.
20709 (scev_reset_htab): Same.
20710 (scev_reset): Same.
20711 (derive_simple_iv_with_niters): Same.
20712 (simple_iv_with_niters): Same.
20713 (expression_expensive_p): Same.
20714 (final_value_replacement_loop): Same.
20715 * tree-scalar-evolution.h (block_before_loop): Same.
20716 * tree-ssa-address.h: Same.
20717 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
20718 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
20719 (record_edge_info): Same.
20720 * tree-ssa-live.c (var_map_base_fini): Same.
20721 (remove_unused_locals): Same.
20722 * tree-ssa-live.h: Same.
20723 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
20724 (pass_ch_vect::execute): Same.
20725 (pass_ch::process_loop_p): Same.
20726 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
20727 (movement_possibility): Same.
20728 (outermost_invariant_loop): Same.
20730 (determine_max_movement): Same.
20731 (invariantness_dom_walker::before_dom_children): Same.
20732 (move_computations): Same.
20733 (may_move_till): Same.
20734 (force_move_till_op): Same.
20735 (force_move_till): Same.
20736 (memref_free): Same.
20737 (record_mem_ref_loc): Same.
20738 (set_ref_stored_in_loop): Same.
20739 (mark_ref_stored): Same.
20740 (sort_bbs_in_loop_postorder_cmp): Same.
20741 (sort_locs_in_loop_postorder_cmp): Same.
20742 (analyze_memory_references): Same.
20743 (mem_refs_may_alias_p): Same.
20744 (find_ref_loc_in_loop_cmp): Same.
20745 (rewrite_mem_ref_loc::operator): Same.
20746 (first_mem_ref_loc_1::operator): Same.
20747 (sm_set_flag_if_changed::operator): Same.
20748 (execute_sm_if_changed_flag_set): Same.
20749 (execute_sm): Same.
20750 (hoist_memory_references): Same.
20751 (ref_always_accessed::operator): Same.
20752 (refs_independent_p): Same.
20753 (record_dep_loop): Same.
20754 (ref_indep_loop_p_1): Same.
20755 (ref_indep_loop_p): Same.
20756 (can_sm_ref_p): Same.
20757 (find_refs_for_sm): Same.
20758 (loop_suitable_for_sm): Same.
20759 (store_motion_loop): Same.
20760 (store_motion): Same.
20761 (fill_always_executed_in): Same.
20762 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
20763 (estimated_unrolled_size): Same.
20764 (loop_edge_to_cancel): Same.
20765 (remove_exits_and_undefined_stmts): Same.
20766 (remove_redundant_iv_tests): Same.
20767 (unloop_loops): Same.
20768 (estimated_peeled_sequence_size): Same.
20769 (try_peel_loop): Same.
20770 (canonicalize_loop_induction_variables): Same.
20771 (canonicalize_induction_variables): Same.
20772 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
20774 (stmt_after_inc_pos): Same.
20775 (contains_abnormal_ssa_name_p): Same.
20776 (niter_for_exit): Same.
20779 (find_givs_in_bb): Same.
20780 (find_induction_variables): Same.
20781 (find_interesting_uses_cond): Same.
20782 (outermost_invariant_loop_for_expr): Same.
20783 (idx_find_step): Same.
20784 (add_candidate_1): Same.
20785 (add_iv_candidate_derived_from_uses): Same.
20786 (alloc_use_cost_map): Same.
20787 (prepare_decl_rtl): Same.
20788 (generic_predict_doloop_p): Same.
20789 (computation_cost): Same.
20790 (determine_common_wider_type): Same.
20791 (get_computation_aff_1): Same.
20792 (get_use_type): Same.
20793 (determine_group_iv_cost_address): Same.
20795 (difference_cannot_overflow_p): Same.
20796 (may_eliminate_iv): Same.
20797 (determine_set_costs): Same.
20798 (cheaper_cost_pair): Same.
20799 (compare_cost_pair): Same.
20800 (iv_ca_cand_for_group): Same.
20801 (iv_ca_recount_cost): Same.
20802 (iv_ca_set_remove_invs): Same.
20803 (iv_ca_set_no_cp): Same.
20804 (iv_ca_set_add_invs): Same.
20805 (iv_ca_set_cp): Same.
20806 (iv_ca_add_group): Same.
20807 (iv_ca_cost): Same.
20808 (iv_ca_compare_deps): Same.
20809 (iv_ca_delta_reverse): Same.
20810 (iv_ca_delta_commit): Same.
20811 (iv_ca_cand_used_p): Same.
20812 (iv_ca_delta_free): Same.
20814 (iv_ca_free): Same.
20815 (iv_ca_dump): Same.
20816 (iv_ca_extend): Same.
20817 (iv_ca_narrow): Same.
20818 (iv_ca_prune): Same.
20819 (cheaper_cost_with_cand): Same.
20820 (iv_ca_replace): Same.
20821 (try_add_cand_for): Same.
20822 (get_initial_solution): Same.
20823 (try_improve_iv_set): Same.
20824 (find_optimal_iv_set_1): Same.
20825 (create_new_iv): Same.
20826 (rewrite_use_compare): Same.
20827 (remove_unused_ivs): Same.
20828 (determine_scaling_factor): Same.
20829 * tree-ssa-loop-ivopts.h: Same.
20830 * tree-ssa-loop-manip.c (create_iv): Same.
20831 (compute_live_loop_exits): Same.
20832 (add_exit_phi): Same.
20833 (add_exit_phis): Same.
20834 (find_uses_to_rename_use): Same.
20835 (find_uses_to_rename_def): Same.
20836 (find_uses_to_rename_in_loop): Same.
20837 (rewrite_into_loop_closed_ssa): Same.
20838 (check_loop_closed_ssa_bb): Same.
20839 (split_loop_exit_edge): Same.
20840 (ip_end_pos): Same.
20841 (ip_normal_pos): Same.
20842 (copy_phi_node_args): Same.
20843 (gimple_duplicate_loop_to_header_edge): Same.
20844 (can_unroll_loop_p): Same.
20845 (determine_exit_conditions): Same.
20846 (scale_dominated_blocks_in_loop): Same.
20847 (niter_for_unrolled_loop): Same.
20848 (tree_transform_and_unroll_loop): Same.
20849 (rewrite_all_phi_nodes_with_iv): Same.
20850 * tree-ssa-loop-manip.h: Same.
20851 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
20852 (number_of_iterations_ne): Same.
20853 (assert_no_overflow_lt): Same.
20854 (assert_loop_rolls_lt): Same.
20855 (number_of_iterations_lt): Same.
20856 (adjust_cond_for_loop_until_wrap): Same.
20857 (tree_simplify_using_condition): Same.
20858 (simplify_using_initial_conditions): Same.
20859 (simplify_using_outer_evolutions): Same.
20860 (loop_only_exit_p): Same.
20861 (ssa_defined_by_minus_one_stmt_p): Same.
20862 (number_of_iterations_popcount): Same.
20863 (number_of_iterations_exit): Same.
20864 (find_loop_niter): Same.
20865 (finite_loop_p): Same.
20866 (chain_of_csts_start): Same.
20867 (get_val_for): Same.
20868 (loop_niter_by_eval): Same.
20869 (derive_constant_upper_bound_ops): Same.
20870 (do_warn_aggressive_loop_optimizations): Same.
20871 (record_estimate): Same.
20872 (get_cst_init_from_scev): Same.
20873 (record_nonwrapping_iv): Same.
20874 (idx_infer_loop_bounds): Same.
20875 (infer_loop_bounds_from_ref): Same.
20876 (infer_loop_bounds_from_array): Same.
20877 (infer_loop_bounds_from_pointer_arith): Same.
20878 (infer_loop_bounds_from_signedness): Same.
20879 (bound_index): Same.
20880 (discover_iteration_bound_by_body_walk): Same.
20881 (maybe_lower_iteration_bound): Same.
20882 (estimate_numbers_of_iterations): Same.
20883 (estimated_loop_iterations): Same.
20884 (estimated_loop_iterations_int): Same.
20885 (max_loop_iterations): Same.
20886 (max_loop_iterations_int): Same.
20887 (likely_max_loop_iterations): Same.
20888 (likely_max_loop_iterations_int): Same.
20889 (estimated_stmt_executions_int): Same.
20890 (max_stmt_executions): Same.
20891 (likely_max_stmt_executions): Same.
20892 (estimated_stmt_executions): Same.
20893 (stmt_dominates_stmt_p): Same.
20894 (nowrap_type_p): Same.
20895 (loop_exits_before_overflow): Same.
20896 (scev_var_range_cant_overflow): Same.
20897 (scev_probably_wraps_p): Same.
20898 (free_numbers_of_iterations_estimates): Same.
20899 * tree-ssa-loop-niter.h: Same.
20900 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
20901 (idx_analyze_ref): Same.
20902 (analyze_ref): Same.
20903 (gather_memory_references_ref): Same.
20904 (mark_nontemporal_store): Same.
20905 (emit_mfence_after_loop): Same.
20906 (may_use_storent_in_loop_p): Same.
20907 (mark_nontemporal_stores): Same.
20908 (should_unroll_loop_p): Same.
20909 (volume_of_dist_vector): Same.
20910 (add_subscript_strides): Same.
20911 (self_reuse_distance): Same.
20912 (insn_to_prefetch_ratio_too_small_p): Same.
20913 * tree-ssa-loop-split.c (split_at_bb_p): Same.
20914 (patch_loop_exit): Same.
20915 (find_or_create_guard_phi): Same.
20916 (easy_exit_values): Same.
20917 (connect_loop_phis): Same.
20918 (connect_loops): Same.
20919 (compute_new_first_bound): Same.
20920 (split_loop): Same.
20921 (tree_ssa_split_loops): Same.
20922 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
20923 (is_maybe_undefined): Same.
20924 (tree_may_unswitch_on): Same.
20925 (simplify_using_entry_checks): Same.
20926 (tree_unswitch_single_loop): Same.
20927 (tree_unswitch_loop): Same.
20928 (tree_unswitch_outer_loop): Same.
20929 (empty_bb_without_guard_p): Same.
20930 (used_outside_loop_p): Same.
20931 (get_vop_from_header): Same.
20932 (hoist_guard): Same.
20933 * tree-ssa-loop.c (gate_oacc_kernels): Same.
20934 (get_lsm_tmp_name): Same.
20935 * tree-ssa-loop.h: Same.
20936 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
20937 (build_and_add_sum): Same.
20938 (no_side_effect_bb): Same.
20940 (linearize_expr): Same.
20941 (should_break_up_subtract): Same.
20942 (linearize_expr_tree): Same.
20943 * tree-ssa-scopedtables.c: Same.
20944 * tree-ssa-scopedtables.h: Same.
20945 * tree-ssa-structalias.c (condense_visit): Same.
20946 (label_visit): Same.
20947 (dump_pred_graph): Same.
20948 (perform_var_substitution): Same.
20949 (move_complex_constraints): Same.
20950 (remove_preds_and_fake_succs): Same.
20951 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
20952 (determine_bb_domination_status): Same.
20953 (duplicate_thread_path): Same.
20954 (thread_through_all_blocks): Same.
20955 * tree-ssa-threadupdate.h: Same.
20956 * tree-streamer-in.c (streamer_read_string_cst): Same.
20957 (input_identifier): Same.
20958 (unpack_ts_type_common_value_fields): Same.
20959 (unpack_ts_block_value_fields): Same.
20960 (unpack_ts_translation_unit_decl_value_fields): Same.
20961 (unpack_ts_omp_clause_value_fields): Same.
20962 (streamer_read_tree_bitfields): Same.
20963 (streamer_alloc_tree): Same.
20964 (lto_input_ts_common_tree_pointers): Same.
20965 (lto_input_ts_vector_tree_pointers): Same.
20966 (lto_input_ts_poly_tree_pointers): Same.
20967 (lto_input_ts_complex_tree_pointers): Same.
20968 (lto_input_ts_decl_minimal_tree_pointers): Same.
20969 (lto_input_ts_decl_common_tree_pointers): Same.
20970 (lto_input_ts_decl_non_common_tree_pointers): Same.
20971 (lto_input_ts_decl_with_vis_tree_pointers): Same.
20972 (lto_input_ts_field_decl_tree_pointers): Same.
20973 (lto_input_ts_function_decl_tree_pointers): Same.
20974 (lto_input_ts_type_common_tree_pointers): Same.
20975 (lto_input_ts_type_non_common_tree_pointers): Same.
20976 (lto_input_ts_list_tree_pointers): Same.
20977 (lto_input_ts_vec_tree_pointers): Same.
20978 (lto_input_ts_exp_tree_pointers): Same.
20979 (lto_input_ts_block_tree_pointers): Same.
20980 (lto_input_ts_binfo_tree_pointers): Same.
20981 (lto_input_ts_constructor_tree_pointers): Same.
20982 (lto_input_ts_omp_clause_tree_pointers): Same.
20983 (streamer_read_tree_body): Same.
20984 * tree-streamer.h: Same.
20985 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
20986 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
20987 (vect_analyze_possibly_independent_ddr): Same.
20988 (vect_analyze_data_ref_dependence): Same.
20989 (vect_compute_data_ref_alignment): Same.
20990 (vect_enhance_data_refs_alignment): Same.
20991 (vect_analyze_data_ref_access): Same.
20992 (vect_check_gather_scatter): Same.
20993 (vect_find_stmt_data_reference): Same.
20994 (vect_create_addr_base_for_vector_ref): Same.
20995 (vect_setup_realignment): Same.
20996 (vect_supportable_dr_alignment): Same.
20997 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
20998 (adjust_phi_and_debug_stmts): Same.
20999 (vect_set_loop_mask): Same.
21000 (add_preheader_seq): Same.
21001 (vect_maybe_permute_loop_masks): Same.
21002 (vect_set_loop_masks_directly): Same.
21003 (vect_set_loop_condition_masked): Same.
21004 (vect_set_loop_condition_unmasked): Same.
21005 (slpeel_duplicate_current_defs_from_edges): Same.
21006 (slpeel_add_loop_guard): Same.
21007 (slpeel_can_duplicate_loop_p): Same.
21008 (create_lcssa_for_virtual_phi): Same.
21010 (vect_update_ivs_after_vectorizer): Same.
21011 (vect_gen_vector_loop_niters_mult_vf): Same.
21012 (slpeel_update_phi_nodes_for_loops): Same.
21013 (slpeel_update_phi_nodes_for_guard1): Same.
21014 (find_guard_arg): Same.
21015 (slpeel_update_phi_nodes_for_guard2): Same.
21016 (slpeel_update_phi_nodes_for_lcssa): Same.
21017 (vect_do_peeling): Same.
21018 (vect_create_cond_for_alias_checks): Same.
21019 (vect_loop_versioning): Same.
21020 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21021 (vect_inner_phi_in_double_reduction_p): Same.
21022 (vect_analyze_scalar_cycles_1): Same.
21023 (vect_fixup_scalar_cycles_with_patterns): Same.
21024 (vect_get_loop_niters): Same.
21025 (bb_in_loop_p): Same.
21026 (vect_get_max_nscalars_per_iter): Same.
21027 (vect_verify_full_masking): Same.
21028 (vect_compute_single_scalar_iteration_cost): Same.
21029 (vect_analyze_loop_form_1): Same.
21030 (vect_analyze_loop_form): Same.
21031 (vect_active_double_reduction_p): Same.
21032 (vect_analyze_loop_operations): Same.
21033 (neutral_op_for_slp_reduction): Same.
21034 (vect_is_simple_reduction): Same.
21035 (vect_model_reduction_cost): Same.
21036 (get_initial_def_for_reduction): Same.
21037 (get_initial_defs_for_reduction): Same.
21038 (vect_create_epilog_for_reduction): Same.
21039 (vectorize_fold_left_reduction): Same.
21040 (vectorizable_reduction): Same.
21041 (vectorizable_induction): Same.
21042 (vectorizable_live_operation): Same.
21043 (loop_niters_no_overflow): Same.
21044 (vect_get_loop_mask): Same.
21045 (vect_transform_loop_stmt): Same.
21046 (vect_transform_loop): Same.
21047 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21048 (vect_determine_precisions): Same.
21049 (vect_pattern_recog_1): Same.
21050 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21051 * tree-vect-stmts.c (stmt_vectype): Same.
21052 (process_use): Same.
21053 (vect_init_vector_1): Same.
21054 (vect_truncate_gather_scatter_offset): Same.
21055 (get_group_load_store_type): Same.
21056 (vect_build_gather_load_calls): Same.
21057 (vect_get_strided_load_store_ops): Same.
21058 (vectorizable_simd_clone_call): Same.
21059 (vectorizable_store): Same.
21060 (permute_vec_elements): Same.
21061 (vectorizable_load): Same.
21062 (vect_transform_stmt): Same.
21063 (supportable_widening_operation): Same.
21064 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21065 (vec_info::free_stmt_vec_info): Same.
21066 (vect_free_loop_info_assumptions): Same.
21067 (vect_loop_vectorized_call): Same.
21068 (set_uid_loop_bbs): Same.
21069 (vectorize_loops): Same.
21070 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21071 * tree.c (add_tree_to_fld_list): Same.
21072 (fld_type_variant_equal_p): Same.
21073 (fld_decl_context): Same.
21074 (fld_incomplete_type_of): Same.
21075 (free_lang_data_in_binfo): Same.
21076 (need_assembler_name_p): Same.
21077 (find_decls_types_r): Same.
21078 (get_eh_types_for_runtime): Same.
21079 (find_decls_types_in_eh_region): Same.
21080 (find_decls_types_in_node): Same.
21081 (assign_assembler_name_if_needed): Same.
21082 * value-prof.c (stream_out_histogram_value): Same.
21083 * value-prof.h: Same.
21084 * var-tracking.c (use_narrower_mode): Same.
21085 (prepare_call_arguments): Same.
21086 (vt_expand_loc_callback): Same.
21087 (resolve_expansions_pending_recursion): Same.
21088 (vt_expand_loc): Same.
21089 * varasm.c (const_hash_1): Same.
21090 (compare_constant): Same.
21091 (tree_output_constant_def): Same.
21092 (simplify_subtraction): Same.
21093 (get_pool_constant): Same.
21094 (output_constant_pool_2): Same.
21095 (output_constant_pool_1): Same.
21096 (mark_constants_in_pattern): Same.
21097 (mark_constant_pool): Same.
21098 (get_section_anchor): Same.
21099 * vr-values.c (compare_range_with_value): Same.
21100 (vr_values::extract_range_from_phi_node): Same.
21101 * vr-values.h: Same.
21102 * web.c (unionfind_union): Same.
21103 * wide-int.h: Same.
21105 2019-07-09 Martin Sebor <msebor@redhat.com>
21108 * align.h: Change class-key from class to struct and vice versa
21109 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21110 * alloc-pool.h: Same.
21111 * asan.c (shadow_mem_size): Same.
21112 * auto-profile.c: Same.
21113 * basic-block.h: Same.
21115 * cfgexpand.c (set_rtl): Same.
21116 (expand_one_stack_var_at): Same.
21117 * cfghooks.h: Same.
21120 * config/i386/i386.h: Same.
21121 * df-problems.c (df_print_bb_index): Same.
21123 * df.h (df_single_use): Same.
21124 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21125 (layout::annotation_line_showed_range_p): Same.
21126 (get_printed_columns): Same.
21127 (correction::ensure_terminated): Same.
21128 (line_corrections::~line_corrections): Same.
21131 * dump-context.h: Same.
21132 * dumpfile.h: Same.
21133 * dwarf2out.c: Same.
21134 * edit-context.c: Same.
21135 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21137 * function.c (assign_stack_local): Same.
21138 * function.h: Same.
21140 * gcov.c (block_info::block_info): Same.
21141 * genattrtab.c: Same.
21142 * genextract.c: Same.
21143 * genmatch.c (comparison_code_p): Same.
21144 (id_base::id_base): Same.
21145 (decision_tree::print): Same.
21146 * genoutput.c: Same.
21147 * genpreds.c (write_one_predicate_function): Same.
21148 * genrecog.c (validate_pattern): Same.
21149 (find_operand_positions): Same.
21150 (optimize_subroutine_group): Same.
21151 (merge_pattern_transition::merge_pattern_transition): Same.
21152 (merge_pattern_info::merge_pattern_info): Same.
21153 (merge_state_result::merge_state_result): Same.
21154 (merge_into_state): Same.
21155 * gensupport.c: Same.
21156 * gensupport.h: Same.
21157 * ggc-common.c (init_ggc_heuristics): Same.
21158 * ggc-tests.c (test_union): Same.
21159 * gimple-loop-interchange.cc (dump_induction): Same.
21160 * gimple-loop-versioning.cc: Same.
21161 * gimple-match.h (gimple_match_cond::any_else): Same.
21162 * gimple-ssa-backprop.c: Same.
21163 * gimple-ssa-sprintf.c: Same.
21164 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21166 (store_immediate_info::store_immediate_info): Same.
21167 (merged_store_group::apply_stores): Same.
21168 (get_location_for_stmts): Same.
21169 * gimple-ssa-strength-reduction.c: Same.
21170 * gimple-ssa-warn-alloca.c: Same.
21171 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21172 * godump.c (go_type_decl): Same.
21173 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21174 * hash-map.h: Same.
21175 * hash-set-tests.c (test_set_of_strings): Same.
21176 * hsa-brig.c: Same.
21177 * hsa-common.h: Same.
21178 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21179 * input.c (assert_loceq): Same.
21182 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21183 * ipa-fnsummary.h: Same.
21184 * ipa-inline.h: Same.
21185 * ipa-prop.h: Same.
21186 * ipa-split.c (visit_bb): Same.
21187 * ira-int.h (minmax_set_iter_next): Same.
21188 * loop-invariant.c: Same.
21190 * lra-eliminations.c: Same.
21192 * lra-lives.c (mark_regno_dead): Same.
21193 * lra-remat.c: Same.
21194 * lra-spills.c: Same.
21195 * lto-streamer.h: Same.
21196 * mem-stats.h: Same.
21197 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21198 * omp-low.c (omp_clause_aligned_alignment): Same.
21199 * optabs-query.h (get_vcond_eq_icode): Same.
21201 * opts.c (wrap_help): Same.
21202 * poly-int.h: Same.
21203 * predict.c (predict_paths_leading_to_edge): Same.
21204 * pretty-print.h: Same.
21205 * profile-count.h: Same.
21207 * read-rtl-function.c: Same.
21210 * regrename.c: Same.
21211 * regrename.h: Same.
21213 * rtl-iter.h: Same.
21214 * rtl.h (costs_add_n_insns): Same.
21216 * sched-int.h: Same.
21217 * sel-sched-ir.h: Same.
21218 * selftest.h: Same.
21219 * sese.h (vec_find): Same.
21221 * target-globals.h: Same.
21222 * tree-affine.c (aff_combination_find_elt): Same.
21223 * tree-affine.h: Same.
21224 * tree-data-ref.h: Same.
21225 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21226 * tree-predcom.c: Same.
21227 * tree-scalar-evolution.c (find_var_scev_info): Same.
21228 * tree-ssa-alias.h: Same.
21229 * tree-ssa-ccp.c: Same.
21230 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21231 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21232 (rewrite_mem_refs): Same.
21233 (execute_sm_if_changed): Same.
21234 (hoist_memory_references): Same.
21235 * tree-ssa-loop-ivopts.c (operator<=): Same.
21236 * tree-ssa-loop.h: Same.
21237 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21238 * tree-ssa-structalias.c: Same.
21239 * tree-switch-conversion.h (cluster::cluster): Same.
21240 (simple_cluster::simple_cluster): Same.
21241 * tree-vect-patterns.c (type_conversion_p): Same.
21242 * tree-vectorizer.c (dump_stmt_cost): Same.
21243 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21244 * tree.c (protected_set_expr_location): Same.
21245 * tree.h (desired_pro_or_demotion_p): Same.
21246 (fndecl_built_in_p): Same.
21247 * unique-ptr-tests.cc: Same.
21248 * var-tracking.c (delete_variable_part): Same.
21249 * varasm.c (assemble_real): Same.
21250 (tree_output_constant_def): Same.
21252 * wide-int-bitmask.h: Same.
21253 * wide-int.h (decompose): Same.
21255 2019-07-09 Richard Biener <rguenther@suse.de>
21257 PR tree-optimization/91114
21258 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
21259 find a vector type isn't fatal.
21261 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21263 * config/aarch64/aarch64-simd.md
21264 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
21265 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
21266 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
21267 (*aarch64_crypto_aese_fused,
21268 *aarch64_crypto_aesd_fused): Update to new definition.
21269 * config/aarch64/aarch64.c
21270 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
21272 2019-07-09 Richard Biener <rguenther@suse.de>
21274 * gimple-match.h (gimple_match_op::resimplify): New.
21275 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
21276 gimple_resimplify4, gimple_resimplify5): Remove.
21277 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
21278 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
21280 (gimple_match_op::resimplify): New.
21281 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
21282 according to availability. Use gimple_match_op::resimplify.
21284 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
21286 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
21288 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21290 * config/arm/crypto.md:
21291 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
21292 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
21293 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
21294 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
21296 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
21297 * config/arm/aarch-common-protos.h
21298 (aarch_crypto_can_dual_issue): Remove.
21299 * config/arm/aarch-common.c
21300 (aarch_crypto_can_dual_issue): Likewise.
21301 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
21302 * config/arm/cortex-a53.md: Likewise.
21303 * config/arm/cortex-a57.md: Likewise.
21304 * config/arm/iterators.md:
21305 (CRYPTO_BINARY): Redefine.
21306 (CRYPTO_UNARY): Removed.
21307 (CRYPTO_AES, CRYPTO_AESMC): New.
21309 2019-07-09 Richard Biener <rguenther@suse.de>
21311 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
21312 (vn_reference_lookup_3): If the main ref has no access path recorded
21313 but orig_ref has use it to do access-path based disambiguation.
21314 (vn_reference_lookup_pieces): Adjust.
21315 (vn_reference_lookup): Pass down original ref if we valueized.
21317 2019-07-09 Martin Liska <mliska@suse.cz>
21319 * doc/extend.texi: Document influence on loop
21322 2019-07-09 Martin Liska <mliska@suse.cz>
21324 * lto-compress.c (lto_normalized_zstd_level): Do not use
21325 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
21326 of libzstd. One can use 0 as a default compression level.
21328 2019-07-09 Martin Liska <mliska@suse.cz>
21330 * doc/invoke.texi: Add link from -fprofile-dir option.
21331 Use better wording for 'gcno filename'.
21333 2019-07-08 Martin Sebor <msebor@redhat.com>
21335 PR middle-end/71924
21336 PR middle-end/90549
21337 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
21339 (args_loc_t): New type.
21340 (args_loc_t, locmap_t): same.
21341 (diag_returned_locals): New function.
21342 (is_addr_local): Same.
21343 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
21344 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
21345 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
21347 2019-07-08 Jakub Jelinek <jakub@redhat.com>
21349 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
21350 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
21351 and casts in offset when different, both through gimple stmts
21352 and through trees. Rewritten using loops to minimize code duplication
21355 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
21357 * emit-rtl.c (set_insn_locations): New function moved from...
21358 * function.c (set_insn_locations): ...here.
21359 * ira-emit.c (emit_moves): Propagate location of the first instruction
21360 to the inserted move instructions.
21361 * reg-stack.c (compensate_edge): Set the location if the sequence is
21362 inserted on the edge.
21363 * rtl.h (set_insn_locations): Declare.
21365 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21367 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
21368 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
21371 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21373 PR rtl-optimization/88233
21374 * common.opt (fsplit-wide-types-early): New option.
21375 * common/config/rs6000/rs6000-common.c
21376 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
21378 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
21379 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
21380 flag_split_wide_types_early.
21381 (pass_data_lower_subreg3): New.
21382 (pass_lower_subreg3): New.
21383 (make_pass_lower_subreg3): New.
21384 * passes.def (pass_lower_subreg2): Move after the loop passes.
21385 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
21386 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
21387 the pass pipeline; its previous place is taken by ...
21388 (make_pass_lower_subreg3): ... this.
21390 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21392 * config/s390/s390.c (s390_shift_truncation_mask): Define.
21393 (TARGET_SHIFT_TRUNCATION_MASK): Define.
21395 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21397 * config/s390/constraints.md: Add new jsc constraint.
21398 * config/s390/predicates.md: New predicates.
21399 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
21400 * config/s390/s390.c (s390_valid_shift_count): New function.
21401 (print_shift_count_operand): Use s390_valid_shift_count.
21402 (print_operand): Likewise.
21403 * config/s390/s390.md: Use new predicate.
21404 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
21405 * config/s390/vector.md: Use new predicate.
21407 2019-07-08 Andrew Waterman <andrew@sifive.com>
21408 Jim Wilson <jimw@sifive.com>
21410 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
21411 bitsize instead of BITS_PER_WORD.
21413 2019-07-08 Martin Liska <mliska@suse.cz>
21415 * collect2.c (defined): Revert to before r254460.
21416 (scan_prog_file): Revert to before r254460.
21418 2019-07-08 Richard Biener <rguenther@suse.de>
21420 PR tree-optimization/83518
21421 * tree-ssa-sccvn.c: Include splay-tree.h.
21422 (struct pd_range, struct pd_data): New.
21423 (struct vn_walk_cb_data): Add data to track partial definitions.
21424 (vn_walk_cb_data::~vn_walk_cb_data): New.
21425 (vn_walk_cb_data::push_partial_def): New.
21426 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
21427 (vn_reference_lookup_2): When partial defs are registered give up.
21428 (vn_reference_lookup_3): Track partial defs for memset and
21429 constructor zeroing and for defs from constants.
21431 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21433 * doc/install.texi (bootstrap-Og): Document.
21435 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21437 * config/riscv/pic.md (*local_pic_load_s<mode>)
21438 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
21439 referenced by <mode>, giving...
21440 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
21441 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
21442 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
21443 use <X:MODE> for the mode attribute.
21445 2019-07-07 Jeff Law <law@redhat.com>
21447 PR tree-optimization/91090
21448 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
21449 in handling of ranges to simplify switch statements.
21451 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21453 * config/darwin.c (darwin_override_options): Make a final check on PIC
21456 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21458 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
21459 on for kernel code.
21461 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21464 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
21465 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
21466 instead of matching them to "l" output operands.
21468 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21470 * config/mips/mips.c (mips_split_move): Zero-initialize addr
21471 and check whether addr.reg is nonnull before using it.
21473 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21475 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
21476 ctx->for_simd_scan_phase simd copy the outer var to the privatized
21477 variable(s). For conditional lastprivate look through outer
21478 GIMPLE_OMP_SCAN context.
21479 (lower_omp_1): For conditional lastprivate look through outer
21480 GIMPLE_OMP_SCAN context.
21482 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
21483 member to combined_into_simd_safelen1.
21484 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
21485 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
21486 clauses if ctx->combined_into_simd_safelen1 put statements after the
21487 predicate conditionalized block rather than into it.
21489 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21491 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
21493 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
21494 Make the choice of <mode> explicit, giving...
21495 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
21497 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21499 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
21500 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
21502 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
21503 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
21504 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
21505 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
21506 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
21507 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
21508 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
21509 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
21510 (*avx512f_scatterdi<mode>): Likewise.
21511 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
21513 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21515 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
21516 specify the mode iterator referenced by <mode>, giving...
21517 (*push1_h8300hs_<QHI:mode>): ...this.
21519 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21521 * config/gcn/gcn-valu.md
21522 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
21523 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
21524 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
21525 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
21526 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
21527 but using the _exec comparison patterns.
21528 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
21529 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
21530 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
21531 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
21532 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
21533 but using the _exec comparison patterns.
21535 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21537 * config/arm/sync.md
21538 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
21539 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
21540 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
21541 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
21542 <SIDI:cas_cmp_str>.
21544 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21546 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
21547 (maybe_lookup_ctx): Add forward declaration.
21548 (omp_find_scan): Likewise. Walk into body of simd if composited
21549 with worksharing loop.
21550 (scan_omp_simd_scan): New function.
21551 (scan_omp_1_stmt): Call it.
21552 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
21553 ctx->for_simd_scan_phase.
21554 (lower_rec_input_clauses): Do much less work for inscan reductions
21555 in ctx->for_simd_scan_phase is_simd regions.
21556 (lower_omp_scan): Set is_simd also on simd constructs composited
21557 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
21558 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
21559 emit their body after in simd constructs composited with worksharing
21561 (lower_omp_for_scan): Handle worksharing loop composited with simd.
21563 * omp-low.c (omp_find_scan): Make static.
21564 (lower_omp_for_scan): Fix order of merge arguments in input phase of
21565 the second loop, var2 represents the first partial sum and so needs
21566 to go before rprivb[ivar].
21568 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
21570 * config/rs6000/rs6000-logue.c: Remove unused code.
21572 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21574 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
21576 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
21579 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
21580 check with a frame laid out check.
21582 2019-07-05 Richard Biener <rguenther@suse.de>
21584 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
21585 when comparing against a store with possibly the same value.
21587 2019-07-05 Richard Biener <rguenther@suse.de>
21589 PR tree-optimization/91091
21590 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
21591 (walk_non_aliased_vuses): Likewise.
21592 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
21593 (get_continuation_for_phi): New tbaa_p parameter and pass
21595 (walk_non_aliased_vuses): Likewise.
21596 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
21597 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
21598 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
21600 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
21601 (adjust_offsets_for_equal_base_address): New function.
21602 (vn_reference_lookup_3): Use it to catch more base equivalences.
21603 Handle and pass down tbaa_p flag.
21604 (vn_reference_lookup_pieces): Adjust.
21605 (vn_reference_lookup): Remove alias-set altering, instead pass
21606 down false as tbaa_p.
21608 2019-07-05 Richard Biener <rguenther@suse.de>
21610 PR tree-optimization/91091
21611 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
21612 accesses can happen with -fno-strict-aliasing.
21614 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
21616 * tree-ssa-alias.c (alias_stats): Add
21617 nonoverlapping_component_refs_since_match_p_must_overlap.
21618 (dump_alias_stats): Print it.
21619 (nonoverlapping_component_refs_since_match_p): Add early exit.
21620 (nonoverlapping_component_refs_p): Do not account early exit.
21622 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21624 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
21625 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
21626 (emit_eh_dispatch): Delete.
21627 (lower_catch): Emit the eh_dispatch manually and set the location of
21628 the first catch statement onto it.
21629 (lower_eh_filter): Emit the eh_dispatch manually and set location.
21630 (lower_eh_dispatch): Propagate location.
21631 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
21632 (eliminate_build): Likewise.
21634 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21636 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
21637 phi nodes if possible.
21638 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
21639 location info on the newly created statement.
21640 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
21641 newly created increment if needed.
21643 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21645 PR middle-end/78884
21646 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
21647 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
21648 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
21649 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
21650 ctx->add_safelen1 is set.
21652 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
21653 GOMP_loop_start at the start of second worksharing loop in a scan.
21654 For nowait, don't emit GOMP_loop_end_nowait at the end of first
21655 worksharing loop in a scan even if there are conditional lastprivates,
21656 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
21658 2019-07-04 Jan Hubicka <jh@suse.cz>
21660 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
21661 Fix check for match in the ref walk.
21663 2019-07-04 Martin Liska <mliska@suse.cz>
21665 * tree-ssa-loop-niter.c
21666 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
21667 (estimate_numbers_of_iterations):
21668 Support __builtin_expect_with_probability for analysis
21669 of # of loop iterations.
21671 2019-07-04 Alexandre Oliva <oliva@adacore.com>
21673 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
21674 * except.c: Likewise.
21675 * expr.c (expand_expr_real_1): Reject it.
21676 * gimplify.c (gimplify_expr): Gimplify it, within
21678 * tree-dump.c (dequeue_and_dump): Dump it.
21679 * tree-pretty-print.c (dump_generic_node): Likewise.
21680 * tree.c (block_may_fallthru): Handle it.
21681 * tree.def (EH_ELSE_EXPR): Introduce it.
21682 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
21683 with GIMPLE_EH_ELSE as try/finally/else.
21685 2019-07-04 Richard Biener <rguenther@suse.de>
21688 * tree-pass.h (execute_all_ipa_transforms): Add a flag
21689 parameter whether to disable GC collection.
21690 * passes.c (execute_one_ipa_transform_pass): Likewise, and
21692 (execute_all_ipa_transforms): Likewise and pass it down.
21693 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
21694 collection from applying IPA transforms.
21695 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
21696 from applying IPA transforms.
21698 2019-07-04 Richard Biener <rguenther@suse.de>
21700 PR tree-optimization/90911
21701 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
21702 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
21703 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
21704 scalar_loop_scaling.
21705 (vect_transform_loop): Scale scalar loop profile if needed.
21706 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
21707 the loop copy from if-conversion adjust edge probabilities
21708 and scale the vectorized loop body profile, queue the scalar
21709 profile for updating after peeling.
21711 2019-07-04 Jan Hubicka <jh@suse.cz>
21713 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
21714 parameters; return early for must-alias.
21715 (indirect_ref_may_alias_decl_p): Likewise; when establishing
21716 outer types match, try nonoverlapping_component_refs
21717 if must-alias is not obvious.
21718 (indirect_refs_may_alias_p): Likewise.
21719 (refs_may_alias_p_2): Likewise.
21721 2019-07-04 Richard Biener <rguenther@suse.de>
21723 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
21725 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
21727 (struct vn_walk_cb_data): New callback data struct.
21728 (vn_reference_lookup_2): Adjust.
21729 (vn_reference_lookup_3): Likewise.
21730 (vn_reference_lookup_pieces): Likewise.
21731 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
21732 (visit_reference_op_load): Adjust.
21734 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21736 PR tree-optimization/91063
21737 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
21738 stmt from stmts sequence before calling vect_init_vector_1.
21741 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21744 * fwprop.c (reg_single_def_p): New function.
21745 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
21746 (forward_propagate_into): New parameter reg_prop_only
21747 with default value false.
21748 Propagate def's src into loop only if SET_SRC and SET_DEST
21749 of def_set have single definitions.
21750 Likewise if reg_prop_only is set to true.
21751 (fwprop): New param fwprop_addr_p.
21752 Integrate fwprop_addr into fwprop.
21753 (fwprop_addr): Remove.
21754 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
21756 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
21757 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
21758 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
21760 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21762 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
21763 in worksharing loop scans.
21765 PR tree-optimization/91074
21766 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
21769 PR rtl-optimization/90756
21770 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
21773 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
21775 * config/aarch64/aarch64.md: Remove redundant constraints from
21776 define_expand but keep some patterns untouched if they are
21777 specially selected by TARGET_SECONDARY_RELOAD hook.
21778 * config/aarch64/aarch64-sve.md: Likewise.
21779 * config/aarch64/atomics.md: Remove redundant constraints from
21781 * config/aarch64/aarch64-simd.md: Likewise.
21783 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21785 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
21786 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
21787 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
21789 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
21792 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21794 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
21795 (STARTFILE_SPEC): Split crt3 into a separate spec.
21796 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
21797 (DARWIN_CRT2_SPEC): New.
21798 (DARWIN_CRT3_SPEC): New.
21799 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
21800 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
21801 (DARWIN_CRT3_SPEC): New.
21803 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
21805 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
21806 Change the RTL attribute "length" from "4" to "*" to allow the
21807 length attribute to be adjusted automatically for prefixed load,
21808 store, and add immediate instructions.
21809 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
21811 (extendsi<mode>2, EXTSI iterator): Likewise.
21812 (movsi_internal1): Likewise.
21813 (movsi_from_sf): Likewise.
21814 (movdi_from_sf_zero_ext): Likewise.
21815 (mov<mode>_internal): Likewise.
21816 (movcc_internal1, QHI iterator): Likewise.
21817 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
21818 (movsf_from_si): Likewise.
21819 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
21820 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
21821 (mov<mode>, FMOVE128 iterator): Likewise.
21822 (movdi_internal64): Likewise.
21823 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
21825 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
21826 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
21827 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
21828 (vsx_splat_v4sf): Likewise.
21830 2019-07-03 Mark Wielaard <mark@klomp.org>
21833 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
21834 DW_AT_addr_base if there is actually a .debug_addr section with
21836 (output_addr_table): Add DWARF5 table header generation here after
21837 checking there are actually any addresses from...
21838 (dwarf2out_finish): ...here.
21840 2019-07-03 Richard Biener <rguenther@suse.de>
21842 PR middle-end/91069
21843 * match.pd (vec_perm -> bit_insert): Fix element read from
21846 2019-07-03 Martin Liska <mliska@suse.cz>
21848 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
21849 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
21851 * generic-match-head.c: Include dbgcnt.h.
21852 * gimple-match-head.c: Likewise.
21854 2019-07-03 Martin Liska <mliska@suse.cz>
21856 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
21857 (GCOV_COUNTER_V_TOPN): New.
21858 (GCOV_COUNTER_V_INDIR): Use _topn.
21859 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
21860 (GCOV_TOPN_VALUES): New.
21861 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
21862 (GCOV_TOPN_VALUES_COUNTERS): New.
21863 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
21865 (gimple_init_gcov_profiler): Rename variables from one_value
21867 (gimple_gen_one_value_profiler): Remove.
21868 (gimple_gen_topn_values_profiler): New function.
21869 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
21870 names instead of SINGLE_VALUE.
21871 (stream_out_histogram_value): Likewise.
21872 (stream_in_histogram_value): Likewise.
21873 (get_most_common_single_value): Likewise.
21874 (gimple_divmod_fixed_value_transform): Likewise.
21875 (gimple_stringops_transform): Likewise.
21876 (gimple_divmod_values_to_profile): Likewise.
21877 (gimple_stringops_values_to_profile): Likewise.
21878 (gimple_find_values_to_profile): Likewise.
21879 * value-prof.h (enum hist_type): Rename to TOPN.
21880 (gimple_gen_one_value_profiler): Remove.
21881 (gimple_gen_topn_values_profiler): New.
21883 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
21885 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
21886 if it has the DW_AT_data_member_location attribute.
21888 2019-07-03 Richard Biener <rguenther@suse.de>
21890 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
21893 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
21895 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
21896 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
21897 (tlsdesc_small_sve_<mode>): Likewise.
21899 2019-07-03 Martin Liska <mliska@suse.cz>
21901 * Makefile.in: Define ZSTD_LIB.
21902 * common.opt: Adjust compression level
21903 to support also zstd levels.
21904 * config.in: Regenerate.
21905 * configure: Likewise.
21906 * configure.ac: Add --with-zstd and --with-zstd-include options
21908 * doc/install.texi: Mention zstd dependency.
21909 * gcc.c: Print supported LTO compression algorithms.
21910 * lto-compress.c (lto_normalized_zstd_level): Likewise.
21911 (lto_compression_zstd): Likewise.
21912 (lto_uncompression_zstd): Likewise.
21913 (lto_end_compression): Dispatch in between zlib and zstd.
21914 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
21915 (lto_uncompression_zlib): Make it static.
21916 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
21917 * lto-section-in.c (lto_get_section_data): Pass info
21918 about used compression.
21919 * lto-streamer-out.c: By default use zstd when possible.
21920 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
21921 (TV_IPA_LTO_COMPRESS): Likewise for compression.
21923 2019-07-03 Martin Liska <mliska@suse.cz>
21925 * lto-section-in.c (lto_get_section_data): Add "lto" section.
21926 * lto-section-out.c (lto_destroy_simple_output_block): Never
21927 compress LTO_section_lto section.
21928 * lto-streamer-out.c (produce_asm): Do not set major_version
21930 (lto_output_toplevel_asms): Likewise.
21931 (produce_lto_section): New function.
21932 (lto_output): Call produce_lto_section.
21933 (lto_write_mode_table): Do not set major_version and
21935 (produce_asm_for_decls): Likewise.
21936 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
21938 (struct lto_header): Remove.
21939 (struct lto_section): New struct.
21940 (struct lto_simple_header): Do not inherit from lto_header.
21941 (struct lto_file_decl_data): Add lto_section_header field.
21943 2019-07-03 Martin Liska <mliska@suse.cz>
21945 * lra-eliminations.c (eliminate_regs_in_insn): Remove
21947 * reg-stack.c (check_asm_stack_operands): Likewise.
21948 * tree-ssa-structalias.c (create_function_info_for): Likewise.
21949 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
21950 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
21951 force_expand_binop.
21953 2019-07-03 Martin Liska <mliska@suse.cz>
21955 PR tree-optimization/90892
21956 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
21957 in string constants.
21959 2019-07-03 Martin Liska <mliska@suse.cz>
21961 PR middle-end/90899
21962 * multiple_target.c (create_dispatcher_calls): Add to comdat
21963 group only if set for ifunc.
21965 2019-07-03 Martin Liska <mliska@suse.cz>
21968 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
21969 Define local_object_name in outer scope in order to handle
21970 use-after-scope issue.
21972 2019-07-03 Martin Liska <mliska@suse.cz>
21974 * common.opt: Add fprofile-note.
21975 * coverage.c (coverage_init): Append the option
21977 * doc/invoke.texi: Document -fprofile-note.
21979 2019-07-03 Jakub Jelinek <jakub@redhat.com>
21981 PR tree-optimization/91033
21982 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
21983 vect_analyze_data_refs): Add bool * arguments.
21984 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
21985 if failure is due to scatter/gather, set *fatal to false if non-NULL.
21986 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
21987 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
21988 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
21989 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
21990 vect_analyze_data_refs caller.
21992 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
21994 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
21995 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
21996 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
21997 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
21998 OMP_CLAUSE__SCANTEMP_ entry.
21999 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22000 * tree-pretty-print.c (dump_omp_clause): Likewise.
22001 * tree-nested.c (convert_nonlocal_omp_clauses,
22002 convert_local_omp_clauses): Likewise.
22003 * omp-general.h (struct omp_for_data): Add have_scantemp and
22004 have_nonctrl_scantemp members.
22005 * omp-general.c (omp_extract_for_data): Initialize them.
22006 * omp-low.c (struct omp_context): Add scan_exclusive member.
22007 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22008 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22009 ctx->scan_exclusive.
22010 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22011 of !ctx->scan_inclusive.
22012 (lower_rec_input_clauses): Simplify gimplification of dtors using
22013 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22014 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22015 loops. Don't add barrier for reduction_omp_orig_ref if
22016 ctx->scan_??xclusive.
22017 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22018 (lower_omp_scan): Use ctx->scan_exclusive instead
22019 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22020 reductions. Use new_vard != new_var instead of repeated
22021 omp_is_reference calls.
22022 (omp_find_scan, lower_omp_for_scan): New functions.
22023 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22025 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22026 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22027 and fd->have_scantemp.
22029 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22030 on worksharing loop propagate it as shared clause to containing
22033 * omp-expand.c (expand_omp_for_static_nochunk,
22034 expand_omp_for_static_chunk): For nowait worksharing loop with
22035 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22038 2019-07-02 qing zhao <qing.zhao@oracle.com>
22040 PR preprocessor/90581
22041 * doc/cppopts.texi: Add document for -fmax-include-depth.
22042 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22044 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22046 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22047 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22048 (mmx_packssdw): Ditto.
22049 (mmx_punpckhbw): Ditto.
22050 (mmx_punpcklbw): Ditto.
22051 (mmx_punpckhwd): Ditto.
22052 (mmx_punpcklwd): Ditto.
22053 (mmx_punpckhdq): Ditto.
22054 (mmx_punpckldq): Ditto.
22055 (*vec_dupv4hi): Ditto.
22056 (*vec_dupv2si): Ditto.
22057 (mmx_pmovmskb): Ditto.
22058 * config/i386/sse.md (sse_cvtpi2ps): Use
22059 TARGET_SSE2 && SSE_REG_P in split condition.
22060 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22061 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22062 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22063 (ssse3_pshufbv8qi3): Ditto.
22064 (ssse3_palignrdi): Ditto.
22066 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22068 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22069 with inlined save and restore.
22071 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22073 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22074 to be inserted on single successor edge of the entry block. Then call
22075 commit_edge_insertions instead of inserting the instructions manually.
22076 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22077 RTL expansion and rebuild jump labels chain.
22079 2019-07-02 Richard Biener <rguenther@suse.de>
22081 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22083 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22085 * tree.c (build_common_tree_nodes): Initialize them.
22086 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22087 Make declarations comments.
22088 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22089 chrec_known): Remove definitions.
22090 (initialize_scalar_evolutions_analyzer): Remove.
22091 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22092 * tree-streamer.c (preload_common_nodes): Do not preload
22093 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22095 2019-07-02 Jan Hubicka <jh@suse.cz>
22097 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22100 2019-07-02 Jan Hubicka <jh@suse.cz>
22102 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22104 (nonoverlapping_component_refs_since_match_p): ... this one;
22105 handle also non-decl bases; return -1 if search gave up.
22106 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22107 nonoverlapping_component_refs_of_decl_p_no_alias to
22108 nonoverlapping_component_refs_since_match_p_may_alias,
22109 nonoverlapping_component_refs_since_match_p_no_alias.
22110 (dump_alias_stats): Update dumping.
22111 (aliasing_matching_component_refs_p): Break out from ...;
22112 dispatch to nonoverlapping_component_refs_for_decl_p
22113 and nonoverlapping_component_refs_since_match_p.
22114 (aliasing_component_refs_p): ... here; call
22115 nonoverlapping_component_refs_p in scenarios where we can not
22116 precisely determine base match.
22117 (decl_refs_may_alias_p): Use
22118 nonoverlapping_component_refs_since_match_p.
22119 (indirect_ref_may_alias_decl_p): Do not call
22120 nonoverlapping_component_refs_p.
22121 (indirect_refs_may_alias_p): Likewise.
22123 2019-07-02 Jan Hubicka <jh@suse.cz>
22125 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22126 to clobber of return value.
22128 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22130 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22131 for is_neon_type instructions that have not already been categorized.
22133 2019-07-02 Richard Biener <rguenther@suse.de>
22135 PR tree-optimization/58483
22136 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22137 for MEM_REF base hashing.
22138 (equal_mem_array_ref_p): Likewise for base comparison.
22140 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22142 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22143 parameterized name.
22144 (signbit<mode>2): Use that name. Simplify.
22146 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22148 PR middle-end/66726
22149 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22150 Tune heuristic from PR71016 to allow MIN / MAX.
22152 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22154 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22155 parameterized name.
22156 (abs<mode>2): Use that name. Simplify.
22158 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22160 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22161 parameterized name.
22162 (neg<mode>2): Use that name. Simplify.
22164 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22166 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22168 (abs<mode>2): Use that name. Simplify.
22170 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22172 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22174 (neg<mode>2): Use that name. Simplify.
22176 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22178 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22179 ("enabled" attribute): Handle sse_noavx isa attribute.
22180 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22181 Use TARGET_SSE && SSE_REGNO_P in split condition.
22182 (*vec_dupv2sf): Ditto.
22184 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22186 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22188 (floatsi<mode>2): Use that name. Simplify.
22190 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22192 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22193 parameterized name.
22194 (extenddf<mode>2_vsx): Make this a parameterized name.
22195 (extenddf<mode>2): Use those names. Simplify.
22197 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22199 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22201 (eh_return): Use that name. Simplify.
22203 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22205 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22206 (doloop_end): Use that name. Simplify.
22208 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22210 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22211 parameterized name.
22212 (indirect_jump): Use that name. Simplify.
22214 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22216 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22217 parameterized name.
22218 (abs<mode>2): Use that name. Simplify.
22220 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22222 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22223 parameterized name.
22224 (fix_trunc<mode>si2): Use that name. Simplify.
22226 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22228 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22229 (allocate_stack): Use that name. Simplify.
22231 2019-07-01 Martin Sebor <msebor@redhat.com>
22233 PR middle-end/90923
22234 * hash-map.h (hash_map::put): On insertion invoke element ctor.
22235 (hash_map::get_or_insert): Same. Reformat comment.
22236 * hash-set.h (hash_set::add): On insertion invoke element ctor.
22237 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22238 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22239 * hash-table.h (hash_table::operator=): Prevent copy assignment.
22240 (hash_table::hash_table (const hash_table&)): Use copy ctor
22241 instead of assignment to copy elements.
22243 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
22244 John David Anglin <danglin@gcc.gnu.org>
22247 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22248 using saved frame pointer.
22250 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
22252 PR middle-end/64242
22253 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22254 Add frame clobber and schedule blockage.
22256 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
22258 * doc/invoke.texi (Link Options): Further editorial changes to
22259 -flinker-output docs.
22261 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22263 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
22264 Load both operands of a PLUS into registers separately.
22266 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
22268 * config/s390/vector.md: Fix shift count operand printing.
22270 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22272 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
22274 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22276 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
22277 Use recog_data to test for an output operand.
22279 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22281 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
22282 exclude any others that are disparaged or that are bound to need
22284 (ira_get_dup_out_num): Expand comment.
22286 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22288 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
22289 constraint string for each operand/alternative combo. Only handle
22290 '%' at the start of constraint strings, and look for it outside
22293 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22295 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
22296 alternative_mask instead of HARD_REG_SET to represent a
22297 bitmask of alternatives.
22298 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22299 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
22301 2019-07-01 Martin Liska <mliska@suse.cz>
22303 * edit-context.c (test_applying_fixits_unreadable_file): Do not
22304 use () for a constructor call.
22305 (test_applying_fixits_line_out_of_range): Likewise.
22306 * ggc-page.c (alloc_page): Use (void *) for %p printf format
22308 (free_page): Likewise.
22310 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
22312 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
22313 parameter names to match usage (no functional change).
22314 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
22316 2019-07-01 Richard Biener <rguenther@suse.de>
22318 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
22320 (pass_fre::execute): Honor it.
22321 * passes.def: Adjust pass_fre invocations to allow iterating,
22322 add non-iterating pass_fre before late threading/dom.
22324 2019-07-01 Richard Biener <rguenther@suse.de>
22326 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
22327 TARGET_MEM_REF handling to also handle address-taken ones.
22329 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
22331 * doc/sourcebuild.texi (Effective-Target Keywords, Other
22332 hardware attributes): Document avx512vp2intersect.
22334 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22336 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
22337 (abs<mode>2): New expander.
22338 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
22339 Use CODE_FOR_ssse3_absv8qi2.
22340 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
22341 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
22343 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22345 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
22346 to sse, sse_noavx and avx. Update all uses.
22348 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22350 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
22351 (*mmx_<plusminus_insn><mode>3): Ditto.
22352 (*mmx_mulv4hi3"): Ditto.
22353 (*mmx_smulv4hi3_highpart): Ditto.
22354 (*mmx_umulv4hi3_highpart): Ditto.
22355 (*mmx_pmaddwd): Ditto.
22356 (*sse2_umulv1siv1di3): Ditto.
22357 (*mmx_<code>v4hi3): Ditto.
22358 (*mmx_<code>v8qi3): Ditto.
22359 (mmx_ashr<mode>3): Ditto.
22360 ("mmx_<shift_insn><mode>3): Ditto.
22361 (*mmx_eq<mode>3): Ditto.
22362 (mmx_gt<mode>3): Ditto.
22363 (mmx_andnot<mode>3): Ditto.
22364 (*mmx_<code><mode>3): Ditto.
22365 (*mmx_pinsrw): Ditto.
22366 (*mmx_pextrw): Ditto.
22367 (mmx_pshufw_1): Ditto.
22368 (*mmx_uavgv8qi3): Ditto.
22369 (*mmx_uavgv4hi3): Ditto.
22370 ("mmx_psadbw): Ditto.
22371 * config/i386/sse.md (sse_cvtps2pi): Ditto.
22372 (sse_cvttps2pi): Ditto.
22373 (ssse3_pmaddubsw): Ditto.
22374 (*ssse3_pmulhrswv4hi3): Ditto.
22375 (ssse3_psign<mode>3): Ditto.
22377 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
22379 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
22380 adjustment for bit-fields to all aggregate types.
22382 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
22384 * config/rs6000/predicates.md (pcrel_address): Use
22385 SYMBOL_REF_LOCAL_P to determine if a label is local.
22386 (pcrel_external_address): New predicate.
22387 (non_prefixed_mem_operand): Delete, predicate not used.
22388 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
22389 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
22391 (SYMBOL_REF_PCREL_P): Likewise.
22394 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
22396 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
22397 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
22398 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
22400 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22402 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
22403 override on extra_headers.
22405 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22407 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
22408 * config/darwin-driver.c (darwin_default_min_version): Remove newline
22410 (darwin_driver_init): Likewise.
22412 2019-06-28 Jan Beulich <jbeulich@suse.com>
22414 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22415 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
22416 Eliminate redundant alternative.
22418 2019-06-28 Jan Beulich <jbeulich@suse.com>
22420 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22421 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
22422 Use vector_operand.
22424 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
22426 * config/arc/arc.c (arc_rtx_costs): All short instructions are
22427 having a lower cost regardless of the speed option.
22429 2019-06-28 Jan Beulich <jbeulich@suse.com>
22431 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
22432 vector_operand plus, on both alternatives, "Bm" constraint.
22434 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
22436 * config/arm/arm.md: Remove redundant constraints from
22437 define_expand but leave reload_inm and reload_outm patterns
22438 untouched since they need special constraints to work.
22439 * config/arm/arm-fixed.md: Remove redundant constraints from
22441 * config/arm/iwmmxt.md: Likewise.
22442 * config/arm/neon.md: Likewise.
22443 * config/arm/sync.md: Likewise.
22444 * config/arm/thumb1.md: Likewise.
22445 * config/arm/vec-common.md: Likewise.
22447 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
22449 * doc/install.texi: Document --disable-tm-clone-registry.
22451 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22454 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
22457 PR tree-optimization/91010
22458 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
22459 return true. Otherwise, don't call operand_equal_p if offset1 or
22460 offset2 is NULL and just return false.
22462 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22464 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
22465 user-specified float mode choice for kernel mode code.
22467 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22469 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
22472 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22474 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
22475 use longcall for 64b code.
22477 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
22479 * builtins.c (get_memory_rtx): Fix comment.
22480 * optabs.def (movmem_optab): Change to cpymem_optab.
22481 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
22482 (emit_block_move_hints): Change movmem to cpymem.
22483 * defaults.h: Change movmem to cpymem.
22484 * targhooks.c (get_move_ratio): Change movmem to cpymem.
22485 (default_use_by_pieces_infrastructure_p): Ditto.
22486 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
22487 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
22489 * config/aarch64/aarch64.h: Change movmem to cpymem.
22490 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
22491 * config/alpha/alpha.h: Change movmem to cpymem in comment.
22492 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
22494 * config/arc/arc-protos.h: Change movmem to cpymem.
22495 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
22496 * config/arc/arc.h: Change movmem to cpymem in comment.
22497 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
22498 * config/arm/arm-protos.h: Change movmem to cpymem in names.
22499 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
22500 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
22501 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
22502 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
22503 * config/avr/avr-protos.h: Change movmem to cpymem.
22504 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
22505 avr_out_movmem): Change movmem to cpymem.
22506 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
22507 Change movmem to cpymem.
22508 * config/bfin/bfin-protos.h: Change movmem to cpymem.
22509 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
22510 Change movmem to cpymem.
22511 * config/bfin/bfin.h: Change movmem to cpymem in comment.
22512 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
22513 * config/c6x/c6x-protos.h: Change movmem to cpymem.
22514 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
22515 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
22516 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
22517 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
22518 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
22519 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
22520 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
22521 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
22522 expand_small_cpymem_or_setmem,
22523 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
22524 expand_set_or_cpymem_constant_prologue,
22525 ix86_expand_set_or_cpymem): Change movmem to cpymem.
22526 * config/i386/i386-protos.h: Change movmem to cpymem.
22527 * config/i386/i386.h: Change movmem to cpymem in comment.
22528 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
22529 (setmem<mode>): Change expansion function name.
22530 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
22531 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
22532 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
22533 * config/m32c/m32c-protos.h: Change movmem to cpymem.
22534 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
22535 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
22536 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
22538 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
22539 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
22540 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
22541 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
22542 Change movmem to cpymem.
22543 * config/mips/mips.h: Change movmem to cpymem.
22544 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
22545 * config/nds32/nds32-memory-manipulation.c
22546 (nds32_expand_movmemsi_loop_unknown_size,
22547 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
22548 nds32_expand_movmemsi_unroll,
22549 nds32_expand_movmemsi): Change movmem to cpymem.
22550 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
22551 * config/nds32/nds32-protos.h: Change movmem to cpymem.
22552 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
22553 (pa_adjust_insn_length): Change call to compute_movmem_length.
22554 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
22555 movmemdi, movmemdi_prereload,
22556 movmemdi_postreload): Change movmem to cpymem.
22557 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
22558 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
22559 * config/riscv/riscv.c: Change movmem to cpymem in comment.
22560 * config/riscv/riscv.h: Change movmem to cpymem.
22561 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
22562 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
22563 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
22565 * config/s390/s390-protos.h: Change movmem to cpymem.
22566 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
22567 s390_expand_insv): Change movmem to cpymem.
22568 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
22569 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
22570 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
22571 * config/sparc/sparc.h: Change movmem to cpymem in comment.
22572 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
22573 for nonexistent function.
22574 * config/vax/vax.h: Change movmem to cpymem in comment.
22575 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
22576 * config/visium/visium.h: Change movmem to cpymem in comment.
22577 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
22578 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
22579 * doc/md.texi: Change movmem to cpymem and update description to match.
22580 * doc/rtl.texi: Change movmem to cpymem.
22581 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
22582 * doc/tm.texi: Regenerate.
22584 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
22586 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
22587 -fvariable-expansion-in-unroller by default.
22588 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
22591 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
22594 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22595 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22597 * config.gcc(rs6000-*-*): Define target_gtfiles.
22599 2019-06-27 Jan Hubicka <jh@suse.cz>
22601 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
22602 (add_type_duplicate): When odr hash is not allocated, to nothing.
22603 (odr_based_tbaa_p): New function.
22604 (set_type_canonical_for_odr_type): New function.
22605 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
22606 set_type_canonical_for_odr_type): New.
22607 * tree.c (gimple_canonical_types_compatible_p): ODR types with
22608 ODR based TBAA are not equivalent to non-ODR types.
22610 2019-06-27 Martin Liska <mliska@suse.cz>
22612 PR tree-optimization/90974
22613 PR rtl-optimization/90975
22614 PR rtl-optimization/90976
22616 PR tree-optimization/91017
22617 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
22619 * lra.c (lra_set_insn_recog_data): Remove a leftover from
22620 initial commit of IRA.
22621 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
22623 * tree-vect-loop.c (vect_create_epilog_for_reduction):
22624 Remove unused mode1.
22625 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
22628 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22631 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
22632 instead of register_operand for operands[1], add m to its constraints
22633 if operands[2] uses "C" constraint. Ensure in condition that if
22634 operands[2] is not 0, then operands[1] is not a MEM. For last two
22635 alternatives, use unaligned loads instead of aligned if operands[1] is
22636 misaligned_operand.
22638 2019-06-27 Martin Liska <mliska@suse.cz>
22640 * asan.c (asan_emit_allocas_unpoison): Remove obviously
22642 * bt-load.c (move_btr_def): Likewise.
22643 * builtins.c (expand_builtin_apply_args_1): Likewise.
22644 (expand_builtin_apply): Likewise.
22645 * cfgexpand.c (expand_asm_stmt): Likewise.
22646 (construct_init_block): Likewise.
22647 * cfghooks.c (verify_flow_info): Likewise.
22648 * cfgloopmanip.c (remove_path): Likewise.
22649 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
22650 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
22651 * combine.c (simplify_if_then_else): Likewise.
22652 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
22653 (choose_basereg): Likewise.
22654 (ix86_expand_prologue): Likewise.
22655 (ix86_preferred_output_reload_class): Likewise.
22656 * cselib.c (cselib_record_sets): Likewise.
22657 * df-scan.c (df_scan_alloc): Likewise.
22658 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
22659 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
22660 * emit-rtl.c (try_split): Likewise.
22661 * graphite-scop-detection.c (assign_parameter_index_in_region):
22663 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
22664 * ira-color.c (setup_profitable_hard_regs): Likewise.
22665 * ira.c (rtx_moveable_p): Likewise.
22666 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
22667 * read-rtl.c (read_subst_mapping): Likewise.
22668 * regrename.c (scan_rtx): Likewise.
22669 * reorg.c (fill_slots_from_thread): Likewise.
22670 * tree-inline.c (tree_function_versioning): Likewise.
22671 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
22672 * tree-ssa-sink.c (statement_sink_location): Likewise.
22673 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
22674 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
22675 (vect_create_epilog_for_reduction): Likewise.
22676 * tree.c (build_nonstandard_integer_type): Likewise.
22678 2019-06-27 Richard Biener <rguenther@suse.de>
22680 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
22682 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
22684 PR tree-optimization/89772
22685 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
22686 out-of-bound accesses checking.
22688 2019-06-27 Martin Liska <mliska@suse.cz>
22690 PR tree-optimization/91014
22691 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
22692 when LHS is NULL_TREE.
22694 2019-06-27 Martin Liska <mliska@suse.cz>
22696 * symbol-summary.h (traverse): Pass
22697 argument a to the call of callback.
22698 (gt_ggc_mx): Mark arguments as unused.
22699 (gt_pch_nx): Likewise.
22701 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
22704 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
22707 2019-06-26 Jeff Law <law@redhat.com>
22709 PR tree-optimization/90883
22710 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
22711 (delete_dead_or_redundant_assignment): Likewise.
22713 PR tree-optimization/90883
22714 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
22715 * tree-ssa-dse.c: Update various comments to distinguish between
22716 dead and redundant stores.
22717 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
22718 (dse_optimize_redundant_stores): New function.
22719 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
22720 Distinguish between dead and redundant calls in dump output. All
22722 (delete_dead_or_redundant_assignment): Similarly for assignments.
22723 (dse_optimize_stmt): Handle _CHK variants. For statements which
22724 store 0 into multiple memory locations, try to prove a subsequent
22725 store is redundant.
22727 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
22730 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
22731 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
22733 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22735 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
22736 (branch_islands): New extern.
22737 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
22738 * config/rs6000/rs6000.c: .. here.
22740 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22742 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
22743 (powerpc*-*-*) ... to here.
22745 2019-06-26 Jeff Law <law@redhat.com>
22747 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
22748 memcpy, memmove and memset builtins.
22749 (maybe_trim_memstar_call): Likewise.
22751 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22753 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
22755 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22757 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22759 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22761 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
22763 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
22765 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
22768 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22770 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
22772 2019-06-26 Richard Biener <rguenther@suse.de>
22775 * tree-inline.c (remap_ssa_name): Copy SSA range info.
22777 2019-06-26 Richard Biener <rguenther@suse.de>
22779 * lto-streamer.h (lto_bitmap_alloc): Remove.
22780 (lto_bitmap_free): Likewise.
22781 * lto-streamer.c (lto_bitmap_alloc): Remove.
22782 (lto_bitmap_free): Likewise.
22783 (lto_obstack): Likewise.
22784 (lto_obstack_initialized): Likewise.
22785 * lto-streamer-out.c (lto_output): Use own obstack for local
22786 bitmap, free it consistently.
22788 2019-06-26 Jakub Jelinek <jakub@redhat.com>
22791 * config/i386/sse.md
22792 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
22793 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
22794 insns if operands[2] is misaligned_operand.
22796 2019-06-26 Li Jia He <helijia@linux.ibm.com>
22798 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
22800 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
22803 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22805 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
22807 2019-06-26 Martin Liska <mliska@suse.cz>
22809 PR tree-optimization/90973
22810 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
22811 epilogue_cost_vec instead of prologue_cost_vec for
22814 2019-06-26 Martin Liska <mliska@suse.cz>
22816 * bb-reorder.c (connect_better_edge_p): Add missing else
22817 statement in the middle of if-else statements.
22819 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
22820 H.J. Lu <hongjiu.lu@intel.com>
22821 Olga Makhotina <olga.makhotina@intel.com>
22823 * common/config/i386/i386-common.c
22824 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
22825 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
22826 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
22827 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
22828 (ix86_handle_option): Handle -mavx512vp2intersect.
22829 * config/i386/avx512vp2intersectintrin.h: New.
22830 * config/i386/avx512vp2intersectvlintrin.h: New.
22831 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
22832 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22833 AVX512VP2INTERSECT.
22834 * config/i386/i386-builtin-types.def: Add new types.
22835 * config/i386/i386-builtin.def: Add new builtins.
22836 * config/i386/i386-builtins.c: (enum processor_features): Add
22837 F_AVX512VP2INTERSECT.
22838 (static const _isa_names_table isa_names_table): Ditto.
22839 * config/i386/i386-c.c (ix86_target_macros_internal): Define
22840 __AVX512VP2INTERSECT__.
22841 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
22842 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
22843 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
22844 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
22845 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
22846 * config/i386/i386-options.c (ix86_target_string): Add
22847 -mavx512vp2intersect.
22848 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
22849 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
22850 P2HImode and P2QImode.
22851 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
22852 number for P2QImode and P2HImode.
22853 (ix86_regmode_natural_size): New function.
22854 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
22855 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
22856 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
22857 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
22858 * config/i386/i386.opt: Add -mavx512vp2intersect.
22859 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
22860 avx512vp2intersectvlintrin.h.
22861 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
22862 (define_mode_iterator VI48_AVX512VP2VL): New.
22863 (avx512vp2intersect_2intersect<mode>,
22864 avx512vp2intersect_2intersectv16si): New define_insn patterns.
22865 * config.gcc: Add avx512vp2intersectvlintrin.h and
22866 avx512vp2intersectintrin.h to extra_headers.
22867 * doc/invoke.texi: Document -mavx512vp2intersect.
22869 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
22871 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
22873 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
22875 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
22876 savres_routine_syms, savres_routine_name, morestack_ref,
22877 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
22878 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
22879 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
22880 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
22881 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
22882 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
22883 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
22884 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
22885 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
22886 get_stack_clash_protection_probe_interval,
22887 get_stack_clash_protection_guard_size,
22888 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
22889 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
22890 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
22891 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
22892 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
22893 gen_frame_mem_offset, rs6000_savres_routine_name,
22894 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
22895 ptr_regno_for_savres, rs6000_emit_savres_rtx,
22896 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
22897 rs6000_global_entry_point_prologue_needed_p,
22898 rs6000_get_separate_components, rs6000_components_for_bb,
22899 rs6000_disqualify_components, rs6000_emit_prologue_components,
22900 rs6000_emit_epilogue_components, rs6000_set_handled_components,
22901 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
22902 rs6000_output_savres_externs, rs6000_output_function_prologue,
22903 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
22904 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
22905 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
22906 rs6000_output_function_epilogue, gen_add3_const,
22907 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
22908 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
22910 (machine_function): Moved to rs6000.h.
22911 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
22913 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
22914 savres_routine_syms, savres_routine_name, morestack_ref,
22915 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
22916 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
22917 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
22918 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
22919 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
22920 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
22921 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
22922 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
22923 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
22924 get_stack_clash_protection_probe_interval,
22925 get_stack_clash_protection_guard_size,
22926 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
22927 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
22928 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
22929 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
22930 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
22931 gen_frame_mem_offset, rs6000_savres_routine_name,
22932 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
22933 ptr_regno_for_savres, rs6000_emit_savres_rtx,
22934 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
22935 rs6000_global_entry_point_prologue_needed_p,
22936 rs6000_get_separate_components, rs6000_components_for_bb,
22937 rs6000_disqualify_components, rs6000_emit_prologue_components,
22938 rs6000_emit_epilogue_components, rs6000_set_handled_components,
22939 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
22940 rs6000_output_savres_externs, rs6000_output_function_prologue,
22941 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
22942 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
22943 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
22944 rs6000_output_function_epilogue, gen_add3_const,
22945 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
22946 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
22947 to here from rs6000.c.
22948 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
22949 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
22950 quad_address_offset_p) Moved to here from rs6000.c.
22951 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
22952 * config/config.gcc: Add new source file rs6000-logue.c to garbage
22955 2019-06-25 Martin Liska <mliska@suse.cz>
22957 * hash-table.c (hashtab_chk_error): Move here from ...
22958 * hash-table.h (hashtab_chk_error): ... here.
22960 2019-06-25 Martin Liska <mliska@suse.cz>
22962 PR tree-optimization/90978
22963 * df-scan.c (df_update_entry_block_defs): Remove dead else
22965 (df_update_exit_block_uses): Likewise.
22967 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
22968 Andrew Stubbs <ams@codesourcery.com>
22970 * config.gcc (thread_file): Set to gcn for AMD GCN.
22971 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
22972 (TARGET_EMUTLS_VAR_INIT): New hook.
22974 2019-06-25 Martin Jambor <mjambor@suse.cz>
22977 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
22979 2019-06-25 Richard Biener <rguenther@suse.de>
22981 PR tree-optimization/90930
22982 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
22983 into parallel form in the last pass instance.
22985 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
22987 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
22988 (arc_legitimize_pic_address): Simplify and cleanup the function.
22989 (SYMBOLIC_CONST): Remove.
22990 (prepare_pic_move): Likewise.
22991 (prepare_move_operands): Handle complex mov cases here.
22992 (arc_legitimize_address_0): Remove call to
22993 arc_legitimize_pic_address.
22994 (arc_legitimize_address): Remove call to
22995 arc_legitimize_tls_address.
22996 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
22997 (movhi_insn): Likewise.
22999 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23001 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23003 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23004 format of "__intN" types for UINTMAX_TYPE.
23005 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23006 format of "__intN" types for SIZETYPE.
23007 * tree.c (build_common_tree_nodes): Accept "__intN__"
23008 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23009 * doc/invoke.texi: Document that __intN__ disables pedantic
23012 2019-06-25 Jan Hubicka <jh@suse.cz>
23014 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23015 base2_alias_set is non-zero before doing TBAA based disambiguation.
23017 2019-06-25 Martin Liska <mliska@suse.cz>
23019 PR tree-optimization/90973
23020 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23021 of prologue and epilogue.
23023 2019-06-24 Jan Hubicka <jh@suse.cz>
23025 * ipa-utils.h (type_with_linkage_p): Verify that type is
23027 (odr_type_p): Remove extra return.
23028 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23029 hash STRING_FLAG only for arrays and integers.
23030 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23031 Update analogously.
23032 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23034 * print-tree.c (print_node): Print cxx-odr-p
23036 * tree.c (need_assembler_name_p): Also check that type
23038 (verify_type_variant): Update verification of SRING_FLAG;
23039 also check CXX_ODR_P.
23040 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23041 (TYPE_STRING_FLAG): Use it.
23042 (TYPE_CXX_ODR_P): New macro.
23043 * dwarf2out.c (gen_array_type_die): First check that type
23044 is an array and then test string flag.
23046 2019-06-24 Richard Biener <rguenther@suse.de>
23048 PR tree-optimization/90972
23049 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23050 in common code, dealing with STRING_CST properly.
23052 2019-06-24 Richard Biener <rguenther@suse.de>
23054 PR tree-optimization/90930
23055 PR tree-optimization/90316
23056 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23057 decrement of limit.
23059 2019-06-24 Martin Sebor <msebor@redhat.com>
23061 * tree-pretty-print.h: Remove unnecessary punctuation characters
23063 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23065 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23067 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23068 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23069 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23071 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23073 * config/rs6000/darwin.h: Handle GCC target pragma.
23075 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23077 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23079 2019-06-22 Jeff Law <law@redhat.com>
23081 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23083 2019-06-22 Jan Hubicka <jh@suse.cz>
23085 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23086 give up on bitfields; continue searching for different refs
23089 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23091 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23092 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23093 containing the offset as possible simd lane access. Look through
23094 widening conversion. Move the
23095 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23097 2019-06-21 Richard Biener <rguenther@suse.de>
23099 PR tree-optimization/90930
23100 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23101 flag on new stmts to avoid re-processing them.
23103 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23105 PR c++/90875 - added -Wswitch-outside-range option
23106 * doc/invoke.texi (Wswitch-outside-range): Document.
23108 2019-06-21 Jeff Law <law@redhat.com>
23110 PR tree-optimization/90949
23111 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23112 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23114 2019-06-21 Richard Biener <rguenther@suse.de>
23117 * dwarf2out.c (prune_unused_types_walk): Always consider
23118 function-local extern declarations as used.
23120 2019-06-21 Richard Biener <rguenther@suse.de>
23122 PR tree-optimization/90913
23123 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23124 the scalar variant of if-conversion versioning.
23126 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23128 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23129 create another "omp scan inscan exclusive" array if
23130 !ctx->scan_inclusive.
23131 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23132 (lower_omp_scan): Likewise.
23133 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23134 2-bit bitfield for simd_lane_access_p member.
23135 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23136 aux == (void *)-4 as simd lane access.
23137 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23138 comment with permutations to show the canonical permutation order.
23139 (vectorizable_scan_store): Handle exclusive scan.
23140 (vectorizable_store): Call vectorizable_scan_store even for
23141 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23143 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23144 "omp simd array" arrays with one byte elements.
23146 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23148 * config/alpha/alpha.md (@unaligned_store<mode>):
23149 Rename from unaligned_store<mode>.
23150 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23151 * config/alpha/sync.md (@load_locked_<mode>): Rename
23152 from load_locked_<mode>.
23153 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23154 (@atomic_compare_and_swap<mode>_1): Rename
23155 from atomic_compare_and_swap<mode>_1.
23156 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23157 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23158 Use gen_reload_in_aligned and gen_unaligned_store.
23159 (emit_load_locked): Remove.
23160 (emit_store_conditional): Ditto.
23161 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23162 (alpha_split_compare_and_swap): Ditto.
23163 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23164 (alpha_split_compare_and_swap_12): Use gen_load_locked
23165 and gen_store_conditional.
23166 (alpha_split_atomic_exchange): Ditto.
23167 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23168 (alpha_split_atomic_exchange_12): Use gen_load_locked
23169 and gen_store_conditional.
23171 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23173 * config/aarch64/aarch64-errata.h: New file.
23174 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23175 (CA53_ERR_843419_SPEC): Delete.
23176 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23177 * config/aarch64/aarch64-linux.h: Likewise.
23178 * config/aarch64/aarch64-netbsd.h: Likewise.
23179 * config/aarch64/aarch64-freebsd.h: Likewise.
23181 2019-06-20 Marek Polacek <polacek@redhat.com>
23183 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23185 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23187 * config/rs6000/rs6000.md (isa attribute): Add support for
23188 for a future processor.
23190 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23193 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23194 standard scalar operation pattern for V2DF.
23195 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23196 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23197 (*ieee_<ieee_maxmin><mode>3): Likewise.
23198 (vec_setv2df_0): Likewise.
23200 2019-06-20 Jan Hubicka <jh@suse.cz>
23202 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23203 parameter; it has no use in gimple memory model.
23204 (indirect_ref_may_alias_decl_p): Update.
23206 2019-06-20 Martin Liska <mliska@suse.cz>
23208 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23211 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23213 * tree-vect-stmts.c (enum scan_store_kind): New type.
23214 (scan_store_can_perm_p): Change last argument from int * to
23215 vec<enum scan_store_kind> *, record precisely which permutations
23216 need whole vector left shift or that plus VEC_COND_EXPR.
23217 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23218 and additional VEC_COND_EXPR only for those iterations that need it.
23220 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23222 * config.gcc: Fix ARM --with-fpu checking and error message.
23224 2019-06-19 Marek Polacek <polacek@redhat.com>
23226 PR c++/60364 - noreturn after first decl not diagnosed.
23227 * attribs.c (get_attribute_namespace): No longer static.
23228 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23230 (attr_noreturn_exclusions): Make it extern.
23231 * attribs.h (get_attribute_namespace): Declare.
23232 * tree-inline.c (function_attribute_inlinable_p): Use
23233 get_attribute_name.
23235 2019-06-19 Martin Sebor <msebor@redhat.com>
23237 PR tree-optimization/90626
23238 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23240 PR tree-optimization/90626
23241 * tree-ssa-strlen.c (strxcmp_unequal): New function.
23242 (handle_builtin_string_cmp): Call it.
23244 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23246 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23247 and DARWIN_NOPIE_SPEC.
23248 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23249 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23250 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23251 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23252 (DARWIN_EXPORT_DYNAMIC): Delete.
23253 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23254 and pie options processing to darwin.h.
23255 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23257 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23259 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
23260 in computing the number of options to be moved.
23262 2019-06-19 Maya Rashish <coypu@sdf.org>
23264 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
23265 (CLEAR_INSN_CACHE) Use it.
23267 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
23269 * config/i386/i386.md (cmpstrnsi): Remove dead code.
23271 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
23273 PR middle-end/84521
23274 * builtins.c (expand_builtin_setjmp_setup): Save
23275 hard_frame_pointer_rtx.
23276 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
23278 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
23280 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
23282 (remove_reg_equal_offset_note): Remove unused function.
23283 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
23285 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23286 (arc_builtin_setjmp_frame_value): Remove function.
23287 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23288 (avr_builtin_setjmp_frame_value): Remove function.
23289 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23290 (ix86_builtin_setjmp_frame_value): Remove function.
23291 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
23292 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23293 (sparc_builtin_setjmp_frame_value): Remove function.
23294 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23295 (vax_builtin_setjmp_frame_value): Remove function.
23296 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
23297 pointer if has_nonlocal_label.
23299 2019-06-19 Jakub Jelinek <jakub@redhat.com>
23301 * doc/md.texi: Document vec_shl_<mode> pattern.
23302 * optabs.def (vec_shl_optab): New optab.
23303 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
23304 argument, if == vec_shl_optab, check for left whole vector shift
23305 pattern rather than right shift.
23306 (expand_vec_perm_const): Add vec_shl_optab support.
23307 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
23309 * tree-vect-generic.c (lower_vec_perm): Support permutations which
23310 can be handled by vec_shl_optab.
23311 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
23312 (check_scan_store): Use it.
23313 (vectorizable_scan_store): If target can't do normal permutations,
23314 try to use whole vector left shifts and if needed a VEC_COND_EXPR
23316 * config/i386/sse.md (vec_shl_<mode>): New expander.
23318 * omp-low.c (lower_rec_input_clauses): Handle references properly
23320 (lower_omp_scan): Likewise.
23322 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23324 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
23325 mem_mode is BLKmode.
23327 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
23330 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
23331 pointer adjustment for the case of no callee-saved registers and
23332 stack frame bigger than 128 bytes.
23334 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
23336 PR middle-end/90862
23337 * omp-low.c (check_omp_nesting_restrictions): Handle
23338 GF_OMP_TARGET_KIND_OACC_DECLARE.
23340 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
23342 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
23343 (@add<mode>3_carry): Rename from add<mode>3_carry.
23344 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
23345 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
23346 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
23347 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
23348 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
23349 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
23350 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
23351 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
23352 (cmpstrnsi): Use gen_cmp_1.
23353 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
23354 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
23355 (@umonitor_<mode>): Rename from umonitor_<mode>.
23356 * config/i386/i386-expand.c (ix86_expand_copysign):
23357 Use gen_copysign3_const and gen_copysign3_var.
23358 (ix86_expand_xorsign): Use gen_xorsign3_1.
23359 (ix86_expand_branch): Use gen_sub3_carry_ccc,
23360 gen_sub3_carry_ccgz and gen_cmp1.
23361 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
23362 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
23363 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
23364 (ix86_split_lshr): Ditto.
23365 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
23367 2019-06-18 Jason Merrill <jason@redhat.com>
23369 * tree.c (build_constructor): Add MEM_STAT_DECL.
23371 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23373 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
23374 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
23375 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
23376 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
23377 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
23378 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
23379 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
23380 Use CC_NZC instead of CC.
23381 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
23382 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
23383 (aarch64_print_operand): Handle E_CC_NZCmode.
23384 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
23385 of gen_set_clobber_cc.
23387 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23389 * config/aarch64/aarch64-sve.md: Tabify file.
23391 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23393 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
23394 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
23395 * config/aarch64/aarch64-sve.md: Use it.
23397 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23399 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
23400 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
23401 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
23402 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
23403 (aarch64_expand_sve_vec_cmp_int): Use it.
23404 (aarch64_expand_sve_vec_cmp_float): Likewise.
23405 * config/aarch64/aarch64-sve.md: Likewise throughout.
23407 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23408 Kugan Vivekanandarajah <kuganv@linaro.org>
23410 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
23411 (*cond_<optab><mode>_z): Fold into...
23412 (*cond_<optab><mode>_any): ...here. Also handle cases in which
23413 operand 4 can be tied to operand 0 (either inherently or via RA).
23415 2019-06-18 Richard Biener <rguenther@suse.de>
23418 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
23419 as if optimized away.
23421 2019-06-18 Tom de Vries <tdevries@suse.de>
23423 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
23424 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
23425 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
23427 (define_insn "@set_softstack_<mode>"): ... this.
23428 (define_insn "omp_simt_enter_<mode>"): Rename to ...
23429 (define_insn "@omp_simt_enter_<mode>"): ... this.
23430 (define_insn "omp_simt_exit_<mode>"): Rename to ...
23431 (define_insn "@omp_simt_exit_<mode>"): ... this.
23433 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23435 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
23436 vf parameter. Restore the previous iv step of nscalars_step,
23437 but give it iv_type rather than compare_type. Tweak code order
23438 to match the comments.
23439 (vect_set_loop_condition_masked): Update accordingly.
23440 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
23441 for iv_precision. Tweak comment formatting.
23443 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23445 * config/darwin.c: Strip trailing whitespace.
23447 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23449 * config/darwin.c (darwin_emit_unwind_label): New default to false.
23450 (darwin_override_options): Set darwin_emit_unwind_label as needed.
23452 2019-06-18 Martin Jambor <mjambor@suse.cz>
23455 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
23456 caller does not have flag_ipa_cp set.
23458 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23460 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
23461 from "*fold_left_plus_<mode>", updated operands order.
23462 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
23463 * internal-fn.c (mask_fold_left_direct): New define.
23464 (expand_mask_fold_left_optab_fn): Likewise.
23465 (direct_mask_fold_left_optab_supported_p): Likewise.
23466 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
23467 * optabs.def (mask_fold_left_plus_optab): New optab.
23468 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
23469 masked internal_fn for a reduction ifn.
23470 (vectorize_fold_left_reduction): Add support for masking reductions.
23472 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
23474 PR middle-end/80791
23475 * target.def (predict_doloop_p): New hook.
23476 * targhooks.h (default_predict_doloop_p): New declaration.
23477 * targhooks.c (default_predict_doloop_p): New function.
23478 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
23479 * doc/tm.texi: Regenerate.
23480 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
23481 (TARGET_PREDICT_DOLOOP_P): New macro.
23482 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
23484 2019-06-17 Jakub Jelinek <jakub@redhat.com>
23486 * omp-low.c (struct omp_context): Add scan_inclusive field.
23487 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
23489 (struct omplow_simd_context): Add lastlane member.
23490 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
23491 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
23493 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
23494 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
23495 (lower_omp_scan): New function.
23496 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
23497 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
23498 check 3rd argument if present rather than 2nd.
23499 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
23500 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
23502 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23503 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
23505 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
23506 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
23507 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
23509 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
23510 IFN_GOMP_SIMD_LANE argument.
23511 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
23512 encoded ->aux value.
23513 * tree-vect-stmts.c: Include attribs.h.
23514 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
23515 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
23517 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
23518 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
23520 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
23523 * config/i386/i386.md (*nabstf2_1): New insn pattern.
23524 (*nabs<mode>2_1): Ditto.
23525 (nabs sse-reg splitter): New splitter.
23526 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
23528 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23530 PR bootstrap/90873.
23531 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
23534 2019-06-17 Tom de Vries <tdevries@suse.de>
23536 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
23537 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
23538 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
23540 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
23542 (define_insn "omp_simt_enter_insn"): Rename to ...
23543 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
23544 match_operand 0, 1 and 2, as well as the unspec_volatile result.
23545 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
23546 gen_omp_simt_enter_si.
23547 (define_expand "omp_simt_exit"): New.
23548 (define_insn "omp_simt_exit"): Rename to ...
23549 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
23552 2019-06-17 Matthew Green <mrg@eterna.com.au>
23553 Maya Rashish <coypu@sdf.org>
23555 * config.gcc (aarch64*-*-netbsd*): New target.
23556 * config/aarch64/aarch64-netbsd.h: New file.
23557 * config/aarch64/t-aarch64-netbsd: Likewise.
23559 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23561 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
23562 the access path from base to first VIEW_CONVERT_EXPR or
23565 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23567 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
23568 access path on BIT_FIELD_REFs.
23570 2019-06-17 Martin Liska <mliska@suse.cz>
23573 * ipa-utils.h (odr_type_p): Remove dead code.
23575 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23577 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
23578 alternative Solaris 11.4 format.
23579 * configure: Regenerate.
23581 2019-06-17 Tom de Vries <tdevries@suse.de>
23583 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
23584 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
23586 (define_insn "call_value_insn"): Rename to ...
23587 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
23589 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
23592 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
23594 PR middle-end/64242
23595 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
23596 frame clobbers and schedule block.
23597 (builtin_longjmp): Likewise.
23599 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23601 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
23602 describe how to perform MSPABI compliant 64-bit shift.
23603 * config/msp430/msp430.md (ashldi3): New define_expand.
23604 (ashrdi3): New define_expand.
23605 (lshrdi3): New define_expand.
23607 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23609 * doc/sourcebuild.texi: Document new effective target keyword
23612 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23614 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
23615 indirect_refs_may_alias_p): Revert accidental commits.
23617 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
23618 at the end of structures.
23620 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23622 * config/darwin.c (machopic_indirect_call_target): Use renamed
23623 darwin_picsymbol_stubs to decide on output.
23624 (darwin_override_options): Handle darwin_picsymbol_stubs.
23625 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
23626 (LD64_VERSION): Revise default.
23627 * config/darwin.opt: (mpic-symbol-stubs): New option.
23628 (darwin_picsymbol_stubs): New variable.
23629 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
23630 rename to TARGET_MACHO_PICSYM_STUBS.
23631 * config/i386/i386.c (output_pic_addr_const): Likewise.
23632 * config/i386/i386.h Likewise.
23633 * config/rs6000/darwin.h: Likewise.
23634 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
23635 darwin_picsymbol_stubs.
23637 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23639 * config/darwin.opt (prebind, noprebind, seglinkedit,
23640 noseglinkedit): Add RejectNegative.
23642 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23644 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
23645 in my previous patch.
23647 2019-06-16 Tom de Vries <tdevries@suse.de>
23649 PR tree-optimization/89376
23650 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
23652 2019-06-15 Maya Rashish <coypu@sdf.org>
23654 * doc/invoke.texi (Spec Files): Update location of the
23657 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
23659 * doc/extend.texi (Common Function Attributes): Clarify
23660 no_sanitize. Fix grammar.
23662 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
23664 * tree-ssa-alias.c (alias_stats): Add
23665 nonoverlapping_component_refs_p_may_alias,
23666 nonoverlapping_component_refs_p_no_alias,
23667 nonoverlapping_component_refs_of_decl_p_may_alias,
23668 nonoverlapping_component_refs_of_decl_p_no_alias.
23669 (dump_alias_stats): Dump them.
23670 (nonoverlapping_component_refs_of_decl_p): Add stats.
23671 (nonoverlapping_component_refs_p): Add stats; do not stop on first
23674 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
23676 * config/i386/i386.md (and<mode>3): Generate zero-extends for
23677 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
23679 (*anddi3_doubleword): Split before reload. Merge with
23680 anddi->zext pre-reload splitter.
23681 (*andndi3_doubleword): Split before reload.
23682 (*<code>di3_doubleword): Ditto.
23683 (*one_cmpldi2_doubleword): Ditto.
23685 2019-06-15 Jakub Jelinek <jakub@redhat.com>
23687 PR middle-end/90779
23688 * gimplify.c: Include omp-offload.h and context.h.
23689 (gimplify_bind_expr): Add "omp declare target" attributes
23690 to static block scope variables inside of target region or target
23693 2019-06-15 Tom de Vries <tdevries@suse.de>
23695 PR tree-optimization/90009
23696 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
23697 Return NULL if bb contains IFN_UNIQUE.
23699 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
23701 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
23702 (un): New define_mode_attr.
23703 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
23704 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
23705 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
23707 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
23709 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
23711 * config/darwin.opt: Add RejectNegative where needed, reorder
23712 and add minimal functional descriptions.
23714 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23716 PR rtl-optimization/90765
23717 * calls.c (update_stack_alignment_for_call): New function.
23718 (expand_call): Call update_stack_alignment_for_call when
23719 outgoing parameter is passed in the stack.
23720 (emit_library_call_value_1): Likewise.
23721 * function.c (locate_and_pad_parm): Don't update
23722 stack_alignment_needed and preferred_stack_boundary.
23724 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23727 * config/i386/i386-features.c
23728 (dimode_scalar_chain::compute_convert_gain): Replace
23729 mmxsse_to_integer with sse_to_integer.
23730 * config/i386/i386.c (ix86_register_move_cost): Verify that
23731 moves between MMX and non-MMX units require secondary memory.
23732 Correct costs of moves between SSE and integer units.
23733 * config/i386/i386.h (processor_costs): Rename cost of moving
23734 SSE register to integer to sse_to_integer. Rename cost of
23736 2019-06-14 Matt Thomas <matt@3am-software.com>
23737 Matthew Green <mrg@eterna.com.au>
23738 Nick Hudson <skrll@netbsd.org>
23739 Maya Rashish <coypu@sdf.org>
23740 Richard Earnshaw <rearnsha@arm.com>
23742 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
23743 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
23744 * config/arm/netbsd-eabi.h: New file.
23745 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
23747 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
23748 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
23749 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
23750 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
23752 2019-06-14 Richard Biener <rguenther@suse.de>
23754 * tree-loop-distribution.c (classify_partition): Return
23755 whether a reduction appeared in all partitions and do not
23756 stop builtin detection because of this.
23757 (distribute_loop): Sort a non-builtin partition last if
23758 there's a reduction in all partitions and make sure the
23759 partition prevailing as last is not a builtin.
23761 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
23764 * ipa-prop.c (add_to_agg_contents_list): New function.
23765 (clobber_by_agg_contents_list_p): Likewise.
23766 (extract_mem_content): Likewise.
23767 (get_place_in_agg_contents_list): Delete.
23768 (determine_known_aggregate_parts): Renamed from
23769 determine_locally_known_aggregate_parts. New parameter
23772 2019-06-13 Martin Sebor <msebor@redhat.com>
23774 PR tree-optimization/90662
23775 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
23778 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23781 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
23782 dbase is not TARGET_MEM_REF.
23784 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23786 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
23788 (and<mode>3): Use gen_extend_insn instead of indirect functions.
23789 Do not generate DImode extends for 32bit targets.
23790 (and->zext post-reload splitter): Use gen_extend_insn
23791 instead of indirect functions.
23792 (anddi->zext pre-reload splitter): New.
23793 (*zext<mode>_doubleword_and): Remove.
23794 (*zext<mode>_doubleword): Ditto.
23795 (*zextsi_doubleword): Dittto.
23797 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23799 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
23800 Use gen_sub3_insn instead of indirect function.
23801 (ix86_expand_ashl_const): Use gen_add2_insn instead of
23803 (ix86_adjust_counter): Ditto.
23805 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
23806 Lijia He <helijia@linux.ibm.com>
23808 PR tree-optimization/77820
23809 * tree-ssa-threadedge.c
23810 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
23812 (thread_across_edge): Add call to
23813 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
23815 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
23817 * config/darwin-driver.c (validate_macosx_version_min): New.
23818 (darwin_default_min_version): Cleanup and validate supplied version.
23819 (darwin_driver_init): Likewise and push cleaned version into opts.
23821 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23823 PR tree-optimization/90869
23824 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
23825 converts in MEM_REF referencing decl rather than view converts
23826 from decl type to MEM_REF type.
23828 2019-06-13 Richard Biener <rguenther@suse.de>
23830 PR tree-optimization/90856
23831 * tree-sra.c (build_ref_for_model): Only use
23832 build_reconstructed_reference when address-spaces are the same.
23834 2019-06-13 Jakub Jelinek <jakub@redhat.com>
23836 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
23837 wrap ei variable name in the declaration in ()s.
23838 (nvptx_single): Actually use mode_label variable. Formatting fix.
23840 2019-06-13 Richard Biener <rguenther@suse.de>
23842 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
23843 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
23844 also return the condition stmt.
23845 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
23846 loop we can version and version that, reusing the loop version
23847 created by if-conversion instead of versioning again.
23849 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
23851 * gimple-loop-versioning.cc (prune_loop_conditions): Use
23853 * tree-vrp (value_range_base::may_contain_p): Call into
23854 value_inside_range.
23855 (value_inside_range): Make private inside value_range_base class.
23856 Take min/max from *this.
23857 (range_includes_p): Remove.
23858 * tree-vrp.h (value_range_base): Add value_inside_range.
23859 (range_includes_p): Remove.
23860 (range_includes_zero_p): Call may_contain_p.
23861 * vr-values.c (compare_range_with_value): Same.
23863 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
23865 * doc/extend.texi (ARC Function Attributes): Update info.
23867 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
23869 PR tree-optimization/89713
23870 * doc/invoke.texi (-ffinite-loops): Document new option.
23871 * common.opt (-ffinite-loops): New option.
23872 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
23873 IFN_GOACC_LOOP calls as necessary.
23874 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
23876 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
23877 IFN_GOACC_LOOP call is not used.
23878 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
23880 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23883 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
23884 compare_type is not with Pmode size, we will create an IV with
23885 Pmode size with truncated use (i.e. converted to the correct type).
23886 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
23887 (vect_iv_limit_for_full_masking): New. Factored out of
23888 vect_set_loop_condition_masked.
23889 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
23890 (vect_iv_limit_for_full_masking): Declare.
23892 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23895 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
23896 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
23897 (get_alias_ptr_type_for_ptr_address): Likewise.
23898 (add_iv_candidate_for_use): Add scaled index candidate if useful.
23899 * tree-ssa-address.c (preferred_mem_scale_factor): New.
23900 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
23903 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23905 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
23907 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
23909 * common/config/pru/pru-common.c: New file.
23910 * config.gcc: Add PRU target.
23911 * config/pru/alu-zext.md: New file.
23912 * config/pru/constraints.md: New file.
23913 * config/pru/predicates.md: New file.
23914 * config/pru/pru-opts.h: New file.
23915 * config/pru/pru-passes.c: New file.
23916 * config/pru/pru-pragma.c: New file.
23917 * config/pru/pru-protos.h: New file.
23918 * config/pru/pru.c: New file.
23919 * config/pru/pru.h: New file.
23920 * config/pru/pru.md: New file.
23921 * config/pru/pru.opt: New file.
23922 * config/pru/t-pru: New file.
23923 * doc/extend.texi: Document PRU pragmas.
23924 * doc/invoke.texi: Document PRU-specific options.
23925 * doc/md.texi: Document PRU asm constraints.
23927 2019-06-12 Martin Sebor <msebor@redhat.com>
23929 PR middle-end/90676
23930 * tree-pretty-print.c (dump_mem_ref): New function. Include
23931 MEM_REF type in output when different size than operand.
23932 (dump_generic_node): Move code to dump_mem_ref and call it.
23934 2019-06-12 Martin Sebor <msebor@redhat.com>
23936 PR tree-optimization/90662
23937 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
23940 2019-06-12 Tom de Vries <tdevries@suse.de>
23942 PR tree-optimization/90009
23943 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
23945 2019-06-12 Martin Liska <mliska@suse.cz>
23947 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
23949 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
23950 * mem-stats.h (mem_alloc_description::mem_alloc_description):
23951 Do not sanitize created maps.
23953 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
23955 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
23956 value_range::singleton_p.
23957 * tree-vrp.c (value_range_constant_singleton): Remove.
23958 * tree-vrp.h (value_range_constant_singleton): Remove.
23959 * vr-values.c (vr_values::singleton): Use
23960 value_range::singleton_p.
23962 2019-06-12 Jakub Jelinek <jakub@redhat.com>
23965 * cfgexpand.c (align_local_variable): Add really_expand argument,
23966 don't SET_DECL_ALIGN if it is false.
23967 (add_stack_var): Add really_expand argument, pass it through to
23968 align_local_variable.
23969 (expand_one_stack_var_1): Pass true as really_expand to
23970 align_local_variable.
23971 (expand_one_ssa_partition): Pass true as really_expand to
23973 (expand_one_var): Pass really_expand through to add_stack_var.
23975 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
23977 * config/arm/iterators.md (VABAL): New int iterator.
23978 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
23979 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
23980 UNSPEC_VABAL_U values.
23982 2019-06-12 Martin Liska <mliska@suse.cz>
23984 * value-prof.c (stream_out_histogram_value): Only first value
23987 2019-06-12 Jakub Jelinek <jakub@redhat.com>
23990 * symtab.c (symtab_node::set_section): Allow being called on aliases
23991 as long as they aren't analyzed yet.
23993 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
23995 * config/mips/mips.c (mips_final_postscan_insn): Modify call
23996 to `mips_set_text_contents_type' to indicate whether a
23997 non-debug insn follows.
23999 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24001 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24002 enabling -mpcrel by default.
24003 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24004 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24005 that the test against -mcpu=future is done first. Then test if
24006 -mprefixed-addr is on for -mpcrel.
24007 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24009 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24012 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24013 instead of and.u%d.
24015 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24017 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24019 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24021 PR c++/90449 - add -Winaccessible-base option.
24022 * doc/invoke.texi (Winaccessible-base): Document.
24024 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24026 PR tree-optimization/62041
24027 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24029 2019-06-11 Jason Merrill <jason@redhat.com>
24031 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24032 * tree.c (get_tree_code_name): Likewise.
24033 * print-tree.c (print_node): Only briefly print a node with an
24036 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24039 * trans-mem.c (tm_memopt_compute_available): Add assertion
24040 that blocks is not empty. Formatting fix.
24042 2019-06-11 Martin Liska <mliska@suse.cz>
24045 * hash-table.h: Extend create_gcc, add one parameter
24046 that is passed into hash_table::hash_table.
24048 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24050 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24052 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24053 Emit clobber also for non-sse operations.
24054 (ix86_split_fp_absneg_operator): New function.
24055 * config/i386/i386.md (SSEMODEF): New mode iterator.
24056 (ssevecmodef): New mode attribute.
24057 (<code>tf2): Use absneg code iterator.
24058 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24059 Add three-operand AVX alternatives.
24060 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24061 Use absneg code iterator and X87MODEF mode iterator.
24062 (absneg fp_reg non-sse splitter): Call absneg code iterator
24063 and X87MODEF mode iterator.
24064 (absneg general_reg non-sse splitter): Use absneg code iterator
24065 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24066 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24067 code iterator. Add three-operand AVX alternative.
24068 (absneg sse_reg splitter): Use absneg code iterator
24069 and SSEMODEF mode iterator. Handle AVX operands.
24070 (absneg fp_reg splitter): Use absneg code iterator
24071 and MODEF mode iterator.
24072 (absneg general_reg splitter): Merge splitters using MODEF mode
24073 iterator. Use absneg code iterator. Call
24074 ix86_split_fp_absneg_operator.
24075 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24076 Do not enable for non-sse modes before reload.
24077 (CSGNMODE): Remove.
24078 (CSGNVMODE): Ditto.
24079 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24080 ssevecmodef mode attribute instaed of CSGNVMODE.
24081 (copysign<mode>3_const): Ditto.
24082 (copysign<mode>3_var): Ditto.
24083 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24084 Use absneg code iterator. Simplify code using std::swap.
24085 * config/i386/predicates.md (absneg_operator): Remove.
24087 2019-06-10 Martin Sebor <msebor@redhat.com>
24089 * gimple-fold.c (get_range_strlen): Update comment that didn't
24090 make it into r267503 or related commits.
24092 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24094 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24095 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24097 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24099 * tree.def (OMP_SCAN): New tree code.
24100 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24101 OMP_CLAUSE_EXCLUSIVE.
24102 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24103 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24104 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24105 OMP_CLAUSE_{IN,EX}CLUSIVE.
24106 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24107 * tree-nested.c (convert_nonlocal_reference_stmt,
24108 convert_local_reference_stmt, convert_gimple_call): Handle
24110 * tree-pretty-print.c (dump_omp_clause): Handle
24111 OMP_CLAUSE_{IN,EX}CLUSIVE.
24112 (dump_generic_node): Handle OMP_SCAN.
24113 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24114 * gimple.h (gomp_scan): New type.
24115 (is_a_helper <gomp_scan *>::test,
24116 is_a_helper <const gomp_scan *>::test): New templates.
24117 (gimple_build_omp_scan): Declare.
24118 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24119 gimple_omp_scan_set_clauses): New inline functions.
24120 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24121 * gimple.c (gimple_build_omp_scan): New function.
24122 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24123 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24124 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24125 GIMPLE_OMP_TASKGROUP.
24126 (dump_gimple_omp_scan): New function.
24127 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24128 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24129 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24130 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24131 (is_gimple_stmt): Handle OMP_SCAN.
24132 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24133 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24134 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24135 mentioned in nested #pragma omp scan. Handle
24136 OMP_CLAUSE_{IN,EX}CLUSIVE.
24137 (gimplify_expr): Handle OMP_SCAN.
24138 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24139 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24141 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24144 2019-06-10 Martin Liska <mliska@suse.cz>
24146 * ipa-cp.c (ignore_edge_p): New function.
24147 (build_toporder_info): Use it.
24148 * ipa-inline.c (ignore_edge_p): New function.
24149 (inline_small_functions): Use it.
24150 * ipa-pure-const.c (ignore_edge_for_nothrow):
24151 Verify opt_for_fn for caller and callee.
24152 (ignore_edge_for_pure_const): Likewise.
24153 * ipa-reference.c (ignore_edge_p): Extend to check
24155 * ipa-utils.c (searchc): Refactor.
24156 * ipa-utils.h: Fix coding style.
24158 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24160 * config/arc/arc.c (arc_rtx_costs): Update costs.
24162 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24164 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24165 (arc_split_ior): Likewise.
24166 (arc_check_mov_const): Likewise.
24167 (arc_split_mov_const): Likewise.
24168 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24169 (arc_rtx_costs): Replace check Crr with Cax constraint.
24170 (prepare_move_operands): Cleanup, remove unused code.
24171 (arc_split_ior): New function.
24172 (arc_check_ior_const): Likewise.
24173 (arc_split_mov_const): Likewise.
24174 (arc_check_mov_const): Likewise.
24175 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24176 in define_insn_and_split pattern.
24177 (iorsi3): Likewise.
24178 (mulsi3_v2): Add new matching variant.
24179 (andsi3_i): Cleanup pattern.
24180 (rotrsi3_cnt1): Update pattern.
24181 (rotrsi3_cnt8): New pattern.
24182 (ashlsi2_cnt8): Likewise.
24183 (ashlsi2_cnt16): Likewise.
24184 * config/arc/constraints.md (C0p): Update constraint.
24186 (C0x): New pattern.
24187 (Cax): New pattern.
24189 2019-06-10 Martin Liska <mliska@suse.cz>
24191 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24192 Update coding style.
24193 (sem_item_optimizer::dump_cong_classes):
24194 Print how many items are in a non-singular class. Improve
24197 2019-06-10 Martin Liska <mliska@suse.cz>
24199 * value-prof.c (dump_histogram_value): Change dump format.
24200 (gimple_mod_subtract_transform): Remove legacy comment.
24202 2019-06-10 Martin Liska <mliska@suse.cz>
24204 * value-prof.c (dump_histogram_value): Print histogram values
24207 2019-06-10 Martin Liska <mliska@suse.cz>
24209 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24210 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24211 * ipa-profile.c (ipa_profile_generate_summary):
24212 Use get_most_common_single_value.
24213 * tree-profile.c (gimple_init_gcov_profiler):
24214 Instrument with __gcov_one_value_profiler_v2
24215 and __gcov_indirect_call_profiler_v4.
24216 * value-prof.c (dump_histogram_value):
24217 Print all values for HIST_TYPE_SINGLE_VALUE.
24218 (stream_out_histogram_value): Update assert for
24220 (stream_in_histogram_value): Set number of
24221 counters for HIST_TYPE_SINGLE_VALUE.
24222 (get_most_common_single_value): New.
24223 (gimple_divmod_fixed_value_transform):
24224 Use get_most_common_single_value.
24225 (gimple_ic_transform): Likewise.
24226 (gimple_stringops_transform): Likewise.
24227 (gimple_find_values_to_profile): Set number
24228 of counters for HIST_TYPE_SINGLE_VALUE.
24229 * value-prof.h (get_most_common_single_value): New.
24231 2019-06-10 Martin Liska <mliska@suse.cz>
24233 * hash-map.h: Pass default value to hash_table ctor.
24234 * hash-table.h: Add default value to call of a ctor.
24236 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
24238 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24239 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24241 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
24244 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24245 Call pa_output_function_label.
24246 (TARGET_ASM_FUNCTION_PROLOGUE): define.
24247 * config/pa/pa-protos.h (pa_output_function_label): Declare.
24248 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24250 (pa_linux_output_function_prologue): Declare.
24251 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24252 (pa_output_function_label): New.
24253 (pa_output_function_prologue): Revise to use pa_output_function_label.
24254 (pa_linux_output_function_prologue): New.
24255 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24257 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
24259 * tree-vrp.h (value_range_base::intersect): New.
24260 (value_range::intersect_helper): Move from here...
24261 (value_range_base::intersect_helper): ...to here.
24262 * tree-vrp.c (value_range::intersect_helper): Rename to...
24263 (value_range_base::intersect_helper): ...this, and rewrite to
24264 return a value instead of modifying THIS in place.
24265 Also, move equivalence handling...
24266 (value_range::intersect): ...here, while calling intersect_helper.
24267 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
24269 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
24271 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
24273 2019-06-07 Jakub Jelinek <jakub@redhat.com>
24275 * Makefile.in (genprogerr): Add condmd.
24276 (genprog): Remove it here.
24278 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
24280 * doc/invoke.texi (AMD GCN Options): Add gfx906.
24282 2019-06-07 Richard Biener <rguenther@suse.de>
24285 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
24286 that appear after user labels.
24288 2019-06-07 Martin Liska <mliska@suse.cz>
24290 * cselib.c (cselib_init): Disable hash table
24292 * hash-set.h: Pass new default argument to m_table.
24293 * hash-table.c: Add global variable with hash table
24294 sanitization limit.
24295 * hash-table.h (Allocator>::hash_table): Add new argument
24297 (hashtab_chk_error): New.
24298 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
24299 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
24300 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
24302 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24304 * common.opt (flto-odr-type-merging): Ignore.
24305 * invoke.texi (-flto-odr-type-merging): Remove.
24306 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
24307 (can_be_vtable_hashed_p): Remove.
24308 (hash_odr_vtable): Remove.
24309 (odr_vtable_hasher::hash): Remove.
24310 (types_same_for_odr): Remove.
24311 (types_odr_comparable): Remove.
24312 (odr_vtable_hasher::equal): Remove.
24313 (odr_vtable_hash_type, odr_vtable_hash): Remove.
24314 (add_type_duplicate): Do not synchronize vtable and name hashtables.
24315 (get_odr_type): Do not use vtable hash.
24316 (dump_odr_type): Remove commented out code.
24317 (build_type_inheritance_graph): Do not allocate vtable hash.
24318 (rebuild_type_inheritance_graph): Do not delete vtable hash.
24319 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
24320 (odr_type_p): Likewise.
24321 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
24324 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24326 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
24327 immediately after same_types_for_tbaa_p returns -1 and continue
24328 looking for possible exact match; if matching types are arrays
24329 watch for partial overlaps.
24330 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
24331 (indirect_refs_may_alias_p): Do type based disambiguation first;
24334 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
24336 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
24338 2019-06-07 Martin Liska <mliska@suse.cz>
24340 * doc/invoke.texi: Remove param.
24341 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
24343 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
24344 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
24345 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
24346 * profile.c (instrument_values): Remove
24347 HIST_TYPE_INDIR_CALL_TOPN.
24348 * tree-profile.c (init_ic_make_global_vars):
24349 Always build __gcov_indirect_call only.
24350 (gimple_init_gcov_profiler): Remove usage
24351 of PARAM_INDIR_CALL_TOPN_PROFILE.
24352 (gimple_gen_ic_profiler): Likewise.
24353 * value-prof.c (dump_histogram_value): Likewise.
24354 (stream_in_histogram_value): Likewise.
24355 (gimple_indirect_call_to_profile): Likewise.
24356 (gimple_find_values_to_profile): Likewise.
24357 * value-prof.h (enum hist_type): Likewise.
24359 2019-06-07 Martin Liska <mliska@suse.cz>
24361 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
24364 2019-06-07 Martin Liska <mliska@suse.cz>
24366 PR tree-optimization/78902
24367 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
24368 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
24369 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24370 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24371 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
24372 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24373 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
24374 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
24375 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24376 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24377 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24378 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
24379 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
24381 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
24382 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
24383 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
24384 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24385 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24386 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
24387 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24388 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24389 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
24390 warn_unused_result attribute.
24391 (BUILT_IN_STRDUP): Likewise.
24392 (BUILT_IN_STRNDUP): Likewise.
24393 (BUILT_IN_ALLOCA): Likewise.
24394 (BUILT_IN_CALLOC): Likewise.
24395 (BUILT_IN_MALLOC): Likewise.
24396 (BUILT_IN_REALLOC): Likewise.
24398 2019-06-06 Jim Wilson <jimw@sifive.com>
24401 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
24402 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
24403 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
24405 2019-06-06 Martin Sebor <msebor@redhat.com>
24407 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
24408 (handle_builtin_malloc): Remove trailing spaces.
24409 (handle_builtin_memset): Same.
24410 (handle_builtin_memcmp): Same.
24411 (compute_string_length): Same.
24412 (determine_min_objsize): Same.
24413 (handle_builtin_string_cmp): Same.
24414 (handle_char_store): Same. Break up excessively long line.
24416 2019-06-06 Martin Jambor <mjambor@suse.cz>
24418 * tree-sra.c (build_reconstructed_reference): Drop the alignment
24421 2019-06-06 Martin Jambor <mjambor@suse.cz>
24423 * tree-sra.c (struct access): New field grp_same_access_path.
24424 (dump_access): Dump it.
24425 (build_reconstructed_reference): New function.
24426 (build_ref_for_model): Use it if possible.
24427 (path_comparable_for_same_access): New function.
24428 (same_access_path_p): Likewise.
24429 (sort_and_splice_var_accesses): Set the new flag.
24430 (analyze_access_subtree): Likewise.
24431 (propagate_subaccesses_across_link): Propagate zero value of the new
24432 flag down the access tree.
24434 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
24436 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
24437 * config/gcn/gcn.opt (gpu_type): Add gfx906.
24438 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
24439 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
24442 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24444 PR tree-optimization/90332
24445 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
24446 Handle VALS containing two vectors.
24447 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
24449 (@aarch64_combinez<mode>): ... This.
24450 (*aarch64_combinez_be<mode>): Rename to...
24451 (@aarch64_combinez_be<mode>): ... This.
24452 (vec_init<mode><Vhalf>): New define_expand.
24453 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
24455 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24457 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
24458 library functions only when not optimizing for size.
24459 (ashlsi3): Likewise.
24460 (ashrhi3): Likewise.
24461 (ashrsi3): Likewise.
24462 (lshrhi3): Likewise.
24463 (lshrsi3): Likewise.
24465 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
24467 PR rtl-optimization/88751
24468 * ira.c (ira): Use the number of the actually referenced registers
24469 when calculating the threshold.
24471 2019-06-06 Jakub Jelinek <jakub@redhat.com>
24473 * configure: Regenerate.
24475 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24477 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
24478 register if it is in memory, so the shift can be emulated with a rotate
24480 (ashrhi3): Likewise.
24481 (lshrhi3): Likewise.
24483 2019-06-06 Martin Liska <mliska@suse.cz>
24485 PR tree-optimization/87954
24486 * match.pd: Simplify mult where both arguments are 0 or 1.
24488 2019-06-06 Richard Biener <rguenther@suse.de>
24490 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
24491 put equivalences on UNDEFINED ranges.
24492 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
24493 Make sure to drop defs of stmts added during simplification
24496 2019-06-06 Richard Biener <rguenther@suse.de>
24498 * tree-ssa-structalias.c: Include tree-cfg.h.
24499 (make_heapvar): Do not make heap vars artificial.
24500 (find_func_aliases_for_builtin_call): Handle stack allocation
24502 (find_func_aliases): Delay processing of simple enough returns
24504 (set_uids_in_ptset): Adjust.
24505 (find_what_var_points_to): Likewise.
24506 (solve_constraints): Do not dump points-to sets here.
24507 (compute_points_to_sets): Post-process return statements,
24508 amending the escaped solution. Dump points-to sets afterwards.
24509 (ipa_pta_execute): Dump points-to sets.
24511 2019-06-06 Martin Liska <mliska@suse.cz>
24514 * doc/install.texi: Fix HTML headers and
24515 titles for 'Installing GCC' pages.
24517 2019-06-06 Martin Liska <mliska@suse.cz>
24519 * ipa-icf-gimple.h (dump_message_1): Remove.
24520 (dump_message): Likewise.
24521 (return_false_with_message_1): Print also file.
24522 (return_false_with_msg): Likewise.
24523 (return_with_result): Likewise.
24524 (return_with_debug): Likewise.
24525 * ipa-icf.c (sem_function::equals_private): Remove call
24528 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24530 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
24531 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
24532 memory operand for it.
24533 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
24535 2019-06-05 Martin Sebor <msebor@redhat.com>
24537 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
24538 Adjust quoting and hyphenation.
24539 * convert.c (convert_to_real_1): Same.
24540 * gcc.c (driver_wrong_lang_callback): Same.
24541 (driver::handle_unrecognized_options): Same.
24542 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
24543 * opts-common.c (cmdline_handle_error): Same.
24544 (read_cmdline_option): Same.
24545 * opts-global.c (complain_wrong_lang): Same.
24546 (print_ignored_options): Same.
24547 (handle_common_deferred_options): Same.
24548 * pretty-print.h: Same.
24549 * print-rtl.c (debug_bb_n_slim): Same.
24550 * sched-rgn.c (make_pass_sched_fusion): Same.
24551 * tree-cfg.c (verify_gimple_assign_unary): Same.
24552 (verify_gimple_label): Same.
24553 * tree-ssa-operands.c (verify_ssa_operands): Same.
24554 * varasm.c (do_assemble_alias): Same.
24555 (assemble_alias): Same.
24557 2019-06-05 Richard Henderson <rth@twiddle.net>
24559 * config/alpha/alpha.c (direct_return): Move down after
24560 struct machine_function definition; use saved frame_size;
24562 (struct machine_function): Add sa_mask, sa_size, frame_size.
24563 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
24564 (alpha_compute_frame_layout): ... new function.
24565 (TARGET_COMPUTE_FRAME_LAYOUT): New.
24566 (alpha_initial_elimination_offset): Use saved sa_size.
24567 (alpha_vms_initial_elimination_offset): Likewise.
24568 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
24569 (alpha_expand_prologue): Use saved frame data. Merge integer
24570 and fp register save loops.
24571 (alpha_expand_epilogue): Likewise.
24572 (alpha_start_function): Use saved frame data.
24573 * config/alpha/alpha-protos.h (direct_return): Update.
24574 (alpha_sa_size): Remove.
24576 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
24578 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
24579 multiplication by a power-of-two value.
24580 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
24581 and turn the modulo operation into a masking operation.
24583 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24586 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
24587 with VOIDmode inner operands.
24589 2019-06-05 Richard Biener <rguenther@suse.de>
24591 PR middle-end/90726
24592 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
24593 turn an expression graph into a tree.
24595 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24597 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
24599 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
24600 treat it like explicit monotonic schedule modifier.
24601 (expand_omp_for): Initialize has_lastprivate_conditional.
24602 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
24605 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
24606 references, lookup in in hash map MEM_REF operand instead of the
24608 (lower_omp_1): When looking for lastprivate conditional assignments,
24609 handle MEM_REFs with REFERENCE_TYPE operands.
24611 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
24612 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
24613 and references a VLA. Handle references to non-VLAs if is_simd
24614 all privatization clauses like reductions.
24615 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
24616 If omp_is_reference, use always omp simd arrays and set
24617 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
24618 fails, emit reference initialization.
24620 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24623 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
24624 _mm_mask_fpclass_sd_mask): New intrinsics.
24625 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
24626 * config/i386/i386-builtin.def
24627 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
24629 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
24630 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
24631 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
24632 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
24633 case QI_FTYPE_V2SF_INT): Ditto.
24634 * config/i386/sse.md
24635 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
24636 Extended to insnstructions with mask operands.
24638 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24640 * config/rs6000/constraints.md (define_register_constraint "wp"):
24642 (define_register_constraint "wq"): Delete.
24643 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24644 (rs6000_init_hard_regno_mode_ok): Adjust.
24645 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24646 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
24647 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
24648 (define_mode_attr VSa): Delete.
24649 (define_mode_attr VSisa): New.
24650 (rest of file): Adjust.
24651 * doc/md.texi (Machine Constraints): Adjust.
24653 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24655 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
24656 (define_attr "enabled"): Handle those new isa values.
24658 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24660 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
24661 (define_mode_attr VSr5): Delete.
24662 (define_mode_attr VStype_sqrt): Delete.
24663 (define_mode_iterator VSX_SPDP): Delete.
24664 (define_mode_attr VS_spdp_res): Delete.
24665 (define_mode_attr VS_spdp_insn): Delete.
24666 (define_mode_attr VS_spdp_type): Delete.
24667 (*vsx_sqrt<mode>2): Adjust.
24668 (vsx_<VS_spdp_insn>): Delete, split to...
24669 (vsx_xscvdpsp): ... this. New. And...
24670 (vsx_xvcvspdp): ... this. New. And...
24671 (vsx_xvcvdpsp): ... this. New.
24673 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24675 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
24677 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
24678 (rest of file): Adjust.
24680 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24682 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
24683 (vsx_extract_<mode>_var): Ditto.
24685 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24687 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
24690 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24692 * config/rs6000/constraints.md (define_register_constraint "ww"):
24694 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24695 (rs6000_init_hard_regno_mode_ok): Adjust.
24696 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24697 RS6000_CONSTRAINT_ww.
24698 * config/rs6000/rs6000.md: Adjust.
24699 * config/rs6000/vsx.md: Adjust.
24700 * doc/md.texi (Machine Constraints): Adjust.
24702 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24704 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
24705 (define_mode_attr sd): New.
24706 (define_mode_attr s): New.
24707 (define_mode_attr Ftrad): Delete.
24708 (define_mode_attr Fvsx): Delete.
24709 (define_mode_attr Fs): Delete.
24710 (rest of file): Use the new mode attributes.
24711 * config.rs6000/vsx.md: Use the new mode attributes.
24713 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24715 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
24718 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24720 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
24721 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
24722 used with VSX_B, VSX_D, or VSX_F, with just "wa".
24724 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
24727 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
24728 C++ with strict ANSI requirements.
24730 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
24732 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
24733 computations when step is 1.
24735 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24737 * config/rs6000/constraints.md (define_register_constraint "wf"):
24739 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24740 (rs6000_init_hard_regno_mode_ok): Adjust.
24741 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24742 RS6000_CONSTRAINT_wf.
24743 * config/rs6000/rs6000.md: Adjust.
24744 * config/rs6000/vsx.md: Adjust.
24745 * doc/md.texi (Machine Constraints): Adjust.
24747 2019-06-04 Andrew Pinski <apinski@marvell.com>
24749 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
24752 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24754 * config/rs6000/constraints.md (define_register_constraint "wd"):
24756 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24757 (rs6000_init_hard_regno_mode_ok): Adjust.
24758 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24759 RS6000_CONSTRAINT_wd.
24760 * config/rs6000/rs6000.md: Adjust.
24761 * config/rs6000/vsx.md: Adjust.
24762 * doc/md.texi (Machine Constraints): Adjust.
24764 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24766 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
24767 (rest of file): Adjust.
24769 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24771 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
24772 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
24773 (vsx_splat_<mode>_reg): Adjust.
24775 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24777 * config/rs6000/constraints.md (define_register_constraint "ws"):
24779 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24780 (rs6000_init_hard_regno_mode_ok): Adjust.
24781 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24782 RS6000_CONSTRAINT_ws.
24783 * config/rs6000/rs6000.md: Adjust.
24784 * config/rs6000/vsx.md: Adjust.
24785 * doc/md.texi (Machine Constraints): Adjust.
24787 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24789 * config/rs6000/constraints.md (define_register_constraint "wv"):
24791 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24792 (rs6000_init_hard_regno_mode_ok): Adjust.
24793 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24794 RS6000_CONSTRAINT_wv.
24795 * config/rs6000/rs6000.md: Adjust.
24796 * config/rs6000/vsx.md: Adjust.
24797 * doc/md.texi (Machine Constraints): Adjust.
24799 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24801 * config/rs6000/constraints.md (define_register_constraint "wi"):
24803 (define_register_constraint "wt"): Delete.
24804 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24805 (rs6000_init_hard_regno_mode_ok): Adjust.
24806 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24807 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
24808 * config/rs6000/rs6000.md: Adjust.
24809 * config/rs6000/vsx.md: Adjust.
24810 * doc/md.texi (Machine Constraints): Adjust.
24812 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
24814 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
24816 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
24817 default_elf_asm_output_external.
24819 2019-06-04 Martin Liska <mliska@suse.cz>
24821 * ipa-icf.c (INCLUDE_LIST): Remove.
24822 (sem_item_optimizer::execute): Remove call to init_wpa.
24823 * ipa-icf.h (init_wpa): Remove.
24825 2019-06-04 Jakub Jelinek <jakub@redhat.com>
24827 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
24828 conditional on combined for simd.
24829 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
24831 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
24832 constructs, don't remove lastprivate_conditional_map, but instead set
24833 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
24834 to parent construct temporaries.
24835 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
24836 like !ctx->lastprivate_conditional_map.
24837 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
24838 use up->outer context instead of up.
24839 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
24840 gimple_omp_for_combined_p.
24841 (expand_omp_for_static_nochunk): Likewise.
24842 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
24843 probably moved over into expand_omp_for_generic rather than being copied
24846 2019-06-04 Martin Liska <mliska@suse.cz>
24848 * value-prof.c (dump_histogram_value): Fix typo.
24849 (gimple_mod_subtract_transform): Likewise.
24851 2019-06-04 Richard Biener <rguenther@suse.de>
24853 PR middle-end/90726
24854 * tree-chrec.c (chrec_contains_symbols): Add to visited.
24855 (tree_contains_chrecs): Likewise.
24856 (chrec_contains_symbols_defined_in_loop): Move here and avoid
24857 exponential behaivor from ...
24858 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
24860 (expression_expensive_p): Avoid exponential behavior and compute
24861 expanded size, rejecting any expansion.
24862 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
24863 (idx_contains_abnormal_ssa_name_p): Likewise.
24864 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
24865 (contains_abnormal_ssa_name_p): Simplify and use
24866 walk_tree_without_duplicates.
24868 2019-06-04 Richard Biener <rguenther@suse.de>
24870 PR tree-optimization/90738
24872 2019-06-03 Richard Biener <rguenther@suse.de>
24874 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
24875 full reference tree and record in ref->ref.
24876 (vn_reference_lookup_3): Pass in original ref to
24877 ao_ref_init_from_vn_reference.
24878 (vn_reference_lookup): Likewise.
24879 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
24880 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
24881 Handle non-decl bases in the original reference.
24883 2019-06-04 Martin Liska <mliska@suse.cz>
24885 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
24886 number of references.
24887 (sem_item_optimizer::do_congruence_step):
24888 (sem_item_optimizer::worklist_push): Dump how references
24890 (sem_item_optimizer::worklist_pop): Use heap.
24891 (sem_item_optimizer::process_cong_reduction): Likewise.
24892 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
24894 2019-06-04 Martin Liska <mliska@suse.cz>
24896 * ipa-icf.h (struct sem_usage_pair_hash): New.
24897 (sem_usage_pair_hash::hash): Likewise.
24898 (sem_usage_pair_hash::equal): Likewise.
24899 (struct sem_usage_hash): Likewise.
24900 * ipa-icf.c (sem_item::sem_item): Initialize
24901 referenced_by_count.
24902 (sem_item::add_reference): Register a reference
24903 in ref_map and not in target->usages.
24904 (sem_item::setup): Remove initialization of
24906 (sem_item::~sem_item): Remove usage of dead vectors.
24907 (sem_item::dump): Remove dump of references.
24908 (sem_item_optimizer::sem_item_optimizer): Initialize
24910 (sem_item_optimizer::read_section): Remove useless
24912 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
24913 (sem_item_optimizer::build_graph): Pass m_references
24914 to ::add_reference.
24915 (sem_item_optimizer::verify_classes): Remove usage of dead
24917 (sem_item_optimizer::traverse_congruence_split): Return true
24918 when a class is split.
24919 (sem_item_optimizer::do_congruence_step_for_index): Use
24920 hash_map for look up of (sem_item *, index). That brings
24921 significant speed up.
24922 (sem_item_optimizer::do_congruence_step): Return true
24923 when a split is done.
24924 (congruence_class::is_class_used): Use referenced_by_count.
24926 2019-06-04 Alan Modra <amodra@gmail.com>
24929 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
24932 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
24934 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
24935 * config/rs6000/rs6000.c (direct_move_p): Adjust.
24936 (rs6000_secondary_reload_simple_move): Adjust.
24937 (rs6000_opt_masks): Neuter the "mfpgpr" option.
24938 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
24939 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
24942 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
24943 (floatunssi<mode>2_lfiwzx): Adjust.
24944 (fix_trunc<mode>si2_stfiwx): Adjust.
24945 (fixuns_trunc<mode>si2_stfiwx): Adjust.
24946 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
24947 (mfpgpr): Mark as deprecated.
24948 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
24949 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
24950 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
24952 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
24954 * config/rs6000/constraints.md (define_register_constraint "wg"):
24956 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24957 RS6000_CONSTRAINT_wg.
24958 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24959 (rs6000_init_hard_regno_mode_ok): Adjust.
24960 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
24961 Delete "wg" alternatives.
24962 * doc/md.texi (Machine Constraints): Adjust.
24964 2019-06-03 Alan Modra <amodra@gmail.com>
24966 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
24967 (get_uncond_jump_length): Assert length less than INT_MAX and
24970 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
24972 PR middle-end/64242
24973 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
24975 (expand_builtin_nonlocal_goto): Likewise.
24977 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24979 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
24980 (aarch64_asm_output_external): Declare.
24981 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
24982 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
24983 (aarch64_asm_output_alias): New.
24984 (aarch64_asm_output_external): New.
24985 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
24986 (ASM_OUTPUT_EXTERNAL): Define.
24988 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
24989 * tree-vrp.h (value_range_base::nonzero_p): New.
24990 (value_range_base::set_nonnull): Rename to...
24991 (value_range_base::set_nonzero): ...this.
24992 (value_range_base::set_null): Rename to...
24993 (value_range_base::set_zero): ...this.
24994 (value_range::set_nonnull): Remove.
24995 (value_range::set_null): Remove.
24996 * tree-vrp.c (range_is_null): Remove.
24997 (range_is_nonnull): Remove.
24998 (extract_range_from_binary_expr): Use value_range_base::*zero_p
24999 instead of range_is_*null.
25000 (extract_range_from_unary_expr): Same.
25001 (value_range_base::set_nonnull): Rename to...
25002 (value_range_base::set_nonzero): ...this.
25003 (value_range::set_nonnull): Remove.
25004 (value_range_base::set_null): Rename to...
25005 (value_range_base::set_zero): ...this.
25006 (value_range::set_null): Remove.
25007 (extract_range_from_binary_expr): Rename set_*null uses to
25009 (extract_range_from_unary_expr): Same.
25010 (union_helper): Same.
25011 * vr-values.c (get_value_range): Use set_*zero instead of
25013 (vr_values::extract_range_from_binary_expr): Same.
25014 (vr_values::extract_range_basic): Same.
25016 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25019 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25021 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25023 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25024 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25026 (aarch64_<su>abd<mode>_3): ... This.
25027 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25029 2019-06-03 Richard Biener <rguenther@suse.de>
25031 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25032 full reference tree and record in ref->ref.
25033 (vn_reference_lookup_3): Pass in original ref to
25034 ao_ref_init_from_vn_reference.
25035 (vn_reference_lookup): Likewise.
25036 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25037 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25038 Handle non-decl bases in the original reference.
25040 2019-06-03 Martin Liska <mliska@suse.cz>
25042 * doc/generic.texi: Remove Java Trees.
25044 2019-06-03 Martin Liska <mliska@suse.cz>
25046 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25047 returns 0 when operands are equal.
25049 2019-06-03 Richard Biener <rguenther@suse.de>
25051 PR tree-optimization/90716
25052 * tree-loop-distribution.c (destroy_loop): Process blocks in
25055 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25058 * vector-builder.h (vector_builder::count_dups): New method.
25059 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25061 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25062 (vec_init<mode><Vel>): New pattern.
25063 * config/aarch64/aarch64.c (emit_insr): New function.
25064 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25065 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25066 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25067 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25069 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25071 PR tree-optimization/90681
25072 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25073 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25074 special case for SLP, but fail on non-groupped loads.
25076 2019-06-03 Martin Liska <mliska@suse.cz>
25078 * cfg.c (debug): Use TDF_DETAILS for debug and
25079 print edge info only once.
25081 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25084 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25086 2019-06-01 Martin Sebor <msebor@redhat.com>
25088 PR middle-end/90694
25089 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25091 2019-05-31 Jan Hubicka <jh@suse.cz>
25093 * alias.c: Include ipa-utils.h.
25094 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25095 * ipa-devirt.c (prevailing_odr_type): New.
25096 * ipa-utils.h (previaling_odr_type): Declare.
25098 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25099 Hongtao Liu <hongtao.liu@intel.com>
25102 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25103 NOTE_INSN_DELETED_LABEL check.
25105 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25106 Robert Suchanek <robert.suchanek@mips.com>
25108 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25109 and 3rd operands of the fmadd/fmsub/maddv builtin.
25111 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25113 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25114 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25115 on OMP_SIMD if not nested inside of worksharing loop that also has
25116 lastprivate conditional clause for the same decl.
25117 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25118 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25120 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25122 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25124 (lower_lastprivate_clauses): Likewise.
25125 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25126 calling lower_rec_input_clauses.
25127 (lower_omp_for): Likewise.
25128 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25129 clause on simd construct.
25130 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25131 OMP_CLAUSE__CONDTEMP_ clause is present.
25133 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25136 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25139 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25140 TEX_D32, TEX_D64 or TEX_D128.
25142 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25144 * match.pd (~(vec?cst1:cst2)): New transformation.
25146 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25148 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25149 ((size_t)(A /[ex] B) CMP C): New transformation.
25151 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25153 * doc/md.texi: Document define_insn_and_rewrite.
25154 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25155 * gensupport.c (queue_elem): Update comment.
25156 (replace_operands_with_dups): New function.
25157 (gen_rewrite_sequence): Likewise.
25158 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25159 * read-rtl.c (apply_subst_iterator): Likewise.
25160 (add_condition_to_rtx, named_rtx_p): Likewise.
25161 (rtx_reader::read_rtx_operand): Likewise.
25162 * config/aarch64/aarch64-sve.md
25163 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25164 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25165 define_insn_and_rewrite.
25166 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25167 Remove separate define_split.
25169 2019-05-31 Jan Hubicka <jh@suse.cz>
25171 * tree-ssa-alias.c (type_has_components_p): New function.
25172 (aliasing_component_refs_p): Use it.
25174 2019-05-31 Martin Liska <mliska@suse.cz>
25176 * gdbhooks.py: Add const_tree to TreePrinter.
25178 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25181 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25182 * doc/invoke.texi (Debugging Options): Document new default of
25183 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25185 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25187 PR tree-optimization/90671
25188 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25189 template_block used to be empty on the first call, don't use
25190 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25191 seq with bb_seq and set it with set_bb_seq.
25193 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25195 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25197 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25198 Michael Meissner <meissner@linux.ibm.com>
25200 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25201 (prefixed_mem_operand): Likewise.
25202 (non_prefixed_mem_operand): Likewise.
25203 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25205 * config/rs6000/rs6000.c (print_operand_address): Handle
25206 PC-relative addresses.
25207 (mode_supports_prefixed_address_p): New function.
25208 (rs6000_prefixed_address): New function.
25209 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25210 (SYMBOL_REF_PCREL_P): Likewise.
25212 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25214 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25215 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25216 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25217 is nested inside of parallel region, add _condtemp_ clause to both.
25218 * tree-nested.c (convert_nonlocal_omp_clauses,
25219 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25221 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25223 * omp-general.c (omp_extract_for_data): Compute it.
25224 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25225 (lower_rec_input_clauses): Likewise.
25226 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25227 clause is already present, just add one further one after it.
25228 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25229 (lower_send_shared_vars): Clear _condtemp_ vars.
25230 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25231 or section or taskgroup.
25232 * omp-expand.c (determine_parallel_type): Disallow combining only if
25233 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
25234 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25235 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25236 expand_omp_for_static_chunk, expand_omp_for): Use
25237 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25238 determine if a special set of API routines are needed and if condtemp
25239 needs to be initialized, while always initialize cond_var if
25240 fd->lastprivate_conditional is non-zero.
25242 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25243 Michael Meissner <meissner@linux.ibm.com>
25245 * config/rs6000/constraints.md (eI): New constraint.
25246 * config/rs6000/predicates.md (cint34_operand): New predicate.
25247 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25248 (SIGNED_34BIT_OFFSET_P): Likewise.
25249 * doc/md.texi (eI): Document constraint.
25251 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
25253 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25255 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25256 Michael Meissner <meissner@linux.ibm.com>
25258 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
25259 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
25260 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
25261 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
25262 (OTHER_FUTURE_MASKS): Likewise.
25263 (POWERPC_MASKS): Likewise.
25264 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
25265 specified without -mprefixed-addr or -mcpu=future. Error if
25266 -mprefixed-addr is specified without -mcpu=future.
25267 (rs6000_opt_masks): Add entry for prefixed-addr.
25268 * rs6000.opt (mprefixed-addr): New option.
25270 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
25272 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
25273 cfun->is_thunk check.
25275 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25277 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
25280 2019-05-30 Martin Liska <mliska@suse.cz>
25282 * gdbinit.in: Fix 'ptc' command. Add trt
25283 that prints TREE_TYPE($).
25285 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
25286 Alan Modra <amodra@gmail.com>
25288 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
25290 (rs6000_indirect_call_template_1): ...and here.
25291 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
25292 plt16_ha, plt16_lo, mtctr indirect calls. Use
25293 rs6000_pltseq_enum.
25294 (rs6000_decl_ok_for_sibcall): New function.
25295 (rs6000_function_ok_for_sibcall): Refactor.
25296 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
25297 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
25298 when pcrel. Reorganize.
25299 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
25300 * rs6000.h (rs6000_pltseq_enum): New enum.
25301 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
25302 (*pltseq_tocsave): Use rs6000_pltseq_enum.
25303 (*pltseq_plt16_ha): Likewise.
25304 (*pltseq_plt16_lo): Likewise.
25305 (*pltseq_mtctr): Likewise.
25306 (*pltseq_plt_pcrel): New insn.
25307 (*call_local_aix): Handle @notoc calls.
25308 (*call_value_local_aix): Likewise.
25309 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
25310 (*call_value_nonlocal_aix): Likewise.
25311 (*call_indirect_pcrel): New insn.
25312 (*call_value_indirect_pcrel): Likewise.
25314 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
25316 * config/i386/sse.md (*save_multiple<mode>): Rename from
25317 save_multiple<mode>.
25318 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
25319 (*restore_multiple_and_return<mode>): Rename from
25320 restore_multiple_and_return<mode>.
25321 (*restore_multiple_leave_return<mode>): Rename from
25322 restore_multiple_leave_return<mode>.
25324 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
25326 * config.gcc (rx-*-linux*): New target.
25327 * config/rx/elf.opt: New file.
25328 * config/rx/linux.h: Likewise.
25329 * config/rx/t-linux: Likewise.
25330 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
25332 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
25333 (ASM_APP_OFF): Likewise.
25334 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
25337 2019-05-29 Jan Hubicka <jh@suse.cz>
25339 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
25340 variants are pointer equivalent.
25342 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25344 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
25345 * config/aarch64/aarch64-sve2.md: New file.
25346 (<u>avg<mode>3_floor): New pattern.
25347 (<u>avg<mode>3_ceil): Likewise.
25348 (*<sur>h<addsub><mode>): Likewise.
25349 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
25350 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
25352 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25355 * optc-save-gen.awk: In cl_optimization_print, use correct condition
25356 for var_opt_string printing. In cl_optimization_print_diff, print
25357 (null) instead of invoking undefined behavior if one of the
25358 var_opt_string pointers is NULL and use && instead of first || in the
25359 guarding condition. For var_target_other options, handle const char *
25360 target variables similarly to const char * optimize node variables.
25362 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
25364 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
25365 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
25366 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
25367 Add autib1716 and pacib1716 initialisation.
25368 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
25369 for autib1716 and pacib1716.
25370 * config/aarch64/aarch64-protos.h (aarch64_key_type,
25371 aarch64_post_cfi_startproc): Define.
25372 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
25373 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
25374 aarch64_handle_pac_ret_protection): Set default sign key to A.
25375 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
25376 aarch64_expand_prologue): Add check for b-key.
25377 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
25378 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
25379 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
25380 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
25381 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
25382 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
25383 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25384 * config/aarch64/aarch64.md (do_return): Add check for b-key.
25385 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
25386 pauth_hint_num_a with pauth_hint_num.
25387 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
25388 pauth_hint_num_a with pauth_hint_num.
25389 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
25390 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
25391 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25392 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
25393 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
25394 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
25395 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
25396 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25397 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
25398 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
25399 UNSPEC_AUTIA1716 respectively.
25400 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
25401 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
25402 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
25403 * doc/invoke.texi (-mbranch-protection): Add b-key type.
25404 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
25405 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
25407 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25409 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
25410 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
25411 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
25412 explicit clause on combined parallel into implicit shared clause.
25413 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
25414 and firstprivate if the decl has one too from combined parallel to
25415 the worksharing construct.
25417 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
25418 Michael Meissner <meissner@linux.ibm.com>
25420 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
25422 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
25424 * rtl.h (LABEL_REF_P): New #define.
25426 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
25428 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
25430 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25432 * internal-fn.c: Marked mask_load_direct as vectorizable.
25433 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
25434 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
25435 combined even if masks different with allow_slp_p param.
25436 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
25437 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
25438 dissolve SLP-only vectorizable groups when SLP has been discarded.
25439 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
25440 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
25442 (vect_build_slp_tree_1): Fixed comment typo.
25443 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
25444 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
25445 loads for SLP only.
25446 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
25448 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
25450 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25452 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
25453 Remove obsolete use_thunk reference.
25454 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25455 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25456 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25457 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25458 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25459 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25460 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25461 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25462 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25464 2019-05-28 Nathan Sidwell <nathan@acm.org>
25466 * tree.h (IDENTIFIER_ANON_P): New.
25467 (anon_aggrname_format, anon_aggname_p): Don't declare.
25468 (make_anon_name): Declare.
25469 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
25470 (hash_tree): Likewise.
25471 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
25472 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
25473 (anon_cnt, make_anon_name): New.
25475 2019-05-28 Martin Liska <mliska@suse.cz>
25478 * opts-global.c (decode_options): Print help for all
25479 help_option_arguments.
25480 * opts.c (print_help): Add new argument.
25481 (common_handle_option): Remember all values into
25482 help_option_arguments.
25483 * opts.h (print_help): Add new argument.
25485 2019-05-28 Martin Liska <mliska@suse.cz>
25488 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
25489 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
25490 (func_checker::compare_bb): Call compare_loops.
25492 2019-05-27 Jakub Jelinek <jakub@redhat.com>
25494 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25495 on sections construct.
25496 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
25498 (lower_omp_sections): Handle lastprivate conditional.
25499 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
25500 lastprivate_conditional_map.
25501 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
25503 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
25504 critical, taskgroup and section regions when looking for a region
25505 with non-NULL lastprivate_conditional_map.
25507 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25509 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
25510 (*ix86_gen_sub3): Ditto.
25511 (*ix86_gen_sub3_carry): Ditto.
25512 (*ix86_gen_one_cmpl2): Ditto.
25513 (*ix86_gen_andsp): Ditto.
25514 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
25515 (gen_and2_insn): New static function.
25516 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
25517 Use gen_add3_insn instead of ix86_gen_add3.
25518 (ix86_expand_split_stack_prologue): Use gen_add2_insn
25519 instead of ix86_gen_add3.
25520 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
25521 Use gen_sub3_insn instead of ix86_gen_sub3.
25522 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
25523 instead of ix86_gen_add3.
25524 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
25525 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
25526 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
25527 * config/i386/i386-options.c (ix86_option_override_internal):
25528 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
25529 ix86_gen_one_cmpl2 and ix86_gen_andsp.
25531 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
25533 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
25534 and DW_OP_GNU_const_index opcodes.
25536 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25538 * config/i386/i386.h (STACK_SIZE_MODE): Define.
25540 2019-05-27 Richard Biener <rguenther@suse.de>
25542 PR tree-optimization/90637
25543 * tree-ssa-sink.c (statement_sink_location): Honor the
25544 computed sink location for single-uses.
25546 2019-05-27 Richard Biener <rguenther@suse.de>
25548 PR middle-end/90610
25549 * match.pd (vec_perm): Avoid clobbering op0 when not generating
25552 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25554 * config/i386/i386.md (@sub<mode>3_carry): Rename
25555 from sub<mode>3_carry.
25556 (@leave_<mode>): New expander.
25557 (*leave): Rename from leave.
25558 (*leave_rex64): Rename from leave_rex64.
25559 (@monitorx_<mode>): Rename from monitorx_<mode>.
25560 (@clzero_<mode>): Rename from clzero_<mode>.
25561 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
25562 from sse3_monitor_<mode>.
25563 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
25564 (*ix86_gen_leave): Ditto.
25565 (*ix86_gen_monitor): Ditto.
25566 (*ix86_gen_monitorx): Ditto.
25567 (*ix86_gen_clzero): Ditto.
25568 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
25569 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
25570 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
25571 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
25572 Use gen_sse3_monitor instead of ix86_gen_monitor.
25573 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
25574 instead of ix86_gen_monitorx.
25575 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
25576 instead of ix86_gen_clzero.
25577 * config/i386/i386-options.c (ix86_option_override_internal):
25578 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
25579 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
25581 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25583 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
25584 Rename from tls_global_dynamic_64_<mode>.
25585 (@tls_local_dynamic_base_64_<mode>): Rename from
25586 tls_local_dynamic_base_64_<mode>.
25587 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
25588 Remove indirect function.
25589 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
25590 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
25591 instead of ix86_gen_tls_global_dynamic_64.
25592 Use gen_tls_local_dynamic_base_64 instead of
25593 ix86_gen_tls_local_dynamic_base_64.
25594 * config/i386/i386-options.c (ix86_option_override_internal):
25595 Do not initialize ix86_gen_tls_global_dynamic_64 and
25596 ix86_gen_tls_local_dynamic_base_64.
25598 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25600 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
25601 Rename from pro_epilogue_adjust_stack_<mode>_add.
25602 (@pro_epilogue_adjust_stack_sub_<mode>)
25603 Rename from pro_epilogue_adjust_stack_<mode>_sub.
25604 (@allocate_stack_worker_probe_<mode>):
25605 Rename from allocate_stack_worker_probe_<mode>.
25606 (allocate_stack): Use gen_allocate_stack_worker_probe.
25607 (probe_stack): Use gen_probe_stack_1.
25608 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
25609 (@adjust_stack_and_probe_<mode>): Rename from
25610 adjust_stack_and_probe<mode>.
25611 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
25612 (stack_protect_set): Use gen_stack_protect_set_1.
25613 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
25614 (stack_protect_test): Use gen_stack_protect_test_1.
25615 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
25616 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
25617 Remove indirect function.
25618 (*ix86_gen_adjust_stack_and_probe): Ditto.
25619 (*ix86_gen_probe_stack_range): Ditto.
25620 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
25621 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
25622 (ix86_adjust_stack_and_probe_stack_clash): Use
25623 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
25624 (ix86_adjust_stack_and_probe): Ditto.
25625 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
25626 of ix86_gen_probe_stack_range.
25627 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
25628 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
25629 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
25630 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
25631 CODE_FOR_stack_protect_test_{si,di}.
25632 * config/i386/i386-options.c (ix86_option_override_internal):
25633 Do not initialize ix86_gen_allocate_stack_worker,
25634 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
25636 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
25638 * doc/invoke.texi (Link Options): Many editorial changes around
25641 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25643 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
25644 pre-Solaris 11 referene and most Studio compiler details.
25646 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
25649 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
25650 DImode to SImode in floating-point registers on 64-bit target.
25651 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
25652 register_operand in xmpyu patterns.
25654 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25656 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
25657 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
25658 OMP_CLAUSE__REDUCTEMP_.
25659 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
25660 OMP_CLAUSE__CONDTEMP_.
25661 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
25662 * tree-pretty-print.c (dump_omp_clause): Likewise.
25663 * tree-nested.c (convert_nonlocal_omp_clauses,
25664 convert_local_omp_clauses): Likewise.
25665 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
25666 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
25667 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
25669 (gimplify_omp_for): Warn and disable conditional modifier from
25670 lastprivate on loop iterators.
25671 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
25673 * omp-general.c (omp_extract_for_data): Initialize it.
25674 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
25676 (delete_omp_context): Delete it.
25677 (lower_lastprivate_conditional_clauses): New function.
25678 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
25679 handle lastprivate conditional clauses.
25680 (lower_reduction_clauses): Add CLIST argument, emit it into
25681 the critical section if any.
25682 (lower_omp_sections): Adjust lower_lastprivate_clauses and
25683 lower_reduction_clauses callers.
25684 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
25685 to lower_lastprivate_clauses.
25686 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
25687 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
25688 clist into a critical section if not emitted there already by
25689 lower_reduction_clauses.
25690 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
25692 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
25693 conditional variables.
25694 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
25696 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25697 expand_omp_for_static_chunk): Handle lastprivate conditional.
25698 (expand_omp_for): Handle fd.lastprivate_conditional like
25701 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25703 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
25704 kernel does not exit cleanly.
25705 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
25707 2019-05-24 Jason Merrill <jason@redhat.com>
25710 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25712 2019-05-24 Richard Biener <rguenther@suse.de>
25715 * tree-loop-distribution.c (struct partition): Add location
25717 (partition_alloc): Initialize all fields.
25718 (generate_memset_builtin): Use the location recorded in the
25719 partition for the generated call.
25720 (generate_memcpy_builtin): Likewise.
25721 (classify_partition): Record the location of a single store
25722 as location for the partition.
25724 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25726 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
25729 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
25732 * common/config/aarch64/aarch64-common.c
25733 (aarch64_rewrite_selected_cpu): Change local temporary variable
25734 type from unsigned long to uint64_t.
25735 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
25736 aarch64_get_extension_string_for_isa_flags): Change declaration to
25737 match new definition by replacing unsigned long with uint64_t.
25739 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25742 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
25743 gen_attr_type just once instead of 4-7 times. Formatting fixes.
25744 Handle stack_protect_test_<mode> codegen similarly to corresponding
25747 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
25749 * config/i386/darwin.h: Reject -mfentry*.
25750 * doc/sourcebuild.texi: Document mfentry target support.
25752 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25754 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
25755 Rename to rs6000_global_entry_point_prologue_needed_p. Return
25756 false for PC-relative functions.
25757 (rs6000_output_function_prologue): Change called function name to
25758 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
25759 name,1" for PC-relative functions.
25760 (rs6000_elf_declare_function_name): Change called function name to
25761 rs6000_global_entry_point_prologue_needed_p.
25763 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
25766 * config/i386/i386.c (gen_rtx_cost):
25767 Use ix86_tune_cost instead of ix86_cost.
25769 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25770 Michael Meissner <meissner@linux.ibm.com>
25771 Segher Boessenkool <segher@kernel.crashing.org>
25773 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
25775 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
25776 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
25777 (rs6000_fndecl_pcrel_p): Likewise.
25778 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
25779 error if -mpcrel is requested without -mcpu=future.
25780 (rs6000_opt_masks): Add entry for pcrel.
25781 (rs6000_fndecl_pcrel_p): New function.
25782 (rs6000_pcrel_p): Likewise.
25783 * config/rs6000/rs6000.opt (mpcrel): New option.
25784 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
25786 2019-05-23 Jan Hubicka <jh@suse.cz>
25787 Martin Liska <mliska@suse.cz>
25789 PR tree-optimization/90576
25790 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
25792 (aliasing_component_refs_p): Fix three way size compare conditional;
25793 give up earlier in case we can not decide on equivalence.
25795 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25796 Michael Meissner <meissner@linux.ibm.com>
25797 Segher Boessenkool <segher@kernel.crashing.org>
25799 * config.gcc: Add future cpu.
25800 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
25801 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
25803 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
25804 (RS6000_CPU): New instantiation for future cpu.
25805 * config/rs6000/rs6000-opts.h (enum processor_type): Add
25807 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
25808 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
25809 * config/rs6000/rs6000-tables.opt: Regenerate.
25810 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
25811 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
25812 (rs6000_machine_from_flags): Handle future cpu.
25813 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
25814 PROCESSOR_POWER9 for now.
25815 (rs6000_adjust_cost): Likewise.
25816 (rs6000_issue_rate): Likewise.
25817 (rs6000_register_move_cost): Likewise.
25818 (rs6000_opt_masks): Add entry for future.
25819 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
25820 (MASK_FUTURE): New #define.
25821 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
25822 * config/rs6000/rs6000.opt (mfuture): New target option.
25823 * doc/invoke.texi (mcpu): Add future cpu.
25825 2019-05-23 Martin Liska <mliska@suse.cz>
25828 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
25829 operation points to a temporary (pointed via tree_to_wide_ref)
25830 that is out of scope after the &.
25832 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
25835 * doc/extend.texi (Function Names): Add missing word.
25837 2019-05-23 Richard Biener <rguenther@suse.de>
25839 PR tree-optimization/88440
25840 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
25842 * tree-loop-distribution.c (generate_memset_builtin): Fold the
25844 (generate_memcpy_builtin): Likewise.
25845 (distribute_loop): Pass in whether to only distribute patterns.
25846 (prepare_perfect_loop_nest): Also allow size optimization.
25847 (pass_loop_distribution::execute): When optimizing a loop
25848 nest for size allow pattern replacement.
25850 2019-05-23 Jakub Jelinek <jakub@redhat.com>
25853 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
25856 2019-05-23 Martin Liska <mliska@suse.cz>
25859 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
25860 expression similarly to gimplify_decl_expr.
25862 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25864 * cse.c (cse_dump_path): s/dump_file/f.
25866 2019-05-22 David Malcolm <dmalcolm@redhat.com>
25869 * diagnostic-format-json.cc: Include "selftest.h".
25870 (json_from_expanded_location): Only add "file" key for non-NULL
25872 (json_from_location_range): Don't add "start" and "finish"
25873 children if they are UNKNOWN_LOCATION.
25874 (selftest::test_unknown_location): New selftest.
25875 (selftest::test_bad_endpoints): New selftest.
25876 (selftest::diagnostic_format_json_cc_tests): New function.
25877 * json.cc (json::object::get): New function.
25878 (selftest::test_object_get): New selftest.
25879 (selftest::json_cc_tests): Call it.
25880 * json.h (json::object::get): New decl.
25881 * selftest-run-tests.c (selftest::run_tests): Call
25882 selftest::diagnostic_format_json_cc_tests.
25883 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
25886 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
25887 Andrew Stubbs <amd@codesourcery.com>
25889 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
25890 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
25891 (kernel): Rename to...
25892 (main_kernel): ... this.
25893 (load_image): Load _init_array and _fini_array kernels.
25894 (run): Add argument for kernel to run.
25895 (main): Run init_array_kernel before main_kernel, and
25896 fini_array_kernel after.
25897 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
25898 amdgpu_hsa_kernel attribute on functions.
25899 (gcn_disable_constructors): Delete.
25900 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
25901 * config/gcn/crt0.c (size_t): Define.
25902 (_init_array, _fini_array): New.
25903 (__preinit_array_start, __preinit_array_end,
25904 __init_array_start, __init_array_end,
25905 __fini_array_start, __fini_array_end): Declare weak references.
25907 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
25909 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
25911 2019-05-22 Jason Merrill <jason@redhat.com>
25913 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25915 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
25918 * config/i386/i386-options.c (ix86_init_machine_status): Set
25919 stack_frame_required to true.
25920 * config/i386/i386.c (ix86_get_frame_size): New function.
25921 (ix86_frame_pointer_required): Replace get_frame_size with
25922 ix86_get_frame_size.
25923 (ix86_compute_frame_layout): Likewise.
25924 (ix86_find_max_used_stack_alignment): Changed to void. Set
25925 stack_frame_required.
25926 (ix86_finalize_stack_frame_flags): Always call
25927 ix86_find_max_used_stack_alignment. Replace get_frame_size with
25928 ix86_get_frame_size.
25929 * config/i386/i386.h (machine_function): Add stack_frame_required.
25931 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
25933 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
25935 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
25937 * common/config/aarch64/aarch64-common.c
25938 (struct aarch64_option_extension, struct processor_name_to_arch,
25939 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
25940 aarch64_contains_opt,
25941 aarch64_get_extension_string_for_isa_flags): Change type of
25942 variables storing flags to uint64_t.
25943 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
25944 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
25945 * config/aarch64/aarch64.c (struct processor,
25946 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
25947 aarch64_validate_march, aarch64_override_options,
25948 aarch64_option_print, aarch64_handle_attr_isa_flags,
25949 aarch64_declare_function_name, aarch64_start_file): Make flag
25950 variables uint64_t.
25951 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
25952 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
25953 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
25954 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
25955 * config/aarch64/driver-aarch64.c
25956 (struct aarch64_arch_extension, struct aarch64_core_data,
25957 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
25958 flag variables uint64_t.
25959 * doc/invoke.texi: Add documentation for new arguments.
25961 2019-05-22 Richard Biener <rguenther@suse.de>
25963 * alias.c (ao_ref_from_mem): Move stack-slot sharing
25965 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
25967 2019-05-22 Martin Liska <mliska@suse.cz>
25970 * doc/extend.texi: Document the change.
25972 2019-05-22 Richard Biener <rguenther@suse.de>
25974 PR tree-optimization/90450
25975 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
25976 (mem_ref_hasher::equal): Check it.
25977 (mem_ref_alloc): Initialize it.
25978 (gather_mem_refs_stmt): Set it.
25980 2019-05-22 Richard Biener <rguenther@suse.de>
25982 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
25984 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
25987 2019-05-22 Alan Modra <amodra@gmail.com>
25989 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
25990 (ASM_CPU_SPEC): Conditionally add -many.
25991 * config/rs6000/rs6000.c (rs6000_machine): New static var.
25992 (rs6000_machine_from_flags, emit_asm_machine): New functions..
25993 (rs6000_file_start): ..extracted from here, and modified to
25995 (rs6000_output_function_prologue): Emit .machine as necessary.
25997 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
25999 PR middle-end/90553
26000 * ira-lives.c (process_bb_node_lives): Consider defs
26001 for a call insn to be die before the call, not after.
26003 * function.c (assign_parm_setup_block): Raise alignment of
26004 stacked parameter only for STRICT_ALIGNMENT targets.
26006 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26008 * config/rs6000/constraints.md (define_register_constraint "wz"):
26010 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26011 RS6000_CONSTRAINT_wz.
26012 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26013 (rs6000_init_hard_regno_mode_ok): Adjust.
26014 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26015 * doc/md.texi (Machine Constraints): Adjust.
26017 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26019 * config/rs6000/constraints.md (define_register_constraint "wl"):
26021 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26022 RS6000_CONSTRAINT_wl.
26023 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26024 (rs6000_init_hard_regno_mode_ok): Adjust.
26025 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26026 * doc/md.texi (Machine Constraints): Adjust.
26028 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26030 * config/rs6000/constraints.md (define_register_constraint "wm"):
26032 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26033 RS6000_CONSTRAINT_wm.
26034 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26035 (rs6000_init_hard_regno_mode_ok): Adjust.
26036 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26037 * doc/md.texi (Machine Constraints): Adjust.
26039 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26041 * config/rs6000/constraints.md (define_register_constraint "wk"):
26043 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26044 RS6000_CONSTRAINT_wk.
26045 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26046 (rs6000_init_hard_regno_mode_ok): Adjust.
26047 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26048 * doc/md.texi (Machine Constraints): Adjust.
26050 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26052 * config/rs6000/constraints.md (define_register_constraint "wj"):
26054 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26055 RS6000_CONSTRAINT_wj.
26056 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26057 (rs6000_init_hard_regno_mode_ok): Adjust.
26058 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26060 * config/rs6000/vsx.md: Ditto.
26061 * doc/md.texi (Machine Constraints): Adjust.
26063 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26065 * config/rs6000/constraints.md (define_register_constraint "wh"):
26067 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26068 RS6000_CONSTRAINT_wh.
26069 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26070 (rs6000_init_hard_regno_mode_ok): Adjust.
26071 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26072 * doc/md.texi (Machine Constraints): Adjust.
26074 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26077 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26078 Avoid calling gen_lowpart with CONST operand.
26080 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26082 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26083 field template_last_to_copy.
26084 (ssa_create_duplicates): Set it, and use it. Attempt to
26085 preserve more debug stmts.
26087 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26089 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26090 (signbit<mode>2): New expander
26092 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26095 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26096 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26098 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26100 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26101 %ebx and %ecx bafore calling cpuid with leaf 1 or
26102 non-constant leaf argument.
26104 2019-05-21 Alan Modra <amodra@gmail.com>
26107 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26108 power9 direct move cost.
26110 2019-05-21 Richard Biener <rguenther@suse.de>
26112 PR middle-end/90510
26113 * fold-const.c (fold_read_from_vector): New function.
26114 * fold-const.h (fold_read_from_vector): Declare.
26115 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26116 single-element insert permutations. Canonicalize selector
26117 further and fix issue with last commit.
26119 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26121 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26122 parameter with default value false to declaration.
26123 (split_edges_for_insertion): New inline function. Wrapper for
26124 split_critical_edges with for_edge_insertion_p = true.
26125 * tree-cfg.c (split_critical_edges): Don't split non-critical
26126 edges if for_edge_insertion_p is false. Fix whitespace.
26127 * tree-ssa-pre.c (pass_pre::execute): Call
26128 split_edges_for_insertion instead of split_critical_edges.
26129 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26130 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26131 (pass_data_sink_code): Update function name in the comment.
26133 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26135 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26136 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26137 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26138 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26141 2019-05-21 Martin Liska <mliska@suse.cz>
26143 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26145 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26146 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26148 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26150 (rs6000_function_arg): Likewise.
26151 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26152 (rs6000_expand_ternop_builtin): Use interval syntax.
26153 (get_element_number): Likewise.
26154 (altivec_expand_builtin): Likewise.
26155 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26157 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26161 * function.h (struct function): Add calls_eh_return member.
26162 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26163 gimplifying __builtin_eh_return call.
26164 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26166 (expand_call_inline): Or in src_cfun->calls_eh_return into
26167 dst_cfun->calls_eh_return.
26168 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26169 cfun->calls_eh_return.
26170 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26171 * lto-streamer-out.c (output_struct_function_base): Write
26174 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26176 PR rtl-optimization/43147
26177 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26178 IX86_BUILTIN_SHUFPD.
26180 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26182 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26183 (refs_may_alias_p_1): ... here; update stats.
26184 (refs_may_alias_p): Do not update stats here.
26186 2019-05-20 Richard Biener <rguenther@suse.de>
26188 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26189 doesn't produce pointers.
26190 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26191 the first operand points to.
26193 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26195 * tree-ssa-alias.c (compare_sizes): New function.
26196 (sompare_type_sizes): New function
26197 (aliasing_component_refs_p): Use it.
26198 (indirect_ref_may_alias_decl_p): Likewise.
26200 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26202 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26204 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26206 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26207 (LIBLSAN_EARLY_SPEC): Likewise.
26208 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26210 2019-05-20 Martin Liska <mliska@suse.cz>
26212 * config/i386/i386.c (ix86_libc_has_fast_function):
26213 Add ATTRIBUTE_UNUSED for the argument.
26215 2019-05-20 Richard Biener <rguenther@suse.de>
26217 * gimple-match-head.c: Include vec-perm-indices.h.
26218 * generic-match-head.c: Likewise.
26219 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26221 * fold-const.c (fold_vec_perm): Export.
26222 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26223 (match.pd): ...here.
26225 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26227 * cfgloop.h (struct loop): Add simdlen member.
26228 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26229 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26230 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26231 as new argument to autovectorize_vector_sizes target hook. If
26232 loop->simdlen, pick up vector size where the vectorization factor
26233 is equal to loop->simd, and if there is none, fall back to the first
26235 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26237 * omp-low.c (omp_clause_aligned_alignment): Likewise.
26238 * omp-general.c (omp_max_vf): Likewise.
26239 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26240 * tree-vect-slp.c (vect_slp_bb): Likewise.
26241 * target.def (autovectorize_vector_sizes): Add ALL argument and
26243 * doc/tm.texi: Adjust documentation.
26244 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26245 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26246 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26248 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26249 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26250 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26251 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
26252 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26253 preferred vector size is not 512-bit or 256-bit, just put those
26254 unpreferred ones last.
26256 2019-05-20 Martin Liska <mliska@suse.cz>
26258 * targhooks.c (default_libc_has_fast_function): New function.
26259 * targhooks.h (default_libc_has_fast_function): Likewise.
26261 2019-05-20 Martin Liska <mliska@suse.cz>
26263 PR middle-end/90263
26264 * builtins.c (expand_builtin_memory_copy_args): When having a
26265 target with fast mempcpy implementation do now use memcpy.
26266 * config/i386/i386.c (ix86_libc_has_fast_function): New.
26267 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
26268 * doc/tm.texi: Likewise.
26269 * doc/tm.texi.in: Likewise.
26271 * expr.c (emit_block_move_hints): Add 2 new arguments.
26272 * expr.h (emit_block_move_hints): Bail out when libcall
26273 to memcpy would be used.
26275 2019-05-20 Martin Liska <mliska@suse.cz>
26277 * profile-count.c: Add vertical spacing in order
26278 to separate functions.
26279 * profile-count.h: Likewise.
26281 2019-05-20 Martin Liska <mliska@suse.cz>
26283 * profile-count.h: Do not use full qualified
26285 * profile-count.c (profile_count::to_frequency): Likewise.
26287 2019-05-20 Martin Liska <mliska@suse.cz>
26289 * profile-count.h (enum profile_quality): Use capital letters
26290 for enum value names. Use the adjusted names.
26291 * profile-count.c: Use the adjusted names.
26293 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26295 * config/rs6000/constraints.md (define_register_constraint "wH"):
26297 (define_register_constraint "wI"): Delete.
26298 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26299 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
26300 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26301 (rs6000_init_hard_regno_mode_ok): Adjust.
26302 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
26303 resp. "d", or with "wa" as appropriate, all with "p8v".
26304 * config/rs6000/vsx.md: Ditto.
26305 * doc/md.texi (Machine Constraints): Adjust.
26307 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26309 * config/rs6000/constraints.md (define_register_constraint "wy"):
26311 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26312 RS6000_CONSTRAINT_wy.
26313 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26314 (rs6000_init_hard_regno_mode_ok): Adjust.
26315 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
26316 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
26317 (define_mode_attr Fisa): New.
26318 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
26319 * doc/md.texi (Machine Constraints): Adjust.
26321 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26323 * config/rs6000/constraints.md (define_register_constraint "wu"):
26325 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26326 RS6000_CONSTRAINT_wu.
26327 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26328 (rs6000_init_hard_regno_mode_ok): Adjust.
26329 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
26331 (define_mode_attr Fa): Delete.
26332 * config/rs6000/vsx.md: Ditto.
26333 * doc/md.texi (Machine Constraints): Adjust.
26335 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26337 * config/rs6000/constraints.md (define_register_constraint "wJ"):
26339 (define_register_constraint "wK"): Delete.
26340 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26341 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
26342 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26343 (rs6000_init_hard_regno_mode_ok): Adjust.
26344 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
26345 Replace "wK" constraint by "wH" with "p9v".
26346 * config/rs6000/vsx.md: Ditto.
26347 * doc/md.texi (Machine Constraints): Adjust.
26349 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26351 * config/rs6000/constraints.md (define_register_constraint "wb"):
26353 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26354 RS6000_CONSTRAINT_wb.
26355 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26356 (rs6000_init_hard_regno_mode_ok): Adjust.
26357 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
26358 * config/rs6000/vsx.md: Ditto.
26359 * doc/md.texi (Machine Constraints): Adjust.
26361 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26363 * config/rs6000/constraints.md (define_register_constraint "wo"):
26365 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26366 RS6000_CONSTRAINT_wo.
26367 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26368 (rs6000_init_hard_regno_mode_ok): Adjust.
26369 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
26370 * config/rs6000/altivec.md: Ditto.
26371 * doc/md.texi (Machine Constraints): Adjust.
26373 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26375 * config/darwin-c.c (darwin_register_objc_includes): Do not
26376 prepend the sysroot when building gnu-runtime header search
26379 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26381 * config/darwin.c (darwin_file_end): Use switch_to_section ()
26382 instead of direct output of the asm.
26384 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26386 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
26387 argument to be type bool (was int before).
26388 (rs6000_emit_epilogue): Simplify some code. Declare some variables
26389 at first use. Use type bool for some variables. Fix a theoretical
26390 eh_return bug for svr4.
26392 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26394 * config/rs6000/rs6000.md (isa): New attribute.
26395 (enabled): New attribute.
26397 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
26399 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
26400 assemble_start_function and assemble_end_function.
26402 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
26404 PR middle-end/89433
26405 * omp-general.c (oacc_verify_routine_clauses): Change formal
26406 parameters. Add checking if already marked with an OpenACC
26407 'routine' directive. Adjust all users.
26409 PR middle-end/89433
26410 * omp-general.c (oacc_build_routine_dims): Move some of its
26412 (oacc_verify_routine_clauses): ... this new function.
26413 * omp-general.h (oacc_verify_routine_clauses): New prototype.
26415 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26417 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
26418 formating of picbase labels to match other ports.
26420 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26422 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
26423 in the generated code.
26425 2019-05-16 Martin Sebor <msebor@redhat.com>
26427 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
26428 identifiers, keywords, operators, and types in diagnostics. Correct
26429 quoting, spelling, and sentence capitalization issues.
26430 (expand_builtin_atomic_is_lock_free): Same.
26431 (fold_builtin_next_arg): Same.
26432 * cfgexpand.c (expand_one_var): Same.
26433 (tree_conflicts_with_clobbers_p): Same.
26434 (expand_asm_stmt): Same.
26435 (verify_loop_structure): Same.
26436 * cgraphunit.c (process_function_and_variable_attributes): Same.
26437 * collect-utils.c (collect_execute): Same.
26438 * collect2.c (maybe_run_lto_and_relink): Same.
26439 (is_lto_object_file): Same.
26440 (scan_prog_file): Same.
26441 * convert.c (convert_to_real_1): Same.
26442 * dwarf2out.c (dwarf2out_begin_prologue): Same.
26443 * except.c (verify_eh_tree): Same.
26444 * gcc.c (execute): Same.
26445 (eval_spec_function): Same.
26446 (run_attempt): Same.
26447 (driver::set_up_specs): Same.
26448 (compare_debug_auxbase_opt_spec_function): Same.
26449 * gcov-tool.c (unlink_gcda_file): Same.
26451 (do_rewrite): Same.
26452 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
26453 * gimplify.c (gimplify_asm_expr): Same.
26454 (gimplify_adjust_omp_clauses): Same.
26455 * hsa-gen.c (gen_hsa_addr_insns): Same.
26456 (gen_hsa_insns_for_load): Same.
26457 (gen_hsa_cmp_insn_from_gimple): Same.
26458 (gen_hsa_insns_for_operation_assignment): Same.
26459 (gen_get_level): Same.
26460 (gen_hsa_alloca): Same.
26461 (omp_simple_builtin::generate): Same.
26462 (gen_hsa_atomic_for_builtin): Same.
26463 (gen_hsa_insns_for_call): Same.
26464 * input.c (dump_location_info): Same.
26465 * ipa-devirt.c (compare_virtual_tables): Same.
26466 * ira.c (ira_setup_eliminable_regset): Same.
26467 * lra-assigns.c (lra_assign): Same.
26468 * lra-constraints.c (lra_constraints): Same.
26469 * lto-streamer-in.c (lto_input_mode_table): Same.
26470 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
26471 (merge_and_complain): Same.
26472 (compile_offload_image): Same.
26473 (compile_images_for_offload_targets): Same.
26474 (debug_objcopy): Same.
26477 * opts.c (print_specific_help): Same.
26478 (parse_no_sanitize_attribute): Same.
26479 (print_help): Same.
26480 (handle_param): Same.
26481 * plugin.c (add_new_plugin): Same.
26482 (parse_plugin_arg_opt): Same.
26483 (try_init_one_plugin): Same.
26484 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
26485 operators, and types in diagnostics. Correct quoting and spelling
26487 * read-rtl-function.c (parse_edge_flag_token): Same.
26488 (function_reader::parse_enum_value): Same.
26489 * reg-stack.c (check_asm_stack_operands): Same.
26490 * regcprop.c (validate_value_data): Same.
26491 * sched-rgn.c (make_pass_sched_fusion): Same.
26492 * stmt.c (check_unique_operand_names): Same.
26493 * targhooks.c (default_target_option_pragma_parse): Same.
26494 * tlink.c (recompile_files): Same.
26495 * toplev.c (process_options): Same.
26496 (do_compile): Same.
26497 * trans-mem.c (diagnose_tm_1): Same.
26498 (ipa_tm_scan_irr_block): Same.
26499 (ipa_tm_diagnose_transaction): Same.
26500 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
26501 format a tree code name in a diagnostic.
26502 (verify_types_in_gimple_min_lval): Same.
26503 (verify_types_in_gimple_reference): Same.
26504 (verify_gimple_call): Same.
26505 (verify_gimple_assign_unary): Same.
26506 (verify_gimple_assign_binary): Same.
26507 (verify_gimple_assign_ternary): Same.
26508 (verify_gimple_assign_single): Same.
26509 (verify_gimple_switch): Same.
26510 (verify_gimple_label): Same.
26511 (verify_gimple_phi): Same.
26512 (verify_gimple_in_seq): Same.
26513 (verify_eh_throw_stmt_node): Same.
26514 (collect_subblocks): Same.
26515 (gimple_verify_flow_info): Same.
26516 (do_warn_unused_result): Same.
26517 * tree-inline.c (expand_call_inline): Same.
26518 * tree-into-ssa.c (update_ssa): Same.
26519 * tree.c (tree_int_cst_elt_check_failed): Same.
26520 (tree_vec_elt_check_failed): Same.
26521 (omp_clause_operand_check_failed): Same.
26522 (verify_type_variant): Same.
26523 (verify_type): Same.
26524 * value-prof.c (verify_histograms): Same.
26525 * varasm.c (assemble_start_function): Same.
26527 2019-05-16 Martin Sebor <msebor@redhat.com>
26529 * config/i386/i386-expand.c (get_element_number): Quote keywords
26530 and other internal names in diagnostics. Adjust other diagnostic
26531 formatting issues noted by -Wformat-diag.
26532 * config/i386/i386-features.c
26533 (ix86_mangle_function_version_assembler_name): Same.
26534 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
26535 * config/i386/i386.c (ix86_function_type_abi): Same.
26536 (ix86_function_ms_hook_prologue): Same.
26537 (classify_argument): Same.
26538 (ix86_expand_prologue): Same.
26539 (ix86_md_asm_adjust): Same.
26540 (ix86_memmodel_check): Same.
26542 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
26544 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
26545 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
26548 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
26551 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
26552 intrinsics without SSE/SSE2/SSSE3.
26553 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
26555 (*mmx_uavgv8qi3): Likewise.
26557 2019-05-17 Richard Biener <rguenther@suse.de>
26559 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
26560 VEC_PERM_EXPR as __VEC_PERM with -gimple.
26562 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
26564 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
26565 vec_sldw insn pattern.
26567 2019-05-17 Richard Biener <rguenther@suse.de>
26569 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
26571 2019-05-17 Martin Liska <mliska@suse.cz>
26574 * toplev.c (output_stack_usage): With LTO and sanitizer it
26575 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
26576 has no file location.
26578 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26581 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
26582 sz0 is equal to sz1, instead return false in that case.
26584 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
26585 has non-constant expression, force sctx.lane and use two
26586 argument IFN_GOMP_SIMD_LANE instead of single argument.
26587 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
26588 two argument IFN_GOMP_SIMD_LANE without lhs.
26589 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
26591 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
26593 (LOOP_REQUIRES_VERSIONING): Or in
26594 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
26595 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
26597 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
26598 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
26599 from simd if clause if needed.
26601 2019-05-16 Richard Biener <rguenther@suse.de>
26603 * tree-affine.c (expr_to_aff_combination): New function split
26605 (tree_to_aff_combination): ... here.
26606 (aff_combination_expand): Avoid building a GENERIC tree.
26608 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
26610 * cgraphunit.c (cgraph_node::expand_thunk): Remove
26611 assemble_start_function and assemble_end_function calls.
26612 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
26613 assemble_start_function and assemble_end_function.
26614 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
26615 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
26616 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
26617 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
26618 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
26619 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
26620 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
26621 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
26622 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26623 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26624 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
26625 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
26627 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
26628 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
26629 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
26630 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
26631 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26632 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26633 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
26634 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
26635 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26636 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
26637 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26638 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26639 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
26640 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
26642 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26643 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26644 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
26646 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
26648 * tree-ssa-alias.c (alias_stats): Add
26649 aliasing_component_refs_p_may_alias and
26650 aliasing_component_refs_p_no_alias.
26651 (dump_alias_stats): Print aliasing_component_refs_p stats.
26652 (aliasing_component_refs_p): Update stats.
26654 2019-05-16 Martin Liska <mliska@suse.cz>
26657 * multiple_target.c (expand_target_clones): Do not allow
26658 target_clones being used with a symbol that is an alias.
26660 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
26662 PR tree-optimization/90394
26663 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
26664 positives rather than ICE for cases where (code2 == NE_EXPR
26665 && code1 == BIT_AND_EXPR).
26667 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26670 * tree-core.h (struct tree_decl_common): Document
26671 decl_nonshareable_flag for PARM_DECLs.
26672 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
26673 * calls.c (expand_call): Don't try tail call if caller
26674 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
26675 passed on the stack and callee needs to pass any arguments on the
26677 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
26678 else if instead of series of mutually exclusive ifs. Handle
26679 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
26680 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
26682 * lto-streamer.h (LTO_major_version): Bump to 9.
26684 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
26686 PR tree-optimization/90106
26687 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
26688 new parameter as new internal function call, also move it to new
26690 (use_internal_fn): Pass internal function call to
26691 shrink_wrap_one_built_in_call_with_conds.
26693 2019-05-15 Jakub Jelinek <jakub@redhat.com>
26695 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
26697 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
26698 safelen_int and set loop->dont_vectorize.
26700 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26703 * config/i386/i386-builtin.def: Enable MMX intrinsics with
26705 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
26707 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
26708 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
26709 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
26712 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26715 * config/i386/mmx.md (*vec_dupv2sf): Changed to
26716 define_insn_and_split to support SSE emulation.
26717 (*vec_extractv2sf_0): Likewise.
26718 (*vec_extractv2sf_1): Likewise.
26719 (*vec_extractv2si_0): Likewise.
26720 (*vec_extractv2si_1): Likewise.
26721 (*vec_extractv2si_zext_mem): Likewise.
26722 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
26723 (vec_extractv2sf_1 splitter): Likewise.
26724 (vec_extractv2sfsf): Likewise.
26725 (vec_setv2si): Likewise.
26726 (vec_extractv2si_1 splitter): Likewise.
26727 (vec_extractv2sisi): Likewise.
26728 (vec_setv4hi): Likewise.
26729 (vec_extractv4hihi): Likewise.
26730 (vec_setv8qi): Likewise.
26731 (vec_extractv8qiqi): Likewise.
26732 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26733 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
26734 (vec_extractv2sisi): Likewise.
26735 (vec_extractv4hihi): Likewise.
26736 (vec_extractv8qiqi): Likewise.
26737 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26738 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
26739 (vec_initv2sisi): Likewise.
26740 (vec_initv4hihi): Likewise.
26741 (vec_initv8qiqi): Likewise.
26742 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
26743 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
26744 (vec_setv4hi): Likewise.
26745 (vec_setv8qi): Likewise.
26747 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26750 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
26751 TARGET_MMX_WITH_SSE.
26752 (MMXMODE:*mov<mode>_internal): Likewise.
26753 (MMXMODE:movmisalign<mode>): Likewise.
26755 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
26758 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
26759 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
26760 (sse2_cvtpd2pi): Ditto.
26761 (sse2_cvttpd2pi): Ditto.
26762 (*vec_concatv2sf_sse4_1): Ditto.
26763 (*vec_concatv2sf_sse): Ditto.
26764 (*vec_concatv2si_sse4_1): Ditto.
26765 (*vec_concatv2si): Ditto.
26766 (*vec_concatv4si_0): Ditto.
26767 (*vec_concatv2di_0): Ditto.
26769 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26772 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
26774 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26777 * config/i386/sse.md (ssse3_palignrdi): Changed to
26778 define_insn_and_split to support SSE emulation.
26780 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26783 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
26785 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26788 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
26789 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26792 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26795 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
26796 or TARGET_MMX_WITH_SSE.
26797 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
26799 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26802 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
26804 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26807 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
26808 Changed to define_insn_and_split to support SSE emulation.
26810 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26813 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
26814 Changed to define_insn_and_split to support SSE emulation.
26816 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26819 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
26820 (*mmx_<emms>): This.
26821 (mmx_<emms>): New expander.
26823 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26826 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
26828 (*sse2_umulv1siv1di3): Add SSE2 emulation.
26830 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26833 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
26835 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26838 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
26840 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26843 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
26844 TARGET_MMX_WITH_SSE.
26845 (*mmx_uavgv4hi3): Add SSE emulation.
26847 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26850 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
26851 and TARGET_MMX_WITH_SSE.
26852 (*mmx_uavgv8qi3): Add SSE emulation.
26854 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26857 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
26858 maskmovdqu for __MMX_WITH_SSE__.
26860 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26863 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
26864 TARGET_MMX and TARGET_MMX_WITH_SSE.
26865 (*mmx_umulv4hi3_highpart): Add SSE emulation.
26867 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26870 * config/i386/mmx.md (mmx_pmovmskb): Changed to
26871 define_insn_and_split to support SSE emulation.
26873 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26876 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
26877 and TARGET_MMX_WITH_SSE.
26878 (mmx_<code>v8qi3): Likewise.
26879 (smaxmin:<code>v4hi3): New.
26880 (umaxmin:<code>v8qi3): Likewise.
26881 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
26882 (umaxmin:*mmx_<code>v8qi3): Likewise.
26884 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26887 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
26888 TARGET_MMX_WITH_SSE.
26889 (*mmx_pinsrw): Add SSE emulation.
26891 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26894 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
26896 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26899 * config/i386/sse.md (sse_cvtpi2ps): Changed to
26900 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26903 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26906 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
26907 (sse_cvttps2pi): Likewise.
26909 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26912 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
26913 TARGET_MMX_WITH_SSE.
26914 (mmx_pshufw_1): Add SSE emulation.
26915 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
26916 TARGET_MMX_WITH_SSE to support SSE emulation.
26918 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26921 * config/i386/constraints.md (Yw): New constraint.
26922 * config/i386/mmx.md (*vec_dupv2si): Changed to
26923 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
26924 support SSE emulation.
26926 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26929 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
26930 TARGET_MMX_WITH_SSE.
26931 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
26933 (mmx_gt<mode>3): Likewise.
26935 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26938 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
26939 TARGET_MMX_WITH_SSE. Add SSE support.
26941 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26944 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
26945 TARGET_MMX_WITH_SSE.
26946 (any_logic:<code><mode>3): New.
26947 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
26950 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26953 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
26954 TARGET_MMX_WITH_SSE. Add SSE emulation.
26955 (mmx_<shift_insn><mode>3): Likewise.
26956 (ashr<mode>3): New.
26957 (<shift_insn><mode>3): Likewise.
26959 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26962 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
26963 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
26965 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26968 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
26969 TARGET_MMX_WITH_SSE.
26970 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
26973 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26976 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
26977 TARGET_MMX_WITH_SSE.
26979 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
26982 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26985 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
26986 (plusminus:mmx_<plusminus_insn><mode>3): Check
26987 TARGET_MMX_WITH_SSE.
26988 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
26989 (<plusminus_insn><mode>3): New.
26990 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
26991 (*mmx_<plusminus_insn><mode>3): Likewise.
26993 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26996 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
26997 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
26999 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27000 define_insn_and_split to support SSE emulation.
27001 (mmx_punpcklbw): Likewise.
27002 (mmx_punpckhwd): Likewise.
27003 (mmx_punpcklwd): Likewise.
27004 (mmx_punpckhdq): Likewise.
27005 (mmx_punpckldq): Likewise.
27007 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27008 Uros Bizjak <ubizjak@gmail.com>
27011 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27013 (ix86_split_mmx_pack): Likewise.
27014 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27016 (ix86_split_mmx_pack): Likewise.
27017 * config/i386/i386.md (mmx_isa): New.
27018 (enabled): Also check mmx_isa.
27019 * config/i386/mmx.md (any_s_truncate): New code iterator.
27020 (s_trunsuffix): New code attr.
27021 (mmx_packsswb): Removed.
27022 (mmx_packssdw): Likewise.
27023 (mmx_packuswb): Likewise.
27024 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27025 MMX packsswb/packuswb with SSE2.
27026 (mmx_packssdw): Likewise.
27027 * config/i386/predicates.md (register_mmxmem_operand): New.
27029 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27032 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27033 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27034 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27035 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27036 (ix86_vector_mode_supported_p): Likewise.
27037 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27039 2019-05-15 Martin Liska <mliska@suse.cz>
27041 PR middle-end/90478
27042 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27043 Check for overflow.
27045 2019-05-15 Richard Biener <rguenther@suse.de>
27047 * tree-into-ssa.c (pass_build_ssa::execute): Run
27048 update_address_taken before going into SSA.
27050 2019-05-15 Richard Biener <rguenther@suse.de>
27052 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27053 as __BIT_FIELD_REF with type with -gimple.
27055 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27057 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27058 semantically equivalent branches (left over after prior refactorings).
27060 2019-05-15 Richard Biener <rguenther@suse.de>
27062 PR tree-optimization/88828
27063 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27066 2019-05-14 Richard Biener <rguenther@suse.de>
27068 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27069 as __VIEW_CONVERT with -gimple.
27071 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27074 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27077 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27079 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27080 define_split to become a define_insn_and_split.
27082 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27084 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27086 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27087 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27088 (sibcall_epilogue): Adjust.
27089 (epilogue): Adjust.
27091 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27093 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27094 to unsupported ones.
27095 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27096 * config.host: Likewise.
27097 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27098 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27099 __svr4__]: Remove "brand" fallback.
27100 [!KSTAT_DATA_STRING]: Remove.
27101 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27103 (comdat_group): Likewise.
27104 (set_have_as_tls): Likewise.
27105 (gcc_cv_target_dl_iterate_phdr): Likewise.
27106 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27107 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27108 * configure: Regenerate.
27109 * doc/install.texi: Simplify Solaris target triplets.
27110 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27111 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27112 Remove Solaris 10 references.
27113 Remove obsolete Solaris bug reference.
27114 (Specific, sparc-sun-solaris2.10): Remove.
27116 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27118 * config/i386/i386.md (any_div): New code iterator.
27119 (paired_mod): New code attribute.
27120 (sgnprefix): Handle DIV and UDIV RTXes.
27122 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27123 and udivmod<mode>4 patterns using any_div code iterator.
27124 (divmod splitters): Macroize splitters using any_div code iterator.
27125 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27126 (*udivmodsi4_pow2_zext_2): Ditto.
27127 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27128 and *udivmod<mode>4_noext patterns using any_div code iterator.
27129 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27130 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27131 patterns using any_div code iterator.
27132 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27133 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27134 patterns using any_div code iterator.
27135 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27136 udivmodhiqi3 patterns using any_extend code iterator.
27138 2019-05-14 Richard Biener <rguenther@suse.de>
27139 H.J. Lu <hongjiu.lu@intel.com>
27141 PR tree-optimization/88828
27142 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27143 permuting in a single non-constant element not extracted
27146 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27148 * internal-fn.def (SIGNBIT): New.
27149 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27151 (signbitv4sf2): Likewise.
27153 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27156 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27157 next insn when the SRC reg is dead.
27159 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27161 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27162 (alloc_cand_and_find_basis): Ditto.
27163 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27164 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27165 (create_add_imm_cand, slsr_process_cast): Ditto.
27166 (slsr_process_copy, replace_mult_candidate): Ditto.
27167 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27168 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27169 (pass_strength_reduction::execute): Init the first NULL element.
27171 2019-05-13 Nathan Sidwell <nathan@acm.org>
27173 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27174 (run_attempt): Reformat line break.
27176 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27179 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27180 data registers in sibcall epilogues.
27181 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27183 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27186 * configure.ac (--enable-frame-pointer):
27187 Disable by default for cygwin and mingw.
27188 * configure: Regenerate.
27190 2019-05-13 Nathan Sidwell <nathan@acm.org>
27192 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27194 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27195 (gen_member_die): Move abstract origin check earlier. Only VARs
27196 can be static_inline_p. Simplify splicing control flow.
27198 2019-05-13 Richard Biener <rguenther@suse.de>
27200 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27202 (vect_build_slp_tree_1): Likewise.
27204 2019-05-13 Richard Biener <rguenther@suse.de>
27206 PR tree-optimization/90402
27207 * tree-if-conv.c (tree_if_conversion): Value number only
27208 the loop body by making the latch an exit of the region
27210 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27212 (do_rpo_vn): Deal with multiple edges into the entry block
27213 that are not backedges inside the region by skipping PHIs
27214 of the entry block.
27216 2019-05-13 Richard Biener <rguenther@suse.de>
27218 PR tree-optimization/90316
27219 * tree-ssa-pre.c (insert_aux): Fold into ...
27220 (insert): ... this function. Use a RPO walk to reduce the
27221 number of required iterations.
27223 2019-05-13 Martin Liska <mliska@suse.cz>
27225 PR tree-optimization/90416
27226 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27227 string instead of passing the second part as va_arg argument.
27229 2019-05-13 Martin Liska <mliska@suse.cz>
27231 PR gcov-profile/90380
27232 * gcov.c (handle_cycle): Do not support zero cycle count,
27233 it should not be possible.
27234 (path_contains_zero_cycle_arc): New function.
27235 (circuit): Ignore zero cycle arc counts.
27237 2019-05-13 Martin Liska <mliska@suse.cz>
27239 PR gcov-profile/90380
27240 * gcov.c (enum loop_type): Remove the enum and
27242 (handle_cycle): Assert that we should not reach
27244 (circuit): Use loop_found instead of a tri-state loop_type.
27245 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27248 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27251 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27252 (ix86_output_indirect_branch_via_reg): Use output mechanism
27253 accounting for __USER_LABEL_PREFIX__.
27254 (ix86_output_indirect_branch_via_push): Likewise.
27255 (ix86_output_function_return): Likewise.
27256 (ix86_output_indirect_function_return): Likewise.
27258 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
27260 * doc/md.texi: Document use of code attributes in rtx patterns.
27261 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
27262 * read-rtl.c (find_code): Split out search loops into...
27263 (maybe_find_code): ...this new function.
27264 (check_code_iterator): Make the error message more informative.
27265 (check_code_attribute): New function.
27266 (rtx_reader::rtx_alloc_for_name): Likewise.
27267 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
27268 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
27269 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
27270 <max_opp> directly as an rtx code instead of via a match_operator.
27271 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
27272 (<su>abd<mode>_3): Update accordingly.
27274 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27276 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
27277 is given, print the state of the EH "save world" computation for
27280 2019-05-11 Jakub Jelinek <jakub@redhat.com>
27283 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
27284 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27286 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
27288 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
27289 Use pinsrd for TARGET_SSE4_1.
27290 * config/i386/sse.md (movdi_to_sse): Ditto.
27292 2019-05-10 Richard Biener <rguenther@suse.de>
27294 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
27295 (do_rpo_vn): Initialize next_value_id.
27297 2019-05-10 Martin Liska <mliska@suse.cz>
27299 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27302 2019-05-10 Jakub Jelinek <jakub@redhat.com>
27304 PR tree-optimization/90385
27305 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
27306 arguments of the exit phis.
27309 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
27310 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
27312 (copy_tree_body_r): Likewise.
27313 (copy_fn): Set id.do_not_fold to true.
27315 2019-05-10 Martin Liska <mliska@suse.cz>
27317 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
27318 Reapply changes from r269790.
27320 2019-05-10 Martin Liska <mliska@suse.cz>
27322 PR middle-end/90340
27323 * doc/invoke.texi: New params.
27324 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
27325 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
27326 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27328 * tree-switch-conversion.h (struct jump_table_cluster):
27331 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
27333 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
27335 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
27337 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
27339 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
27341 PR rtl-optimization/88879
27342 * sel-sched.c (sel_target_adjust_priority): Remove assert.
27344 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
27347 * config/arm/arm.c (callee_saved_reg_p): Move before
27348 thumb_find_work_register.
27349 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
27350 thumb_find_work_register. Only call df_get_live_out once.
27351 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
27352 (thumb_find_work_register): Use
27353 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
27354 algorithms to locate a spare call clobbered reg.
27356 2019-05-09 Martin Liska <mliska@suse.cz>
27358 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
27359 and MAX_EXPR in GIMPLE FE format.
27361 2019-05-09 Martin Liska <mliska@suse.cz>
27363 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
27364 * gimple-pretty-print.c (dump_gimple_bb_header):
27366 (pp_cfg_jump): Dump edge probability.
27367 * profile-count.c (profile_quality_as_string): Simplify
27368 with a static array.
27369 (parse_profile_quality): New function.
27370 (profile_count::dump): Simplify with a static array.
27371 (profile_count::from_gcov_type): Add new argument.
27372 * profile-count.h (parse_profile_quality): Likewise.
27373 * predict.h (set_hot_bb_threshold): New.
27374 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27376 * predict.c (get_hot_bb_threshold): Set from the new param.
27377 (set_hot_bb_threshold): New.
27379 2019-05-09 Richard Biener <rguenther@suse.de>
27381 PR tree-optimization/90395
27382 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
27383 rewrite vector stores that throw internally.
27385 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
27387 * cif-code.def (CHKP): Remove.
27390 * configure.ac (--enable-frame-pointer): Disable by default for
27392 * configure: Regenerate.
27394 2019-05-09 Alan Modra <amodra@gmail.com>
27397 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
27398 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
27399 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
27400 cost for general <-> vsx when direct moves are available.
27401 Cost union classes at minimal cost for any reg in the class.
27402 Correct calculation for moves between vsx, float, and altivec.
27403 Don't return a low cost for moves between special regs. Don't
27404 use hard coded register numbers.
27405 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
27406 (rs6000_ira_change_pseudo_allocno_class): New function.
27407 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
27408 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
27410 (movsi_internal1): Don't disparage vector alternatives.
27411 (mov<mode>_internal): Likewise, excepting alternative that
27413 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
27414 we <- b alternative.
27416 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27419 PR tree-optimization/89060
27420 * tree-ssa-live.h (live_vars_map): New typedef.
27421 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
27422 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
27423 (struct compute_live_vars_data): New type.
27424 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
27425 live_vars_at_stmt, destroy_live_vars): New functions.
27426 * tree-tailcall.c: Include tree-ssa-live.h.
27427 (live_vars, live_vars_vec): New global variables.
27428 (find_tail_calls): Perform variable life analysis before punting.
27429 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
27430 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
27432 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
27433 Perform variable life analysis to select variables that really need
27435 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
27436 instead set id->eh_landing_pad_dest and assert it is the same.
27437 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
27439 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
27440 Richard Earnshaw <rearnsha@arm.com>
27443 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
27445 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
27446 (thumb1_compute_save_core_reg_mask): Don't force a spare work
27447 register if both the epilogue and prologue can use call-clobbered
27449 (thumb1_unexpanded_epilogue): Use
27450 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
27451 picking temporaries for restoring high regs to match that of the
27452 prologue where possible.
27453 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
27454 the list of work registers. Detect if the return address is still live
27455 at the end of the prologue and avoid using it for a work register if so.
27456 If the return address is not live, add LR to the list of pushable regs
27457 after the first pass.
27459 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27461 PR tree-optimization/90078
27462 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
27463 (INFTY): Increase the value for infinite cost.
27464 (struct comp_cost): Promote type of members to int64_t.
27465 (infinite_cost): Don't set complexity in initialization.
27466 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
27467 overflows to infinite_cost.
27468 (adjust_setup_cost): Promote type of parameter and cost computation
27470 (struct ainc_cost_data, struct iv_ca): Promote type of member to
27472 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
27473 cost computation to int64_t.
27474 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
27475 int64_t's format specifier in dump.
27477 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27479 PR tree-optimization/90240
27480 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
27481 with respect to scaling factor pre-computed for each basic block.
27482 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
27483 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
27484 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
27485 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
27486 live range for array of loop's basic blocks. Cleanup aux field of
27487 loop's basic blocks.
27489 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27491 PR tree-optimization/90356
27492 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
27494 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
27496 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
27497 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
27498 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
27499 (ix86_handle_option): Handle -mavx512bf16.
27500 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
27502 * config/i386/avx512bf16vlintrin.h: New.
27503 * config/i386/avx512bf16intrin.h: New.
27504 * config/i386/cpuid.h (bit_AVX512BF16): New.
27505 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
27506 * config/i386/i386-builtin-types.def: Add new types.
27507 * config/i386/i386-builtin.def: Add new builtins.
27508 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27510 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
27511 (ix86_option_override_internal): Handle BF16.
27512 (ix86_valid_target_attribute_inner_p): Ditto.
27513 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
27514 * config/i386/i386-builtin.c (enum processor_features): Add
27516 (static const _isa_names_table isa_names_table): Ditto.
27517 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
27518 (PTA_AVX512BF16): Ditto.
27519 * config/i386/i386.opt: Add -mavx512bf16.
27520 * config/i386/immintrin.h: Include avx512bf16intrin.h
27521 and avx512bf16vlintrin.h.
27522 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
27523 avx512f_cvtneps2bf16_<mode><mask_name>,
27524 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
27525 * config/i386/subst.md (mask_half): Add new subst.
27526 * doc/invoke.texi: Document -mavx512bf16.
27528 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
27530 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
27531 Delete declaration.
27532 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
27533 (rs6000_debug_legitimize_reload_address): Delete.
27534 (rs6000_legitimize_reload_address_ptr): Delete.
27535 (rs6000_option_override_internal): Adjust.
27536 (mem_operand_gpr): Adjust comment.
27537 (legitimate_lo_sum_address_p): Ditto.
27538 (rs6000_legitimize_reload_address): Delete.
27539 (rs6000_debug_legitimize_reload_address): Delete.
27540 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
27542 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
27545 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27546 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
27547 to compute vector element selector for both constant and variable
27550 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27552 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
27553 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
27554 ashrdi3_cvt using SWI48 mode iterator.
27556 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27558 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
27559 (aarch64_<su>abd<mode>_3): Likewise.
27560 (*aarch64_<su>abd<mode>_3): New define_insn.
27561 (<sur>sad<vsi2qi>): New define_expand.
27562 * config/aarch64/iterators.md: Added MAX_OPP attribute.
27563 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
27564 (build_vect_cond_expr): Likewise.
27566 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27568 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
27569 clobbers outside of accessible_reg_set.
27570 * config/i386/i386.c (ix86_conditional_register_usage):
27571 Disable register sets by clearing corresponding bits in
27572 accessible_reg_set. Do not set corresponding bits in fixed_regs,
27573 call_used_regs and don't clear corresponding reg_names array members.
27575 2019-05-07 Richard Biener <rguenther@suse.de>
27577 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
27578 not specified still compute a comp_vectype for invariant
27581 2019-05-07 Richard Biener <rguenther@suse.de>
27583 PR tree-optimization/90316
27584 * tree-ssa-pre.c (translate_vuse_through_block): When
27585 same_valid is NULL do not bother to search for a virtual
27587 (phi_translate_1): When operands changed we cannot keep
27588 the same value-number so do not bother to ask whether
27589 that's possible from translate_vuse_through_block.
27591 2019-05-07 Martin Liska <mliska@suse.cz>
27593 * bitmap.c (bitmap_register): Come up with
27594 alloc_descriptor_max_uid and assign it for
27596 (register_overhead): Use get_descriptor as
27598 (release_overhead): New.
27599 (bitmap_elem_to_freelist): Call it.
27600 (bitmap_elt_clear_from): Likewise.
27601 (bitmap_obstack_free): Likewise.
27602 (bitmap_move): Sensitively release memory.
27603 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
27604 (bitmap_initialize): Initialize alloc_descriptor to zero.
27605 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
27607 2019-05-07 Richard Biener <rguenther@suse.de>
27609 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
27610 we build a SLP node. Remove max_size and limiting.
27611 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
27613 2019-05-07 Richard Biener <rguenther@suse.de>
27615 PR tree-optimization/90316
27616 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
27617 limit by reference.
27618 (walk_non_aliased_vuses): Take walking limit argument.
27619 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
27620 walking if it is reached instead of just counting.
27621 (get_continuation_for_phi): Likewise.
27622 (walk_non_aliased_vuses): Likewise, instead of leaving counter
27623 limiting to the callback.
27624 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
27625 (vn_reference_lookup_3): Likewise.
27626 (vn_reference_lookup_pieces): Likewise.
27627 (vn_reference_lookup): Likewise.
27628 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
27629 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
27630 (avail_exprs_stack::lookup_avail_expr): Likewise.
27632 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
27634 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
27635 for comparaible types in the second direction even if first one
27636 hits incomparable type.
27638 2019-05-07 Richard Biener <rguenther@suse.de>
27641 * lto-wrapper.c (debug_objcopy): Use the original filename
27642 including archive offset for the filename used for -save-temps.
27644 2019-05-07 Li Jia He <helijia@linux.ibm.com>
27646 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
27649 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
27650 Hongtao Liu <hongtao.liu@intel.com>
27654 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
27655 Modified, original implementation isn't correct.
27657 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27659 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
27660 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
27661 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
27662 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
27663 (FRAME_POINTER_REGNUM): Change numbering.
27664 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
27665 (alt_reg_names): Adjust.
27666 (rs6000_conditional_register_usage): Don't mark hard register 64 as
27668 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27669 (DWARF_FRAME_REGISTERS): Delete.
27670 (DWARF2_FRAME_REG_OUT): Fix whitespace.
27671 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27673 (REG_ALLOC_ORDER): Adjust.
27674 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
27675 (REG_CLASS_CONTENTS): Adjust.
27676 (RETURN_ADDR_RTX): Change comment.
27677 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
27679 (REGISTER_NAMES): Adjust.
27680 (ADDITIONAL_REGISTER_NAMES): Adjust.
27681 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27683 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27685 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
27687 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27688 (DWARF_FRAME_REGISTERS): Adjust.
27689 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27691 (REG_ALLOC_ORDER): Adjust.
27692 (enum reg_class): Delete SPR_REGS.
27693 (REG_CLASS_NAMES): Delete SPR_REGS.
27694 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
27695 (REGISTER_NAMES): Adjust.
27696 (ADDITIONAL_REGISTER_NAMES): Adjust.
27697 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27698 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
27699 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
27700 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
27701 (htm_spr_regno): Delete.
27702 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
27704 (rs6000_dbx_register_number): Adjust.
27706 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27708 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
27710 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27712 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
27713 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
27715 2019-05-06 Jakub Jelinek <jakub@redhat.com>
27717 PR tree-optimization/88709
27718 PR tree-optimization/90271
27719 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
27720 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
27721 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
27723 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
27724 of the store merging group is larger than
27725 PARAM_STORE_MERGING_MAX_SIZE parameter.
27726 (split_group): Add bzero_first argument. If set, always emit first
27727 the first store which must be = {} of the whole area and then for the
27728 rest of the stores consider all zero bytes as paddings.
27729 (imm_store_chain_info::output_merged_store): Check if first store
27730 is = {} of the whole area and if yes, determine which setting of
27731 bzero_first for split_group gives smaller number of stores. Adjust
27732 split_group callers.
27733 (lhs_valid_for_store_merging_p): Allow decls.
27734 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
27736 (pass_store_merging::process_store): Likewise.
27738 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
27741 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
27742 handling of V1TImode.
27744 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
27747 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
27748 and enable_frame_pointer ...
27749 * configure.ac: ... here. Update help strings for
27750 --enable-frame-pointer.
27751 * configure: Regenerate.
27752 * config/i386/i386-options.c (ix86_option_override_internal): Remove
27753 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
27754 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
27755 (USE_X86_64_FRAME_POINTER): Ditto.
27757 2019-05-06 Martin Liska <mliska@suse.cz>
27759 * config.gcc: Append to target_gtfiles and fix indentation.
27761 2019-05-06 Richard Biener <rguenther@suse.de>
27763 PR tree-optimization/90358
27764 * tree-vect-stmts.c (get_group_load_store_type): Properly
27765 detect unused upper half of load.
27766 (vectorizable_load): Likewise.
27768 2019-05-06 Richard Biener <rguenther@suse.de>
27770 PR tree-optimization/88828
27771 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
27772 (simplify_vector_constructor): ...here. Handle constants in
27775 2019-05-06 Richard Biener <rguenther@suse.de>
27777 PR tree-optimization/90328
27778 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
27779 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
27780 is valid in the loop nest before using it.
27781 (initialize_data_dependence_relation): Adjust.
27782 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
27783 loop as loop-nest to dr_may_alias_p.
27785 2019-05-06 Richard Biener <rguenther@suse.de>
27787 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
27789 2019-05-06 Richard Biener <rguenther@suse.de>
27791 PR tree-optimization/90316
27792 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
27793 compute target on demand.
27794 (get_continuation_for_phi): Remove code walking stmts to
27795 get to a target virtual operand which could end up being
27798 2019-05-06 Martin Liska <mliska@suse.cz>
27801 * config/i386/i386-options.c (ix86_option_override_internal): Error only
27802 when -mabi is selected to a non-default version.
27804 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
27805 Martin Liska <mliska@suse.cz>
27807 * Makefile.in: Add lto-dump.texi.
27808 * cgraph.h: Add new functions get_visibility_string and
27809 get_symtab_type_string.
27810 * doc/gcc.texi: Include lto-dump section.
27811 * doc/lto-dump.texi: New file.
27812 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
27813 (parse_dump_option): Factor out this function.
27814 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
27815 (parse_dump_option): Export the function.
27816 * symtab.c (symtab_node::get_visibility_string): New function.
27817 (symtab_node::get_symtab_type_string): Likewise.
27819 2019-05-06 Martin Liska <mliska@suse.cz>
27821 * config/i386/i386-builtins.c: New file.
27822 * config/i386/i386-builtins.h: New file.
27823 * config/i386/i386-expand.c: New file.
27824 * config/i386/i386-expand.h: New file.
27825 * config/i386/i386-features.c: New file.
27826 * config/i386/i386-features.h: New file.
27827 * config/i386/i386-options.c: New file.
27828 * config/i386/i386-options.h: New file.
27829 * config.gcc: Add new files into extra_objs and
27831 * config/i386/i386.c: Split content of the file
27832 into newly introduced files.
27833 * config/i386/i386.h: Declare common variables
27835 * config/i386/t-i386: Define dependencies for new files.
27837 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
27840 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
27841 Restrict 'all' variant to 32-bit configurations.
27842 (unaligned_loadhiu): Likewise.
27843 (unaligned_storehi): Likewise.
27844 (unaligned_storesi): Likewise.
27845 (unaligned_loadhis): Disable when compiling for thumb1.
27847 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
27849 PR tree-optimization/90269
27850 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
27853 2019-05-03 Martin Liska <mliska@suse.cz>
27855 * hash-map.h: Add is_empty function.
27856 * hash-set.h: Likewise.
27857 * hash-table.h: Likewise.
27858 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
27859 elements () == 0 (and similar usages).
27860 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
27861 * gimplify.c (gimplify_bind_expr): Likewise.
27862 (gimplify_switch_expr): Likewise.
27863 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
27864 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
27865 * postreload-gcse.c (dump_hash_table): Likewise.
27866 (gcse_after_reload_main): Likewise.
27867 * predict.c (combine_predictions_for_bb): Likewise.
27868 * tree-parloops.c (reduction_phi): Likewise.
27869 (separate_decls_in_region): Likewise.
27870 (transform_to_exit_first_loop): Likewise.
27871 (gen_parallel_loop): Likewise.
27872 (gather_scalar_reductions): Likewise.
27873 (try_create_reduction_list): Likewise.
27874 * var-tracking.c (dump_vars): Likewise.
27875 (emit_notes_for_changes): Likewise.
27876 (vt_emit_notes): Likewise.
27878 2019-05-03 Richard Biener <rguenther@suse.de>
27880 PR tree-optimization/90316
27881 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
27884 2019-05-03 Richard Biener <rguenther@suse.de>
27886 * tree-vect-stmts.c (get_group_load_store_type): Avoid
27887 peeling for gaps by loading only lower halves of vectors
27889 (vectorizable_load): Likewise.
27891 2019-05-03 Richard Biener <rguenther@suse.de>
27893 PR middle-end/89518
27894 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
27896 2019-05-03 Richard Biener <rguenther@suse.de>
27898 PR middle-end/87314
27899 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
27900 Handle STRING_CST vs DECL or STRING_CST.
27902 2019-05-03 Richard Biener <rguenther@suse.de>
27904 PR tree-optimization/88963
27905 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
27906 vector loads feeding only BIT_FIELD_REFs to component
27907 loads. Rewrite stores fed by CONSTRUCTORs to component
27910 2019-05-03 Jakub Jelinek <jakub@redhat.com>
27912 * opts.h (finish_options): Remove lang_mask argument.
27913 (print_help, help_option_argument): Declare.
27914 * opts.c (print_help): Remove forward declaration, no longer static.
27915 (finish_options): Remove lang_mask argument, don't call print_help
27917 * opts-global.c (decode_options): Adjust finish_option caller, call
27920 PR tree-optimization/90303
27921 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
27922 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
27924 2019-05-03 Richard Biener <rguenther@suse.de>
27926 PR tree-optimization/89698
27927 * gimple-fold.c (canonicalize_constructor_val): Early out
27928 for constants, handle unfolded INTEGER_CSTs as they appear in
27929 C++ virtual table ctors.
27931 2019-05-03 Richard Biener <rguenther@suse.de>
27933 * passes.c (execute_function_todo): Remove dead code.
27935 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
27937 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
27938 the internal register number, for any "real" register.
27940 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
27942 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
27943 correct numbers for TFHAR, TFIAR, TEXASR.
27945 2019-05-02 Richard Biener <rguenther@suse.de>
27947 PR tree-optimization/89653
27948 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
27949 update-address-taken before the pass.
27950 * passes.def (pass_tree_loop_init): Put comment before it.
27952 2019-05-02 Richard Biener <rguenther@suse.de>
27954 PR tree-optimization/89509
27955 * tree-ssa-structalias.c (compute_dependence_clique): Look
27956 at the first subvar when determining whether it is restrict.
27958 2019-05-02 Richard Biener <rguenther@suse.de>
27960 PR tree-optimization/90273
27961 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
27962 useless debug stmts.
27964 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27966 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
27968 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
27970 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
27971 VEC_COND_EXPR be inserted to emulate a conditional internal function.
27972 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
27973 (vectorizable_reduction): Use the functions above to vectorize in a
27974 fully masked loop codes that don't have a conditional internal
27977 2019-05-02 Martin Liska <mliska@suse.cz>
27979 * cgraphclones.c: Call valid_attribute_p with 1 for
27981 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
27982 it's for target attribute.
27983 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
27984 Add new boolean argument.
27985 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
27987 (ix86_valid_target_attribute_tree): Pass target_clone_attr
27988 to ix86_valid_target_attribute_inner_p.
27989 (ix86_valid_target_attribute_p): Pass flags argument to
27990 ix86_valid_target_attribute_inner_p.
27991 (get_builtin_code_for_version): Use 0 as it's target attribute.
27993 2019-05-02 Martin Liska <mliska@suse.cz>
27995 * gcc.c (process_command): Add dummy file only
27997 * opts-global.c (decode_options): Pass lang_mask.
27998 * opts.c (print_help): New function.
27999 (finish_options): Print --help if help_option_argument
28001 (common_handle_option): Factor out content of OPT__help_
28003 * opts.h (finish_options): Add new argument.
28005 2019-05-02 Martin Liska <mliska@suse.cz>
28008 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28009 With -minline-all-stringops use inline expansion using 4B loop.
28010 * doc/invoke.texi: Document the change of
28011 -minline-all-stringops.
28013 2019-05-01 Jeff Law <law@redhat.com>
28015 PR tree-optimization/88797
28016 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28017 PHI feeds a conditional on the RHS of an assignment.
28019 2019-04-30 Andrew Waterman <andrew@sifive.com>
28020 Jim Wilson <jimw@sifive.com>
28022 * config/riscv/constraints.md (L): New.
28023 * config/riscv/predicates.md (lui_operand): New.
28024 (sfb_alu_operand): New.
28025 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28026 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28027 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28028 * config/riscv/risc.md (type): Add sfb_alu.
28029 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28030 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28031 (branch_zero<mode>): Delete.
28032 (mov<mode>cc): New.
28033 (mov<GPR:mode><X:mode>cc): Likewise.
28034 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28036 2019-04-30 Nathan Sidwell <nathan@acm.org>
28038 * tree.h (MARK_TS_EXP): New.
28040 2019-04-30 Martin Liska <mliska@suse.cz>
28042 * opts.c (enable_warning_as_error): Provide hints
28043 for unknown options.
28045 2019-04-30 Martin Liska <mliska@suse.cz>
28048 * doc/invoke.texi: Add missing dash for gas-locview-support
28049 and gno-as-locview-support.
28051 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28054 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28055 whitespace at the start of target attribute string.
28057 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28060 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28061 Define __ARM_FEATURE_ATOMICS.
28063 2019-04-30 Martin Liska <mliska@suse.cz>
28065 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28066 into built_in_function enum. Remove code for endp == 2 and
28067 use BUILT_IN_* constants.
28068 (gimple_fold_builtin): Call the function with fcode.
28070 2019-04-30 Martin Liska <mliska@suse.cz>
28072 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28073 DECL_FUNCTION_CODE into ix86_builtins enum before
28074 the switch statement.
28076 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28078 PR tree-optimization/89475
28079 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28082 2019-04-30 Martin Liska <mliska@suse.cz>
28084 PR translation/90274
28085 * opts.c (print_filtered_help): Wrap string in _(...).
28087 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28089 PR tree-optimization/90240
28091 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28093 PR tree-optimization/90078
28094 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28095 checks for infinite_cost overflow.
28097 2019-04-29 Jeff Law <law@redhat.com>
28099 * passes.def: Move -Wrestrict pass after copy propagation.
28101 2019-04-29 Maya Rashish <coypu@sdf.org>
28103 * config.gcc (default_gnu_indirect_function): Default to yes
28104 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28105 sparc*-*-netbsd*, x86_64-*-netbsd*.
28107 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28109 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28110 where cond2 is NE_EXPR.
28111 (is_value_included_in): Update comment.
28113 2019-04-29 Richard Biener <rguenther@suse.de>
28115 PR tree-optimization/90278
28116 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28117 EH on comparison simplification.
28119 2019-04-29 Jason Merrill <jason@redhat.com>
28121 PR c++/82081 - tail call optimization breaks noexcept
28122 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28123 nothrow function to a might-throw function into a tail call.
28125 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28127 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28128 (DDR_INNER_LOOP): Likewise.
28129 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28130 (initialize_data_dependence_relation): Likewise.
28131 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28133 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28135 PR rtl-optimization/90257
28136 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28140 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28144 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28147 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28150 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28152 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28154 2019-04-29 Richard Biener <rguenther@suse.de>
28156 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28159 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28161 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28162 varasm.h, and netbsd-protos.h.
28164 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28167 * config/i386/i386-protos.h (ix86_data_alignment): Change
28168 the second argument type to unsigned int.
28169 * config/i386/i386.c (ix86_data_alignment): Change "align"
28170 argument type to unsigned int.
28172 2019-04-27 Martin Liska <mliska@suse.cz>
28174 PR middle-end/90258
28175 * opt-suggestions.c (option_proposer::build_option_suggestions):
28176 When get_valid_option_values returns empty values, add the
28177 misspelling candidate.
28179 2019-04-26 Jim Wilson <jimw@sifive.com>
28181 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28183 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28184 Pass orig_mode to riscv_build_integer.
28185 (riscv_split_integer): Pass mode to riscv_move_integer.
28186 (riscv_legitimize_const_move): Likewise.
28187 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28188 promoted_mode. Replace force_reg call with code to load constant into
28189 promoted reg and then subreg it for the store.
28190 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28191 riscv_move_integer.
28193 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28195 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28198 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28200 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28201 commentary about the encoding of precision.
28203 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28205 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28206 * config/i386/t-freebsd64: New file.
28207 * config.gcc: Add the t-freebsd64 for multilib support.
28209 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28211 * doc/extend.texi (vector_size): Add missing comma after @xref.
28213 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28215 * BASE-VER: Set to 10.0.0.
28217 2019-04-25 Richard Biener <rguenther@suse.de>
28219 PR middle-end/89765
28220 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28221 VIEW_CONVERT_EXPR into one operating on an rvalue.
28223 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28226 * config/i386/i386.c (feature_priority): Moved to file scope.
28227 (processor_features): Likewise.
28228 (processor_model): Likewise.
28229 (_arch_names_table): Likewise.
28230 (arch_names_table): Likewise.
28231 (_feature_list): Removed.
28232 (feature_list): Likewise.
28233 (_isa_names_table): Moved to file scope. Add priority.
28234 (isa_names_table): Likewise.
28235 (get_builtin_code_for_version): Replace feature_list with
28236 isa_names_table. Update error message for P_ZERO priority.
28238 2019-04-25 Richard Biener <rguenther@suse.de>
28240 * tree-pass.h (make_pass_phi_only_cprop): Remove.
28241 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28243 2019-04-24 Jeff Law <law@redhat.com>
28245 PR tree-optimization/90037
28246 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28247 * passes.def: Replace all instance of phi-only cprop with the
28248 lattice propagator. Move propagation pass from after erroneous
28249 path isolation to before erroneous path isolation.
28250 * tree-ssa-phionlycprop.c: Remove.
28252 2019-04-24 Richard Biener <rguenther@suse.de>
28254 PR middle-end/90213
28255 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28256 by size and BITS_PER_UNIT on poly-wide-ints.
28258 2019-04-25 Richard Biener <rguenther@suse.de>
28260 PR middle-end/90194
28261 * match.pd: Add pattern to simplify view-conversion of an
28264 2019-04-24 Clement Chigot <clement.chigot@atos.net>
28266 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
28267 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
28268 for Go on 32 bit AIX.
28269 * config/rs6000/aix72.h: Likewise.
28271 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28274 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
28275 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
28277 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
28280 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
28281 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
28282 for restored hard frame pointer.
28283 (s390_sched_dependencies_evaluation): Implement new target hook.
28284 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
28286 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
28288 * config/arc/arc-options.def: Fix typos and spelling mistakes.
28289 * config/arc/arc.c (arc_init): Cleanup warning message.
28290 (arc_override_options): Likewise.
28292 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28295 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
28296 a register if both if_true and if_false are MEMs.
28298 PR tree-optimization/90208
28299 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
28300 after labels of new_bb, not before them.
28302 PR tree-optimization/90211
28303 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
28304 which are not SSA_NAMEs.
28306 2018-04-23 Sudakshina Das <sudi.das@arm.com>
28308 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
28310 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
28312 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28314 PR rtl-optimization/87979
28315 * modulo-sched.c (sms_schedule): Start ii value "mii" should
28318 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28320 PR rtl-optimization/84032
28321 * modulo-sched.c (ps_insn_find_column): Change condition so that
28322 branch will always be the last insn in a row inside partial
28325 2019-04-23 Richard Biener <rguenther@suse.de>
28328 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
28329 dest_single_pred_p argument.
28330 (remove_forwarder_block): Adjust.
28331 (remove_forwarder_block_with_phi): Likewise.
28333 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28334 Bernd Edlinger <bernd.edlinger@hotmail.de>
28335 Jakub Jelinek <jakub@redhat.com>
28338 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
28339 if used with general-regs-only.
28340 (arm_conditional_register_usage): Don't add non-general regs if
28342 (arm_valid_target_attribute_rec): Handle general-regs-only.
28343 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
28345 (TARGET_HARD_FLOAT_SUB): Define.
28346 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
28347 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
28348 (TARGET_REALLY_IWMMXT2): Likewise.
28349 * config/arm/arm.opt: Add -mgeneral-regs-only.
28350 * doc/extend.texi: Document ARM general-regs-only target.
28351 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
28353 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28355 PR tree-optimization/90078
28356 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28357 checks for infinite_cost overflow.
28359 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28361 PR tree-optimization/90021
28362 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
28363 and check univariate against it.
28364 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
28365 * tree-data-ref.c (add_other_self_distances): Pass new argument.
28367 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28371 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28374 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28377 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28379 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28381 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
28383 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
28384 names using operand format, rather than hard-wired.
28385 (speculation_barrier): Likewise.
28387 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
28389 PR tree-optimization/88055
28390 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
28391 (gen_one_condition): Use it if !HONOR_NANS.
28393 2019-04-19 Jakub Jelinek <jakub@redhat.com>
28395 PR middle-end/90139
28396 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
28397 assign_temp instead of gen_reg_rtx.
28399 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
28401 PR translation/90118
28402 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28403 Add missing space before %<.
28405 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
28407 PR rtl-optimization/87871
28408 * ira-lives.c (make_object_dead): Don't add conflicts to
28409 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
28411 2019-04-18 Martin Sebor <msebor@redhat.com>
28413 PR middle-end/89797
28414 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
28415 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
28416 assuming type size fits in SHWI.
28418 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
28421 * ipa-inline.c (flatten_function): New parameter UPDATE.
28422 (ipa_inline, early_inliner): Use it.
28424 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28426 * fold-const.c (int_const_binop): Return early on failure.
28428 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28430 PR middle-end/85164
28431 * combine.c (force_int_to_mode): Cast the argument rather than
28432 the result of known_alignment.
28433 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
28435 2019-04-18 Richard Biener <rguenther@suse.de>
28438 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
28440 (remove_forwarder_block): ... here.
28441 (remove_forwarder_block_with_phi): Also move debug stmts here.
28443 2019-04-18 Jakub Jelinek <jakub@redhat.com>
28445 PR translation/79183
28446 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
28447 inform where appropriate.
28449 2019-04-18 Richard Biener <rguenther@suse.de>
28451 * tree.c (get_qualified_type): Put found type variants at the
28452 head of the variant list.
28454 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28456 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
28458 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
28461 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
28462 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
28463 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
28464 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
28465 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
28467 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
28469 * ira-conflicts.c (print_allocno_conflicts): Always print something,
28470 even for allocno's with no conflicts.
28471 (print_conflicts): Print an extra newline.
28473 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28475 * auto-inc-dec.c (attempt_change): Set the alignment of the
28476 temporary memory to that of the original.
28478 2019-04-17 Joao Moreira <jmoreira@suse.de>
28480 * targhooks.c (default_print_patchable_function_entry): Emit
28481 __patchable_function_entries section with writable flags to allow
28482 relocation resolution.
28484 2019-04-17 Jonny Grant <jg@jguk.org>
28486 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
28488 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28490 PR middle-end/90095
28491 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
28492 on lowpart SUBREGs.
28494 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
28496 * config/arc/arc.c (arc_init): Format diagnostic string.
28497 (arc_override_options): Likewise.
28498 (check_if_valid_regno_const): Likewise.
28499 (arc_reorg): Likewise.
28501 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28504 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
28506 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
28508 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
28509 (*movdi_update1): Use Pmode.
28510 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
28511 (movdi_<mode>_update_stack): Rename to ...
28512 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
28514 (*movsi_update1): Use Pmode.
28515 (*movsi_update2): Use Pmode.
28516 (movsi_update): Rename to ...
28517 (movsi_<mode>_update): ... this. Use Pmode.
28518 (movsi_update_stack): Fix condition.
28519 (*movhi_update1): Use Pmode. Fix argument to
28520 avoiding_indexed_address_p.
28521 (*movhi_update2): Ditto.
28522 (*movhi_update3): Ditto.
28523 (*movhi_update4): Ditto.
28524 (*movqi_update1): Ditto.
28525 (*movqi_update2): Ditto.
28526 (*movqi_update3): Ditto.
28527 (*movsf_update1, *movdf_update1): Merge, rename to...
28528 (*mov<mode>_update1): This. Use Pmode. Fix argument to
28529 avoiding_indexed_address_p. Add "size" attribute.
28530 (*movsf_update2, *movdf_update2): Merge, rename to...
28531 (*mov<mode>_update2): This. Ditto.
28532 (*movsf_update3): Use Pmode. Fix argument to
28533 avoiding_indexed_address_p.
28534 (*movsf_update4): Ditto.
28535 (allocate_stack): Simplify condition. Adjust pattern names.
28537 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28540 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
28541 whitespace at the start of target attribute string.
28543 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
28546 * config/rs6000/power9.md: Add store forwarding bypass.
28548 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
28551 * valtrack.c (dead_debug_insert_temp): Reset debug references
28552 to the return value of a call being removed.
28554 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28556 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
28557 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
28558 implement target hook.
28559 (arc_memory_move_cost): New function.
28560 (TARGET_REGISTER_MOVE_COST): Define.
28561 (TARGET_MEMORY_MOVE_COST): Likewise.
28562 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
28563 (MEMORY_MOVE_COST): Likewise.
28565 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28567 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
28568 (sibcall_value_insn): Likewise.
28569 * config/arc/constraints.md (Rs5): Remove.
28571 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28573 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
28574 for last two fake registers.
28575 (arc_conditional_register_usage): Make sure fake frame and arg
28576 pointer regs are in general regs class.
28577 (FRAME_POINTER_MASK): Remove.
28578 (RETURN_ADDR_MASK): Remove.
28579 (arc_must_save_register): Use hard frame regnum.
28580 (frame_restore_reg): Use hard_frame_pointer_rtx.
28581 (arc_save_callee_saves): Likewise.
28582 (arc_restore_callee_saves): Likewise.
28583 (arc_save_callee_enter): Likewise.
28584 (arc_restore_callee_leave): Likewise.
28585 (arc_save_callee_milli): Likewise.
28586 (arc_eh_return_address_location): Likewise.
28587 (arc_check_multi): Use hard frame regnum.
28588 (arc_can_eliminate): Likewise.
28589 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
28590 for register allocator.
28591 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
28592 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
28593 (FRAME_POINTER_REGNUM): Change it to a fake register.
28594 (HARD_FRAME_POINTER_REGNUM): Defined.
28595 (ARG_POINTER_REGNUM): Change it to a new fake register.
28596 (ELIMINABLE_REGS): Update.
28597 (REGISTER_NAMES): Update names.
28598 * config/arc/arc.md (LP_START): Remove.
28599 (LP_END): Likewise.
28600 (shift_si3_loop): Update pattern.
28602 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28604 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
28605 to avoid delay slot scheduling.
28606 (arc_must_save_register): Don't save SP.
28607 * config/arc/arc.md (stack_tie): Remove.
28608 (UNSPEC_ARC_STKTIE): Likewise.
28610 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
28611 Shiva Chen <shiva0217@gmail.com>
28613 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
28614 code gen with large shift amount.
28616 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
28618 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
28621 2019-04-16 Jakub Jelinek <jakub@redhat.com>
28624 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
28625 print -m64/-mx32/-m32 if it is true.
28626 (ix86_debug_options, ix86_function_specific_print): Pass true as
28627 ADD_ABI_P to ix86_target_string.
28628 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
28629 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
28630 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
28632 PR rtl-optimization/90082
28633 * dce.c (can_delete_call): New function.
28634 (deletable_insn_p, mark_insn): Use it.
28636 PR tree-optimization/90090
28637 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
28639 (is_division_by_square): Likewise. Formatting fix.
28641 2019-04-16 Richard Biener <rguenther@suse.de>
28643 PR tree-optimization/56049
28644 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
28645 equality check if alias-set zero will prevail.
28647 2019-04-15 Jeff Law <law@redhat.com>
28649 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
28650 size and alignment as unsigned.
28652 2019-04-15 Richard Biener <rguenther@suse.de>
28655 * tree-loop-distribution.c (destroy_loop): Preserve correct
28658 2019-04-15 Richard Biener <rguenther@suse.de>
28660 PR tree-optimization/90071
28661 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
28662 abnormal operands from def stmts.
28664 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
28666 PR rtl-optimization/89794
28667 * combine.c (count_auto_inc): New function.
28668 (try_combine): Count how many auto_inc expressions there were in the
28669 original instructions. Ensure we have the same number in the new
28670 instructions. Remove the code that tried to ensure auto_inc side
28671 effects on i1 and i0 are not lost.
28673 2019-04-15 Richard Biener <rguenther@suse.de>
28676 * tree.h (auto_var_p): Declare.
28677 * tree.c (auto_var_p): New function, split out from ...
28678 (auto_var_in_fn_p): ... here.
28679 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
28681 (new_var_info): Initialize it.
28682 (set_uids_in_ptset): Also set the shadow variable uid if required.
28683 (ipa_pta_execute): Postprocess points-to solutions assigning
28684 shadow variable uids for locals that may reach their containing
28685 function recursively.
28686 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
28687 assert but instead check whether the points-to solution is
28690 2019-04-15 Martin Jambor <mjambor@suse.cz>
28693 * cgraph.c (clone_of_p): Loop over clone chain for each step in
28696 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28698 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
28700 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28701 Kito Cheng <kito.cheng@gmail.com>
28702 Shiva Chen <shiva0217@gmail.com>
28704 * config/nds32/nds32-md-auxiliary.c
28705 (nds32_legitimize_pic_address): Use new PIC pattern.
28706 (nds32_legitimize_tls_address): Use new TLS pattern.
28707 (nds32_output_symrel): New.
28708 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
28709 (nds32_alloc_relax_group_id): Ditto.
28710 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
28711 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
28713 (nds32_group_tls_insn): Ditto.
28714 (nds32_group_float_insns): Ditto.
28715 * config/nds32/nds32.md (tls_le): New.
28718 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
28720 * configure: Add nds32 target for dwarf2 debug_line checking.
28721 * configure.ac: Regenerated.
28723 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
28726 * ipa-devirt.c (skip_in_fields_list_p): New.
28727 (odr_types_equivalent_p): Use it.
28729 2019-04-13 Jakub Jelinek <jakub@redhat.com>
28732 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
28733 instead of strncmp when checking for thumb and arm. Formatting fixes.
28735 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
28737 * doc/install.texi: Document --with-target-system-zlib.
28739 2019-04-12 Martin Sebor <msebor@redhat.com>
28745 * targhooks.c (default_vector_alignment): Avoid assuming
28746 argument fits in SHWI.
28747 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
28748 a shift expression.
28749 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
28751 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28753 PR rtl-optimization/89965
28754 * dce.c: Include rtl-iter.h.
28755 (struct check_argument_load_data): New type.
28756 (check_argument_load): New function.
28757 (find_call_stack_args): Check for loads from stack slots still tracked
28758 in sp_bytes and punt if any is found.
28760 * config/mips/loongson-mmiintrin.h: Fix up #error message.
28762 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
28764 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
28765 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
28767 2019-04-12 Martin Liska <mliska@suse.cz>
28769 PR middle-end/89970
28770 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
28772 (separate_attrs): Handle multiple 'default's.
28773 (expand_target_clones): Rework error handling code.
28775 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
28778 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
28779 mode of vector rather than mode of destination for move instruction.
28780 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
28781 Use QI inner mode with V16QI vector mode.
28783 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28786 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
28787 "invalid %%t operand" in output_operand_lossage message.
28789 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
28791 * config/s390/predicates.md (permute_pattern_operand): New
28793 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
28794 operand for the permute pattern.
28795 ("*vec_perm<mode>"): New insn definition.
28796 ("bswap<mode>"): Generate the permute pattern operand in the
28797 expander and perform the operand reloads for pre arch13 level
28799 ("*bswap<mode>_emu"): Rename to ...
28800 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
28801 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
28802 Add the USE operand for the permute pattern.
28803 ("*vec_set_bswap_vec<mode>"): Likewise.
28805 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28808 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
28809 and gcc_unreachable if it fails, just call tree_to_uhwi which
28810 verifies that too. Test TREE_CHAIN instead of list_length > 1.
28811 Start warning message with a lower-case letter. Formatting fixes.
28813 PR rtl-optimization/90026
28814 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
28815 successors, look for BARRIERs inside of the whole BB_FOOTER chain
28816 rather than just at the start of it. If e->src BB_FOOTER is not NULL
28817 in cfglayout mode, use emit_barrier_after_bb.
28819 2018-04-11 Steve Ellcey <sellcey@marvell.com>
28821 PR rtl-optimization/87763
28822 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
28825 2019-04-11 Tom de Vries <tdevries@suse.de>
28827 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
28828 max macro using statement expression.
28830 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
28832 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
28833 * xcoffout.c (xcoff_private_rodata_section_name): Define.
28834 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
28835 read_only_private_data_section using xcoff_private_rodata_section_name.
28836 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
28838 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
28841 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
28843 2019-04-11 Jakub Jelinek <jakub@redhat.com>
28845 PR rtl-optimization/89965
28846 * dce.c (sp_based_mem_offset): New function.
28847 (find_call_stack_args): Use sp_based_mem_offset.
28849 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
28851 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
28853 2019-04-11 Richard Biener <rguenther@suse.de>
28855 PR tree-optimization/90020
28856 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
28857 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
28858 * tree-ssa-pre.c (compute_avail): Use it to not put
28859 possibly trapping references after a call that might not
28860 return into EXP_GEN.
28861 * gcse.c (compute_hash_table_work): Do not elide
28862 marking a block containing a call if the call might not
28865 2019-04-11 Richard Biener <rguenther@suse.de>
28867 PR tree-optimization/90018
28868 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
28869 Test both SLP and interleaving variants.
28871 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
28873 * config/s390/8561.md: New file.
28874 * config/s390/driver-native.c (s390_host_detect_local_cpu):
28875 Add arch13 cpu model.
28876 * config/s390/s390-opts.h (enum processor_type): Likewise.
28877 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
28878 (s390_get_unit_mask): Likewise.
28879 (s390_is_fpd): Likewise.
28880 (s390_is_fxd): Likewise.
28881 * config/s390/s390.h (s390_tune_attr): Likewise.
28882 * config/s390/s390.md: Include arch13 pipeline description.
28883 * config/s390/s390.opt: Add arch13.
28885 2018-04-10 Steve Ellcey <sellcey@marvell.com>
28887 PR rtl-optimization/87763
28888 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
28890 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
28892 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
28894 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
28895 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
28896 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
28897 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
28899 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
28901 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
28902 "Although" in -fipa-icf documentation.
28904 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
28905 of using multiple -g options.
28907 2019-04-10 Martin Liska <mliska@suse.cz>
28909 PR gcov-profile/89959
28910 * doc/gcov.texi: Make documentation of -x option
28913 2019-04-10 Richard Biener <rguenther@suse.de>
28915 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
28917 (DR_GROUP_SAME_DR_STMT): Remove.
28918 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
28919 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
28920 replace with assert.
28921 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
28922 (vect_record_grouped_load_vectors): Remove unreachable code.
28924 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
28927 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
28928 obsolete reference to N.
28930 2019-04-10 Jakub Jelinek <jakub@redhat.com>
28932 PR middle-end/90025
28933 * expr.c (store_expr): Set properly size on the MEM passed to
28937 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
28938 with strlen in between hostsz-3 and hostsz-1 inclusive when no
28939 translation is needed, and when translation is needed, only append
28940 ... if the string length is hostsz or more bytes long. Avoid using
28943 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
28946 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
28947 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
28949 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
28950 differences directly.
28951 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
28953 2019-04-09 Jakub Jelinek <jakub@redhat.com>
28955 PR translation/90011
28956 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
28958 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
28960 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
28961 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
28962 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
28963 trailing space from -gsplit-dwarf diagnostics.
28965 PR tree-optimization/89998
28966 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
28967 instead of integer_type_node if possible, don't add ranges if return
28968 type is not compatible with int.
28969 * gimple-fold.c (gimple_fold_builtin_sprintf,
28970 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
28973 2019-04-09 Martin Liska <mliska@suse.cz>
28975 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
28976 * doc/install.texi: Document the new config.
28978 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
28980 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
28981 use gimple_expr_type for load and store calls. Skip over the
28982 condition argument in a conditional internal function.
28983 Protect use of TREE_INT_CST_LOW.
28985 2019-04-09 Jakub Jelinek <jakub@redhat.com>
28988 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
28989 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
28990 trailing period from it too.
28992 2019-04-08 wu yuan <wuyuan5@huawei.com>
28994 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
28995 * config/aarch64/aarch64.md: Add "tsv110.md".
28996 * config/aarch64/tsv110.md: New file.
28998 2019-04-08 Richard Biener <rguenther@suse.de>
29000 PR tree-optimization/90006
29001 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29004 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29007 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29009 (fma_root_node): Likewise.
29010 (func_fma_steering): Likewise.
29012 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29014 PR rtl-optimization/89865
29015 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29017 PR rtl-optimization/89865
29018 * config/i386/i386.md
29019 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29020 numbers not to clash with the additional operands[4].
29021 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29022 with extra register copy in the middle.
29024 2019-04-08 Martin Liska <mliska@suse.cz>
29026 PR gcov-profile/89961
29027 * doc/gcov.texi: Document data_file.
29028 * gcov.c (generate_results): Add data_info into JSON output.
29030 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29032 PR tree-optimization/89725
29033 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29034 loop's chrec as invariant symbol.
29035 * tree-chrec.h (chrec_contains_symbols): New parameter.
29036 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29037 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29038 function of loops not in DDR's loop_nest.
29039 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29041 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29044 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29047 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29050 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29051 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29053 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29055 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29056 targetm.fixed_condition_code_regs.
29058 2019-04-05 Richard Biener <rguenther@suse.de>
29062 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29063 debug bind stmts but reset them if they are not valid at the
29066 2019-04-05 Martin Liska <mliska@suse.cz>
29068 PR translation/89936
29069 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29070 order to wrap keywords or arguments.
29071 * collect2.c (main): Likewise.
29072 (scan_prog_file): Likewise.
29073 (scan_libraries): Likewise.
29074 * common/config/riscv/riscv-common.c
29075 (riscv_subset_list::parsing_subset_version): Likewise.
29076 (riscv_subset_list::parse_std_ext): Likewise.
29077 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29079 * config/arm/arm.c (arm_option_override): Likewise.
29080 * config/cris/cris.c (cris_print_operand): Likewise.
29081 * config/darwin-c.c (darwin_pragma_options): Likewise.
29082 (darwin_pragma_unused): Likewise.
29083 (darwin_pragma_ms_struct): Likewise.
29084 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29085 * config/i386/i386.c (print_reg): Likewise.
29086 (ix86_print_operand): Likewise.
29087 * config/i386/xm-djgpp.h: Likewise.
29088 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29089 * config/m32c/m32c.c (m32c_option_override): Likewise.
29090 * config/msp430/msp430.c (msp430_option_override): Likewise.
29091 * config/nds32/nds32.c (nds32_option_override): Likewise.
29092 * config/nvptx/mkoffload.c (main): Likewise.
29093 * config/rx/rx.c (rx_print_operand): Likewise.
29094 (valid_psw_flag): Likewise.
29095 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29096 (vms_pragma_nomember_alignment): Likewise.
29097 (vms_pragma_extern_model): Likewise.
29098 * lto-wrapper.c (compile_offload_image): Likewise.
29099 * omp-offload.c (oacc_parse_default_dims): Likewise.
29100 * symtab.c (symtab_node::verify_base): Likewise.
29101 * tlink.c (recompile_files): Likewise.
29102 (start_tweaking): Likewise.
29103 * tree-profile.c (parse_profile_filter): Likewise.
29105 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29107 PR tree-optimization/89956
29108 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29109 multiple negates of the same value.
29111 2019-04-04 Martin Sebor <msebor@redhat.com>
29113 PR middle-end/89957
29114 PR middle-end/89911
29115 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29116 have the same precision since the function crashes otherwise.
29117 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29118 has non-zero arguments.
29120 2019-04-04 Martin Sebor <msebor@redhat.com>
29122 PR middle-end/89934
29123 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29124 out if the number of arguments is less than expected.
29126 2019-04-04 Jeff Law <law@redhat.com>
29128 PR rtl-optimization/89399
29129 * ree.c (combine_set_extension): Use single_set rather than
29130 digging into PATTERN for items on the candidate list.
29131 (combine_reaching_defs): Likewise.
29133 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29135 PR rtl-optimization/46590
29136 * loop-invariant.c (find_defs): Move df_remove_problem and
29137 df_process_deferred_rescans to move_invariants.
29138 Move df_live_add_problem and df_live_set_all_dirty calls
29139 to move_invariants.
29140 (move_invariants): Likewise.
29141 (move_loop_invariants): Likewise, making the df_live calls
29142 conditional on -O. Remove the problem again if we added it
29145 2019-04-03 qing zhao <qing.zhao@oracle.com>
29147 PR tree-optimization/89730
29148 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29149 -flive-patching=inline-only-static.
29150 (can_inline_edge_by_limits_p): Add the checking for
29151 -flive-patching=inline-only-static and grant always_inline
29152 even when -flive-patching=inline-only-static is specified.
29154 2019-04-03 Jeff Law <law@redhat.com>
29156 PR rtl-optimization/81025
29157 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29159 2019-04-03 Richard Biener <rguenther@suse.de>
29161 PR tree-optimization/84101
29162 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29163 regs.h for hard_regno_nregs.
29164 (cfun_returns): New helper.
29165 (vect_model_store_cost): When vectorizing a store to a decl
29166 we return and the function ABI returns in a multi-reg location
29167 account for the possible spilling that will happen.
29169 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29171 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29172 displacement addresses for vector mode operands.
29174 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29176 * config/arc/arc.c (GMASK_LEN): Define.
29177 (arc_restore_callee_saves): Restore first blink when
29180 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29182 * doc/extend.texi: Add deprecated comment on sign-return-address
29183 function attribute and add mbranch-protection.
29184 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29186 2019-04-03 Richard Biener <rguenther@suse.de>
29189 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29190 the all target phony.
29192 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29196 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29197 Return false for variable DImode shifts.
29198 (dimode_scalar_chain::compute_convert_gain): Do not handle
29199 register count operand in variable DImode shifts.
29200 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29201 count argument of a variable shift instruction to a vector register.
29202 (dimode_scalar_chain::convert_reg): Remove support to convert
29203 count argument of a variable shift instruction.
29205 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29207 PR rtl-optimization/84206
29208 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29209 iterating over loop headers.
29211 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29213 PR rtl-optimization/85876
29214 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29215 beyond the original fence.
29217 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29219 * config.gcc: Mark spu* targets as deprecated/obsolete.
29221 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29223 * config/s390/s390-builtin-types.def: New builtin function type
29224 definitions. Remove unused types.
29225 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29226 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29227 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29228 overloaded builtins.
29229 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29230 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29231 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29232 (vec_double, vec_signed, vec_unsigned): Define to use the new
29233 overloaded builtins.
29234 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29237 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29239 * config/s390/s390-builtin-types.def: New builtin function type
29241 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29242 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29243 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29244 (s390_vstrszh, s390_vstrszf): New low-level builtins.
29245 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29246 constant definitions.
29247 * config/s390/vecintrin.h (vec_search_string_cc)
29248 (vec_search_string_until_zero_cc): New builtin name definitions.
29249 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29251 ("vec_vstrs<mode>"): New insn definition.
29253 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29255 * config/s390/s390-builtin-types.def: Add new builtin function
29257 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29258 New overloaded builtins.
29259 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
29261 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
29262 (UNSPEC_VEC_SLDBYTE): ... this.
29263 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
29264 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
29266 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
29267 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
29268 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
29270 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29272 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
29273 New insn definition.
29274 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
29275 * config/s390/vector.md (V_HW_HSD): ... here.
29277 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29279 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
29280 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
29281 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
29282 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
29283 New insn definitions.
29285 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29287 * config/s390/s390-builtin-types.def: Add new builtin function type.
29288 * config/s390/s390-builtins.def: Add overloaded builtin
29289 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
29290 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
29291 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
29292 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
29293 ("eltswap<mode>"): New expander.
29294 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
29297 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29299 * config/s390/s390-builtin-types.def: Add new builtin function types.
29300 * config/s390/s390-builtins.def: Add overloaded builtin
29301 s390_vec_revb. Add low-level builtins for vlbr and vstbr
29303 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
29304 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
29305 ("bswap<mode>"): New expander.
29306 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
29308 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29310 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
29311 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
29312 vector builtin version number in __VEC__.
29314 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29316 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
29318 (SFSI): New mode attribute.
29319 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
29320 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
29322 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
29323 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
29324 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
29325 ("floatsi<mode>2"): Add wcefb instruction.
29327 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29329 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
29330 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
29332 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
29333 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
29334 support 32 bit fp-int conversions. Rename to ...
29335 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29336 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29337 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
29338 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
29341 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29343 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
29344 if-then-else constructs if we can use the select instruction.
29345 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
29347 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29349 * config/s390/s390.md ("*popcountdi_arch13_cc")
29350 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
29352 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
29353 Append _z196 to make it ...
29354 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
29355 ("popcounthi2_z196"): ... this.
29356 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
29357 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
29359 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29361 * config/s390/s390.c (s390_canonicalize_comparison): Convert
29362 certain compares for arch13 in order to make use of the condition
29363 code result produced by the new instructions.
29364 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
29365 nxrk, and nxgrk instruction patterns.
29366 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
29367 (inv_no): Add new code iterator together with some attributes.
29368 ("*andc_split_<mode>"): Disable splitter for arch13.
29369 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
29370 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
29371 ("*<ANDOR:bitops_name>c<GPR:mode>")
29372 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
29373 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
29374 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
29375 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
29377 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29379 * common/config/s390/s390-common.c (processor_flags_table): New
29381 * config.gcc: Support arch13 with the --with-arch= configure flag.
29382 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29383 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
29384 * config/s390/s390.c (s390_get_sched_attrmask)
29385 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
29386 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
29387 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
29388 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
29389 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
29391 * config/s390/s390.opt: Support arch13 as processor type in
29392 command line options.
29394 2019-04-02 Martin Liska <mliska@suse.cz>
29396 PR translation/89912
29397 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
29398 Fix param description of graphite-max-arrays-per-scop.
29400 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
29402 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
29403 (ASAN_CC1_SPEC): Use it in 64-bit mode.
29404 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
29406 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29408 PR rtl-optimization/85412
29409 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
29410 sel_sched_region_1, not after.
29412 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29414 PR rtl-optimization/86928
29415 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
29416 compute_live if necessary.
29417 (sel_redirect_edge_and_branch): Likewise.
29419 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
29421 PR rtl-optimization/89865
29422 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
29423 register if it is a part of small class.
29425 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29427 PR rtl-optimization/87273
29428 * sel-sched-ir.c (merge_fences): Remove assert.
29430 2019-04-01 Richard Biener <rguenther@suse.de>
29432 PR tree-optimization/46590
29433 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
29434 (dom_walker::m_reachability): Add in place of...
29435 (dom_walker::m_skip_unreachable_blocks): ...this.
29436 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
29437 Move complex initialization ...
29438 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
29439 lazily and initialize edge flags on each invocation.
29440 (dom_walker::bb_reachable): Use m_reachability.
29442 2019-04-01 Martin Liska <mliska@suse.cz>
29445 * opt-suggestions.c (option_proposer::build_option_suggestions):
29446 Add variant without any argument in order to provide better
29449 2019-04-01 Richard Biener <rguenther@suse.de>
29452 * gimple.c: Include langhooks.h.
29453 (gimple_get_alias_set): Treat enumeral types as the underlying
29456 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
29457 Eric Botcazou <ebotcazou@adacore.com>
29459 PR rtl-optimization/89862
29460 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
29461 that operates on the full registers for WORD_REGISTER_OPERATIONS
29464 2019-03-29 Jim Wilson <jimw@sifive.com>
29466 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
29467 Clear MASK_RVC and then set if C subset supported.
29469 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29472 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
29473 non-addressable complit into its initializer if it is volatile.
29475 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
29477 * opts-common.c (integral_argument): Set errno properly in one case.
29479 2019-03-29 Martin Liska <mliska@suse.cz>
29481 * doc/invoke.texi: Remove -Wchkp from documentation.
29483 2019-03-29 Martin Liska <mliska@suse.cz>
29485 * dbgcnt.c (print_limit_reach): New function.
29488 2019-03-29 Martin Liska <mliska@suse.cz>
29490 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
29491 (dbg_cnt_process_opt): Parse first tokens aas
29492 dbg_cnt_process_single_pair is also using strtok.
29494 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29496 PR rtl-optimization/87485
29497 * function.c (expand_function_end): Move stack_protect_epilogue
29498 before loading of return value into hard register(s).
29500 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29502 PR middle-end/89621
29503 * tree-inline.h (struct copy_body_data): Add
29504 dont_remap_vla_if_no_change flag.
29505 * tree-inline.c (remap_type_3, remap_type_2): New functions.
29506 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
29507 and remap_type_2 returns false.
29508 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
29509 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
29510 only from where it is copied to nested contexts.
29512 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29515 * config/i386/i386.md (RMW operation with LEA peephole):
29516 Use LEAMODE mode attribute instead of SWI mode iterator for
29519 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29522 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
29523 Also process XEXP (src, 0) of a shift insn.
29525 2019-03-28 David Malcolm <dmalcolm@redhat.com>
29527 PR middle-end/89725
29528 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
29529 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
29531 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29533 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
29535 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
29536 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
29537 immediately after first one with df_analyze in between, but rather
29538 process all bbs, queueing ones that need second pass in a worklist,
29539 df_analyze, process queued debug insn changes and if second pass is
29540 needed, process bbs from worklist, df_analyze, process queued debug
29543 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
29544 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
29545 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
29547 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
29550 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
29553 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
29556 * config/i386/i386.c (ix86_function_value_1): Call the newly added
29557 function for 32-bit MS_ABI.
29558 (function_value_ms_32): New function.
29560 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
29562 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
29563 (movdi): Call gen_movdi_symbol_save_scc.
29564 (gen_movdi_symbol_save_scc): New insn and split.
29566 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
29568 PR rtl-optimization/89313
29569 * function.c (matching_constraint_num): New static function.
29570 (match_asm_constraints_1): Use it. Fixup white space and comment.
29571 Don't replace inputs with non-matching constraints which conflict
29572 with early clobber outputs.
29574 2019-03-27 Jeff Law <law@redhat.com>
29576 PR rtl-optimization/87761
29577 PR rtl-optimization/89826
29578 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
29580 (pass_cprop_hardreg::execute): Call df_analyze after adding the
29581 note problem to get REG_DEAD/REG_UNUSED notes updated.
29583 2019-03-27 Richard Biener <rguenther@suse.de>
29585 PR tree-optimization/89463
29586 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
29587 queue edges to remove.
29588 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
29589 dead stmts. Delay edge removal until PHIs are removed to
29590 make debug-stmt creation not confused by seemingly degenerate
29593 2019-03-27 Alan Modra <amodra@gmail.com>
29595 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
29597 * config/rs6000/darwin.h: Likewise.
29598 * config/rs6000/rs6000.c: Likewise.
29600 2019-03-27 Alan Modra <amodra@gmail.com>
29602 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
29603 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
29605 2019-03-26 Andrew Waterman <andrew@sifive.com>
29606 Jim Wilson <jimw@sifive.com>
29608 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
29609 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
29610 (generic_idivdi, generic_fmul_single, generic_fmul_double)
29611 (generic_fdiv, generic_fsqrt): Add check for generic tune.
29612 (generic_alu): Add auipc to type list.
29613 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
29614 (riscv_microarchitecture): Declare.
29615 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
29616 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
29618 (riscv_microarchitecture): New.
29619 (sifive_7_tune_info): New.
29620 (riscv_cpu_info_table): Add microarchitecture value for rocket and
29621 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
29623 (riscv_store_data_bypass_p): New.
29624 (riscv_option_override): Set riscv_microarchitecture from
29625 cpu->microarchitecture.
29626 * config/riscv/riscv.md: Include sifive-7.md.
29629 (auipc<mode>): Change type to auipc.
29630 (restore_stack_nonlocal): New.
29631 * config/riscv/sifive-7.md: New.
29632 * doc/invoke.texi (RISC-V Options): Update mtune docs.
29634 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
29637 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
29638 Also process XEXP (src, 0) of a shift insn.
29640 2019-03-26 Richard Biener <rguenther@suse.de>
29642 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
29643 (copy_debug_stmt): Likewise.
29644 (expand_call_inline): Likewise.
29645 (copy_bb): Avoid redundant lookup & set of gimple_block.
29646 * gimple-low.c (lower_gimple_return): Likewise.
29647 (lower_builtin_setjmp): Likewise.
29649 2019-03-26 Jakub Jelinek <jakub@redhat.com>
29651 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
29652 is constant 0, turn into static const data member initialized to false.
29653 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
29654 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
29656 2019-03-26 Jason Merrill <jason@redhat.com>
29657 Jakub Jelinek <jakub@redhat.com>
29659 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
29661 (mem_alloc_description::release_object_overhead): Fix comment typos.
29662 * hash-table.h (hash_table::~hash_table): Call
29663 release_instance_overhead only if m_entries is non-NULL, otherwise
29664 call unregister_descriptor.
29666 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
29668 PR tree-optimization/81740
29669 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29670 In case of outer loop vectorization, check for backward dependence
29671 at the inner loop if outer loop dependence is reversed.
29673 2019-03-26 Alan Modra <amodra@gmail.com>
29675 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
29676 rs6000_vector_mem init. Correct wI and wJ comment.
29678 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
29680 PR rtl-optimization/88347
29681 PR rtl-optimization/88423
29682 * sched-deps.c (sched_analyze_insn): Take into account that for
29683 tablejumps the barrier appears after a label and a jump_table_data.
29685 2019-03-25 Martin Sebor <msebor@redhat.com>
29688 * c-common.c (check_user_alignment): Rename local. Correct maximum
29689 alignment in diagnostic. Avoid assuming argument fits in SHWI,
29690 convert it to UHWI when it fits.
29692 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
29695 * dwarf2out.c (premark_used_variables): New function.
29696 (prune_unused_types_walk): Do not mark not premarked external
29698 (prune_unused_types): Call premark_used_variables.
29700 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
29702 PR rtl-optimization/89676
29703 * lra-constraints.c (curr_insn_transform): Do match reload for
29704 early clobbers when the match was successful only for different
29707 2019-03-25 Martin Sebor <msebor@redhat.com>
29709 * doc/extend.texi (Common Type Attributes): Document vector_size.
29710 (Common Variable Attributes): Mention size constraint. Correct
29712 (Vector Extensions): Use @dfn when defining bas type. Clarify
29713 base type and size constraints.
29715 2019-03-25 Richard Biener <rguenther@suse.de>
29717 PR tree-optimization/89789
29718 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
29719 changes from non-undefined back to undefined.
29721 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
29723 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
29724 heap string and a gc string, but since this variable is unknown to
29725 ggc the gc string might get reused and corrupted. Fixed by always
29726 using a heap string.
29728 2019-03-25 Richard Biener <rguenther@suse.de>
29730 PR tree-optimization/89779
29731 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
29732 to remove IV defs, delay actual removal.
29733 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
29734 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
29735 very end, properly also reset loop control IV information.
29737 2019-03-25 Richard Biener <rguenther@suse.de>
29739 PR tree-optimization/89802
29740 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
29741 move EH data to folded stmt.
29743 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29745 * config/s390/s390-builtin-types.def: Remove few unused types and
29746 fix sort order for others.
29748 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29750 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
29751 expected and found types with -mdebug during builtin matching.
29753 2019-03-25 Richard Biener <rguenther@suse.de>
29755 PR middle-end/89790
29756 * fold-const.c (operand_equal_p): Revert last change with
29759 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
29761 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
29762 notes for the result of the __tls_get_addr calls.
29763 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
29765 2019-03-24 Jeff Law <law@redhat.com>
29767 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
29769 PR rtl-optimization/87761
29770 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
29771 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
29773 (pass_cprop_hardreg::execute): Add df note problem and defer insn
29774 rescans. Reprocess blocks as needed, calling df_analyze before
29775 reprocessing. Always call df_analyze before fixing up debug bind
29778 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
29780 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
29783 2019-03-22 Andrew Pinski <apinski@marvell.com>
29785 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
29786 attrribute for uxtw.
29788 2019-03-26 Jeff Law <law@redhat.com>
29790 PR rtl-optimization/87761
29791 * config/mips/mips-protos.h (mips_split_move): Add new argument.
29792 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
29793 (mips_split_move): Accept new INSN argument. Try to forward SRC
29794 into the next instruction.
29795 (mips_split_move_insn): Pass INSN through to mips_split_move.
29797 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
29799 PR rtl-optimization/89676
29800 * lra-constraints.c (curr_insn_transform): Do match reload for
29801 early clobbers even if the match was successful.
29803 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29806 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
29808 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
29810 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
29812 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29814 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
29815 <avx512>_fmsub_<mode>_mask3<round_name>,
29816 <avx512>_fnmadd_<mode>_mask3<round_name>,
29817 <avx512>_fnmsub_<mode>_mask3<round_name>,
29818 avx512f_vmfmadd_<mode>_mask3<round_name>,
29819 avx512f_vmfmsub_<mode>_mask3<round_name>,
29820 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
29821 instead of register_operand and %v instead of v for match_operand 1.
29822 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
29823 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
29824 <round_nimm_predicate> instead of register_operand and %v instead of v
29825 for match_operand 1.
29827 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
29828 <avx512>_fmadd_<mode>_mask3<round_name>,
29829 <avx512>_fmsub_<mode>_mask<round_name>,
29830 <avx512>_fmsub_<mode>_mask3<round_name>,
29831 <avx512>_fnmadd_<mode>_mask<round_name>,
29832 <avx512>_fnmadd_<mode>_mask3<round_name>,
29833 <avx512>_fnmsub_<mode>_mask<round_name>,
29834 <avx512>_fnmsub_<mode>_mask3<round_name>,
29835 <avx512>_fmaddsub_<mode>_mask<round_name>,
29836 <avx512>_fmaddsub_<mode>_mask3<round_name>,
29837 <avx512>_fmsubadd_<mode>_mask<round_name>,
29838 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
29839 <round_nimm_predicate> instead of nonimmediate_operand.
29840 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
29841 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
29842 Use register_operand instead of <round_nimm_predicate> for the
29843 operand that needs to match output.
29844 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
29845 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
29846 Likewise. Formatting fixes.
29849 * config/i386/i386.c (enum ix86_builtins): Remove
29850 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
29851 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
29852 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
29853 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
29854 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
29855 __builtin_ia32_vfmsubss3_mask3): New builtins.
29856 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
29857 avx512f_vmfmadd_<mode>_mask3<round_name>,
29858 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
29859 *avx512f_vmfmsub_<mode>_mask<round_name>,
29860 avx512f_vmfmsub_<mode>_mask3<round_name>,
29861 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
29862 *avx512f_vmfnmadd_<mode>_mask<round_name>,
29863 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
29864 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
29865 *avx512f_vmfnmsub_<mode>_mask<round_name>,
29866 avx512f_vmfnmsub_<mode>_mask3<round_name>,
29867 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
29868 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
29869 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
29870 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
29871 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
29872 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
29873 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
29874 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
29875 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
29876 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
29877 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
29878 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
29879 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
29880 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
29881 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
29882 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
29883 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
29884 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
29885 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
29886 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
29887 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
29888 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
29890 2019-03-21 Martin Sebor <msebor@redhat.com>
29892 PR tree-optimization/89350
29893 * builtins.c (compute_objsize): Also ignore offsets whose upper
29895 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
29896 (builtin_memref::builtin_memref): Initialize new member.
29897 Allow EXPR to be null.
29898 (builtin_memref::extend_offset_range): Replace local with a member.
29899 Avoid assuming pointer offsets are unsigned.
29900 (builtin_memref::set_base_and_offset): Determine base object
29901 before computing offset range.
29902 (builtin_access::builtin_access): Handle memset.
29903 (builtin_access::generic_overlap): Replace local with a member.
29904 (builtin_access::strcat_overlap): Same.
29905 (builtin_access::overlap): Same.
29906 (maybe_diag_overlap): Same.
29907 (maybe_diag_access_bounds): Same.
29908 (wrestrict_dom_walker::check_call): Handle memset.
29909 (check_bounds_or_overlap): Same.
29911 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
29912 Jakub Jelinek <jakub@redhat.com>
29915 * tree.c (fld_type_variant, fld_incomplete_type_of,
29916 fld_process_array_type): Call fld->pset.add and don't call
29917 add_tree_to_fld_list if it returns true.
29918 (free_lang_data_in_type): Similarly with self-recursive call. Purge
29919 non-marked types from TYPE_NEXT_VARIANT list.
29920 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
29922 2019-03-21 Jakub Jelinek <jakub@redhat.com>
29924 * hash-table.h (hash_table): Add Lazy template parameter defaulted
29925 to false, if true, don't alloc_entries during construction, but defer
29926 it to the first method that needs m_entries allocated.
29927 (hash_table::hash_table, hash_table::~hash_table,
29928 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
29929 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
29930 hash_table::clear_slot, hash_table::traverse_noresize,
29931 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
29932 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
29934 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
29935 NO_INSERT instead of find_with_hash.
29936 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
29937 hash_set::m_table): Add Lazy to template params of hash_table.
29938 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
29939 * attribs.c (test_attribute_exclusions): Likewise.
29940 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
29941 hash_set. Add tests for hash_set with Lazy = true.
29943 2019-03-21 Richard Biener <rguenther@suse.de>
29945 PR tree-optimization/89779
29946 * tree.c (tree_nop_conversion): Consolidate and fix defensive
29947 checks with respect to released SSA names now having error_mark_node
29949 * fold-const.c (operand_equal_p): Likewise.
29951 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
29954 * config/s390/s390.c (global_not_special_regno_p): Move to make it
29956 (s390_optimize_register_info): Use global_not_special_regno_p to
29957 check for global regs.
29959 2019-03-20 Jakub Jelinek <jakub@redhat.com>
29962 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
29963 update this_alternative nor this_alternative_set.
29965 2019-03-19 Jim Wilson <jimw@sifive.com>
29968 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
29969 align, size, offset. Use them to handle a BLKmode reference. Update
29971 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
29973 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29975 PR rtl-optimization/89768
29976 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
29977 instead of GEN_INT.
29978 (unroll_loop_runtime_iterations): Likewise.
29980 2019-03-19 Martin Sebor <msebor@redhat.com>
29982 PR tree-optimization/89644
29983 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
29984 rather than endptr as an indicator of nul-termination.
29986 PR tree-optimization/89644
29987 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
29988 arrays in determining sequence sizes in strncpy and stpncpy.
29990 2019-03-19 Martin Liska <mliska@suse.cz>
29992 PR middle-end/89737
29993 * predict.c (combine_predictions_for_bb): Empty likely_edges and
29994 unlikely_edges if there's an edge that belongs to both these sets.
29996 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
29999 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30000 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30001 go via a stack temporary.
30003 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30006 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30007 instead of gen_rtx_SUBREG.
30008 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30010 2019-03-19 Richard Biener <rguenther@suse.de>
30013 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30015 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30019 * tree.c (free_lang_data_in_decl): Do not free context of C++
30022 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30025 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30026 subs for the first alternative except when operands[3] is 1.
30029 * gimplify.c (gimplify_asm_expr): For output argument with
30030 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30033 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30035 PR rtl-optimization/89753
30036 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30037 explicit unrolling factor even more robust.
30039 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30042 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30043 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30044 signed zeros, do another copysign after the compensation.
30046 2019-03-18 Martin Sebor <msebor@redhat.com>
30048 PR tree-optimization/89720
30049 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30050 more conservatively, the same as anti-range.
30052 2019-03-18 Richard Biener <rguenther@suse.de>
30054 PR middle-end/88945
30055 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30056 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30057 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30058 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30060 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30062 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30063 Extend queue to 1024 entries.
30064 Add "consumed" field.
30065 (gomp_print_output): Remove print_index parameter.
30066 Add final parameter.
30067 Change limit to unsigned.
30068 Use consumed field to implement circular buffer.
30069 Detect interrupted print in final pass.
30070 Flush output at the end.
30071 (run): Update gomp_print_output usage.
30072 (main): Initialize kernargs->output_data.consumed.
30074 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30076 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30077 calculation of the minimum number of scalar iterations for
30078 fully-predicated loops.
30080 2019-03-18 Martin Jambor <mjambor@suse.cz>
30082 PR tree-optimization/89546
30083 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30084 any propagation to its children took place.
30086 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30089 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30090 parameter, and make use of it.
30091 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30093 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30095 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30096 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30097 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30098 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30099 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30100 match what the ops is doing.
30101 (push_multi_fp_blink): Likewise.
30102 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30103 compiling for size and elf target.
30104 (arc_save_callee_enter): Adjust note to match what enter/leave
30107 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30109 * config/arc/arc.md (tst_movb): Fix constraint.
30111 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30113 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30115 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30117 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30118 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30119 reg_alloc_order references.
30120 (size_alloc_order): Define.
30121 (arc_adjust_reg_alloc_order): New function.
30122 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30124 (ADJUST_REG_ALLOC_ORDER): Define.
30125 (HONOR_REG_ALLOC_ORDER): Likewise.
30127 2019-03-18 Richard Biener <rguenther@suse.de>
30130 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30131 loads and stores a bit more.
30133 2019-03-18 Richard Biener <rguenther@suse.de>
30136 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30137 load pessimization to stores as well.
30139 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30141 PR middle-end/86979
30142 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30143 successor, use NULL as its av set.
30145 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30147 PR rtl-optimization/89721
30148 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30150 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30153 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30154 When handling vec_extract, use modular arithmetic to allow
30155 constant selectors greater than vector length.
30156 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30157 V1TImode vectors to have constant selector values greater than 0.
30158 Use modular arithmetic to compute vector index.
30159 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30160 index for in-memory vectors. Correct code generation for
30161 in-register vectors.
30162 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30165 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30169 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30172 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30175 * tree.c (inchash::add_expr): Strip any location wrappers.
30176 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30177 after hash verification.
30180 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30181 SIGN_EXTEND and ZERO_EXTEND.
30183 2019-03-14 Jason Merrill <jason@redhat.com>
30184 Jakub Jelinek <jakub@redhat.com>
30186 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30187 than if is_empty (*slot).
30188 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30189 existing elt and for elt removal.
30190 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30191 of already removed elt.
30193 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30196 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30197 REG_EH_REGION note.
30199 2019-03-14 Martin Liska <mliska@suse.cz>
30202 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30204 2019-03-14 Richard Biener <rguenther@suse.de>
30207 * config/i386/i386.c (make_resolver_func): Properly set
30208 DECL_CONTEXT on the RESULT_DECL.
30209 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30211 2019-03-14 Richard Biener <rguenther@suse.de>
30213 * gimple-pretty-print.c: Include cfgloop.h.
30214 (dump_gimple_phi): Adjust.
30215 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30216 (pp_cfg_jump): Adjust.
30217 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30218 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30219 (lower_phi_internal_fn): Remove.
30220 (verify_gimple_call): Remove IFN_PHI special-casing.
30221 (dump_function_to_file): Dump IL state.
30222 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30223 done to deal with PHI nodes being present in non-SSA state.
30225 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30228 * multiple_target.c (create_dispatcher_calls): Change
30229 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30230 In the node->iterate_referring loop, push *ref rather than ref, call
30231 ref->remove_reference () and always pass 0 to iterate_referring.
30233 PR rtl-optimization/89679
30234 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30235 would contain a paradoxical SUBREG.
30237 2019-03-14 Richard Biener <rguenther@suse.de>
30239 PR tree-optimization/89710
30240 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30243 2019-03-14 Martin Liska <mliska@suse.cz>
30245 * coverage.c (coverage_begin_function): Stream also
30247 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
30248 documentation about function declaration location.
30249 * gcov-dump.c (tag_function): Print whole range
30250 of function declaration.
30251 * gcov.c (struct function_info): Add end_column field.
30252 (function_info::function_info): Initialize it.
30253 (output_json_intermediate_file): Output {start,end}_column
30255 (read_graph_file): Read end_column.
30257 2019-03-14 Richard Biener <rguenther@suse.de>
30259 PR middle-end/89698
30260 * fold-const.c (operand_equal_p): For INDIRECT_REF check
30261 that the access types are similar.
30263 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30265 PR tree-optimization/89703
30266 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
30267 aren't compatible also with builtin_decl_explicit. Check pure
30268 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
30269 and BUILT_IN_STPNCPY{,_CHK}.
30271 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
30274 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
30275 addr32 prefix to VSIB address for X32.
30276 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
30278 (*avx512pf_gatherpf<mode>df_mask): Likewise.
30279 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
30280 (*avx512pf_scatterpf<mode>df_mask): Likewise.
30281 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
30282 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
30283 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
30284 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
30285 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
30286 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
30287 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
30288 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
30289 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
30290 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
30291 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
30292 (*avx512f_scatterdi<mode>): Likewise.
30294 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
30297 * lra-constraints.c (inherit_in_ebb): Update
30298 potential_reload_hard_regs along with live_hard_regs.
30300 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30303 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
30305 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
30307 2019-03-13 Martin Sebor <msebor@redhat.com>
30309 PR tree-optimization/89662
30310 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
30313 2019-03-13 Richard Biener <rguenther@suse.de>
30315 PR middle-end/89677
30316 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
30317 throw FP expressions at tree-affine.
30319 2019-03-14 Richard Biener <rguenther@suse.de>
30321 * tree-pretty-print.c (dump_generic_node): For -gimple properly
30322 dump negative integer constants using _Literal (type) -num.
30324 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30326 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
30327 nonlocal_value member.
30329 PR middle-end/88588
30330 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
30331 (ipa_simd_modify_function_body): Handle PHIs.
30333 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30335 * config/s390/s390.c (s390_option_override_internal): Use more
30336 aggressive inlining parameters.
30338 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30340 * config/s390/3906.md: New file.
30341 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30342 (LONGRUNNING_THRESHOLD): Remove.
30343 (MAX_SCHED_MIX_SCORE): Decrease.
30344 (MAX_SCHED_MIX_DISTANCE): Decrease.
30345 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
30346 (struct s390_sched_state): New struct to hold scheduling state.
30347 (S390_SCHED_STATE_NORMAL): Remove.
30348 (S390_SCHED_STATE_CRACKED): Remove.
30349 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
30350 (s390_get_sched_attrmask): Use new attribute.
30351 (s390_get_unit_mask): Use new units.
30352 (s390_is_fpd): New function.
30353 (s390_is_fxd): New function.
30354 (s390_is_longrunning): New function.
30355 (s390_sched_score): Use new functions.
30356 (s390_sched_reorder): Likewise.
30357 (s390_sched_variable_issue): Rework and use new functions.
30358 (s390_sched_init): Use new functions.
30359 * config/s390/s390.h (s390_tune_attr): Add z14.
30360 * config/s390/s390.md: Add z14.
30362 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30364 * config/s390/2964.md: Update pipeline description.
30365 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30366 (LONGRUNNING_THRESHOLD): Remove.
30367 (LATENCY_FACTOR): Remove.
30368 (s390_get_unit_mask): Add unit.
30369 (s390_sched_score): Use fxd/fpd.
30370 (s390_sched_variable_issue): Use fxd/fpd.
30372 2019-03-12 Martin Liska <mliska@suse.cz>
30374 * config/i386/i386.c: Reword an error message.
30376 2019-03-12 Martin Jambor <mjambor@suse.cz>
30378 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
30379 terminate with newline.
30381 2019-03-12 Jakub Jelinek <jakub@redhat.com>
30384 * config/s390/s390.md (tabort): Use %wd instead of
30385 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
30386 letters and periods.
30387 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
30388 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
30391 PR middle-end/89663
30392 * builtins.c (expand_builtin_int_roundingfn,
30393 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
30394 gcc_unreachable if validate_arglist fails.
30396 2019-03-12 Richard Biener <rguenther@suse.de>
30398 PR tree-optimization/89664
30399 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
30400 free the occurance tree after the early out.
30402 2019-03-11 Jakub Jelinek <jakub@redhat.com>
30404 PR middle-end/89655
30406 * vr-values.c (vr_values::update_value_range): If
30407 old_vr->varying_p (), don't update it, make new_vr also VARYING
30410 2019-03-11 Martin Liska <mliska@suse.cz>
30412 * config/aarch64/aarch64.c (aarch64_override_options_internal):
30413 Fix double string quoting.
30415 2019-03-11 Martin Liska <mliska@suse.cz>
30417 * collect-utils.c (collect_wait): Wrap apostrophes
30418 in gcc internal format with %'.
30419 * collect2.c (main): Likewise.
30420 (scan_prog_file): Likewise.
30421 (scan_libraries): Likewise.
30422 * config/i386/i386.c (ix86_expand_call): Likewise.
30423 (ix86_handle_interrupt_attribute): Likewise.
30424 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
30425 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
30426 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
30427 * lto-wrapper.c (find_crtoffloadtable): Likewise.
30428 * symtab.c (symtab_node::verify_base): Likewise.
30429 * tree-cfg.c (verify_gimple_label): Likewise.
30430 * tree.c (verify_type_variant): Likewise.
30432 2019-03-11 Martin Liska <mliska@suse.cz>
30434 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
30435 in a string format message and fix GNU coding style.
30436 (expand_builtin_set_thread_pointer): Likewise.
30437 * common/config/aarch64/aarch64-common.c
30438 (aarch64_rewrite_selected_cpu): Likewise.
30439 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
30440 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
30441 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
30442 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
30443 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
30444 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
30445 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
30446 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
30447 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
30448 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
30450 * common/config/riscv/riscv-common.c
30451 (riscv_subset_list::parsing_subset_version): Likewise.
30452 (riscv_subset_list::parse_std_ext): Likewise.
30453 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30454 (riscv_subset_list::parse): Likewise.
30455 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
30456 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
30457 (aarch64_override_options_internal): Likewise.
30458 (aarch64_validate_mcpu): Likewise.
30459 (aarch64_validate_march): Likewise.
30460 (aarch64_validate_mtune): Likewise.
30461 (aarch64_override_options): Likewise.
30462 * config/alpha/alpha.c (alpha_option_override): Likewise.
30463 * config/arc/arc.c (arc_init): Likewise.
30464 (parse_mrgf_banked_regs_option): Likewise.
30465 (arc_override_options): Likewise.
30466 (arc_expand_builtin_aligned): Likewise.
30467 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
30468 (arm_expand_builtin): Likewise.
30469 * config/arm/arm.c (arm_option_check_internal): Likewise.
30470 (arm_configure_build_target): Likewise.
30471 (arm_option_override): Likewise.
30472 (arm_options_perform_arch_sanity_checks): Likewise.
30473 (arm_handle_cmse_nonsecure_entry): Likewise.
30474 (arm_handle_cmse_nonsecure_call): Likewise.
30475 (arm_tls_referenced_p): Likewise.
30476 (thumb1_expand_prologue): Likewise.
30477 * config/avr/avr.c (avr_option_override): Likewise.
30478 * config/bfin/bfin.c (bfin_option_override): Likewise.
30479 * config/c6x/c6x.c (c6x_option_override): Likewise.
30480 * config/cr16/cr16.c (cr16_override_options): Likewise.
30481 * config/cris/cris.c (cris_option_override): Likewise.
30482 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
30483 * config/darwin-c.c (macosx_version_as_macro): Likewise.
30484 * config/darwin.c (darwin_override_options): Likewise.
30485 * config/frv/frv.c (frv_expand_builtin): Likewise.
30486 * config/h8300/h8300.c (h8300_option_override): Likewise.
30487 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
30488 (ix86_option_override_internal): Likewise.
30489 (warn_once_call_ms2sysv_xlogues): Likewise.
30490 (ix86_expand_prologue): Likewise.
30491 (split_stack_prologue_scratch_regno): Likewise.
30492 (ix86_warn_parameter_passing_abi): Likewise.
30493 * config/ia64/ia64.c (fix_range): Likewise.
30494 * config/m68k/m68k.c (m68k_option_override): Likewise.
30495 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
30496 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
30497 (mips_set_compression_mode): Likewise.
30498 * config/mmix/mmix.c (mmix_option_override): Likewise.
30499 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
30500 * config/msp430/msp430.c (msp430_option_override): Likewise.
30501 * config/nds32/nds32.c (nds32_option_override): Likewise.
30502 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
30503 (nios2_option_override): Likewise.
30504 (nios2_expand_custom_builtin): Likewise.
30505 * config/nvptx/mkoffload.c (main): Likewise.
30506 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
30507 * config/pa/pa.c (fix_range): Likewise.
30508 (pa_option_override): Likewise.
30509 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
30510 (riscv_option_override): Likewise.
30511 * config/rl78/rl78.c (rl78_option_override): Likewise.
30512 * config/rs6000/aix61.h: Likewise.
30513 * config/rs6000/aix71.h: Likewise.
30514 * config/rs6000/aix72.h: Likewise.
30515 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
30516 * config/rs6000/freebsd64.h: Likewise.
30517 * config/rs6000/linux64.h: Likewise.
30518 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
30519 (rs6000_expand_zeroop_builtin): Likewise.
30520 (rs6000_expand_mtfsb_builtin): Likewise.
30521 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
30522 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
30523 (rs6000_invalid_builtin): Likewise.
30524 (rs6000_expand_split_stack_prologue): Likewise.
30525 * config/rs6000/rtems.h: Likewise.
30526 * config/rx/rx.c (valid_psw_flag): Likewise.
30527 (rx_expand_builtin): Likewise.
30528 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
30529 * config/s390/s390.c (s390_expand_builtin): Likewise.
30530 (s390_function_profiler): Likewise.
30531 (s390_option_override_internal): Likewise.
30532 (s390_option_override): Likewise.
30533 * config/sh/sh.c (sh_option_override): Likewise.
30534 (sh_builtin_saveregs): Likewise.
30535 (sh_fix_range): Likewise.
30536 * config/sh/vxworks.h: Likewise.
30537 * config/sparc/sparc.c (sparc_option_override): Likewise.
30538 * config/spu/spu.c (spu_option_override): Likewise.
30539 (fix_range): Likewise.
30540 * config/visium/visium.c (visium_option_override): Likewise.
30541 (visium_handle_interrupt_attr): Likewise.
30542 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
30543 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
30544 (dbg_cnt_process_opt): Likewise.
30545 * dwarf2out.c (output_dwarf_version): Likewise.
30546 * except.c (expand_eh_return): Likewise.
30547 * gcc.c (defined): Likewise.
30548 (driver_handle_option): Likewise.
30549 (process_command): Likewise.
30550 (compare_files): Likewise.
30551 (driver::prepare_infiles): Likewise.
30552 (driver::do_spec_on_infiles): Likewise.
30553 (driver::maybe_run_linker): Likewise.
30554 * omp-offload.c (oacc_parse_default_dims): Likewise.
30555 * opts-global.c (handle_common_deferred_options): Likewise.
30556 * opts.c (parse_sanitizer_options): Likewise.
30557 (common_handle_option): Likewise.
30558 (enable_warning_as_error): Likewise.
30559 * passes.c (enable_disable_pass): Likewise.
30560 * plugin.c (parse_plugin_arg_opt): Likewise.
30561 (default_plugin_dir_name): Likewise.
30562 * targhooks.c (default_expand_builtin_saveregs): Likewise.
30563 (default_pch_valid_p): Likewise.
30564 * toplev.c (init_asm_output): Likewise.
30565 (process_options): Likewise.
30566 (toplev::run_self_tests): Likewise.
30567 * tree-cfg.c (verify_gimple_call): Likewise.
30568 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
30569 (tree_inlinable_function_p): Likewise.
30570 * var-tracking.c (vt_find_locations): Likewise.
30572 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
30574 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
30575 only on the else branch.
30577 2019-03-11 Martin Liska <mliska@suse.cz>
30579 * gcov.c (output_intermediate_json_line): Print function
30581 (output_json_intermediate_file): Add new argument.
30582 * doc/gcov.texi: Document the change.
30584 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
30586 PR rtl-optimization/89588
30587 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30588 explicit unrolling factor more robust.
30590 2019-03-11 Richard Biener <rguenther@suse.de>
30592 PR tree-optimization/89649
30593 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
30594 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
30595 on the prolog and epilog loops.
30596 (vect_loop_versioning): Return copy of loop.
30597 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
30598 on the non-vectorized version of the loop.
30600 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
30603 * config/i386/sse.md (*vec_extractv2di_0_sse):
30604 Add (=r,x) alternative and corresponding splitter.
30606 2019-03-10 Martin Jambor <mjambor@suse.cz>
30608 PR tree-optimization/85762
30609 PR tree-optimization/87008
30610 PR tree-optimization/85459
30611 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
30612 it points to if there is a type changing MEM_REF. Adjust all callers.
30613 (build_accesses_from_assign): Disable total scalarization if
30614 contains_vce_or_bfcref_p returns true through the new parameter, for
30617 2019-03-09 Jakub Jelinek <jakub@redhat.com>
30620 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
30621 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
30624 * common.opt (fdiagnostics-show-labels,
30625 fdiagnostics-show-line-numbers, fdiagnostics-format=,
30626 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
30627 gas-locview-support, ginline-points, ginternal-reset-location-views):
30628 Terminate description text with a dot.
30629 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
30630 * config/mcore/mcore.opt (m210, m340): Likewise.
30631 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
30632 mnops=): Start description text with a capital letter.
30633 * config/arc/arc.opt (msize-level=): Likewise.
30634 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
30635 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
30636 mnewlib): Likewise.
30637 * config/ft32/ft32.opt (msim): Likewise.
30638 (mft32b, mcompress): Likewise. Terminate description text with a dot.
30639 (mnodiv, mnopm): Terminate description text with a dot.
30640 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
30642 * config/i386/i386.opt (prefer_vector_width, instrument_return):
30644 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
30647 PR rtl-optimization/89634
30648 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
30649 are modified in BB_END (e->src) instruction.
30651 2019-03-08 David Malcolm <dmalcolm@redhat.com>
30654 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
30655 messages more amenable to translation, and improve wording.
30657 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
30659 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
30660 ud- and du-chains between phases.
30662 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
30665 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
30666 instead of POLY_INT_CST.
30668 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
30670 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
30673 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
30678 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
30679 (_mm_storeu_si64): Ditto.
30681 2019-03-08 Martin Liska <mliska@suse.cz>
30684 * config/i386/i386.c (ix86_option_override_internal): Disable
30685 jump tables when retpolines are used.
30687 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
30690 * ipa-split.c (execute_split_functions): Do not split
30691 'noinline' or 'section' function.
30693 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30696 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
30697 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
30698 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
30701 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
30702 from diagnostics. Formatting fixes.
30705 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
30706 warn_odr diagnostics.
30709 * lra-constraints.c (process_alt_operands): Avoid one space before
30710 " at the end of line and another after " on another line in a string
30712 * attribs.c (handle_dll_attribute): Likewise.
30713 * config/avr/avr-devices.c (avr_texinfo): Likewise.
30715 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
30716 warning_at or inform messages in G_() if there is no ?:.
30718 PR tree-optimization/89550
30719 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
30720 returned true. Formatting fixes.
30721 (expand_builtin_strnlen): Formatting fixes.
30722 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
30723 if warning_at returned true.
30724 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
30726 2019-03-08 Richard Biener <rguenther@suse.de>
30728 PR middle-end/89578
30729 * cfgloop.h (struct loop): Add owned_clique field.
30730 * cfgloopmanip.c (copy_loop_info): Copy it.
30731 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
30733 * tree-inline.c (copy_loops): Remap owned_clique.
30734 * lto-streamer-in.c (input_cfg): Stream owned_clique.
30735 * lto-streamer-out.c (output_cfg): Likewise.
30737 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30740 * config/darwin.c: Include intl.h.
30741 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
30742 composing the message out of two separate parts.
30744 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30747 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
30748 doesn't start with a capital letter and doesn't end with a dot.
30749 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
30750 with a capital letter.
30751 (ix86_mangle_function_version_assembler_name): Likewise.
30752 (ix86_generate_version_dispatcher_body): Likewise.
30753 (fold_builtin_cpu): Likewise.
30754 (get_builtin_code_for_version): Likewise. Remove extraneous space.
30755 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
30756 translators, wrap full type name in %qs.
30758 PR translation/79999
30759 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
30760 depend clause with source (or sink) modifier.
30761 * omp-expand.c (expand_omp_ordered_sink): Likewise.
30764 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
30765 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
30766 (avx512f_load<mode>_mask): New define_expand.
30767 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
30768 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
30769 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
30770 __builtin_ia32_movess_mask): New builtins.
30771 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
30772 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
30773 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
30774 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
30776 2019-03-07 Martin Jambor <mjambor@suse.cz>
30779 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
30780 for extern inline functions.
30782 2019-03-07 Martin Jambor <mjambor@suse.cz>
30785 * cgraph.h (cgraph_node): New inline method former_thunk_p.
30786 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
30787 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
30788 have multiple callees. At the end check if declarations match as
30789 opposed to cgraph_nodes.
30791 2019-03-07 Martin Liska <mliska@suse.cz>
30793 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
30794 which is equivalent to searching for this in clones chain.
30795 * symtab.c (symtab_node::verify_base): Similarly compare ASM
30796 names with a neighbour and special case first node in a chain.
30798 2019-01-25 Jason Merrill <jason@redhat.com>
30800 PR c++/80916 - spurious "static but not defined" warning.
30801 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
30802 for an internal symbol with DECL_EXTERNAL.
30804 2019-04-07 Richard Biener <rguenther@suse.de>
30806 PR middle-end/89618
30807 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
30808 * tree-inline.c (copy_loops): Simplify.
30810 2019-03-07 Martin Liska <mliska@suse.cz>
30812 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
30814 2019-03-07 Richard Biener <rguenther@suse.de>
30816 PR tree-optimization/89595
30817 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
30818 stmt iterator as reference, take boolean output parameter to
30819 indicate whether the stmt was removed and thus the iterator
30821 (dom_opt_dom_walker::before_dom_children): Re-iterate over
30822 stmts created by folding.
30824 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30827 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
30830 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
30832 PR rtl-optimization/88845
30833 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
30835 * lra.c (remove_scratches_1): New function.
30836 (remove_scratches): Use it.
30837 (lra_emit_move): Likewise.
30839 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
30841 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
30842 unaligned_access variable.
30843 * config/arc/arc.c (arc_override_options): Set unaligned access
30844 default on for HS CPUs.
30845 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
30847 2019-03-06 Martin Liska <mliska@suse.cz>
30849 PR gcov-profile/89577
30850 * doc/gcov.texi: Prefer to use --coverage.
30851 * doc/sourcebuild.texi: Likewise.
30853 2019-03-02 Jason Merrill <jason@redhat.com>
30855 PR c++/86485 - -Wmaybe-unused with empty class ?:
30856 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
30858 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30861 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
30864 PR middle-end/89590
30865 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
30866 exactly one argument.
30868 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30869 Richard Sandiford <richard.sandiford@arm.com>
30871 PR tree-optimization/89570
30872 * match.pd (vec_cond into cond_op simplification): Don't use
30873 get_conditional_internal_fn, use as_internal_fn (cond_op).
30875 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
30878 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
30879 to decide when to split off a non-zero offset from a symbol.
30880 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
30881 in function symbols.
30883 2019-03-05 Richard Biener <rguenther@suse.de>
30885 PR tree-optimization/89594
30886 * tree-if-conv.c (pass_if_conversion::execute): Handle
30887 case where .LOOP_VECTORIZED_FUNCTION was removed.
30889 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30892 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
30893 instead alloca it only when needed with the needed size.
30895 PR tree-optimization/89570
30896 * match.pd (vec_cond into cond_op simplification): Guard with
30897 vectorized_internal_fn_supported_p test and #if GIMPLE.
30899 PR tree-optimization/89566
30900 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
30901 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
30902 Punt if get_user_idx_format succeeds, but idx_format argument is
30903 not provided or doesn't have pointer type, or if idx_args is above
30904 number of provided arguments.
30906 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
30908 PR tree-optimization/89437
30909 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
30911 2019-03-04 Richard Biener <rguenther@suse.de>
30913 PR middle-end/89572
30914 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
30917 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
30919 PR tree-optimization/89487
30920 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
30921 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
30922 (distribute_loop): Don't do runtime alias check if there is non-
30923 addressable data reference.
30924 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
30925 is a register variable.
30927 2019-03-02 Jakub Jelinek <jakub@redhat.com>
30930 * config/arm/arm.md (cmpsi2_addneg): Use
30931 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
30932 If operands[2] is 0 or INT_MIN, force use of subs.
30933 (*compare_scc splitter): Use gen_int_mode.
30934 (*negscc): Likewise.
30935 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
30937 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
30938 Monk Chiang <sh.chiang04@gmail.com>
30940 * common/config/riscv/riscv-common.c: Include sstream.
30941 (riscv_subset_list::to_string): New.
30942 (riscv_arch_str): Likewise.
30943 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
30944 * config.in: Regen.
30945 * config/riscv/riscv-protos.h (riscv_arch_str): New.
30946 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
30947 (riscv_emit_attribute): New.
30948 (riscv_file_start): Emit attribute if needed.
30949 (riscv_option_override): Init riscv_emit_attribute_p.
30950 * config/riscv/riscv.opt (mriscv-attribute): New option.
30951 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
30952 * configure: Regen.
30953 * doc/install.texi: Document --with-riscv-attribute.
30954 * doc/invoke.texi: Document -mriscv-attribute.
30956 * common/config/riscv/riscv-common.c:
30957 Include config/riscv/riscv-protos.h.
30958 (INCLUDE_STRING): Defined.
30959 (RISCV_DONT_CARE_VERSION): Defined.
30960 (riscv_subset_t): Declare.
30961 (riscv_subset_t::riscv_subset_t): New.
30962 (riscv_subset_list): Declare.
30963 (riscv_subset_list::riscv_subset_list): New.
30964 (riscv_subset_list::~riscv_subset_list): Likewise.
30965 (riscv_subset_list::parsing_subset_version): Likewise.
30966 (riscv_subset_list::parse_std_ext): Likewise.
30967 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30968 (riscv_subset_list::add): Likewise.
30969 (riscv_subset_list::lookup): Likewise.
30970 (riscv_subset_list::xlen): Likewise.
30971 (riscv_subset_list::parse): Likewise.
30972 (riscv_supported_std_ext): Likewise.
30973 (current_subset_list): Likewise.
30974 (riscv_parse_arch_string): Using riscv_subset_list::parse to
30977 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
30979 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
30980 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
30981 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
30983 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
30985 PR rtl-optimization/85899
30986 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
30987 fallthru edges leading to the exit block.
30989 2019-03-01 Tamar Christina <tamar.christina@arm.com>
30992 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
30993 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
30995 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
30997 PR tree-optimization/89535
30998 * tree-vect-stmts.c (vectorizable_call): Record the vector types
30999 for each operand. Calculate the fallback choice for mask operands
31000 and pass it to vect_get_vec_def_for_operand.
31002 2019-03-01 Richard Biener <rguenther@suse.de>
31004 PR middle-end/89541
31005 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31006 get virtual operands.
31007 (get_expr_operands): Handle CONST_DECL like other decls.
31009 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31011 PR middle-end/89503
31012 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31013 on DECL_P and EXPR_P.
31015 2019-03-01 Richard Biener <rguenther@suse.de>
31017 PR middle-end/89497
31018 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31019 argument, defaulted to zero.
31020 * passes.c (execute_function_todo): Pass down SSA update flags
31021 to cleanup_tree_cfg.
31022 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31023 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31025 (cleanup_tree_cfg): Get and pass down SSA update flags.
31027 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31030 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31031 early_lto_debug argument.
31033 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31035 PR tree-optimization/89536
31036 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31037 only whether bit #0 of the value is 0 instead of the entire value.
31039 2019-02-28 Marek Polacek <polacek@redhat.com>
31041 PR c++/87068 - missing diagnostic with fallthrough statement.
31042 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31043 at the end of a seq, save its location to walk_stmt_info.
31044 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31047 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31050 * tree.c (find_atomic_core_type): Move ahead in file.
31051 (check_base_type): Correctly compare alignments of atomic types.
31053 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31056 * config/i386/i386.c (get_builtin_code_for_version): Identify
31057 Westmere from PCLMUL, instead of AES.
31059 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31062 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31063 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31066 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31069 * config/aarch64/aarch64-option-extensions.def: Document it.
31070 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31073 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31076 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31077 builtins if they don't have a single scalar floating point argument.
31080 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31082 PR rtl-optimization/89490
31083 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31084 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31085 block section is not mergeable.
31087 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31090 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31091 old define_insn to ...
31092 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31093 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31094 Rename old define_insn to ...
31095 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31096 (thumb2_casesi_internal_pic): New define_expand. Rename old
31098 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31099 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31100 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31102 2019-02-27 Richard Biener <rguenther@suse.de>
31105 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31107 2019-02-27 Richard Biener <rguenther@suse.de>
31109 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31112 2019-02-27 Richard Biener <rguenther@suse.de>
31115 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31116 parameter, prefix section name with .gnu.debuglto_ if true.
31117 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31118 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31120 2019-02-27 Richard Biener <rguenther@suse.de>
31123 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31124 rather than on use_debug_types, doing what output_die does.
31125 (value_format): Likewise.
31127 2019-02-27 Martin Jambor <mjambor@suse.cz>
31128 Martin Sebor <msebor@redhat.com>
31130 * doc/invoke.texi (Warning Options): Reword description of
31131 -Wno-absolute-value.
31133 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31135 PR tree-optimization/89280
31136 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31137 builtin_setjmp_setup_bb): New functions.
31138 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31139 When visiting __builtin_setjmp_setup block, queue in special
31140 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31141 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31142 from visited after the loop if they don't have any visited successor
31145 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31147 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31149 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31151 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31154 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31155 with types other than sizetype/ssizetype.
31157 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31159 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31160 (enum sparc_processor_type): ...this.
31161 (enum sparc_code_model_type): New enumeration type.
31162 (enum sparc_memory_model_type): Tweak comments.
31163 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31165 (mcmodel): Use sparc_code_model enumeration and variable.
31166 (sparc_code_model): New enumeration.
31167 (mdebug): Add Undocumented marker.
31168 * config/sparc/sparc.h (enum cmodel): Delete.
31169 (sparc_cmodel): Likewise.
31170 (TARGET_CM_MEDLOW): Adjust to above renaming.
31171 (TARGET_CM_MEDMID): Likewise.
31172 (TARGET_CM_MEDANY): Likewise.
31173 (TARGET_CM_EMBMEDANY): Likewise.
31174 * config/sparc/sparc.c (sparc_cmodel): Delete.
31175 (sparc_option_override): Remove string/value mapping support for the
31176 code model. Move code and memory model support to after the handling
31177 of target flags. Do private machine setup last.
31178 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31179 (sparc_legitimize_reload_address): Likewise.
31180 (sparc_output_mi_thunk): Likewise.
31181 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31183 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31185 PR tree-optimization/89500
31186 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31187 (handle_builtin_strlen): Remove noncst_bound variable. Always
31188 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31189 cst if the first cst bytes starting at x are known to be non-zero,
31190 even if the string is not zero terminated. Don't try to modify
31191 *si for strnlen. Update strlen_to_stridx only for strlen or if
31192 we can prove strnlen returns the same value as strlen would.
31194 2019-02-26 Martin Liska <mliska@suse.cz>
31196 * alloc-pool.h (struct pool_usage): Remove extra
31198 * bitmap.h (struct bitmap_usage): Likewise.
31199 * ggc-common.c (struct ggc_usage): Likewise.
31200 * mem-stats.h (struct mem_usage): Likewise.
31201 (mem_alloc_description::dump): Print dash lines
31202 here and repeat header at the end of a table report.
31203 It's then more readable.
31204 * tree-phinodes.c (phinodes_print_statistics): Make
31205 horizontal alignment.
31206 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31207 * vec.c (struct vec_usage): Remove extra print_dash_line.
31208 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31210 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31212 * doc/extend.texi (__builtin_object_size):
31213 Use @pxref instead of @xref inside parenthesis.
31214 (__builtin_has_attribute): Add missing comma after @xref.
31215 (__builtin_object_size): Ditto.
31216 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31218 2019-02-26 Jeff Law <law@redhat.com>
31220 PR rtl-optimization/87761
31221 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31222 detect obviously dead insns and delete them.
31224 2019-02-26 Richard Biener <rguenther@suse.de>
31226 PR tree-optimization/89505
31227 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31228 to handle restrict pointed-to vars with multiple subvars
31231 2019-02-26 Richard Biener <rguenther@suse.de>
31233 PR tree-optimization/89489
31234 * tree-parloops.c (create_loop_fn): Copy over last_clique.
31236 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31238 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31239 and move around comment.
31240 <BIT_AND_EXPR>: Likewise.
31241 <BIT_NOT_EXPR>: Add specific handling for boolean types.
31243 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31246 * config/i386/i386.c (remove_partial_avx_dependency): Call
31247 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31248 after changing possibly many instructions to use that pseudo. Fix up
31249 insertion of v4sf_const0 setter at the start of bb.
31251 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31254 * doc/extend.texi (Variadic Pointer Args): New section.
31256 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31257 Martin Sebor <msebor@gmail.com>
31259 * common.opt (Wattribute-alias): Likewise.
31260 * doc/invoke.texi (Option Summary): List general form of
31261 -Wattribute-alias=. List positive form of -Wmissing-attributes.
31262 (-Wmissing-attributes): Invert entry, rewrite and correct default.
31263 Add cross-references.
31264 (-Wattribute-alias): Rewrite and correct default. Mention
31265 considered attributes (same as for -Wmissing-attributes).
31267 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
31269 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
31270 (_mm_cvtpd_ps): Likewise.
31271 (_mm_cvttpd_epi32): Likewise.
31274 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
31275 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
31278 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
31280 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31283 * common/config/aarch64/aarch64-common.c
31284 (struct aarch64_option_extension): Add is_synthetic.
31285 (all_extensions): Use it.
31286 (TARGET_OPTION_INIT_STRUCT): Define hook.
31287 (struct gcc_targetm_common): Moved to end.
31288 (all_extensions_by_on): New.
31289 (opt_ext_cmp, typedef opt_ext): New.
31290 (aarch64_option_init_struct): New.
31291 (aarch64_contains_opt): New.
31292 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
31293 * config/aarch64/aarch64-option-extensions.def
31294 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
31295 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
31296 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
31297 Set is_synthetic to false.
31298 (crypto): Set is_synthetic to true.
31299 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
31302 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31304 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31305 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
31306 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31307 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
31308 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
31309 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
31310 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
31311 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
31313 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
31314 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31315 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
31316 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
31317 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
31318 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
31319 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
31320 vfmlsl_laneq_high_f16): ... To this.
31321 * config/arm/neon.md: Update comments.
31323 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31325 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31326 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
31327 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31328 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
31329 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
31330 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
31331 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
31332 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
31334 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
31335 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31336 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
31337 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
31338 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
31339 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
31340 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
31341 vfmlslq_laneq_high_f16): ... To this.
31343 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
31345 PR rtl-optimization/86096
31346 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
31347 comparing mw_order values.
31349 2019-02-25 Jakub Jelinek <jakub@redhat.com>
31352 * config/arm/arm.md (*subsi3_carryin_const): Use
31353 arm_neg_immediate_operand predicate instead of
31354 arm_not_immediate_operand, "L" constraint instead of "K" and
31355 print it using %n2 instead of %B2.
31356 (*subsi3_carryin_const0): New define_insn.
31357 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
31358 instead of arm_not_operand and "I" constraint instead of "K" and
31359 print it using %n3 instead of %B2. Instead of using match_dup 2 add
31360 another match_operand and in the condition check that it is negation
31362 (*subsi3_carryin_compare_const0): New define_ins.
31363 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
31364 *subsi3_carryin_const.
31365 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
31366 split into *subsi3_carryin_compare_const0 if the highpart is zero.
31369 * config/arm.vfp.md (*negdf2_vfp): Use
31370 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
31371 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
31373 2019-02-24 Jakub Jelinek <jakub@redhat.com>
31375 PR rtl-optimization/89445
31376 * simplify-rtx.c (simplify_ternary_operation): Don't use
31377 simplify_merge_mask on operands that may trap.
31378 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
31379 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
31380 second operand is CONST_VECTOR, check if any element could be zero.
31381 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
31382 their operands can trap.
31384 2019-02-23 Martin Sebor <msebor@redhat.com>
31386 * gimple-ssa-sprintf.c (target_strtol): Rename...
31387 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
31388 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
31389 check for range error.
31391 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
31394 * opts-common.c (prune_options): Also prune joined switches
31395 with Negative and RejectNegative.
31396 * config/i386/i386.opt (march=): Add Negative(march=).
31397 (mtune=): Add Negative(mtune=).
31398 * doc/options.texi: Document Negative used together with Joined
31399 and RejectNegative.
31401 2019-02-22 Martin Sebor <msebor@redhat.com>
31403 * doc/extend.texi (Other Builtins): Add
31404 __builtin_is_constant_evaluated.
31406 2019-02-22 Richard Biener <rguenther@suse.de>
31408 PR tree-optimization/87609
31409 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
31411 2019-02-22 Jeff Law <law@redhat.com>
31413 PR rtl-optimization/87761
31414 * config/mips/mips.md: Add new combiner pattern to recognize
31415 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
31417 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
31420 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
31421 destination register in peepholes generating patterns for ADDS/SUBS.
31422 (add<mode>3_compare0,
31423 *addsi3_compare0_uxtw, add<mode>3_compareC,
31424 add<mode>3_compareV_imm, add<mode>3_compareV,
31425 *adds_<optab><ALLX:mode>_<GPI:mode>,
31426 *subs_<optab><ALLX:mode>_<GPI:mode>,
31427 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
31428 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
31429 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
31430 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
31431 sub<mode>3_compare1): Allow stack pointer for source register.
31432 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
31434 2019-02-22 Martin Sebor <msebor@redhat.com>
31436 PR tree-optimization/88993
31437 PR tree-optimization/88853
31438 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
31440 (sprintf_dom_walker::call_info::is_string_func): New helper.
31441 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
31442 for formatted string functions.
31443 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
31445 2019-02-22 Martin Sebor <msebor@redhat.com>
31448 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
31449 unreachable subexpressions.
31451 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
31452 Hongtao Liu <hongtao.liu@intel.com>
31453 Sunil K Pandey <sunil.k.pandey@intel.com>
31456 * config/i386/i386-passes.def: Add
31457 pass_remove_partial_avx_dependency.
31458 * config/i386/i386-protos.h
31459 (make_pass_remove_partial_avx_dependency): New.
31460 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
31462 (pass_data_remove_partial_avx_dependency): New.
31463 (pass_remove_partial_avx_dependency): Likewise.
31464 (make_pass_remove_partial_avx_dependency): Likewise.
31465 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
31466 (*extendsfdf2): Add avx_partial_xmm_update.
31467 (truncdfsf2): Likewise.
31468 (*float<SWI48:mode><MODEF:mode>2): Likewise.
31469 (SF/DF conversion splitters): Disabled for TARGET_AVX.
31471 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
31473 PR middle-end/85598
31474 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
31477 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
31480 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
31481 (PTA_SKYLAKE): Add PTA_AES.
31482 (PTA_GOLDMONT): Likewise.
31484 2019-02-22 Sudakshina Das <sudi.das@arm.com>
31486 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
31487 instruction if enabled.
31488 (aarch64_override_options): Remove reference to return address key.
31490 2019-02-22 Richard Biener <rguenther@suse.de>
31492 PR tree-optimization/89440
31493 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
31494 not necessary assert.
31496 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
31499 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
31500 (oacc_replace_fn_attrib_attr): ... this new function.
31501 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
31502 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
31504 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31506 * config/arm/arm-cpus.in (ares): Rename to...
31507 (neoverse-n1): ... This. Add ares as alias.
31508 * config/arm/arm-tables.opt: Regenerate.
31509 * config/arm/arm-tune.md: Likewise.
31510 * doc/invoke.txt (ARM Options): Document neoverse-n1.
31512 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31514 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
31515 * config/aarch64/aarch64-tune.md: Regenerate.
31516 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
31518 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31520 * config/aarch64/aarch64.c (ares_tunings): Rename to...
31521 (neoversen1_tunings): ... This.
31522 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
31523 (neoverse-n1): New CPU.
31524 * config/aarch64/aarch64-tune.md: Regenerate.
31525 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
31527 2019-02-22 Richard Biener <rguenther@suse.de>
31529 PR middle-end/87609
31530 * cfghooks.h (dependence_hash): New typedef.
31531 (struct copy_bb_data): New type.
31532 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
31533 (duplicate_block): Likewise.
31534 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
31535 (copy_bbs): Create and pass down copy_bb_data.
31536 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
31537 (rtl_duplicate_bb): Likewise.
31538 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
31539 remap dependence info.
31541 2019-02-22 Richard Biener <rguenther@suse.de>
31543 PR tree-optimization/87609
31544 * tree-core.h (tree_base): Document special clique values.
31545 * tree-inline.c (remap_dependence_clique): Do not use the
31546 special clique value of one.
31547 (maybe_set_dependence_info): Use clique one.
31548 (clear_dependence_clique): New callback.
31549 (compute_dependence_clique): Clear clique one from all refs
31550 before assigning it (again).
31552 2019-02-21 Martin Sebor <msebor@redhat.com>
31554 * doc/extend.texi (__clear_cache): Correct signature.
31556 2019-02-21 Ian Lance Taylor <iant@golang.org>
31559 * varasm.c (decode_addr_const): Call lookup_constant_def rather
31560 than output_constant_def.
31561 (add_constant_to_table): New static function.
31562 (output_constant_def): Call add_constant_to_table.
31563 (tree_output_constant_def): Likewise.
31565 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31568 * builtins.c (fold_builtin_arith_overflow): If first two args are
31569 INTEGER_CSTs, set intres and ovfres to constants rather than calls
31572 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
31575 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
31576 error for -mindirect-branch/-mfunction-return with incompatible
31579 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31582 * constraints.md (q): Remove.
31583 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
31586 2019-02-21 Martin Jambor <mjambor@suse.cz>
31589 * omp-general.c (omp_extract_for_data): Removed a duplicate call
31590 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
31591 (omp_adjust_for_condition): ...here. Added necessary parameters.
31592 * omp-general.h (omp_adjust_for_condition): Updated declaration.
31593 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
31594 proper values to new parameters of omp_adjust_for_condition.
31596 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31598 PR middle-end/89412
31599 * expr.c (expand_assignment): If result is a MEM, use change_address
31600 instead of simplify_gen_subreg.
31602 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31603 David Malcolm <dmalcolm@redhat.com>
31605 PR middle-end/89091
31606 * fold-const.c (decode_field_reference): Return NULL_TREE if
31607 lang_hooks.types.type_for_size returns NULL. Check it before
31608 overwriting *exp_. Use return NULL_TREE instead of return 0.
31610 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31612 PR middle-end/88074
31613 PR middle-end/89415
31614 * toplev.c (do_compile): Double the emin/emax exponents to workaround
31617 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
31620 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
31621 TARGET_SSE in addition to TARGET_SSE_MATH.
31623 (ix86_excess_precision): Ditto.
31624 (ix86_float_exceptions_rounding_supported_p): Ditto.
31625 (use_rsqrt_p): Ditto.
31626 * config/i386/sse.md (rsqrt<mode>2): Ditto.
31628 2019-02-20 David Malcolm <dmalcolm@redhat.com>
31631 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
31632 linenum_arith_t when determining if two adjacent line spans are
31633 close enough to merge.
31634 (diagnostic_show_locus): Use linenum_arith_t when iterating over
31635 lines within each line_span.
31637 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
31640 * lra-constraints.c(uses_hard_regs_p): Fix handling of
31641 paradoxical SUBREGS.
31643 2019-02-20 Li Jia He <helijia@linux.ibm.com>
31646 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
31647 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
31648 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
31651 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
31653 * config/gcn/gcn.c (print_operand): Fix typo.
31655 2019-02-19 Richard Biener <rguenther@suse.de>
31657 PR middle-end/88074
31658 * toplev.c (do_compile): Initialize mpfr's exponent range
31659 based on available float modes.
31661 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
31663 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
31664 as long as the epilogue isn't completed.
31666 2019-02-18 Martin Sebor <msebor@redhat.com>
31668 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
31669 __has_cpp_attribute, and __has_include.
31671 2019-02-18 Martin Sebor <msebor@redhat.com>
31673 * doc/invoke.texi (-Wreturn-type): Correct and expand.
31675 2019-02-18 Martin Sebor <msebor@redhat.com>
31677 PR middle-end/89294
31678 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
31680 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
31682 2019-02-18 Richard Biener <rguenther@suse.de>
31684 PR tree-optimization/89296
31685 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
31686 of no-warning flag to cases that might emit the bogus warning.
31688 2019-02-18 Jakub Jelinek <jakub@redhat.com>
31691 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
31693 * config/arm/vfp.md (*movdi_vfp): Likewise.
31694 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
31695 "q" constraint for operands[0].
31698 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
31699 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
31700 pattern in a temporary buffer.
31701 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
31702 than 64-operands[2].
31705 * config/s390/s390.c (s390_indirect_branch_attrvalue,
31706 s390_indirect_branch_settings): Define unconditionally.
31707 (s390_set_current_function): Likewise, but guard the whole body except
31708 the s390_indirect_branch_settings call with
31709 #if S390_USE_TARGET_ATTRIBUTE.
31710 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
31712 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
31713 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
31714 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
31715 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
31716 HOST_WIDE_INT_1U instead of 1ULL.
31717 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
31718 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
31719 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
31720 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
31722 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
31725 2019-02-18 Martin Jambor <mjambor@suse.cz>
31727 PR tree-optimization/89209
31728 * tree-sra.c (create_access_replacement): New optional parameter
31729 reg_tree. Use it as a type if non-NULL and access type is not of
31731 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
31732 to create_access_replacement.
31733 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
31734 Check lacc is non-NULL before attempting to re-create it on the RHS.
31736 2019-02-18 Martin Liska <mliska@suse.cz>
31739 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
31741 (symbol_table::free_edge): Recycle m_summary_id.
31742 * cgraph.h (get_summary_id): New.
31743 (symbol_table::release_symbol): Set m_summary_id to -1
31745 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
31746 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
31747 function_summary to fast_function_summary.
31748 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
31749 * ipa-pure-const.c (class funct_state_summary_t):
31750 Switch from function_summary to fast_function_summary.
31751 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
31752 (class ipa_ref_opt_summary_t): Switch from function_summary
31753 to fast_function_summary.
31754 * symbol-summary.h (class function_summary_base): New class
31755 that is created from base of former function_summary.
31756 (function_summary_base::unregister_hooks): New.
31757 (class function_summary): Inherit from function_summary_base.
31758 (class call_summary_base): New class
31759 that is created from base of former call_summary.
31760 (class call_summary): Inherit from call_summary_base.
31761 (struct is_same): New.
31762 (class fast_function_summary): New summary class.
31763 (class fast_call_summary): New summary class.
31764 * vec.h (vec_safe_grow_cleared): New function.
31766 2019-02-18 Martin Liska <mliska@suse.cz>
31768 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
31769 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
31770 * doc/tm.texi: Document new target hook.
31771 * doc/tm.texi.in: Likewise.
31772 * target.def: Add new target macro.
31773 * gcc.c (find_fortran_preinclude_file): Do not search multilib
31776 2019-02-17 Alan Modra <amodra@gmail.com>
31779 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
31780 output reg on add insn.
31781 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
31783 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31786 * config/i386/sse.md (ssedoublemode): Remove V4HI.
31787 (PMULHRSW): Likewise.
31788 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
31790 (ssse3_pmulhrswv4hi3): New expander.
31792 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31794 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
31795 MMX. Add isa attribute.
31797 2019-02-16 Jakub Jelinek <jakub@redhat.com>
31799 PR rtl-optimization/66152
31800 * builtins.h (c_readstr): Declare.
31801 * builtins.c (c_readstr): Remove forward declaration. Add
31802 null_terminated_p argument, if false, read all bytes from the
31803 string instead of stopping after '\0'.
31804 * expr.c (string_cst_read_str): New function.
31805 (store_expr): Use string_cst_read_str instead of
31806 builtin_strncpy_read_str. Try to store by pieces the whole
31807 exp_len first, and only if that fails, split it up into
31808 store by pieces followed by clear_storage. Formatting fix.
31810 * config/i386/i386.md (*movqi_internal): Remove static from
31811 buf variable. Use output_asm_insn (buf, operands); return "";
31812 instead of return buf;.
31813 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
31814 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
31815 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
31817 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31819 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
31820 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
31821 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
31822 (CC1_SPEC): Likewise.
31823 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
31825 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31827 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
31828 the base address on 64-bit strict-alignment platforms.
31830 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
31832 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
31834 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
31836 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
31838 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
31840 PR rtl-optimization/88308
31841 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
31842 on copied instruction.
31844 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31846 * final.c (insn_current_reference_address): Replace test on JUMP_P
31847 with test on jump_to_label_p.
31848 * config/visium/visium-passes.def: New file.
31849 * config/visium/t-visium (PASSES_EXTRA): Define.
31850 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
31851 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
31852 (TRAMPOLINE_ALIGNMENT): Define.
31853 * config/visium/visium.c (visium_option_override): Do not register
31854 the machine-specific reorg pass here.
31855 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
31857 (output_branch): Adjust threshold for long branch instruction.
31858 * config/visium/visium.md (cpu): Move around.
31859 (length): Adjust for the GR6.
31861 2019-02-15 Richard Biener <rguenther@suse.de>
31862 Jakub Jelinek <jakub@redhat.com>
31864 PR tree-optimization/89278
31865 * tree-loop-distribution.c: Include tree-eh.h.
31866 (generate_memset_builtin, generate_memcpy_builtin): Call
31867 rewrite_to_non_trapping_overflow on builtin->size before passing it
31868 to force_gimple_operand_gsi.
31870 2019-02-15 Jakub Jelinek <jakub@redhat.com>
31873 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
31875 * opth-gen.awk: Likewise.
31877 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
31879 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
31880 Enable MMX, SSE and SSE2 by default.
31881 * config/i386/i386.c (ix86_option_override_internal): Do not
31882 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
31884 2019-02-14 Jakub Jelinek <jakub@redhat.com>
31886 PR rtl-optimization/89354
31887 * combine.c (make_extraction): Punt if extraction_mode is narrower
31890 2019-02-14 Maya Rashish <coypu@sdf.org>
31892 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
31893 * config/netbsd-d.c: New file.
31894 * config/t-netbsd: Add netbsd-d.o
31896 2018-02-14 Steve Ellcey <sellcey@marvell.com>
31898 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
31899 affects_type_identity to true for aarch64_vector_pcs.
31900 (aarch64_comp_type_attributes): New function.
31901 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
31903 2019-02-14 Tamar Christina <tamar.christina@arm.com>
31906 * config/arm/iterators.md (ANY64): Add V4HF.
31908 2019-02-14 Martin Liska <mliska@suse.cz>
31910 PR rtl-optimization/89242
31911 * dce.c (delete_unmarked_insns): Call free_dominance_info we
31912 process a transformation.
31914 2019-02-14 Jakub Jelinek <jakub@redhat.com>
31916 PR tree-optimization/89314
31917 * fold-const.c (fold_binary_loc): Cast strlen argument to
31918 const char * before dereferencing it. Formatting fixes.
31920 PR middle-end/89284
31921 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
31923 2019-02-13 Ian Lance Taylor <iant@golang.org>
31925 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
31926 and set current index for other optimizations.
31928 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
31930 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
31931 nonimmediate_operand as operand 2 predicate.
31932 (vec_set<VF2_512_256:mode>_0): Ditto.
31933 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
31934 (*vec_concatv2si): Remove alternative 2.
31935 (*vec_concatv4si_0): Use vm constraint for alternative 0.
31936 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
31937 (vec_concatv2di): Split alternatives 4,5,6 to ...
31938 (*vec_concatv2di_0) ... new pattern.
31940 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
31943 * config/arm/arm.c (ldm_stm_operation_p) Set
31944 addr_reg_in_reglist correctly for first register.
31945 (load_multiple_sequence): Remove dead base check.
31946 (gen_ldm_seq): Correctly set write_back for Thumb-1.
31948 2019-02-13 Tamar Christina <tamar.christina@arm.com>
31951 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
31952 Expose as @aarch64_pred_mov.
31953 * config/aarch64/aarch64.c (aarch64_classify_address):
31954 Use expand_insn which legitimizes operands.
31956 2019-02-13 Martin Liska <mliska@suse.cz>
31958 * builtins.h (expand_builtin_with_bounds): Remove declaration.
31959 * calls.c (struct arg_data): Remove special_slot, pointer_arg
31960 and pointer_offset fields.
31961 (initialize_argument_information): Remove usage of dead
31963 * cgraph.h (struct cgraph_thunk_info): Remove
31964 add_pointer_bounds_args.
31965 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
31967 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
31969 * config/i386/i386.c (ix86_function_arg_advance): Remove
31971 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
31972 (def_builtin): Remove usage of dead fields.
31973 (ix86_add_new_builtins): Likewise.
31974 * ipa-fnsummary.c (compute_fn_summary): Likewise.
31975 * ipa-icf.c (sem_function::equals_wpa): Likewise.
31976 (sem_function::init): Likewise.
31977 (sem_variable::merge): Likewise.
31978 * ipa-visibility.c (function_and_variable_visibility): Likewise.
31979 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
31980 * lto-cgraph.c (lto_output_node): Likewise.
31981 (lto_output_varpool_node): Likewise.
31982 (input_node): Likewise.
31983 (input_varpool_node): Likewise.
31984 * lto-streamer-out.c (lto_output): Likewise.
31985 * tree-inline.c (expand_call_inline): Remove usage of
31987 * tree-inline.h (struct copy_body_data): Likewise.
31988 * varpool.c (varpool_node::dump): Likewise.
31990 2019-02-13 Jakub Jelinek <jakub@redhat.com>
31992 PR middle-end/89303
31993 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
31994 into pt->vars_contains_escaped_heap instead of setting
31995 pt->vars_contains_escaped_heap to it.
31997 PR middle-end/89281
31998 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
31999 INTVAL (size), compare it to GET_MODE_MASK instead of
32000 1 << GET_MODE_BITSIZE.
32003 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32004 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32007 2019-02-13 Martin Liska <mliska@suse.cz>
32010 * cfgrtl.c (remove_barriers_from_footer): New function.
32011 (try_redirect_by_replacing_jump): Use it.
32012 (cfg_layout_redirect_edge_and_branch): Likewise.
32014 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32016 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32017 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32018 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32019 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32020 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32021 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32023 * config/rs6000/rs6000.c (builtin_function_type)
32024 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32025 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32026 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32027 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32028 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32030 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32032 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32033 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32035 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32038 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32039 268678 and revision 268657.
32040 (*movti_internal): Likewise.
32042 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32045 * config/s390/s390.c (s390_decompose_address): Update comment.
32046 (s390_check_qrst_address): Reject invalid address forms after
32049 2019-02-12 Martin Liska <mliska@suse.cz>
32052 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32053 we need default values of funct_state for a function that
32056 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32058 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32059 the object to pick the size of stores on strict-alignment platforms.
32061 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32062 (*movdi_insn_sp32): Likewise.
32063 (*movdi_insn_sp64): Likewise.
32065 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32068 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32069 types that needs constructiong.
32070 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32072 2019-02-12 Richard Biener <rguenther@suse.de>
32074 PR tree-optimization/89253
32075 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32076 duplicate the loop.
32078 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32081 * input.c (selftest::test_line_offset_overflow): New selftest.
32082 (selftest::input_c_tests): Call it.
32084 2019-02-11 Martin Sebor <msebor@redhat.com>
32086 PR tree-optimization/88771
32087 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32088 when -Wstringop-overflow is set.
32089 (builtin_memref::builtin_memref): Adjust excessive upper bound
32090 only when lower bound is not excessive.
32091 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32092 -Wstringop-ovefflow.
32093 (maybe_diag_offset_bounds): Rename...
32094 (maybe_diag_access_bounds): ...to this.
32095 (check_bounds_or_overlap): Adjust for name change above.
32097 2019-02-11 Martin Sebor <msebor@redhat.com>
32100 * builtins.c (max_object_size): Move from here...
32101 * builtins.h (max_object_size): ...and here...
32102 * tree.c (max_object_size): ...to here...
32103 * tree.h (max_object_size): ...and here.
32105 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32107 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32108 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32109 for correct semantics.
32111 2019-02-11 Alan Modra <amodra@gmail.com>
32113 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32114 -mlongcall and -mpltseq.
32115 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32116 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32117 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32118 * config/rs6000/sysv4.opt (mpltseq): New option.
32119 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32120 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32121 support is lacking. Don't allow -mpltseq with -mbss-plt.
32122 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32123 -mpltseq given for ELFv1.
32124 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32125 Only use UNSPEC_PLTSEQ for inline PLT calls.
32126 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32127 use UNSPEC_PLTSEQ for inline PLT calls.
32128 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32129 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32130 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32131 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32132 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32133 (pltseq_mtctr_<mode>): Likewise.
32135 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32137 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32139 * configure: Regenerate.
32141 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32144 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32147 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32149 * function.c (assign_parm_setup_block): Use the stored
32150 size, not the passed size, when allocating stack-space,
32151 also for a parameter with alignment larger than
32152 MAX_SUPPORTED_STACK_ALIGNMENT.
32154 2019-02-11 Martin Liska <mliska@suse.cz>
32157 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32158 * ipa-inline.c (inline_small_functions): Likewise.
32159 * ipa-pure-const.c (propagate_pure_const): Likewise.
32160 (propagate_nothrow): Likewise.
32161 * ipa-reference.c (propagate): Likewise.
32162 * ipa-utils.c (struct searchc_env): Remove unused field.
32163 (searchc): Always search across AVAIL_INTERPOSABLE.
32164 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32165 the only called IPA pure const can properly not propagate
32166 across interposable boundary.
32167 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32169 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32171 * config/nds32/nds32.md (call_internal, call_value_internal,
32172 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32174 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32176 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32179 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32181 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32184 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32186 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32188 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32190 PR tree-optimization/89268
32191 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32192 if preds is non-NULL.
32194 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32197 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32200 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32202 * config/nds32/nds32.md (trap): New pattern.
32204 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32206 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32209 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32211 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32214 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32216 * ipa-visibility.c (localize_node): Also do not localize
32217 LDPR_PREVAILING_DEF_IRONLY_EXP.
32219 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32222 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32223 instead of type_with_linkage.
32225 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32228 * params.def (uninlined-function-insns, uninlined-function-time,
32229 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32230 bound so we don't get overflows.
32232 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
32234 * config/rs6000/rs6000-string.c (expand_compare_loop,
32235 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32238 2019-02-09 Jakub Jelinek <jakub@redhat.com>
32240 PR middle-end/89246
32241 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32242 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32243 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32245 2019-02-09 Alan Modra <amodra@gmail.com>
32248 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32249 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
32252 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
32254 PR middle-end/88560
32255 * lra-constraints.c (process_alt_operands): Don't increase reject
32256 for memory when offset memory is required.
32258 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
32260 * config/s390/vector.md: Implement vector copysign.
32262 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32264 * expr.c (expand_constructor): Correct indentations.
32266 2019-02-08 Richard Biener <rguenther@suse.de>
32268 PR tree-optimization/89247
32269 * tree-if-conv.c: Include tree-cfgcleanup.h.
32270 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
32271 (tree_if_conversion): Pass through predicate vector.
32272 (pass_if_conversion::execute): Do CFG cleanup and SSA update
32273 inline, see if any if-converted loops we refrece in
32274 LOOP_VECTORIZED calls vanished and fixup.
32275 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
32277 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
32279 * config/s390/constraints.md (jdd): New constraint.
32281 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32284 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
32285 upper 16 vector registers without TARGET_AVX512VL.
32286 (*movti_internal): Likewise.
32288 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32290 PR rtl-optimization/89234
32291 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
32292 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
32293 (copy_reg_eh_region_note_backward): Likewise.
32295 2019-02-08 Richard Biener <rguenther@suse.de>
32297 PR middle-end/89223
32298 * tree-data-ref.c (initialize_matrix_A): Fail if constant
32299 doesn't fit in HWI.
32300 (analyze_subscript_affine_affine): Handle failure from
32301 initialize_matrix_A.
32303 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32305 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
32308 2019-02-07 David Malcolm <dmalcolm@redhat.com>
32310 PR tree-optimization/86637
32311 PR tree-optimization/89235
32312 * tree-vect-loop.c (optimize_mask_stores): Add an
32313 auto_purge_vect_location sentinel to ensure that vect_location is
32315 * tree-vectorizer.c
32316 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
32317 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
32318 to ensure that vect_location is purged on exit.
32319 (pass_slp_vectorize::execute): Likewise, replacing the manual
32321 * tree-vectorizer.h (class auto_purge_vect_location): New class.
32323 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32325 * config/aarch64/iterators.md (max_opp): New code_attr.
32326 (USMAX): New code iterator.
32327 * config/aarch64/predicates.md (aarch64_smin): New predicate.
32328 (aarch64_smax): Likewise.
32329 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
32330 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
32333 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
32336 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
32337 for TARGET_AVX512VL.
32338 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
32340 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
32342 * config/s390/s390-builtin-types.def: Add new types.
32343 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
32344 (s390_vec_xlw4): Make the memory operand into a const pointer.
32345 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
32347 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
32348 a new vector type with the alignment of the scalar memory operand.
32350 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
32351 Jakub Jelinek <jakub@redhat.com>
32354 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
32355 arm_count_ldrdstrd_insns): New declarations.
32356 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
32358 (valid_operands_ldrd_strd): New function.
32359 (arm_count_ldrdstrd_insns): New function.
32360 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
32361 sets instead of single DImode set and define new insns to match this.
32363 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32365 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
32366 Make it a C initializer.
32368 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32371 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
32373 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32375 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
32376 Use neon_dot<q> for type.
32377 (neon_<sup>dot_lane<vsi2qi>): Likewise.
32379 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32381 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
32382 Use neon_dot<q> for type.
32383 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
32384 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
32386 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
32388 PR rtl-optimization/89225
32389 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
32392 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
32394 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
32395 after restoring registers saved to allocate the frame on Windows.
32397 2019-02-06 Richard Biener <rguenther@suse.de>
32399 PR tree-optimization/89182
32400 * graphite.h (cached_scalar_evolution_in_region): Declare.
32401 * graphite.c (struct seir_cache_key): New.
32402 (struct sese_scev_hash): Likewise.
32403 (seir_cache): New global.
32404 (cached_scalar_evolution_in_region): New function.
32405 (graphite_transform_loops): Allocate and release seir_cache.
32406 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
32407 cached_scalar_evolution_in_region.
32408 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32410 (scop_detection::graphite_can_represent_expr: Use
32411 cached_scalar_evolution_in_region.
32412 (scop_detection::stmt_simple_for_scop_p): Likewise.
32413 (find_params_in_bb): Likewise.
32414 (gather_bbs::before_dom_children): Likewise.
32415 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
32416 (add_loop_constraints): Likewise.
32418 2019-02-06 Jakub Jelinek <jakub@redhat.com>
32420 PR middle-end/89210
32421 * fold-const-call.c (fold_const_vec_convert): Pass true as last
32422 operand to new_unary_operation only if both element types are integral
32423 and it isn't a widening conversion. Return NULL_TREE if
32424 new_unary_operation failed.
32426 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
32429 * config/s390/s390.md: Remove load and test FP splitter.
32431 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32434 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
32435 expand_compare_loop, expand_block_compare_gpr,
32436 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
32437 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
32438 #include "profile-count.h" and "predict.h" for types and functions
32439 needed to work with REG_BR_PROB notes.
32441 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32444 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
32445 for the long branch case.
32447 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32450 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
32451 can throw, non-call exceptions are enabled and we can't delete
32452 dead exceptions or alter cfg. Set must_clean if
32453 delete_insn_and_edges returns true, don't set it blindly for calls.
32454 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
32456 PR rtl-optimization/89195
32457 * combine.c (make_extraction): For MEMs, don't extract bytes outside
32458 of the original MEM.
32460 2019-02-05 Martin Liska <mliska@suse.cz>
32462 PR gcov-profile/89000
32463 * gcov.c (function_summary): Remove argument.
32464 (file_summary): New function.
32465 (print_usage): Replace tabs with spaces.
32466 (generate_results): Use new function file_summary.
32468 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32471 * optabs.c (prepare_cmp_insn): Pass x and y to
32472 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
32474 2019-02-05 Richard Biener <rguenther@suse.de>
32476 PR middle-end/89150
32477 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
32478 (struct bitmap_element): Drop chain_prev so we properly recurse on
32479 the prev member, supporting tree views.
32480 (struct bitmap_head): GTY skip the obstack member.
32482 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
32485 * doc/extend.texi (Vector Extensions): Add an example of using vector
32486 types together with x86 intrinsics.
32488 2019-02-04 Alan Modra <amodra@gmail.com>
32490 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
32491 str[] size to 160, and comment.
32493 2019-02-04 Alan Modra <amodra@gmail.com>
32495 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
32496 (rs6000_pltseq_template): Guard output of TLS markers with
32497 TARGET_TLS_MARKERS.
32498 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
32499 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
32500 to use inline PLT sequences.
32501 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32502 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32503 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
32505 2019-02-04 Martin Liska <mliska@suse.cz>
32508 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
32509 out when ipa_fn_summaries does not contain entry for callee.
32511 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
32513 * config/sparc/sparc.h: Remove superfluous blank lines.
32514 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
32515 (got_register_rtx): ...this.
32516 (sparc_got): Adjust to above renaming.
32517 (sparc_tls_got): Likewise.
32518 (sparc_delegitimize_address): Likewise.
32519 (sparc_output_mi_thunk): Likewise.
32520 (sparc_init_pic_reg): Likewise.
32521 (save_local_or_in_reg_p): Fix test on the GOT register.
32522 (USE_HIDDEN_LINKONCE): Move around.
32523 (get_pc_thunk_name): Likewise.
32524 (gen_load_pcrel_sym): Likewise.
32525 (load_got_register): Likewise.
32527 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
32529 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
32530 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
32532 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32534 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
32535 into consideration.
32537 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32539 * config.gcc (with_nds32_lib, glibc):
32540 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
32541 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
32542 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
32544 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
32547 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
32548 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
32549 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
32550 (*rcpsf2_sse): Ditto.
32551 (*rsqrtsf2_sse): Ditto.
32552 (sse4_1_round<mode<2): Ditto.
32554 2019-02-03 Richard Biener <rguenther@suse.de>
32557 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
32560 2019-02-02 Jakub Jelinek <jakub@redhat.com>
32562 PR middle-end/87887
32563 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32564 Punt with warning on aggregate return or argument types. Ignore
32565 type/mode checking for uniform arguments.
32567 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
32569 * combine.c (try_combine): Do not print "Can't combine" messages unless
32570 printing failed combination attempts.
32572 2019-02-01 Martin Jambor <mjambor@suse.cz>
32575 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
32576 segment and global segment variables before making them static.
32578 2019-02-01 Martin Jambor <mjambor@suse.cz>
32580 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
32581 missed optimization dump with dump_enabled_p.
32583 2019-02-01 Richard Biener <rguenther@suse.de>
32585 PR middle-end/88597
32586 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
32587 the instantiate cache.
32588 (instantiate_scev_binary): Elide second operand procesing
32589 if equal to the first.
32590 * tree-chrec.c (chrec_contains_symbols): Add visited set.
32591 (chrec_contains_undetermined): Likewise.
32592 (tree_contains_chrecs): Likewise.
32594 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
32596 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
32598 2019-02-01 Jakub Jelinek <jakub@redhat.com>
32600 PR tree-optimization/89143
32601 * wide-int-range.h (wide_int_range_absu): Declare.
32602 * wide-int-range.cc (wide_int_range_absu): New function.
32603 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
32605 PR tree-optimization/88107
32606 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
32607 instead of assertion that eh_region_outermost is non-NULL, if it
32608 is NULL, set *ALL to true and return NULL.
32609 (move_sese_region_to_fn): Adjust caller, if all is set, call
32610 duplicate_eh_regions with NULL region.
32612 2019-02-01 Richard Biener <rguenth@suse.de>
32614 PR rtl-optimization/88593
32615 * mode-switching.c (optimize_mode_switching): Free dominators before
32616 calling cleanup_cfg.
32618 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
32620 PR tree-optimization/88932
32621 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
32623 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32625 PR middle-end/89137
32626 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
32627 bogus clang warning.
32629 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
32632 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
32633 alternative to avoid partial SSE register stall for TARGET_AVX.
32634 (truncdfsf2): Ditto.
32635 (sse4_1_round<mode>2): Ditto.
32637 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
32639 PR tree-optimization/89008
32640 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
32641 process anything of the form X * 0.
32643 2019-01-31 Richard Biener <rguenther@suse.de>
32645 PR tree-optimization/89135
32646 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
32647 with abnormal preds.
32649 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32652 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
32653 always_inline callees into no_sanitize_address callers.
32655 2019-01-31 Richard Biener <rguenther@suse.de>
32657 PR rtl-optimization/89115
32658 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
32660 2019-01-30 Martin Sebor <msebor@redhat.com>
32663 * doc/extend.texi (cast to a union): Correct and expand.
32665 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
32667 PR rtl-optimization/87246
32668 * lra-constraints.c (simplify_operand_subreg): Reload memory
32669 in subreg if the address became invalid.
32671 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
32674 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
32675 Disable for little-endian.
32677 2019-01-30 Richard Biener <rguenther@suse.de>
32679 PR rtl-optimization/89115
32680 * opts.c (default_options_optimization): Reduce
32681 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
32682 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
32685 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
32687 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
32688 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
32689 type of vector element when vec_extract is implemented by direct
32692 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
32694 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
32696 2019-01-30 Richard Biener <rguenther@suse.de>
32698 PR tree-optimization/89111
32699 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
32700 canonicalization to appropriately sized access types.
32702 2019-01-30 Jakub Jelinek <jakub@redhat.com>
32705 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
32706 for arguments to functions that are TU-local and shouldn't be
32707 referenced by assembly.
32709 2019-01-30 Ulrich Drepper <drepper@redhat.com>
32711 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
32714 2019-01-29 Martin Sebor <msebor@redhat.com>
32717 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
32719 2019-01-29 Jakub Jelinek <jakub@redhat.com>
32723 * omp-simd-clone.c (simd_clone_clauses_extract)
32724 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
32725 OMP_CLAUSE_ALIGNED_ALIGNMENT.
32727 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
32729 * config.gcc: Force .init_array for ARC.
32731 2019-01-29 Richard Biener <rguenther@suse.de>
32734 * dwarf2out.c (collect_skeleton_dies): New helper.
32735 (copy_decls_for_unworthy_types): Call it.
32736 (build_abbrev_table): Assert we do not try to replace
32737 DW_AT_signature refs with local refs.
32739 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32741 PR middle-end/89002
32742 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
32743 for lastprivate/linear IV, push gimplify context around gimplify_assign
32744 and, if it needed any temporaries, pop it into a gimple bind around the
32747 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
32749 * common.opt (-Wattribute-alias): Remove "no-" from name.
32750 Make -Wattribute-alias command line option and
32751 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
32753 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32756 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
32757 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
32759 (bmi2): Add missing @opindex.
32760 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
32761 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
32762 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
32763 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
32764 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
32765 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
32766 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
32767 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
32768 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
32769 xsavec, xsaveopt and xsaves options.
32771 2019-01-28 Richard Biener <rguenther@suse.de>
32774 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
32777 2019-01-28 Richard Biener <rguenther@suse.de>
32779 PR tree-optimization/88739
32780 * tree-cfg.c (verify_types_in_gimple_reference): Verify
32781 BIT_FIELD_REFs only are applied to mode-precision operands
32782 when they are integral.
32783 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
32784 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
32785 BIT_FIELD_REFs of non-mode-precision integral operands.
32787 2019-01-27 Jakub Jelinek <jakub@redhat.com>
32790 * config/i386/sse.md
32791 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
32792 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
32793 first constants in pairs are multiples of 2. Formatting fixes.
32794 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
32795 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
32796 first constants in each quadruple are multiples of 4. Formatting fixes.
32798 2019-01-26 Martin Jambor <mjambor@suse.cz>
32801 * tree-inline.c: Include tree-cfgcleanup.h.
32802 (delete_unreachable_blocks_update_callgraph): Move...
32803 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
32804 ...here, make externally visible, make second argument bool, adjust
32806 * tree-cfgcleanup.c: Include cgraph.h.
32807 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
32809 * ipa-prop.c: Include tree-cfgcleanup.h.
32810 (ipcp_transform_function): Call
32811 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
32813 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
32815 PR rtl-optimization/88846
32816 * ira.c (process_set_for_memref_referenced_p): New.
32817 (memref_referenced_p): Add new param. Use
32818 process_set_for_memref_referenced_p. Add new switch cases.
32819 (memref_used_between_p): Pass new arg to memref_referenced_p.
32821 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
32824 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
32825 argument ABI_BREAK. Set to true if the calculated alignment has
32826 changed in gcc-9. Check bit-fields for their base type alignment.
32827 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
32828 (aarch64_function_arg_boundary): Likewise.
32829 (aarch64_gimplify_va_arg_expr): Likewise.
32831 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32833 PR middle-end/89037
32834 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
32835 instead of accessing TREE_INT_CST_ELT directly.
32837 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
32839 * doc/sourcebuild.texi (Environment attributes): Add fenv and
32840 fenv_exceptions description.
32842 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
32844 PR rtl-optimization/87763
32845 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
32846 Allow SUBREG when matching CC_NZmode compare.
32848 2019-01-25 Richard Biener <rguenther@suse.de>
32850 PR tree-optimization/89049
32851 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
32852 Look at the pattern stmt to determine if the stmt is vectorized.
32854 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32856 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
32857 (pred_mov<mode>): Handle all-register forms using both a new
32858 alternative and a split.
32860 2019-01-25 Richard Biener <rguenther@suse.de>
32862 PR tree-optimization/86865
32863 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32864 Reject non-do-while loops.
32866 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
32868 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
32869 * config/rs6000/constraints.md (Q constraint): Use REG_P.
32870 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
32871 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
32872 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
32873 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32874 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
32875 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
32876 vlogical_operand, gpc_reg_operand, int_reg_operand,
32877 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
32878 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
32879 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
32880 (save_world_operation, restore_world_operation, lmw_operation,
32881 stmw_operation): Use MEM_P and REG_P.
32882 (tie_operand): Use MEM_P.
32883 (vrsave_operation, crsave_operation): Use REG_P.
32884 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
32885 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
32886 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
32887 (call_operand): Use HARD_REGISTER_P.
32888 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
32890 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
32891 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
32892 quad_aligned_load_p, replace_swapped_aligned_store,
32893 recombine_lvx_pattern, replace_swapped_aligned_load,
32894 recombine_stvx_pattern): Use MEM_P.
32895 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
32896 Use MEM_P and SYMBOL_REF_P.
32897 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
32898 (insn_is_swappable_p): Use REG_P and MEM_P.
32899 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
32900 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
32902 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
32903 Use CONST_DOUBLE_P.
32904 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
32906 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
32907 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
32908 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
32909 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
32911 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
32912 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
32913 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
32914 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
32915 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
32916 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
32917 rs6000_split_logical_di): Use CONST_INT_P.
32918 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
32919 REG_P and SYMBOL_REF_P.
32920 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
32921 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
32922 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
32923 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
32924 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
32925 (small_data_operand, print_operand_address): Use CONST_INT_P and
32927 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
32928 (rs6000_init_hard_regno_mode_ok, direct_move_p):
32929 Use HARD_REGISTER_NUM_P.
32930 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
32931 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
32932 SUBREG_P and SYMBOL_REF_P.
32933 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
32934 and HARD_REGISTER_NUM_P.
32935 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
32937 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
32938 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
32940 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
32941 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
32942 find_addr_reg): Use REG_P.
32943 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
32944 (rs6000_emit_le_vsx_move): Use SUBREG_P.
32945 (offsettable_ok_by_alignment, constant_pool_expr_p,
32946 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
32947 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
32948 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
32949 rs6000_assemble_integer, create_TOC_reference,
32950 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
32951 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
32952 (rs6000_split_vec_extract_var): Use reg_or_subregno.
32953 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
32954 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
32955 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32956 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32957 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
32958 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
32959 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
32960 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
32961 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
32962 and cbranch<mode>4): Use CONST_INT_P.
32963 (multiple define_splits): Use REG_P and SUBREG_P.
32964 (define_expands call, call_value): Use MEM_P.
32965 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
32966 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
32967 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
32968 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
32969 and HARD_REGISTER_NUM_P.
32970 (multiple define_splits): Use HARD_REGISTER_NUM_P.
32972 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
32974 PR rtl-optimization/88948
32975 * rtl.h (prepare_copy_insn): New prototype.
32976 * gcse.c (prepare_copy_insn): New function, split out from
32977 process_insert_insn.
32978 (process_insert_insn): Use prepare_copy_insn.
32979 * store-motion.c (replace_store_insn): Use prepare_copy_insn
32980 instead of gen_move_insn.
32982 2019-01-24 Jakub Jelinek <jakub@redhat.com>
32985 * config/i386/i386.c (ix86_pic_register_p): Return true for
32986 UNSPEC_SET_GOT too.
32988 PR tree-optimization/88964
32989 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
32990 punt if HONOR_SNANS (chrec).
32992 PR middle-end/89015
32993 * tree-nested.c (convert_nonlocal_reference_stmt,
32994 convert_local_reference_stmt, convert_tramp_reference_stmt,
32995 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
32996 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
32997 or GIMPLE_OMP_TASK.
32999 PR tree-optimization/89027
33000 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33001 for "omp simd array" variables.
33003 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33006 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33007 force the alignment of m_val.
33009 2019-01-24 Richard Biener <rguenther@suse.de>
33012 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33013 When in "legacy" debug mode make sure to reset self-origins.
33015 2019-01-24 Martin Liska <mliska@suse.cz>
33017 PR gcov-profile/88994
33018 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33019 result will be always smaller or equal to the original.
33020 * gcov.c (mangle_name): Fix else branch where we should
33021 also copy to PTR and shift the pointer.
33023 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33025 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33026 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33028 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33030 * common/config/i386/i386-common.c
33031 (OPTION_MASK_ISA_ENQCMD_SET,
33032 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33033 (ix86_handle_option): Handle -menqcmd.
33034 * config.gcc (enqcmdintrin.h): New header file.
33035 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33036 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33038 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33040 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33041 __builtin_ia32_enqcmds): New builtins.
33042 * config/i386/i386-c.c (__ENQCMD__): New macro.
33043 * config/i386/i386-option.c (ix86_target_string): Add
33045 (ix86_valid_target_attribute_inner_p): Likewise.
33046 * config/i386/i386-expand.c
33047 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33048 IX86_BUILTIN_ENQCMDS.
33049 * config/i386/i386.h (TARGET_ENQCMD): New.
33050 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33051 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33052 (movdir64b_<mode>): Parameterize to enable share expansion code
33053 with ENQCMD in function ix86_expand_builtin.
33054 * config/i386/i386.opt: Add -menqcmd.
33055 * config/i386/immintrin.h: Include enqcmdintrin.h.
33056 * config/i386/enqcmdintrin.h: New intrinsic file.
33057 * doc/invoke.texi: Add -menqcmd.
33059 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33060 Steve Ellcey <sellcey@marvell.com>
33063 * recog.c (address_operand): Return false on wrong mode for address.
33064 (constrain_operands): Check for mode with 'p' constraint.
33066 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33069 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33070 Disparage MMX alternative.
33071 (sse2_cvtpd2pi): Ditto.
33072 (sse2_cvttpd2pi): Ditto.
33074 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33077 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33078 use-after-free of the result of
33079 aarch64_get_extension_string_for_isa_flags.
33081 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33084 * doc/extend.texi: Document break and continue behavior in
33085 statement expressions.
33087 2019-01-23 Richard Biener <rguenther@suse.de>
33089 PR tree-optimization/89008
33090 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33091 not leave another stray operand.
33093 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33095 * BASE-VER: Bump to 9.0.1.
33097 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33099 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33100 thunk that returns by reference, use the type of the return object
33101 of the thunk instead of that of the alias to build the dereference.
33103 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33105 * config/arc/atomic.md: Add operand to DMB instruction.
33107 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33109 PR tree-optimization/88964
33110 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33111 build_zero_cst instead of build_int_cst. Return false for loop
33112 invariants which honor signed zeros.
33114 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33116 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33118 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33121 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33122 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33123 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33125 PR middle-end/88968
33126 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33127 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33130 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33131 Disable for little endian.
33133 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33136 * config/arm/arm.c (arm_needs_double_word_align): Check
33137 DECL_BIT_FIELD_TYPE.
33139 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33140 H.J. Lu <hongjiu.lu@intel.com>
33143 * config/i386/i386-builtin.def: Add mask2 to all builtin
33144 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33146 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33147 (BDESC_FIRST): Likewise.
33148 (define_builtin): Add an argument for mask2. Updated to handle
33149 both ix86_isa_flags and ix86_isa_flags2.
33150 (define_builtin_const): Likewise.
33151 (define_builtin_pure): Likewise.
33152 (define_builtin2): Deleted.
33153 (define_builtin_const2): Likewise.
33154 (builtin_description): Add a member, mask2.
33155 (bdesc_*): Add mask2 to builtin initializations.
33156 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33157 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33159 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33161 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33164 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33167 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33170 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33171 alignment is dominated by a bitfield with 64-bit aligned base type.
33172 (arm_function_arg): Emit a warning if the alignment has changed since
33173 earlier GCC releases.
33174 (arm_function_arg_boundary): Likewise.
33175 (arm_setup_incoming_varargs): Likewise.
33177 2019-01-22 Richard Biener <rguenther@suse.de>
33179 PR tree-optimization/88862
33180 * graphite-scop-detection.c
33181 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33183 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33185 * doc/extend.tex (AMD GCN Function Attributes): New section.
33186 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33187 * doc/invoke.texi (AMD GCN Options): New section.
33188 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33190 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33192 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33193 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33195 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33197 PR tree-optimization/88044
33198 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33199 is false in the first iteration, but !every_iteration, return false
33200 instead of true with niter->niter zero.
33202 PR rtl-optimization/88904
33203 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33204 any nonequal registers before processing BB_END (b).
33207 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33209 (expand_binop_directly, expand_doubleword_clz,
33210 expand_doubleword_popcount, expand_ctz, expand_ffs,
33211 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33213 PR rtl-optimization/49429
33215 PR rtl-optimization/86334
33217 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33218 addressable from here...
33219 (emit_block_op_via_libcall): ... to here.
33221 2019-01-22 Richard Biener <rguenther@suse.de>
33223 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33224 auto_vec for cost vector to fix memleak.
33225 (vectorize_fold_left_reduction): Properly gather SLP defs.
33226 (vectorizable_comparison): Do not swap operands to properly
33229 2019-01-22 Alan Modra <amodra@gmail.com>
33232 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33233 stays a reg. Allow a const_int.
33234 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33235 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33236 (IS_NOMARK_TLSGETADDR): Define.
33237 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33238 (rs6000_output_tlsargs): New function.
33239 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33240 __tls_get_addr call takes an arg.
33241 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33242 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33244 (call_value_nonlocal_sysv): ..or here, delete split.
33245 (tls_gdld_nomark): Delete.
33246 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33247 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
33248 (call_value_nonlocal_sysv): Likewise.
33249 (call_value_nonlocal_sysv_secure): Likewise.
33250 (call_value_nonlocal_aix): Likewise.
33251 (call_value_indirect_aix): Likewise.
33252 (call_value_indirect_elfv2): Likewise.
33253 (call_value_local32, call_value_local64): Disable for no-mark tls.
33254 (call_value_local_aix): Likewise.
33256 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
33259 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
33260 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
33262 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
33264 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
33265 string contents as hash_map keys.
33267 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33270 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
33271 for rvalue context. Handle rvalues correctly. Use min_align_of_type
33272 instead of TYPE_ALIGN.
33273 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
33274 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
33275 pointer from TYPE_STUB_DECL.
33277 2019-01-21 Richard Biener <rguenther@suse.de>
33279 PR tree-optimization/88934
33280 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
33281 at the possibly non-constant operand.
33282 (vect_get_constant_vectors): Adjust.
33284 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
33287 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
33288 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
33289 instead of _X86INTRIN_H_INCLUDED.
33290 * onfig/i386/clwbintrin.h: Likewise.
33291 * config/i386/pkuintrin.h: Likewise.
33292 * config/i386/prfchwintrin.h: Likewise.
33293 * config/i386/rdseedintrin.h: Likewise.
33294 * config/i386/wbnoinvdintrin.h: Likewise.
33295 * config/i386/xsavecintrin.h: Likewise.
33296 * config/i386/xsavesintrin.h: Likewise.
33297 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
33298 * config/i386/xsaveintrin.h: Likewise.
33299 * config/i386/xsaveoptintrin.h: Likewise.
33300 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
33301 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
33302 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
33303 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
33304 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
33305 * config/i386/immintrin.h: Here.
33307 2019-01-20 Martin Jambor <mjambor@suse.cz>
33310 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
33311 with aa_walk_budget.
33312 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
33313 aa_walk_budget_p parameter.
33314 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
33315 walk. Updated all callers.
33316 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
33317 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
33319 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
33320 parameter info. Extract info from fbi. Pass fbi to recursive calls
33321 and to unmodified_parm.
33322 (phi_result_unknown_predicate): New parameter fbi, removed parameter
33323 info, updated call to will_be_nonconstant_expr_predicate.
33324 (param_change_prob): New parameter fbi, limit AA walking.
33325 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
33326 calls to various above functions.
33327 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
33328 parameter. Use it to limit AA walking.
33329 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
33330 fbi, limit AA walk.
33331 (detect_type_change): New parameter fbi, pass it on to
33332 detect_type_change_from_memory_writes.
33333 (detect_type_change_ssa): Likewise.
33334 (aa_overwalked): Removed.
33335 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
33336 accordingly, adjust to the neew AA limiting scheme.
33337 (parm_ref_data_preserved_p): Likewise.
33338 (ipa_compute_jump_functions_for_edge): Adjust call to
33340 (ipa_analyze_call_uses): Likewise.
33341 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
33342 (ipa_analyze_node): Initialize aa_walk_budget.
33343 (ipcp_transform_function): Likewise.
33344 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
33345 to get_dynamic_type.
33347 2019-01-19 Jakub Jelinek <jakub@redhat.com>
33349 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
33350 outside of #if CHECKING_P code.
33352 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
33354 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
33355 New function, split out from...
33356 (loop_versioning::analyze_stride): ...here.
33357 (loop_versioning::find_per_loop_multiplication): Use gassign.
33358 (loop_versioning::analyze_term_using_scevs): Return a success code.
33359 (loop_versioning::analyze_arbitrary_term): New function.
33360 (loop_versioning::analyze_address_fragment): Use
33361 analyze_arbitrary_term if all else fails.
33363 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
33366 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
33369 2019-01-18 Richard Biener <rguenther@suse.de>
33371 PR tree-optimization/88903
33372 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
33373 scalar stmts a SLP shift amount is composed of when detecting
33376 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
33379 * config/arm/arm-cpus.in (mp): New feature.
33380 (sec): New feature.
33381 (fgroup ARMv7ve): Add mp and sec features.
33382 (arch armv7-a): Add options to allow mp and sec extensions.
33383 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
33384 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
33385 extenstions to the base architecture.
33386 (cpu cortex-a8): Add sec extension to the base architecture.
33387 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
33388 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
33389 variants down to the base v7-a varaint.
33390 * config/arm/t-multilib (v7_a_arch_variants): New variable.
33391 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
33392 of permitted extensions for -march=armv7-a and for
33393 -mcpu=generic-armv7-a.
33395 2019-01-18 Martin Liska <mliska@suse.cz>
33397 * params.def: Fix comment.
33398 * tree-profile.c (gimple_init_gcov_profiler): Bump function
33400 (gimple_gen_ic_func_profiler): Likewise.
33402 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33404 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
33405 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
33406 and put in error checks for stack protector guard options.
33407 (aarch64_stack_protect_guard): New.
33408 (TARGET_STACK_PROTECT_GUARD): Define.
33409 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
33410 (reg_stack_protect_address<mode>): New.
33411 (stack_protect_set): Adjust for SSP_GLOBAL.
33412 (stack_protect_test): Likewise.
33413 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
33414 (-mstack-protector-guard): Likewise.
33415 (-mstack-protector-guard-offset): Likewise.
33417 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33419 PR tree-optimization/86214
33420 * tree-inline.h (struct copy_body_data): Add
33421 add_clobbers_to_eh_landing_pads member.
33422 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
33423 (copy_edges_for_bb): Call it if EH edge destination is <
33424 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
33425 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
33426 if flag_stack_reuse != SR_NONE and clear it afterwards.
33428 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
33431 * doc/install.texi (with-multilib-list): Document for aarch64.
33433 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33436 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
33437 (("..."))) with ("...").
33439 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
33441 * doc/extend.texi (Built-in Functions for Memory Model Aware
33442 Atomic Operations): Document atomic fetch and nand.
33444 2019-01-18 Martin Liska <mliska@suse.cz>
33445 Richard Biener <rguenther@suse.de>
33447 PR middle-end/88587
33448 * cgraph.h (create_version_clone_with_body): Add new argument
33450 * cgraphclones.c (cgraph_node::create_version_clone): Add
33451 DECL_ATTRIBUTES to a newly created decl. And call
33452 valid_attribute_p so that proper cl_target_optimization_node
33453 is set for the newly created declaration.
33454 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
33456 (expand_target_clones): Do not call valid_attribute_p, it must
33458 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
33461 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33464 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
33465 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
33466 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
33468 2019-01-17 Martin Sebor <msebor@redhat.com>
33470 PR middle-end/88273
33471 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
33472 Handle anti-ranges the same as no range at all.
33474 2018-01-17 Steve Ellcey <sellcey@cavium.com>
33476 * config/aarch64/aarch64.c (cgraph.h): New include.
33477 (intl.h): New include.
33478 (supported_simd_type): New function.
33479 (currently_supported_simd_type): Ditto.
33480 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
33481 (aarch64_simd_clone_adjust): Ditto.
33482 (aarch64_simd_clone_usable): Ditto.
33483 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
33484 (TARGET_SIMD_CLONE_ADJUST): Ditto.
33485 (TARGET_SIMD_CLONE_USABLE): Ditto.
33486 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
33487 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
33490 2019-01-17 Martin Sebor <msebor@redhat.com>
33492 PR tree-optimization/88800
33493 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
33494 NO_WARNING bit here. Avoid folding out-of-bounds calls.
33495 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
33496 redundant argument. Add new argument and issue diagnostics under
33497 its control. Detect out-of-bounds access even with warnings
33499 (check_bounds_or_overlap): Change return type. Add argument.
33500 (wrestrict_dom_walker::check_call): Adjust.
33501 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
33502 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
33503 check_bounds_or_overlap's return value.
33504 (handle_builtin_stxncpy): Same.
33505 (handle_builtin_strcat): Same.
33507 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33508 Kwok Cheung Yeung <kcy@codesourcery.com>
33509 Julian Brown <julian@codesourcery.com>
33510 Tom de Vries <tom@codesourcery.com>
33512 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
33514 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33516 * doc/sourcebuild.texi: Document dg-require-effective-target
33517 llvm_binutils and offload_gcn.
33519 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33520 Kwok Cheung Yeung <kcy@codesourcery.com>
33521 Julian Brown <julian@codesourcery.com>
33522 Tom de Vries <tom@codesourcery.com>
33524 * doc/sourcebuild.texi: Document dg-required-effective-target
33527 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33528 Kwok Cheung Yeung <kcy@codesourcery.com>
33529 Julian Brown <julian@codesourcery.com>
33530 Tom de Vries <tom@codesourcery.com>
33531 Jan Hubicka <hubicka@ucw.cz>
33532 Martin Jambor <mjambor@suse.cz>
33534 * config.gcc: Add amdgcn*-*-amdhsa configuration.
33535 * configure.ac: Check for dlopen.
33536 * configure: Regenerate.
33538 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33539 Kwok Cheung Yeung <kcy@codesourcery.com>
33540 Julian Brown <julian@codesourcery.com>
33541 Tom de Vries <tom@codesourcery.com>
33542 Jan Hubicka <hubicka@ucw.cz>
33543 Martin Jambor <mjambor@suse.cz>
33545 * common/config/gcn/gcn-common.c: New file.
33546 * config/gcn/driver-gcn.c: New file.
33547 * config/gcn/gcn-builtins.def: New file.
33548 * config/gcn/gcn-hsa.h: New file.
33549 * config/gcn/gcn-modes.def: New file.
33550 * config/gcn/gcn-opts.h: New file.
33551 * config/gcn/gcn-passes.def: New file.
33552 * config/gcn/gcn-protos.h: New file.
33553 * config/gcn/gcn-run.c: New file.
33554 * config/gcn/gcn-tree.c: New file.
33555 * config/gcn/gcn.c: New file.
33556 * config/gcn/gcn.h: New file.
33557 * config/gcn/gcn.opt: New file.
33558 * config/gcn/t-gcn-hsa: New file.
33560 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33561 Kwok Cheung Yeung <kcy@codesourcery.com>
33562 Julian Brown <julian@codesourcery.com>
33563 Tom de Vries <tom@codesourcery.com>
33564 Jan Hubicka <hubicka@ucw.cz>
33565 Martin Jambor <mjambor@suse.cz>
33567 * config/gcn/constraints.md: New file.
33568 * config/gcn/gcn-valu.md: New file.
33569 * config/gcn/gcn.md: New file.
33570 * config/gcn/predicates.md: New file.
33572 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
33574 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
33575 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
33576 (stmt_uses_0_or_null_in_undefined_way): Likewise.
33577 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
33579 2019-01-17 Tamar Christina <tamar.christina@arm.com>
33582 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
33583 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
33584 it and document registers.
33586 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33588 * config/aarch64/aarch64.c (ares_tunings): Define.
33589 * config/aarch64/aarch64-cores.def (ares): Use the above.
33591 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33595 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
33597 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
33598 (_mm512_fixupimm_round_pd): Update parameters and builtin.
33599 (_mm512_maskz_fixupimm_round_pd): Ditto.
33600 (_mm512_fixupimm_round_ps): Ditto.
33601 (_mm512_maskz_fixupimm_round_ps): Ditto.
33602 (_mm_fixupimm_round_sd): Ditto.
33603 (_mm_maskz_fixupimm_round_sd): Ditto.
33604 (_mm_fixupimm_round_ss): Ditto.
33605 (_mm_maskz_fixupimm_round_ss): Ditto.
33606 (_mm512_fixupimm_pd): Ditto.
33607 (_mm512_maskz_fixupimm_pd): Ditto.
33608 (_mm512_fixupimm_ps): Ditto.
33609 (_mm512_maskz_fixupimm_ps): Ditto.
33610 (_mm_fixupimm_sd): Ditto.
33611 (_mm_maskz_fixupimm_sd): Ditto.
33612 (_mm_fixupimm_ss): Ditto.
33613 (_mm_maskz_fixupimm_ss): Ditto.
33614 (_mm512_mask_fixupimm_round_pd): Update builtin.
33615 (_mm512_mask_fixupimm_round_ps): Ditto.
33616 (_mm_mask_fixupimm_round_sd): Ditto.
33617 (_mm_mask_fixupimm_round_ss): Ditto.
33618 (_mm512_mask_fixupimm_pd): Ditto.
33619 (_mm512_mask_fixupimm_ps): Ditto.
33620 (_mm_mask_fixupimm_sd): Ditto.
33621 (_mm_mask_fixupimm_ss): Ditto.
33622 * config/i386/avx512vlintrin.h:
33623 (_mm256_fixupimm_pd): Update parameters and builtin.
33624 (_mm256_maskz_fixupimm_pd): Ditto.
33625 (_mm256_fixupimm_ps): Ditto.
33626 (_mm256_maskz_fixupimm_ps): Ditto.
33627 (_mm_fixupimm_pd): Ditto.
33628 (_mm_maskz_fixupimm_pd): Ditto.
33629 (_mm_fixupimm_ps): Ditto.
33630 (_mm_maskz_fixupimm_ps): Ditto.
33631 (_mm256_mask_fixupimm_pd): Update builtin.
33632 (_mm256_mask_fixupimm_ps): Ditto.
33633 (_mm_mask_fixupimm_pd): Ditto.
33634 (_mm_mask_fixupimm_ps): Ditto.
33635 * config/i386/i386-builtin-types.def: Add new types and remove
33637 * config/i386/i386-builtin.def: Update builtin definitions.
33638 * config/i386/i386.c: Handle new builtin types and remove useless ones.
33639 * config/i386/sse.md: Update VFIXUPIMM* patterns.
33640 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33641 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33642 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
33643 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33644 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33645 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
33646 * config/i386/subst.md:
33647 (round_saeonly_sd_mask_operand4): Add new subst_attr.
33648 (round_saeonly_sd_mask_op4): Ditto.
33649 (round_saeonly_expand_operand5): Ditto.
33650 (round_saeonly_expand): Update.
33652 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33656 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
33658 * config/i386/sse.md: Combine VFIXUPIMM* patterns
33659 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33660 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33661 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
33662 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33663 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33664 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
33666 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33670 2018-12-15 Jakub Jelinek <jakub@redhat.com>
33673 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
33674 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
33675 instead of UNSPEC_FIXUPIMM.
33677 2019-01-17 Richard Biener <rguenther@suse.de>
33680 * dwarf2out.c (want_pubnames): Never generate pubnames sections
33681 and friends for the LTO part of debug info.
33683 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33685 PR tree-optimization/86214
33686 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
33689 PR rtl-optimization/88870
33690 * dce.c (deletable_insn_p): Never delete const/pure calls that can
33691 throw if we can't alter the cfg or delete dead exceptions.
33692 (mark_insn): Don't call find_call_stack_args for such calls.
33694 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
33696 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
33697 prototypes for vec_st.
33698 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
33699 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
33700 mainly on signed/unsigned long long and double.
33702 2019-01-16 David Malcolm <dmalcolm@redhat.com>
33705 * combine.c (delete_noop_moves): Convert to "bool" return,
33706 returning true if any edges are eliminated.
33707 (combine_instructions): Also return true if delete_noop_moves
33710 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33712 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
33713 correct max nunits for endian swap.
33714 (aarch64_expand_fcmla_builtin): Correct subreg code.
33715 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
33716 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
33719 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
33721 * config/alpha/alpha.c (alpha_gimplify_va_arg):
33722 Handle split indirect COMPLEX_TYPE arguments.
33724 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
33727 * config/aarch64/aarch64-modes.def: Add comment about how the carry
33728 bit is set by add and compare.
33729 (CC_ADC): New CC_MODE.
33730 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
33731 to cache the code and mode of X. Adjust the shape of a CC_Cmode
33732 comparison. Add detection for CC_ADCmode.
33733 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
33735 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
33736 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
33737 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
33738 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
33739 to eliminate the need for zero-extending the operands.
33740 (add<mode>3_compareC_imm): Delete. Merge into ...
33741 (add<mode>3_compareC): ... this. Restructure the comparison to
33742 eliminate the need for zero-extending the operands.
33743 (add<mode>3_carryin): Use LTU for the overflow detection.
33744 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
33745 Reexpress comparison for overflow.
33746 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
33747 (add<mode>3_carryinC): Likewise.
33748 (add<mode>3_carryinV): Use LTU for carry between partials.
33749 * config/aarch64/predicates.md (aarch64_carry_operation): Update
33750 handling of CC_Cmode and add CC_ADCmode.
33751 (aarch64_borrow_operation): Likewise.
33753 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33755 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
33756 Remove patternmode.
33757 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
33758 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
33759 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
33760 Remove endianness conversion.
33762 2019-01-16 Martin Liska <mliska@suse.cz>
33764 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
33766 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
33768 * gcc.c (add_sysrooted_hdrs_prefix): New function.
33769 (path_prefix_reset): Move up in the source file.
33770 (find_fortran_preinclude_file): Make complex search for the
33771 fortran header files.
33773 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
33775 * godump.c (go_output_typedef): When outputting a typedef, refer
33776 to the underlying type by its name and not its structure.
33778 2019-01-15 David Malcolm <dmalcolm@redhat.com>
33781 * tree.c (build_function_type): Assert that arg_types is not
33784 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
33786 PR inline-asm/52813
33787 * doc/extend.texi: Document that listing the stack pointer in the
33788 clobber list of an asm is a deprecated feature.
33789 * common.opt (Wdeprecated): Moved from c-family/c.opt.
33790 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
33791 warning instead of an error for clobbers of the stack pointer.
33792 Add a note explaining why.
33794 2019-01-15 Richard Biener <rguenther@suse.de>
33797 * dwarf2out.c (gen_member_die): Do not generate inheritance
33800 2019-01-15 Richard Biener <rguenther@suse.de>
33802 PR tree-optimization/88855
33803 * tree-if-conv.c (combine_blocks): Collect
33804 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
33806 2019-01-15 Tom de Vries <tdevries@suse.de>
33809 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
33810 lhs == NULL_TREE for gang-level reduction.
33812 2019-01-15 Richard Biener <rguenther@suse.de>
33813 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33816 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
33817 return true if SSA_NAME is already marked in visited bitmap.
33818 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
33820 2019-01-15 Jakub Jelinek <jakub@redhat.com>
33822 PR tree-optimization/88775
33823 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
33824 equal == 0 equality pointer comparisons some more if compared in
33825 integral types and either one points to an automatic var and the
33826 other to a global, or we can prove at least one points to the middle
33827 or both point to start or both point to end.
33829 2019-01-14 Andi Kleen <ak@linux.intel.com>
33831 * Makefile.in: Lower autofdo sampling rate by 10x.
33832 * Makefile.tpl: Dito.
33834 2019-01-14 Tom Honermann <tom@honermann.net>
33836 * defaults.h: Define CHAR8_TYPE.
33838 2019-01-14 Martin Sebor <msebor@redhat.com>
33841 * doc/extend.texi (Darwin Format Checks): Clarify.
33843 2019-01-14 Richard Biener <rguenther@suse.de>
33845 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
33846 whether we are in (simplify ...) or (match ...) context.
33848 2019-01-14 Jakub Jelinek <jakub@redhat.com>
33850 PR rtl-optimization/88796
33851 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
33852 * cfgexpand.c (stack_protect_prologue): Initialize
33853 crtl->stack_protect_guard_decl.
33854 * function.c (stack_protect_epilogue): Use it instead of calling
33855 targetm.stack_protect_guard again.
33856 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
33857 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
33858 crtl->stack_protect_guard_decl.
33859 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
33860 on the returned MEM_EXPR.
33862 2019-01-12 Tom de Vries <tdevries@suse.de>
33864 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
33865 vector length using -fopenacc-dim.
33867 2019-01-12 Tom de Vries <tdevries@suse.de>
33869 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
33870 lengths into account.
33872 2019-01-12 Svante Signell <svante.signell@gmail.com>
33874 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
33875 (TARGET_CAN_SPLIT_STACK): Define.
33876 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
33878 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33880 * params.def (inline-unit-growth): Set to 40.
33882 2019-01-12 Jakub Jelinek <jakub@redhat.com>
33884 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
33886 2019-01-12 Tom de Vries <tdevries@suse.de>
33888 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
33889 region calling vector-partitionable routine, set default_vector_length
33892 2019-01-12 Tom de Vries <tdevries@suse.de>
33894 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
33895 variable default_vector_length.
33897 2019-01-12 Tom de Vries <tdevries@suse.de>
33899 PR middle-end/88703
33900 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
33901 from oacc_default_dims, as oacc_validate_dims would do it, and apply
33904 2019-01-12 Tom de Vries <tdevries@suse.de>
33906 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
33907 (nvptx_goacc_validate_dims): Add used parameter.
33908 * doc/tm.texi: Regenerate.
33909 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
33910 argument to call to targetm.goacc.validate_dims.
33911 (default_goacc_validate_dims): Add used
33913 * target.def (validate_dims): Add used parameter in DEFHOOK.
33914 * targhooks.h (default_goacc_validate_dims): Add used parameter.
33916 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33918 PR middle-end/85956
33920 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
33922 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
33923 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
33924 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
33925 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
33927 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
33929 PR rtl-optimization/87305
33931 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
33932 for little endian pseudos used as paradoxical subreg.
33934 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33936 PR tree-optimization/88693
33937 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
33938 for STRING_CSTs that don't contain any NUL characters in the first
33939 TREE_STRING_LENGTH bytes.
33941 2019-01-11 Alan Modra <amodra@gmail.com>
33945 * genattrtab.c (min_fn): Don't translate values.
33946 (min_attr_value): Return INT_MAX when the value can't be calculated.
33947 Return minimum among any values that can be calculated.
33948 (max_attr_value): Adjust.
33950 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33952 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
33954 2019-01-11 Steve Ellcey <sellcey@marvell.com>
33956 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
33957 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
33958 (aarch64_return_call_with_max_clobbers): New function.
33959 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
33960 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
33962 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
33963 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
33964 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
33965 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
33966 * cselib.c (cselib_process_insn): Add argument to
33967 targetm.hard_regno_call_part_clobbered call.
33968 * ira-conflicts.c (ira_build_conflicts): Ditto.
33969 * ira-costs.c (ira_tune_allocno_costs): Ditto.
33970 * lra-constraints.c (inherit_reload_reg): Ditto.
33971 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
33972 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
33973 argument. Call targetm.return_call_with_max_clobbers.
33974 Add argument to targetm.hard_regno_call_part_clobbered call.
33975 (calls_have_same_clobbers_p): New function.
33976 (process_bb_lives): Add call_insn and last_call_insn variables.
33977 Pass call_insn to check_pseudos_live_through_calls.
33978 Modify if stmt to check targetm.return_call_with_max_clobbers.
33979 Update setting of flush variable.
33980 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
33982 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
33983 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
33984 targetm.hard_regno_call_part_clobbered call.
33985 * reginfo.c (choose_hard_reg_mode): Ditto.
33986 * regrename.c (check_new_reg_p): Ditto.
33987 * reload.c (find_equiv_reg): Ditto.
33988 * reload1.c (emit_reload_insns): Ditto.
33989 * sched-deps.c (deps_analyze_insn): Ditto.
33990 * sel-sched.c (init_regs_for_mode): Ditto.
33991 (mark_unavailable_hard_regs): Ditto.
33992 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
33993 * target.def (hard_regno_call_part_clobbered): Add insn argument.
33994 (return_call_with_max_clobbers): New target function.
33995 * doc/tm.texi: Regenerate.
33996 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
33997 * hooks.c (hook_bool_uint_mode_false): Change to
33998 hook_bool_insn_uint_mode_false.
33999 * hooks.h (hook_bool_uint_mode_false): Ditto.
34001 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34003 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34004 (aarch64_remove_extra_call_preserved_regs): New function.
34005 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34006 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34007 * doc/tm.texi: Regenerate.
34008 * final.c (get_call_reg_set_usage): Call new hook.
34009 * target.def (remove_extra_call_preserved_regs): New hook.
34010 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34011 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34013 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34016 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34017 inside of pass_combine_1 dump rather than pass_profile_1.
34019 2019-01-11 Tom de Vries <tdevries@suse.de>
34021 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34022 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34023 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34024 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34027 2019-01-11 Tom de Vries <tdevries@suse.de>
34029 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34031 2019-01-11 Jan Beulich <jbeulich@suse.com>
34033 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34034 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34035 sse2_cvtsi2sd): Add {l}.
34036 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34039 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34042 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34044 (*float<floatunssuffix>v2div2sf2): New define_insn.
34045 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34046 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34047 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34048 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34049 match_operands with "const0_operand" "C".
34051 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34053 * config/aarch64/aarch64-builtins.c
34054 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34055 (aarch64_init_simd_builtins): ...Here
34057 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34059 PR rtl-optimization/87305
34061 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34062 allocation for big endian pseudos used as paradoxical subregs and
34063 spill them if it is wrong.
34064 * lra-constraints.c (lra_constraints): Add a comment.
34066 2019-01-10 Richard Biener <rguenther@suse.de>
34068 PR tree-optimization/88792
34069 * tree-ssa-pre.c (get_representative_for): Do not return a
34072 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34074 PR middle-end/84877
34076 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34077 (assign_parm_setup_block): Do the argument slot realignment here
34080 2019-01-10 Stefan Agner <stefan@agner.ch>
34083 * config/arm/arm.c (arm_option_override_internal): Force
34084 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34086 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34089 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34092 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34094 * config/arm/arm-builtins.c
34095 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34096 (MAC_LANE_PAIR_QUALIFIERS): New.
34097 (arm_expand_builtin_args): Use it.
34098 (arm_expand_builtin_1): Likewise.
34099 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34100 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34101 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34102 * config/arm/arm_neon.h:
34103 (vcadd_rot90_f16): New.
34104 (vcaddq_rot90_f16): New.
34105 (vcadd_rot270_f16): New.
34106 (vcaddq_rot270_f16): New.
34109 (vcmla_lane_f16): New.
34110 (vcmla_laneq_f16): New.
34111 (vcmlaq_lane_f16): New.
34112 (vcmlaq_laneq_f16): New.
34113 (vcmla_rot90_f16): New.
34114 (vcmlaq_rot90_f16): New.
34115 (vcmla_rot90_lane_f16): New.
34116 (vcmla_rot90_laneq_f16): New.
34117 (vcmlaq_rot90_lane_f16): New.
34118 (vcmlaq_rot90_laneq_f16): New.
34119 (vcmla_rot180_f16): New.
34120 (vcmlaq_rot180_f16): New.
34121 (vcmla_rot180_lane_f16): New.
34122 (vcmla_rot180_laneq_f16): New.
34123 (vcmlaq_rot180_lane_f16): New.
34124 (vcmlaq_rot180_laneq_f16): New.
34125 (vcmla_rot270_f16): New.
34126 (vcmlaq_rot270_f16): New.
34127 (vcmla_rot270_lane_f16): New.
34128 (vcmla_rot270_laneq_f16): New.
34129 (vcmlaq_rot270_lane_f16): New.
34130 (vcmlaq_rot270_laneq_f16): New.
34131 (vcadd_rot90_f32): New.
34132 (vcaddq_rot90_f32): New.
34133 (vcadd_rot270_f32): New.
34134 (vcaddq_rot270_f32): New.
34137 (vcmla_lane_f32): New.
34138 (vcmla_laneq_f32): New.
34139 (vcmlaq_lane_f32): New.
34140 (vcmlaq_laneq_f32): New.
34141 (vcmla_rot90_f32): New.
34142 (vcmlaq_rot90_f32): New.
34143 (vcmla_rot90_lane_f32): New.
34144 (vcmla_rot90_laneq_f32): New.
34145 (vcmlaq_rot90_lane_f32): New.
34146 (vcmlaq_rot90_laneq_f32): New.
34147 (vcmla_rot180_f32): New.
34148 (vcmlaq_rot180_f32): New.
34149 (vcmla_rot180_lane_f32): New.
34150 (vcmla_rot180_laneq_f32): New.
34151 (vcmlaq_rot180_lane_f32): New.
34152 (vcmlaq_rot180_laneq_f32): New.
34153 (vcmla_rot270_f32): New.
34154 (vcmlaq_rot270_f32): New.
34155 (vcmla_rot270_lane_f32): New.
34156 (vcmla_rot270_laneq_f32): New.
34157 (vcmlaq_rot270_lane_f32): New.
34158 (vcmlaq_rot270_laneq_f32): New.
34159 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34160 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34161 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34162 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34163 vcmlaq_lane270): New.
34164 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34165 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34166 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34167 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34168 (arm_option_reconfigure_globals): Use them.
34169 * config/arm/iterators.md (VDF, VQ_HSF): New.
34170 (VCADD, VCMLA): New.
34171 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34172 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34174 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34175 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34177 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34179 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34180 Add qualifier_lane_pair_index.
34181 (emit-rtl.h): Include.
34182 (TYPES_QUADOP_LANE_PAIR): New.
34183 (aarch64_simd_expand_args): Use it.
34184 (aarch64_simd_expand_builtin): Likewise.
34185 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34187 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34188 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34189 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34190 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34191 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34192 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34193 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34194 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34195 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34196 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34197 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34198 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34199 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34200 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34201 Add __ARM_FEATURE_COMPLEX.
34202 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34203 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34204 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34205 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34206 fcmlaq_lane270): New.
34207 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34208 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34209 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34210 * config/aarch64/arm_neon.h:
34211 (vcadd_rot90_f16): New.
34212 (vcaddq_rot90_f16): New.
34213 (vcadd_rot270_f16): New.
34214 (vcaddq_rot270_f16): New.
34217 (vcmla_lane_f16): New.
34218 (vcmla_laneq_f16): New.
34219 (vcmlaq_lane_f16): New.
34220 (vcmlaq_rot90_lane_f16): New.
34221 (vcmla_rot90_laneq_f16): New.
34222 (vcmla_rot90_lane_f16): New.
34223 (vcmlaq_rot90_f16): New.
34224 (vcmla_rot90_f16): New.
34225 (vcmlaq_laneq_f16): New.
34226 (vcmla_rot180_laneq_f16): New.
34227 (vcmla_rot180_lane_f16): New.
34228 (vcmlaq_rot180_f16): New.
34229 (vcmla_rot180_f16): New.
34230 (vcmlaq_rot90_laneq_f16): New.
34231 (vcmlaq_rot270_laneq_f16): New.
34232 (vcmlaq_rot270_lane_f16): New.
34233 (vcmla_rot270_laneq_f16): New.
34234 (vcmlaq_rot270_f16): New.
34235 (vcmla_rot270_f16): New.
34236 (vcmlaq_rot180_laneq_f16): New.
34237 (vcmlaq_rot180_lane_f16): New.
34238 (vcmla_rot270_lane_f16): New.
34239 (vcadd_rot90_f32): New.
34240 (vcaddq_rot90_f32): New.
34241 (vcaddq_rot90_f64): New.
34242 (vcadd_rot270_f32): New.
34243 (vcaddq_rot270_f32): New.
34244 (vcaddq_rot270_f64): New.
34248 (vcmla_lane_f32): New.
34249 (vcmla_laneq_f32): New.
34250 (vcmlaq_lane_f32): New.
34251 (vcmlaq_laneq_f32): New.
34252 (vcmla_rot90_f32): New.
34253 (vcmlaq_rot90_f32): New.
34254 (vcmlaq_rot90_f64): New.
34255 (vcmla_rot90_lane_f32): New.
34256 (vcmla_rot90_laneq_f32): New.
34257 (vcmlaq_rot90_lane_f32): New.
34258 (vcmlaq_rot90_laneq_f32): New.
34259 (vcmla_rot180_f32): New.
34260 (vcmlaq_rot180_f32): New.
34261 (vcmlaq_rot180_f64): New.
34262 (vcmla_rot180_lane_f32): New.
34263 (vcmla_rot180_laneq_f32): New.
34264 (vcmlaq_rot180_lane_f32): New.
34265 (vcmlaq_rot180_laneq_f32): New.
34266 (vcmla_rot270_f32): New.
34267 (vcmlaq_rot270_f32): New.
34268 (vcmlaq_rot270_f64): New.
34269 (vcmla_rot270_lane_f32): New.
34270 (vcmla_rot270_laneq_f32): New.
34271 (vcmlaq_rot270_lane_f32): New.
34272 (vcmlaq_rot270_laneq_f32): New.
34273 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
34274 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
34275 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
34276 (FCADD, FCMLA): New.
34278 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
34280 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34284 * config/pa/pa.c: Change "can not" to "cannot".
34285 * gimple-ssa-evrp-analyze.c: Likewise.
34286 * ipa-icf.c: Likewise.
34287 * ipa-polymorphic-call.c: Likewise.
34288 * ipa-pure-const.c: Likewise.
34289 * lra-constraints.c: Likewise.
34290 * lra-remat.c: Likewise.
34291 * reload1.c: Likewise.
34292 * reorg.c: Likewise.
34293 * tree-ssa-uninit.c: Likewise.
34295 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34299 * Makefile.in: Mechanically replace "can not" with "cannot".
34300 * alias.c: Likewise.
34301 * builtins.c: Likewise.
34302 * calls.c: Likewise.
34303 * cgraph.c: Likewise.
34304 * cgraph.h: Likewise.
34305 * cgraphclones.c: Likewise.
34306 * cgraphunit.c: Likewise.
34307 * combine-stack-adj.c: Likewise.
34308 * combine.c: Likewise.
34309 * common/config/i386/i386-common.c: Likewise.
34310 * config/aarch64/aarch64.c: Likewise.
34311 * config/alpha/sync.md: Likewise.
34312 * config/arc/arc.c: Likewise.
34313 * config/arc/predicates.md: Likewise.
34314 * config/arm/arm-c.c: Likewise.
34315 * config/arm/arm.c: Likewise.
34316 * config/arm/arm.h: Likewise.
34317 * config/arm/arm.md: Likewise.
34318 * config/arm/cortex-r4f.md: Likewise.
34319 * config/csky/csky.c: Likewise.
34320 * config/csky/csky.h: Likewise.
34321 * config/darwin-f.c: Likewise.
34322 * config/epiphany/epiphany.md: Likewise.
34323 * config/i386/i386.c: Likewise.
34324 * config/i386/sol2.h: Likewise.
34325 * config/m68k/m68k.c: Likewise.
34326 * config/mcore/mcore.h: Likewise.
34327 * config/microblaze/microblaze.md: Likewise.
34328 * config/mips/20kc.md: Likewise.
34329 * config/mips/sb1.md: Likewise.
34330 * config/nds32/nds32.c: Likewise.
34331 * config/nds32/predicates.md: Likewise.
34332 * config/pa/pa.c: Likewise.
34333 * config/rs6000/e300c2c3.md: Likewise.
34334 * config/rs6000/rs6000.c: Likewise.
34335 * config/s390/s390.h: Likewise.
34336 * config/sh/sh.c: Likewise.
34337 * config/sh/sh.md: Likewise.
34338 * config/spu/vmx2spu.h: Likewise.
34339 * cprop.c: Likewise.
34340 * dbxout.c: Likewise.
34341 * df-scan.c: Likewise.
34342 * doc/cfg.texi: Likewise.
34343 * doc/extend.texi: Likewise.
34344 * doc/fragments.texi: Likewise.
34345 * doc/gty.texi: Likewise.
34346 * doc/invoke.texi: Likewise.
34347 * doc/lto.texi: Likewise.
34348 * doc/md.texi: Likewise.
34349 * doc/objc.texi: Likewise.
34350 * doc/rtl.texi: Likewise.
34351 * doc/tm.texi: Likewise.
34353 * emit-rtl.c: Likewise.
34354 * emit-rtl.h: Likewise.
34355 * except.c: Likewise.
34356 * expmed.c: Likewise.
34357 * expr.c: Likewise.
34358 * fold-const.c: Likewise.
34359 * genautomata.c: Likewise.
34360 * gimple-fold.c: Likewise.
34361 * hard-reg-set.h: Likewise.
34362 * ifcvt.c: Likewise.
34363 * ipa-comdats.c: Likewise.
34364 * ipa-cp.c: Likewise.
34365 * ipa-devirt.c: Likewise.
34366 * ipa-fnsummary.c: Likewise.
34367 * ipa-icf.c: Likewise.
34368 * ipa-inline-transform.c: Likewise.
34369 * ipa-inline.c: Likewise.
34370 * ipa-polymorphic-call.c: Likewise.
34371 * ipa-profile.c: Likewise.
34372 * ipa-prop.c: Likewise.
34373 * ipa-pure-const.c: Likewise.
34374 * ipa-reference.c: Likewise.
34375 * ipa-split.c: Likewise.
34376 * ipa-visibility.c: Likewise.
34378 * ira-build.c: Likewise.
34379 * ira-color.c: Likewise.
34380 * ira-conflicts.c: Likewise.
34381 * ira-costs.c: Likewise.
34382 * ira-int.h: Likewise.
34383 * ira-lives.c: Likewise.
34386 * loop-invariant.c: Likewise.
34387 * loop-unroll.c: Likewise.
34388 * lower-subreg.c: Likewise.
34389 * lra-assigns.c: Likewise.
34390 * lra-constraints.c: Likewise.
34391 * lra-eliminations.c: Likewise.
34392 * lra-lives.c: Likewise.
34393 * lra-remat.c: Likewise.
34394 * lra-spills.c: Likewise.
34396 * lto-cgraph.c: Likewise.
34397 * lto-streamer-out.c: Likewise.
34398 * postreload-gcse.c: Likewise.
34399 * predict.c: Likewise.
34400 * profile-count.h: Likewise.
34401 * profile.c: Likewise.
34402 * recog.c: Likewise.
34404 * reload.c: Likewise.
34405 * reload1.c: Likewise.
34406 * reorg.c: Likewise.
34407 * resource.c: Likewise.
34408 * rtl.def: Likewise.
34410 * rtlanal.c: Likewise.
34411 * sched-deps.c: Likewise.
34412 * sched-ebb.c: Likewise.
34413 * sched-rgn.c: Likewise.
34414 * sel-sched-ir.c: Likewise.
34415 * sel-sched.c: Likewise.
34416 * shrink-wrap.c: Likewise.
34417 * simplify-rtx.c: Likewise.
34418 * symtab.c: Likewise.
34419 * target.def: Likewise.
34420 * toplev.c: Likewise.
34421 * tree-call-cdce.c: Likewise.
34422 * tree-cfg.c: Likewise.
34423 * tree-complex.c: Likewise.
34424 * tree-core.h: Likewise.
34425 * tree-eh.c: Likewise.
34426 * tree-inline.c: Likewise.
34427 * tree-loop-distribution.c: Likewise.
34428 * tree-nrv.c: Likewise.
34429 * tree-profile.c: Likewise.
34430 * tree-sra.c: Likewise.
34431 * tree-ssa-alias.c: Likewise.
34432 * tree-ssa-dce.c: Likewise.
34433 * tree-ssa-dom.c: Likewise.
34434 * tree-ssa-forwprop.c: Likewise.
34435 * tree-ssa-loop-im.c: Likewise.
34436 * tree-ssa-loop-ivcanon.c: Likewise.
34437 * tree-ssa-loop-ivopts.c: Likewise.
34438 * tree-ssa-loop-niter.c: Likewise.
34439 * tree-ssa-phionlycprop.c: Likewise.
34440 * tree-ssa-phiopt.c: Likewise.
34441 * tree-ssa-propagate.c: Likewise.
34442 * tree-ssa-threadedge.c: Likewise.
34443 * tree-ssa-threadupdate.c: Likewise.
34444 * tree-ssa-uninit.c: Likewise.
34445 * tree-ssanames.c: Likewise.
34446 * tree-streamer-out.c: Likewise.
34447 * tree.c: Likewise.
34448 * tree.h: Likewise.
34449 * vr-values.c: Likewise.
34451 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
34453 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
34454 (ix86_split_xorsign): Ditto.
34455 * config/i386/i386.c (ix86_expand_xorsign): New function.
34456 (ix86_split_xorsign): Ditto.
34457 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
34458 (xorsign<mode>3): New expander.
34459 (xorsign<mode>3_1): New insn_and_split pattern.
34460 * config/i386/sse.md (xorsign<mode>3): New expander.
34462 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34464 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
34465 (*tablejump_sp64): Likewise.
34466 (*tablejump<P:mode>): ...this.
34467 (*call_address_sp32): Merge into...
34468 (*call_address_sp64): Likewise.
34469 (*call_address<P:mode>): ...this.
34470 (*call_symbolic_sp32): Merge into...
34471 (*call_symbolic_sp64): Likewise.
34472 (*call_symbolic<P:mode>): ...this.
34473 (call_value): Remove constraint and add predicate.
34474 (*call_value_address_sp32): Merge into...
34475 (*call_value_address_sp64): Likewise.
34476 (*call_value_address<P:mode>): ...this.
34477 (*call_value_symbolic_sp32): Merge into...
34478 (*call_value_symbolic_sp64): Likewise.
34479 (*call_value_symbolic<P:mode>): ...this.
34480 (*sibcall_symbolic_sp32): Merge into...
34481 (*sibcall_symbolic_sp64): Likewise.
34482 (*sibcall_symbolic<P:mode>): ...this.
34483 (sibcall_value): Remove constraint and add predicate.
34484 (*sibcall_value_symbolic_sp32): Merge into...
34485 (*sibcall_value_symbolic_sp64): Likewise.
34486 (*sibcall_value_symbolic<P:mode>): ...this.
34487 (window_save): Minor tweak.
34488 (*branch_sp32): Merge into...
34489 (*branch_sp64): Likewise.
34490 (*branch<P:mode>): ...this.
34492 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34493 James Clarke <jrtc27@jrtc27.com>
34496 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
34497 consistently in TLS address generation and adjust code to the renaming
34498 of patterns. Mark calls to __tls_get_addr as const.
34499 * config/sparc/sparc.md (tgd_hi22): Turn into...
34500 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
34501 (tgd_lo10): Turn into...
34502 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
34503 (tgd_add32): Merge into...
34504 (tgd_add64): Likewise.
34505 (tgd_add<P:mode>): ...this and use Pmode throughout.
34506 (tldm_hi22): Turn into...
34507 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
34508 (tldm_lo10): Turn into...
34509 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
34510 (tldm_add32): Merge into...
34511 (tldm_add64): Likewise.
34512 (tldm_add<P:mode>): ...this and use Pmode throughout.
34513 (tldm_call32): Merge into...
34514 (tldm_call64): Likewise.
34515 (tldm_call<P:mode>): ...this and use Pmode throughout.
34516 (tldo_hix22): Turn into...
34517 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
34518 (tldo_lox10): Turn into...
34519 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
34520 (tldo_add32): Merge into...
34521 (tldo_add64): Likewise.
34522 (tldo_add<P:mode>): ...this and use Pmode throughout.
34523 (tie_hi22): Turn into...
34524 (tie_hi22<P:mode>): ...this and use Pmode throughout.
34525 (tie_lo10): Turn into...
34526 (tie_lo10<P:mode>): ...this and use Pmode throughout.
34527 (tie_ld64): Use DImode throughout.
34528 (tie_add32): Merge into...
34529 (tie_add64): Likewise.
34530 (tie_add<P:mode>): ...this and use Pmode throughout.
34531 (tle_hix22_sp32): Merge into...
34532 (tle_hix22_sp64): Likewise.
34533 (tle_hix22<P:mode>): ...this and use Pmode throughout.
34534 (tle_lox22_sp32): Merge into...
34535 (tle_lox22_sp64): Likewise.
34536 (tle_lox22<P:mode>): ...this and use Pmode throughout.
34537 (*tldo_ldub_sp32): Merge into...
34538 (*tldo_ldub_sp64): Likewise.
34539 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
34540 (*tldo_ldub1_sp32): Merge into...
34541 (*tldo_ldub1_sp64): Likewise.
34542 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
34543 (*tldo_ldub2_sp32): Merge into...
34544 (*tldo_ldub2_sp64): Likewise.
34545 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
34546 (*tldo_ldsb1_sp32): Merge into...
34547 (*tldo_ldsb1_sp64): Likewise.
34548 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
34549 (*tldo_ldsb2_sp32): Merge into...
34550 (*tldo_ldsb2_sp64): Likewise.
34551 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
34552 (*tldo_ldub3_sp64): Use DImode throughout.
34553 (*tldo_ldsb3_sp64): Likewise.
34554 (*tldo_lduh_sp32): Merge into...
34555 (*tldo_lduh_sp64): Likewise.
34556 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
34557 (*tldo_lduh1_sp32): Merge into...
34558 (*tldo_lduh1_sp64): Likewise.
34559 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
34560 (*tldo_ldsh1_sp32): Merge into...
34561 (*tldo_ldsh1_sp64): Likewise.
34562 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
34563 (*tldo_lduh2_sp64): Use DImode throughout.
34564 (*tldo_ldsh2_sp64): Likewise.
34565 (*tldo_lduw_sp32): Merge into...
34566 (*tldo_lduw_sp64): Likewise.
34567 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
34568 (*tldo_lduw1_sp64): Use DImode throughout.
34569 (*tldo_ldsw1_sp64): Likewise.
34570 (*tldo_ldx_sp64): Likewise.
34571 (*tldo_stb_sp32): Merge into...
34572 (*tldo_stb_sp64): Likewise.
34573 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
34574 (*tldo_sth_sp32): Merge into...
34575 (*tldo_sth_sp64): Likewise.
34576 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
34577 (*tldo_stw_sp32): Merge into...
34578 (*tldo_stw_sp64): Likewise.
34579 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
34580 (*tldo_stx_sp64): Use DImode throughout.
34582 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34584 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
34585 check configure option to set BTI and Return Address Signing.
34586 * configure.ac: Add --enable-standard-branch-protection and
34587 --disable-standard-branch-protection.
34588 * configure: Regenerated.
34589 * doc/install.texi: Document the same.
34591 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34592 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34594 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
34595 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
34596 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
34598 * config/aarch64/aarch64-bti-insert.c: New file.
34599 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
34601 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
34603 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
34604 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
34605 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
34606 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
34608 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34610 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
34611 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
34612 Disable bti for -mbranch-protection=none.
34613 (aarch64_handle_standard_branch_protection): Enable bti for
34614 -mbranch-protection=standard.
34615 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
34616 -mbranch-protection.
34617 (aarch64_bti_enabled): Check if bti is enabled.
34618 * config/aarch64/aarch64.opt: Declare target variable.
34619 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
34621 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34623 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
34624 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
34625 (aarch64_expand_epilogue): Likewise.
34626 (aarch64_output_mi_thunk): Likewise.
34627 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
34628 TAILCALL_ADDR_REGS to x16 and x17.
34629 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
34631 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34633 * config/aarch64/aarch64-option-extensions.def: Define
34634 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
34635 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
34636 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
34637 (AARCH64_FL_PREDRES): New.
34638 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
34639 AARCH64_FL_PREDRES by default.
34640 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
34642 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34644 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
34646 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
34647 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
34648 * doc/invoke.texi: Document ARMv8.5-A.
34650 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
34652 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
34653 (xorsign<mode>3): Likewise.
34655 2019-01-09 Jelinek <jakub@redhat.com>
34657 PR middle-end/88758
34658 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
34659 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
34661 PR rtl-optimization/88331
34662 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
34663 not currently_expanding_to_rtl.
34665 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34667 * doc/invoke.texi (-Os): Remove trailing spaces.
34668 (-finline-functions): Remove reference to -O2.
34670 2019-01-08 Jakub Jelinek <jakub@redhat.com>
34672 PR rtl-optimization/79593
34673 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
34675 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
34676 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
34678 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
34681 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
34685 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
34686 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
34688 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
34691 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
34692 ix86_avx_u128_mode_entry.
34694 2019-01-08 Martin Liska <mliska@suse.cz>
34696 PR tree-optimization/88753
34697 * tree-switch-conversion.c (switch_conversion::build_one_array):
34698 Come up with local variable constructor. Convert first to
34699 type of constructor values.
34701 2019-01-08 Richard Biener <rguenther@suse.de>
34703 PR tree-optimization/86554
34704 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
34705 rpo_avail): Move earlier.
34706 (visit_nary_op): When value-numbering to expressions
34707 with different overflow behavior make sure there's an
34708 available expression on the path.
34710 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
34712 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
34713 aarch64_parse_branch_protection,
34714 struct aarch64_branch_protect_type,
34715 aarch64_handle_no_branch_protection,
34716 aarch64_handle_standard_branch_protection,
34717 aarch64_validate_mbranch_protection,
34718 aarch64_handle_pac_ret_protection,
34719 aarch64_handle_attr_branch_protection,
34720 accepted_branch_protection_string,
34721 aarch64_pac_ret_subtypes,
34722 aarch64_branch_protect_types,
34723 aarch64_handle_pac_ret_leaf): Define.
34724 (aarch64_override_options_after_change_1, aarch64_override_options):
34725 Add check for accepted_branch_protection_string.
34726 (aarch64_option_save): Save accepted_branch_protection_string.
34727 (aarch64_option_restore): Save accepted_branch_protection_string.
34728 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
34729 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
34730 msign-return-address.
34731 * doc/invoke.texi: Add mbranch-protection.
34733 2019-01-08 Alan Modra <amodra@gmail.com>
34736 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
34737 Delete "unknownp" parameter. Adjust callers. Handle
34738 CONST_INT, PLUS, MINUS, and MULT.
34739 (attr_value_aligned): Renamed from or_attr_value.
34740 (min_attr_value): Return INT_MIN for unhandled rtl case..
34741 (min_fn): ..and translate to INT_MAX here.
34742 (write_length_unit_log): Modify to cope without "unknown".
34743 (write_attr_value): Handle IF_THEN_ELSE.
34745 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34747 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
34748 optimization for masked stores.
34750 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34752 PR middle-end/88567
34753 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
34754 output vector directly to duplicate_and_interleave instead of
34755 going through a temporary. Postpone insertion of ctor_seq to
34756 the end of the loop.
34758 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
34761 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
34762 unsigned_p. Handle signed and unsigned overflow correction as
34764 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
34766 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
34768 (add<mode>3_compareV_imm): Make this callable for expanding.
34769 (subv<GPI:mode>4): Use register_operand for operand 1. Use
34770 aarch64_plus_operand for operand 2.
34771 (subv<GPI:mode>_insn): New insn pattern.
34772 (subv<GPI:mode>_imm): Likewise.
34773 (negv<GPI:mode>3): New expand pattern.
34774 (negv<GPI:mode>_insn): New insn pattern.
34775 (negv<GPI:mode>_cmp_only): Likewise.
34776 (cmpv<GPI:mode>_insn): Likewise.
34777 (subvti4): Use register_operand for operand 1. Update call to
34778 aarch64_expand_subvti.
34779 (usubvti4): Likewise.
34780 (negvti3): New expand pattern.
34781 (negdi_carryout): New insn pattern.
34782 (negvdi_carryinV): New insn pattern.
34783 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
34784 version the named version.
34785 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
34787 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
34789 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
34791 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
34792 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
34793 (sub<mode>3_carryinCV): Delete.
34794 (sub<GPI:mode>3_carryinV): New expand pattern.
34795 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
34797 2019-01-07 Richard Biener <rguenther@suse.de>
34799 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
34800 of tree_operand_hash.
34802 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34804 PR tree-optimization/88598
34805 * tree.h (single_nonzero_element): Declare.
34806 * tree.c (single_nonzero_element): New function.
34807 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
34808 if I is the only nonzero element of CST.
34810 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34812 PR tree-optimization/88598
34813 * tree.h (initializer_each_zero_or_onep): Declare.
34814 * tree.c (initializer_each_zero_or_onep): New function.
34815 (signed_or_unsigned_type_for): Handle float types too.
34816 (unsigned_type_for, signed_type_for): Update comments accordingly.
34817 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
34818 x & { 0 or -1, 0 or -1, ... }.
34820 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
34822 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
34823 with x86_64-pc-linux-gnu.
34825 2019-01-07 Tom de Vries <tdevries@suse.de>
34828 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
34830 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
34833 2019-01-07 Jakub Jelinek <jakub@redhat.com>
34835 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
34836 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
34837 TARGET_AVX512F as condition.
34840 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
34841 const_not_ok_for_debug_p target hook.
34842 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
34843 on UNSPEC and subexpressions thereof if all subexpressions of the
34844 UNSPEC are CONSTANT_P.
34846 PR tree-optimization/88676
34847 * tree-ssa-phiopt.c (two_value_replacement): New function.
34848 (tree_ssa_phiopt_worker): Call it.
34851 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
34852 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
34855 * tree-vect-generic.c: Include insn-config.h and recog.h.
34856 (expand_vector_piecewise): Add defaulted ret_type argument,
34857 if non-NULL, use that in preference to type for the result type.
34858 (expand_vector_parallel): Formatting fix.
34859 (do_vec_conversion, do_vec_narrowing_conversion,
34860 expand_vector_conversion): New functions.
34861 (expand_vector_operations_1): Call expand_vector_conversion
34862 for VEC_CONVERT ifn calls.
34863 * internal-fn.def (VEC_CONVERT): New internal function.
34864 * internal-fn.c (expand_VEC_CONVERT): New function.
34865 * fold-const-call.c (fold_const_vec_convert): New function.
34866 (fold_const_call): Use it for CFN_VEC_CONVERT.
34867 * doc/extend.texi (__builtin_convertvector): Document.
34869 2019-01-07 Tom de Vries <tdevries@suse.de>
34871 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
34872 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
34873 vector_red_partition, vector_red_sym): New global variables.
34874 (nvptx_option_override): Initialize vector_red_sym.
34875 (nvptx_declare_function_name): Restore red_partition register.
34876 (nvptx_file_end): Emit code to declare the vector reduction variables.
34877 (nvptx_output_red_partition): New function.
34878 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
34879 large vector reductions.
34880 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
34881 (nvptx_init_builtins): Add VECTOR_ADDR.
34882 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
34883 Handle nvptx_expand_shared_addr.
34884 (nvptx_get_shared_red_addr): Add vector argument and handle large
34886 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
34888 (nvptx_goacc_reduction_init): Likewise.
34889 (nvptx_goacc_reduction_fini): Likewise.
34890 (nvptx_goacc_reduction_teardown): Likewise.
34891 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
34892 init,fini,teardown}.
34893 (nvptx_init_axis_predicate): Initialize vector_red_partition.
34894 (nvptx_set_current_function): Init vector_red_partition.
34895 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
34896 (nvptx_red_partition): New insn.
34897 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
34899 2019-01-07 Tom de Vries <tdevries@suse.de>
34902 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
34905 2019-01-07 Tom de Vries <tdevries@suse.de>
34907 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
34908 (nvptx_option_override): Init oacc_bcast_partition.
34909 (nvptx_init_oacc_workers): New function.
34910 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
34911 (nvptx_needs_shared_bcast): New function.
34912 (nvptx_find_par): Generalize to enable vectors to use shared-memory
34913 to propagate state.
34914 (nvptx_shared_propagate): Initialize vector bcast partition and
34915 synchronization state.
34916 (nvptx_single): Generalize to enable vectors to use shared-memory
34917 to propagate state.
34918 (nvptx_process_pars): Likewise.
34919 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
34920 * config/nvptx/nvptx.h (struct machine_function): Add
34921 bcast_partition and sync_bar members.
34923 2019-01-07 Tom de Vries <tdevries@suse.de>
34925 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
34926 (nvptx_apply_dim_limits): New function.
34927 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
34930 2019-01-07 Tom de Vries <tdevries@suse.de>
34932 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
34933 as late as possible.
34935 2019-01-07 Tom de Vries <tdevries@suse.de>
34937 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
34938 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
34939 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
34940 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
34941 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
34943 2019-01-07 Tom de Vries <tdevries@suse.de>
34945 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
34947 2019-01-07 Tom de Vries <tdevries@suse.de>
34949 * omp-offload.c (oacc_get_min_dim): New function.
34950 * omp-offload.h (oacc_get_min_dim): Declare.
34952 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
34955 * config/i386/i386.c (function_value_ms_64): Return small sturct in
34956 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
34958 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34962 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
34964 * ipa-inline.c (edge_badness): Use inlined_time instead of
34965 inline_summaries->get.
34967 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34969 * opts.c (enable_fdo_optimizations): Enable
34970 version-loops-for-strides, loop-interchange, unrol-and-jam
34971 and tree-loop-distribution.
34972 * invoke.texi: Document newly enabled options.
34974 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34976 * doc/invoke.texi (max-inline-insns-small): New parameters.
34977 * ipa-inline.c (want_early_inline_function_p): simplify.
34978 (want_inline_small_function_p): Fix pasto from previous patch;
34979 use max-inline-insns-small bound.
34980 * params.def (max-inline-insns-small): New param.
34981 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
34982 variables correctly.
34984 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34986 * doc/invoke.texi: Document max-inline-insns-size,
34987 uninlined-function-insns, uninlined-function-time,
34988 uninlined-thunk-insns and uninlined-thunk-time.
34989 * params.def: Add max-inline-insns-size,
34990 uninlined-function-insns, uninlined-function-time,
34991 uninlined-thunk-insns and uninlined-thunk-time.
34992 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
34994 * ipa-inline.c (can_inline_edge_by_limits_p,
34995 want_inline_small_function_p): Use new parameters.
34997 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34999 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35001 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35003 PR middle-end/82564
35005 * expr.c (expand_assignment): For calls returning VLA structures
35006 if to_rtx is not a MEM, force it into a stack temporary.
35009 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35010 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35011 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35012 subexpressions of both operands.
35013 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35014 subrtxes are CONSTANT_P.
35015 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35016 2018-11-09 changes.
35018 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35020 * params.def (hot-bb-count-ws-permille): Set to 990.
35022 2019-01-04 Martin Sebor <msebor@redhat.com>
35025 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35028 2019-01-04 Martin Sebor <msebor@redhat.com>
35031 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35033 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35035 * gdbinit.in: Turn off pagination for the skip commands, restore
35036 it to previous state afterwards.
35038 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35041 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35042 of GET_MODE (opN) as modes of the libcall arguments.
35044 2019-01-04 Jan Beulich <jbeulich@suse.com>
35046 * config/i386/sse.md
35047 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35048 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35049 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35050 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35051 avx512f_vmcmp<mode>3<round_saeonly_name>,
35052 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35053 avx512f_maskcmp<mode>3,
35054 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35055 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35056 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35057 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35058 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35059 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35060 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35061 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35062 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35063 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35064 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35065 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35066 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35067 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35068 avx512cd_maskb_vec_dup<mode>,
35069 avx512cd_maskw_vec_dup<mode>,
35070 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35071 avx512dq_vmfpclass<mode>,
35072 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35075 2019-01-03 Martin Sebor <msebor@redhat.com>
35077 PR tree-optimization/88659
35078 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35080 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35082 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35083 unaligned vsx and avoid lxvd2x/stxvd2x.
35084 (gen_lvx_v4si_move): New function.
35086 2019-01-03 Tom de Vries <tdevries@suse.de>
35088 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35089 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35091 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35093 2019-01-03 Tom de Vries <tdevries@suse.de>
35095 * config/nvptx/nvptx.c (struct offload_attrs): New.
35096 (populate_offload_attrs): New function. Factor mask extraction out of
35097 nvptx_reorg. Add extraction of dimensions.
35098 (nvptx_reorg): Use populate_offload_attrs.
35100 2019-01-03 Tom de Vries <tdevries@suse.de>
35102 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35103 cases for oacc_min_dims_p and routine_p. Add asserts for
35104 oacc_default_dims_p and offload_region_p.
35106 2019-01-03 Tom de Vries <tdevries@suse.de>
35108 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35109 factored out of ...
35110 (nvptx_goacc_validate_dims): ... here.
35112 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35114 PR tree-optimization/85574
35115 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35117 (struct ssa_equip_hash_traits): Declare.
35118 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35120 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35123 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35124 change it to qualified_type.
35126 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35128 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35129 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35131 2019-01-02 Martin Sebor <msebor@redhat.com>
35132 Jeff Law <law@redhat.com>
35134 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35135 (get_range_strlen_tree): Update appropriately.
35137 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35139 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35140 rather than set_range_info.
35141 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35142 maybe_set_strlen_range. Handle potentially boundary crossing
35143 cases more conservatively.
35144 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35145 Call set_strlen_range.
35146 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35148 PR middle-end/88663
35149 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35150 need the flexp argument.
35151 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35152 from calls to get_range_strlen. Update comments. Just update
35153 VAL for an unterminated const char array and let the reset of the
35154 code handle it normally. No longer try to set *flexp. Adjust
35156 (get_range_strlen): Update for the new get_range_strlen API.
35157 (get_maxval_strlen): Similarly.
35158 (gimple_fold_builtin_strlen): Handle update meaning of return value
35159 from get_range_strlen.
35160 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35161 get_range_strlen API.
35163 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35166 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35167 false at WPA time when body was removed.
35169 2019-01-02 Martin Liska <mliska@suse.cz>
35171 PR tree-optimization/88650
35172 * predict.c (set_even_probabilities): Calculate probability
35173 remainer only when really used.
35175 2019-01-02 Richard Biener <rguenther@suse.de>
35177 PR middle-end/88651
35178 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35179 widest_ints when mangling max_stmt_execution results.
35181 2019-01-02 Richard Biener <rguenther@suse.de>
35183 PR tree-optimization/88621
35184 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35185 bitfields when canoncalizing.
35187 2019-01-02 Richard Biener <rguenther@suse.de>
35190 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35191 cost of cheap SSE instruction.
35193 2019-01-02 Richard Biener <rguenther@suse.de>
35196 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35197 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35199 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35200 set after UIDs before splitting them.
35202 2019-01-01 Martin Sebor <msebor@redhat.com>
35203 Jeff Law <law@redhat.com>
35205 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35206 length is optimistic. If it is, then arrange to compute the
35207 conservative length as well.
35209 * gimple-fold.h (get_range_strlen): Update prototype.
35210 * builtins.c (check_access): Update call to get_range_strlen to use
35211 c_strlen_data pointer. Change various variable accesses to instead
35212 pull data from the c_strlen_data structure.
35213 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35214 * calls.c (maybe_warn_nonstring_arg): Likewise.
35215 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35216 minimum length if maximum lengh is unknown.
35217 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35218 that used c_strlen, it's no longer needed. Restructure slightly.
35219 (format_string): Set unlikely range appropriately.
35220 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35222 (get_range_strlen): Accept c_strlen_data pointer for external
35223 call sites as well. Pass through to call to internal get_range_strlen.
35224 Adjust minlen, maxlen and maxbound as needed.
35225 (get_maxval_strlen): Update comments.
35226 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35227 to use c_strlen_data pointer. Change variable accesses to instead
35228 use c_strlen_data data members.
35230 * gimple-fold.c (get_range_strlen): Update prototype.
35231 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35232 local variables. Use pdata to return information to caller.
35233 Update calls to get_range_strlen. Update pdata->maxbound.
35234 (get_range_strlen -- static version): Similarly.
35235 (get_range_strlen -- extern version): Update for internal
35236 get_range_strlen API change. Convert to external data format.
35237 (get_maxval_strlen): Similarly.
35239 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
35241 * coverage.c (get_coverage_counts): Use current_function_decl.
35242 * profile.c (read_thunk_profile): New function.
35243 (branch_prob): Add THUNK parameter.
35244 * tree-profile.c (tree_profiling): Handle thunks.
35245 * value-prof.c (init_node_map): Handle thunks.
35246 * value-prof.h (branch_prob): Upate prototype.
35247 (read_thunk_profile): Declare.
35249 2019-01-01 Jakub Jelinek <jakub@redhat.com>
35251 Update copyright years.
35253 * gcc.c (process_command): Update copyright notice dates.
35254 * gcov-dump.c (print_version): Ditto.
35255 * gcov.c (print_version): Ditto.
35256 * gcov-tool.c (print_version): Ditto.
35257 * gengtype.c (create_file): Ditto.
35258 * doc/cpp.texi: Bump @copying's copyright year.
35259 * doc/cppinternals.texi: Ditto.
35260 * doc/gcc.texi: Ditto.
35261 * doc/gccint.texi: Ditto.
35262 * doc/gcov.texi: Ditto.
35263 * doc/install.texi: Ditto.
35264 * doc/invoke.texi: Ditto.
35266 Copyright (C) 2019 Free Software Foundation, Inc.
35268 Copying and distribution of this file, with or without modification,
35269 are permitted in any medium without royalty provided the copyright
35270 notice and this notice are preserved.