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