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