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