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