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