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