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