1 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
4 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
6 (expand_builtin_nonlocal_goto): Likewise.
8 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
10 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
11 (aarch64_asm_output_external): Declare.
12 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
13 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
14 (aarch64_asm_output_alias): New.
15 (aarch64_asm_output_external): New.
16 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
17 (ASM_OUTPUT_EXTERNAL): Define.
19 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
20 * tree-vrp.h (value_range_base::nonzero_p): New.
21 (value_range_base::set_nonnull): Rename to...
22 (value_range_base::set_nonzero): ...this.
23 (value_range_base::set_null): Rename to...
24 (value_range_base::set_zero): ...this.
25 (value_range::set_nonnull): Remove.
26 (value_range::set_null): Remove.
27 * tree-vrp.c (range_is_null): Remove.
28 (range_is_nonnull): Remove.
29 (extract_range_from_binary_expr): Use value_range_base::*zero_p
30 instead of range_is_*null.
31 (extract_range_from_unary_expr): Same.
32 (value_range_base::set_nonnull): Rename to...
33 (value_range_base::set_nonzero): ...this.
34 (value_range::set_nonnull): Remove.
35 (value_range_base::set_null): Rename to...
36 (value_range_base::set_zero): ...this.
37 (value_range::set_null): Remove.
38 (extract_range_from_binary_expr): Rename set_*null uses to
40 (extract_range_from_unary_expr): Same.
42 * vr-values.c (get_value_range): Use set_*zero instead of
44 (vr_values::extract_range_from_binary_expr): Same.
45 (vr_values::extract_range_basic): Same.
47 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
50 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
52 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
54 * config/aarch64/iterators.md (MAX_OPP): New code attr.
55 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Rename to...
56 (aarch64_<su>abd<mode>_3): ... This.
57 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
59 2019-06-03 Richard Biener <rguenther@suse.de>
61 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
62 full reference tree and record in ref->ref.
63 (vn_reference_lookup_3): Pass in original ref to
64 ao_ref_init_from_vn_reference.
65 (vn_reference_lookup): Likewise.
66 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
67 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
68 Handle non-decl bases in the original reference.
70 2019-06-03 Martin Liska <mliska@suse.cz>
72 * doc/generic.texi: Remove Java Trees.
74 2019-06-03 Martin Liska <mliska@suse.cz>
76 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
77 returns 0 when operands are equal.
79 2019-06-03 Richard Biener <rguenther@suse.de>
81 PR tree-optimization/90716
82 * tree-loop-distribution.c (destroy_loop): Process blocks in
85 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
88 * vector-builder.h (vector_builder::count_dups): New method.
89 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
91 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
92 (vec_init<mode><Vel>): New pattern.
93 * config/aarch64/aarch64.c (emit_insr): New function.
94 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
95 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
96 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
97 (aarch64_sve_expand_vector_init): Define two overloaded functions.
99 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
101 PR tree-optimization/90681
102 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
103 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
104 special case for SLP, but fail on non-groupped loads.
106 2019-06-03 Martin Liska <mliska@suse.cz>
108 * cfg.c (debug): Use TDF_DETAILS for debug and
109 print edge info only once.
111 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
114 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
116 2019-06-01 Martin Sebor <msebor@redhat.com>
119 * tree-pretty-print.c (dump_generic_node): Add parentheses.
121 2019-05-31 Jan Hubicka <jh@suse.cz>
123 * alias.c: Include ipa-utils.h.
124 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
125 * ipa-devirt.c (prevailing_odr_type): New.
126 * ipa-utils.h (previaling_odr_type): Declare.
128 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
129 Hongtao Liu <hongtao.liu@intel.com>
132 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
133 NOTE_INSN_DELETED_LABEL check.
135 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
136 Robert Suchanek <robert.suchanek@mips.com>
138 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
139 and 3rd operands of the fmadd/fmsub/maddv builtin.
141 2019-05-31 Jakub Jelinek <jakub@redhat.com>
143 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
144 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
145 on OMP_SIMD if not nested inside of worksharing loop that also has
146 lastprivate conditional clause for the same decl.
147 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
148 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
150 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
152 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
154 (lower_lastprivate_clauses): Likewise.
155 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
156 calling lower_rec_input_clauses.
157 (lower_omp_for): Likewise.
158 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
159 clause on simd construct.
160 * omp-expand.c (expand_omp_simd): Initialize cond_var if
161 OMP_CLAUSE__CONDTEMP_ clause is present.
163 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
166 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
169 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
170 TEX_D32, TEX_D64 or TEX_D128.
172 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
174 * match.pd (~(vec?cst1:cst2)): New transformation.
176 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
178 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
179 ((size_t)(A /[ex] B) CMP C): New transformation.
181 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
183 * doc/md.texi: Document define_insn_and_rewrite.
184 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
185 * gensupport.c (queue_elem): Update comment.
186 (replace_operands_with_dups): New function.
187 (gen_rewrite_sequence): Likewise.
188 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
189 * read-rtl.c (apply_subst_iterator): Likewise.
190 (add_condition_to_rtx, named_rtx_p): Likewise.
191 (rtx_reader::read_rtx_operand): Likewise.
192 * config/aarch64/aarch64-sve.md
193 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
194 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
195 define_insn_and_rewrite.
196 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
197 Remove separate define_split.
199 2019-05-31 Jan Hubicka <jh@suse.cz>
201 * tree-ssa-alias.c (type_has_components_p): New function.
202 (aliasing_component_refs_p): Use it.
204 2019-05-31 Martin Liska <mliska@suse.cz>
206 * gdbhooks.py: Add const_tree to TreePrinter.
208 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
211 * common.opt (feliminate-unused-debug-symbols): Enable by default.
212 * doc/invoke.texi (Debugging Options): Document new default of
213 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
215 2019-05-31 Jakub Jelinek <jakub@redhat.com>
217 PR tree-optimization/90671
218 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
219 template_block used to be empty on the first call, don't use
220 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
221 seq with bb_seq and set it with set_bb_seq.
223 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
225 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
227 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
228 Michael Meissner <meissner@linux.ibm.com>
230 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
231 (prefixed_mem_operand): Likewise.
232 (non_prefixed_mem_operand): Likewise.
233 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
235 * config/rs6000/rs6000.c (print_operand_address): Handle
236 PC-relative addresses.
237 (mode_supports_prefixed_address_p): New function.
238 (rs6000_prefixed_address): New function.
239 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
240 (SYMBOL_REF_PCREL_P): Likewise.
242 2019-05-30 Jakub Jelinek <jakub@redhat.com>
244 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
245 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
246 (gimplify_omp_for): If worksharing loop with lastprivate conditional
247 is nested inside of parallel region, add _condtemp_ clause to both.
248 * tree-nested.c (convert_nonlocal_omp_clauses,
249 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
251 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
253 * omp-general.c (omp_extract_for_data): Compute it.
254 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
255 (lower_rec_input_clauses): Likewise.
256 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
257 clause is already present, just add one further one after it.
258 (lower_lastprivate_clauses): Handle cond_ptr with array type.
259 (lower_send_shared_vars): Clear _condtemp_ vars.
260 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
261 or section or taskgroup.
262 * omp-expand.c (determine_parallel_type): Disallow combining only if
263 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
264 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
265 (expand_omp_for_generic, expand_omp_for_static_nochunk,
266 expand_omp_for_static_chunk, expand_omp_for): Use
267 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
268 determine if a special set of API routines are needed and if condtemp
269 needs to be initialized, while always initialize cond_var if
270 fd->lastprivate_conditional is non-zero.
272 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
273 Michael Meissner <meissner@linux.ibm.com>
275 * config/rs6000/constraints.md (eI): New constraint.
276 * config/rs6000/predicates.md (cint34_operand): New predicate.
277 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
278 (SIGNED_34BIT_OFFSET_P): Likewise.
279 * doc/md.texi (eI): Document constraint.
281 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
283 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
285 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
286 Michael Meissner <meissner@linux.ibm.com>
288 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
289 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
290 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
291 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
292 (OTHER_FUTURE_MASKS): Likewise.
293 (POWERPC_MASKS): Likewise.
294 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
295 specified without -mprefixed-addr or -mcpu=future. Error if
296 -mprefixed-addr is specified without -mcpu=future.
297 (rs6000_opt_masks): Add entry for prefixed-addr.
298 * rs6000.opt (mprefixed-addr): New option.
300 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
302 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
303 cfun->is_thunk check.
305 2019-05-30 Jakub Jelinek <jakub@redhat.com>
307 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
310 2019-05-30 Martin Liska <mliska@suse.cz>
312 * gdbinit.in: Fix 'ptc' command. Add trt
313 that prints TREE_TYPE($).
315 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
316 Alan Modra <amodra@gmail.com>
318 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
320 (rs6000_indirect_call_template_1): ...and here.
321 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
322 plt16_ha, plt16_lo, mtctr indirect calls. Use
324 (rs6000_decl_ok_for_sibcall): New function.
325 (rs6000_function_ok_for_sibcall): Refactor.
326 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
327 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
328 when pcrel. Reorganize.
329 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
330 * rs6000.h (rs6000_pltseq_enum): New enum.
331 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
332 (*pltseq_tocsave): Use rs6000_pltseq_enum.
333 (*pltseq_plt16_ha): Likewise.
334 (*pltseq_plt16_lo): Likewise.
335 (*pltseq_mtctr): Likewise.
336 (*pltseq_plt_pcrel): New insn.
337 (*call_local_aix): Handle @notoc calls.
338 (*call_value_local_aix): Likewise.
339 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
340 (*call_value_nonlocal_aix): Likewise.
341 (*call_indirect_pcrel): New insn.
342 (*call_value_indirect_pcrel): Likewise.
345 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
347 * config/i386/sse.md (*save_multiple<mode>): Rename from
349 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
350 (*restore_multiple_and_return<mode>): Rename from
351 restore_multiple_and_return<mode>.
352 (*restore_multiple_leave_return<mode>): Rename from
353 restore_multiple_leave_return<mode>.
355 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
357 * config.gcc (rx-*-linux*): New target.
358 * config/rx/elf.opt: New file.
359 * config/rx/linux.h: Likewise.
360 * config/rx/t-linux: Likewise.
361 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
363 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
364 (ASM_APP_OFF): Likewise.
365 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
368 2019-05-29 Jan Hubicka <jh@suse.cz>
370 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
371 variants are pointer equivalent.
373 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
375 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
376 * config/aarch64/aarch64-sve2.md: New file.
377 (<u>avg<mode>3_floor): New pattern.
378 (<u>avg<mode>3_ceil): Likewise.
379 (*<sur>h<addsub><mode>): Likewise.
380 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
381 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
383 2019-05-29 Jakub Jelinek <jakub@redhat.com>
386 * optc-save-gen.awk: In cl_optimization_print, use correct condition
387 for var_opt_string printing. In cl_optimization_print_diff, print
388 (null) instead of invoking undefined behavior if one of the
389 var_opt_string pointers is NULL and use && instead of first || in the
390 guarding condition. For var_target_other options, handle const char *
391 target variables similarly to const char * optimize node variables.
393 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
395 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
396 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
397 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
398 Add autib1716 and pacib1716 initialisation.
399 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
400 for autib1716 and pacib1716.
401 * config/aarch64/aarch64-protos.h (aarch64_key_type,
402 aarch64_post_cfi_startproc): Define.
403 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
404 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
405 aarch64_handle_pac_ret_protection): Set default sign key to A.
406 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
407 aarch64_expand_prologue): Add check for b-key.
408 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
409 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
410 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
411 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
412 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
413 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
414 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
415 * config/aarch64/aarch64.md (do_return): Add check for b-key.
416 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
417 pauth_hint_num_a with pauth_hint_num.
418 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
419 pauth_hint_num_a with pauth_hint_num.
420 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
421 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
422 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
423 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
424 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
425 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
426 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
427 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
428 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
429 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
430 UNSPEC_AUTIA1716 respectively.
431 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to pauth_hint_num
432 and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP, UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
433 * doc/invoke.texi (-mbranch-protection): Add b-key type.
434 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
435 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
437 2019-05-29 Jakub Jelinek <jakub@redhat.com>
439 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
440 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
441 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
442 explicit clause on combined parallel into implicit shared clause.
443 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
444 and firstprivate if the decl has one too from combined parallel to
445 the worksharing construct.
447 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
448 Michael Meissner <meissner@linux.ibm.com>
450 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
452 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
454 * rtl.h (LABEL_REF_P): New #define.
456 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
458 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
460 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
462 * internal-fn.c: Marked mask_load_direct as vectorizable.
463 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
464 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
465 combined even if masks different with allow_slp_p param.
466 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
467 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
468 dissolve SLP-only vectorizable groups when SLP has been discarded.
469 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
470 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
472 (vect_build_slp_tree_1): Fixed comment typo.
473 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
474 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
476 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
478 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
480 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
482 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
483 Remove obsolete use_thunk reference.
484 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
485 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
486 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
487 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
488 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
489 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
490 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
491 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
492 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
494 2019-05-28 Nathan Sidwell <nathan@acm.org>
496 * tree.h (IDENTIFIER_ANON_P): New.
497 (anon_aggrname_format, anon_aggname_p): Don't declare.
498 (make_anon_name): Declare.
499 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
500 (hash_tree): Likewise.
501 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
502 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
503 (anon_cnt, make_anon_name): New.
505 2019-05-28 Martin Liska <mliska@suse.cz>
508 * opts-global.c (decode_options): Print help for all
509 help_option_arguments.
510 * opts.c (print_help): Add new argument.
511 (common_handle_option): Remember all values into
512 help_option_arguments.
513 * opts.h (print_help): Add new argument.
515 2019-05-28 Martin Liska <mliska@suse.cz>
518 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
519 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
520 (func_checker::compare_bb): Call compare_loops.
522 2019-05-27 Jakub Jelinek <jakub@redhat.com>
524 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
525 on sections construct.
526 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
528 (lower_omp_sections): Handle lastprivate conditional.
529 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
530 lastprivate_conditional_map.
531 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
533 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
534 critical, taskgroup and section regions when looking for a region
535 with non-NULL lastprivate_conditional_map.
537 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
539 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
540 (*ix86_gen_sub3): Ditto.
541 (*ix86_gen_sub3_carry): Ditto.
542 (*ix86_gen_one_cmpl2): Ditto.
543 (*ix86_gen_andsp): Ditto.
544 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
545 (gen_and2_insn): New static function.
546 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
547 Use gen_add3_insn instead of ix86_gen_add3.
548 (ix86_expand_split_stack_prologue): Use gen_add2_insn
549 instead of ix86_gen_add3.
550 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
551 Use gen_sub3_insn instead of ix86_gen_sub3.
552 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
553 instead of ix86_gen_add3.
554 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
555 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
556 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
557 * config/i386/i386-options.c (ix86_option_override_internal):
558 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
559 ix86_gen_one_cmpl2 and ix86_gen_andsp.
561 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
563 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
564 and DW_OP_GNU_const_index opcodes.
566 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
568 * config/i386/i386.h (STACK_SIZE_MODE): Define.
570 2019-05-27 Richard Biener <rguenther@suse.de>
572 PR tree-optimization/90637
573 * tree-ssa-sink.c (statement_sink_location): Honor the
574 computed sink location for single-uses.
576 2019-05-27 Richard Biener <rguenther@suse.de>
579 * match.pd (vec_perm): Avoid clobbering op0 when not generating
582 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
584 * config/i386/i386.md (@sub<mode>3_carry): Rename
585 from sub<mode>3_carry.
586 (@leave_<mode>): New expander.
587 (*leave): Rename from leave.
588 (*leave_rex64): Rename from leave_rex64.
589 (@monitorx_<mode>): Rename from monitorx_<mode>.
590 (@clzero_<mode>): Rename from clzero_<mode>.
591 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
592 from sse3_monitor_<mode>.
593 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
594 (*ix86_gen_leave): Ditto.
595 (*ix86_gen_monitor): Ditto.
596 (*ix86_gen_monitorx): Ditto.
597 (*ix86_gen_clzero): Ditto.
598 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
599 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
600 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
601 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
602 Use gen_sse3_monitor instead of ix86_gen_monitor.
603 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
604 instead of ix86_gen_monitorx.
605 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
606 instead of ix86_gen_clzero.
607 * config/i386/i386-options.c (ix86_option_override_internal):
608 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
609 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
611 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
613 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
614 Rename from tls_global_dynamic_64_<mode>.
615 (@tls_local_dynamic_base_64_<mode>): Rename from
616 tls_local_dynamic_base_64_<mode>.
617 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
618 Remove indirect function.
619 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
620 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
621 instead of ix86_gen_tls_global_dynamic_64.
622 Use gen_tls_local_dynamic_base_64 instead of
623 ix86_gen_tls_local_dynamic_base_64.
624 * config/i386/i386-options.c (ix86_option_override_internal):
625 Do not initialize ix86_gen_tls_global_dynamic_64 and
626 ix86_gen_tls_local_dynamic_base_64.
628 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
630 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
631 Rename from pro_epilogue_adjust_stack_<mode>_add.
632 (@pro_epilogue_adjust_stack_sub_<mode>)
633 Rename from pro_epilogue_adjust_stack_<mode>_sub.
634 (@allocate_stack_worker_probe_<mode>):
635 Rename from allocate_stack_worker_probe_<mode>.
636 (allocate_stack): Use gen_allocate_stack_worker_probe.
637 (probe_stack): Use gen_probe_stack_1.
638 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
639 (@adjust_stack_and_probe_<mode>): Rename from
640 adjust_stack_and_probe<mode>.
641 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
642 (stack_protect_set): Use gen_stack_protect_set_1.
643 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
644 (stack_protect_test): Use gen_stack_protect_test_1.
645 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
646 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
647 Remove indirect function.
648 (*ix86_gen_adjust_stack_and_probe): Ditto.
649 (*ix86_gen_probe_stack_range): Ditto.
650 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
651 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
652 (ix86_adjust_stack_and_probe_stack_clash): Use
653 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
654 (ix86_adjust_stack_and_probe): Ditto.
655 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
656 of ix86_gen_probe_stack_range.
657 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
658 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
659 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
660 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
661 CODE_FOR_stack_protect_test_{si,di}.
662 * config/i386/i386-options.c (ix86_option_override_internal):
663 Do not initialize ix86_gen_allocate_stack_worker,
664 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
666 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
668 * doc/invoke.texi (Link Options): Many editorial changes around
671 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
673 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
674 pre-Solaris 11 referene and most Studio compiler details.
676 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
679 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
680 DImode to SImode in floating-point registers on 64-bit target.
681 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
682 register_operand in xmpyu patterns.
684 2019-05-24 Jakub Jelinek <jakub@redhat.com>
686 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
687 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
688 OMP_CLAUSE__REDUCTEMP_.
689 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
690 OMP_CLAUSE__CONDTEMP_.
691 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
692 * tree-pretty-print.c (dump_omp_clause): Likewise.
693 * tree-nested.c (convert_nonlocal_omp_clauses,
694 convert_local_omp_clauses): Likewise.
695 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
696 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
697 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
699 (gimplify_omp_for): Warn and disable conditional modifier from
700 lastprivate on loop iterators.
701 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
703 * omp-general.c (omp_extract_for_data): Initialize it.
704 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
706 (delete_omp_context): Delete it.
707 (lower_lastprivate_conditional_clauses): New function.
708 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
709 handle lastprivate conditional clauses.
710 (lower_reduction_clauses): Add CLIST argument, emit it into
711 the critical section if any.
712 (lower_omp_sections): Adjust lower_lastprivate_clauses and
713 lower_reduction_clauses callers.
714 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
715 to lower_lastprivate_clauses.
716 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
717 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
718 clist into a critical section if not emitted there already by
719 lower_reduction_clauses.
720 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
722 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
723 conditional variables.
724 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
726 (expand_omp_for_generic, expand_omp_for_static_nochunk,
727 expand_omp_for_static_chunk): Handle lastprivate conditional.
728 (expand_omp_for): Handle fd.lastprivate_conditional like
731 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
733 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
734 kernel does not exit cleanly.
735 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
737 2019-05-24 Jason Merrill <jason@redhat.com>
740 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
742 2019-05-24 Richard Biener <rguenther@suse.de>
745 * tree-loop-distribution.c (struct partition): Add location
747 (partition_alloc): Initialize all fields.
748 (generate_memset_builtin): Use the location recorded in the
749 partition for the generated call.
750 (generate_memcpy_builtin): Likewise.
751 (classify_partition): Record the location of a single store
752 as location for the partition.
754 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
756 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
759 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
762 * common/config/aarch64/aarch64-common.c
763 (aarch64_rewrite_selected_cpu): Change local temporary variable
764 type from unsigned long to uint64_t.
765 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
766 aarch64_get_extension_string_for_isa_flags): Change declaration to
767 match new definition by replacing unsigned long with uint64_t.
769 2019-05-24 Jakub Jelinek <jakub@redhat.com>
772 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
773 gen_attr_type just once instead of 4-7 times. Formatting fixes.
774 Handle stack_protect_test_<mode> codegen similarly to corresponding
777 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
779 * config/i386/darwin.h: Reject -mfentry*.
780 * doc/sourcebuild.texi: Document mfentry target support.
782 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
784 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
785 Rename to rs6000_global_entry_point_prologue_needed_p. Return
786 false for PC-relative functions.
787 (rs6000_output_function_prologue): Change called function name to
788 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
789 name,1" for PC-relative functions.
790 (rs6000_elf_declare_function_name): Change called function name to
791 rs6000_global_entry_point_prologue_needed_p.
793 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
796 * config/i386/i386.c (gen_rtx_cost):
797 Use ix86_tune_cost instead of ix86_cost.
799 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
800 Michael Meissner <meissner@linux.ibm.com>
801 Segher Boessenkool <segher@kernel.crashing.org>
803 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
805 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
806 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
807 (rs6000_fndecl_pcrel_p): Likewise.
808 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
809 error if -mpcrel is requested without -mcpu=future.
810 (rs6000_opt_masks): Add entry for pcrel.
811 (rs6000_fndecl_pcrel_p): New function.
812 (rs6000_pcrel_p): Likewise.
813 * config/rs6000/rs6000.opt (mpcrel): New option.
814 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
816 2019-05-23 Jan Hubicka <jh@suse.cz>
817 Martin Liska <mliska@suse.cz>
819 PR tree-optimization/90576
820 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
822 (aliasing_component_refs_p): Fix three way size compare conditional;
823 give up earlier in case we can not decide on equivalence.
825 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
826 Michael Meissner <meissner@linux.ibm.com>
827 Segher Boessenkool <segher@kernel.crashing.org>
829 * config.gcc: Add future cpu.
830 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
831 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
833 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
834 (RS6000_CPU): New instantiation for future cpu.
835 * config/rs6000/rs6000-opts.h (enum processor_type): Add
837 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
838 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
839 * config/rs6000/rs6000-tables.opt: Regenerate.
840 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
841 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
842 (rs6000_machine_from_flags): Handle future cpu.
843 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
844 PROCESSOR_POWER9 for now.
845 (rs6000_adjust_cost): Likewise.
846 (rs6000_issue_rate): Likewise.
847 (rs6000_register_move_cost): Likewise.
848 (rs6000_opt_masks): Add entry for future.
849 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
850 (MASK_FUTURE): New #define.
851 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
852 * config/rs6000/rs6000.opt (mfuture): New target option.
853 * doc/invoke.texi (mcpu): Add future cpu.
855 2019-05-23 Martin Liska <mliska@suse.cz>
858 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
859 operation points to a temporary (pointed via tree_to_wide_ref)
860 that is out of scope after the &.
862 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
865 * doc/extend.texi (Function Names): Add missing word.
867 2019-05-23 Richard Biener <rguenther@suse.de>
869 PR tree-optimization/88440
870 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
872 * tree-loop-distribution.c (generate_memset_builtin): Fold the
874 (generate_memcpy_builtin): Likewise.
875 (distribute_loop): Pass in whether to only distribute patterns.
876 (prepare_perfect_loop_nest): Also allow size optimization.
877 (pass_loop_distribution::execute): When optimizing a loop
878 nest for size allow pattern replacement.
880 2019-05-23 Jakub Jelinek <jakub@redhat.com>
883 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
886 2019-05-23 Martin Liska <mliska@suse.cz>
889 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
890 expression similarly to gimplify_decl_expr.
892 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
894 * cse.c (cse_dump_path): s/dump_file/f.
896 2019-05-22 David Malcolm <dmalcolm@redhat.com>
899 * diagnostic-format-json.cc: Include "selftest.h".
900 (json_from_expanded_location): Only add "file" key for non-NULL
902 (json_from_location_range): Don't add "start" and "finish"
903 children if they are UNKNOWN_LOCATION.
904 (selftest::test_unknown_location): New selftest.
905 (selftest::test_bad_endpoints): New selftest.
906 (selftest::diagnostic_format_json_cc_tests): New function.
907 * json.cc (json::object::get): New function.
908 (selftest::test_object_get): New selftest.
909 (selftest::json_cc_tests): Call it.
910 * json.h (json::object::get): New decl.
911 * selftest-run-tests.c (selftest::run_tests): Call
912 selftest::diagnostic_format_json_cc_tests.
913 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
916 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
917 Andrew Stubbs <amd@codesourcery.com>
919 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
920 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
921 (kernel): Rename to...
922 (main_kernel): ... this.
923 (load_image): Load _init_array and _fini_array kernels.
924 (run): Add argument for kernel to run.
925 (main): Run init_array_kernel before main_kernel, and
926 fini_array_kernel after.
927 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
928 amdgpu_hsa_kernel attribute on functions.
929 (gcn_disable_constructors): Delete.
930 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
931 * config/gcn/crt0.c (size_t): Define.
932 (_init_array, _fini_array): New.
933 (__preinit_array_start, __preinit_array_end,
934 __init_array_start, __init_array_end,
935 __fini_array_start, __fini_array_end): Declare weak references.
937 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
939 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
941 2019-05-22 Jason Merrill <jason@redhat.com>
943 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
945 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
948 * config/i386/i386-options.c (ix86_init_machine_status): Set
949 stack_frame_required to true.
950 * config/i386/i386.c (ix86_get_frame_size): New function.
951 (ix86_frame_pointer_required): Replace get_frame_size with
953 (ix86_compute_frame_layout): Likewise.
954 (ix86_find_max_used_stack_alignment): Changed to void. Set
955 stack_frame_required.
956 (ix86_finalize_stack_frame_flags): Always call
957 ix86_find_max_used_stack_alignment. Replace get_frame_size with
959 * config/i386/i386.h (machine_function): Add stack_frame_required.
961 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
963 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
965 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
967 * common/config/aarch64/aarch64-common.c
968 (struct aarch64_option_extension, struct processor_name_to_arch,
969 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
970 aarch64_contains_opt,
971 aarch64_get_extension_string_for_isa_flags): Change type of
972 variables storing flags to uint64_t.
973 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
974 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
975 * config/aarch64/aarch64.c (struct processor,
976 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
977 aarch64_validate_march, aarch64_override_options,
978 aarch64_option_print, aarch64_handle_attr_isa_flags,
979 aarch64_declare_function_name, aarch64_start_file): Make flag
981 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
982 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
983 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
984 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
985 * config/aarch64/driver-aarch64.c
986 (struct aarch64_arch_extension, struct aarch64_core_data,
987 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
988 flag variables uint64_t.
989 * doc/invoke.texi: Add documentation for new arguments.
991 2019-05-22 Richard Biener <rguenther@suse.de>
993 * alias.c (ao_ref_from_mem): Move stack-slot sharing
995 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
997 2019-05-22 Martin Liska <mliska@suse.cz>
1000 * doc/extend.texi: Document the change.
1002 2019-05-22 Richard Biener <rguenther@suse.de>
1004 PR tree-optimization/90450
1005 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
1006 (mem_ref_hasher::equal): Check it.
1007 (mem_ref_alloc): Initialize it.
1008 (gather_mem_refs_stmt): Set it.
1010 2019-05-22 Richard Biener <rguenther@suse.de>
1012 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
1014 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
1017 2019-05-22 Alan Modra <amodra@gmail.com>
1019 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
1020 (ASM_CPU_SPEC): Conditionally add -many.
1021 * config/rs6000/rs6000.c (rs6000_machine): New static var.
1022 (rs6000_machine_from_flags, emit_asm_machine): New functions..
1023 (rs6000_file_start): ..extracted from here, and modified to
1025 (rs6000_output_function_prologue): Emit .machine as necessary.
1026 * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
1028 * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
1029 added by check_vect_support_and_set_flags.
1030 * testsuite/gcc.dg/vect/pr48765.c: Likewise.
1031 * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
1033 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
1036 * ira-lives.c (process_bb_node_lives): Consider defs
1037 for a call insn to be die before the call, not after.
1039 * function.c (assign_parm_setup_block): Raise alignment of
1040 stacked parameter only for STRICT_ALIGNMENT targets.
1042 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1044 * config/rs6000/constraints.md (define_register_constraint "wz"):
1046 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1047 RS6000_CONSTRAINT_wz.
1048 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1049 (rs6000_init_hard_regno_mode_ok): Adjust.
1050 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
1051 * doc/md.texi (Machine Constraints): Adjust.
1053 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1055 * config/rs6000/constraints.md (define_register_constraint "wl"):
1057 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1058 RS6000_CONSTRAINT_wl.
1059 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1060 (rs6000_init_hard_regno_mode_ok): Adjust.
1061 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
1062 * doc/md.texi (Machine Constraints): Adjust.
1064 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1066 * config/rs6000/constraints.md (define_register_constraint "wm"):
1068 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1069 RS6000_CONSTRAINT_wm.
1070 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1071 (rs6000_init_hard_regno_mode_ok): Adjust.
1072 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
1073 * doc/md.texi (Machine Constraints): Adjust.
1075 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1077 * config/rs6000/constraints.md (define_register_constraint "wk"):
1079 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1080 RS6000_CONSTRAINT_wk.
1081 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1082 (rs6000_init_hard_regno_mode_ok): Adjust.
1083 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
1084 * doc/md.texi (Machine Constraints): Adjust.
1086 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1088 * config/rs6000/constraints.md (define_register_constraint "wj"):
1090 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1091 RS6000_CONSTRAINT_wj.
1092 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1093 (rs6000_init_hard_regno_mode_ok): Adjust.
1094 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
1096 * config/rs6000/vsx.md: Ditto.
1097 * doc/md.texi (Machine Constraints): Adjust.
1099 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1101 * config/rs6000/constraints.md (define_register_constraint "wh"):
1103 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1104 RS6000_CONSTRAINT_wh.
1105 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1106 (rs6000_init_hard_regno_mode_ok): Adjust.
1107 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
1108 * doc/md.texi (Machine Constraints): Adjust.
1110 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
1113 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
1114 Avoid calling gen_lowpart with CONST operand.
1116 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
1118 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
1119 field template_last_to_copy.
1120 (ssa_create_duplicates): Set it, and use it. Attempt to
1121 preserve more debug stmts.
1123 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
1125 * config/i386/sse.md (VF1_AVX2): New mode iterator.
1126 (signbit<mode>2): New expander
1128 2019-05-21 James Clarke <jrtc27@jrtc27.com>
1131 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
1132 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
1134 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
1136 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
1137 %ebx and %ecx bafore calling cpuid with leaf 1 or
1138 non-constant leaf argument.
1140 2019-05-21 Alan Modra <amodra@gmail.com>
1143 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
1144 power9 direct move cost.
1145 * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
1146 Correct comments and rename functions to suit parameters.
1148 2019-05-21 Richard Biener <rguenther@suse.de>
1151 * fold-const.c (fold_read_from_vector): New function.
1152 * fold-const.h (fold_read_from_vector): Declare.
1153 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
1154 single-element insert permutations. Canonicalize selector
1155 further and fix issue with last commit.
1157 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
1159 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
1160 parameter with default value false to declaration.
1161 (split_edges_for_insertion): New inline function. Wrapper for
1162 split_critical_edges with for_edge_insertion_p = true.
1163 * tree-cfg.c (split_critical_edges): Don't split non-critical
1164 edges if for_edge_insertion_p is false. Fix whitespace.
1165 * tree-ssa-pre.c (pass_pre::execute): Call
1166 split_edges_for_insertion instead of split_critical_edges.
1167 * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
1168 * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
1169 (pass_data_sink_code): Update function name in the comment.
1171 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
1173 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
1174 around is_value_included_in that knows how to handle BIT_AND_EXPR.
1175 (is_pred_expr_subset_of): Use the new function. Handle more cases where
1176 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
1179 2019-05-21 Martin Liska <mliska@suse.cz>
1181 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
1183 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
1184 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
1186 * config/rs6000/rs6000.c (rs6000_option_override_internal):
1188 (rs6000_function_arg): Likewise.
1189 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
1190 (rs6000_expand_ternop_builtin): Use interval syntax.
1191 (get_element_number): Likewise.
1192 (altivec_expand_builtin): Likewise.
1193 (rs6000_get_function_versions_dispatcher): Quote target_clones.
1197 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1201 * function.h (struct function): Add calls_eh_return member.
1202 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
1203 gimplifying __builtin_eh_return call.
1204 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
1206 (expand_call_inline): Or in src_cfun->calls_eh_return into
1207 dst_cfun->calls_eh_return.
1208 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
1209 cfun->calls_eh_return.
1210 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
1211 * lto-streamer-out.c (output_struct_function_base): Write
1214 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
1216 PR rtl-optimization/43147
1217 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
1218 IX86_BUILTIN_SHUFPD.
1220 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
1222 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
1223 (refs_may_alias_p_1): ... here; update stats.
1224 (refs_may_alias_p): Do not update stats here.
1226 2019-05-20 Richard Biener <rguenther@suse.de>
1228 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
1229 doesn't produce pointers.
1230 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
1231 the first operand points to.
1233 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
1235 * tree-ssa-alias.c (compare_sizes): New function.
1236 (sompare_type_sizes): New function
1237 (aliasing_component_refs_p): Use it.
1238 (indirect_ref_may_alias_decl_p): Likewise.
1240 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1242 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
1244 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1246 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
1247 (LIBLSAN_EARLY_SPEC): Likewise.
1248 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
1250 2019-05-20 Martin Liska <mliska@suse.cz>
1252 * config/i386/i386.c (ix86_libc_has_fast_function):
1253 Add ATTRIBUTE_UNUSED for the argument.
1255 2019-05-20 Richard Biener <rguenther@suse.de>
1257 * gimple-match-head.c: Include vec-perm-indices.h.
1258 * generic-match-head.c: Likewise.
1259 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
1261 * fold-const.c (fold_vec_perm): Export.
1262 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
1263 (match.pd): ...here.
1265 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1267 * cfgloop.h (struct loop): Add simdlen member.
1268 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
1269 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
1270 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
1271 as new argument to autovectorize_vector_sizes target hook. If
1272 loop->simdlen, pick up vector size where the vectorization factor
1273 is equal to loop->simd, and if there is none, fall back to the first
1275 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
1277 * omp-low.c (omp_clause_aligned_alignment): Likewise.
1278 * omp-general.c (omp_max_vf): Likewise.
1279 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
1280 * tree-vect-slp.c (vect_slp_bb): Likewise.
1281 * target.def (autovectorize_vector_sizes): Add ALL argument and
1283 * doc/tm.texi: Adjust documentation.
1284 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
1285 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
1286 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
1288 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
1289 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
1290 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
1291 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
1292 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
1293 preferred vector size is not 512-bit or 256-bit, just put those
1294 unpreferred ones last.
1296 2019-05-20 Martin Liska <mliska@suse.cz>
1298 * targhooks.c (default_libc_has_fast_function): New function.
1299 * targhooks.h (default_libc_has_fast_function): Likewise.
1301 2019-05-20 Martin Liska <mliska@suse.cz>
1304 * builtins.c (expand_builtin_memory_copy_args): When having a
1305 target with fast mempcpy implementation do now use memcpy.
1306 * config/i386/i386.c (ix86_libc_has_fast_function): New.
1307 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
1308 * doc/tm.texi: Likewise.
1309 * doc/tm.texi.in: Likewise.
1311 * expr.c (emit_block_move_hints): Add 2 new arguments.
1312 * expr.h (emit_block_move_hints): Bail out when libcall
1313 to memcpy would be used.
1315 2019-05-20 Martin Liska <mliska@suse.cz>
1317 * profile-count.c: Add vertical spacing in order
1318 to separate functions.
1319 * profile-count.h: Likewise.
1321 2019-05-20 Martin Liska <mliska@suse.cz>
1323 * profile-count.h: Do not use full qualified
1325 * profile-count.c (profile_count::to_frequency): Likewise.
1327 2019-05-20 Martin Liska <mliska@suse.cz>
1329 * profile-count.h (enum profile_quality): Use capital letters
1330 for enum value names. Use the adjusted names.
1331 * profile-count.c: Use the adjusted names.
1333 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1335 * config/rs6000/constraints.md (define_register_constraint "wH"):
1337 (define_register_constraint "wI"): Delete.
1338 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1339 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
1340 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1341 (rs6000_init_hard_regno_mode_ok): Adjust.
1342 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
1343 resp. "d", or with "wa" as appropriate, all with "p8v".
1344 * config/rs6000/vsx.md: Ditto.
1345 * doc/md.texi (Machine Constraints): Adjust.
1347 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1349 * config/rs6000/constraints.md (define_register_constraint "wy"):
1351 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1352 RS6000_CONSTRAINT_wy.
1353 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1354 (rs6000_init_hard_regno_mode_ok): Adjust.
1355 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
1356 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
1357 (define_mode_attr Fisa): New.
1358 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
1359 * doc/md.texi (Machine Constraints): Adjust.
1361 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1363 * config/rs6000/constraints.md (define_register_constraint "wu"):
1365 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1366 RS6000_CONSTRAINT_wu.
1367 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1368 (rs6000_init_hard_regno_mode_ok): Adjust.
1369 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
1371 (define_mode_attr Fa): Delete.
1372 * config/rs6000/vsx.md: Ditto.
1373 * doc/md.texi (Machine Constraints): Adjust.
1375 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1377 * config/rs6000/constraints.md (define_register_constraint "wJ"):
1379 (define_register_constraint "wK"): Delete.
1380 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1381 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
1382 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1383 (rs6000_init_hard_regno_mode_ok): Adjust.
1384 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
1385 Replace "wK" constraint by "wH" with "p9v".
1386 * config/rs6000/vsx.md: Ditto.
1387 * doc/md.texi (Machine Constraints): Adjust.
1389 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1391 * config/rs6000/constraints.md (define_register_constraint "wb"):
1393 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1394 RS6000_CONSTRAINT_wb.
1395 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1396 (rs6000_init_hard_regno_mode_ok): Adjust.
1397 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
1398 * config/rs6000/vsx.md: Ditto.
1399 * doc/md.texi (Machine Constraints): Adjust.
1401 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1403 * config/rs6000/constraints.md (define_register_constraint "wo"):
1405 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1406 RS6000_CONSTRAINT_wo.
1407 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1408 (rs6000_init_hard_regno_mode_ok): Adjust.
1409 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
1410 * config/rs6000/altivec.md: Ditto.
1411 * doc/md.texi (Machine Constraints): Adjust.
1413 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
1415 * config/darwin-c.c (darwin_register_objc_includes): Do not
1416 prepend the sysroot when building gnu-runtime header search
1419 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
1421 * config/darwin.c (darwin_file_end): Use switch_to_section ()
1422 instead of direct output of the asm.
1424 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
1426 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
1427 argument to be type bool (was int before).
1428 (rs6000_emit_epilogue): Simplify some code. Declare some variables
1429 at first use. Use type bool for some variables. Fix a theoretical
1430 eh_return bug for svr4.
1432 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
1434 * config/rs6000/rs6000.md (isa): New attribute.
1435 (enabled): New attribute.
1437 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
1439 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
1440 assemble_start_function and assemble_end_function.
1442 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
1445 * omp-general.c (oacc_verify_routine_clauses): Change formal
1446 parameters. Add checking if already marked with an OpenACC
1447 'routine' directive. Adjust all users.
1450 * omp-general.c (oacc_build_routine_dims): Move some of its
1452 (oacc_verify_routine_clauses): ... this new function.
1453 * omp-general.h (oacc_verify_routine_clauses): New prototype.
1455 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
1457 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
1458 formating of picbase labels to match other ports.
1460 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
1462 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
1463 in the generated code.
1465 2019-05-16 Martin Sebor <msebor@redhat.com>
1467 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
1468 identifiers, keywords, operators, and types in diagnostics. Correct
1469 quoting, spelling, and sentence capitalization issues.
1470 (expand_builtin_atomic_is_lock_free): Same.
1471 (fold_builtin_next_arg): Same.
1472 * cfgexpand.c (expand_one_var): Same.
1473 (tree_conflicts_with_clobbers_p): Same.
1474 (expand_asm_stmt): Same.
1475 (verify_loop_structure): Same.
1476 * cgraphunit.c (process_function_and_variable_attributes): Same.
1477 * collect-utils.c (collect_execute): Same.
1478 * collect2.c (maybe_run_lto_and_relink): Same.
1479 (is_lto_object_file): Same.
1480 (scan_prog_file): Same.
1481 * convert.c (convert_to_real_1): Same.
1482 * dwarf2out.c (dwarf2out_begin_prologue): Same.
1483 * except.c (verify_eh_tree): Same.
1484 * gcc.c (execute): Same.
1485 (eval_spec_function): Same.
1486 (run_attempt): Same.
1487 (driver::set_up_specs): Same.
1488 (compare_debug_auxbase_opt_spec_function): Same.
1489 * gcov-tool.c (unlink_gcda_file): Same.
1492 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
1493 * gimplify.c (gimplify_asm_expr): Same.
1494 (gimplify_adjust_omp_clauses): Same.
1495 * hsa-gen.c (gen_hsa_addr_insns): Same.
1496 (gen_hsa_insns_for_load): Same.
1497 (gen_hsa_cmp_insn_from_gimple): Same.
1498 (gen_hsa_insns_for_operation_assignment): Same.
1499 (gen_get_level): Same.
1500 (gen_hsa_alloca): Same.
1501 (omp_simple_builtin::generate): Same.
1502 (gen_hsa_atomic_for_builtin): Same.
1503 (gen_hsa_insns_for_call): Same.
1504 * input.c (dump_location_info): Same.
1505 * ipa-devirt.c (compare_virtual_tables): Same.
1506 * ira.c (ira_setup_eliminable_regset): Same.
1507 * lra-assigns.c (lra_assign): Same.
1508 * lra-constraints.c (lra_constraints): Same.
1509 * lto-streamer-in.c (lto_input_mode_table): Same.
1510 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
1511 (merge_and_complain): Same.
1512 (compile_offload_image): Same.
1513 (compile_images_for_offload_targets): Same.
1514 (debug_objcopy): Same.
1517 * opts.c (print_specific_help): Same.
1518 (parse_no_sanitize_attribute): Same.
1520 (handle_param): Same.
1521 * plugin.c (add_new_plugin): Same.
1522 (parse_plugin_arg_opt): Same.
1523 (try_init_one_plugin): Same.
1524 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
1525 operators, and types in diagnostics. Correct quoting and spelling
1527 * read-rtl-function.c (parse_edge_flag_token): Same.
1528 (function_reader::parse_enum_value): Same.
1529 * reg-stack.c (check_asm_stack_operands): Same.
1530 * regcprop.c (validate_value_data): Same.
1531 * sched-rgn.c (make_pass_sched_fusion): Same.
1532 * stmt.c (check_unique_operand_names): Same.
1533 * targhooks.c (default_target_option_pragma_parse): Same.
1534 * tlink.c (recompile_files): Same.
1535 * toplev.c (process_options): Same.
1537 * trans-mem.c (diagnose_tm_1): Same.
1538 (ipa_tm_scan_irr_block): Same.
1539 (ipa_tm_diagnose_transaction): Same.
1540 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
1541 format a tree code name in a diagnostic.
1542 (verify_types_in_gimple_min_lval): Same.
1543 (verify_types_in_gimple_reference): Same.
1544 (verify_gimple_call): Same.
1545 (verify_gimple_assign_unary): Same.
1546 (verify_gimple_assign_binary): Same.
1547 (verify_gimple_assign_ternary): Same.
1548 (verify_gimple_assign_single): Same.
1549 (verify_gimple_switch): Same.
1550 (verify_gimple_label): Same.
1551 (verify_gimple_phi): Same.
1552 (verify_gimple_in_seq): Same.
1553 (verify_eh_throw_stmt_node): Same.
1554 (collect_subblocks): Same.
1555 (gimple_verify_flow_info): Same.
1556 (do_warn_unused_result): Same.
1557 * tree-inline.c (expand_call_inline): Same.
1558 * tree-into-ssa.c (update_ssa): Same.
1559 * tree.c (tree_int_cst_elt_check_failed): Same.
1560 (tree_vec_elt_check_failed): Same.
1561 (omp_clause_operand_check_failed): Same.
1562 (verify_type_variant): Same.
1563 (verify_type): Same.
1564 * value-prof.c (verify_histograms): Same.
1565 * varasm.c (assemble_start_function): Same.
1567 2019-05-16 Martin Sebor <msebor@redhat.com>
1569 * config/i386/i386-expand.c (get_element_number): Quote keywords
1570 and other internal names in diagnostics. Adjust other diagnostic
1571 formatting issues noted by -Wformat-diag.
1572 * config/i386/i386-features.c
1573 (ix86_mangle_function_version_assembler_name): Same.
1574 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
1575 * config/i386/i386.c (ix86_function_type_abi): Same.
1576 (ix86_function_ms_hook_prologue): Same.
1577 (classify_argument): Same.
1578 (ix86_expand_prologue): Same.
1579 (ix86_md_asm_adjust): Same.
1580 (ix86_memmodel_check): Same.
1582 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1584 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
1585 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
1588 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
1591 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
1592 intrinsics without SSE/SSE2/SSSE3.
1593 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
1595 (*mmx_uavgv8qi3): Likewise.
1597 2019-05-17 Richard Biener <rguenther@suse.de>
1599 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
1600 VEC_PERM_EXPR as __VEC_PERM with -gimple.
1602 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
1604 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
1605 vec_sldw insn pattern.
1607 2019-05-17 Richard Biener <rguenther@suse.de>
1609 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
1611 2019-05-17 Martin Liska <mliska@suse.cz>
1614 * toplev.c (output_stack_usage): With LTO and sanitizer it
1615 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
1616 has no file location.
1618 2019-05-16 Jakub Jelinek <jakub@redhat.com>
1621 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
1622 sz0 is equal to sz1, instead return false in that case.
1624 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
1625 has non-constant expression, force sctx.lane and use two
1626 argument IFN_GOMP_SIMD_LANE instead of single argument.
1627 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
1628 two argument IFN_GOMP_SIMD_LANE without lhs.
1629 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
1631 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
1633 (LOOP_REQUIRES_VERSIONING): Or in
1634 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
1635 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
1637 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
1638 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
1639 from simd if clause if needed.
1641 2019-05-16 Richard Biener <rguenther@suse.de>
1643 * tree-affine.c (expr_to_aff_combination): New function split
1645 (tree_to_aff_combination): ... here.
1646 (aff_combination_expand): Avoid building a GENERIC tree.
1648 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
1650 * cgraphunit.c (cgraph_node::expand_thunk): Remove
1651 assemble_start_function and assemble_end_function calls.
1652 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
1653 assemble_start_function and assemble_end_function.
1654 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
1655 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
1656 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
1657 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
1658 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
1659 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
1660 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
1661 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
1662 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
1663 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
1664 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
1665 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
1667 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
1668 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
1669 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
1670 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
1671 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
1672 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
1673 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
1674 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
1675 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
1676 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
1677 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1678 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
1679 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
1680 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
1682 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
1683 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
1684 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
1686 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
1688 * tree-ssa-alias.c (alias_stats): Add
1689 aliasing_component_refs_p_may_alias and
1690 aliasing_component_refs_p_no_alias.
1691 (dump_alias_stats): Print aliasing_component_refs_p stats.
1692 (aliasing_component_refs_p): Update stats.
1694 2019-05-16 Martin Liska <mliska@suse.cz>
1697 * multiple_target.c (expand_target_clones): Do not allow
1698 target_clones being used with a symbol that is an alias.
1700 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
1702 PR tree-optimization/90394
1703 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
1704 positives rather than ICE for cases where (code2 == NE_EXPR
1705 && code1 == BIT_AND_EXPR).
1707 2019-05-16 Jakub Jelinek <jakub@redhat.com>
1710 * tree-core.h (struct tree_decl_common): Document
1711 decl_nonshareable_flag for PARM_DECLs.
1712 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
1713 * calls.c (expand_call): Don't try tail call if caller
1714 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
1715 passed on the stack and callee needs to pass any arguments on the
1717 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
1718 else if instead of series of mutually exclusive ifs. Handle
1719 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
1720 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1722 * lto-streamer.h (LTO_major_version): Bump to 9.
1724 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
1726 PR tree-optimization/90106
1727 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
1728 new parameter as new internal function call, also move it to new
1730 (use_internal_fn): Pass internal function call to
1731 shrink_wrap_one_built_in_call_with_conds.
1733 2019-05-15 Jakub Jelinek <jakub@redhat.com>
1735 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
1737 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
1738 safelen_int and set loop->dont_vectorize.
1740 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1743 * config/i386/i386-builtin.def: Enable MMX intrinsics with
1745 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
1747 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
1748 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
1749 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
1752 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1755 * config/i386/mmx.md (*vec_dupv2sf): Changed to
1756 define_insn_and_split to support SSE emulation.
1757 (*vec_extractv2sf_0): Likewise.
1758 (*vec_extractv2sf_1): Likewise.
1759 (*vec_extractv2si_0): Likewise.
1760 (*vec_extractv2si_1): Likewise.
1761 (*vec_extractv2si_zext_mem): Likewise.
1762 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
1763 (vec_extractv2sf_1 splitter): Likewise.
1764 (vec_extractv2sfsf): Likewise.
1765 (vec_setv2si): Likewise.
1766 (vec_extractv2si_1 splitter): Likewise.
1767 (vec_extractv2sisi): Likewise.
1768 (vec_setv4hi): Likewise.
1769 (vec_extractv4hihi): Likewise.
1770 (vec_setv8qi): Likewise.
1771 (vec_extractv8qiqi): Likewise.
1772 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
1773 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
1774 (vec_extractv2sisi): Likewise.
1775 (vec_extractv4hihi): Likewise.
1776 (vec_extractv8qiqi): Likewise.
1777 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
1778 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
1779 (vec_initv2sisi): Likewise.
1780 (vec_initv4hihi): Likewise.
1781 (vec_initv8qiqi): Likewise.
1782 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
1783 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
1784 (vec_setv4hi): Likewise.
1785 (vec_setv8qi): Likewise.
1787 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1790 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
1791 TARGET_MMX_WITH_SSE.
1792 (MMXMODE:*mov<mode>_internal): Likewise.
1793 (MMXMODE:movmisalign<mode>): Likewise.
1795 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
1798 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
1799 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
1800 (sse2_cvtpd2pi): Ditto.
1801 (sse2_cvttpd2pi): Ditto.
1802 (*vec_concatv2sf_sse4_1): Ditto.
1803 (*vec_concatv2sf_sse): Ditto.
1804 (*vec_concatv2si_sse4_1): Ditto.
1805 (*vec_concatv2si): Ditto.
1806 (*vec_concatv4si_0): Ditto.
1807 (*vec_concatv2di_0): Ditto.
1809 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1812 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
1814 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1817 * config/i386/sse.md (ssse3_palignrdi): Changed to
1818 define_insn_and_split to support SSE emulation.
1820 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1823 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
1825 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1828 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
1829 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
1832 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1835 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
1836 or TARGET_MMX_WITH_SSE.
1837 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
1839 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1842 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
1844 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1847 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
1848 Changed to define_insn_and_split to support SSE emulation.
1850 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1853 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
1854 Changed to define_insn_and_split to support SSE emulation.
1856 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1859 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
1860 (*mmx_<emms>): This.
1861 (mmx_<emms>): New expander.
1863 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1866 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
1868 (*sse2_umulv1siv1di3): Add SSE2 emulation.
1870 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1873 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
1875 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1878 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
1880 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1883 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
1884 TARGET_MMX_WITH_SSE.
1885 (*mmx_uavgv4hi3): Add SSE emulation.
1887 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1890 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
1891 and TARGET_MMX_WITH_SSE.
1892 (*mmx_uavgv8qi3): Add SSE emulation.
1894 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1897 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
1898 maskmovdqu for __MMX_WITH_SSE__.
1900 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1903 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
1904 TARGET_MMX and TARGET_MMX_WITH_SSE.
1905 (*mmx_umulv4hi3_highpart): Add SSE emulation.
1907 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1910 * config/i386/mmx.md (mmx_pmovmskb): Changed to
1911 define_insn_and_split to support SSE emulation.
1913 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1916 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
1917 and TARGET_MMX_WITH_SSE.
1918 (mmx_<code>v8qi3): Likewise.
1919 (smaxmin:<code>v4hi3): New.
1920 (umaxmin:<code>v8qi3): Likewise.
1921 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
1922 (umaxmin:*mmx_<code>v8qi3): Likewise.
1924 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1927 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
1928 TARGET_MMX_WITH_SSE.
1929 (*mmx_pinsrw): Add SSE emulation.
1931 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1934 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
1936 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1939 * config/i386/sse.md (sse_cvtpi2ps): Changed to
1940 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
1943 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1946 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
1947 (sse_cvttps2pi): Likewise.
1949 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1952 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
1953 TARGET_MMX_WITH_SSE.
1954 (mmx_pshufw_1): Add SSE emulation.
1955 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
1956 TARGET_MMX_WITH_SSE to support SSE emulation.
1958 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1961 * config/i386/constraints.md (Yw): New constraint.
1962 * config/i386/mmx.md (*vec_dupv2si): Changed to
1963 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
1964 support SSE emulation.
1966 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1969 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
1970 TARGET_MMX_WITH_SSE.
1971 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
1973 (mmx_gt<mode>3): Likewise.
1975 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1978 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
1979 TARGET_MMX_WITH_SSE. Add SSE support.
1981 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1984 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
1985 TARGET_MMX_WITH_SSE.
1986 (any_logic:<code><mode>3): New.
1987 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
1990 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1993 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
1994 TARGET_MMX_WITH_SSE. Add SSE emulation.
1995 (mmx_<shift_insn><mode>3): Likewise.
1997 (<shift_insn><mode>3): Likewise.
1999 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2002 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
2003 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
2005 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2008 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
2009 TARGET_MMX_WITH_SSE.
2010 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
2013 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2016 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
2017 TARGET_MMX_WITH_SSE.
2019 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
2022 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2025 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
2026 (plusminus:mmx_<plusminus_insn><mode>3): Check
2027 TARGET_MMX_WITH_SSE.
2028 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
2029 (<plusminus_insn><mode>3): New.
2030 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
2031 (*mmx_<plusminus_insn><mode>3): Likewise.
2033 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2036 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
2037 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
2039 * config/i386/mmx.m (mmx_punpckhbw): Changed to
2040 define_insn_and_split to support SSE emulation.
2041 (mmx_punpcklbw): Likewise.
2042 (mmx_punpckhwd): Likewise.
2043 (mmx_punpcklwd): Likewise.
2044 (mmx_punpckhdq): Likewise.
2045 (mmx_punpckldq): Likewise.
2047 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2048 Uros Bizjak <ubizjak@gmail.com>
2051 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
2053 (ix86_split_mmx_pack): Likewise.
2054 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
2056 (ix86_split_mmx_pack): Likewise.
2057 * config/i386/i386.md (mmx_isa): New.
2058 (enabled): Also check mmx_isa.
2059 * config/i386/mmx.md (any_s_truncate): New code iterator.
2060 (s_trunsuffix): New code attr.
2061 (mmx_packsswb): Removed.
2062 (mmx_packssdw): Likewise.
2063 (mmx_packuswb): Likewise.
2064 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
2065 MMX packsswb/packuswb with SSE2.
2066 (mmx_packssdw): Likewise.
2067 * config/i386/predicates.md (register_mmxmem_operand): New.
2069 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2072 * config/i386/i386-c.c (ix86_target_macros_internal): Define
2073 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
2074 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
2075 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
2076 (ix86_vector_mode_supported_p): Likewise.
2077 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
2079 2019-05-15 Martin Liska <mliska@suse.cz>
2082 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
2085 2019-05-15 Richard Biener <rguenther@suse.de>
2087 * tree-into-ssa.c (pass_build_ssa::execute): Run
2088 update_address_taken before going into SSA.
2090 2019-05-15 Richard Biener <rguenther@suse.de>
2092 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
2093 as __BIT_FIELD_REF with type with -gimple.
2095 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
2097 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
2098 semantically equivalent branches (left over after prior refactorings).
2100 2019-05-15 Richard Biener <rguenther@suse.de>
2102 PR tree-optimization/88828
2103 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
2106 2019-05-14 Richard Biener <rguenther@suse.de>
2108 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
2109 as __VIEW_CONVERT with -gimple.
2111 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
2114 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
2117 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
2119 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
2120 define_split to become a define_insn_and_split.
2122 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
2124 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
2126 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
2127 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
2128 (sibcall_epilogue): Adjust.
2131 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2133 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
2134 to unsupported ones.
2135 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
2136 * config.host: Likewise.
2137 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
2138 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
2139 __svr4__]: Remove "brand" fallback.
2140 [!KSTAT_DATA_STRING]: Remove.
2141 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
2143 (comdat_group): Likewise.
2144 (set_have_as_tls): Likewise.
2145 (gcc_cv_target_dl_iterate_phdr): Likewise.
2146 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
2147 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
2148 * configure: Regenerate.
2149 * doc/install.texi: Simplify Solaris target triplets.
2150 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
2151 (Specific, *-*-solaris2*): Document Solaris 10 removal.
2152 Remove Solaris 10 references.
2153 Remove obsolete Solaris bug reference.
2154 (Specific, sparc-sun-solaris2.10): Remove.
2156 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
2158 * config/i386/i386.md (any_div): New code iterator.
2159 (paired_mod): New code attribute.
2160 (sgnprefix): Handle DIV and UDIV RTXes.
2162 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
2163 and udivmod<mode>4 patterns using any_div code iterator.
2164 (divmod splitters): Macroize splitters using any_div code iterator.
2165 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
2166 (*udivmodsi4_pow2_zext_2): Ditto.
2167 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
2168 and *udivmod<mode>4_noext patterns using any_div code iterator.
2169 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
2170 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
2171 patterns using any_div code iterator.
2172 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
2173 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
2174 patterns using any_div code iterator.
2175 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
2176 udivmodhiqi3 patterns using any_extend code iterator.
2178 2019-05-14 Richard Biener <rguenther@suse.de>
2179 H.J. Lu <hongjiu.lu@intel.com>
2181 PR tree-optimization/88828
2182 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
2183 permuting in a single non-constant element not extracted
2186 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
2188 * internal-fn.def (SIGNBIT): New.
2189 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
2191 (signbitv4sf2): Likewise.
2193 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
2196 * config/mips/mips.c (mips_split_move): Skip forward SRC into
2197 next insn when the SRC reg is dead.
2199 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
2201 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
2202 (alloc_cand_and_find_basis): Ditto.
2203 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
2204 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
2205 (create_add_imm_cand, slsr_process_cast): Ditto.
2206 (slsr_process_copy, replace_mult_candidate): Ditto.
2207 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
2208 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
2209 (pass_strength_reduction::execute): Init the first NULL element.
2211 2019-05-13 Nathan Sidwell <nathan@acm.org>
2213 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
2214 (run_attempt): Reformat line break.
2216 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
2219 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
2220 data registers in sibcall epilogues.
2221 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
2223 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
2226 * configure.ac (--enable-frame-pointer):
2227 Disable by default for cygwin and mingw.
2228 * configure: Regenerate.
2230 2019-05-13 Nathan Sidwell <nathan@acm.org>
2232 * dwarf2out.c (breakout_comdat_types): Move comment to correct
2234 (const_ok_for_output_1): Balance parens around #if/#else/#endif
2235 (gen_member_die): Move abstract origin check earlier. Only VARs
2236 can be static_inline_p. Simplify splicing control flow.
2238 2019-05-13 Richard Biener <rguenther@suse.de>
2240 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
2242 (vect_build_slp_tree_1): Likewise.
2244 2019-05-13 Richard Biener <rguenther@suse.de>
2246 PR tree-optimization/90402
2247 * tree-if-conv.c (tree_if_conversion): Value number only
2248 the loop body by making the latch an exit of the region
2250 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
2252 (do_rpo_vn): Deal with multiple edges into the entry block
2253 that are not backedges inside the region by skipping PHIs
2256 2019-05-13 Richard Biener <rguenther@suse.de>
2258 PR tree-optimization/90316
2259 * tree-ssa-pre.c (insert_aux): Fold into ...
2260 (insert): ... this function. Use a RPO walk to reduce the
2261 number of required iterations.
2263 2019-05-13 Martin Liska <mliska@suse.cz>
2265 PR tree-optimization/90416
2266 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
2267 string instead of passing the second part as va_arg argument.
2269 2019-05-13 Martin Liska <mliska@suse.cz>
2271 PR gcov-profile/90380
2272 * gcov.c (handle_cycle): Do not support zero cycle count,
2273 it should not be possible.
2274 (path_contains_zero_cycle_arc): New function.
2275 (circuit): Ignore zero cycle arc counts.
2277 2019-05-13 Martin Liska <mliska@suse.cz>
2279 PR gcov-profile/90380
2280 * gcov.c (enum loop_type): Remove the enum and
2282 (handle_cycle): Assert that we should not reach
2284 (circuit): Use loop_found instead of a tri-state loop_type.
2285 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
2288 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
2291 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
2292 (ix86_output_indirect_branch_via_reg): Use output mechanism
2293 accounting for __USER_LABEL_PREFIX__.
2294 (ix86_output_indirect_branch_via_push): Likewise.
2295 (ix86_output_function_return): Likewise.
2296 (ix86_output_indirect_function_return): Likewise.
2298 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
2300 * doc/md.texi: Document use of code attributes in rtx patterns.
2301 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
2302 * read-rtl.c (find_code): Split out search loops into...
2303 (maybe_find_code): ...this new function.
2304 (check_code_iterator): Make the error message more informative.
2305 (check_code_attribute): New function.
2306 (rtx_reader::rtx_alloc_for_name): Likewise.
2307 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
2308 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
2309 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
2310 <max_opp> directly as an rtx code instead of via a match_operator.
2311 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
2312 (<su>abd<mode>_3): Update accordingly.
2314 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
2316 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
2317 is given, print the state of the EH "save world" computation for
2320 2019-05-11 Jakub Jelinek <jakub@redhat.com>
2323 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
2324 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
2326 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
2328 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
2329 Use pinsrd for TARGET_SSE4_1.
2330 * config/i386/sse.md (movdi_to_sse): Ditto.
2332 2019-05-10 Richard Biener <rguenther@suse.de>
2334 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
2335 (do_rpo_vn): Initialize next_value_id.
2337 2019-05-10 Martin Liska <mliska@suse.cz>
2339 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
2342 2019-05-10 Jakub Jelinek <jakub@redhat.com>
2344 PR tree-optimization/90385
2345 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
2346 arguments of the exit phis.
2349 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
2350 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
2352 (copy_tree_body_r): Likewise.
2353 (copy_fn): Set id.do_not_fold to true.
2355 2019-05-10 Martin Liska <mliska@suse.cz>
2357 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
2358 Reapply changes from r269790.
2360 2019-05-10 Martin Liska <mliska@suse.cz>
2363 * doc/invoke.texi: New params.
2364 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
2365 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
2366 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
2368 * tree-switch-conversion.h (struct jump_table_cluster):
2371 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
2373 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
2375 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
2377 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
2379 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
2381 PR rtl-optimization/88879
2382 * sel-sched.c (sel_target_adjust_priority): Remove assert.
2384 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
2387 * config/arm/arm.c (callee_saved_reg_p): Move before
2388 thumb_find_work_register.
2389 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
2390 thumb_find_work_register. Only call df_get_live_out once.
2391 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
2392 (thumb_find_work_register): Use
2393 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
2394 algorithms to locate a spare call clobbered reg.
2396 2019-05-09 Martin Liska <mliska@suse.cz>
2398 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
2399 and MAX_EXPR in GIMPLE FE format.
2401 2019-05-09 Martin Liska <mliska@suse.cz>
2403 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
2404 * gimple-pretty-print.c (dump_gimple_bb_header):
2406 (pp_cfg_jump): Dump edge probability.
2407 * profile-count.c (profile_quality_as_string): Simplify
2408 with a static array.
2409 (parse_profile_quality): New function.
2410 (profile_count::dump): Simplify with a static array.
2411 (profile_count::from_gcov_type): Add new argument.
2412 * profile-count.h (parse_profile_quality): Likewise.
2413 * predict.h (set_hot_bb_threshold): New.
2414 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
2416 * predict.c (get_hot_bb_threshold): Set from the new param.
2417 (set_hot_bb_threshold): New.
2419 2019-05-09 Richard Biener <rguenther@suse.de>
2421 PR tree-optimization/90395
2422 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
2423 rewrite vector stores that throw internally.
2425 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
2427 * cif-code.def (CHKP): Remove.
2430 * configure.ac (--enable-frame-pointer): Disable by default for
2432 * configure: Regenerate.
2434 2019-05-09 Alan Modra <amodra@gmail.com>
2437 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
2438 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
2439 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
2440 cost for general <-> vsx when direct moves are available.
2441 Cost union classes at minimal cost for any reg in the class.
2442 Correct calculation for moves between vsx, float, and altivec.
2443 Don't return a low cost for moves between special regs. Don't
2444 use hard coded register numbers.
2445 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
2446 (rs6000_ira_change_pseudo_allocno_class): New function.
2447 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
2448 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
2450 (movsi_internal1): Don't disparage vector alternatives.
2451 (mov<mode>_internal): Likewise, excepting alternative that
2453 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
2454 we <- b alternative.
2456 2019-05-08 Jakub Jelinek <jakub@redhat.com>
2459 PR tree-optimization/89060
2460 * tree-ssa-live.h (live_vars_map): New typedef.
2461 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
2462 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
2463 (struct compute_live_vars_data): New type.
2464 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
2465 live_vars_at_stmt, destroy_live_vars): New functions.
2466 * tree-tailcall.c: Include tree-ssa-live.h.
2467 (live_vars, live_vars_vec): New global variables.
2468 (find_tail_calls): Perform variable life analysis before punting.
2469 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
2470 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
2472 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
2473 Perform variable life analysis to select variables that really need
2475 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
2476 instead set id->eh_landing_pad_dest and assert it is the same.
2477 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
2479 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
2480 Richard Earnshaw <rearnsha@arm.com>
2483 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
2485 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
2486 (thumb1_compute_save_core_reg_mask): Don't force a spare work
2487 register if both the epilogue and prologue can use call-clobbered
2489 (thumb1_unexpanded_epilogue): Use
2490 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
2491 picking temporaries for restoring high regs to match that of the
2492 prologue where possible.
2493 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
2494 the list of work registers. Detect if the return address is still live
2495 at the end of the prologue and avoid using it for a work register if so.
2496 If the return address is not live, add LR to the list of pushable regs
2497 after the first pass.
2499 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
2501 PR tree-optimization/90078
2502 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
2503 (INFTY): Increase the value for infinite cost.
2504 (struct comp_cost): Promote type of members to int64_t.
2505 (infinite_cost): Don't set complexity in initialization.
2506 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
2507 overflows to infinite_cost.
2508 (adjust_setup_cost): Promote type of parameter and cost computation
2510 (struct ainc_cost_data, struct iv_ca): Promote type of member to
2512 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
2513 cost computation to int64_t.
2514 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
2515 int64_t's format specifier in dump.
2517 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
2519 PR tree-optimization/90240
2520 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
2521 with respect to scaling factor pre-computed for each basic block.
2522 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
2523 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
2524 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
2525 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
2526 live range for array of loop's basic blocks. Cleanup aux field of
2527 loop's basic blocks.
2529 2019-05-08 Jakub Jelinek <jakub@redhat.com>
2531 PR tree-optimization/90356
2532 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
2534 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
2536 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
2537 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
2538 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
2539 (ix86_handle_option): Handle -mavx512bf16.
2540 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
2542 * config/i386/avx512bf16vlintrin.h: New.
2543 * config/i386/avx512bf16intrin.h: New.
2544 * config/i386/cpuid.h (bit_AVX512BF16): New.
2545 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
2546 * config/i386/i386-builtin-types.def: Add new types.
2547 * config/i386/i386-builtin.def: Add new builtins.
2548 * config/i386/i386-c.c (ix86_target_macros_internal): Define
2550 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
2551 (ix86_option_override_internal): Handle BF16.
2552 (ix86_valid_target_attribute_inner_p): Ditto.
2553 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
2554 * config/i386/i386-builtin.c (enum processor_features): Add
2556 (static const _isa_names_table isa_names_table): Ditto.
2557 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
2558 (PTA_AVX512BF16): Ditto.
2559 * config/i386/i386.opt: Add -mavx512bf16.
2560 * config/i386/immintrin.h: Include avx512bf16intrin.h
2561 and avx512bf16vlintrin.h.
2562 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
2563 avx512f_cvtneps2bf16_<mode><mask_name>,
2564 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
2565 * config/i386/subst.md (mask_half): Add new subst.
2566 * doc/invoke.texi: Document -mavx512bf16.
2568 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
2570 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
2572 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
2573 (rs6000_debug_legitimize_reload_address): Delete.
2574 (rs6000_legitimize_reload_address_ptr): Delete.
2575 (rs6000_option_override_internal): Adjust.
2576 (mem_operand_gpr): Adjust comment.
2577 (legitimate_lo_sum_address_p): Ditto.
2578 (rs6000_legitimize_reload_address): Delete.
2579 (rs6000_debug_legitimize_reload_address): Delete.
2580 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
2582 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
2585 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2586 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
2587 to compute vector element selector for both constant and variable
2590 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
2592 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
2593 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
2594 ashrdi3_cvt using SWI48 mode iterator.
2596 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
2598 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
2599 (aarch64_<su>abd<mode>_3): Likewise.
2600 (*aarch64_<su>abd<mode>_3): New define_insn.
2601 (<sur>sad<vsi2qi>): New define_expand.
2602 * config/aarch64/iterators.md: Added MAX_OPP attribute.
2603 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
2604 (build_vect_cond_expr): Likewise.
2606 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
2608 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
2609 clobbers outside of accessible_reg_set.
2610 * config/i386/i386.c (ix86_conditional_register_usage):
2611 Disable register sets by clearing corresponding bits in
2612 accessible_reg_set. Do not set corresponding bits in fixed_regs,
2613 call_used_regs and don't clear corresponding reg_names array members.
2615 2019-05-07 Richard Biener <rguenther@suse.de>
2617 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
2618 not specified still compute a comp_vectype for invariant
2621 2019-05-07 Richard Biener <rguenther@suse.de>
2623 PR tree-optimization/90316
2624 * tree-ssa-pre.c (translate_vuse_through_block): When
2625 same_valid is NULL do not bother to search for a virtual
2627 (phi_translate_1): When operands changed we cannot keep
2628 the same value-number so do not bother to ask whether
2629 that's possible from translate_vuse_through_block.
2631 2019-05-07 Martin Liska <mliska@suse.cz>
2633 * bitmap.c (bitmap_register): Come up with
2634 alloc_descriptor_max_uid and assign it for
2636 (register_overhead): Use get_descriptor as
2638 (release_overhead): New.
2639 (bitmap_elem_to_freelist): Call it.
2640 (bitmap_elt_clear_from): Likewise.
2641 (bitmap_obstack_free): Likewise.
2642 (bitmap_move): Sensitively release memory.
2643 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
2644 (bitmap_initialize): Initialize alloc_descriptor to zero.
2645 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
2647 2019-05-07 Richard Biener <rguenther@suse.de>
2649 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
2650 we build a SLP node. Remove max_size and limiting.
2651 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
2653 2019-05-07 Richard Biener <rguenther@suse.de>
2655 PR tree-optimization/90316
2656 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
2658 (walk_non_aliased_vuses): Take walking limit argument.
2659 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
2660 walking if it is reached instead of just counting.
2661 (get_continuation_for_phi): Likewise.
2662 (walk_non_aliased_vuses): Likewise, instead of leaving counter
2663 limiting to the callback.
2664 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
2665 (vn_reference_lookup_3): Likewise.
2666 (vn_reference_lookup_pieces): Likewise.
2667 (vn_reference_lookup): Likewise.
2668 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
2669 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
2670 (avail_exprs_stack::lookup_avail_expr): Likewise.
2672 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
2674 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
2675 for comparaible types in the second direction even if first one
2676 hits incomparable type.
2678 2019-05-07 Richard Biener <rguenther@suse.de>
2681 * lto-wrapper.c (debug_objcopy): Use the original filename
2682 including archive offset for the filename used for -save-temps.
2684 2019-05-07 Li Jia He <helijia@linux.ibm.com>
2686 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
2689 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
2690 Hongtao Liu <hongtao.liu@intel.com>
2694 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
2695 Modified, original implementation isn't correct.
2697 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
2699 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
2700 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
2701 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
2702 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
2703 (FRAME_POINTER_REGNUM): Change numbering.
2704 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
2705 (alt_reg_names): Adjust.
2706 (rs6000_conditional_register_usage): Don't mark hard register 64 as
2708 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
2709 (DWARF_FRAME_REGISTERS): Delete.
2710 (DWARF2_FRAME_REG_OUT): Fix whitespace.
2711 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
2713 (REG_ALLOC_ORDER): Adjust.
2714 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
2715 (REG_CLASS_CONTENTS): Adjust.
2716 (RETURN_ADDR_RTX): Change comment.
2717 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
2719 (REGISTER_NAMES): Adjust.
2720 (ADDITIONAL_REGISTER_NAMES): Adjust.
2721 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
2723 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
2725 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
2727 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
2728 (DWARF_FRAME_REGISTERS): Adjust.
2729 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
2731 (REG_ALLOC_ORDER): Adjust.
2732 (enum reg_class): Delete SPR_REGS.
2733 (REG_CLASS_NAMES): Delete SPR_REGS.
2734 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
2735 (REGISTER_NAMES): Adjust.
2736 (ADDITIONAL_REGISTER_NAMES): Adjust.
2737 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
2738 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
2739 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
2740 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
2741 (htm_spr_regno): Delete.
2742 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
2744 (rs6000_dbx_register_number): Adjust.
2746 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
2748 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
2750 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
2752 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
2753 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
2755 2019-05-06 Jakub Jelinek <jakub@redhat.com>
2757 PR tree-optimization/88709
2758 PR tree-optimization/90271
2759 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
2760 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
2761 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
2763 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
2764 of the store merging group is larger than
2765 PARAM_STORE_MERGING_MAX_SIZE parameter.
2766 (split_group): Add bzero_first argument. If set, always emit first
2767 the first store which must be = {} of the whole area and then for the
2768 rest of the stores consider all zero bytes as paddings.
2769 (imm_store_chain_info::output_merged_store): Check if first store
2770 is = {} of the whole area and if yes, determine which setting of
2771 bzero_first for split_group gives smaller number of stores. Adjust
2772 split_group callers.
2773 (lhs_valid_for_store_merging_p): Allow decls.
2774 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
2776 (pass_store_merging::process_store): Likewise.
2778 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
2781 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2782 handling of V1TImode.
2784 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
2787 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
2788 and enable_frame_pointer ...
2789 * configure.ac: ... here. Update help strings for
2790 --enable-frame-pointer.
2791 * configure: Regenerate.
2792 * config/i386/i386-options.c (ix86_option_override_internal): Remove
2793 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
2794 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
2795 (USE_X86_64_FRAME_POINTER): Ditto.
2797 2019-05-06 Martin Liska <mliska@suse.cz>
2799 * config.gcc: Append to target_gtfiles and fix indentation.
2801 2019-05-06 Richard Biener <rguenther@suse.de>
2803 PR tree-optimization/90358
2804 * tree-vect-stmts.c (get_group_load_store_type): Properly
2805 detect unused upper half of load.
2806 (vectorizable_load): Likewise.
2808 2019-05-06 Richard Biener <rguenther@suse.de>
2810 PR tree-optimization/88828
2811 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
2812 (simplify_vector_constructor): ...here. Handle constants in
2815 2019-05-06 Richard Biener <rguenther@suse.de>
2817 PR tree-optimization/90328
2818 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
2819 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
2820 is valid in the loop nest before using it.
2821 (initialize_data_dependence_relation): Adjust.
2822 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
2823 loop as loop-nest to dr_may_alias_p.
2825 2019-05-06 Richard Biener <rguenther@suse.de>
2827 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
2829 2019-05-06 Richard Biener <rguenther@suse.de>
2831 PR tree-optimization/90316
2832 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
2833 compute target on demand.
2834 (get_continuation_for_phi): Remove code walking stmts to
2835 get to a target virtual operand which could end up being
2838 2019-05-06 Martin Liska <mliska@suse.cz>
2841 * config/i386/i386-options.c (ix86_option_override_internal): Error only
2842 when -mabi is selected to a non-default version.
2844 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
2845 Martin Liska <mliska@suse.cz>
2847 * Makefile.in: Add lto-dump.texi.
2848 * cgraph.h: Add new functions get_visibility_string and
2849 get_symtab_type_string.
2850 * doc/gcc.texi: Include lto-dump section.
2851 * doc/lto-dump.texi: New file.
2852 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
2853 (parse_dump_option): Factor out this function.
2854 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
2855 (parse_dump_option): Export the function.
2856 * symtab.c (symtab_node::get_visibility_string): New function.
2857 (symtab_node::get_symtab_type_string): Likewise.
2859 2019-05-06 Martin Liska <mliska@suse.cz>
2861 * config/i386/i386-builtins.c: New file.
2862 * config/i386/i386-builtins.h: New file.
2863 * config/i386/i386-expand.c: New file.
2864 * config/i386/i386-expand.h: New file.
2865 * config/i386/i386-features.c: New file.
2866 * config/i386/i386-features.h: New file.
2867 * config/i386/i386-options.c: New file.
2868 * config/i386/i386-options.h: New file.
2869 * config.gcc: Add new files into extra_objs and
2871 * config/i386/i386.c: Split content of the file
2872 into newly introduced files.
2873 * config/i386/i386.h: Declare common variables
2875 * config/i386/t-i386: Define dependencies for new files.
2877 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
2880 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
2881 Restrict 'all' variant to 32-bit configurations.
2882 (unaligned_loadhiu): Likewise.
2883 (unaligned_storehi): Likewise.
2884 (unaligned_storesi): Likewise.
2885 (unaligned_loadhis): Disable when compiling for thumb1.
2887 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
2889 PR tree-optimization/90269
2890 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
2893 2019-05-03 Martin Liska <mliska@suse.cz>
2895 * hash-map.h: Add is_empty function.
2896 * hash-set.h: Likewise.
2897 * hash-table.h: Likewise.
2898 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
2899 elements () == 0 (and similar usages).
2900 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
2901 * gimplify.c (gimplify_bind_expr): Likewise.
2902 (gimplify_switch_expr): Likewise.
2903 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
2904 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
2905 * postreload-gcse.c (dump_hash_table): Likewise.
2906 (gcse_after_reload_main): Likewise.
2907 * predict.c (combine_predictions_for_bb): Likewise.
2908 * tree-parloops.c (reduction_phi): Likewise.
2909 (separate_decls_in_region): Likewise.
2910 (transform_to_exit_first_loop): Likewise.
2911 (gen_parallel_loop): Likewise.
2912 (gather_scalar_reductions): Likewise.
2913 (try_create_reduction_list): Likewise.
2914 * var-tracking.c (dump_vars): Likewise.
2915 (emit_notes_for_changes): Likewise.
2916 (vt_emit_notes): Likewise.
2918 2019-05-03 Richard Biener <rguenther@suse.de>
2920 PR tree-optimization/90316
2921 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
2924 2019-05-03 Richard Biener <rguenther@suse.de>
2926 * tree-vect-stmts.c (get_group_load_store_type): Avoid
2927 peeling for gaps by loading only lower halves of vectors
2929 (vectorizable_load): Likewise.
2931 2019-05-03 Richard Biener <rguenther@suse.de>
2934 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
2936 2019-05-03 Richard Biener <rguenther@suse.de>
2939 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
2940 Handle STRING_CST vs DECL or STRING_CST.
2942 2019-05-03 Richard Biener <rguenther@suse.de>
2944 PR tree-optimization/88963
2945 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
2946 vector loads feeding only BIT_FIELD_REFs to component
2947 loads. Rewrite stores fed by CONSTRUCTORs to component
2950 2019-05-03 Jakub Jelinek <jakub@redhat.com>
2952 * opts.h (finish_options): Remove lang_mask argument.
2953 (print_help, help_option_argument): Declare.
2954 * opts.c (print_help): Remove forward declaration, no longer static.
2955 (finish_options): Remove lang_mask argument, don't call print_help
2957 * opts-global.c (decode_options): Adjust finish_option caller, call
2960 PR tree-optimization/90303
2961 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
2962 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
2964 2019-05-03 Richard Biener <rguenther@suse.de>
2966 PR tree-optimization/89698
2967 * gimple-fold.c (canonicalize_constructor_val): Early out
2968 for constants, handle unfolded INTEGER_CSTs as they appear in
2969 C++ virtual table ctors.
2971 2019-05-03 Richard Biener <rguenther@suse.de>
2973 * passes.c (execute_function_todo): Remove dead code.
2975 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
2977 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
2978 the internal register number, for any "real" register.
2980 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
2982 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
2983 correct numbers for TFHAR, TFIAR, TEXASR.
2985 2019-05-02 Richard Biener <rguenther@suse.de>
2987 PR tree-optimization/89653
2988 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
2989 update-address-taken before the pass.
2990 * passes.def (pass_tree_loop_init): Put comment before it.
2992 2019-05-02 Richard Biener <rguenther@suse.de>
2994 PR tree-optimization/89509
2995 * tree-ssa-structalias.c (compute_dependence_clique): Look
2996 at the first subvar when determining whether it is restrict.
2998 2019-05-02 Richard Biener <rguenther@suse.de>
3000 PR tree-optimization/90273
3001 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
3002 useless debug stmts.
3004 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
3006 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
3008 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
3010 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
3011 VEC_COND_EXPR be inserted to emulate a conditional internal function.
3012 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
3013 (vectorizable_reduction): Use the functions above to vectorize in a
3014 fully masked loop codes that don't have a conditional internal
3017 2019-05-02 Martin Liska <mliska@suse.cz>
3019 * cgraphclones.c: Call valid_attribute_p with 1 for
3021 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
3022 it's for target attribute.
3023 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
3024 Add new boolean argument.
3025 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3027 (ix86_valid_target_attribute_tree): Pass target_clone_attr
3028 to ix86_valid_target_attribute_inner_p.
3029 (ix86_valid_target_attribute_p): Pass flags argument to
3030 ix86_valid_target_attribute_inner_p.
3031 (get_builtin_code_for_version): Use 0 as it's target attribute.
3033 2019-05-02 Martin Liska <mliska@suse.cz>
3035 * gcc.c (process_command): Add dummy file only
3037 * opts-global.c (decode_options): Pass lang_mask.
3038 * opts.c (print_help): New function.
3039 (finish_options): Print --help if help_option_argument
3041 (common_handle_option): Factor out content of OPT__help_
3043 * opts.h (finish_options): Add new argument.
3045 2019-05-02 Martin Liska <mliska@suse.cz>
3048 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
3049 With -minline-all-stringops use inline expansion using 4B loop.
3050 * doc/invoke.texi: Document the change of
3051 -minline-all-stringops.
3053 2019-05-01 Jeff Law <law@redhat.com>
3055 PR tree-optimization/88797
3056 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
3057 PHI feeds a conditional on the RHS of an assignment.
3059 2019-04-30 Andrew Waterman <andrew@sifive.com>
3060 Jim Wilson <jimw@sifive.com>
3062 * config/riscv/constraints.md (L): New.
3063 * config/riscv/predicates.md (lui_operand): New.
3064 (sfb_alu_operand): New.
3065 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
3066 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
3067 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
3068 * config/riscv/risc.md (type): Add sfb_alu.
3069 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
3070 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
3071 (branch_zero<mode>): Delete.
3073 (mov<GPR:mode><X:mode>cc): Likewise.
3074 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
3076 2019-04-30 Nathan Sidwell <nathan@acm.org>
3078 * tree.h (MARK_TS_EXP): New.
3080 2019-04-30 Martin Liska <mliska@suse.cz>
3082 * opts.c (enable_warning_as_error): Provide hints
3083 for unknown options.
3085 2019-04-30 Martin Liska <mliska@suse.cz>
3088 * doc/invoke.texi: Add missing dash for gas-locview-support
3089 and gno-as-locview-support.
3091 2019-04-30 Jakub Jelinek <jakub@redhat.com>
3094 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
3095 whitespace at the start of target attribute string.
3097 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3100 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
3101 Define __ARM_FEATURE_ATOMICS.
3103 2019-04-30 Martin Liska <mliska@suse.cz>
3105 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
3106 into built_in_function enum. Remove code for endp == 2 and
3107 use BUILT_IN_* constants.
3108 (gimple_fold_builtin): Call the function with fcode.
3110 2019-04-30 Martin Liska <mliska@suse.cz>
3112 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
3113 DECL_FUNCTION_CODE into ix86_builtins enum before
3114 the switch statement.
3116 2019-04-30 Jakub Jelinek <jakub@redhat.com>
3118 PR tree-optimization/89475
3119 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
3122 2019-04-30 Martin Liska <mliska@suse.cz>
3124 PR translation/90274
3125 * opts.c (print_filtered_help): Wrap string in _(...).
3127 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
3129 PR tree-optimization/90240
3131 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
3133 PR tree-optimization/90078
3134 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
3135 checks for infinite_cost overflow.
3137 2019-04-29 Jeff Law <law@redhat.com>
3139 * passes.def: Move -Wrestrict pass after copy propagation.
3141 2019-04-29 Maya Rashish <coypu@sdf.org>
3143 * config.gcc (default_gnu_indirect_function): Default to yes
3144 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
3145 sparc*-*-netbsd*, x86_64-*-netbsd*.
3147 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
3149 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
3150 where cond2 is NE_EXPR.
3151 (is_value_included_in): Update comment.
3153 2019-04-29 Richard Biener <rguenther@suse.de>
3155 PR tree-optimization/90278
3156 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
3157 EH on comparison simplification.
3159 2019-04-29 Jason Merrill <jason@redhat.com>
3161 PR c++/82081 - tail call optimization breaks noexcept
3162 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
3163 nothrow function to a might-throw function into a tail call.
3165 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
3167 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
3168 (DDR_INNER_LOOP): Likewise.
3169 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
3170 (initialize_data_dependence_relation): Likewise.
3171 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
3173 2019-04-29 Jakub Jelinek <jakub@redhat.com>
3175 PR rtl-optimization/90257
3176 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
3180 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
3184 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
3187 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
3190 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
3192 * lra-spills.c (lra_final_code_change): Remove useless move insns.
3194 2019-04-29 Richard Biener <rguenther@suse.de>
3196 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
3199 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
3201 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
3202 varasm.h, and netbsd-protos.h.
3204 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
3207 * config/i386/i386-protos.h (ix86_data_alignment): Change
3208 the second argument type to unsigned int.
3209 * config/i386/i386.c (ix86_data_alignment): Change "align"
3210 argument type to unsigned int.
3212 2019-04-27 Martin Liska <mliska@suse.cz>
3215 * opt-suggestions.c (option_proposer::build_option_suggestions):
3216 When get_valid_option_values returns empty values, add the
3217 misspelling candidate.
3219 2019-04-26 Jim Wilson <jimw@sifive.com>
3221 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
3223 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
3224 Pass orig_mode to riscv_build_integer.
3225 (riscv_split_integer): Pass mode to riscv_move_integer.
3226 (riscv_legitimize_const_move): Likewise.
3227 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
3228 promoted_mode. Replace force_reg call with code to load constant into
3229 promoted reg and then subreg it for the store.
3230 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
3233 2018-04-26 Eugene Sharygin <eush@ispras.ru>
3235 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
3238 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
3240 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
3241 commentary about the encoding of precision.
3243 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
3245 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
3246 * config/i386/t-freebsd64: New file.
3247 * config.gcc: Add the t-freebsd64 for multilib support.
3249 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
3251 * doc/extend.texi (vector_size): Add missing comma after @xref.
3253 2019-04-25 Jakub Jelinek <jakub@redhat.com>
3255 * BASE-VER: Set to 10.0.0.
3257 2019-04-25 Richard Biener <rguenther@suse.de>
3260 * gimplify.c (gimplify_expr): Avoid turning a lvalue
3261 VIEW_CONVERT_EXPR into one operating on an rvalue.
3263 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
3266 * config/i386/i386.c (feature_priority): Moved to file scope.
3267 (processor_features): Likewise.
3268 (processor_model): Likewise.
3269 (_arch_names_table): Likewise.
3270 (arch_names_table): Likewise.
3271 (_feature_list): Removed.
3272 (feature_list): Likewise.
3273 (_isa_names_table): Moved to file scope. Add priority.
3274 (isa_names_table): Likewise.
3275 (get_builtin_code_for_version): Replace feature_list with
3276 isa_names_table. Update error message for P_ZERO priority.
3278 2019-04-25 Richard Biener <rguenther@suse.de>
3280 * tree-pass.h (make_pass_phi_only_cprop): Remove.
3281 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
3283 2019-04-24 Jeff Law <law@redhat.com>
3285 PR tree-optimization/90037
3286 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
3287 * passes.def: Replace all instance of phi-only cprop with the
3288 lattice propagator. Move propagation pass from after erroneous
3289 path isolation to before erroneous path isolation.
3290 * tree-ssa-phionlycprop.c: Remove.
3292 2019-04-24 Richard Biener <rguenther@suse.de>
3295 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
3296 by size and BITS_PER_UNIT on poly-wide-ints.
3298 2019-04-25 Richard Biener <rguenther@suse.de>
3301 * match.pd: Add pattern to simplify view-conversion of an
3304 2019-04-24 Clement Chigot <clement.chigot@atos.net>
3306 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
3307 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
3308 for Go on 32 bit AIX.
3309 * config/rs6000/aix72.h: Likewise.
3311 2019-04-24 Jakub Jelinek <jakub@redhat.com>
3314 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
3315 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
3317 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
3320 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
3321 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
3322 for restored hard frame pointer.
3323 (s390_sched_dependencies_evaluation): Implement new target hook.
3324 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
3326 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
3328 * config/arc/arc-options.def: Fix typos and spelling mistakes.
3329 * config/arc/arc.c (arc_init): Cleanup warning message.
3330 (arc_override_options): Likewise.
3332 2019-04-24 Jakub Jelinek <jakub@redhat.com>
3335 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
3336 a register if both if_true and if_false are MEMs.
3338 PR tree-optimization/90208
3339 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
3340 after labels of new_bb, not before them.
3342 PR tree-optimization/90211
3343 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
3344 which are not SSA_NAMEs.
3346 2018-04-23 Sudakshina Das <sudi.das@arm.com>
3348 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
3350 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
3352 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
3354 PR rtl-optimization/87979
3355 * modulo-sched.c (sms_schedule): Start ii value "mii" should
3358 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
3360 PR rtl-optimization/84032
3361 * modulo-sched.c (ps_insn_find_column): Change condition so that
3362 branch will always be the last insn in a row inside partial
3365 2019-04-23 Richard Biener <rguenther@suse.de>
3368 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
3369 dest_single_pred_p argument.
3370 (remove_forwarder_block): Adjust.
3371 (remove_forwarder_block_with_phi): Likewise.
3373 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3374 Bernd Edlinger <bernd.edlinger@hotmail.de>
3375 Jakub Jelinek <jakub@redhat.com>
3378 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
3379 if used with general-regs-only.
3380 (arm_conditional_register_usage): Don't add non-general regs if
3382 (arm_valid_target_attribute_rec): Handle general-regs-only.
3383 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
3385 (TARGET_HARD_FLOAT_SUB): Define.
3386 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
3387 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
3388 (TARGET_REALLY_IWMMXT2): Likewise.
3389 * config/arm/arm.opt: Add -mgeneral-regs-only.
3390 * doc/extend.texi: Document ARM general-regs-only target.
3391 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
3393 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
3395 PR tree-optimization/90078
3396 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
3397 checks for infinite_cost overflow.
3399 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
3401 PR tree-optimization/90021
3402 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
3403 and check univariate against it.
3404 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
3405 * tree-data-ref.c (add_other_self_distances): Pass new argument.
3407 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
3411 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
3414 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
3417 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
3419 * lra-spills.c (lra_final_code_change): Remove useless move insns.
3421 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
3423 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
3424 names using operand format, rather than hard-wired.
3425 (speculation_barrier): Likewise.
3427 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
3429 PR tree-optimization/88055
3430 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
3431 (gen_one_condition): Use it if !HONOR_NANS.
3433 2019-04-19 Jakub Jelinek <jakub@redhat.com>
3436 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
3437 assign_temp instead of gen_reg_rtx.
3439 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
3441 PR translation/90118
3442 * config/aarch64/aarch64.c (aarch64_override_options_internal):
3443 Add missing space before %<.
3445 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
3447 PR rtl-optimization/87871
3448 * ira-lives.c (make_object_dead): Don't add conflicts to
3449 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
3451 2019-04-18 Martin Sebor <msebor@redhat.com>
3454 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
3455 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
3456 assuming type size fits in SHWI.
3458 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
3461 * ipa-inline.c (flatten_function): New parameter UPDATE.
3462 (ipa_inline, early_inliner): Use it.
3464 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
3466 * fold-const.c (int_const_binop): Return early on failure.
3468 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
3471 * combine.c (force_int_to_mode): Cast the argument rather than
3472 the result of known_alignment.
3473 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
3475 2019-04-18 Richard Biener <rguenther@suse.de>
3478 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
3480 (remove_forwarder_block): ... here.
3481 (remove_forwarder_block_with_phi): Also move debug stmts here.
3483 2019-04-18 Jakub Jelinek <jakub@redhat.com>
3485 PR translation/79183
3486 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
3487 inform where appropriate.
3489 2019-04-18 Richard Biener <rguenther@suse.de>
3491 * tree.c (get_qualified_type): Put found type variants at the
3492 head of the variant list.
3494 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
3496 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
3498 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
3501 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
3502 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
3503 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
3504 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
3505 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
3507 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
3509 * ira-conflicts.c (print_allocno_conflicts): Always print something,
3510 even for allocno's with no conflicts.
3511 (print_conflicts): Print an extra newline.
3513 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
3515 * auto-inc-dec.c (attempt_change): Set the alignment of the
3516 temporary memory to that of the original.
3518 2019-04-17 Joao Moreira <jmoreira@suse.de>
3520 * targhooks.c (default_print_patchable_function_entry): Emit
3521 __patchable_function_entries section with writable flags to allow
3522 relocation resolution.
3524 2019-04-17 Jonny Grant <jg@jguk.org>
3526 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
3528 2019-04-17 Jakub Jelinek <jakub@redhat.com>
3531 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
3534 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
3536 * config/arc/arc.c (arc_init): Format diagnostic string.
3537 (arc_override_options): Likewise.
3538 (check_if_valid_regno_const): Likewise.
3539 (arc_reorg): Likewise.
3541 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
3544 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
3546 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
3548 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
3549 (*movdi_update1): Use Pmode.
3550 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
3551 (movdi_<mode>_update_stack): Rename to ...
3552 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
3554 (*movsi_update1): Use Pmode.
3555 (*movsi_update2): Use Pmode.
3556 (movsi_update): Rename to ...
3557 (movsi_<mode>_update): ... this. Use Pmode.
3558 (movsi_update_stack): Fix condition.
3559 (*movhi_update1): Use Pmode. Fix argument to
3560 avoiding_indexed_address_p.
3561 (*movhi_update2): Ditto.
3562 (*movhi_update3): Ditto.
3563 (*movhi_update4): Ditto.
3564 (*movqi_update1): Ditto.
3565 (*movqi_update2): Ditto.
3566 (*movqi_update3): Ditto.
3567 (*movsf_update1, *movdf_update1): Merge, rename to...
3568 (*mov<mode>_update1): This. Use Pmode. Fix argument to
3569 avoiding_indexed_address_p. Add "size" attribute.
3570 (*movsf_update2, *movdf_update2): Merge, rename to...
3571 (*mov<mode>_update2): This. Ditto.
3572 (*movsf_update3): Use Pmode. Fix argument to
3573 avoiding_indexed_address_p.
3574 (*movsf_update4): Ditto.
3575 (allocate_stack): Simplify condition. Adjust pattern names.
3577 2019-04-17 Jakub Jelinek <jakub@redhat.com>
3580 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
3581 whitespace at the start of target attribute string.
3583 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
3586 * config/rs6000/power9.md: Add store forwarding bypass.
3588 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
3591 * valtrack.c (dead_debug_insert_temp): Reset debug references
3592 to the return value of a call being removed.
3594 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
3596 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
3597 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
3598 implement target hook.
3599 (arc_memory_move_cost): New function.
3600 (TARGET_REGISTER_MOVE_COST): Define.
3601 (TARGET_MEMORY_MOVE_COST): Likewise.
3602 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
3603 (MEMORY_MOVE_COST): Likewise.
3605 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
3607 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
3608 (sibcall_value_insn): Likewise.
3609 * config/arc/constraints.md (Rs5): Remove.
3611 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
3613 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
3614 for last two fake registers.
3615 (arc_conditional_register_usage): Make sure fake frame and arg
3616 pointer regs are in general regs class.
3617 (FRAME_POINTER_MASK): Remove.
3618 (RETURN_ADDR_MASK): Remove.
3619 (arc_must_save_register): Use hard frame regnum.
3620 (frame_restore_reg): Use hard_frame_pointer_rtx.
3621 (arc_save_callee_saves): Likewise.
3622 (arc_restore_callee_saves): Likewise.
3623 (arc_save_callee_enter): Likewise.
3624 (arc_restore_callee_leave): Likewise.
3625 (arc_save_callee_milli): Likewise.
3626 (arc_eh_return_address_location): Likewise.
3627 (arc_check_multi): Use hard frame regnum.
3628 (arc_can_eliminate): Likewise.
3629 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
3630 for register allocator.
3631 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
3632 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
3633 (FRAME_POINTER_REGNUM): Change it to a fake register.
3634 (HARD_FRAME_POINTER_REGNUM): Defined.
3635 (ARG_POINTER_REGNUM): Change it to a new fake register.
3636 (ELIMINABLE_REGS): Update.
3637 (REGISTER_NAMES): Update names.
3638 * config/arc/arc.md (LP_START): Remove.
3640 (shift_si3_loop): Update pattern.
3642 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
3644 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
3645 to avoid delay slot scheduling.
3646 (arc_must_save_register): Don't save SP.
3647 * config/arc/arc.md (stack_tie): Remove.
3648 (UNSPEC_ARC_STKTIE): Likewise.
3650 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
3651 Shiva Chen <shiva0217@gmail.com>
3653 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
3654 code gen with large shift amount.
3656 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
3658 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
3661 2019-04-16 Jakub Jelinek <jakub@redhat.com>
3664 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
3665 print -m64/-mx32/-m32 if it is true.
3666 (ix86_debug_options, ix86_function_specific_print): Pass true as
3667 ADD_ABI_P to ix86_target_string.
3668 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
3669 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
3670 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
3672 PR rtl-optimization/90082
3673 * dce.c (can_delete_call): New function.
3674 (deletable_insn_p, mark_insn): Use it.
3676 PR tree-optimization/90090
3677 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
3679 (is_division_by_square): Likewise. Formatting fix.
3681 2019-04-16 Richard Biener <rguenther@suse.de>
3683 PR tree-optimization/56049
3684 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
3685 equality check if alias-set zero will prevail.
3687 2019-04-15 Jeff Law <law@redhat.com>
3689 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
3690 size and alignment as unsigned.
3692 2019-04-15 Richard Biener <rguenther@suse.de>
3695 * tree-loop-distribution.c (destroy_loop): Preserve correct
3698 2019-04-15 Richard Biener <rguenther@suse.de>
3700 PR tree-optimization/90071
3701 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
3702 abnormal operands from def stmts.
3704 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
3706 PR rtl-optimization/89794
3707 * combine.c (count_auto_inc): New function.
3708 (try_combine): Count how many auto_inc expressions there were in the
3709 original instructions. Ensure we have the same number in the new
3710 instructions. Remove the code that tried to ensure auto_inc side
3711 effects on i1 and i0 are not lost.
3713 2019-04-15 Richard Biener <rguenther@suse.de>
3716 * tree.h (auto_var_p): Declare.
3717 * tree.c (auto_var_p): New function, split out from ...
3718 (auto_var_in_fn_p): ... here.
3719 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
3721 (new_var_info): Initialize it.
3722 (set_uids_in_ptset): Also set the shadow variable uid if required.
3723 (ipa_pta_execute): Postprocess points-to solutions assigning
3724 shadow variable uids for locals that may reach their containing
3725 function recursively.
3726 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
3727 assert but instead check whether the points-to solution is
3730 2019-04-15 Martin Jambor <mjambor@suse.cz>
3733 * cgraph.c (clone_of_p): Loop over clone chain for each step in
3736 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
3738 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
3740 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
3741 Kito Cheng <kito.cheng@gmail.com>
3742 Shiva Chen <shiva0217@gmail.com>
3744 * config/nds32/nds32-md-auxiliary.c
3745 (nds32_legitimize_pic_address): Use new PIC pattern.
3746 (nds32_legitimize_tls_address): Use new TLS pattern.
3747 (nds32_output_symrel): New.
3748 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
3749 (nds32_alloc_relax_group_id): Ditto.
3750 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
3751 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
3753 (nds32_group_tls_insn): Ditto.
3754 (nds32_group_float_insns): Ditto.
3755 * config/nds32/nds32.md (tls_le): New.
3758 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
3760 * configure: Add nds32 target for dwarf2 debug_line checking.
3761 * configure.ac: Regenerated.
3763 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
3766 * ipa-devirt.c (skip_in_fields_list_p): New.
3767 (odr_types_equivalent_p): Use it.
3769 2019-04-13 Jakub Jelinek <jakub@redhat.com>
3772 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
3773 instead of strncmp when checking for thumb and arm. Formatting fixes.
3775 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
3777 * doc/install.texi: Document --with-target-system-zlib.
3779 2019-04-12 Martin Sebor <msebor@redhat.com>
3785 * targhooks.c (default_vector_alignment): Avoid assuming
3786 argument fits in SHWI.
3787 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
3789 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
3791 2019-04-12 Jakub Jelinek <jakub@redhat.com>
3793 PR rtl-optimization/89965
3794 * dce.c: Include rtl-iter.h.
3795 (struct check_argument_load_data): New type.
3796 (check_argument_load): New function.
3797 (find_call_stack_args): Check for loads from stack slots still tracked
3798 in sp_bytes and punt if any is found.
3800 * config/mips/loongson-mmiintrin.h: Fix up #error message.
3802 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
3804 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
3805 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
3807 2019-04-12 Martin Liska <mliska@suse.cz>
3810 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
3812 (separate_attrs): Handle multiple 'default's.
3813 (expand_target_clones): Rework error handling code.
3815 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
3818 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
3819 mode of vector rather than mode of destination for move instruction.
3820 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
3821 Use QI inner mode with V16QI vector mode.
3823 2019-04-12 Jakub Jelinek <jakub@redhat.com>
3826 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
3827 "invalid %%t operand" in output_operand_lossage message.
3829 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
3831 * config/s390/predicates.md (permute_pattern_operand): New
3833 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
3834 operand for the permute pattern.
3835 ("*vec_perm<mode>"): New insn definition.
3836 ("bswap<mode>"): Generate the permute pattern operand in the
3837 expander and perform the operand reloads for pre arch13 level
3839 ("*bswap<mode>_emu"): Rename to ...
3840 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
3841 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
3842 Add the USE operand for the permute pattern.
3843 ("*vec_set_bswap_vec<mode>"): Likewise.
3845 2019-04-12 Jakub Jelinek <jakub@redhat.com>
3848 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
3849 and gcc_unreachable if it fails, just call tree_to_uhwi which
3850 verifies that too. Test TREE_CHAIN instead of list_length > 1.
3851 Start warning message with a lower-case letter. Formatting fixes.
3853 PR rtl-optimization/90026
3854 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
3855 successors, look for BARRIERs inside of the whole BB_FOOTER chain
3856 rather than just at the start of it. If e->src BB_FOOTER is not NULL
3857 in cfglayout mode, use emit_barrier_after_bb.
3859 2018-04-11 Steve Ellcey <sellcey@marvell.com>
3861 PR rtl-optimization/87763
3862 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
3865 2019-04-11 Tom de Vries <tdevries@suse.de>
3867 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
3868 max macro using statement expression.
3870 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
3872 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
3873 * xcoffout.c (xcoff_private_rodata_section_name): Define.
3874 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
3875 read_only_private_data_section using xcoff_private_rodata_section_name.
3876 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
3878 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
3881 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
3883 2019-04-11 Jakub Jelinek <jakub@redhat.com>
3885 PR rtl-optimization/89965
3886 * dce.c (sp_based_mem_offset): New function.
3887 (find_call_stack_args): Use sp_based_mem_offset.
3889 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
3891 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
3893 2019-04-11 Richard Biener <rguenther@suse.de>
3895 PR tree-optimization/90020
3896 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
3897 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
3898 * tree-ssa-pre.c (compute_avail): Use it to not put
3899 possibly trapping references after a call that might not
3900 return into EXP_GEN.
3901 * gcse.c (compute_hash_table_work): Do not elide
3902 marking a block containing a call if the call might not
3905 2019-04-11 Richard Biener <rguenther@suse.de>
3907 PR tree-optimization/90018
3908 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
3909 Test both SLP and interleaving variants.
3911 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
3913 * config/s390/8561.md: New file.
3914 * config/s390/driver-native.c (s390_host_detect_local_cpu):
3915 Add arch13 cpu model.
3916 * config/s390/s390-opts.h (enum processor_type): Likewise.
3917 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
3918 (s390_get_unit_mask): Likewise.
3919 (s390_is_fpd): Likewise.
3920 (s390_is_fxd): Likewise.
3921 * config/s390/s390.h (s390_tune_attr): Likewise.
3922 * config/s390/s390.md: Include arch13 pipeline description.
3923 * config/s390/s390.opt: Add arch13.
3925 2018-04-10 Steve Ellcey <sellcey@marvell.com>
3927 PR rtl-optimization/87763
3928 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
3930 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
3932 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
3934 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
3935 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
3936 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
3937 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
3939 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
3941 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
3942 "Although" in -fipa-icf documentation.
3944 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
3945 of using multiple -g options.
3947 2019-04-10 Martin Liska <mliska@suse.cz>
3949 PR gcov-profile/89959
3950 * doc/gcov.texi: Make documentation of -x option
3953 2019-04-10 Richard Biener <rguenther@suse.de>
3955 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
3957 (DR_GROUP_SAME_DR_STMT): Remove.
3958 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
3959 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
3960 replace with assert.
3961 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
3962 (vect_record_grouped_load_vectors): Remove unreachable code.
3964 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
3967 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
3968 obsolete reference to N.
3970 2019-04-10 Jakub Jelinek <jakub@redhat.com>
3973 * expr.c (store_expr): Set properly size on the MEM passed to
3977 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
3978 with strlen in between hostsz-3 and hostsz-1 inclusive when no
3979 translation is needed, and when translation is needed, only append
3980 ... if the string length is hostsz or more bytes long. Avoid using
3983 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
3986 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
3987 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
3989 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
3990 differences directly.
3991 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
3993 2019-04-09 Jakub Jelinek <jakub@redhat.com>
3995 PR translation/90011
3996 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
3998 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
4000 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
4001 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
4002 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
4003 trailing space from -gsplit-dwarf diagnostics.
4005 PR tree-optimization/89998
4006 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
4007 instead of integer_type_node if possible, don't add ranges if return
4008 type is not compatible with int.
4009 * gimple-fold.c (gimple_fold_builtin_sprintf,
4010 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
4013 2019-04-09 Martin Liska <mliska@suse.cz>
4015 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
4016 * doc/install.texi: Document the new config.
4018 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
4020 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
4021 use gimple_expr_type for load and store calls. Skip over the
4022 condition argument in a conditional internal function.
4023 Protect use of TREE_INT_CST_LOW.
4025 2019-04-09 Jakub Jelinek <jakub@redhat.com>
4028 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
4029 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
4030 trailing period from it too.
4032 2019-04-08 wu yuan <wuyuan5@huawei.com>
4034 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
4035 * config/aarch64/aarch64.md : Add "tsv110.md"
4036 * config/aarch64/tsv110.md: New file.
4038 2019-04-08 Richard Biener <rguenther@suse.de>
4040 PR tree-optimization/90006
4041 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
4044 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
4047 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
4049 (fma_root_node): Likewise.
4050 (func_fma_steering): Likewise.
4052 2019-04-08 Jakub Jelinek <jakub@redhat.com>
4054 PR rtl-optimization/89865
4055 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
4057 PR rtl-optimization/89865
4058 * config/i386/i386.md
4059 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
4060 numbers not to clash with the additional operands[4].
4061 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
4062 with extra register copy in the middle.
4064 2019-04-08 Martin Liska <mliska@suse.cz>
4066 PR gcov-profile/89961
4067 * doc/gcov.texi: Document data_file.
4068 * gcov.c (generate_results): Add data_info into JSON output.
4070 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
4072 PR tree-optimization/89725
4073 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
4074 loop's chrec as invariant symbol.
4075 * tree-chrec.h (chrec_contains_symbols): New parameter.
4076 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
4077 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
4078 function of loops not in DDR's loop_nest.
4079 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
4081 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
4084 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
4087 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
4090 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
4091 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
4093 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
4095 * sched-deps.c (sched_macro_fuse_insns): Check return value of
4096 targetm.fixed_condition_code_regs.
4098 2019-04-05 Richard Biener <rguenther@suse.de>
4102 * tree-cfgcleanup.c (remove_forwarder_block): Always move
4103 debug bind stmts but reset them if they are not valid at the
4106 2019-04-05 Martin Liska <mliska@suse.cz>
4108 PR translation/89936
4109 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
4110 order to wrap keywords or arguments.
4111 * collect2.c (main): Likewise.
4112 (scan_prog_file): Likewise.
4113 (scan_libraries): Likewise.
4114 * common/config/riscv/riscv-common.c
4115 (riscv_subset_list::parsing_subset_version): Likewise.
4116 (riscv_subset_list::parse_std_ext): Likewise.
4117 * config/aarch64/aarch64.c (aarch64_override_options_internal):
4119 * config/arm/arm.c (arm_option_override): Likewise.
4120 * config/cris/cris.c (cris_print_operand): Likewise.
4121 * config/darwin-c.c (darwin_pragma_options): Likewise.
4122 (darwin_pragma_unused): Likewise.
4123 (darwin_pragma_ms_struct): Likewise.
4124 * config/ft32/ft32.c (ft32_print_operand): Likewise.
4125 * config/i386/i386.c (print_reg): Likewise.
4126 (ix86_print_operand): Likewise.
4127 * config/i386/xm-djgpp.h: Likewise.
4128 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
4129 * config/m32c/m32c.c (m32c_option_override): Likewise.
4130 * config/msp430/msp430.c (msp430_option_override): Likewise.
4131 * config/nds32/nds32.c (nds32_option_override): Likewise.
4132 * config/nvptx/mkoffload.c (main): Likewise.
4133 * config/rx/rx.c (rx_print_operand): Likewise.
4134 (valid_psw_flag): Likewise.
4135 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
4136 (vms_pragma_nomember_alignment): Likewise.
4137 (vms_pragma_extern_model): Likewise.
4138 * lto-wrapper.c (compile_offload_image): Likewise.
4139 * omp-offload.c (oacc_parse_default_dims): Likewise.
4140 * symtab.c (symtab_node::verify_base): Likewise.
4141 * tlink.c (recompile_files): Likewise.
4142 (start_tweaking): Likewise.
4143 * tree-profile.c (parse_profile_filter): Likewise.
4145 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
4147 PR tree-optimization/89956
4148 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
4149 multiple negates of the same value.
4151 2019-04-04 Martin Sebor <msebor@redhat.com>
4155 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
4156 have the same precision since the function crashes otherwise.
4157 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
4158 has non-zero arguments.
4160 2019-04-04 Martin Sebor <msebor@redhat.com>
4163 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
4164 out if the number of arguments is less than expected.
4166 2019-04-04 Jeff Law <law@redhat.com>
4168 PR rtl-optimization/89399
4169 * ree.c (combine_set_extension): Use single_set rather than
4170 digging into PATTERN for items on the candidate list.
4171 (combine_reaching_defs): Likewise.
4173 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
4175 PR rtl-optimization/46590
4176 * loop-invariant.c (find_defs): Move df_remove_problem and
4177 df_process_deferred_rescans to move_invariants.
4178 Move df_live_add_problem and df_live_set_all_dirty calls
4180 (move_invariants): Likewise.
4181 (move_loop_invariants): Likewise, making the df_live calls
4182 conditional on -O. Remove the problem again if we added it
4185 2019-04-03 qing zhao <qing.zhao@oracle.com>
4187 PR tree-optimization/89730
4188 * ipa-inline.c (can_inline_edge_p): Delete the checking for
4189 -flive-patching=inline-only-static.
4190 (can_inline_edge_by_limits_p): Add the checking for
4191 -flive-patching=inline-only-static and grant always_inline
4192 even when -flive-patching=inline-only-static is specified.
4194 2019-04-03 Jeff Law <law@redhat.com>
4196 PR rtl-optimization/81025
4197 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
4199 2019-04-03 Richard Biener <rguenther@suse.de>
4201 PR tree-optimization/84101
4202 * tree-vect-stmts.c: Include explow.h for hard_function_value,
4203 regs.h for hard_regno_nregs.
4204 (cfun_returns): New helper.
4205 (vect_model_store_cost): When vectorizing a store to a decl
4206 we return and the function ABI returns in a multi-reg location
4207 account for the possible spilling that will happen.
4209 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
4211 * config/s390/s390.c (s390_legitimate_address_p): Reject long
4212 displacement addresses for vector mode operands.
4214 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
4216 * config/arc/arc.c (GMASK_LEN): Define.
4217 (arc_restore_callee_saves): Restore first blink when
4220 2019-04-03 Sudakshina Das <sudi.das@arm.com>
4222 * doc/extend.texi: Add deprecated comment on sign-return-address
4223 function attribute and add mbranch-protection.
4224 * doc/invoke.texi: Add bti to the options for mbranch-protection.
4226 2019-04-03 Richard Biener <rguenther@suse.de>
4229 * lto-wrapper.c (run_gcc): Avoid implicit rules making
4230 the all target phony.
4232 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
4236 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
4237 Return false for variable DImode shifts.
4238 (dimode_scalar_chain::compute_convert_gain): Do not handle
4239 register count operand in variable DImode shifts.
4240 (dimode_scalar_chain::make_vector_copies): Remove support to copy
4241 count argument of a variable shift instruction to a vector register.
4242 (dimode_scalar_chain::convert_reg): Remove support to convert
4243 count argument of a variable shift instruction.
4245 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
4247 PR rtl-optimization/84206
4248 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
4249 iterating over loop headers.
4251 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
4253 PR rtl-optimization/85876
4254 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
4255 beyond the original fence.
4257 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
4259 * config.gcc: Mark spu* targets as deprecated/obsolete.
4261 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4263 * config/s390/s390-builtin-types.def: New builtin function type
4264 definitions. Remove unused types.
4265 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
4266 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
4267 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
4268 overloaded builtins.
4269 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
4270 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
4271 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
4272 (vec_double, vec_signed, vec_unsigned): Define to use the new
4273 overloaded builtins.
4274 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
4277 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4279 * config/s390/s390-builtin-types.def: New builtin function type
4281 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
4282 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
4283 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
4284 (s390_vstrszh, s390_vstrszf): New low-level builtins.
4285 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
4286 constant definitions.
4287 * config/s390/vecintrin.h (vec_search_string_cc)
4288 (vec_search_string_until_zero_cc): New builtin name definitions.
4289 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
4291 ("vec_vstrs<mode>"): New insn definition.
4293 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4295 * config/s390/s390-builtin-types.def: Add new builtin function
4297 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
4298 New overloaded builtins.
4299 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
4301 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
4302 (UNSPEC_VEC_SLDBYTE): ... this.
4303 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
4304 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
4306 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
4307 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
4308 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
4310 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4312 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
4313 New insn definition.
4314 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
4315 * config/s390/vector.md (V_HW_HSD): ... here.
4317 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4319 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
4320 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
4321 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
4322 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
4323 New insn definitions.
4325 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4327 * config/s390/s390-builtin-types.def: Add new builtin function type.
4328 * config/s390/s390-builtins.def: Add overloaded builtin
4329 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
4330 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
4331 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
4332 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
4333 ("eltswap<mode>"): New expander.
4334 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
4337 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4339 * config/s390/s390-builtin-types.def: Add new builtin function types.
4340 * config/s390/s390-builtins.def: Add overloaded builtin
4341 s390_vec_revb. Add low-level builtins for vlbr and vstbr
4343 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
4344 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
4345 ("bswap<mode>"): New expander.
4346 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
4348 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4350 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
4351 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
4352 vector builtin version number in __VEC__.
4354 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4356 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
4358 (SFSI): New mode attribute.
4359 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
4360 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
4362 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
4363 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
4364 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
4365 ("floatsi<mode>2"): Add wcefb instruction.
4367 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4369 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
4370 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
4372 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
4373 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
4374 support 32 bit fp-int conversions. Rename to ...
4375 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
4376 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
4377 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
4378 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
4381 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4383 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
4384 if-then-else constructs if we can use the select instruction.
4385 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
4387 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4389 * config/s390/s390.md ("*popcountdi_arch13_cc")
4390 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
4392 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
4393 Append _z196 to make it ...
4394 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
4395 ("popcounthi2_z196"): ... this.
4396 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
4397 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
4399 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4401 * config/s390/s390.c (s390_canonicalize_comparison): Convert
4402 certain compares for arch13 in order to make use of the condition
4403 code result produced by the new instructions.
4404 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
4405 nxrk, and nxgrk instruction patterns.
4406 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
4407 (inv_no): Add new code iterator together with some attributes.
4408 ("*andc_split_<mode>"): Disable splitter for arch13.
4409 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
4410 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
4411 ("*<ANDOR:bitops_name>c<GPR:mode>")
4412 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
4413 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
4414 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
4415 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
4417 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4419 * common/config/s390/s390-common.c (processor_flags_table): New
4421 * config.gcc: Support arch13 with the --with-arch= configure flag.
4422 * config/s390/driver-native.c (s390_host_detect_local_cpu):
4423 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
4424 * config/s390/s390.c (s390_get_sched_attrmask)
4425 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
4426 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
4427 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
4428 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
4429 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
4431 * config/s390/s390.opt: Support arch13 as processor type in
4432 command line options.
4434 2019-04-02 Martin Liska <mliska@suse.cz>
4436 PR translation/89912
4437 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
4438 Fix param description of graphite-max-arrays-per-scop.
4440 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
4442 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
4443 (ASAN_CC1_SPEC): Use it in 64-bit mode.
4444 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
4446 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
4448 PR rtl-optimization/85412
4449 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
4450 sel_sched_region_1, not after.
4452 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
4454 PR rtl-optimization/86928
4455 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
4456 compute_live if necessary.
4457 (sel_redirect_edge_and_branch): Likewise.
4459 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
4461 PR rtl-optimization/89865
4462 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
4463 register if it is a part of small class.
4465 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
4467 PR rtl-optimization/87273
4468 * sel-sched-ir.c (merge_fences): Remove assert.
4470 2019-04-01 Richard Biener <rguenther@suse.de>
4472 PR tree-optimization/46590
4473 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
4474 (dom_walker::m_reachability): Add in place of...
4475 (dom_walker::m_skip_unreachable_blocks): ...this.
4476 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
4477 Move complex initialization ...
4478 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
4479 lazily and initialize edge flags on each invocation.
4480 (dom_walker::bb_reachable): Use m_reachability.
4482 2019-04-01 Martin Liska <mliska@suse.cz>
4485 * opt-suggestions.c (option_proposer::build_option_suggestions):
4486 Add variant without any argument in order to provide better
4489 2019-04-01 Richard Biener <rguenther@suse.de>
4492 * gimple.c: Include langhooks.h.
4493 (gimple_get_alias_set): Treat enumeral types as the underlying
4496 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
4497 Eric Botcazou <ebotcazou@adacore.com>
4499 PR rtl-optimization/89862
4500 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
4501 that operates on the full registers for WORD_REGISTER_OPERATIONS
4504 2019-03-29 Jim Wilson <jimw@sifive.com>
4506 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
4507 Clear MASK_RVC and then set if C subset supported.
4509 2019-03-29 Jakub Jelinek <jakub@redhat.com>
4512 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
4513 non-addressable complit into its initializer if it is volatile.
4515 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
4517 * opts-common.c (integral_argument): Set errno properly in one case.
4519 2019-03-29 Martin Liska <mliska@suse.cz>
4521 * doc/invoke.texi: Remove -Wchkp from documentation.
4523 2019-03-29 Martin Liska <mliska@suse.cz>
4525 * dbgcnt.c (print_limit_reach): New function.
4528 2019-03-29 Martin Liska <mliska@suse.cz>
4530 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
4531 (dbg_cnt_process_opt): Parse first tokens aas
4532 dbg_cnt_process_single_pair is also using strtok.
4534 2019-03-29 Jakub Jelinek <jakub@redhat.com>
4536 PR rtl-optimization/87485
4537 * function.c (expand_function_end): Move stack_protect_epilogue
4538 before loading of return value into hard register(s).
4540 2019-03-28 Jakub Jelinek <jakub@redhat.com>
4543 * tree-inline.h (struct copy_body_data): Add
4544 dont_remap_vla_if_no_change flag.
4545 * tree-inline.c (remap_type_3, remap_type_2): New functions.
4546 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
4547 and remap_type_2 returns false.
4548 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
4549 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
4550 only from where it is copied to nested contexts.
4552 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
4555 * config/i386/i386.md (RMW operation with LEA peephole):
4556 Use LEAMODE mode attribute instead of SWI mode iterator for
4559 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
4562 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
4563 Also process XEXP (src, 0) of a shift insn.
4565 2019-03-28 David Malcolm <dmalcolm@redhat.com>
4568 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
4569 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
4571 2019-03-28 Jakub Jelinek <jakub@redhat.com>
4573 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
4575 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
4576 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
4577 immediately after first one with df_analyze in between, but rather
4578 process all bbs, queueing ones that need second pass in a worklist,
4579 df_analyze, process queued debug insn changes and if second pass is
4580 needed, process bbs from worklist, df_analyze, process queued debug
4583 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
4584 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
4585 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
4587 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
4590 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
4593 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
4596 * config/i386/i386.c (ix86_function_value_1): Call the newly added
4597 function for 32-bit MS_ABI.
4598 (function_value_ms_32): New function.
4600 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
4602 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
4603 (movdi): Call gen_movdi_symbol_save_scc.
4604 (gen_movdi_symbol_save_scc): New insn and split.
4606 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
4608 PR rtl-optimization/89313
4609 * function.c (matching_constraint_num): New static function.
4610 (match_asm_constraints_1): Use it. Fixup white space and comment.
4611 Don't replace inputs with non-matching constraints which conflict
4612 with early clobber outputs.
4614 2019-03-27 Jeff Law <law@redhat.com>
4617 PR rtl-optimization/87761
4618 PR rtl-optimization/89826
4619 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
4621 (pass_cprop_hardreg::execute): Call df_analyze after adding the
4622 note problem to get REG_DEAD/REG_UNUSED notes updated.
4624 2019-03-27 Richard Biener <rguenther@suse.de>
4626 PR tree-optimization/89463
4627 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
4628 queue edges to remove.
4629 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
4630 dead stmts. Delay edge removal until PHIs are removed to
4631 make debug-stmt creation not confused by seemingly degenerate
4634 2019-03-27 Alan Modra <amodra@gmail.com>
4636 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
4638 * config/rs6000/darwin.h: Likewise.
4639 * config/rs6000/rs6000.c: Likewise.
4641 2019-03-27 Alan Modra <amodra@gmail.com>
4643 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
4644 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
4646 2019-03-26 Andrew Waterman <andrew@sifive.com>
4647 Jim Wilson <jimw@sifive.com>
4649 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
4650 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
4651 (generic_idivdi, generic_fmul_single, generic_fmul_double)
4652 (generic_fdiv, generic_fsqrt): Add check for generic tune.
4653 (generic_alu): Add auipc to type list.
4654 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
4655 (riscv_microarchitecture): Declare.
4656 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
4657 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
4659 (riscv_microarchitecture): New.
4660 (sifive_7_tune_info): New.
4661 (riscv_cpu_info_table): Add microarchitecture value for rocket and
4662 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
4664 (riscv_store_data_bypass_p): New.
4665 (riscv_option_override): Set riscv_microarchitecture from
4666 cpu->microarchitecture.
4667 * config/riscv/riscv.md: Include sifive-7.md.
4670 (auipc<mode>): Change type to auipc.
4671 (restore_stack_nonlocal): New.
4672 * config/riscv/sifive-7.md: New.
4673 * doc/invoke.texi (RISC-V Options): Update mtune docs.
4675 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
4678 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
4679 Also process XEXP (src, 0) of a shift insn.
4681 2019-03-26 Richard Biener <rguenther@suse.de>
4683 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
4684 (copy_debug_stmt): Likewise.
4685 (expand_call_inline): Likewise.
4686 (copy_bb): Avoid redundant lookup & set of gimple_block.
4687 * gimple-low.c (lower_gimple_return): Likewise.
4688 (lower_builtin_setjmp): Likewise.
4690 2019-03-26 Jakub Jelinek <jakub@redhat.com>
4692 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
4693 is constant 0, turn into static const data member initialized to false.
4694 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
4695 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
4697 2019-03-26 Jason Merrill <jason@redhat.com>
4698 Jakub Jelinek <jakub@redhat.com>
4700 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
4702 (mem_alloc_description::release_object_overhead): Fix comment typos.
4703 * hash-table.h (hash_table::~hash_table): Call
4704 release_instance_overhead only if m_entries is non-NULL, otherwise
4705 call unregister_descriptor.
4707 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
4709 PR tree-optimization/81740
4710 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4711 In case of outer loop vectorization, check for backward dependence
4712 at the inner loop if outer loop dependence is reversed.
4714 2019-03-26 Alan Modra <amodra@gmail.com>
4716 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
4717 rs6000_vector_mem init. Correct wI and wJ comment.
4719 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
4721 PR rtl-optimization/88347
4722 PR rtl-optimization/88423
4723 * sched-deps.c (sched_analyze_insn): Take into account that for
4724 tablejumps the barrier appears after a label and a jump_table_data.
4726 2019-03-25 Martin Sebor <msebor@redhat.com>
4729 * c-common.c (check_user_alignment): Rename local. Correct maximum
4730 alignment in diagnostic. Avoid assuming argument fits in SHWI,
4731 convert it to UHWI when it fits.
4733 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
4736 * dwarf2out.c (premark_used_variables): New function.
4737 (prune_unused_types_walk): Do not mark not premarked external
4739 (prune_unused_types): Call premark_used_variables.
4741 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
4743 PR rtl-optimization/89676
4744 * lra-constraints.c (curr_insn_transform): Do match reload for
4745 early clobbers when the match was successful only for different
4748 2019-03-25 Martin Sebor <msebor@redhat.com>
4750 * doc/extend.texi (Common Type Attributes): Document vector_size.
4751 (Common Variable Attributes): Mention size constraint. Correct
4753 (Vector Extensions): Use @dfn when defining bas type. Clarify
4754 base type and size constraints.
4756 2019-03-25 Richard Biener <rguenther@suse.de>
4758 PR tree-optimization/89789
4759 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
4760 changes from non-undefined back to undefined.
4762 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
4764 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
4765 heap string and a gc string, but since this variable is unknown to
4766 ggc the gc string might get reused and corrupted. Fixed by always
4767 using a heap string.
4769 2019-03-25 Richard Biener <rguenther@suse.de>
4771 PR tree-optimization/89779
4772 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
4773 to remove IV defs, delay actual removal.
4774 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
4775 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
4776 very end, properly also reset loop control IV information.
4778 2019-03-25 Richard Biener <rguenther@suse.de>
4780 PR tree-optimization/89802
4781 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
4782 move EH data to folded stmt.
4784 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
4786 * config/s390/s390-builtin-types.def: Remove few unused types and
4787 fix sort order for others.
4789 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
4791 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
4792 expected and found types with -mdebug during builtin matching.
4794 2019-03-25 Richard Biener <rguenther@suse.de>
4797 * fold-const.c (operand_equal_p): Revert last change with
4800 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
4802 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
4803 notes for the result of the __tls_get_addr calls.
4804 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
4806 2019-03-24 Jeff Law <law@redhat.com>
4808 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
4810 PR rtl-optimization/87761
4811 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
4812 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
4814 (pass_cprop_hardreg::execute): Add df note problem and defer insn
4815 rescans. Reprocess blocks as needed, calling df_analyze before
4816 reprocessing. Always call df_analyze before fixing up debug bind
4819 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
4821 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
4824 2019-03-22 Andrew Pinski <apinski@marvell.com>
4826 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
4827 attrribute for uxtw.
4829 2019-03-26 Jeff Law <law@redhat.com>
4831 PR rtl-optimization/87761
4832 * config/mips/mips-protos.h (mips_split_move): Add new argument.
4833 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
4834 (mips_split_move): Accept new INSN argument. Try to forward SRC
4835 into the next instruction.
4836 (mips_split_move_insn): Pass INSN through to mips_split_move.
4838 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
4840 PR rtl-optimization/89676
4841 * lra-constraints.c (curr_insn_transform): Do match reload for
4842 early clobbers even if the match was successful.
4844 2019-03-22 Jakub Jelinek <jakub@redhat.com>
4847 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
4849 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
4851 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
4853 2019-03-22 Jakub Jelinek <jakub@redhat.com>
4855 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
4856 <avx512>_fmsub_<mode>_mask3<round_name>,
4857 <avx512>_fnmadd_<mode>_mask3<round_name>,
4858 <avx512>_fnmsub_<mode>_mask3<round_name>,
4859 avx512f_vmfmadd_<mode>_mask3<round_name>,
4860 avx512f_vmfmsub_<mode>_mask3<round_name>,
4861 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
4862 instead of register_operand and %v instead of v for match_operand 1.
4863 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
4864 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
4865 <round_nimm_predicate> instead of register_operand and %v instead of v
4866 for match_operand 1.
4868 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
4869 <avx512>_fmadd_<mode>_mask3<round_name>,
4870 <avx512>_fmsub_<mode>_mask<round_name>,
4871 <avx512>_fmsub_<mode>_mask3<round_name>,
4872 <avx512>_fnmadd_<mode>_mask<round_name>,
4873 <avx512>_fnmadd_<mode>_mask3<round_name>,
4874 <avx512>_fnmsub_<mode>_mask<round_name>,
4875 <avx512>_fnmsub_<mode>_mask3<round_name>,
4876 <avx512>_fmaddsub_<mode>_mask<round_name>,
4877 <avx512>_fmaddsub_<mode>_mask3<round_name>,
4878 <avx512>_fmsubadd_<mode>_mask<round_name>,
4879 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
4880 <round_nimm_predicate> instead of nonimmediate_operand.
4881 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
4882 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
4883 Use register_operand instead of <round_nimm_predicate> for the
4884 operand that needs to match output.
4885 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
4886 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
4887 Likewise. Formatting fixes.
4890 * config/i386/i386.c (enum ix86_builtins): Remove
4891 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
4892 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
4893 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
4894 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
4895 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
4896 __builtin_ia32_vfmsubss3_mask3): New builtins.
4897 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
4898 avx512f_vmfmadd_<mode>_mask3<round_name>,
4899 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
4900 *avx512f_vmfmsub_<mode>_mask<round_name>,
4901 avx512f_vmfmsub_<mode>_mask3<round_name>,
4902 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
4903 *avx512f_vmfnmadd_<mode>_mask<round_name>,
4904 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
4905 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
4906 *avx512f_vmfnmsub_<mode>_mask<round_name>,
4907 avx512f_vmfnmsub_<mode>_mask3<round_name>,
4908 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
4909 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
4910 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
4911 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
4912 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
4913 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
4914 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
4915 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
4916 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
4917 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
4918 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
4919 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
4920 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
4921 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
4922 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
4923 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
4924 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
4925 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
4926 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
4927 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
4928 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
4929 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
4931 2019-03-21 Martin Sebor <msebor@redhat.com>
4933 PR tree-optimization/89350
4934 * builtins.c (compute_objsize): Also ignore offsets whose upper
4936 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
4937 (builtin_memref::builtin_memref): Initialize new member.
4938 Allow EXPR to be null.
4939 (builtin_memref::extend_offset_range): Replace local with a member.
4940 Avoid assuming pointer offsets are unsigned.
4941 (builtin_memref::set_base_and_offset): Determine base object
4942 before computing offset range.
4943 (builtin_access::builtin_access): Handle memset.
4944 (builtin_access::generic_overlap): Replace local with a member.
4945 (builtin_access::strcat_overlap): Same.
4946 (builtin_access::overlap): Same.
4947 (maybe_diag_overlap): Same.
4948 (maybe_diag_access_bounds): Same.
4949 (wrestrict_dom_walker::check_call): Handle memset.
4950 (check_bounds_or_overlap): Same.
4952 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
4953 Jakub Jelinek <jakub@redhat.com>
4956 * tree.c (fld_type_variant, fld_incomplete_type_of,
4957 fld_process_array_type): Call fld->pset.add and don't call
4958 add_tree_to_fld_list if it returns true.
4959 (free_lang_data_in_type): Similarly with self-recursive call. Purge
4960 non-marked types from TYPE_NEXT_VARIANT list.
4961 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
4963 2019-03-21 Jakub Jelinek <jakub@redhat.com>
4965 * hash-table.h (hash_table): Add Lazy template parameter defaulted
4966 to false, if true, don't alloc_entries during construction, but defer
4967 it to the first method that needs m_entries allocated.
4968 (hash_table::hash_table, hash_table::~hash_table,
4969 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
4970 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
4971 hash_table::clear_slot, hash_table::traverse_noresize,
4972 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
4973 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
4975 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
4976 NO_INSERT instead of find_with_hash.
4977 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
4978 hash_set::m_table): Add Lazy to template params of hash_table.
4979 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
4980 * attribs.c (test_attribute_exclusions): Likewise.
4981 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
4982 hash_set. Add tests for hash_set with Lazy = true.
4984 2019-03-21 Richard Biener <rguenther@suse.de>
4986 PR tree-optimization/89779
4987 * tree.c (tree_nop_conversion): Consolidate and fix defensive
4988 checks with respect to released SSA names now having error_mark_node
4990 * fold-const.c (operand_equal_p): Likewise.
4992 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
4995 * config/s390/s390.c (global_not_special_regno_p): Move to make it
4997 (s390_optimize_register_info): Use global_not_special_regno_p to
4998 check for global regs.
5000 2019-03-20 Jakub Jelinek <jakub@redhat.com>
5003 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
5004 update this_alternative nor this_alternative_set.
5006 2019-03-19 Jim Wilson <jimw@sifive.com>
5009 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
5010 align, size, offset. Use them to handle a BLKmode reference. Update
5012 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
5014 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5016 PR rtl-optimization/89768
5017 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
5019 (unroll_loop_runtime_iterations): Likewise.
5021 2019-03-19 Martin Sebor <msebor@redhat.com>
5023 PR tree-optimization/89644
5024 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
5025 rather than endptr as an indicator of nul-termination.
5027 PR tree-optimization/89644
5028 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
5029 arrays in determining sequence sizes in strncpy and stpncpy.
5031 2019-03-19 Martin Liska <mliska@suse.cz>
5034 * predict.c (combine_predictions_for_bb): Empty likely_edges and
5035 unlikely_edges if there's an edge that belongs to both these sets.
5037 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
5040 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
5041 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
5042 go via a stack temporary.
5044 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5047 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
5048 instead of gen_rtx_SUBREG.
5049 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
5051 2019-03-19 Richard Biener <rguenther@suse.de>
5054 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
5056 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
5060 * tree.c (free_lang_data_in_decl): Do not free context of C++
5063 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5066 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
5067 subs for the first alternative except when operands[3] is 1.
5070 * gimplify.c (gimplify_asm_expr): For output argument with
5071 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
5074 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
5076 PR rtl-optimization/89753
5077 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
5078 explicit unrolling factor even more robust.
5080 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5083 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
5084 compensation use x2 += 1 instead of x2 -= -1 and when honoring
5085 signed zeros, do another copysign after the compensation.
5087 2019-03-18 Martin Sebor <msebor@redhat.com>
5089 PR tree-optimization/89720
5090 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
5091 more conservatively, the same as anti-range.
5093 2019-03-18 Richard Biener <rguenther@suse.de>
5096 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
5097 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
5098 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
5099 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
5101 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
5103 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
5104 Extend queue to 1024 entries.
5105 Add "consumed" field.
5106 (gomp_print_output): Remove print_index parameter.
5107 Add final parameter.
5108 Change limit to unsigned.
5109 Use consumed field to implement circular buffer.
5110 Detect interrupted print in final pass.
5111 Flush output at the end.
5112 (run): Update gomp_print_output usage.
5113 (main): Initialize kernargs->output_data.consumed.
5115 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
5117 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
5118 calculation of the minimum number of scalar iterations for
5119 fully-predicated loops.
5121 2019-03-18 Martin Jambor <mjambor@suse.cz>
5123 PR tree-optimization/89546
5124 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
5125 any propagation to its children took place.
5127 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
5130 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
5131 parameter, and make use of it.
5132 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
5134 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5136 * config/arc/arc.opt (mcode-density-frame): Get the inital value
5137 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
5138 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
5139 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
5140 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
5141 match what the ops is doing.
5142 (push_multi_fp_blink): Likewise.
5143 * config/arc/arc.c (arc_override_options): Enable enter/leave when
5144 compiling for size and elf target.
5145 (arc_save_callee_enter): Adjust note to match what enter/leave
5148 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5150 * config/arc/arc.md (tst_movb): Fix constraint.
5152 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5154 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
5156 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5158 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
5159 * config/arc/arc.c (arc_conditional_register_usage): Remove all
5160 reg_alloc_order references.
5161 (size_alloc_order): Define.
5162 (arc_adjust_reg_alloc_order): New function.
5163 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
5165 (ADJUST_REG_ALLOC_ORDER): Define.
5166 (HONOR_REG_ALLOC_ORDER): Likewise.
5168 2019-03-18 Richard Biener <rguenther@suse.de>
5171 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
5172 loads and stores a bit more.
5174 2019-03-18 Richard Biener <rguenther@suse.de>
5177 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
5178 load pessimization to stores as well.
5180 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
5183 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
5184 successor, use NULL as its av set.
5186 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
5188 PR rtl-optimization/89721
5189 * lra-constraints (invariant_p): Return false if side_effects_p holds.
5191 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
5194 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5195 When handling vec_extract, use modular arithmetic to allow
5196 constant selectors greater than vector length.
5197 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
5198 V1TImode vectors to have constant selector values greater than 0.
5199 Use modular arithmetic to compute vector index.
5200 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
5201 index for in-memory vectors. Correct code generation for
5202 in-register vectors.
5203 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
5206 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
5210 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
5213 2019-03-15 Jakub Jelinek <jakub@redhat.com>
5216 * tree.c (inchash::add_expr): Strip any location wrappers.
5217 * fold-const.c (operand_equal_p): Move stripping of location wrapper
5218 after hash verification.
5221 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
5222 SIGN_EXTEND and ZERO_EXTEND.
5224 2019-03-14 Jason Merrill <jason@redhat.com>
5225 Jakub Jelinek <jakub@redhat.com>
5227 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
5228 than if is_empty (*slot).
5229 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
5230 existing elt and for elt removal.
5231 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
5232 of already removed elt.
5234 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
5237 * config/i386/i386.c (remove_partial_avx_dependency): Handle
5240 2019-03-14 Martin Liska <mliska@suse.cz>
5243 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
5245 2019-03-14 Richard Biener <rguenther@suse.de>
5248 * config/i386/i386.c (make_resolver_func): Properly set
5249 DECL_CONTEXT on the RESULT_DECL.
5250 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
5252 2019-03-14 Richard Biener <rguenther@suse.de>
5254 * gimple-pretty-print.c: Include cfgloop.h.
5255 (dump_gimple_phi): Adjust.
5256 (dump_gimple_bb_header): Dump loop header for GIMPLE.
5257 (pp_cfg_jump): Adjust.
5258 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
5259 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
5260 (lower_phi_internal_fn): Remove.
5261 (verify_gimple_call): Remove IFN_PHI special-casing.
5262 (dump_function_to_file): Dump IL state.
5263 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
5264 done to deal with PHI nodes being present in non-SSA state.
5266 2019-03-14 Jakub Jelinek <jakub@redhat.com>
5269 * multiple_target.c (create_dispatcher_calls): Change
5270 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
5271 In the node->iterate_referring loop, push *ref rather than ref, call
5272 ref->remove_reference () and always pass 0 to iterate_referring.
5274 PR rtl-optimization/89679
5275 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
5276 would contain a paradoxical SUBREG.
5278 2019-03-14 Richard Biener <rguenther@suse.de>
5280 PR tree-optimization/89710
5281 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
5284 2019-03-14 Martin Liska <mliska@suse.cz>
5286 * coverage.c (coverage_begin_function): Stream also
5288 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
5289 documentation about function declaration location.
5290 * gcov-dump.c (tag_function): Print whole range
5291 of function declaration.
5292 * gcov.c (struct function_info): Add end_column field.
5293 (function_info::function_info): Initialize it.
5294 (output_json_intermediate_file): Output {start,end}_column
5296 (read_graph_file): Read end_column.
5298 2019-03-14 Richard Biener <rguenther@suse.de>
5301 * fold-const.c (operand_equal_p): For INDIRECT_REF check
5302 that the access types are similar.
5304 2019-03-14 Jakub Jelinek <jakub@redhat.com>
5306 PR tree-optimization/89703
5307 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
5308 aren't compatible also with builtin_decl_explicit. Check pure
5309 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
5310 and BUILT_IN_STPNCPY{,_CHK}.
5312 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
5315 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
5316 addr32 prefix to VSIB address for X32.
5317 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
5319 (*avx512pf_gatherpf<mode>df_mask): Likewise.
5320 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
5321 (*avx512pf_scatterpf<mode>df_mask): Likewise.
5322 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
5323 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
5324 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
5325 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
5326 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
5327 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
5328 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
5329 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
5330 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
5331 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
5332 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
5333 (*avx512f_scatterdi<mode>): Likewise.
5335 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
5338 * lra-constraints.c (inherit_in_ebb): Update
5339 potential_reload_hard_regs along with live_hard_regs.
5341 2019-03-13 Jakub Jelinek <jakub@redhat.com>
5344 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
5346 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
5348 2019-03-13 Martin Sebor <msebor@redhat.com>
5350 PR tree-optimization/89662
5351 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
5354 2019-03-13 Richard Biener <rguenther@suse.de>
5357 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
5358 throw FP expressions at tree-affine.
5360 2019-03-14 Richard Biener <rguenther@suse.de>
5362 * tree-pretty-print.c (dump_generic_node): For -gimple properly
5363 dump negative integer constants using _Literal (type) -num.
5365 2019-03-13 Jakub Jelinek <jakub@redhat.com>
5367 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
5368 nonlocal_value member.
5371 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
5372 (ipa_simd_modify_function_body): Handle PHIs.
5374 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
5376 * config/s390/s390.c (s390_option_override_internal): Use more
5377 aggressive inlining parameters.
5379 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
5381 * config/s390/3906.md: New file.
5382 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
5383 (LONGRUNNING_THRESHOLD): Remove.
5384 (MAX_SCHED_MIX_SCORE): Decrease.
5385 (MAX_SCHED_MIX_DISTANCE): Decrease.
5386 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
5387 (struct s390_sched_state): New struct to hold scheduling state.
5388 (S390_SCHED_STATE_NORMAL): Remove.
5389 (S390_SCHED_STATE_CRACKED): Remove.
5390 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
5391 (s390_get_sched_attrmask): Use new attribute.
5392 (s390_get_unit_mask): Use new units.
5393 (s390_is_fpd): New function.
5394 (s390_is_fxd): New function.
5395 (s390_is_longrunning): New function.
5396 (s390_sched_score): Use new functions.
5397 (s390_sched_reorder): Likewise.
5398 (s390_sched_variable_issue): Rework and use new functions.
5399 (s390_sched_init): Use new functions.
5400 * config/s390/s390.h (s390_tune_attr): Add z14.
5401 * config/s390/s390.md: Add z14.
5403 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
5405 * config/s390/2964.md: Update pipeline description.
5406 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
5407 (LONGRUNNING_THRESHOLD): Remove.
5408 (LATENCY_FACTOR): Remove.
5409 (s390_get_unit_mask): Add unit.
5410 (s390_sched_score): Use fxd/fpd.
5411 (s390_sched_variable_issue): Use fxd/fpd.
5413 2019-03-12 Martin Liska <mliska@suse.cz>
5415 * config/i386/i386.c: Reword an error message.
5417 2019-03-12 Martin Jambor <mjambor@suse.cz>
5419 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
5420 terminate with newline.
5422 2019-03-12 Jakub Jelinek <jakub@redhat.com>
5425 * config/s390/s390.md (tabort): Use %wd instead of
5426 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
5427 letters and periods.
5428 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
5429 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
5433 * builtins.c (expand_builtin_int_roundingfn,
5434 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
5435 gcc_unreachable if validate_arglist fails.
5437 2019-03-12 Richard Biener <rguenther@suse.de>
5439 PR tree-optimization/89664
5440 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
5441 free the occurance tree after the early out.
5443 2019-03-11 Jakub Jelinek <jakub@redhat.com>
5447 * vr-values.c (vr_values::update_value_range): If
5448 old_vr->varying_p (), don't update it, make new_vr also VARYING
5451 2019-03-11 Martin Liska <mliska@suse.cz>
5453 * config/aarch64/aarch64.c (aarch64_override_options_internal):
5454 Fix double string quoting.
5456 2019-03-11 Martin Liska <mliska@suse.cz>
5458 * collect-utils.c (collect_wait): Wrap apostrophes
5459 in gcc internal format with %'.
5460 * collect2.c (main): Likewise.
5461 (scan_prog_file): Likewise.
5462 (scan_libraries): Likewise.
5463 * config/i386/i386.c (ix86_expand_call): Likewise.
5464 (ix86_handle_interrupt_attribute): Likewise.
5465 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
5466 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
5467 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
5468 * lto-wrapper.c (find_crtoffloadtable): Likewise.
5469 * symtab.c (symtab_node::verify_base): Likewise.
5470 * tree-cfg.c (verify_gimple_label): Likewise.
5471 * tree.c (verify_type_variant): Likewise.
5473 2019-03-11 Martin Liska <mliska@suse.cz>
5475 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
5476 in a string format message and fix GNU coding style.
5477 (expand_builtin_set_thread_pointer): Likewise.
5478 * common/config/aarch64/aarch64-common.c
5479 (aarch64_rewrite_selected_cpu): Likewise.
5480 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
5481 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
5482 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
5483 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
5484 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
5485 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
5486 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
5487 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
5488 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
5489 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
5491 * common/config/riscv/riscv-common.c
5492 (riscv_subset_list::parsing_subset_version): Likewise.
5493 (riscv_subset_list::parse_std_ext): Likewise.
5494 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
5495 (riscv_subset_list::parse): Likewise.
5496 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
5497 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
5498 (aarch64_override_options_internal): Likewise.
5499 (aarch64_validate_mcpu): Likewise.
5500 (aarch64_validate_march): Likewise.
5501 (aarch64_validate_mtune): Likewise.
5502 (aarch64_override_options): Likewise.
5503 * config/alpha/alpha.c (alpha_option_override): Likewise.
5504 * config/arc/arc.c (arc_init): Likewise.
5505 (parse_mrgf_banked_regs_option): Likewise.
5506 (arc_override_options): Likewise.
5507 (arc_expand_builtin_aligned): Likewise.
5508 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
5509 (arm_expand_builtin): Likewise.
5510 * config/arm/arm.c (arm_option_check_internal): Likewise.
5511 (arm_configure_build_target): Likewise.
5512 (arm_option_override): Likewise.
5513 (arm_options_perform_arch_sanity_checks): Likewise.
5514 (arm_handle_cmse_nonsecure_entry): Likewise.
5515 (arm_handle_cmse_nonsecure_call): Likewise.
5516 (arm_tls_referenced_p): Likewise.
5517 (thumb1_expand_prologue): Likewise.
5518 * config/avr/avr.c (avr_option_override): Likewise.
5519 * config/bfin/bfin.c (bfin_option_override): Likewise.
5520 * config/c6x/c6x.c (c6x_option_override): Likewise.
5521 * config/cr16/cr16.c (cr16_override_options): Likewise.
5522 * config/cris/cris.c (cris_option_override): Likewise.
5523 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
5524 * config/darwin-c.c (macosx_version_as_macro): Likewise.
5525 * config/darwin.c (darwin_override_options): Likewise.
5526 * config/frv/frv.c (frv_expand_builtin): Likewise.
5527 * config/h8300/h8300.c (h8300_option_override): Likewise.
5528 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
5529 (ix86_option_override_internal): Likewise.
5530 (warn_once_call_ms2sysv_xlogues): Likewise.
5531 (ix86_expand_prologue): Likewise.
5532 (split_stack_prologue_scratch_regno): Likewise.
5533 (ix86_warn_parameter_passing_abi): Likewise.
5534 * config/ia64/ia64.c (fix_range): Likewise.
5535 * config/m68k/m68k.c (m68k_option_override): Likewise.
5536 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
5537 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
5538 (mips_set_compression_mode): Likewise.
5539 * config/mmix/mmix.c (mmix_option_override): Likewise.
5540 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
5541 * config/msp430/msp430.c (msp430_option_override): Likewise.
5542 * config/nds32/nds32.c (nds32_option_override): Likewise.
5543 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
5544 (nios2_option_override): Likewise.
5545 (nios2_expand_custom_builtin): Likewise.
5546 * config/nvptx/mkoffload.c (main): Likewise.
5547 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
5548 * config/pa/pa.c (fix_range): Likewise.
5549 (pa_option_override): Likewise.
5550 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
5551 (riscv_option_override): Likewise.
5552 * config/rl78/rl78.c (rl78_option_override): Likewise.
5553 * config/rs6000/aix61.h: Likewise.
5554 * config/rs6000/aix71.h: Likewise.
5555 * config/rs6000/aix72.h: Likewise.
5556 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
5557 * config/rs6000/freebsd64.h: Likewise.
5558 * config/rs6000/linux64.h: Likewise.
5559 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
5560 (rs6000_expand_zeroop_builtin): Likewise.
5561 (rs6000_expand_mtfsb_builtin): Likewise.
5562 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
5563 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
5564 (rs6000_invalid_builtin): Likewise.
5565 (rs6000_expand_split_stack_prologue): Likewise.
5566 * config/rs6000/rtems.h: Likewise.
5567 * config/rx/rx.c (valid_psw_flag): Likewise.
5568 (rx_expand_builtin): Likewise.
5569 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
5570 * config/s390/s390.c (s390_expand_builtin): Likewise.
5571 (s390_function_profiler): Likewise.
5572 (s390_option_override_internal): Likewise.
5573 (s390_option_override): Likewise.
5574 * config/sh/sh.c (sh_option_override): Likewise.
5575 (sh_builtin_saveregs): Likewise.
5576 (sh_fix_range): Likewise.
5577 * config/sh/vxworks.h: Likewise.
5578 * config/sparc/sparc.c (sparc_option_override): Likewise.
5579 * config/spu/spu.c (spu_option_override): Likewise.
5580 (fix_range): Likewise.
5581 * config/visium/visium.c (visium_option_override): Likewise.
5582 (visium_handle_interrupt_attr): Likewise.
5583 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
5584 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
5585 (dbg_cnt_process_opt): Likewise.
5586 * dwarf2out.c (output_dwarf_version): Likewise.
5587 * except.c (expand_eh_return): Likewise.
5588 * gcc.c (defined): Likewise.
5589 (driver_handle_option): Likewise.
5590 (process_command): Likewise.
5591 (compare_files): Likewise.
5592 (driver::prepare_infiles): Likewise.
5593 (driver::do_spec_on_infiles): Likewise.
5594 (driver::maybe_run_linker): Likewise.
5595 * omp-offload.c (oacc_parse_default_dims): Likewise.
5596 * opts-global.c (handle_common_deferred_options): Likewise.
5597 * opts.c (parse_sanitizer_options): Likewise.
5598 (common_handle_option): Likewise.
5599 (enable_warning_as_error): Likewise.
5600 * passes.c (enable_disable_pass): Likewise.
5601 * plugin.c (parse_plugin_arg_opt): Likewise.
5602 (default_plugin_dir_name): Likewise.
5603 * targhooks.c (default_expand_builtin_saveregs): Likewise.
5604 (default_pch_valid_p): Likewise.
5605 * toplev.c (init_asm_output): Likewise.
5606 (process_options): Likewise.
5607 (toplev::run_self_tests): Likewise.
5608 * tree-cfg.c (verify_gimple_call): Likewise.
5609 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
5610 (tree_inlinable_function_p): Likewise.
5611 * var-tracking.c (vt_find_locations): Likewise.
5613 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
5615 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
5616 only on the else branch.
5618 2019-03-11 Martin Liska <mliska@suse.cz>
5620 * gcov.c (output_intermediate_json_line): Print function
5622 (output_json_intermediate_file): Add new argument.
5623 * doc/gcov.texi: Document the change.
5625 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
5627 PR rtl-optimization/89588
5628 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
5629 explicit unrolling factor more robust.
5631 2019-03-11 Richard Biener <rguenther@suse.de>
5633 PR tree-optimization/89649
5634 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
5635 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
5636 on the prolog and epilog loops.
5637 (vect_loop_versioning): Return copy of loop.
5638 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
5639 on the non-vectorized version of the loop.
5641 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
5644 * config/i386/sse.md (*vec_extractv2di_0_sse):
5645 Add (=r,x) alternative and corresponding splitter.
5647 2019-03-10 Martin Jambor <mjambor@suse.cz>
5649 PR tree-optimization/85762
5650 PR tree-optimization/87008
5651 PR tree-optimization/85459
5652 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
5653 it points to if there is a type changing MEM_REF. Adjust all callers.
5654 (build_accesses_from_assign): Disable total scalarization if
5655 contains_vce_or_bfcref_p returns true through the new parameter, for
5658 2019-03-09 Jakub Jelinek <jakub@redhat.com>
5661 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
5662 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
5665 * common.opt (fdiagnostics-show-labels,
5666 fdiagnostics-show-line-numbers, fdiagnostics-format=,
5667 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
5668 gas-locview-support, ginline-points, ginternal-reset-location-views):
5669 Terminate description text with a dot.
5670 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
5671 * config/mcore/mcore.opt (m210, m340): Likewise.
5672 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
5673 mnops=): Start description text with a capital letter.
5674 * config/arc/arc.opt (msize-level=): Likewise.
5675 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
5676 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
5678 * config/ft32/ft32.opt (msim): Likewise.
5679 (mft32b, mcompress): Likewise. Terminate description text with a dot.
5680 (mnodiv, mnopm): Terminate description text with a dot.
5681 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
5683 * config/i386/i386.opt (prefer_vector_width, instrument_return):
5685 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
5688 PR rtl-optimization/89634
5689 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
5690 are modified in BB_END (e->src) instruction.
5692 2019-03-08 David Malcolm <dmalcolm@redhat.com>
5695 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
5696 messages more amenable to translation, and improve wording.
5698 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
5700 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
5701 ud- and du-chains between phases.
5703 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
5706 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
5707 instead of POLY_INT_CST.
5709 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5711 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
5714 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
5719 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
5720 (_mm_storeu_si64): Ditto.
5722 2019-03-08 Martin Liska <mliska@suse.cz>
5725 * config/i386/i386.c (ix86_option_override_internal): Disable
5726 jump tables when retpolines are used.
5728 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
5731 * ipa-split.c (execute_split_functions): Do not split
5732 'noinline' or 'section' function.
5734 2019-03-08 Jakub Jelinek <jakub@redhat.com>
5737 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
5738 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
5739 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
5742 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
5743 from diagnostics. Formatting fixes.
5746 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
5747 warn_odr diagnostics.
5750 * lra-constraints.c (process_alt_operands): Avoid one space before
5751 " at the end of line and another after " on another line in a string
5753 * attribs.c (handle_dll_attribute): Likewise.
5754 * config/avr/avr-devices.c (avr_texinfo): Likewise.
5756 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
5757 warning_at or inform messages in G_() if there is no ?:.
5759 PR tree-optimization/89550
5760 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
5761 returned true. Formatting fixes.
5762 (expand_builtin_strnlen): Formatting fixes.
5763 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
5764 if warning_at returned true.
5765 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
5767 2019-03-08 Richard Biener <rguenther@suse.de>
5770 * cfgloop.h (struct loop): Add owned_clique field.
5771 * cfgloopmanip.c (copy_loop_info): Copy it.
5772 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
5774 * tree-inline.c (copy_loops): Remap owned_clique.
5775 * lto-streamer-in.c (input_cfg): Stream owned_clique.
5776 * lto-streamer-out.c (output_cfg): Likewise.
5778 2019-03-08 Jakub Jelinek <jakub@redhat.com>
5781 * config/darwin.c: Include intl.h.
5782 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
5783 composing the message out of two separate parts.
5785 2019-03-07 Jakub Jelinek <jakub@redhat.com>
5788 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
5789 doesn't start with a capital letter and doesn't end with a dot.
5790 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
5791 with a capital letter.
5792 (ix86_mangle_function_version_assembler_name): Likewise.
5793 (ix86_generate_version_dispatcher_body): Likewise.
5794 (fold_builtin_cpu): Likewise.
5795 (get_builtin_code_for_version): Likewise. Remove extraneous space.
5796 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
5797 translators, wrap full type name in %qs.
5799 PR translation/79999
5800 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
5801 depend clause with source (or sink) modifier.
5802 * omp-expand.c (expand_omp_ordered_sink): Likewise.
5805 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
5806 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
5807 (avx512f_load<mode>_mask): New define_expand.
5808 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
5809 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
5810 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
5811 __builtin_ia32_movess_mask): New builtins.
5812 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
5813 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
5814 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
5815 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
5817 2019-03-07 Martin Jambor <mjambor@suse.cz>
5820 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
5821 for extern inline functions.
5823 2019-03-07 Martin Jambor <mjambor@suse.cz>
5826 * cgraph.h (cgraph_node): New inline method former_thunk_p.
5827 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
5828 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
5829 have multiple callees. At the end check if declarations match as
5830 opposed to cgraph_nodes.
5832 2019-03-07 Martin Liska <mliska@suse.cz>
5834 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
5835 which is equivalent to searching for this in clones chain.
5836 * symtab.c (symtab_node::verify_base): Similarly compare ASM
5837 names with a neighbour and special case first node in a chain.
5839 2019-01-25 Jason Merrill <jason@redhat.com>
5841 PR c++/80916 - spurious "static but not defined" warning.
5842 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
5843 for an internal symbol with DECL_EXTERNAL.
5845 2019-04-07 Richard Biener <rguenther@suse.de>
5848 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
5849 * tree-inline.c (copy_loops): Simplify.
5851 2019-03-07 Martin Liska <mliska@suse.cz>
5853 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
5855 2019-03-07 Richard Biener <rguenther@suse.de>
5857 PR tree-optimization/89595
5858 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
5859 stmt iterator as reference, take boolean output parameter to
5860 indicate whether the stmt was removed and thus the iterator
5862 (dom_opt_dom_walker::before_dom_children): Re-iterate over
5863 stmts created by folding.
5865 2019-03-07 Jakub Jelinek <jakub@redhat.com>
5868 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
5871 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
5873 PR rtl-optimization/88845
5874 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
5876 * lra.c (remove_scratches_1): New function.
5877 (remove_scratches): Use it.
5878 (lra_emit_move): Likewise.
5880 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
5882 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
5883 unaligned_access variable.
5884 * config/arc/arc.c (arc_override_options): Set unaligned access
5885 default on for HS CPUs.
5886 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
5888 2019-03-06 Martin Liska <mliska@suse.cz>
5890 PR gcov-profile/89577
5891 * doc/gcov.texi: Prefer to use --coverage.
5892 * doc/sourcebuild.texi: Likewise.
5894 2019-03-02 Jason Merrill <jason@redhat.com>
5896 PR c++/86485 - -Wmaybe-unused with empty class ?:
5897 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
5899 2019-03-05 Jakub Jelinek <jakub@redhat.com>
5902 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
5906 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
5907 exactly one argument.
5909 2019-03-05 Jakub Jelinek <jakub@redhat.com>
5910 Richard Sandiford <richard.sandiford@arm.com>
5912 PR tree-optimization/89570
5913 * match.pd (vec_cond into cond_op simplification): Don't use
5914 get_conditional_internal_fn, use as_internal_fn (cond_op).
5916 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
5919 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
5920 to decide when to split off a non-zero offset from a symbol.
5921 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
5922 in function symbols.
5924 2019-03-05 Richard Biener <rguenther@suse.de>
5926 PR tree-optimization/89594
5927 * tree-if-conv.c (pass_if_conversion::execute): Handle
5928 case where .LOOP_VECTORIZED_FUNCTION was removed.
5930 2019-03-05 Jakub Jelinek <jakub@redhat.com>
5933 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
5934 instead alloca it only when needed with the needed size.
5936 PR tree-optimization/89570
5937 * match.pd (vec_cond into cond_op simplification): Guard with
5938 vectorized_internal_fn_supported_p test and #if GIMPLE.
5940 PR tree-optimization/89566
5941 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
5942 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
5943 Punt if get_user_idx_format succeeds, but idx_format argument is
5944 not provided or doesn't have pointer type, or if idx_args is above
5945 number of provided arguments.
5947 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
5949 PR tree-optimization/89437
5950 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
5952 2019-03-04 Richard Biener <rguenther@suse.de>
5955 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
5958 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
5960 PR tree-optimization/89487
5961 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
5962 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
5963 (distribute_loop): Don't do runtime alias check if there is non-
5964 addressable data reference.
5965 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
5966 is a register variable.
5968 2019-03-02 Jakub Jelinek <jakub@redhat.com>
5971 * config/arm/arm.md (cmpsi2_addneg): Use
5972 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
5973 If operands[2] is 0 or INT_MIN, force use of subs.
5974 (*compare_scc splitter): Use gen_int_mode.
5975 (*negscc): Likewise.
5976 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
5978 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
5979 Monk Chiang <sh.chiang04@gmail.com>
5981 * common/config/riscv/riscv-common.c: Include sstream.
5982 (riscv_subset_list::to_string): New.
5983 (riscv_arch_str): Likewise.
5984 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
5986 * config/riscv/riscv-protos.h (riscv_arch_str): New.
5987 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
5988 (riscv_emit_attribute): New.
5989 (riscv_file_start): Emit attribute if needed.
5990 (riscv_option_override): Init riscv_emit_attribute_p.
5991 * config/riscv/riscv.opt (mriscv-attribute): New option.
5992 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
5994 * doc/install.texi: Document --with-riscv-attribute.
5995 * doc/invoke.texi: Document -mriscv-attribute.
5997 * common/config/riscv/riscv-common.c:
5998 Include config/riscv/riscv-protos.h.
5999 (INCLUDE_STRING): Defined.
6000 (RISCV_DONT_CARE_VERSION): Defined.
6001 (riscv_subset_t): Declare.
6002 (riscv_subset_t::riscv_subset_t): New.
6003 (riscv_subset_list): Declare.
6004 (riscv_subset_list::riscv_subset_list): New.
6005 (riscv_subset_list::~riscv_subset_list): Likewise.
6006 (riscv_subset_list::parsing_subset_version): Likewise.
6007 (riscv_subset_list::parse_std_ext): Likewise.
6008 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
6009 (riscv_subset_list::add): Likewise.
6010 (riscv_subset_list::lookup): Likewise.
6011 (riscv_subset_list::xlen): Likewise.
6012 (riscv_subset_list::parse): Likewise.
6013 (riscv_supported_std_ext): Likewise.
6014 (current_subset_list): Likewise.
6015 (riscv_parse_arch_string): Using riscv_subset_list::parse to
6018 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
6020 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
6021 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
6022 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
6024 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
6026 PR rtl-optimization/85899
6027 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
6028 fallthru edges leading to the exit block.
6030 2019-03-01 Tamar Christina <tamar.christina@arm.com>
6033 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
6034 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
6036 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
6038 PR tree-optimization/89535
6039 * tree-vect-stmts.c (vectorizable_call): Record the vector types
6040 for each operand. Calculate the fallback choice for mask operands
6041 and pass it to vect_get_vec_def_for_operand.
6043 2019-03-01 Richard Biener <rguenther@suse.de>
6046 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
6047 get virtual operands.
6048 (get_expr_operands): Handle CONST_DECL like other decls.
6050 2019-03-01 Jakub Jelinek <jakub@redhat.com>
6053 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
6054 on DECL_P and EXPR_P.
6056 2019-03-01 Richard Biener <rguenther@suse.de>
6059 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
6060 argument, defaulted to zero.
6061 * passes.c (execute_function_todo): Pass down SSA update flags
6062 to cleanup_tree_cfg.
6063 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
6064 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
6066 (cleanup_tree_cfg): Get and pass down SSA update flags.
6068 2019-03-01 Jakub Jelinek <jakub@redhat.com>
6071 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
6072 early_lto_debug argument.
6074 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
6076 PR tree-optimization/89536
6077 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
6078 only whether bit #0 of the value is 0 instead of the entire value.
6080 2019-02-28 Marek Polacek <polacek@redhat.com>
6082 PR c++/87068 - missing diagnostic with fallthrough statement.
6083 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
6084 at the end of a seq, save its location to walk_stmt_info.
6085 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
6088 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
6091 * tree.c (find_atomic_core_type): Move ahead in file.
6092 (check_base_type): Correctly compare alignments of atomic types.
6094 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
6097 * config/i386/i386.c (get_builtin_code_for_version): Identify
6098 Westmere from PCLMUL, instead of AES.
6100 2019-02-28 Jakub Jelinek <jakub@redhat.com>
6103 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
6104 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
6107 2019-02-28 Tamar Christina <tamar.christina@arm.com>
6110 * config/aarch64/aarch64-option-extensions.def: Document it.
6111 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
6114 2019-02-28 Jakub Jelinek <jakub@redhat.com>
6117 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
6118 builtins if they don't have a single scalar floating point argument.
6121 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
6123 PR rtl-optimization/89490
6124 * varasm.c (get_block_for_section): Bail out for mergeable sections.
6125 (default_use_anchors_for_symbol_p, output_object_block): Assert the
6126 block section is not mergeable.
6128 2019-02-27 Jakub Jelinek <jakub@redhat.com>
6131 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
6132 old define_insn to ...
6133 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
6134 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
6135 Rename old define_insn to ...
6136 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
6137 (thumb2_casesi_internal_pic): New define_expand. Rename old
6139 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
6140 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
6141 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
6143 2019-02-27 Richard Biener <rguenther@suse.de>
6146 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
6148 2019-02-27 Richard Biener <rguenther@suse.de>
6150 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
6153 2019-02-27 Richard Biener <rguenther@suse.de>
6156 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
6157 parameter, prefix section name with .gnu.debuglto_ if true.
6158 (dwarf2out_finish): Pass false to output_comdat_type_unit.
6159 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
6161 2019-02-27 Richard Biener <rguenther@suse.de>
6164 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
6165 rather than on use_debug_types, doing what output_die does.
6166 (value_format): Likewise.
6168 2019-02-27 Martin Jambor <mjambor@suse.cz>
6169 Martin Sebor <msebor@redhat.com>
6171 * doc/invoke.texi (Warning Options): Reword description of
6172 -Wno-absolute-value.
6174 2019-02-27 Jakub Jelinek <jakub@redhat.com>
6176 PR tree-optimization/89280
6177 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
6178 builtin_setjmp_setup_bb): New functions.
6179 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
6180 When visiting __builtin_setjmp_setup block, queue in special
6181 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
6182 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
6183 from visited after the loop if they don't have any visited successor
6186 2018-02-26 Steve Ellcey <sellcey@marvell.com>
6188 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
6190 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
6192 2019-02-26 Jakub Jelinek <jakub@redhat.com>
6195 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
6196 with types other than sizetype/ssizetype.
6198 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
6200 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
6201 (enum sparc_processor_type): ...this.
6202 (enum sparc_code_model_type): New enumeration type.
6203 (enum sparc_memory_model_type): Tweak comments.
6204 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
6206 (mcmodel): Use sparc_code_model enumeration and variable.
6207 (sparc_code_model): New enumeration.
6208 (mdebug): Add Undocumented marker.
6209 * config/sparc/sparc.h (enum cmodel): Delete.
6210 (sparc_cmodel): Likewise.
6211 (TARGET_CM_MEDLOW): Adjust to above renaming.
6212 (TARGET_CM_MEDMID): Likewise.
6213 (TARGET_CM_MEDANY): Likewise.
6214 (TARGET_CM_EMBMEDANY): Likewise.
6215 * config/sparc/sparc.c (sparc_cmodel): Delete.
6216 (sparc_option_override): Remove string/value mapping support for the
6217 code model. Move code and memory model support to after the handling
6218 of target flags. Do private machine setup last.
6219 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
6220 (sparc_legitimize_reload_address): Likewise.
6221 (sparc_output_mi_thunk): Likewise.
6222 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
6224 2019-02-26 Jakub Jelinek <jakub@redhat.com>
6226 PR tree-optimization/89500
6227 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
6228 (handle_builtin_strlen): Remove noncst_bound variable. Always
6229 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
6230 cst if the first cst bytes starting at x are known to be non-zero,
6231 even if the string is not zero terminated. Don't try to modify
6232 *si for strnlen. Update strlen_to_stridx only for strlen or if
6233 we can prove strnlen returns the same value as strlen would.
6235 2019-02-26 Martin Liska <mliska@suse.cz>
6237 * alloc-pool.h (struct pool_usage): Remove extra
6239 * bitmap.h (struct bitmap_usage): Likewise.
6240 * ggc-common.c (struct ggc_usage): Likewise.
6241 * mem-stats.h (struct mem_usage): Likewise.
6242 (mem_alloc_description::dump): Print dash lines
6243 here and repeat header at the end of a table report.
6244 It's then more readable.
6245 * tree-phinodes.c (phinodes_print_statistics): Make
6246 horizontal alignment.
6247 * tree-ssanames.c (ssanames_print_statistics): Likewise.
6248 * vec.c (struct vec_usage): Remove extra print_dash_line.
6249 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
6251 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
6253 * doc/extend.texi (__builtin_object_size):
6254 Use @pxref instead of @xref inside parenthesis.
6255 (__builtin_has_attribute): Add missing comma after @xref.
6256 (__builtin_object_size): Ditto.
6257 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
6258 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
6261 2019-02-26 Jeff Law <law@redhat.com>
6263 PR rtl-optimization/87761
6264 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
6265 detect obviously dead insns and delete them.
6267 2019-02-26 Richard Biener <rguenther@suse.de>
6269 PR tree-optimization/89505
6270 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
6271 to handle restrict pointed-to vars with multiple subvars
6274 2019-02-26 Richard Biener <rguenther@suse.de>
6276 PR tree-optimization/89489
6277 * tree-parloops.c (create_loop_fn): Copy over last_clique.
6279 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
6281 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
6282 and move around comment.
6283 <BIT_AND_EXPR>: Likewise.
6284 <BIT_NOT_EXPR>: Add specific handling for boolean types.
6286 2019-02-26 Jakub Jelinek <jakub@redhat.com>
6289 * config/i386/i386.c (remove_partial_avx_dependency): Call
6290 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
6291 after changing possibly many instructions to use that pseudo. Fix up
6292 insertion of v4sf_const0 setter at the start of bb.
6294 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
6297 * doc/extend.texi (Variadic Pointer Args): New section.
6299 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
6300 Martin Sebor <msebor@gmail.com>
6302 * common.opt (Wattribute-alias): Likewise.
6303 * doc/invoke.texi (Option Summary): List general form of
6304 -Wattribute-alias=. List positive form of -Wmissing-attributes.
6305 (-Wmissing-attributes): Invert entry, rewrite and correct default.
6306 Add cross-references.
6307 (-Wattribute-alias): Rewrite and correct default. Mention
6308 considered attributes (same as for -Wmissing-attributes).
6310 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
6312 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
6313 (_mm_cvtpd_ps): Likewise.
6314 (_mm_cvttpd_epi32): Likewise.
6317 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
6318 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
6321 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
6323 2019-02-25 Tamar Christina <tamar.christina@arm.com>
6326 * common/config/aarch64/aarch64-common.c
6327 (struct aarch64_option_extension): Add is_synthetic.
6328 (all_extensions): Use it.
6329 (TARGET_OPTION_INIT_STRUCT): Define hook.
6330 (struct gcc_targetm_common): Moved to end.
6331 (all_extensions_by_on): New.
6332 (opt_ext_cmp, typedef opt_ext): New.
6333 (aarch64_option_init_struct): New.
6334 (aarch64_contains_opt): New.
6335 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
6336 * config/aarch64/aarch64-option-extensions.def
6337 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
6338 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
6339 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
6340 Set is_synthetic to false.
6341 (crypto): Set is_synthetic to true.
6342 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
6345 2019-02-25 Tamar Christina <tamar.christina@arm.com>
6347 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
6348 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
6349 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
6350 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
6351 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
6352 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
6353 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
6354 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
6356 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
6357 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
6358 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
6359 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
6360 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
6361 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
6362 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
6363 vfmlsl_laneq_high_f16): ... To this.
6364 * config/arm/neon.md: Update comments.
6366 2019-02-25 Tamar Christina <tamar.christina@arm.com>
6368 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
6369 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
6370 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
6371 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
6372 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
6373 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
6374 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
6375 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
6377 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
6378 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
6379 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
6380 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
6381 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
6382 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
6383 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
6384 vfmlslq_laneq_high_f16): ... To this.
6386 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
6388 PR rtl-optimization/86096
6389 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
6390 comparing mw_order values.
6392 2019-02-25 Jakub Jelinek <jakub@redhat.com>
6395 * config/arm/arm.md (*subsi3_carryin_const): Use
6396 arm_neg_immediate_operand predicate instead of
6397 arm_not_immediate_operand, "L" constraint instead of "K" and
6398 print it using %n2 instead of %B2.
6399 (*subsi3_carryin_const0): New define_insn.
6400 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
6401 instead of arm_not_operand and "I" constraint instead of "K" and
6402 print it using %n3 instead of %B2. Instead of using match_dup 2 add
6403 another match_operand and in the condition check that it is negation
6405 (*subsi3_carryin_compare_const0): New define_ins.
6406 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
6407 *subsi3_carryin_const.
6408 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
6409 split into *subsi3_carryin_compare_const0 if the highpart is zero.
6412 * config/arm.vfp.md (*negdf2_vfp): Use
6413 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
6414 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
6416 2019-02-24 Jakub Jelinek <jakub@redhat.com>
6418 PR rtl-optimization/89445
6419 * simplify-rtx.c (simplify_ternary_operation): Don't use
6420 simplify_merge_mask on operands that may trap.
6421 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
6422 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
6423 second operand is CONST_VECTOR, check if any element could be zero.
6424 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
6425 their operands can trap.
6427 2019-02-23 Martin Sebor <msebor@redhat.com>
6429 * gimple-ssa-sprintf.c (target_strtol): Rename...
6430 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
6431 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
6432 check for range error.
6434 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
6437 * opts-common.c (prune_options): Also prune joined switches
6438 with Negative and RejectNegative.
6439 * config/i386/i386.opt (march=): Add Negative(march=).
6440 (mtune=): Add Negative(mtune=).
6441 * doc/options.texi: Document Negative used together with Joined
6444 2019-02-22 Martin Sebor <msebor@redhat.com>
6446 * doc/extend.texi (Other Builtins): Add
6447 __builtin_is_constant_evaluated.
6449 2019-02-22 Richard Biener <rguenther@suse.de>
6451 PR tree-optimization/87609
6452 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
6454 2019-02-22 Jeff Law <law@redhat.com>
6456 PR rtl-optimization/87761
6457 * config/mips/mips.md: Add new combiner pattern to recognize
6458 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
6460 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
6463 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
6464 destination register in peepholes generating patterns for ADDS/SUBS.
6465 (add<mode>3_compare0,
6466 *addsi3_compare0_uxtw, add<mode>3_compareC,
6467 add<mode>3_compareV_imm, add<mode>3_compareV,
6468 *adds_<optab><ALLX:mode>_<GPI:mode>,
6469 *subs_<optab><ALLX:mode>_<GPI:mode>,
6470 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
6471 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
6472 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
6473 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
6474 sub<mode>3_compare1): Allow stack pointer for source register.
6475 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
6477 2019-02-22 Martin Sebor <msebor@redhat.com>
6479 PR tree-optimization/88993
6480 PR tree-optimization/88853
6481 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
6483 (sprintf_dom_walker::call_info::is_string_func): New helper.
6484 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
6485 for formatted string functions.
6486 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
6488 2019-02-22 Martin Sebor <msebor@redhat.com>
6491 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
6492 unreachable subexpressions.
6494 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
6495 Hongtao Liu <hongtao.liu@intel.com>
6496 Sunil K Pandey <sunil.k.pandey@intel.com>
6499 * config/i386/i386-passes.def: Add
6500 pass_remove_partial_avx_dependency.
6501 * config/i386/i386-protos.h
6502 (make_pass_remove_partial_avx_dependency): New.
6503 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
6505 (pass_data_remove_partial_avx_dependency): New.
6506 (pass_remove_partial_avx_dependency): Likewise.
6507 (make_pass_remove_partial_avx_dependency): Likewise.
6508 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
6509 (*extendsfdf2): Add avx_partial_xmm_update.
6510 (truncdfsf2): Likewise.
6511 (*float<SWI48:mode><MODEF:mode>2): Likewise.
6512 (SF/DF conversion splitters): Disabled for TARGET_AVX.
6514 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
6517 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
6520 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
6523 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
6524 (PTA_SKYLAKE): Add PTA_AES.
6525 (PTA_GOLDMONT): Likewise.
6527 2019-02-22 Sudakshina Das <sudi.das@arm.com>
6529 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
6530 instruction if enabled.
6531 (aarch64_override_options): Remove reference to return address key.
6533 2019-02-22 Richard Biener <rguenther@suse.de>
6535 PR tree-optimization/89440
6536 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
6537 not necessary assert.
6539 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
6542 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
6543 (oacc_replace_fn_attrib_attr): ... this new function.
6544 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
6545 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
6547 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6549 * config/arm/arm-cpus.in (ares): Rename to...
6550 (neoverse-n1): ... This. Add ares as alias.
6551 * config/arm/arm-tables.opt: Regenerate.
6552 * config/arm/arm-tune.md: Likewise.
6553 * doc/invoke.txt (ARM Options): Document neoverse-n1.
6555 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6557 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
6558 * config/aarch64/aarch64-tune.md: Regenerate.
6559 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
6561 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6563 * config/aarch64/aarch64.c (ares_tunings): Rename to...
6564 (neoversen1_tunings): ... This.
6565 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
6566 (neoverse-n1): New CPU.
6567 * config/aarch64/aarch64-tune.md: Regenerate.
6568 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
6570 2019-02-22 Richard Biener <rguenther@suse.de>
6573 * cfghooks.h (dependence_hash): New typedef.
6574 (struct copy_bb_data): New type.
6575 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
6576 (duplicate_block): Likewise.
6577 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
6578 (copy_bbs): Create and pass down copy_bb_data.
6579 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
6580 (rtl_duplicate_bb): Likewise.
6581 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
6582 remap dependence info.
6584 2019-02-22 Richard Biener <rguenther@suse.de>
6586 PR tree-optimization/87609
6587 * tree-core.h (tree_base): Document special clique values.
6588 * tree-inline.c (remap_dependence_clique): Do not use the
6589 special clique value of one.
6590 (maybe_set_dependence_info): Use clique one.
6591 (clear_dependence_clique): New callback.
6592 (compute_dependence_clique): Clear clique one from all refs
6593 before assigning it (again).
6595 2019-02-21 Martin Sebor <msebor@redhat.com>
6597 * doc/extend.texi (__clear_cache): Correct signature.
6599 2019-02-21 Ian Lance Taylor <iant@golang.org>
6602 * varasm.c (decode_addr_const): Call lookup_constant_def rather
6603 than output_constant_def.
6604 (add_constant_to_table): New static function.
6605 (output_constant_def): Call add_constant_to_table.
6606 (tree_output_constant_def): Likewise.
6608 2019-02-21 Jakub Jelinek <jakub@redhat.com>
6611 * builtins.c (fold_builtin_arith_overflow): If first two args are
6612 INTEGER_CSTs, set intres and ovfres to constants rather than calls
6615 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
6618 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
6619 error for -mindirect-branch/-mfunction-return with incompatible
6622 2019-02-21 Jakub Jelinek <jakub@redhat.com>
6625 * constraints.md (q): Remove.
6626 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
6629 2019-02-21 Martin Jambor <mjambor@suse.cz>
6632 * omp-general.c (omp_extract_for_data): Removed a duplicate call
6633 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
6634 (omp_adjust_for_condition): ...here. Added necessary parameters.
6635 * omp-general.h (omp_adjust_for_condition): Updated declaration.
6636 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
6637 proper values to new parameters of omp_adjust_for_condition.
6639 2019-02-20 Jakub Jelinek <jakub@redhat.com>
6642 * expr.c (expand_assignment): If result is a MEM, use change_address
6643 instead of simplify_gen_subreg.
6645 2019-02-20 Jakub Jelinek <jakub@redhat.com>
6646 David Malcolm <dmalcolm@redhat.com>
6649 * fold-const.c (decode_field_reference): Return NULL_TREE if
6650 lang_hooks.types.type_for_size returns NULL. Check it before
6651 overwriting *exp_. Use return NULL_TREE instead of return 0.
6653 2019-02-20 Jakub Jelinek <jakub@redhat.com>
6657 * toplev.c (do_compile): Double the emin/emax exponents to workaround
6660 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
6663 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
6664 TARGET_SSE in addition to TARGET_SSE_MATH.
6666 (ix86_excess_precision): Ditto.
6667 (ix86_float_exceptions_rounding_supported_p): Ditto.
6668 (use_rsqrt_p): Ditto.
6669 * config/i386/sse.md (rsqrt<mode>2): Ditto.
6671 2019-02-20 David Malcolm <dmalcolm@redhat.com>
6674 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
6675 linenum_arith_t when determining if two adjacent line spans are
6676 close enough to merge.
6677 (diagnostic_show_locus): Use linenum_arith_t when iterating over
6678 lines within each line_span.
6680 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
6683 * lra-constraints.c(uses_hard_regs_p): Fix handling of
6684 paradoxical SUBREGS.
6686 2019-02-20 Li Jia He <helijia@linux.ibm.com>
6689 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
6690 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
6691 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
6694 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
6696 * config/gcn/gcn.c (print_operand): Fix typo.
6698 2019-02-19 Richard Biener <rguenther@suse.de>
6701 * toplev.c (do_compile): Initialize mpfr's exponent range
6702 based on available float modes.
6704 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
6706 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
6707 as long as the epilogue isn't completed.
6709 2019-02-18 Martin Sebor <msebor@redhat.com>
6711 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
6712 __has_cpp_attribute, and __has_include.
6714 2019-02-18 Martin Sebor <msebor@redhat.com>
6716 * doc/invoke.texi (-Wreturn-type): Correct and expand.
6718 2019-02-18 Martin Sebor <msebor@redhat.com>
6721 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
6723 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
6725 2019-02-18 Richard Biener <rguenther@suse.de>
6727 PR tree-optimization/89296
6728 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
6729 of no-warning flag to cases that might emit the bogus warning.
6731 2019-02-18 Jakub Jelinek <jakub@redhat.com>
6734 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
6736 * config/arm/vfp.md (*movdi_vfp): Likewise.
6737 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
6738 "q" constraint for operands[0].
6741 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
6742 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
6743 pattern in a temporary buffer.
6744 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
6745 than 64-operands[2].
6748 * config/s390/s390.c (s390_indirect_branch_attrvalue,
6749 s390_indirect_branch_settings): Define unconditionally.
6750 (s390_set_current_function): Likewise, but guard the whole body except
6751 the s390_indirect_branch_settings call with
6752 #if S390_USE_TARGET_ATTRIBUTE.
6753 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
6755 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
6756 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
6757 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
6758 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
6759 HOST_WIDE_INT_1U instead of 1ULL.
6760 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
6761 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
6762 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
6763 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
6765 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
6768 2019-02-18 Martin Jambor <mjambor@suse.cz>
6770 PR tree-optimization/89209
6771 * tree-sra.c (create_access_replacement): New optional parameter
6772 reg_tree. Use it as a type if non-NULL and access type is not of
6774 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
6775 to create_access_replacement.
6776 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
6777 Check lacc is non-NULL before attempting to re-create it on the RHS.
6779 2019-02-18 Martin Liska <mliska@suse.cz>
6782 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
6784 (symbol_table::free_edge): Recycle m_summary_id.
6785 * cgraph.h (get_summary_id): New.
6786 (symbol_table::release_symbol): Set m_summary_id to -1
6788 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
6789 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
6790 function_summary to fast_function_summary.
6791 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
6792 * ipa-pure-const.c (class funct_state_summary_t):
6793 Switch from function_summary to fast_function_summary.
6794 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
6795 (class ipa_ref_opt_summary_t): Switch from function_summary
6796 to fast_function_summary.
6797 * symbol-summary.h (class function_summary_base): New class
6798 that is created from base of former function_summary.
6799 (function_summary_base::unregister_hooks): New.
6800 (class function_summary): Inherit from function_summary_base.
6801 (class call_summary_base): New class
6802 that is created from base of former call_summary.
6803 (class call_summary): Inherit from call_summary_base.
6804 (struct is_same): New.
6805 (class fast_function_summary): New summary class.
6806 (class fast_call_summary): New summary class.
6807 * vec.h (vec_safe_grow_cleared): New function.
6809 2019-02-18 Martin Liska <mliska@suse.cz>
6811 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
6812 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
6813 * doc/tm.texi: Document new target hook.
6814 * doc/tm.texi.in: Likewise.
6815 * target.def: Add new target macro.
6816 * gcc.c (find_fortran_preinclude_file): Do not search multilib
6819 2019-02-17 Alan Modra <amodra@gmail.com>
6822 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
6823 output reg on add insn.
6824 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
6826 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
6829 * config/i386/sse.md (ssedoublemode): Remove V4HI.
6830 (PMULHRSW): Likewise.
6831 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
6833 (ssse3_pmulhrswv4hi3): New expander.
6835 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
6837 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
6838 MMX. Add isa attribute.
6840 2019-02-16 Jakub Jelinek <jakub@redhat.com>
6842 PR rtl-optimization/66152
6843 * builtins.h (c_readstr): Declare.
6844 * builtins.c (c_readstr): Remove forward declaration. Add
6845 null_terminated_p argument, if false, read all bytes from the
6846 string instead of stopping after '\0'.
6847 * expr.c (string_cst_read_str): New function.
6848 (store_expr): Use string_cst_read_str instead of
6849 builtin_strncpy_read_str. Try to store by pieces the whole
6850 exp_len first, and only if that fails, split it up into
6851 store by pieces followed by clear_storage. Formatting fix.
6853 * config/i386/i386.md (*movqi_internal): Remove static from
6854 buf variable. Use output_asm_insn (buf, operands); return "";
6855 instead of return buf;.
6856 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
6857 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
6858 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
6860 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
6862 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
6863 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
6864 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
6865 (CC1_SPEC): Likewise.
6866 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
6868 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
6870 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
6871 the base address on 64-bit strict-alignment platforms.
6873 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
6875 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
6877 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
6879 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
6881 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
6883 PR rtl-optimization/88308
6884 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
6885 on copied instruction.
6887 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
6889 * final.c (insn_current_reference_address): Replace test on JUMP_P
6890 with test on jump_to_label_p.
6891 * config/visium/visium-passes.def: New file.
6892 * config/visium/t-visium (PASSES_EXTRA): Define.
6893 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
6894 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
6895 (TRAMPOLINE_ALIGNMENT): Define.
6896 * config/visium/visium.c (visium_option_override): Do not register
6897 the machine-specific reorg pass here.
6898 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
6900 (output_branch): Adjust threshold for long branch instruction.
6901 * config/visium/visium.md (cpu): Move around.
6902 (length): Adjust for the GR6.
6904 2019-02-15 Richard Biener <rguenther@suse.de>
6905 Jakub Jelinek <jakub@redhat.com>
6907 PR tree-optimization/89278
6908 * tree-loop-distribution.c: Include tree-eh.h.
6909 (generate_memset_builtin, generate_memcpy_builtin): Call
6910 rewrite_to_non_trapping_overflow on builtin->size before passing it
6911 to force_gimple_operand_gsi.
6913 2019-02-15 Jakub Jelinek <jakub@redhat.com>
6916 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
6918 * opth-gen.awk: Likewise.
6920 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
6922 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
6923 Enable MMX, SSE and SSE2 by default.
6924 * config/i386/i386.c (ix86_option_override_internal): Do not
6925 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
6927 2019-02-14 Jakub Jelinek <jakub@redhat.com>
6929 PR rtl-optimization/89354
6930 * combine.c (make_extraction): Punt if extraction_mode is narrower
6933 2019-02-14 Maya Rashish <coypu@sdf.org>
6935 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
6936 * config/netbsd-d.c: New file.
6937 * config/t-netbsd: Add netbsd-d.o
6939 2018-02-14 Steve Ellcey <sellcey@marvell.com>
6941 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
6942 affects_type_identity to true for aarch64_vector_pcs.
6943 (aarch64_comp_type_attributes): New function.
6944 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
6946 2019-02-14 Tamar Christina <tamar.christina@arm.com>
6949 * config/arm/iterators.md (ANY64): Add V4HF.
6951 2019-02-14 Martin Liska <mliska@suse.cz>
6953 PR rtl-optimization/89242
6954 * dce.c (delete_unmarked_insns): Call free_dominance_info we
6955 process a transformation.
6957 2019-02-14 Jakub Jelinek <jakub@redhat.com>
6959 PR tree-optimization/89314
6960 * fold-const.c (fold_binary_loc): Cast strlen argument to
6961 const char * before dereferencing it. Formatting fixes.
6964 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
6966 2019-02-13 Ian Lance Taylor <iant@golang.org>
6968 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
6969 and set current index for other optimizations.
6971 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
6973 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
6974 nonimmediate_operand as operand 2 predicate.
6975 (vec_set<VF2_512_256:mode>_0): Ditto.
6976 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
6977 (*vec_concatv2si): Remove alternative 2.
6978 (*vec_concatv4si_0): Use vm constraint for alternative 0.
6979 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
6980 (vec_concatv2di): Split alternatives 4,5,6 to ...
6981 (*vec_concatv2di_0) ... new pattern.
6983 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
6986 * config/arm/arm.c (ldm_stm_operation_p) Set
6987 addr_reg_in_reglist correctly for first register.
6988 (load_multiple_sequence): Remove dead base check.
6989 (gen_ldm_seq): Correctly set write_back for Thumb-1.
6991 2019-02-13 Tamar Christina <tamar.christina@arm.com>
6994 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
6995 Expose as @aarch64_pred_mov.
6996 * config/aarch64/aarch64.c (aarch64_classify_address):
6997 Use expand_insn which legitimizes operands.
6999 2019-02-13 Martin Liska <mliska@suse.cz>
7001 * builtins.h (expand_builtin_with_bounds): Remove declaration.
7002 * calls.c (struct arg_data): Remove special_slot, pointer_arg
7003 and pointer_offset fields.
7004 (initialize_argument_information): Remove usage of dead
7006 * cgraph.h (struct cgraph_thunk_info): Remove
7007 add_pointer_bounds_args.
7008 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
7010 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
7012 * config/i386/i386.c (ix86_function_arg_advance): Remove
7014 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
7015 (def_builtin): Remove usage of dead
7017 (ix86_add_new_builtins): Likewise.
7018 * ipa-fnsummary.c (compute_fn_summary): Likewise.
7019 * ipa-icf.c (sem_function::equals_wpa): Likewise.
7020 (sem_function::init): Likewise.
7021 (sem_variable::merge): Likewise.
7022 * ipa-visibility.c (function_and_variable_visibility): Likewise.
7023 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
7024 * lto-cgraph.c (lto_output_node): Likewise.
7025 (lto_output_varpool_node): Likewise.
7026 (input_node): Likewise.
7027 (input_varpool_node): Likewise.
7028 * lto-streamer-out.c (lto_output): Likewise.
7029 * tree-inline.c (expand_call_inline): Remove usage of
7031 * tree-inline.h (struct copy_body_data): Likewise.
7032 * varpool.c (varpool_node::dump): Likewise.
7034 2019-02-13 Jakub Jelinek <jakub@redhat.com>
7037 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
7038 into pt->vars_contains_escaped_heap instead of setting
7039 pt->vars_contains_escaped_heap to it.
7042 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
7043 INTVAL (size), compare it to GET_MODE_MASK instead of
7044 1 << GET_MODE_BITSIZE.
7047 * config/i386/predicates.md (x86_64_immediate_operand): Allow
7048 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
7051 2019-02-13 Martin Liska <mliska@suse.cz>
7054 * cfgrtl.c (remove_barriers_from_footer): New function.
7055 (try_redirect_by_replacing_jump): Use it.
7056 (cfg_layout_redirect_edge_and_branch): Likewise.
7058 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
7060 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
7061 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
7062 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
7063 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
7064 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
7065 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
7067 * config/rs6000/rs6000.c (builtin_function_type)
7068 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
7069 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
7070 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
7071 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
7072 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
7074 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
7076 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
7077 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
7079 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
7082 * config/i386/i386.md (*movoi_internal_avx): Revert revision
7083 268678 and revision 268657.
7084 (*movti_internal): Likewise.
7086 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
7089 * config/s390/s390.c (s390_decompose_address): Update comment.
7090 (s390_check_qrst_address): Reject invalid address forms after
7093 2019-02-12 Martin Liska <mliska@suse.cz>
7096 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
7097 we need default values of funct_state for a function that
7100 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
7102 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
7103 the object to pick the size of stores on strict-alignment platforms.
7105 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
7106 (*movdi_insn_sp32): Likewise.
7107 (*movdi_insn_sp64): Likewise.
7109 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
7112 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
7113 types that needs constructiong.
7114 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
7116 2019-02-12 Richard Biener <rguenther@suse.de>
7118 PR tree-optimization/89253
7119 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
7122 2019-02-11 David Malcolm <dmalcolm@redhat.com>
7125 * input.c (selftest::test_line_offset_overflow): New selftest.
7126 (selftest::input_c_tests): Call it.
7128 2019-02-11 Martin Sebor <msebor@redhat.com>
7130 PR tree-optimization/88771
7131 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
7132 when -Wstringop-overflow is set.
7133 (builtin_memref::builtin_memref): Adjust excessive upper bound
7134 only when lower bound is not excessive.
7135 (maybe_diag_overlap): Detect and diagnose excessive bounds via
7136 -Wstringop-ovefflow.
7137 (maybe_diag_offset_bounds): Rename...
7138 (maybe_diag_access_bounds): ...to this.
7139 (check_bounds_or_overlap): Adjust for name change above.
7141 2019-02-11 Martin Sebor <msebor@redhat.com>
7144 * builtins.c (max_object_size): Move from here...
7145 * builtins.h (max_object_size): ...and here...
7146 * tree.c (max_object_size): ...to here...
7147 * tree.h (max_object_size): ...and here.
7149 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
7151 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
7152 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
7153 for correct semantics.
7155 2019-02-11 Alan Modra <amodra@gmail.com>
7157 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
7158 -mlongcall and -mpltseq.
7159 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
7160 (RS/6000 and PowerPC Options <-mpltseq>): Document.
7161 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
7162 * config/rs6000/sysv4.opt (mpltseq): New option.
7163 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
7164 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
7165 support is lacking. Don't allow -mpltseq with -mbss-plt.
7166 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
7167 -mpltseq given for ELFv1.
7168 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
7169 Only use UNSPEC_PLTSEQ for inline PLT calls.
7170 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
7171 use UNSPEC_PLTSEQ for inline PLT calls.
7172 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
7173 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
7174 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
7175 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
7176 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
7177 (pltseq_mtctr_<mode>): Likewise.
7179 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7181 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
7183 * configure: Regenerate.
7185 2019-02-11 Jakub Jelinek <jakub@redhat.com>
7188 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
7191 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
7193 * function.c (assign_parm_setup_block): Use the stored
7194 size, not the passed size, when allocating stack-space,
7195 also for a parameter with alignment larger than
7196 MAX_SUPPORTED_STACK_ALIGNMENT.
7198 2019-02-11 Martin Liska <mliska@suse.cz>
7201 * ipa-cp.c (build_toporder_info): Remove usage of a param.
7202 * ipa-inline.c (inline_small_functions): Likewise.
7203 * ipa-pure-const.c (propagate_pure_const): Likewise.
7204 (propagate_nothrow): Likewise.
7205 * ipa-reference.c (propagate): Likewise.
7206 * ipa-utils.c (struct searchc_env): Remove unused field.
7207 (searchc): Always search across AVAIL_INTERPOSABLE.
7208 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
7209 the only called IPA pure const can properly not propagate
7210 across interposable boundary.
7211 * ipa-utils.h (ipa_reduced_postorder): Remove param.
7213 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
7215 * config/nds32/nds32.md (call_internal, call_value_internal,
7216 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
7218 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
7220 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
7223 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
7225 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
7228 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
7230 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
7232 2019-02-10 Jakub Jelinek <jakub@redhat.com>
7234 PR tree-optimization/89268
7235 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
7236 if preds is non-NULL.
7238 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
7241 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
7244 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
7246 * config/nds32/nds32.md (trap): New pattern.
7248 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
7250 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
7253 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
7255 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
7258 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
7260 * ipa-visibility.c (localize_node): Also do not localize
7261 LDPR_PREVAILING_DEF_IRONLY_EXP.
7263 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
7266 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
7267 instead of type_with_linkage.
7269 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
7272 * params.def (uninlined-function-insns, uninlined-function-time,
7273 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
7274 bound so we don't get overflows.
7276 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
7278 * config/rs6000/rs6000-string.c (expand_compare_loop,
7279 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
7282 2019-02-09 Jakub Jelinek <jakub@redhat.com>
7285 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
7286 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
7287 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
7289 2019-02-09 Alan Modra <amodra@gmail.com>
7292 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
7293 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
7296 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
7299 * lra-constraints.c (process_alt_operands): Don't increase reject
7300 for memory when offset memory is required.
7302 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
7304 * config/s390/vector.md: Implement vector copysign.
7306 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
7308 * expr.c (expand_constructor): Correct indentations.
7310 2019-02-08 Richard Biener <rguenther@suse.de>
7312 PR tree-optimization/89247
7313 * tree-if-conv.c: Include tree-cfgcleanup.h.
7314 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
7315 (tree_if_conversion): Pass through predicate vector.
7316 (pass_if_conversion::execute): Do CFG cleanup and SSA update
7317 inline, see if any if-converted loops we refrece in
7318 LOOP_VECTORIZED calls vanished and fixup.
7319 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
7321 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
7323 * config/s390/constraints.md (jdd): New constraint.
7325 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
7328 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
7329 upper 16 vector registers without TARGET_AVX512VL.
7330 (*movti_internal): Likewise.
7332 2019-02-08 Jakub Jelinek <jakub@redhat.com>
7334 PR rtl-optimization/89234
7335 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
7336 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
7337 (copy_reg_eh_region_note_backward): Likewise.
7339 2019-02-08 Richard Biener <rguenther@suse.de>
7342 * tree-data-ref.c (initialize_matrix_A): Fail if constant
7344 (analyze_subscript_affine_affine): Handle failure from
7345 initialize_matrix_A.
7347 2019-02-08 Jakub Jelinek <jakub@redhat.com>
7349 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
7352 2019-02-07 David Malcolm <dmalcolm@redhat.com>
7354 PR tree-optimization/86637
7355 PR tree-optimization/89235
7356 * tree-vect-loop.c (optimize_mask_stores): Add an
7357 auto_purge_vect_location sentinel to ensure that vect_location is
7360 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
7361 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
7362 to ensure that vect_location is purged on exit.
7363 (pass_slp_vectorize::execute): Likewise, replacing the manual
7365 * tree-vectorizer.h (class auto_purge_vect_location): New class.
7367 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7369 * config/aarch64/iterators.md (max_opp): New code_attr.
7370 (USMAX): New code iterator.
7371 * config/aarch64/predicates.md (aarch64_smin): New predicate.
7372 (aarch64_smax): Likewise.
7373 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
7374 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
7377 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
7380 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
7381 for TARGET_AVX512VL.
7382 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
7384 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
7386 * config/s390/s390-builtin-types.def: Add new types.
7387 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
7388 (s390_vec_xlw4): Make the memory operand into a const pointer.
7389 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
7391 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
7392 a new vector type with the alignment of the scalar memory operand.
7394 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
7395 Jakub Jelinek <jakub@redhat.com>
7398 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
7399 arm_count_ldrdstrd_insns): New declarations.
7400 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
7402 (valid_operands_ldrd_strd): New function.
7403 (arm_count_ldrdstrd_insns): New function.
7404 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
7405 sets instead of single DImode set and define new insns to match this.
7407 2019-02-07 Tamar Christina <tamar.christina@arm.com>
7409 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
7410 Make it a C initializer.
7412 2019-02-07 Tamar Christina <tamar.christina@arm.com>
7415 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
7417 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7419 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
7420 Use neon_dot<q> for type.
7421 (neon_<sup>dot_lane<vsi2qi>): Likewise.
7423 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7425 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
7426 Use neon_dot<q> for type.
7427 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
7428 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
7430 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
7432 PR rtl-optimization/89225
7433 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
7436 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
7438 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
7439 after restoring registers saved to allocate the frame on Windows.
7441 2019-02-06 Richard Biener <rguenther@suse.de>
7443 PR tree-optimization/89182
7444 * graphite.h (cached_scalar_evolution_in_region): Declare.
7445 * graphite.c (struct seir_cache_key): New.
7446 (struct sese_scev_hash): Likewise.
7447 (seir_cache): New global.
7448 (cached_scalar_evolution_in_region): New function.
7449 (graphite_transform_loops): Allocate and release seir_cache.
7450 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
7451 cached_scalar_evolution_in_region.
7452 * graphite-scop-detection.c (scop_detection::can_represent_loop):
7454 (scop_detection::graphite_can_represent_expr: Use
7455 cached_scalar_evolution_in_region.
7456 (scop_detection::stmt_simple_for_scop_p): Likewise.
7457 (find_params_in_bb): Likewise.
7458 (gather_bbs::before_dom_children): Likewise.
7459 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
7460 (add_loop_constraints): Likewise.
7462 2019-02-06 Jakub Jelinek <jakub@redhat.com>
7465 * fold-const-call.c (fold_const_vec_convert): Pass true as last
7466 operand to new_unary_operation only if both element types are integral
7467 and it isn't a widening conversion. Return NULL_TREE if
7468 new_unary_operation failed.
7470 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
7473 * config/s390/s390.md: Remove load and test FP splitter.
7475 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
7478 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
7479 expand_compare_loop, expand_block_compare_gpr,
7480 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
7481 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
7482 #include "profile-count.h" and "predict.h" for types and functions
7483 needed to work with REG_BR_PROB notes.
7485 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
7488 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
7489 for the long branch case.
7491 2019-02-05 Jakub Jelinek <jakub@redhat.com>
7494 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
7495 can throw, non-call exceptions are enabled and we can't delete
7496 dead exceptions or alter cfg. Set must_clean if
7497 delete_insn_and_edges returns true, don't set it blindly for calls.
7498 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
7500 PR rtl-optimization/89195
7501 * combine.c (make_extraction): For MEMs, don't extract bytes outside
7502 of the original MEM.
7504 2019-02-05 Martin Liska <mliska@suse.cz>
7506 PR gcov-profile/89000
7507 * gcov.c (function_summary): Remove argument.
7508 (file_summary): New function.
7509 (print_usage): Replace tabs with spaces.
7510 (generate_results): Use new function file_summary.
7512 2019-02-05 Jakub Jelinek <jakub@redhat.com>
7515 * optabs.c (prepare_cmp_insn): Pass x and y to
7516 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
7518 2019-02-05 Richard Biener <rguenther@suse.de>
7521 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
7522 (struct bitmap_element): Drop chain_prev so we properly recurse on
7523 the prev member, supporting tree views.
7524 (struct bitmap_head): GTY skip the obstack member.
7526 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
7529 * doc/extend.texi (Vector Extensions): Add an example of using vector
7530 types together with x86 intrinsics.
7532 2019-02-04 Alan Modra <amodra@gmail.com>
7534 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
7535 str[] size to 160, and comment.
7537 2019-02-04 Alan Modra <amodra@gmail.com>
7539 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
7540 (rs6000_pltseq_template): Guard output of TLS markers with
7542 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
7543 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
7544 to use inline PLT sequences.
7545 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
7546 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
7547 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
7549 2019-02-04 Martin Liska <mliska@suse.cz>
7552 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
7553 out when ipa_fn_summaries does not contain entry for callee.
7555 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
7557 * config/sparc/sparc.h: Remove superfluous blank lines.
7558 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
7559 (got_register_rtx): ...this.
7560 (sparc_got): Adjust to above renaming.
7561 (sparc_tls_got): Likewise.
7562 (sparc_delegitimize_address): Likewise.
7563 (sparc_output_mi_thunk): Likewise.
7564 (sparc_init_pic_reg): Likewise.
7565 (save_local_or_in_reg_p): Fix test on the GOT register.
7566 (USE_HIDDEN_LINKONCE): Move around.
7567 (get_pc_thunk_name): Likewise.
7568 (gen_load_pcrel_sym): Likewise.
7569 (load_got_register): Likewise.
7571 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
7573 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
7574 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
7576 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
7578 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
7581 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
7583 * config.gcc (with_nds32_lib, glibc):
7584 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
7585 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
7586 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
7588 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
7591 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
7592 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
7593 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
7594 (*rcpsf2_sse): Ditto.
7595 (*rsqrtsf2_sse): Ditto.
7596 (sse4_1_round<mode<2): Ditto.
7598 2019-02-03 Richard Biener <rguenther@suse.de>
7601 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
7604 2019-02-02 Jakub Jelinek <jakub@redhat.com>
7607 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
7608 Punt with warning on aggregate return or argument types. Ignore
7609 type/mode checking for uniform arguments.
7611 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
7613 * combine.c (try_combine): Do not print "Can't combine" messages unless
7614 printing failed combination attempts.
7616 2019-02-01 Martin Jambor <mjambor@suse.cz>
7619 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
7620 segment and global segment variables before making them static.
7622 2019-02-01 Martin Jambor <mjambor@suse.cz>
7624 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
7625 missed optimization dump with dump_enabled_p.
7627 2019-02-01 Richard Biener <rguenther@suse.de>
7630 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
7631 the instantiate cache.
7632 (instantiate_scev_binary): Elide second operand procesing
7633 if equal to the first.
7634 * tree-chrec.c (chrec_contains_symbols): Add visited set.
7635 (chrec_contains_undetermined): Likewise.
7636 (tree_contains_chrecs): Likewise.
7638 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
7640 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
7642 2019-02-01 Jakub Jelinek <jakub@redhat.com>
7644 PR tree-optimization/89143
7645 * wide-int-range.h (wide_int_range_absu): Declare.
7646 * wide-int-range.cc (wide_int_range_absu): New function.
7647 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
7649 PR tree-optimization/88107
7650 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
7651 instead of assertion that eh_region_outermost is non-NULL, if it
7652 is NULL, set *ALL to true and return NULL.
7653 (move_sese_region_to_fn): Adjust caller, if all is set, call
7654 duplicate_eh_regions with NULL region.
7656 2019-02-01 Richard Biener <rguenth@suse.de>
7658 PR rtl-optimization/88593
7659 * mode-switching.c (optimize_mode_switching): Free dominators before
7660 calling cleanup_cfg.
7662 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
7664 PR tree-optimization/88932
7665 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
7667 2019-01-31 Jakub Jelinek <jakub@redhat.com>
7670 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
7671 bogus clang warning.
7673 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
7676 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
7677 alternative to avoid partial SSE register stall for TARGET_AVX.
7678 (truncdfsf2): Ditto.
7679 (sse4_1_round<mode>2): Ditto.
7681 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
7683 PR tree-optimization/89008
7684 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
7685 process anything of the form X * 0.
7687 2019-01-31 Richard Biener <rguenther@suse.de>
7689 PR tree-optimization/89135
7690 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
7691 with abnormal preds.
7693 2019-01-31 Jakub Jelinek <jakub@redhat.com>
7696 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
7697 always_inline callees into no_sanitize_address callers.
7699 2019-01-31 Richard Biener <rguenther@suse.de>
7701 PR rtl-optimization/89115
7702 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
7704 2019-01-30 Martin Sebor <msebor@redhat.com>
7707 * doc/extend.texi (cast to a union): Correct and expand.
7709 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
7711 PR rtl-optimization/87246
7712 * lra-constraints.c (simplify_operand_subreg): Reload memory
7713 in subreg if the address became invalid.
7715 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
7718 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
7719 Disable for little-endian.
7721 2019-01-30 Richard Biener <rguenther@suse.de>
7723 PR rtl-optimization/89115
7724 * opts.c (default_options_optimization): Reduce
7725 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
7726 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
7729 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
7731 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
7732 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
7733 type of vector element when vec_extract is implemented by direct
7736 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
7738 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
7740 2019-01-30 Richard Biener <rguenther@suse.de>
7742 PR tree-optimization/89111
7743 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
7744 canonicalization to appropriately sized access types.
7746 2019-01-30 Jakub Jelinek <jakub@redhat.com>
7749 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
7750 for arguments to functions that are TU-local and shouldn't be
7751 referenced by assembly.
7753 2019-01-30 Ulrich Drepper <drepper@redhat.com>
7755 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
7758 2019-01-29 Martin Sebor <msebor@redhat.com>
7761 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
7763 2019-01-29 Jakub Jelinek <jakub@redhat.com>
7767 * omp-simd-clone.c (simd_clone_clauses_extract)
7768 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
7769 OMP_CLAUSE_ALIGNED_ALIGNMENT.
7771 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
7773 * config.gcc: Force .init_array for ARC.
7775 2019-01-29 Richard Biener <rguenther@suse.de>
7778 * dwarf2out.c (collect_skeleton_dies): New helper.
7779 (copy_decls_for_unworthy_types): Call it.
7780 (build_abbrev_table): Assert we do not try to replace
7781 DW_AT_signature refs with local refs.
7783 2019-01-28 Jakub Jelinek <jakub@redhat.com>
7786 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
7787 for lastprivate/linear IV, push gimplify context around gimplify_assign
7788 and, if it needed any temporaries, pop it into a gimple bind around the
7791 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
7793 * common.opt (-Wattribute-alias): Remove "no-" from name.
7794 Make -Wattribute-alias command line option and
7795 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
7797 2019-01-28 Jakub Jelinek <jakub@redhat.com>
7800 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
7801 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
7803 (bmi2): Add missing @opindex.
7804 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
7805 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
7806 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
7807 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
7808 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
7809 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
7810 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
7811 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
7812 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
7813 xsavec, xsaveopt and xsaves options.
7815 2019-01-28 Richard Biener <rguenther@suse.de>
7818 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
7821 2019-01-28 Richard Biener <rguenther@suse.de>
7823 PR tree-optimization/88739
7824 * tree-cfg.c (verify_types_in_gimple_reference): Verify
7825 BIT_FIELD_REFs only are applied to mode-precision operands
7826 when they are integral.
7827 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
7828 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
7829 BIT_FIELD_REFs of non-mode-precision integral operands.
7831 2019-01-27 Jakub Jelinek <jakub@redhat.com>
7834 * config/i386/sse.md
7835 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
7836 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
7837 first constants in pairs are multiples of 2. Formatting fixes.
7838 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
7839 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
7840 first constants in each quadruple are multiples of 4. Formatting fixes.
7842 2019-01-26 Martin Jambor <mjambor@suse.cz>
7845 * tree-inline.c: Include tree-cfgcleanup.h.
7846 (delete_unreachable_blocks_update_callgraph): Move...
7847 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
7848 ...here, make externally visible, make second argument bool, adjust
7850 * tree-cfgcleanup.c: Include cgraph.h.
7851 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
7853 * ipa-prop.c: Include tree-cfgcleanup.h.
7854 (ipcp_transform_function): Call
7855 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
7857 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
7859 PR rtl-optimization/88846
7860 * ira.c (process_set_for_memref_referenced_p): New.
7861 (memref_referenced_p): Add new param. Use
7862 process_set_for_memref_referenced_p. Add new switch cases.
7863 (memref_used_between_p): Pass new arg to memref_referenced_p.
7865 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
7868 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
7869 argument ABI_BREAK. Set to true if the calculated alignment has
7870 changed in gcc-9. Check bit-fields for their base type alignment.
7871 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
7872 (aarch64_function_arg_boundary): Likewise.
7873 (aarch64_gimplify_va_arg_expr): Likewise.
7875 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
7878 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
7879 instead of accessing TREE_INT_CST_ELT directly.
7881 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
7883 * doc/sourcebuild.texi (Environment attributes): Add fenv and
7884 fenv_exceptions description.
7886 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
7888 PR rtl-optimization/87763
7889 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
7890 Allow SUBREG when matching CC_NZmode compare.
7892 2019-01-25 Richard Biener <rguenther@suse.de>
7894 PR tree-optimization/89049
7895 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
7896 Look at the pattern stmt to determine if the stmt is vectorized.
7898 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
7900 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
7901 (pred_mov<mode>): Handle all-register forms using both a new
7902 alternative and a split.
7904 2019-01-25 Richard Biener <rguenther@suse.de>
7906 PR tree-optimization/86865
7907 * graphite-scop-detection.c (scop_detection::can_represent_loop):
7908 Reject non-do-while loops.
7910 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
7912 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
7913 * config/rs6000/constraints.md (Q constraint): Use REG_P.
7914 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
7915 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
7916 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
7917 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7918 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
7919 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
7920 vlogical_operand, gpc_reg_operand, int_reg_operand,
7921 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
7922 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
7923 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
7924 (save_world_operation, restore_world_operation, lmw_operation,
7925 stmw_operation): Use MEM_P and REG_P.
7926 (tie_operand): Use MEM_P.
7927 (vrsave_operation, crsave_operation): Use REG_P.
7928 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
7929 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
7930 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
7931 (call_operand): Use HARD_REGISTER_P.
7932 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
7934 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
7935 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
7936 quad_aligned_load_p, replace_swapped_aligned_store,
7937 recombine_lvx_pattern, replace_swapped_aligned_load,
7938 recombine_stvx_pattern): Use MEM_P.
7939 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
7940 Use MEM_P and SYMBOL_REF_P.
7941 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
7942 (insn_is_swappable_p): Use REG_P and MEM_P.
7943 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
7944 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
7946 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
7948 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
7950 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
7951 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
7952 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
7953 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
7955 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
7956 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
7957 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
7958 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
7959 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
7960 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
7961 rs6000_split_logical_di): Use CONST_INT_P.
7962 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
7963 REG_P and SYMBOL_REF_P.
7964 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
7965 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
7966 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
7967 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
7968 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
7969 (small_data_operand, print_operand_address): Use CONST_INT_P and
7971 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
7972 (rs6000_init_hard_regno_mode_ok, direct_move_p):
7973 Use HARD_REGISTER_NUM_P.
7974 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
7975 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
7976 SUBREG_P and SYMBOL_REF_P.
7977 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
7978 and HARD_REGISTER_NUM_P.
7979 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
7981 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
7982 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
7984 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
7985 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
7986 find_addr_reg): Use REG_P.
7987 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
7988 (rs6000_emit_le_vsx_move): Use SUBREG_P.
7989 (offsettable_ok_by_alignment, constant_pool_expr_p,
7990 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
7991 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
7992 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
7993 rs6000_assemble_integer, create_TOC_reference,
7994 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
7995 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
7996 (rs6000_split_vec_extract_var): Use reg_or_subregno.
7997 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
7998 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
7999 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8000 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8001 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
8002 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
8003 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
8004 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
8005 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
8006 and cbranch<mode>4): Use CONST_INT_P.
8007 (multiple define_splits): Use REG_P and SUBREG_P.
8008 (define_expands call, call_value): Use MEM_P.
8009 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
8010 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
8011 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
8012 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
8013 and HARD_REGISTER_NUM_P.
8014 (multiple define_splits): Use HARD_REGISTER_NUM_P.
8016 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
8018 PR rtl-optimization/88948
8019 * rtl.h (prepare_copy_insn): New prototype.
8020 * gcse.c (prepare_copy_insn): New function, split out from
8021 process_insert_insn.
8022 (process_insert_insn): Use prepare_copy_insn.
8023 * store-motion.c (replace_store_insn): Use prepare_copy_insn
8024 instead of gen_move_insn.
8026 2019-01-24 Jakub Jelinek <jakub@redhat.com>
8029 * config/i386/i386.c (ix86_pic_register_p): Return true for
8032 PR tree-optimization/88964
8033 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
8034 punt if HONOR_SNANS (chrec).
8037 * tree-nested.c (convert_nonlocal_reference_stmt,
8038 convert_local_reference_stmt, convert_tramp_reference_stmt,
8039 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
8040 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
8043 PR tree-optimization/89027
8044 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
8045 for "omp simd array" variables.
8047 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
8050 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
8051 force the alignment of m_val.
8053 2019-01-24 Richard Biener <rguenther@suse.de>
8056 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
8057 When in "legacy" debug mode make sure to reset self-origins.
8059 2019-01-24 Martin Liska <mliska@suse.cz>
8061 PR gcov-profile/88994
8062 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
8063 result will be always smaller or equal to the original.
8064 * gcov.c (mangle_name): Fix else branch where we should
8065 also copy to PTR and shift the pointer.
8067 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
8069 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
8070 * vr-values.c (find_case_label_ranges): Fix a comment typo.
8072 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
8074 * common/config/i386/i386-common.c
8075 (OPTION_MASK_ISA_ENQCMD_SET,
8076 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
8077 (ix86_handle_option): Handle -menqcmd.
8078 * config.gcc (enqcmdintrin.h): New header file.
8079 * config/i386/cpuid.h (bit_ENQCMD): New bit.
8080 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
8082 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
8084 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
8085 __builtin_ia32_enqcmds): New builtins.
8086 * config/i386/i386-c.c (__ENQCMD__): New macro.
8087 * config/i386/i386-option.c (ix86_target_string): Add
8089 (ix86_valid_target_attribute_inner_p): Likewise.
8090 * config/i386/i386-expand.c
8091 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
8092 IX86_BUILTIN_ENQCMDS.
8093 * config/i386/i386.h (TARGET_ENQCMD): New.
8094 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
8095 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
8096 (movdir64b_<mode>): Parameterize to enable share expansion code
8097 with ENQCMD in function ix86_expand_builtin.
8098 * config/i386/i386.opt: Add -menqcmd.
8099 * config/i386/immintrin.h: Include enqcmdintrin.h.
8100 * config/i386/enqcmdintrin.h: New intrinsic file.
8101 * doc/invoke.texi: Add -menqcmd.
8103 2019-01-23 Bin Cheng <bin.cheng@arm.com>
8104 Steve Ellcey <sellcey@marvell.com>
8107 * recog.c (address_operand): Return false on wrong mode for address.
8108 (constrain_operands): Check for mode with 'p' constraint.
8110 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
8113 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
8114 Disparage MMX alternative.
8115 (sse2_cvtpd2pi): Ditto.
8116 (sse2_cvttpd2pi): Ditto.
8118 2019-01-23 David Malcolm <dmalcolm@redhat.com>
8121 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
8122 use-after-free of the result of
8123 aarch64_get_extension_string_for_isa_flags.
8125 2019-01-23 Jakub Jelinek <jakub@redhat.com>
8128 * doc/extend.texi: Document break and continue behavior in
8129 statement expressions.
8131 2019-01-23 Richard Biener <rguenther@suse.de>
8133 PR tree-optimization/89008
8134 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
8135 not leave another stray operand.
8137 2019-01-23 Jakub Jelinek <jakub@redhat.com>
8139 * BASE-VER: Bump to 9.0.1.
8141 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
8143 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
8144 thunk that returns by reference, use the type of the return object
8145 of the thunk instead of that of the alias to build the dereference.
8147 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
8149 * config/arc/atomic.md: Add operand to DMB instruction.
8151 2019-01-23 Jakub Jelinek <jakub@redhat.com>
8153 PR tree-optimization/88964
8154 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
8155 build_zero_cst instead of build_int_cst. Return false for loop
8156 invariants which honor signed zeros.
8158 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
8160 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
8162 2019-01-22 Jakub Jelinek <jakub@redhat.com>
8165 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
8166 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
8167 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
8170 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
8171 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
8174 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
8175 Disable for little endian.
8177 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
8180 * config/arm/arm.c (arm_needs_double_word_align): Check
8181 DECL_BIT_FIELD_TYPE.
8183 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
8184 H.J. Lu <hongjiu.lu@intel.com>
8187 * config/i386/i386-builtin.def: Add mask2 to all builtin
8188 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
8190 * config/i386/i386.c (BDESC): Add mask2 to the definition.
8191 (BDESC_FIRST): Likewise.
8192 (define_builtin): Add an argument for mask2. Updated to handle
8193 both ix86_isa_flags and ix86_isa_flags2.
8194 (define_builtin_const): Likewise.
8195 (define_builtin_pure): Likewise.
8196 (define_builtin2): Deleted.
8197 (define_builtin_const2): Likewise.
8198 (builtin_description): Add a member, mask2.
8199 (bdesc_*): Add mask2 to builtin initializations.
8200 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
8201 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
8203 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
8205 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
8208 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
8211 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
8214 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
8215 alignment is dominated by a bitfield with 64-bit aligned base type.
8216 (arm_function_arg): Emit a warning if the alignment has changed since
8217 earlier GCC releases.
8218 (arm_function_arg_boundary): Likewise.
8219 (arm_setup_incoming_varargs): Likewise.
8221 2019-01-22 Richard Biener <rguenther@suse.de>
8223 PR tree-optimization/88862
8224 * graphite-scop-detection.c
8225 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
8227 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
8229 * doc/extend.tex (AMD GCN Function Attributes): New section.
8230 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
8231 * doc/invoke.texi (AMD GCN Options): New section.
8232 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
8234 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
8236 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
8237 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
8239 2019-01-22 Jakub Jelinek <jakub@redhat.com>
8241 PR tree-optimization/88044
8242 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
8243 is false in the first iteration, but !every_iteration, return false
8244 instead of true with niter->niter zero.
8246 PR rtl-optimization/88904
8247 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
8248 any nonequal registers before processing BB_END (b).
8251 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
8253 (expand_binop_directly, expand_doubleword_clz,
8254 expand_doubleword_popcount, expand_ctz, expand_ffs,
8255 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
8257 PR rtl-optimization/49429
8259 PR rtl-optimization/86334
8261 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
8262 addressable from here...
8263 (emit_block_op_via_libcall): ... to here.
8265 2019-01-22 Richard Biener <rguenther@suse.de>
8267 * tree-vect-loop.c (vect_analyze_loop_operations): Use
8268 auto_vec for cost vector to fix memleak.
8269 (vectorize_fold_left_reduction): Properly gather SLP defs.
8270 (vectorizable_comparison): Do not swap operands to properly
8273 2019-01-22 Alan Modra <amodra@gmail.com>
8276 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
8277 stays a reg. Allow a const_int.
8278 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
8279 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
8280 (IS_NOMARK_TLSGETADDR): Define.
8281 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
8282 (rs6000_output_tlsargs): New function.
8283 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
8284 __tls_get_addr call takes an arg.
8285 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
8286 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
8288 (call_value_nonlocal_sysv): ..or here, delete split.
8289 (tls_gdld_nomark): Delete.
8290 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
8291 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
8292 (call_value_nonlocal_sysv): Likewise.
8293 (call_value_nonlocal_sysv_secure): Likewise.
8294 (call_value_nonlocal_aix): Likewise.
8295 (call_value_indirect_aix): Likewise.
8296 (call_value_indirect_elfv2): Likewise.
8297 (call_value_local32, call_value_local64): Disable for no-mark tls.
8298 (call_value_local_aix): Likewise.
8300 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
8303 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
8304 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
8306 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
8308 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
8309 string contents as hash_map keys.
8311 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
8314 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
8315 for rvalue context. Handle rvalues correctly. Use min_align_of_type
8316 instead of TYPE_ALIGN.
8317 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
8318 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
8319 pointer from TYPE_STUB_DECL.
8321 2019-01-21 Richard Biener <rguenther@suse.de>
8323 PR tree-optimization/88934
8324 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
8325 at the possibly non-constant operand.
8326 (vect_get_constant_vectors): Adjust.
8328 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
8331 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
8332 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
8333 instead of _X86INTRIN_H_INCLUDED.
8334 * onfig/i386/clwbintrin.h: Likewise.
8335 * config/i386/pkuintrin.h: Likewise.
8336 * config/i386/prfchwintrin.h: Likewise.
8337 * config/i386/rdseedintrin.h: Likewise.
8338 * config/i386/wbnoinvdintrin.h: Likewise.
8339 * config/i386/xsavecintrin.h: Likewise.
8340 * config/i386/xsavesintrin.h: Likewise.
8341 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
8342 * config/i386/xsaveintrin.h: Likewise.
8343 * config/i386/xsaveoptintrin.h: Likewise.
8344 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
8345 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
8346 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
8347 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
8348 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
8349 * config/i386/immintrin.h: Here.
8351 2019-01-20 Martin Jambor <mjambor@suse.cz>
8354 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
8355 with aa_walk_budget.
8356 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
8357 aa_walk_budget_p parameter.
8358 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
8359 walk. Updated all callers.
8360 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
8361 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
8363 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
8364 parameter info. Extract info from fbi. Pass fbi to recursive calls
8365 and to unmodified_parm.
8366 (phi_result_unknown_predicate): New parameter fbi, removed parameter
8367 info, updated call to will_be_nonconstant_expr_predicate.
8368 (param_change_prob): New parameter fbi, limit AA walking.
8369 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
8370 calls to various above functions.
8371 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
8372 parameter. Use it to limit AA walking.
8373 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
8375 (detect_type_change): New parameter fbi, pass it on to
8376 detect_type_change_from_memory_writes.
8377 (detect_type_change_ssa): Likewise.
8378 (aa_overwalked): Removed.
8379 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
8380 accordingly, adjust to the neew AA limiting scheme.
8381 (parm_ref_data_preserved_p): Likewise.
8382 (ipa_compute_jump_functions_for_edge): Adjust call to
8384 (ipa_analyze_call_uses): Likewise.
8385 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
8386 (ipa_analyze_node): Initialize aa_walk_budget.
8387 (ipcp_transform_function): Likewise.
8388 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
8389 to get_dynamic_type.
8391 2019-01-19 Jakub Jelinek <jakub@redhat.com>
8393 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
8394 outside of #if CHECKING_P code.
8396 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
8398 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
8399 New function, split out from...
8400 (loop_versioning::analyze_stride): ...here.
8401 (loop_versioning::find_per_loop_multiplication): Use gassign.
8402 (loop_versioning::analyze_term_using_scevs): Return a success code.
8403 (loop_versioning::analyze_arbitrary_term): New function.
8404 (loop_versioning::analyze_address_fragment): Use
8405 analyze_arbitrary_term if all else fails.
8407 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
8410 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
8413 2019-01-18 Richard Biener <rguenther@suse.de>
8415 PR tree-optimization/88903
8416 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
8417 scalar stmts a SLP shift amount is composed of when detecting
8420 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
8423 * config/arm/arm-cpus.in (mp): New feature.
8425 (fgroup ARMv7ve): Add mp and sec features.
8426 (arch armv7-a): Add options to allow mp and sec extensions.
8427 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
8428 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
8429 extenstions to the base architecture.
8430 (cpu cortex-a8): Add sec extension to the base architecture.
8431 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
8432 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
8433 variants down to the base v7-a varaint.
8434 * config/arm/t-multilib (v7_a_arch_variants): New variable.
8435 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
8436 of permitted extensions for -march=armv7-a and for
8437 -mcpu=generic-armv7-a.
8439 2019-01-18 Martin Liska <mliska@suse.cz>
8441 * params.def: Fix comment.
8442 * tree-profile.c (gimple_init_gcov_profiler): Bump function
8444 (gimple_gen_ic_func_profiler): Likewise.
8446 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8448 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
8449 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
8450 and put in error checks for stack protector guard options.
8451 (aarch64_stack_protect_guard): New.
8452 (TARGET_STACK_PROTECT_GUARD): Define.
8453 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
8454 (reg_stack_protect_address<mode>): New.
8455 (stack_protect_set): Adjust for SSP_GLOBAL.
8456 (stack_protect_test): Likewise.
8457 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
8458 (-mstack-protector-guard): Likewise.
8459 (-mstack-protector-guard-offset): Likewise.
8461 2019-01-18 Jakub Jelinek <jakub@redhat.com>
8463 PR tree-optimization/86214
8464 * tree-inline.h (struct copy_body_data): Add
8465 add_clobbers_to_eh_landing_pads member.
8466 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
8467 (copy_edges_for_bb): Call it if EH edge destination is <
8468 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
8469 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
8470 if flag_stack_reuse != SR_NONE and clear it afterwards.
8472 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
8475 * doc/install.texi (with-multilib-list): Document for aarch64.
8477 2019-01-18 Jakub Jelinek <jakub@redhat.com>
8480 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
8481 (("..."))) with ("...").
8483 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
8485 * doc/extend.texi (Built-in Functions for Memory Model Aware
8486 Atomic Operations): Document atomic fetch and nand.
8488 2019-01-18 Martin Liska <mliska@suse.cz>
8489 Richard Biener <rguenther@suse.de>
8492 * cgraph.h (create_version_clone_with_body): Add new argument
8494 * cgraphclones.c (cgraph_node::create_version_clone): Add
8495 DECL_ATTRIBUTES to a newly created decl. And call
8496 valid_attribute_p so that proper cl_target_optimization_node
8497 is set for the newly created declaration.
8498 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
8500 (expand_target_clones): Do not call valid_attribute_p, it must
8502 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
8505 2019-01-17 Jakub Jelinek <jakub@redhat.com>
8508 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
8509 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
8510 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
8512 2019-01-17 Martin Sebor <msebor@redhat.com>
8515 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
8516 Handle anti-ranges the same as no range at all.
8518 2018-01-17 Steve Ellcey <sellcey@cavium.com>
8520 * config/aarch64/aarch64.c (cgraph.h): New include.
8521 (intl.h): New include.
8522 (supported_simd_type): New function.
8523 (currently_supported_simd_type): Ditto.
8524 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
8525 (aarch64_simd_clone_adjust): Ditto.
8526 (aarch64_simd_clone_usable): Ditto.
8527 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
8528 (TARGET_SIMD_CLONE_ADJUST): Ditto.
8529 (TARGET_SIMD_CLONE_USABLE): Ditto.
8530 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
8531 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
8534 2019-01-17 Martin Sebor <msebor@redhat.com>
8536 PR tree-optimization/88800
8537 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
8538 NO_WARNING bit here. Avoid folding out-of-bounds calls.
8539 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
8540 redundant argument. Add new argument and issue diagnostics under
8541 its control. Detect out-of-bounds access even with warnings
8543 (check_bounds_or_overlap): Change return type. Add argument.
8544 (wrestrict_dom_walker::check_call): Adjust.
8545 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
8546 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
8547 check_bounds_or_overlap's return value.
8548 (handle_builtin_stxncpy): Same.
8549 (handle_builtin_strcat): Same.
8551 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8552 Kwok Cheung Yeung <kcy@codesourcery.com>
8553 Julian Brown <julian@codesourcery.com>
8554 Tom de Vries <tom@codesourcery.com>
8556 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
8558 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8560 * doc/sourcebuild.texi: Document dg-require-effective-target
8561 llvm_binutils and offload_gcn.
8563 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8564 Kwok Cheung Yeung <kcy@codesourcery.com>
8565 Julian Brown <julian@codesourcery.com>
8566 Tom de Vries <tom@codesourcery.com>
8568 * doc/sourcebuild.texi: Document dg-required-effective-target
8571 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8572 Kwok Cheung Yeung <kcy@codesourcery.com>
8573 Julian Brown <julian@codesourcery.com>
8574 Tom de Vries <tom@codesourcery.com>
8575 Jan Hubicka <hubicka@ucw.cz>
8576 Martin Jambor <mjambor@suse.cz>
8578 * config.gcc: Add amdgcn*-*-amdhsa configuration.
8579 * configure.ac: Check for dlopen.
8580 * configure: Regenerate.
8582 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8583 Kwok Cheung Yeung <kcy@codesourcery.com>
8584 Julian Brown <julian@codesourcery.com>
8585 Tom de Vries <tom@codesourcery.com>
8586 Jan Hubicka <hubicka@ucw.cz>
8587 Martin Jambor <mjambor@suse.cz>
8589 * common/config/gcn/gcn-common.c: New file.
8590 * config/gcn/driver-gcn.c: New file.
8591 * config/gcn/gcn-builtins.def: New file.
8592 * config/gcn/gcn-hsa.h: New file.
8593 * config/gcn/gcn-modes.def: New file.
8594 * config/gcn/gcn-opts.h: New file.
8595 * config/gcn/gcn-passes.def: New file.
8596 * config/gcn/gcn-protos.h: New file.
8597 * config/gcn/gcn-run.c: New file.
8598 * config/gcn/gcn-tree.c: New file.
8599 * config/gcn/gcn.c: New file.
8600 * config/gcn/gcn.h: New file.
8601 * config/gcn/gcn.opt: New file.
8602 * config/gcn/t-gcn-hsa: New file.
8604 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8605 Kwok Cheung Yeung <kcy@codesourcery.com>
8606 Julian Brown <julian@codesourcery.com>
8607 Tom de Vries <tom@codesourcery.com>
8608 Jan Hubicka <hubicka@ucw.cz>
8609 Martin Jambor <mjambor@suse.cz>
8611 * config/gcn/constraints.md: New file.
8612 * config/gcn/gcn-valu.md: New file.
8613 * config/gcn/gcn.md: New file.
8614 * config/gcn/predicates.md: New file.
8616 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
8618 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
8619 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
8620 (stmt_uses_0_or_null_in_undefined_way): Likewise.
8621 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
8623 2019-01-17 Tamar Christina <tamar.christina@arm.com>
8626 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
8627 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
8628 it and document registers.
8630 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8632 * config/aarch64/aarch64.c (ares_tunings): Define.
8633 * config/aarch64/aarch64-cores.def (ares): Use the above.
8635 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
8639 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
8641 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
8642 (_mm512_fixupimm_round_pd): Update parameters and builtin.
8643 (_mm512_maskz_fixupimm_round_pd): Ditto.
8644 (_mm512_fixupimm_round_ps): Ditto.
8645 (_mm512_maskz_fixupimm_round_ps): Ditto.
8646 (_mm_fixupimm_round_sd): Ditto.
8647 (_mm_maskz_fixupimm_round_sd): Ditto.
8648 (_mm_fixupimm_round_ss): Ditto.
8649 (_mm_maskz_fixupimm_round_ss): Ditto.
8650 (_mm512_fixupimm_pd): Ditto.
8651 (_mm512_maskz_fixupimm_pd): Ditto.
8652 (_mm512_fixupimm_ps): Ditto.
8653 (_mm512_maskz_fixupimm_ps): Ditto.
8654 (_mm_fixupimm_sd): Ditto.
8655 (_mm_maskz_fixupimm_sd): Ditto.
8656 (_mm_fixupimm_ss): Ditto.
8657 (_mm_maskz_fixupimm_ss): Ditto.
8658 (_mm512_mask_fixupimm_round_pd): Update builtin.
8659 (_mm512_mask_fixupimm_round_ps): Ditto.
8660 (_mm_mask_fixupimm_round_sd): Ditto.
8661 (_mm_mask_fixupimm_round_ss): Ditto.
8662 (_mm512_mask_fixupimm_pd): Ditto.
8663 (_mm512_mask_fixupimm_ps): Ditto.
8664 (_mm_mask_fixupimm_sd): Ditto.
8665 (_mm_mask_fixupimm_ss): Ditto.
8666 * config/i386/avx512vlintrin.h:
8667 (_mm256_fixupimm_pd): Update parameters and builtin.
8668 (_mm256_maskz_fixupimm_pd): Ditto.
8669 (_mm256_fixupimm_ps): Ditto.
8670 (_mm256_maskz_fixupimm_ps): Ditto.
8671 (_mm_fixupimm_pd): Ditto.
8672 (_mm_maskz_fixupimm_pd): Ditto.
8673 (_mm_fixupimm_ps): Ditto.
8674 (_mm_maskz_fixupimm_ps): Ditto.
8675 (_mm256_mask_fixupimm_pd): Update builtin.
8676 (_mm256_mask_fixupimm_ps): Ditto.
8677 (_mm_mask_fixupimm_pd): Ditto.
8678 (_mm_mask_fixupimm_ps): Ditto.
8679 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
8680 * config/i386/i386-builtin.def: Update builtin definitions.
8681 * config/i386/i386.c: Handle new builtin types and remove useless ones.
8682 * config/i386/sse.md: Update VFIXUPIMM* patterns.
8683 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
8684 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
8685 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
8686 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
8687 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
8688 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
8689 * config/i386/subst.md:
8690 (round_saeonly_sd_mask_operand4): Add new subst_attr.
8691 (round_saeonly_sd_mask_op4): Ditto.
8692 (round_saeonly_expand_operand5): Ditto.
8693 (round_saeonly_expand): Update.
8695 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
8699 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
8701 * config/i386/sse.md: Combine VFIXUPIMM* patterns
8702 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
8703 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
8704 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
8705 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
8706 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
8707 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
8709 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
8713 2018-12-15 Jakub Jelinek <jakub@redhat.com>
8716 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
8717 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
8718 instead of UNSPEC_FIXUPIMM.
8720 2019-01-17 Richard Biener <rguenther@suse.de>
8723 * dwarf2out.c (want_pubnames): Never generate pubnames sections
8724 and friends for the LTO part of debug info.
8726 2019-01-17 Jakub Jelinek <jakub@redhat.com>
8728 PR tree-optimization/86214
8729 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
8732 PR rtl-optimization/88870
8733 * dce.c (deletable_insn_p): Never delete const/pure calls that can
8734 throw if we can't alter the cfg or delete dead exceptions.
8735 (mark_insn): Don't call find_call_stack_args for such calls.
8737 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
8739 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
8740 prototypes for vec_st.
8741 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
8742 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
8743 mainly on signed/unsigned long long and double.
8745 2019-01-16 David Malcolm <dmalcolm@redhat.com>
8748 * combine.c (delete_noop_moves): Convert to "bool" return,
8749 returning true if any edges are eliminated.
8750 (combine_instructions): Also return true if delete_noop_moves
8753 2019-01-16 Tamar Christina <tamar.christina@arm.com>
8755 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
8756 correct max nunits for endian swap.
8757 (aarch64_expand_fcmla_builtin): Correct subreg code.
8758 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
8759 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
8762 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
8764 * config/alpha/alpha.c (alpha_gimplify_va_arg):
8765 Handle split indirect COMPLEX_TYPE arguments.
8767 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
8770 * config/aarch64/aarch64-modes.def: Add comment about how the carry
8771 bit is set by add and compare.
8772 (CC_ADC): New CC_MODE.
8773 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
8774 to cache the code and mode of X. Adjust the shape of a CC_Cmode
8775 comparison. Add detection for CC_ADCmode.
8776 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
8778 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
8779 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
8780 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
8781 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
8782 to eliminate the need for zero-extending the operands.
8783 (add<mode>3_compareC_imm): Delete. Merge into ...
8784 (add<mode>3_compareC): ... this. Restructure the comparison to
8785 eliminate the need for zero-extending the operands.
8786 (add<mode>3_carryin): Use LTU for the overflow detection.
8787 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
8788 Reexpress comparison for overflow.
8789 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
8790 (add<mode>3_carryinC): Likewise.
8791 (add<mode>3_carryinV): Use LTU for carry between partials.
8792 * config/aarch64/predicates.md (aarch64_carry_operation): Update
8793 handling of CC_Cmode and add CC_ADCmode.
8794 (aarch64_borrow_operation): Likewise.
8796 2019-01-16 Tamar Christina <tamar.christina@arm.com>
8798 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
8799 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
8800 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
8801 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
8803 2019-01-16 Martin Liska <mliska@suse.cz>
8805 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
8807 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
8809 * gcc.c (add_sysrooted_hdrs_prefix): New function.
8810 (path_prefix_reset): Move up in the source file.
8811 (find_fortran_preinclude_file): Make complex search for the
8812 fortran header files.
8814 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
8816 * godump.c (go_output_typedef): When outputting a typedef, refer
8817 to the underlying type by its name and not its structure.
8819 2019-01-15 David Malcolm <dmalcolm@redhat.com>
8822 * tree.c (build_function_type): Assert that arg_types is not
8825 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
8828 * doc/extend.texi: Document that listing the stack pointer in the
8829 clobber list of an asm is a deprecated feature.
8830 * common.opt (Wdeprecated): Moved from c-family/c.opt.
8831 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
8832 warning instead of an error for clobbers of the stack pointer.
8833 Add a note explaining why.
8835 2019-01-15 Richard Biener <rguenther@suse.de>
8838 * dwarf2out.c (gen_member_die): Do not generate inheritance
8841 2019-01-15 Richard Biener <rguenther@suse.de>
8843 PR tree-optimization/88855
8844 * tree-if-conv.c (combine_blocks): Collect
8845 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
8847 2019-01-15 Tom de Vries <tdevries@suse.de>
8850 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
8851 lhs == NULL_TREE for gang-level reduction.
8853 2019-01-15 Richard Biener <rguenther@suse.de>
8854 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8857 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
8858 return true if SSA_NAME is already marked in visited bitmap.
8859 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
8861 2019-01-15 Jakub Jelinek <jakub@redhat.com>
8863 PR tree-optimization/88775
8864 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
8865 equal == 0 equality pointer comparisons some more if compared in
8866 integral types and either one points to an automatic var and the
8867 other to a global, or we can prove at least one points to the middle
8868 or both point to start or both point to end.
8870 2019-01-14 Andi Kleen <ak@linux.intel.com>
8872 * Makefile.in: Lower autofdo sampling rate by 10x.
8873 * Makefile.tpl: Dito.
8875 2019-01-14 Tom Honermann <tom@honermann.net>
8877 * defaults.h: Define CHAR8_TYPE.
8879 2019-01-14 Martin Sebor <msebor@redhat.com>
8882 * doc/extend.texi (Darwin Format Checks): Clarify.
8884 2019-01-14 Richard Biener <rguenther@suse.de>
8886 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
8887 whether we are in (simplify ...) or (match ...) context.
8889 2019-01-14 Jakub Jelinek <jakub@redhat.com>
8891 PR rtl-optimization/88796
8892 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
8893 * cfgexpand.c (stack_protect_prologue): Initialize
8894 crtl->stack_protect_guard_decl.
8895 * function.c (stack_protect_epilogue): Use it instead of calling
8896 targetm.stack_protect_guard again.
8897 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
8898 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
8899 crtl->stack_protect_guard_decl.
8900 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
8901 on the returned MEM_EXPR.
8903 2019-01-12 Tom de Vries <tdevries@suse.de>
8905 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
8906 vector length using -fopenacc-dim.
8908 2019-01-12 Tom de Vries <tdevries@suse.de>
8910 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
8911 lengths into account.
8913 2019-01-12 Svante Signell <svante.signell@gmail.com>
8915 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
8916 (TARGET_CAN_SPLIT_STACK): Define.
8917 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
8919 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
8921 * params.def (inline-unit-growth): Set to 40.
8923 2019-01-12 Jakub Jelinek <jakub@redhat.com>
8925 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
8927 2019-01-12 Tom de Vries <tdevries@suse.de>
8929 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
8930 region calling vector-partitionable routine, set default_vector_length
8933 2019-01-12 Tom de Vries <tdevries@suse.de>
8935 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
8936 variable default_vector_length.
8938 2019-01-12 Tom de Vries <tdevries@suse.de>
8941 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
8942 from oacc_default_dims, as oacc_validate_dims would do it, and apply
8945 2019-01-12 Tom de Vries <tdevries@suse.de>
8947 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
8948 (nvptx_goacc_validate_dims): Add used parameter.
8949 * doc/tm.texi: Regenerate.
8950 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
8951 argument to call to targetm.goacc.validate_dims.
8952 (default_goacc_validate_dims): Add used
8954 * target.def (validate_dims): Add used parameter in DEFHOOK.
8955 * targhooks.h (default_goacc_validate_dims): Add used parameter.
8957 2019-01-11 Jakub Jelinek <jakub@redhat.com>
8961 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
8963 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
8964 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
8965 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
8966 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
8968 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
8970 PR rtl-optimization/87305
8972 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
8973 for little endian pseudos used as paradoxical subreg.
8975 2019-01-11 Jakub Jelinek <jakub@redhat.com>
8977 PR tree-optimization/88693
8978 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
8979 for STRING_CSTs that don't contain any NUL characters in the first
8980 TREE_STRING_LENGTH bytes.
8982 2019-01-11 Alan Modra <amodra@gmail.com>
8986 * genattrtab.c (min_fn): Don't translate values.
8987 (min_attr_value): Return INT_MAX when the value can't be calculated.
8988 Return minimum among any values that can be calculated.
8989 (max_attr_value): Adjust.
8991 2019-01-11 Jakub Jelinek <jakub@redhat.com>
8993 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
8995 2019-01-11 Steve Ellcey <sellcey@marvell.com>
8997 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
8998 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
8999 (aarch64_return_call_with_max_clobbers): New function.
9000 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
9001 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
9003 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
9004 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
9005 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
9006 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
9007 * cselib.c (cselib_process_insn): Add argument to
9008 targetm.hard_regno_call_part_clobbered call.
9009 * ira-conflicts.c (ira_build_conflicts): Ditto.
9010 * ira-costs.c (ira_tune_allocno_costs): Ditto.
9011 * lra-constraints.c (inherit_reload_reg): Ditto.
9012 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
9013 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
9014 argument. Call targetm.return_call_with_max_clobbers.
9015 Add argument to targetm.hard_regno_call_part_clobbered call.
9016 (calls_have_same_clobbers_p): New function.
9017 (process_bb_lives): Add call_insn and last_call_insn variables.
9018 Pass call_insn to check_pseudos_live_through_calls.
9019 Modify if stmt to check targetm.return_call_with_max_clobbers.
9020 Update setting of flush variable.
9021 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
9023 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
9024 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
9025 targetm.hard_regno_call_part_clobbered call.
9026 * reginfo.c (choose_hard_reg_mode): Ditto.
9027 * regrename.c (check_new_reg_p): Ditto.
9028 * reload.c (find_equiv_reg): Ditto.
9029 * reload1.c (emit_reload_insns): Ditto.
9030 * sched-deps.c (deps_analyze_insn): Ditto.
9031 * sel-sched.c (init_regs_for_mode): Ditto.
9032 (mark_unavailable_hard_regs): Ditto.
9033 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
9034 * target.def (hard_regno_call_part_clobbered): Add insn argument.
9035 (return_call_with_max_clobbers): New target function.
9036 * doc/tm.texi: Regenerate.
9037 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
9038 * hooks.c (hook_bool_uint_mode_false): Change to
9039 hook_bool_insn_uint_mode_false.
9040 * hooks.h (hook_bool_uint_mode_false): Ditto.
9042 2019-01-11 Steve Ellcey <sellcey@marvell.com>
9044 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
9045 (aarch64_remove_extra_call_preserved_regs): New function.
9046 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
9047 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
9048 * doc/tm.texi: Regenerate.
9049 * final.c (get_call_reg_set_usage): Call new hook.
9050 * target.def (remove_extra_call_preserved_regs): New hook.
9051 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
9052 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
9054 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9057 * passes.c (finish_optimization_passes): Call print_combine_total_stats
9058 inside of pass_combine_1 dump rather than pass_profile_1.
9060 2019-01-11 Tom de Vries <tdevries@suse.de>
9062 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
9063 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
9064 (PTX_NUM_PER_WORKER_BARRIERS): Define.
9065 (nvptx_apply_dim_limits): Prevent vector_length 64 and
9068 2019-01-11 Tom de Vries <tdevries@suse.de>
9070 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
9072 2019-01-11 Jan Beulich <jbeulich@suse.com>
9074 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
9075 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
9076 sse2_cvtsi2sd): Add {l}.
9077 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
9080 2019-01-10 Jakub Jelinek <jakub@redhat.com>
9083 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
9085 (*float<floatunssuffix>v2div2sf2): New define_insn.
9086 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
9087 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
9088 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
9089 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
9090 match_operands with "const0_operand" "C".
9092 2019-01-10 Tamar Christina <tamar.christina@arm.com>
9094 * config/aarch64/aarch64-builtins.c
9095 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
9096 (aarch64_init_simd_builtins): ...Here
9098 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
9100 PR rtl-optimization/87305
9102 (setup_live_pseudos_and_spill_after_risky_transforms): Check
9103 allocation for big endian pseudos used as paradoxical subregs and
9104 spill them if it is wrong.
9105 * lra-constraints.c (lra_constraints): Add a comment.
9107 2019-01-10 Richard Biener <rguenther@suse.de>
9109 PR tree-optimization/88792
9110 * tree-ssa-pre.c (get_representative_for): Do not return a
9113 2019-01-10 Jakub Jelinek <jakub@redhat.com>
9117 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
9118 (assign_parm_setup_block): Do the argument slot realignment here
9121 2019-01-10 Stefan Agner <stefan@agner.ch>
9124 * config/arm/arm.c (arm_option_override_internal): Force
9125 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
9127 2019-01-10 Jakub Jelinek <jakub@redhat.com>
9130 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
9133 2019-01-10 Tamar Christina <tamar.christina@arm.com>
9135 * config/arm/arm-builtins.c
9136 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
9137 (MAC_LANE_PAIR_QUALIFIERS): New.
9138 (arm_expand_builtin_args): Use it.
9139 (arm_expand_builtin_1): Likewise.
9140 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
9141 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
9142 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
9143 * config/arm/arm_neon.h:
9144 (vcadd_rot90_f16): New.
9145 (vcaddq_rot90_f16): New.
9146 (vcadd_rot270_f16): New.
9147 (vcaddq_rot270_f16): New.
9150 (vcmla_lane_f16): New.
9151 (vcmla_laneq_f16): New.
9152 (vcmlaq_lane_f16): New.
9153 (vcmlaq_laneq_f16): New.
9154 (vcmla_rot90_f16): New.
9155 (vcmlaq_rot90_f16): New.
9156 (vcmla_rot90_lane_f16): New.
9157 (vcmla_rot90_laneq_f16): New.
9158 (vcmlaq_rot90_lane_f16): New.
9159 (vcmlaq_rot90_laneq_f16): New.
9160 (vcmla_rot180_f16): New.
9161 (vcmlaq_rot180_f16): New.
9162 (vcmla_rot180_lane_f16): New.
9163 (vcmla_rot180_laneq_f16): New.
9164 (vcmlaq_rot180_lane_f16): New.
9165 (vcmlaq_rot180_laneq_f16): New.
9166 (vcmla_rot270_f16): New.
9167 (vcmlaq_rot270_f16): New.
9168 (vcmla_rot270_lane_f16): New.
9169 (vcmla_rot270_laneq_f16): New.
9170 (vcmlaq_rot270_lane_f16): New.
9171 (vcmlaq_rot270_laneq_f16): New.
9172 (vcadd_rot90_f32): New.
9173 (vcaddq_rot90_f32): New.
9174 (vcadd_rot270_f32): New.
9175 (vcaddq_rot270_f32): New.
9178 (vcmla_lane_f32): New.
9179 (vcmla_laneq_f32): New.
9180 (vcmlaq_lane_f32): New.
9181 (vcmlaq_laneq_f32): New.
9182 (vcmla_rot90_f32): New.
9183 (vcmlaq_rot90_f32): New.
9184 (vcmla_rot90_lane_f32): New.
9185 (vcmla_rot90_laneq_f32): New.
9186 (vcmlaq_rot90_lane_f32): New.
9187 (vcmlaq_rot90_laneq_f32): New.
9188 (vcmla_rot180_f32): New.
9189 (vcmlaq_rot180_f32): New.
9190 (vcmla_rot180_lane_f32): New.
9191 (vcmla_rot180_laneq_f32): New.
9192 (vcmlaq_rot180_lane_f32): New.
9193 (vcmlaq_rot180_laneq_f32): New.
9194 (vcmla_rot270_f32): New.
9195 (vcmlaq_rot270_f32): New.
9196 (vcmla_rot270_lane_f32): New.
9197 (vcmla_rot270_laneq_f32): New.
9198 (vcmlaq_rot270_lane_f32): New.
9199 (vcmlaq_rot270_laneq_f32): New.
9200 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
9201 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
9202 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
9203 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
9204 vcmlaq_lane270): New.
9205 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
9206 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
9207 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
9208 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
9209 (arm_option_reconfigure_globals): Use them.
9210 * config/arm/iterators.md (VDF, VQ_HSF): New.
9211 (VCADD, VCMLA): New.
9212 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
9213 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
9215 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
9216 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
9218 2019-01-10 Tamar Christina <tamar.christina@arm.com>
9220 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
9221 Add qualifier_lane_pair_index.
9222 (emit-rtl.h): Include.
9223 (TYPES_QUADOP_LANE_PAIR): New.
9224 (aarch64_simd_expand_args): Use it.
9225 (aarch64_simd_expand_builtin): Likewise.
9226 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
9228 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
9229 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
9230 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
9231 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
9232 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
9233 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
9234 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
9235 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
9236 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
9237 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
9238 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
9239 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
9240 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
9241 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
9242 Add __ARM_FEATURE_COMPLEX.
9243 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
9244 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
9245 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
9246 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
9247 fcmlaq_lane270): New.
9248 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
9249 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
9250 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
9251 * config/aarch64/arm_neon.h:
9252 (vcadd_rot90_f16): New.
9253 (vcaddq_rot90_f16): New.
9254 (vcadd_rot270_f16): New.
9255 (vcaddq_rot270_f16): New.
9258 (vcmla_lane_f16): New.
9259 (vcmla_laneq_f16): New.
9260 (vcmlaq_lane_f16): New.
9261 (vcmlaq_rot90_lane_f16): New.
9262 (vcmla_rot90_laneq_f16): New.
9263 (vcmla_rot90_lane_f16): New.
9264 (vcmlaq_rot90_f16): New.
9265 (vcmla_rot90_f16): New.
9266 (vcmlaq_laneq_f16): New.
9267 (vcmla_rot180_laneq_f16): New.
9268 (vcmla_rot180_lane_f16): New.
9269 (vcmlaq_rot180_f16): New.
9270 (vcmla_rot180_f16): New.
9271 (vcmlaq_rot90_laneq_f16): New.
9272 (vcmlaq_rot270_laneq_f16): New.
9273 (vcmlaq_rot270_lane_f16): New.
9274 (vcmla_rot270_laneq_f16): New.
9275 (vcmlaq_rot270_f16): New.
9276 (vcmla_rot270_f16): New.
9277 (vcmlaq_rot180_laneq_f16): New.
9278 (vcmlaq_rot180_lane_f16): New.
9279 (vcmla_rot270_lane_f16): New.
9280 (vcadd_rot90_f32): New.
9281 (vcaddq_rot90_f32): New.
9282 (vcaddq_rot90_f64): New.
9283 (vcadd_rot270_f32): New.
9284 (vcaddq_rot270_f32): New.
9285 (vcaddq_rot270_f64): New.
9289 (vcmla_lane_f32): New.
9290 (vcmla_laneq_f32): New.
9291 (vcmlaq_lane_f32): New.
9292 (vcmlaq_laneq_f32): New.
9293 (vcmla_rot90_f32): New.
9294 (vcmlaq_rot90_f32): New.
9295 (vcmlaq_rot90_f64): New.
9296 (vcmla_rot90_lane_f32): New.
9297 (vcmla_rot90_laneq_f32): New.
9298 (vcmlaq_rot90_lane_f32): New.
9299 (vcmlaq_rot90_laneq_f32): New.
9300 (vcmla_rot180_f32): New.
9301 (vcmlaq_rot180_f32): New.
9302 (vcmlaq_rot180_f64): New.
9303 (vcmla_rot180_lane_f32): New.
9304 (vcmla_rot180_laneq_f32): New.
9305 (vcmlaq_rot180_lane_f32): New.
9306 (vcmlaq_rot180_laneq_f32): New.
9307 (vcmla_rot270_f32): New.
9308 (vcmlaq_rot270_f32): New.
9309 (vcmlaq_rot270_f64): New.
9310 (vcmla_rot270_lane_f32): New.
9311 (vcmla_rot270_laneq_f32): New.
9312 (vcmlaq_rot270_lane_f32): New.
9313 (vcmlaq_rot270_laneq_f32): New.
9314 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
9315 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
9316 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
9317 (FCADD, FCMLA): New.
9319 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
9321 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
9325 * config/pa/pa.c: Change "can not" to "cannot".
9326 * gimple-ssa-evrp-analyze.c: Likewise.
9327 * ipa-icf.c: Likewise.
9328 * ipa-polymorphic-call.c: Likewise.
9329 * ipa-pure-const.c: Likewise.
9330 * lra-constraints.c: Likewise.
9331 * lra-remat.c: Likewise.
9332 * reload1.c: Likewise.
9333 * reorg.c: Likewise.
9334 * tree-ssa-uninit.c: Likewise.
9336 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
9340 * Makefile.in: Mechanically replace "can not" with "cannot".
9341 * alias.c: Likewise.
9342 * builtins.c: Likewise.
9343 * calls.c: Likewise.
9344 * cgraph.c: Likewise.
9345 * cgraph.h: Likewise.
9346 * cgraphclones.c: Likewise.
9347 * cgraphunit.c: Likewise.
9348 * combine-stack-adj.c: Likewise.
9349 * combine.c: Likewise.
9350 * common/config/i386/i386-common.c: Likewise.
9351 * config/aarch64/aarch64.c: Likewise.
9352 * config/alpha/sync.md: Likewise.
9353 * config/arc/arc.c: Likewise.
9354 * config/arc/predicates.md: Likewise.
9355 * config/arm/arm-c.c: Likewise.
9356 * config/arm/arm.c: Likewise.
9357 * config/arm/arm.h: Likewise.
9358 * config/arm/arm.md: Likewise.
9359 * config/arm/cortex-r4f.md: Likewise.
9360 * config/csky/csky.c: Likewise.
9361 * config/csky/csky.h: Likewise.
9362 * config/darwin-f.c: Likewise.
9363 * config/epiphany/epiphany.md: Likewise.
9364 * config/i386/i386.c: Likewise.
9365 * config/i386/sol2.h: Likewise.
9366 * config/m68k/m68k.c: Likewise.
9367 * config/mcore/mcore.h: Likewise.
9368 * config/microblaze/microblaze.md: Likewise.
9369 * config/mips/20kc.md: Likewise.
9370 * config/mips/sb1.md: Likewise.
9371 * config/nds32/nds32.c: Likewise.
9372 * config/nds32/predicates.md: Likewise.
9373 * config/pa/pa.c: Likewise.
9374 * config/rs6000/e300c2c3.md: Likewise.
9375 * config/rs6000/rs6000.c: Likewise.
9376 * config/s390/s390.h: Likewise.
9377 * config/sh/sh.c: Likewise.
9378 * config/sh/sh.md: Likewise.
9379 * config/spu/vmx2spu.h: Likewise.
9380 * cprop.c: Likewise.
9381 * dbxout.c: Likewise.
9382 * df-scan.c: Likewise.
9383 * doc/cfg.texi: Likewise.
9384 * doc/extend.texi: Likewise.
9385 * doc/fragments.texi: Likewise.
9386 * doc/gty.texi: Likewise.
9387 * doc/invoke.texi: Likewise.
9388 * doc/lto.texi: Likewise.
9389 * doc/md.texi: Likewise.
9390 * doc/objc.texi: Likewise.
9391 * doc/rtl.texi: Likewise.
9392 * doc/tm.texi: Likewise.
9394 * emit-rtl.c: Likewise.
9395 * emit-rtl.h: Likewise.
9396 * except.c: Likewise.
9397 * expmed.c: Likewise.
9399 * fold-const.c: Likewise.
9400 * genautomata.c: Likewise.
9401 * gimple-fold.c: Likewise.
9402 * hard-reg-set.h: Likewise.
9403 * ifcvt.c: Likewise.
9404 * ipa-comdats.c: Likewise.
9405 * ipa-cp.c: Likewise.
9406 * ipa-devirt.c: Likewise.
9407 * ipa-fnsummary.c: Likewise.
9408 * ipa-icf.c: Likewise.
9409 * ipa-inline-transform.c: Likewise.
9410 * ipa-inline.c: Likewise.
9411 * ipa-polymorphic-call.c: Likewise.
9412 * ipa-profile.c: Likewise.
9413 * ipa-prop.c: Likewise.
9414 * ipa-pure-const.c: Likewise.
9415 * ipa-reference.c: Likewise.
9416 * ipa-split.c: Likewise.
9417 * ipa-visibility.c: Likewise.
9419 * ira-build.c: Likewise.
9420 * ira-color.c: Likewise.
9421 * ira-conflicts.c: Likewise.
9422 * ira-costs.c: Likewise.
9423 * ira-int.h: Likewise.
9424 * ira-lives.c: Likewise.
9427 * loop-invariant.c: Likewise.
9428 * loop-unroll.c: Likewise.
9429 * lower-subreg.c: Likewise.
9430 * lra-assigns.c: Likewise.
9431 * lra-constraints.c: Likewise.
9432 * lra-eliminations.c: Likewise.
9433 * lra-lives.c: Likewise.
9434 * lra-remat.c: Likewise.
9435 * lra-spills.c: Likewise.
9437 * lto-cgraph.c: Likewise.
9438 * lto-streamer-out.c: Likewise.
9439 * postreload-gcse.c: Likewise.
9440 * predict.c: Likewise.
9441 * profile-count.h: Likewise.
9442 * profile.c: Likewise.
9443 * recog.c: Likewise.
9445 * reload.c: Likewise.
9446 * reload1.c: Likewise.
9447 * reorg.c: Likewise.
9448 * resource.c: Likewise.
9449 * rtl.def: Likewise.
9451 * rtlanal.c: Likewise.
9452 * sched-deps.c: Likewise.
9453 * sched-ebb.c: Likewise.
9454 * sched-rgn.c: Likewise.
9455 * sel-sched-ir.c: Likewise.
9456 * sel-sched.c: Likewise.
9457 * shrink-wrap.c: Likewise.
9458 * simplify-rtx.c: Likewise.
9459 * symtab.c: Likewise.
9460 * target.def: Likewise.
9461 * toplev.c: Likewise.
9462 * tree-call-cdce.c: Likewise.
9463 * tree-cfg.c: Likewise.
9464 * tree-complex.c: Likewise.
9465 * tree-core.h: Likewise.
9466 * tree-eh.c: Likewise.
9467 * tree-inline.c: Likewise.
9468 * tree-loop-distribution.c: Likewise.
9469 * tree-nrv.c: Likewise.
9470 * tree-profile.c: Likewise.
9471 * tree-sra.c: Likewise.
9472 * tree-ssa-alias.c: Likewise.
9473 * tree-ssa-dce.c: Likewise.
9474 * tree-ssa-dom.c: Likewise.
9475 * tree-ssa-forwprop.c: Likewise.
9476 * tree-ssa-loop-im.c: Likewise.
9477 * tree-ssa-loop-ivcanon.c: Likewise.
9478 * tree-ssa-loop-ivopts.c: Likewise.
9479 * tree-ssa-loop-niter.c: Likewise.
9480 * tree-ssa-phionlycprop.c: Likewise.
9481 * tree-ssa-phiopt.c: Likewise.
9482 * tree-ssa-propagate.c: Likewise.
9483 * tree-ssa-threadedge.c: Likewise.
9484 * tree-ssa-threadupdate.c: Likewise.
9485 * tree-ssa-uninit.c: Likewise.
9486 * tree-ssanames.c: Likewise.
9487 * tree-streamer-out.c: Likewise.
9490 * vr-values.c: Likewise.
9492 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
9494 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
9495 (ix86_split_xorsign): Ditto.
9496 * config/i386/i386.c (ix86_expand_xorsign): New function.
9497 (ix86_split_xorsign): Ditto.
9498 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
9499 (xorsign<mode>3): New expander.
9500 (xorsign<mode>3_1): New insn_and_split pattern.
9501 * config/i386/sse.md (xorsign<mode>3): New expander.
9503 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
9505 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
9506 (*tablejump_sp64): Likewise.
9507 (*tablejump<P:mode>): ...this.
9508 (*call_address_sp32): Merge into...
9509 (*call_address_sp64): Likewise.
9510 (*call_address<P:mode>): ...this.
9511 (*call_symbolic_sp32): Merge into...
9512 (*call_symbolic_sp64): Likewise.
9513 (*call_symbolic<P:mode>): ...this.
9514 (call_value): Remove constraint and add predicate.
9515 (*call_value_address_sp32): Merge into...
9516 (*call_value_address_sp64): Likewise.
9517 (*call_value_address<P:mode>): ...this.
9518 (*call_value_symbolic_sp32): Merge into...
9519 (*call_value_symbolic_sp64): Likewise.
9520 (*call_value_symbolic<P:mode>): ...this.
9521 (*sibcall_symbolic_sp32): Merge into...
9522 (*sibcall_symbolic_sp64): Likewise.
9523 (*sibcall_symbolic<P:mode>): ...this.
9524 (sibcall_value): Remove constraint and add predicate.
9525 (*sibcall_value_symbolic_sp32): Merge into...
9526 (*sibcall_value_symbolic_sp64): Likewise.
9527 (*sibcall_value_symbolic<P:mode>): ...this.
9528 (window_save): Minor tweak.
9529 (*branch_sp32): Merge into...
9530 (*branch_sp64): Likewise.
9531 (*branch<P:mode>): ...this.
9533 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
9534 James Clarke <jrtc27@jrtc27.com>
9537 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
9538 consistently in TLS address generation and adjust code to the renaming
9539 of patterns. Mark calls to __tls_get_addr as const.
9540 * config/sparc/sparc.md (tgd_hi22): Turn into...
9541 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
9542 (tgd_lo10): Turn into...
9543 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
9544 (tgd_add32): Merge into...
9545 (tgd_add64): Likewise.
9546 (tgd_add<P:mode>): ...this and use Pmode throughout.
9547 (tldm_hi22): Turn into...
9548 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
9549 (tldm_lo10): Turn into...
9550 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
9551 (tldm_add32): Merge into...
9552 (tldm_add64): Likewise.
9553 (tldm_add<P:mode>): ...this and use Pmode throughout.
9554 (tldm_call32): Merge into...
9555 (tldm_call64): Likewise.
9556 (tldm_call<P:mode>): ...this and use Pmode throughout.
9557 (tldo_hix22): Turn into...
9558 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
9559 (tldo_lox10): Turn into...
9560 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
9561 (tldo_add32): Merge into...
9562 (tldo_add64): Likewise.
9563 (tldo_add<P:mode>): ...this and use Pmode throughout.
9564 (tie_hi22): Turn into...
9565 (tie_hi22<P:mode>): ...this and use Pmode throughout.
9566 (tie_lo10): Turn into...
9567 (tie_lo10<P:mode>): ...this and use Pmode throughout.
9568 (tie_ld64): Use DImode throughout.
9569 (tie_add32): Merge into...
9570 (tie_add64): Likewise.
9571 (tie_add<P:mode>): ...this and use Pmode throughout.
9572 (tle_hix22_sp32): Merge into...
9573 (tle_hix22_sp64): Likewise.
9574 (tle_hix22<P:mode>): ...this and use Pmode throughout.
9575 (tle_lox22_sp32): Merge into...
9576 (tle_lox22_sp64): Likewise.
9577 (tle_lox22<P:mode>): ...this and use Pmode throughout.
9578 (*tldo_ldub_sp32): Merge into...
9579 (*tldo_ldub_sp64): Likewise.
9580 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
9581 (*tldo_ldub1_sp32): Merge into...
9582 (*tldo_ldub1_sp64): Likewise.
9583 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
9584 (*tldo_ldub2_sp32): Merge into...
9585 (*tldo_ldub2_sp64): Likewise.
9586 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
9587 (*tldo_ldsb1_sp32): Merge into...
9588 (*tldo_ldsb1_sp64): Likewise.
9589 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
9590 (*tldo_ldsb2_sp32): Merge into...
9591 (*tldo_ldsb2_sp64): Likewise.
9592 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
9593 (*tldo_ldub3_sp64): Use DImode throughout.
9594 (*tldo_ldsb3_sp64): Likewise.
9595 (*tldo_lduh_sp32): Merge into...
9596 (*tldo_lduh_sp64): Likewise.
9597 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
9598 (*tldo_lduh1_sp32): Merge into...
9599 (*tldo_lduh1_sp64): Likewise.
9600 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
9601 (*tldo_ldsh1_sp32): Merge into...
9602 (*tldo_ldsh1_sp64): Likewise.
9603 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
9604 (*tldo_lduh2_sp64): Use DImode throughout.
9605 (*tldo_ldsh2_sp64): Likewise.
9606 (*tldo_lduw_sp32): Merge into...
9607 (*tldo_lduw_sp64): Likewise.
9608 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
9609 (*tldo_lduw1_sp64): Use DImode throughout.
9610 (*tldo_ldsw1_sp64): Likewise.
9611 (*tldo_ldx_sp64): Likewise.
9612 (*tldo_stb_sp32): Merge into...
9613 (*tldo_stb_sp64): Likewise.
9614 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
9615 (*tldo_sth_sp32): Merge into...
9616 (*tldo_sth_sp64): Likewise.
9617 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
9618 (*tldo_stw_sp32): Merge into...
9619 (*tldo_stw_sp64): Likewise.
9620 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
9621 (*tldo_stx_sp64): Use DImode throughout.
9623 2018-01-09 Sudakshina Das <sudi.das@arm.com>
9625 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
9626 check configure option to set BTI and Return Address Signing.
9627 * configure.ac: Add --enable-standard-branch-protection and
9628 --disable-standard-branch-protection.
9629 * configure: Regenerated.
9630 * doc/install.texi: Document the same.
9632 2018-01-09 Sudakshina Das <sudi.das@arm.com>
9633 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9635 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
9636 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
9637 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
9639 * config/aarch64/aarch64-bti-insert.c: New file.
9640 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
9642 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
9644 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
9645 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
9646 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
9647 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
9649 2018-01-09 Sudakshina Das <sudi.das@arm.com>
9651 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
9652 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
9653 Disable bti for -mbranch-protection=none.
9654 (aarch64_handle_standard_branch_protection): Enable bti for
9655 -mbranch-protection=standard.
9656 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
9657 -mbranch-protection.
9658 (aarch64_bti_enabled): Check if bti is enabled.
9659 * config/aarch64/aarch64.opt: Declare target variable.
9660 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
9662 2018-01-09 Sudakshina Das <sudi.das@arm.com>
9664 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
9665 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
9666 (aarch64_expand_epilogue): Likewise.
9667 (aarch64_output_mi_thunk): Likewise
9668 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
9669 TAILCALL_ADDR_REGS to x16 and x17.
9670 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
9672 2018-01-09 Sudakshina Das <sudi.das@arm.com>
9674 * config/aarch64/aarch64-option-extensions.def: Define
9675 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
9676 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
9677 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
9678 (AARCH64_FL_PREDRES): New.
9679 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
9680 AARCH64_FL_PREDRES by default.
9681 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
9683 2018-01-09 Sudakshina Das <sudi.das@arm.com>
9685 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
9687 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
9688 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
9689 * doc/invoke.texi: Document ARMv8.5-A.
9691 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9693 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
9694 (xorsign<mode>3): Likewise.
9696 2019-01-09 Jelinek <jakub@redhat.com>
9699 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
9700 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
9702 PR rtl-optimization/88331
9703 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
9704 not currently_expanding_to_rtl.
9706 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
9708 * doc/invoke.texi (-Os): Remove trailing spaces.
9709 (-finline-functions): Remove reference to -O2.
9711 2019-01-08 Jakub Jelinek <jakub@redhat.com>
9713 PR rtl-optimization/79593
9714 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
9716 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
9717 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
9719 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
9722 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
9726 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
9727 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
9729 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
9732 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
9733 ix86_avx_u128_mode_entry.
9735 2019-01-08 Martin Liska <mliska@suse.cz>
9737 PR tree-optimization/88753
9738 * tree-switch-conversion.c (switch_conversion::build_one_array):
9739 Come up with local variable constructor. Convert first to
9740 type of constructor values.
9742 2019-01-08 Richard Biener <rguenther@suse.de>
9744 PR tree-optimization/86554
9745 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
9746 rpo_avail): Move earlier.
9747 (visit_nary_op): When value-numbering to expressions
9748 with different overflow behavior make sure there's an
9749 available expression on the path.
9751 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
9753 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
9754 aarch64_parse_branch_protection,
9755 struct aarch64_branch_protect_type,
9756 aarch64_handle_no_branch_protection,
9757 aarch64_handle_standard_branch_protection,
9758 aarch64_validate_mbranch_protection,
9759 aarch64_handle_pac_ret_protection,
9760 aarch64_handle_attr_branch_protection,
9761 accepted_branch_protection_string,
9762 aarch64_pac_ret_subtypes,
9763 aarch64_branch_protect_types,
9764 aarch64_handle_pac_ret_leaf): Define.
9765 (aarch64_override_options_after_change_1, aarch64_override_options):
9766 Add check for accepted_branch_protection_string.
9767 (aarch64_option_save): Save accepted_branch_protection_string.
9768 (aarch64_option_restore): Save accepted_branch_protection_string.
9769 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
9770 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
9771 msign-return-address.
9772 * doc/invoke.texi: Add mbranch-protection.
9774 2019-01-08 Alan Modra <amodra@gmail.com>
9777 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
9778 Delete "unknownp" parameter. Adjust callers. Handle
9779 CONST_INT, PLUS, MINUS, and MULT.
9780 (attr_value_aligned): Renamed from or_attr_value.
9781 (min_attr_value): Return INT_MIN for unhandled rtl case..
9782 (min_fn): ..and translate to INT_MAX here.
9783 (write_length_unit_log): Modify to cope without "unknown".
9784 (write_attr_value): Handle IF_THEN_ELSE.
9786 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
9788 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
9789 optimization for masked stores.
9791 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
9794 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
9795 output vector directly to duplicate_and_interleave instead of
9796 going through a temporary. Postpone insertion of ctor_seq to
9797 the end of the loop.
9799 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
9802 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
9803 unsigned_p. Handle signed and unsigned overflow correction as
9805 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
9807 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
9809 (add<mode>3_compareV_imm): Make this callable for expanding.
9810 (subv<GPI:mode>4): Use register_operand for operand 1. Use
9811 aarch64_plus_operand for operand 2.
9812 (subv<GPI:mode>_insn): New insn pattern.
9813 (subv<GPI:mode>_imm): Likewise.
9814 (negv<GPI:mode>3): New expand pattern.
9815 (negv<GPI:mode>_insn): New insn pattern.
9816 (negv<GPI:mode>_cmp_only): Likewise.
9817 (cmpv<GPI:mode>_insn): Likewise.
9818 (subvti4): Use register_operand for operand 1. Update call to
9819 aarch64_expand_subvti.
9820 (usubvti4): Likewise.
9821 (negvti3): New expand pattern.
9822 (negdi_carryout): New insn pattern.
9823 (negvdi_carryinV): New insn pattern.
9824 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
9825 version the named version.
9826 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
9828 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
9830 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
9832 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
9833 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
9834 (sub<mode>3_carryinCV): Delete.
9835 (sub<GPI:mode>3_carryinV): New expand pattern.
9836 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
9838 2019-01-07 Richard Biener <rguenther@suse.de>
9840 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
9841 of tree_operand_hash.
9843 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
9845 PR tree-optimization/88598
9846 * tree.h (single_nonzero_element): Declare.
9847 * tree.c (single_nonzero_element): New function.
9848 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
9849 if I is the only nonzero element of CST.
9851 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
9853 PR tree-optimization/88598
9854 * tree.h (initializer_each_zero_or_onep): Declare.
9855 * tree.c (initializer_each_zero_or_onep): New function.
9856 (signed_or_unsigned_type_for): Handle float types too.
9857 (unsigned_type_for, signed_type_for): Update comments accordingly.
9858 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
9859 x & { 0 or -1, 0 or -1, ... }.
9861 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
9863 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
9864 with x86_64-pc-linux-gnu.
9866 2019-01-07 Tom de Vries <tdevries@suse.de>
9869 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
9871 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
9874 2019-01-07 Jakub Jelinek <jakub@redhat.com>
9876 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
9877 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
9878 TARGET_AVX512F as condition.
9881 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
9882 const_not_ok_for_debug_p target hook.
9883 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
9884 on UNSPEC and subexpressions thereof if all subexpressions of the
9885 UNSPEC are CONSTANT_P.
9887 PR tree-optimization/88676
9888 * tree-ssa-phiopt.c (two_value_replacement): New function.
9889 (tree_ssa_phiopt_worker): Call it.
9892 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
9893 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
9896 * tree-vect-generic.c: Include insn-config.h and recog.h.
9897 (expand_vector_piecewise): Add defaulted ret_type argument,
9898 if non-NULL, use that in preference to type for the result type.
9899 (expand_vector_parallel): Formatting fix.
9900 (do_vec_conversion, do_vec_narrowing_conversion,
9901 expand_vector_conversion): New functions.
9902 (expand_vector_operations_1): Call expand_vector_conversion
9903 for VEC_CONVERT ifn calls.
9904 * internal-fn.def (VEC_CONVERT): New internal function.
9905 * internal-fn.c (expand_VEC_CONVERT): New function.
9906 * fold-const-call.c (fold_const_vec_convert): New function.
9907 (fold_const_call): Use it for CFN_VEC_CONVERT.
9908 * doc/extend.texi (__builtin_convertvector): Document.
9910 2019-01-07 Tom de Vries <tdevries@suse.de>
9912 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
9913 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
9914 vector_red_partition, vector_red_sym): New global variables.
9915 (nvptx_option_override): Initialize vector_red_sym.
9916 (nvptx_declare_function_name): Restore red_partition register.
9917 (nvptx_file_end): Emit code to declare the vector reduction variables.
9918 (nvptx_output_red_partition): New function.
9919 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
9920 large vector reductions.
9921 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
9922 (nvptx_init_builtins): Add VECTOR_ADDR.
9923 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
9924 Handle nvptx_expand_shared_addr.
9925 (nvptx_get_shared_red_addr): Add vector argument and handle large
9927 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
9929 (nvptx_goacc_reduction_init): Likewise.
9930 (nvptx_goacc_reduction_fini): Likewise.
9931 (nvptx_goacc_reduction_teardown): Likewise.
9932 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
9933 init,fini,teardown}.
9934 (nvptx_init_axis_predicate): Initialize vector_red_partition.
9935 (nvptx_set_current_function): Init vector_red_partition.
9936 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
9937 (nvptx_red_partition): New insn.
9938 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
9940 2019-01-07 Tom de Vries <tdevries@suse.de>
9943 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
9946 2019-01-07 Tom de Vries <tdevries@suse.de>
9948 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
9949 (nvptx_option_override): Init oacc_bcast_partition.
9950 (nvptx_init_oacc_workers): New function.
9951 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
9952 (nvptx_needs_shared_bcast): New function.
9953 (nvptx_find_par): Generalize to enable vectors to use shared-memory
9955 (nvptx_shared_propagate): Initialize vector bcast partition and
9956 synchronization state.
9957 (nvptx_single): Generalize to enable vectors to use shared-memory
9959 (nvptx_process_pars): Likewise.
9960 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
9961 * config/nvptx/nvptx.h (struct machine_function): Add
9962 bcast_partition and sync_bar members.
9964 2019-01-07 Tom de Vries <tdevries@suse.de>
9966 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
9967 (nvptx_apply_dim_limits): New function.
9968 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
9971 2019-01-07 Tom de Vries <tdevries@suse.de>
9973 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
9974 as late as possible.
9976 2019-01-07 Tom de Vries <tdevries@suse.de>
9978 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
9979 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
9980 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
9981 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
9982 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
9984 2019-01-07 Tom de Vries <tdevries@suse.de>
9986 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
9988 2019-01-07 Tom de Vries <tdevries@suse.de>
9990 * omp-offload.c (oacc_get_min_dim): New function.
9991 * omp-offload.h (oacc_get_min_dim): Declare.
9993 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
9996 * config/i386/i386.c (function_value_ms_64): Return small sturct in
9997 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
9999 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10003 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
10005 * ipa-inline.c (edge_badness): Use inlined_time instead of
10006 inline_summaries->get.
10008 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10010 * opts.c (enable_fdo_optimizations): Enable
10011 version-loops-for-strides, loop-interchange, unrol-and-jam
10012 and tree-loop-distribution.
10013 * invoke.texi: Document newly enabled options.
10015 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10017 * doc/invoke.texi (max-inline-insns-small): New parameters.
10018 * ipa-inline.c (want_early_inline_function_p): simplify.
10019 (want_inline_small_function_p): Fix pasto from previous patch;
10020 use max-inline-insns-small bound.
10021 * params.def (max-inline-insns-small): New param.
10022 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
10023 variables correctly.
10025 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10027 * doc/invoke.texi: Document max-inline-insns-size,
10028 uninlined-function-insns, uninlined-function-time,
10029 uninlined-thunk-insns and uninlined-thunk-time.
10030 * params.def: Add max-inline-insns-size,
10031 uninlined-function-insns, uninlined-function-time,
10032 uninlined-thunk-insns and uninlined-thunk-time.
10033 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
10035 * ipa-inline.c (can_inline_edge_by_limits_p,
10036 want_inline_small_function_p): Use new parameters.
10038 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10040 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
10042 2019-01-05 Jakub Jelinek <jakub@redhat.com>
10044 PR middle-end/82564
10046 * expr.c (expand_assignment): For calls returning VLA structures
10047 if to_rtx is not a MEM, force it into a stack temporary.
10050 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
10051 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
10052 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
10053 subexpressions of both operands.
10054 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
10055 subrtxes are CONSTANT_P.
10056 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
10057 2018-11-09 changes.
10059 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
10061 * params.def (hot-bb-count-ws-permille): Set to 990.
10063 2019-01-04 Martin Sebor <msebor@redhat.com>
10066 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
10069 2019-01-04 Martin Sebor <msebor@redhat.com>
10072 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
10074 2019-01-04 Jakub Jelinek <jakub@redhat.com>
10076 * gdbinit.in: Turn off pagination for the skip commands, restore
10077 it to previous state afterwards.
10079 2019-01-04 Jakub Jelinek <jakub@redhat.com>
10082 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
10083 of GET_MODE (opN) as modes of the libcall arguments.
10085 2019-01-04 Jan Beulich <jbeulich@suse.com>
10087 * config/i386/sse.md
10088 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
10089 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
10090 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
10091 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
10092 avx512f_vmcmp<mode>3<round_saeonly_name>,
10093 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
10094 avx512f_maskcmp<mode>3,
10095 <avx512>_cvt<ssemodesuffix>2mask<mode>,
10096 <avx512>_cvt<ssemodesuffix>2mask<mode>,
10097 *<avx512>_cvtmask2<ssemodesuffix><mode>,
10098 *<avx512>_cvtmask2<ssemodesuffix><mode>,
10099 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
10100 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
10101 <avx512>_gt<mode>3<mask_scalar_merge_name>,
10102 <avx512>_gt<mode>3<mask_scalar_merge_name>,
10103 <avx512>_testm<mode>3<mask_scalar_merge_name>,
10104 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
10105 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
10106 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
10107 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
10108 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
10109 avx512cd_maskb_vec_dup<mode>,
10110 avx512cd_maskw_vec_dup<mode>,
10111 avx512dq_fpclass<mode><mask_scalar_merge_name>,
10112 avx512dq_vmfpclass<mode>,
10113 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
10116 2019-01-03 Martin Sebor <msebor@redhat.com>
10118 PR tree-optimization/88659
10119 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
10121 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
10123 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
10124 unaligned vsx and avoid lxvd2x/stxvd2x.
10125 (gen_lvx_v4si_move): New function.
10127 2019-01-03 Tom de Vries <tdevries@suse.de>
10129 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
10130 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
10132 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
10134 2019-01-03 Tom de Vries <tdevries@suse.de>
10136 * config/nvptx/nvptx.c (struct offload_attrs): New.
10137 (populate_offload_attrs): New function. Factor mask extraction out of
10138 nvptx_reorg. Add extraction of dimensions.
10139 (nvptx_reorg): Use populate_offload_attrs.
10141 2019-01-03 Tom de Vries <tdevries@suse.de>
10143 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
10144 cases for oacc_min_dims_p and routine_p. Add asserts for
10145 oacc_default_dims_p and offload_region_p.
10147 2019-01-03 Tom de Vries <tdevries@suse.de>
10149 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
10150 factored out of ...
10151 (nvptx_goacc_validate_dims): ... here.
10153 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
10155 PR tree-optimization/85574
10156 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
10158 (struct ssa_equip_hash_traits): Declare.
10159 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
10161 2019-01-03 Jakub Jelinek <jakub@redhat.com>
10164 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
10165 change it to qualified_type.
10167 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
10169 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
10170 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
10172 2019-01-02 Martin Sebor <msebor@redhat.com>
10173 Jeff Law <law@redhat.com>
10175 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
10176 (get_range_strlen_tree): Update appropriately.
10178 * gimple-fold.h (get_range_strlen): Drop unused last argument.
10180 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
10181 rather than set_range_info.
10182 * tree-ssa-strlen.c (set_strlen_range): Extracted from
10183 maybe_set_strlen_range. Handle potentially boundary crossing
10184 cases more conservatively.
10185 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
10186 Call set_strlen_range.
10187 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
10189 PR middle-end/88663
10190 * gimple-fold.c (get_range_strlen): Update prototype to no longer
10191 need the flexp argument.
10192 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
10193 from calls to get_range_strlen. Update comments. Just update
10194 VAL for an unterminated const char array and let the reset of the
10195 code handle it normally. No longer try to set *flexp. Adjust
10197 (get_range_strlen): Update for the new get_range_strlen API.
10198 (get_maxval_strlen): Similarly.
10199 (gimple_fold_builtin_strlen): Handle update meaning of return value
10200 from get_range_strlen.
10201 * gimple-ssa-sprintf.c (get_string_length): Update for the new
10202 get_range_strlen API.
10204 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
10207 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
10208 false at WPA time when body was removed.
10210 2019-01-02 Martin Liska <mliska@suse.cz>
10212 PR tree-optimization/88650
10213 * predict.c (set_even_probabilities): Calculate probability
10214 remainer only when really used.
10216 2019-01-02 Richard Biener <rguenther@suse.de>
10218 PR middle-end/88651
10219 * tree-data-ref.c (analyze_subscript_affine_affine): Use
10220 widest_ints when mangling max_stmt_execution results.
10222 2019-01-02 Richard Biener <rguenther@suse.de>
10224 PR tree-optimization/88621
10225 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
10226 bitfields when canoncalizing.
10228 2019-01-02 Richard Biener <rguenther@suse.de>
10231 * config/i386/x86-tune-costs.h (intel_cost): Adjust
10232 cost of cheap SSE instruction.
10234 2019-01-02 Richard Biener <rguenther@suse.de>
10237 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
10238 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
10240 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
10241 set after UIDs before splitting them.
10243 2019-01-01 Martin Sebor <msebor@redhat.com>
10244 Jeff Law <law@redhat.com>
10246 * gimple-fold.c (get_range_strlen_tree): Record if the computed
10247 length is optimistic. If it is, then arrange to compute the
10248 conservative length as well.
10250 * gimple-fold.h (get_range_strlen): Update prototype.
10251 * builtins.c (check_access): Update call to get_range_strlen to use
10252 c_strlen_data pointer. Change various variable accesses to instead
10253 pull data from the c_strlen_data structure.
10254 (check_strncat_sizes, expand_builtin_strncat): Likewise.
10255 * calls.c (maybe_warn_nonstring_arg): Likewise.
10256 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
10257 minimum length if maximum lengh is unknown.
10258 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
10259 that used c_strlen, it's no longer needed. Restructure slightly.
10260 (format_string): Set unlikely range appropriately.
10261 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
10263 (get_range_strlen): Accept c_strlen_data pointer for external
10264 call sites as well. Pass through to call to internal get_range_strlen.
10265 Adjust minlen, maxlen and maxbound as needed.
10266 (get_maxval_strlen): Update comments.
10267 (gimple_fold_builtin_strlen): Update call to get_range_strlen
10268 to use c_strlen_data pointer. Change variable accesses to instead
10269 use c_strlen_data data members.
10271 * gimple-fold.c (get_range_strlen): Update prototype.
10272 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
10273 local variables. Use pdata to return information to caller.
10274 Update calls to get_range_strlen. Update pdata->maxbound.
10275 (get_range_strlen -- static version): Similarly.
10276 (get_range_strlen -- extern version): Update for internal
10277 get_range_strlen API change. Convert to external data format.
10278 (get_maxval_strlen): Similarly.
10280 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
10282 * coverage.c (get_coverage_counts): Use current_function_decl.
10283 * profile.c (read_thunk_profile): New function.
10284 (branch_prob): Add THUNK parameter.
10285 * tree-profile.c (tree_profiling): Handle thunks.
10286 * value-prof.c (init_node_map): Handle thunks.
10287 * value-prof.h (branch_prob): Upate prototype.
10288 (read_thunk_profile): Declare.
10290 2019-01-01 Jakub Jelinek <jakub@redhat.com>
10292 Update copyright years.
10294 * gcc.c (process_command): Update copyright notice dates.
10295 * gcov-dump.c (print_version): Ditto.
10296 * gcov.c (print_version): Ditto.
10297 * gcov-tool.c (print_version): Ditto.
10298 * gengtype.c (create_file): Ditto.
10299 * doc/cpp.texi: Bump @copying's copyright year.
10300 * doc/cppinternals.texi: Ditto.
10301 * doc/gcc.texi: Ditto.
10302 * doc/gccint.texi: Ditto.
10303 * doc/gcov.texi: Ditto.
10304 * doc/install.texi: Ditto.
10305 * doc/invoke.texi: Ditto.
10307 Copyright (C) 2019 Free Software Foundation, Inc.
10309 Copying and distribution of this file, with or without modification,
10310 are permitted in any medium without royalty provided the copyright
10311 notice and this notice are preserved.