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