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