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