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