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