re PR ipa/92421 (ICE in inline_small_functions, at ipa-inline.c:2001 since r277759)
[gcc.git] / gcc / ChangeLog
1 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2
3 PR c++/92421
4 * ipa-prop.c (update_indirect_edges_after_inlining):
5 Mark parameter as used.
6 * ipa-inline.c (recursive_inlining): Reset node cache
7 after inlining.
8 (inline_small_functions): Remove checking ifdef.
9 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
10 cache consistency.
11
12 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
13
14 PR ipa/92498
15 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
16 is NULL.
17 (ipa_profile): Fix reversed test.
18
19 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
20
21 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
22 (propagate_constants_topo): Fix typo.
23
24 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
25
26 * Makefile.in (OBJS): Add value-range.o.
27 (GTFILES): Add value-range.h.
28 * gengtype.c (open_base_files): Add value-range.h to list of
29 header files.
30 * tree-vrp.c: Move the following value_range related functions:
31 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
32 constant_p, set_undefined, set_varying, may_contain_p,
33 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
34 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
35 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
36 value_inside_range, ranges_from_anti_range, union_ranges,
37 intersect_ranges, intersect_helper, union_helper, union_,
38 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
39 upper_bound, contains_p, invert, intersect...
40 * value-range.cc: ...to here.
41 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
42 associated inline methods from here...
43 * value-range.h: ...to here.
44
45 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
46
47 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
48 instead of asserting its value.
49
50 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
51
52 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
53 constructors and set methods so value_range_kind is the last
54 argument and defaults to VR_RANGE.
55 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
56 * ipa-cp.c (propagate_vr_across_jump_function): Same.
57 * ipa-prop.c (ipa_get_value_range): Same.
58 (ipa_compute_jump_functions_for_edge): Same.
59 * range-op.cc (value_range_from_overflowed_bounds): Same.
60 (operator_cast::op1_range): Same.
61 (range_tests): Same.
62 * range.cc (range_nonzero): Same.
63 * tree-ssanames.c (get_range_info): Same.
64 * tree-vrp.c (value_range_equiv::set): Same.
65 (value_range::value_range): Same.
66 (value_range_equiv::value_range_equiv): Same.
67 (value_range_equiv::update): Same.
68 (value_range_equiv::deep_copy): Same.
69 (value_range_equiv::move): Same.
70 (value_range_equiv::set_undefined): Same.
71 (value_range::set): Same.
72 (value_range::set_nonzero): Same.
73 (ranges_from_anti_range): Same.
74 (extract_range_from_plus_minus_expr): Same.
75 (value_range::intersect_helper): Same.
76 (value_range_equiv::intersect): Same.
77 (value_range::union_helper): Same.
78 (value_range_equiv::union_): Same.
79 (value_range::normalize_symbolics): Same.
80 (value_range::invert): Same.
81 (determine_value_range_1): Same.
82 * tree-vrp.h (class value_range): Same.
83 (class value_range_equiv): Same.
84 * vr-values.c (set_value_range_to_nonnegative): Same.
85 (set_value_range_to_truthvalue): Same.
86 (vr_values::update_value_range): Same.
87 (vr_values::extract_range_for_var_from_comparison_expr): Same.
88 (vr_values::extract_range_from_binary_expr): Same.
89 (vr_values::extract_range_from_comparison): Same.
90 (vr_values::extract_range_basic): Same.
91 (vr_values::adjust_range_with_scev): Same.
92 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
93 (vr_values::extract_range_from_phi_node): Same.
94
95 2019-11-13 Ulrich Drepper <drepper@redhat.com>
96
97 * tree-dump.c (dequeue_and_dump): Print first tree operand
98 for VIEW_CONVERT_EXPR.
99
100 2019-11-13 Joseph Myers <joseph@codesourcery.com>
101
102 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
103 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
104 * real.c (get_max_float): Add norm_max argument.
105 * real.h (get_max_float): Update prototype.
106 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
107 get_max_float.
108
109 2019-11-13 Martin Liska <mliska@suse.cz>
110
111 * dbgcnt.c (test_sorted_dbg_counters): New.
112 (dbgcnt_c_tests): Likewise.
113 * selftest-run-tests.c (selftest::run_tests): Likewise.
114 * selftest.h (dbgcnt_c_tests): Likewise.
115
116 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
117 Martin Jambor <mjambor@suse.cz>
118
119 PR ipa/92454
120 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
121 (identify_dead_nodes): Likewise.
122
123 2019-11-13 Martin Liska <mliska@suse.cz>
124
125 * ipa-icf.c (sem_function::equals_private): Do not overuse
126 push/pop_cfun functions.
127
128 2019-11-13 Martin Liska <mliska@suse.cz>
129
130 * common.opt: Document change of -fdbg-cnt option.
131 * dbgcnt.c (DEBUG_COUNTER): Remove.
132 (dbg_cnt_is_enabled): Remove.
133 (dbg_cnt): Work with new intervals.
134 (dbg_cnt_set_limit_by_index): Set to new
135 list of intervals.
136 (dbg_cnt_set_limit_by_name): Likewise.
137 (dbg_cnt_process_single_pair): Process new format.
138 (dbg_cnt_process_opt): Likewise.
139 (dbg_cnt_list_all_counters): Likewise.
140 * doc/invoke.texi: Document change of -fdbg-cnt option.
141 (cmp_tuples): New.
142
143 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
144
145 * ipa-inline.c (ipa_inline): Check that function is defined before
146 flattening.
147
148 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
149 Julian Brown <julian@codesourcery.com>
150
151 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
152 flag_worker_partitioning is not set.
153 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
154 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
155
156 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
157
158 * config/gcn/gcn-run.c (heap_region): New global variable.
159 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
160 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
161 (get_kernarg_region): Move contents to ....
162 (get_memory_region): .... here.
163 (get_heap_region): New function.
164 (init_device): Initialize the heap_region.
165 (device_malloc): Add region parameter.
166 (struct kernargs): Move heap ....
167 (heap): ... to global scope.
168 (main): Allocate heap separate to kernargs.
169
170 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
171
172 * ipa-prop.c (ipa_print_node_jump_functions,
173 ipa_print_node_params): Print info about missing summaries.
174
175 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
176
177 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
178 the cost of generating loop masks.
179
180 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
181
182 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
183 New function.
184 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
185 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
186 (vect_transform_loop): Likewise.
187 (vect_analyze_loop_costing): Don't take the cost of versioning
188 into account for the static profitability threshold if it turns
189 out that no versioning is needed.
190
191 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
192
193 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
194 and target_option_default_node to get -fprofile-generate ctors working
195 right with LTO.
196
197 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
198
199 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
200 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
201 (vectorizable_assignment): Don't add a cost for nop conversions.
202 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
203 Likewise.
204 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
205
206 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
207
208 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
209 number of ncopies as an additional argument.
210 (vectorizable_conversion): Update call accordingly. Use "modifier"
211 to check whether a conversion is between vectors with the same
212 numbers of units.
213
214 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
215
216 * config/aarch64/aarch64-sve-builtins-functions.h
217 (unary_count::expand): Use aarch64_sve_int_mode instead of
218 mode_for_int_vector.
219
220 2019-11-13 Martin Liska <mliska@suse.cz>
221
222 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
223
224 2019-11-13 Martin Liska <mliska@suse.cz>
225
226 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
227 Remove call to finalize_options_struct.
228
229 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
230
231 PR target/92055
232 * config/avr/t-avr (avr-mcus): Do not depend on
233 $(srcdir)/config/avr/t-multilib.
234
235 2019-11-13 Richard Biener <rguenther@suse.de>
236
237 PR tree-optimization/92473
238 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
239 direct optab reduction in the correct type.
240
241 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
242
243 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
244 hexadecimal literal.
245
246 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
247
248 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
249 UNORDERED if !HONOR_NANS (DFmode).
250 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
251 if !HONOR_NANS (<MODE>mode).
252
253 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
254
255 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
256 (ipcp_verify_propagated_values): Likewise.
257 (propagate_constants_across_call): Likewise.
258 (propagate_constants_topo): Likewise.
259 (ipcp_propagate_stage): Likewise.
260
261 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
262
263 PR ipa/92471
264 * ipa-profile.c (check_argument_count): Break out from ...;
265 watch for missing summaries.
266 (ipa_profile): Here.
267
268 2019-11-12 Martin Sebor <msebor@redhat.com>
269
270 PR tree-optimization/92412
271 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
272 extern variables.
273
274 2019-11-12 Martin Sebor <msebor@redhat.com>
275
276 PR middle-end/83688
277 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
278 (directive::argno): New member.
279 (format_result::aliases, format_result::alias_count): New data members.
280 (format_result::append_alias): New member function.
281 (fmtresult::dst_offset): New data member.
282 (pass_sprintf_length::call_info::dst_origin): New data member.
283 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
284 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
285 (get_origin_and_offset): Same.
286 (format_string): Call it.
287 (format_directive): Call append_alias and set directive argument
288 number.
289 (maybe_warn_overlap): New function.
290 (pass_sprintf_length::compute_format_length): Call it.
291 (pass_sprintf_length::handle_gimple_call): Initialize new members.
292 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
293
294 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
295
296 PR rtl-optimization/92430
297 * cfgcleanup.c (pass_jump_after_combine::execute): Free
298 dominance info at the beginning.
299
300 2019-11-12 Richard Biener <rguenther@suse.de>
301
302 PR tree-optimization/92460
303 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
304 expression before gimplifying.
305
306 2019-11-12 Richard Biener <rguenther@suse.de>
307
308 PR tree-optimization/92461
309 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
310 stmt after propagation.
311
312 2019-11-12 Martin Liska <mliska@suse.cz>
313
314 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
315 Use SET_OPTION_IF_UNSET.
316 (ix86_option_override_internal): Likewise.
317 * opts.c (default_options_optimization): Likewise.
318 (finish_options): Likewise.
319 (enable_fdo_optimizations): Likewise.
320 (common_handle_option): Likewise.
321
322 2019-11-12 Martin Liska <mliska@suse.cz>
323
324 * common/common-target.def: Remove option_validate_param and
325 option_default_params.
326 * common/common-targhooks.c (default_option_validate_param):
327 Remove.
328 * common/common-targhooks.h (default_option_validate_param):
329 Remove.
330 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
331 Remove usage of this.
332 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
333 (aarch64_option_validate_param): Likewise.
334 (aarch64_option_default_params): Likewise
335 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
336 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
337 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
338 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
339 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
340 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
341 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
342 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
343 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
344 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
345 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
346 guard_size here.
347 * doc/tm.texi: Remove option_default_params and option_validate_param.
348 * doc/tm.texi.in: Likewise.
349
350 2019-11-12 Martin Liska <mliska@suse.cz>
351
352 * common/common-target.def:
353 Do not mention set_default_param_value
354 and set_param_value.
355 * doc/tm.texi: Likewise.
356
357 2019-11-12 Martin Liska <mliska@suse.cz>
358
359 * common.opt: Remove param_values.
360 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
361 Remove finalize_options_struct.
362 * gcc.c (driver::decode_argv): Do not call global_init_params
363 and finish_params.
364 (driver::finalize): Do not call params_c_finalize
365 and finalize_options_struct.
366 * opt-suggestions.c (option_proposer::get_completions): Remove
367 special casing of params.
368 (option_proposer::find_param_completions): Remove.
369 (test_completion_partial_match): Update expected output.
370 * opt-suggestions.h: Remove find_param_completions.
371 * opts-common.c (add_misspelling_candidates): Add
372 --param with a space.
373 * opts.c (handle_param): Remove.
374 (init_options_struct):. Remove init_options_struct and
375 similar calls.
376 (finalize_options_struct): Remove.
377 (common_handle_option): Use SET_OPTION_IF_UNSET.
378 * opts.h (finalize_options_struct): Remove.
379 * toplev.c (general_init): Do not call global_init_params.
380 (toplev::finalize): Do not call params_c_finalize and
381 finalize_options_struct.
382
383 2019-11-12 Martin Liska <mliska@suse.cz>
384
385 * Makefile.in: Remove PARAMS_H and params.list
386 and params.options.
387 * params-enum.h: Remove.
388 * params-list.h: Remove.
389 * params-options.h: Remove.
390 * params.c: Remove.
391 * params.def: Remove.
392 * params.h: Remove.
393 * asan.c: Do not include params.h.
394 * auto-profile.c: Likewise.
395 * bb-reorder.c: Likewise.
396 * builtins.c: Likewise.
397 * cfgcleanup.c: Likewise.
398 * cfgexpand.c: Likewise.
399 * cfgloopanal.c: Likewise.
400 * cgraph.c: Likewise.
401 * combine.c: Likewise.
402 * common/config/aarch64/aarch64-common.c: Likewise.
403 * common/config/gcn/gcn-common.c: Likewise.
404 * common/config/ia64/ia64-common.c: Likewise.
405 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
406 * common/config/rs6000/rs6000-common.c: Likewise.
407 * common/config/sh/sh-common.c: Likewise.
408 * config/aarch64/aarch64.c: Likewise.
409 * config/alpha/alpha.c: Likewise.
410 * config/arm/arm.c: Likewise.
411 * config/avr/avr.c: Likewise.
412 * config/csky/csky.c: Likewise.
413 * config/i386/i386-builtins.c: Likewise.
414 * config/i386/i386-expand.c: Likewise.
415 * config/i386/i386-features.c: Likewise.
416 * config/i386/i386-options.c: Likewise.
417 * config/i386/i386.c: Likewise.
418 * config/ia64/ia64.c: Likewise.
419 * config/rs6000/rs6000-logue.c: Likewise.
420 * config/rs6000/rs6000.c: Likewise.
421 * config/s390/s390.c: Likewise.
422 * config/sparc/sparc.c: Likewise.
423 * config/visium/visium.c: Likewise.
424 * coverage.c: Likewise.
425 * cprop.c: Likewise.
426 * cse.c: Likewise.
427 * cselib.c: Likewise.
428 * dse.c: Likewise.
429 * emit-rtl.c: Likewise.
430 * explow.c: Likewise.
431 * final.c: Likewise.
432 * fold-const.c: Likewise.
433 * gcc.c: Likewise.
434 * gcse.c: Likewise.
435 * ggc-common.c: Likewise.
436 * ggc-page.c: Likewise.
437 * gimple-loop-interchange.cc: Likewise.
438 * gimple-loop-jam.c: Likewise.
439 * gimple-loop-versioning.cc: Likewise.
440 * gimple-ssa-split-paths.c: Likewise.
441 * gimple-ssa-sprintf.c: Likewise.
442 * gimple-ssa-store-merging.c: Likewise.
443 * gimple-ssa-strength-reduction.c: Likewise.
444 * gimple-ssa-warn-alloca.c: Likewise.
445 * gimple-ssa-warn-restrict.c: Likewise.
446 * graphite-isl-ast-to-gimple.c: Likewise.
447 * graphite-optimize-isl.c: Likewise.
448 * graphite-scop-detection.c: Likewise.
449 * graphite-sese-to-poly.c: Likewise.
450 * graphite.c: Likewise.
451 * haifa-sched.c: Likewise.
452 * hsa-gen.c: Likewise.
453 * ifcvt.c: Likewise.
454 * ipa-cp.c: Likewise.
455 * ipa-fnsummary.c: Likewise.
456 * ipa-inline-analysis.c: Likewise.
457 * ipa-inline.c: Likewise.
458 * ipa-polymorphic-call.c: Likewise.
459 * ipa-profile.c: Likewise.
460 * ipa-prop.c: Likewise.
461 * ipa-split.c: Likewise.
462 * ipa-sra.c: Likewise.
463 * ira-build.c: Likewise.
464 * ira-conflicts.c: Likewise.
465 * loop-doloop.c: Likewise.
466 * loop-invariant.c: Likewise.
467 * loop-unroll.c: Likewise.
468 * lra-assigns.c: Likewise.
469 * lra-constraints.c: Likewise.
470 * modulo-sched.c: Likewise.
471 * opt-suggestions.c: Likewise.
472 * opts.c: Likewise.
473 * postreload-gcse.c: Likewise.
474 * predict.c: Likewise.
475 * reload.c: Likewise.
476 * reorg.c: Likewise.
477 * resource.c: Likewise.
478 * sanopt.c: Likewise.
479 * sched-deps.c: Likewise.
480 * sched-ebb.c: Likewise.
481 * sched-rgn.c: Likewise.
482 * sel-sched-ir.c: Likewise.
483 * sel-sched.c: Likewise.
484 * shrink-wrap.c: Likewise.
485 * stmt.c: Likewise.
486 * targhooks.c: Likewise.
487 * toplev.c: Likewise.
488 * tracer.c: Likewise.
489 * trans-mem.c: Likewise.
490 * tree-chrec.c: Likewise.
491 * tree-data-ref.c: Likewise.
492 * tree-if-conv.c: Likewise.
493 * tree-inline.c: Likewise.
494 * tree-loop-distribution.c: Likewise.
495 * tree-parloops.c: Likewise.
496 * tree-predcom.c: Likewise.
497 * tree-profile.c: Likewise.
498 * tree-scalar-evolution.c: Likewise.
499 * tree-sra.c: Likewise.
500 * tree-ssa-ccp.c: Likewise.
501 * tree-ssa-dom.c: Likewise.
502 * tree-ssa-dse.c: Likewise.
503 * tree-ssa-ifcombine.c: Likewise.
504 * tree-ssa-loop-ch.c: Likewise.
505 * tree-ssa-loop-im.c: Likewise.
506 * tree-ssa-loop-ivcanon.c: Likewise.
507 * tree-ssa-loop-ivopts.c: Likewise.
508 * tree-ssa-loop-manip.c: Likewise.
509 * tree-ssa-loop-niter.c: Likewise.
510 * tree-ssa-loop-prefetch.c: Likewise.
511 * tree-ssa-loop-unswitch.c: Likewise.
512 * tree-ssa-math-opts.c: Likewise.
513 * tree-ssa-phiopt.c: Likewise.
514 * tree-ssa-pre.c: Likewise.
515 * tree-ssa-reassoc.c: Likewise.
516 * tree-ssa-sccvn.c: Likewise.
517 * tree-ssa-scopedtables.c: Likewise.
518 * tree-ssa-sink.c: Likewise.
519 * tree-ssa-strlen.c: Likewise.
520 * tree-ssa-structalias.c: Likewise.
521 * tree-ssa-tail-merge.c: Likewise.
522 * tree-ssa-threadbackward.c: Likewise.
523 * tree-ssa-threadedge.c: Likewise.
524 * tree-ssa-uninit.c: Likewise.
525 * tree-switch-conversion.c: Likewise.
526 * tree-vect-data-refs.c: Likewise.
527 * tree-vect-loop.c: Likewise.
528 * tree-vect-slp.c: Likewise.
529 * tree-vrp.c: Likewise.
530 * tree.c: Likewise.
531 * value-prof.c: Likewise.
532 * var-tracking.c: Likewise.
533
534 2019-11-12 Martin Liska <mliska@suse.cz>
535
536 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
537 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
538 macro.
539 (asan_sanitize_allocas_p): Likewise.
540 (asan_emit_stack_protection): Likewise.
541 (asan_protect_global): Likewise.
542 (instrument_derefs): Likewise.
543 (instrument_builtin_call): Likewise.
544 (asan_expand_mark_ifn): Likewise.
545 * auto-profile.c (auto_profile): Likewise.
546 * bb-reorder.c (copy_bb_p): Likewise.
547 (duplicate_computed_gotos): Likewise.
548 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
549 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
550 (try_crossjump_bb): Likewise.
551 * cfgexpand.c (defer_stack_allocation): Likewise.
552 (stack_protect_classify_type): Likewise.
553 (pass_expand::execute): Likewise.
554 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
555 (estimate_reg_pressure_cost): Likewise.
556 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
557 * combine.c (combine_instructions): Likewise.
558 (record_value_for_reg): Likewise.
559 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
560 (aarch64_option_default_params): Likewise.
561 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
562 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
563 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
564 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
565 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
566 (aarch64_allocate_and_probe_stack_space): Likewise.
567 (aarch64_expand_epilogue): Likewise.
568 (aarch64_override_options_internal): Likewise.
569 * config/alpha/alpha.c (alpha_option_override): Likewise.
570 * config/arm/arm.c (arm_option_override): Likewise.
571 (arm_valid_target_attribute_p): Likewise.
572 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
573 * config/i386/i386.c (get_probe_interval): Likewise.
574 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
575 (ix86_max_noce_ifcvt_seq_cost): Likewise.
576 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
577 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
578 (get_stack_clash_protection_guard_size): Likewise.
579 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
580 * config/s390/s390.c (allocate_stack_space): Likewise.
581 (s390_emit_prologue): Likewise.
582 (s390_option_override_internal): Likewise.
583 * config/sparc/sparc.c (sparc_option_override): Likewise.
584 * config/visium/visium.c (visium_option_override): Likewise.
585 * coverage.c (get_coverage_counts): Likewise.
586 (coverage_compute_profile_id): Likewise.
587 (coverage_begin_function): Likewise.
588 (coverage_end_function): Likewise.
589 * cse.c (cse_find_path): Likewise.
590 (cse_extended_basic_block): Likewise.
591 (cse_main): Likewise.
592 * cselib.c (cselib_invalidate_mem): Likewise.
593 * dse.c (dse_step1): Likewise.
594 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
595 (get_max_insn_count): Likewise.
596 (make_debug_insn_raw): Likewise.
597 (init_emit): Likewise.
598 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
599 * final.c (compute_alignments): Likewise.
600 * fold-const.c (fold_range_test): Likewise.
601 (fold_truth_andor): Likewise.
602 (tree_single_nonnegative_warnv_p): Likewise.
603 (integer_valued_real_single_p): Likewise.
604 * gcse.c (want_to_gcse_p): Likewise.
605 (prune_insertions_deletions): Likewise.
606 (hoist_code): Likewise.
607 (gcse_or_cprop_is_too_expensive): Likewise.
608 * ggc-common.c: Likewise.
609 * ggc-page.c (ggc_collect): Likewise.
610 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
611 (MAX_DATAREFS): Likewise.
612 (OUTER_STRIDE_RATIO): Likewise.
613 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
614 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
615 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
616 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
617 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
618 (imm_store_chain_info::output_merged_store): Likewise.
619 (pass_store_merging::process_store): Likewise.
620 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
621 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
622 (scop_to_isl_ast): Likewise.
623 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
624 (optimize_isl): Likewise.
625 * graphite-scop-detection.c (build_scops): Likewise.
626 * haifa-sched.c (set_modulo_params): Likewise.
627 (rank_for_schedule): Likewise.
628 (model_add_to_worklist): Likewise.
629 (model_promote_insn): Likewise.
630 (model_choose_insn): Likewise.
631 (queue_to_ready): Likewise.
632 (autopref_multipass_dfa_lookahead_guard): Likewise.
633 (schedule_block): Likewise.
634 (sched_init): Likewise.
635 * hsa-gen.c (init_prologue): Likewise.
636 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
637 (cond_move_process_if_block): Likewise.
638 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
639 (merge_agg_lats_step): Likewise.
640 (devirtualization_time_bonus): Likewise.
641 (hint_time_bonus): Likewise.
642 (incorporate_penalties): Likewise.
643 (good_cloning_opportunity_p): Likewise.
644 (ipcp_propagate_stage): Likewise.
645 * ipa-fnsummary.c (decompose_param_expr): Likewise.
646 (set_switch_stmt_execution_predicate): Likewise.
647 (analyze_function_body): Likewise.
648 (compute_fn_summary): Likewise.
649 * ipa-inline-analysis.c (estimate_growth): Likewise.
650 * ipa-inline.c (caller_growth_limits): Likewise.
651 (inline_insns_single): Likewise.
652 (inline_insns_auto): Likewise.
653 (can_inline_edge_by_limits_p): Likewise.
654 (want_early_inline_function_p): Likewise.
655 (big_speedup_p): Likewise.
656 (want_inline_small_function_p): Likewise.
657 (want_inline_self_recursive_call_p): Likewise.
658 (edge_badness): Likewise.
659 (recursive_inlining): Likewise.
660 (compute_max_insns): Likewise.
661 (early_inliner): Likewise.
662 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
663 * ipa-profile.c (ipa_profile): Likewise.
664 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
665 (ipa_analyze_node): Likewise.
666 (ipcp_transform_function): Likewise.
667 * ipa-split.c (consider_split): Likewise.
668 * ipa-sra.c (allocate_access): Likewise.
669 (process_scan_results): Likewise.
670 (ipa_sra_summarize_function): Likewise.
671 (pull_accesses_from_callee): Likewise.
672 * ira-build.c (loop_compare_func): Likewise.
673 (mark_loops_for_removal): Likewise.
674 * ira-conflicts.c (build_conflict_bit_table): Likewise.
675 * loop-doloop.c (doloop_optimize): Likewise.
676 * loop-invariant.c (gain_for_invariant): Likewise.
677 (move_loop_invariants): Likewise.
678 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
679 (decide_unroll_runtime_iterations): Likewise.
680 (decide_unroll_stupid): Likewise.
681 (expand_var_during_unrolling): Likewise.
682 * lra-assigns.c (spill_for): Likewise.
683 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
684 * modulo-sched.c (sms_schedule): Likewise.
685 (DFA_HISTORY): Likewise.
686 * opts.c (default_options_optimization): Likewise.
687 (finish_options): Likewise.
688 (common_handle_option): Likewise.
689 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
690 (if): Likewise.
691 * predict.c (get_hot_bb_threshold): Likewise.
692 (maybe_hot_count_p): Likewise.
693 (probably_never_executed): Likewise.
694 (predictable_edge_p): Likewise.
695 (predict_loops): Likewise.
696 (expr_expected_value_1): Likewise.
697 (tree_predict_by_opcode): Likewise.
698 (handle_missing_profiles): Likewise.
699 * reload.c (find_equiv_reg): Likewise.
700 * reorg.c (redundant_insn): Likewise.
701 * resource.c (mark_target_live_regs): Likewise.
702 (incr_ticks_for_insn): Likewise.
703 * sanopt.c (pass_sanopt::execute): Likewise.
704 * sched-deps.c (sched_analyze_1): Likewise.
705 (sched_analyze_2): Likewise.
706 (sched_analyze_insn): Likewise.
707 (deps_analyze_insn): Likewise.
708 * sched-ebb.c (schedule_ebbs): Likewise.
709 * sched-rgn.c (find_single_block_region): Likewise.
710 (too_large): Likewise.
711 (haifa_find_rgns): Likewise.
712 (extend_rgns): Likewise.
713 (new_ready): Likewise.
714 (schedule_region): Likewise.
715 (sched_rgn_init): Likewise.
716 * sel-sched-ir.c (make_region_from_loop): Likewise.
717 * sel-sched-ir.h (MAX_WS): Likewise.
718 * sel-sched.c (process_pipelined_exprs): Likewise.
719 (sel_setup_region_sched_flags): Likewise.
720 * shrink-wrap.c (try_shrink_wrapping): Likewise.
721 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
722 * toplev.c (print_version): Likewise.
723 (process_options): Likewise.
724 * tracer.c (tail_duplicate): Likewise.
725 * trans-mem.c (tm_log_add): Likewise.
726 * tree-chrec.c (chrec_fold_plus_1): Likewise.
727 * tree-data-ref.c (split_constant_offset): Likewise.
728 (compute_all_dependences): Likewise.
729 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
730 * tree-inline.c (remap_gimple_stmt): Likewise.
731 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
732 * tree-parloops.c (MIN_PER_THREAD): Likewise.
733 (create_parallel_loop): Likewise.
734 * tree-predcom.c (determine_unroll_factor): Likewise.
735 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
736 * tree-sra.c (analyze_all_variable_accesses): Likewise.
737 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
738 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
739 (dse_optimize_redundant_stores): Likewise.
740 (dse_classify_store): Likewise.
741 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
742 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
743 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
744 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
745 (try_peel_loop): Likewise.
746 (tree_unroll_loops_completely): Likewise.
747 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
748 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
749 (MAX_CONSIDERED_GROUPS): Likewise.
750 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
751 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
752 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
753 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
754 (L1_CACHE_SIZE_BYTES): Likewise.
755 (L2_CACHE_SIZE_BYTES): Likewise.
756 (should_issue_prefetch_p): Likewise.
757 (schedule_prefetches): Likewise.
758 (determine_unroll_factor): Likewise.
759 (volume_of_references): Likewise.
760 (add_subscript_strides): Likewise.
761 (self_reuse_distance): Likewise.
762 (mem_ref_count_reasonable_p): Likewise.
763 (insn_to_prefetch_ratio_too_small_p): Likewise.
764 (loop_prefetch_arrays): Likewise.
765 (tree_ssa_prefetch_arrays): Likewise.
766 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
767 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
768 (convert_mult_to_fma): Likewise.
769 (math_opts_dom_walker::after_dom_children): Likewise.
770 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
771 (hoist_adjacent_loads): Likewise.
772 (gate_hoist_loads): Likewise.
773 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
774 (compute_partial_antic_aux): Likewise.
775 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
776 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
777 (vn_reference_lookup): Likewise.
778 (do_rpo_vn): Likewise.
779 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
780 * tree-ssa-sink.c (select_best_block): Likewise.
781 * tree-ssa-strlen.c (new_stridx): Likewise.
782 (new_addr_stridx): Likewise.
783 (get_range_strlen_dynamic): Likewise.
784 (class ssa_name_limit_t): Likewise.
785 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
786 (create_variable_info_for_1): Likewise.
787 (init_alias_vars): Likewise.
788 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
789 (tail_merge_optimize): Likewise.
790 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
791 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
792 (thread_jumps::find_jump_threads_backwards): Likewise.
793 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
794 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
795 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
796 (jump_table_cluster::can_be_handled): Likewise.
797 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
798 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
799 (param_switch_conversion_branch_ratio): Likewise.
800 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
801 (vect_enhance_data_refs_alignment): Likewise.
802 (vect_prune_runtime_alias_test_list): Likewise.
803 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
804 (vect_get_datarefs_in_loop): Likewise.
805 (vect_analyze_loop): Likewise.
806 * tree-vect-slp.c (vect_slp_bb): Likewise.
807 * tree-vectorizer.h: Likewise.
808 * tree-vrp.c (find_switch_asserts): Likewise.
809 (vrp_prop::check_mem_ref): Likewise.
810 * tree.c (wide_int_to_tree_1): Likewise.
811 (cache_integer_cst): Likewise.
812 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
813 (reverse_op): Likewise.
814 (vt_find_locations): Likewise.
815
816 2019-11-12 Martin Liska <mliska@suse.cz>
817
818 * Makefile.in: Include params.opt.
819 * flag-types.h (enum parloops_schedule_type): Add
820 parloops_schedule_type used in params.opt.
821 * params.opt: New file.
822
823 2019-11-12 Martin Liska <mliska@suse.cz>
824
825 * common.opt: Remove --param and --param= options.
826 * opt-functions.awk: Mark CL_PARAMS for options
827 that have Param keyword.
828 * opts-common.c (decode_cmdline_options_to_array):
829 Replace --param key=value with --param=key=value.
830 * opts.c (print_filtered_help): Remove special
831 printing of params.
832 (print_specific_help): Update title for params.
833 (common_handle_option): Do not handle OPT__param.
834 opts.h (SET_OPTION_IF_UNSET): New macro.
835 * doc/options.texi: Document Param keyword.
836
837 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
838 Frederik Harwath <frederik@codesourcery.com>
839 Thomas Schwinge <thomas@codesourcery.com>
840
841 gcc/
842 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
843 enumeration constant.
844 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
845 (is_gimple_omp_offloaded): Likewise.
846 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
847 constant. Adjust the value of ORT_NONE accordingly.
848 (is_gimple_stmt): Handle OACC_SERIAL.
849 (oacc_default_clause): Handle ORT_ACC_SERIAL.
850 (gomp_needs_data_present): Likewise.
851 (gimplify_adjust_omp_clauses): Likewise.
852 (gimplify_omp_workshare): Handle OACC_SERIAL.
853 (gimplify_expr): Likewise.
854 * omp-expand.c (expand_omp_target):
855 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
856 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
857 * omp-low.c (is_oacc_parallel): Rename function to...
858 (is_oacc_parallel_or_serial): ... this.
859 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
860 (scan_sharing_clauses): Adjust accordingly.
861 (scan_omp_for): Likewise.
862 (lower_oacc_head_mark): Likewise.
863 (convert_from_firstprivate_int): Likewise.
864 (lower_omp_target): Likewise.
865 (check_omp_nesting_restrictions): Handle
866 GF_OMP_TARGET_KIND_OACC_SERIAL.
867 (lower_oacc_reductions): Likewise.
868 (lower_omp_target): Likewise.
869 * tree.def (OACC_SERIAL): New tree code.
870 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
871
872 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
873
874 2019-11-12 Jakub Jelinek <jakub@redhat.com>
875
876 PR target/92449
877 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
878 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
879
880 PR tree-optimization/92452
881 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
882 into NULL_TREE, set up_bound to NULL_TREE instead of computing
883 MINUS_EXPR on it.
884
885 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
886
887 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
888 safelen with 0.
889
890 2019-11-12 Alan Modra <amodra@gmail.com>
891
892 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
893 element of unspec vec.
894 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
895 PC-relative TLS.
896 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
897 (tls_gd_pcrel, tls_ld_pcrel): New insns.
898 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
899 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
900
901 2019-11-12 Alan Modra <amodra@gmail.com>
902
903 * config/rs6000/rs6000.opt (mtls-markers): Delete.
904 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
905 (IS_NOMARK_TLSGETADDR): Likewise.
906 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
907 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
908 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
909 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
910 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
911 (rs6000_indirect_call_template_1): Likewise.
912 (rs6000_pltseq_template): Likewise.
913 (rs6000_opt_vars): Remove "tls-markers" entry.
914 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
915 with TARGET_ELF.
916 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
917 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
918 (pltseq_plt_pcrel<mode>): Likewise.
919 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
920 (call_value_local64): Likewise.
921 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
922 output and length attribute sub-expression.
923 (call_value_nonlocal_sysv<mode>),
924 (call_value_nonlocal_sysv_secure<mode>),
925 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
926 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
927 (call_value_indirect_pcrel<mode>): Likewise.
928 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
929 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
930 * configure: Regenerate.
931 * config.in: Regenerate.
932
933 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
934
935 * config/rs6000/predicates.md (prefixed_memory): New predicate.
936 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
937 address being a prefixed load/store.
938 (stack_protect_testdi): Deal with either address being a prefixed
939 load.
940
941 2019-11-11 Jakub Jelinek <jakub@redhat.com>
942
943 PR bootstrap/92433
944 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
945 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
946 std::swap.
947
948 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
949
950 PR tree-optimization/92420
951 * tree-vect-stmts.c (get_negative_load_store_type): Move further
952 up file.
953 (get_group_load_store_type): Use it for reversed SLP accesses.
954
955 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
956
957 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
958 summary.
959 (ipcp_transformation_t::duplicate): Break out from ...
960 (ipa_node_params_t::duplicate): ... here; add copying of agg
961 replacements.
962 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
963 (ipcp_transformation_t): Add duplicate.
964
965 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
966
967 PR fortran/91828
968 * doc/install.texi: Document that the minimum MPFR version is
969 3.1.0.
970
971 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
972
973 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
974 use new register constraint letters.
975
976 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
977
978 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
979 as well, if interesting recover the symbol and re-legitimize the
980 pic address.
981
982 2019-11-11 Martin Liska <mliska@suse.cz>
983
984 * dbgcnt.def (DEBUG_COUNTER): Sort counters
985 alphabetically.
986
987 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
988
989 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
990 account when checking if there are enough iterations to vectorize
991 epilogue.
992
993 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
994 Kwok Cheung Yeung <kcy@codesourcery.com>
995
996 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
997 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
998 (LANG_HOOKS_DECLS): Rename also here.
999 * langhooks.h (lang_hooks_for_decls): Rename
1000 omp_is_optional_argument to omp_check_optional_argument; take
1001 additional bool argument.
1002 * omp-general.h (omp_check_optional_argument): Likewise.
1003 * omp-general.h (omp_check_optional_argument): Likewise.
1004 * omp-low.c (lower_omp_target): Update calls; handle absent
1005 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
1006
1007 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
1008
1009 PR target/87833
1010 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
1011 -fPIC and -shared the last to create offload image.
1012
1013 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
1014
1015 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
1016 of 'offset'.
1017
1018 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
1019 (config.status): Use/depend on it.
1020 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
1021 * configure: Regenerate.
1022
1023 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
1024
1025 PR tree-optimization/88760
1026 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
1027 * gcc/common/config/rs6000/rs6000-common.c
1028 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
1029 Turn on -funroll-loops and -munroll-only-small-loops.
1030 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
1031 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
1032 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
1033 Turn off -munroll-only-small-loops for explicit -funroll-loops.
1034 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
1035 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
1036
1037 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
1038
1039 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
1040 Make scalar_load, vector_load, unaligned_load and
1041 vector_gather_load cost more to conform hardware latency and
1042 insn cost settings.
1043
1044 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
1045
1046 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
1047 (MACHO_SYMBOL_LINKER_VIS_P): New.
1048
1049 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
1050
1051 * lra-spills.c (assign_spill_hard_regs): Do not spill into
1052 registers in eliminable_regset.
1053
1054 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1055
1056 * ipa-inline.c (compute_uninlined_call_time,
1057 compute_inlined_call_time): Take edge frequency as
1058 parameter rather than computing it by itself.
1059 (big_speedup_p, edge_badness): Manually CSE sreal
1060 frequency calculations.
1061
1062 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1063
1064 * profile-count.c (profile_count::to_sreal_scale): Short circuit
1065 case where profiles are same.
1066
1067 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1068
1069 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
1070
1071 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1072
1073 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
1074 args summaries of inlined edge unless it holds info about
1075 described reference.
1076
1077 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
1078
1079 * config/rs6000/rs6000.md (CC_any): New mode iterator.
1080 (*movcc_internal1): Rename to...
1081 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
1082
1083 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1084
1085 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
1086 (cgraph_node::create_virtual_clone): Copy it.
1087 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
1088 summaries.
1089 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
1090 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
1091 is disabled.
1092 (propagate_constants_across_call): If callee is not analyzed, give up.
1093 (propagate_constants_topo): Lower to bottom latties of all callees of
1094 functions with ipa-cp disabled.
1095 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
1096 (cgraph_edge_brings_value_p): Check for availability first.
1097 (create_specialized_node): Set ipcp_clone.
1098 (ipcp_store_bits_results): Check that info is present.
1099 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
1100 thunks.
1101 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
1102 conservative when callee summary is missing.
1103 (remap_edge_summaries): Lookup call summary only when needed.
1104 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
1105 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
1106 Use get_create.
1107 (ipa_analyze_node): Use get_create.
1108 (propagate_controlled_uses): Do not propagate when function is not
1109 analyzed.
1110 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
1111 (ipa_read_node_info): Use get_create.
1112 * ipa-prop.h (IPA_NODE_REF): Use get.
1113 (IPA_NODE_REF_GET_CREATE): New.
1114
1115 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1116
1117 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
1118 on function symbol.
1119
1120 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1121
1122 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
1123 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
1124 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
1125 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
1126
1127 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1128
1129 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
1130 capping the growth cumulated.
1131 (offline_size): Break out from ...
1132 (estimate_growth): ... here.
1133 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
1134 parameters.
1135 (growth_likely_positive): Turn to ...
1136 (growth_positive_p): Re-implement.
1137 * ipa-inline.h (growth_likely_positive): Remove.
1138 (growth_positive_p): Declare.
1139 * ipa-inline.c (want_inline_small_function_p): Use
1140 growth_positive_p.
1141 (want_inline_function_to_all_callers_p): Likewise.
1142
1143 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1144
1145 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
1146 calculation of min_size.
1147 (ipa_update_overall_fn_summary): Likewise.
1148
1149 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1150
1151 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
1152 estimate_edge_devirt_benefit when not computing hints;
1153 do not compute time when not asked for.
1154 (estimate_calls_size_and_time): Pass NULL hints and time when
1155 these are not computed; do not evaluate hint predicates when these are
1156 not computed.
1157 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
1158 frequency.
1159
1160 2019-11-09 Jakub Jelinek <jakub@redhat.com>
1161
1162 PR tree-optimization/92401
1163 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
1164 if res_op->code is an expression with code length 1.
1165 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
1166 if res_op->code is an expression with code length 2.
1167 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
1168 if res_op->code is an expression with code length 3.
1169
1170 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
1171
1172 * config/darwin.c (machopic_mcount_stub_name): Validate the
1173 symbol stub name when it is created.
1174 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
1175 stub validation.
1176
1177 2019-11-09 Jakub Jelinek <jakub@redhat.com>
1178
1179 * symtab.c: Fix comment typos.
1180 * cgraphunit.c: Likewise.
1181 * cgraph.h: Likewise.
1182 * cgraphclones.c: Likewise.
1183 * cgraph.c: Likewise.
1184 * varpool.c: Likewise.
1185 * tree-ssa-strlen.c: Likewise.
1186 * ipa-sra.c: Likewise.
1187 (scan_expr_access, check_all_callers_for_issues): Fix typo
1188 in a dump message.
1189
1190 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
1191
1192 * config/darwin-protos.h: Add include quard.
1193
1194 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
1195
1196 * range-op.h (range_operator::fold_range): Return result in a
1197 reference parameter instead of by value.
1198 (range_operator::wi_fold): Same.
1199 * range-op.cc (range_operator::wi_fold): Return result in a reference
1200 parameter instead of by value.
1201 (range_operator::fold_range): Same.
1202 (value_range_from_overflowed_bounds): Same.
1203 (value_range_with_overflow): Same
1204 (create_possibly_reversed_range): Same.
1205 (operator_equal::fold_range): Same.
1206 (operator_not_equal::fold_range): Same.
1207 (operator_lt::fold_range): Same.
1208 (operator_le::fold_range): Same.
1209 (operator_gt::fold_range): Same.
1210 (operator_ge::fold_range): Same.
1211 (operator_plus::wi_fold): Same.
1212 (operator_plus::op1_range): Change call to fold_range.
1213 (operator_plus::op2_range): Change call to fold_range.
1214 (operator_minus::wi_fold): Return result via reference parameter.
1215 (operator_minus::op1_range): Change call to fold_range.
1216 (operator_minus::op2_range): Change call to fold_range.
1217 (operator_min::wi_fold): Return result via reference parameter.
1218 (operator_max::wi_fold): Same.
1219 (cross_product_operator::wi_cross_product): Same.
1220 (operator_mult::wi_fold): Same.
1221 (operator_div::wi_fold): Same.
1222 (operator_div op_floor_div): Fix whitespace.
1223 (operator_exact_divide::op1_range): Change call to fold_range.
1224 (operator_lshift::fold_range): Return result via reference parameter.
1225 (operator_lshift::wi_fold): Same.
1226 (operator_rshift::fold_range): Same.
1227 (operator_rshift::wi_fold): Same.
1228 (operator_cast::fold_range): Same.
1229 (operator_cast::op1_range): Change calls to fold_range.
1230 (operator_logical_and::fold_range): Return result via reference.
1231 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
1232 (operator_bitwise_and::wi_fold): Return result via reference.
1233 (operator_logical_or::fold_range): Same.
1234 (operator_bitwise_or::wi_fold): Same.
1235 (operator_bitwise_xor::wi_fold): Same.
1236 (operator_trunc_mod::wi_fold): Same.
1237 (operator_logical_not::fold_range): Same.
1238 (operator_bitwise_not::fold_range): Same.
1239 (operator_bitwise_not::op1_range): Change call to fold_range.
1240 (operator_cst::fold_range): Return result via reference.
1241 (operator_identity::fold_range): Same.
1242 (operator_abs::wi_fold): Same.
1243 (operator_absu::wi_fold): Same.
1244 (operator_negate::fold_range): Same.
1245 (operator_negate::op1_range): Change call to fold_range.
1246 (operator_addr_expr::fold_range): Return result via reference.
1247 (operator_addr_expr::op1_range): Change call to fold_range.
1248 (operator_pointer_plus::wi_fold): Return result via reference.
1249 (operator_pointer_min_max::wi_fold): Same.
1250 (operator_pointer_and::wi_fold): Same.
1251 (operator_pointer_or::wi_fold): Same.
1252 (range_op_handler): Change call to fold_range.
1253 (range_cast): Same.
1254 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
1255 fold_range.
1256 (range_fold_unary_symbolics_p): Same.
1257 (range_fold_binary_expr): Same.
1258 (range_fold_unary_expr): Same.
1259
1260 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1261
1262 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
1263 vector type as an argument rather than reading it from the
1264 stmt_vec_info.
1265 (vect_create_epilog_for_reduction): Update accordingly.
1266 (vectorizable_reduction): Likewise.
1267 (vect_transform_cycle_phi): Likewise.
1268
1269 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
1270
1271 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
1272 the comparison codes that make sense for the mode used, and only the
1273 codes that can be done with a single branch instruction.
1274
1275 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
1276
1277 PR tree-optimization/92351
1278 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
1279 peeling the main loop for alignment, make sure to set the misalignment
1280 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
1281
1282 2019-11-08 Richard Biener <rguenther@suse.de>
1283
1284 * dbgcnt.def (ivopts_loop): Add.
1285 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
1286 ivopts_loop before optimizing a loop.
1287
1288 2019-11-08 Richard Biener <rguenther@suse.de>
1289
1290 PR ipa/92409
1291 * tree-inline.c (declare_return_variable): Properly handle
1292 type mismatches for the return slot.
1293
1294 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
1295
1296 PR target/92095
1297 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
1298 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
1299 change.
1300 (got_helper_needed): New static variable.
1301 (output_load_pcrel_sym): New function.
1302 (get_pc_thunk_name): Remove after inlining...
1303 (load_got_register): ...here. Rework the initialization of the GOT
1304 register and of the GOT helper.
1305 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
1306 (sparc_file_end): Test got_helper_needed to decide whether the GOT
1307 helper must be emitted. Use output_asm_insn instead of fprintf.
1308 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
1309 if optimization is enabled.
1310 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
1311 by calling output_load_pcrel_sym.
1312
1313 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1314
1315 * tree-sra.c (create_access): Delay disqualifying the base
1316 for poly_int values until we know we have a base.
1317
1318 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
1319
1320 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
1321 for loops with SIMDUID set. Enable epilogue vectorization for loops
1322 with SIMDLEN set after finding a main loop with a VF that matches it.
1323
1324 2019-11-08 Jakub Jelinek <jakub@redhat.com>
1325
1326 PR target/92038
1327 * gimple-ssa-store-merging.c (find_constituent_stores): For return
1328 value only, return non-NULL if there is a single non-clobber
1329 constituent store even if there are constituent clobbers and return
1330 one of clobber constituent stores if all constituent stores are
1331 clobbers.
1332 (split_group): Handle clobbers.
1333 (imm_store_chain_info::output_merged_store): When computing
1334 bzero_first, look after all clobbers at the start. Don't count
1335 clobber stmts in orig_num_stmts, except if the first orig store is
1336 a clobber covering the whole area and split_stores cover the whole
1337 area, consider equal number of stmts ok. Punt if split_stores
1338 contains only ->orig stores and their number plus number of original
1339 clobbers is equal to original number of stmts. For ->orig, look past
1340 clobbers in the constituent stores.
1341 (imm_store_chain_info::output_merged_stores): Don't remove clobber
1342 stmts.
1343 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
1344 rhs.
1345 (store_valid_for_store_merging_p): Allow clobber stmts.
1346 (verify_clear_bit_region_be): Fix up a thinko in function comment.
1347
1348 PR c++/92384
1349 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
1350 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
1351 slot.
1352 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
1353 force creation of a unique data.stack_parm slot.
1354
1355 2019-11-08 Richard Biener <rguenther@suse.de>
1356
1357 * genmatch.c (expr::gen_transform): Use the resimplify
1358 member function instead of hard-coding the gimple_resimplifyN variant.
1359 (dt_simplify::gen_1): Likewise.
1360
1361 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1362
1363 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
1364 POLY_INT_CST.
1365
1366 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1367
1368 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
1369 instead of INTEGER_CST.
1370
1371 2019-11-08 Richard Biener <rguenther@suse.de>
1372
1373 PR tree-optimization/92324
1374 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
1375 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
1376 sign-conversions as necessary.
1377 (vectorizable_reduction): Reject conversions in the chain
1378 that are not sign-conversions, base analysis on a non-converting
1379 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
1380 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
1381 for debug stmts.
1382 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
1383 (STMT_VINFO_REDUC_VECTYPE): Likewise.
1384
1385 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
1386
1387 PR target/92055
1388 * config/avr/avr.opt (-mdouble=, -mlong-double=):
1389 Fix a missing '-' when displaying these options in the
1390 help screen.
1391
1392 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1393
1394 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
1395
1396 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1397
1398 * config/aarch64/aarch64-builtins.c
1399 (aarch64_builtin_vectorized_function): Remove bswap handling.
1400
1401 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1402
1403 * tree-core.h (tree_type_common::indivisible_p): New member variable.
1404 * tree.h (TYPE_INDIVISIBLE_P): New macro.
1405 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
1406 Treat the vector types as indivisible.
1407
1408 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1409
1410 * optabs.def (gather_load_optab, mask_gather_load_optab)
1411 (scatter_store_optab, mask_scatter_store_optab): Turn into
1412 conversion optabs, with the offset mode given explicitly.
1413 * doc/md.texi: Update accordingly.
1414 * config/aarch64/aarch64-sve-builtins-base.cc
1415 (svld1_gather_impl::expand): Likewise.
1416 (svst1_scatter_impl::expand): Likewise.
1417 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
1418 (expand_scatter_store_optab_fn): Likewise.
1419 (direct_gather_load_optab_supported_p): Likewise.
1420 (direct_scatter_store_optab_supported_p): Likewise.
1421 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
1422 to be argument 4.
1423 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
1424 (internal_gather_scatter_fn_supported_p): Replace the offset sign
1425 argument with the offset vector type. Require the two vector
1426 types to have the same number of elements but allow their element
1427 sizes to be different. Treat the optabs as conversion optabs.
1428 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
1429 prototype accordingly.
1430 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
1431 (supports_vec_convert_optab_p): ...this new function.
1432 (supports_vec_gather_load_p): Update accordingly.
1433 (supports_vec_scatter_store_p): Likewise.
1434 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
1435 Replace the offset sign and bits parameters with a scalar type tree.
1436 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
1437 Pass back the offset vector type instead of the scalar element type.
1438 Allow the offset to be wider than the memory elements. Search for
1439 an offset type that the target supports, stopping once we've
1440 reached the maximum of the element size and pointer size.
1441 Update call to internal_gather_scatter_fn_supported_p.
1442 (vect_check_gather_scatter): Update calls accordingly.
1443 When testing a new scale before knowing the final offset type,
1444 check whether the scale is supported for any signed or unsigned
1445 offset type. Check whether the target supports the source and
1446 target types of a conversion before deciding whether to look
1447 through the conversion. Record the chosen offset_vectype.
1448 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
1449 (vect_recog_gather_scatter_pattern): Get the scalar offset type
1450 directly from the gs_info's offset_vectype instead. Pass a zero
1451 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
1452 * tree-vect-stmts.c (check_load_store_masking): Update call to
1453 internal_gather_scatter_fn_supported_p, passing the offset vector
1454 type recorded in the gs_info.
1455 (vect_truncate_gather_scatter_offset): Update call to
1456 vect_check_gather_scatter, leaving it to search for a valid
1457 offset vector type.
1458 (vect_use_strided_gather_scatters_p): Convert the offset to the
1459 element type of the gs_info's offset_vectype.
1460 (vect_get_gather_scatter_ops): Get the offset vector type directly
1461 from the gs_info.
1462 (vect_get_strided_load_store_ops): Likewise.
1463 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
1464 and IFN_MASK_GATHER_LOAD.
1465 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
1466 (gather_load<mode><v_int_equiv>): ...this.
1467 (mask_gather_load<mode>): Rename to...
1468 (mask_gather_load<mode><v_int_equiv>): ...this.
1469 (scatter_store<mode>): Rename to...
1470 (scatter_store<mode><v_int_equiv>): ...this.
1471 (mask_scatter_store<mode>): Rename to...
1472 (mask_scatter_store<mode><v_int_equiv>): ...this.
1473
1474 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
1475
1476 PR target/92132
1477 * config/rs6000/predicates.md
1478 (signed_or_equality_comparison_operator): New predicate.
1479 (unsigned_or_equality_comparison_operator): Likewise.
1480 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
1481 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
1482 * config/rs6000/vector.md
1483 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
1484 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
1485 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
1486 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
1487 vector modes and same-size integer vector modes.
1488 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
1489 (vector_lt<mode> for VEC_F): New expand.
1490 (vector_le<mode> for VEC_F): Likewise.
1491 (vector_ne<mode> for VEC_F): Likewise.
1492 (vector_unge<mode> for VEC_F): Likewise.
1493 (vector_ungt<mode> for VEC_F): Likewise.
1494 (vector_unle<mode> for VEC_F): Likewise.
1495 (vector_unlt<mode> for VEC_F): Likewise.
1496 (vector_uneq<mode>): Expose name.
1497 (vector_ltgt<mode>): Likewise.
1498 (vector_unordered<mode>): Likewise.
1499 (vector_ordered<mode>): Likewise.
1500
1501 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
1502
1503 PR target/92295
1504 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
1505 Enhance ix86_expand_vector_init_concat.
1506
1507 2019-11-08 Joseph Myers <joseph@codesourcery.com>
1508
1509 * doc/invoke.texi (-Wold-style-definition): Document () not being
1510 considered an old-style definition for C2x.
1511
1512 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
1513
1514 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
1515 Enhance comment.
1516 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
1517 insn patterns using ldcw instruction.
1518 (memory_barrier): Remove insn pattern using sync instruction.
1519 * config/pa/pa.opt (coherent-ldcw): New option.
1520 (ordered): New option.
1521
1522 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
1523
1524 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
1525 valid conditions.
1526
1527 2019-11-07 Jakub Jelinek <jakub@redhat.com>
1528
1529 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
1530 typo - mistmatch -> mismatch.
1531 * ipa-profile.c (ipa_profile): Likewise.
1532 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
1533 - mistmatch -> mismatch.
1534
1535 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
1536
1537 * simplify-rtx.c (comparison_to_mask): New function.
1538 (mask_to_comparison): New function.
1539 (simplify_logical_relational_operation): New function.
1540 (simplify_binary_operation_1): Call
1541 simplify_logical_relational_operation.
1542
1543 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
1544
1545 PR other/92090
1546 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
1547 modes for integer constants.
1548
1549 2019-11-07 Jan Hubicka <jh@suse.cz>
1550
1551 PR ipa/92406
1552 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
1553 summary.
1554
1555 2019-11-07 Jan Hubicka <jh@suse.cz>
1556
1557 * optc-save-gen.awk: Generate cl_target_option_free
1558 and cl_optimization_option_free.
1559 * opth-en.awk: Declare cl_target_option_free
1560 and cl_optimization_option_free.
1561 * tree.c (free_node): Use it.
1562
1563 2019-11-06 Jan Hubicka <jh@suse.cz>
1564
1565 * lto-streamer-in.c: Include alloc-pool.h.
1566 (freeing_string_slot_hasher): Remove.
1567 (string_slot_allocator): New object allocator.
1568 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
1569 (file_name_obstack): New obstack.
1570 (canon_file_name): Allocate in obstack and allocator.
1571 (lto_reader_init): Initialize obstack and allocator.
1572 (lto_free_file_name_hash): New function.
1573 * lto-streamer.h (lto_free_file_name_hash): New.
1574
1575 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
1576
1577 PR tree-optimization/89134
1578 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
1579 * params.def: Add min-loop-cond-split-prob.
1580 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
1581 outside checks on loop into the function.
1582 (split_info): New class.
1583 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
1584 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
1585 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
1586 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
1587 (stmt_semi_invariant_p, branch_removable_p): Likewise.
1588 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
1589 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
1590 (split_loop_on_cond): Likewise.
1591 (tree_ssa_split_loops): Add loop split on conditional statement.
1592
1593 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
1594
1595 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
1596 pattern.
1597
1598 2019-11-07 Richard Biener <rguenther@suse.de>
1599
1600 PR tree-optimization/92405
1601 * tree-vect-loop.c (vectorizable_reduction): Appropriately
1602 restrict lane-reducing ops to single stmt chains.
1603
1604 2019-11-07 Martin Jambor <mjambor@suse.cz>
1605
1606 PR lto/70929
1607 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
1608 * cgraph.h (gimple_check_call_matching_types): Remove
1609 * cgraph.c (gimple_check_call_args): Likewise.
1610 (gimple_check_call_matching_types): Likewise.
1611 (symbol_table::create_edge): Do not call
1612 gimple_check_call_matching_types.
1613 (cgraph_edge::make_direct): Likewise.
1614 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
1615 * value-prof.h (check_ic_target): Remove.
1616 * value-prof.c (check_ic_target): Remove.
1617 (gimple_ic_transform): Do nat call check_ic_target.
1618 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
1619 (afdo_indirect_call): Likewise.
1620 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
1621 gimple_check_call_matching_types.
1622 * ipa-inline.c (early_inliner): Likewise.
1623
1624 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1625
1626 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
1627 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
1628 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
1629 * config/arm/arm_acle_builtins.def: Define builtins for the above.
1630 * config/arm/iterators.md (USSAT16): New int_iterator.
1631 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
1632 (sup): Likewise.
1633 * config/arm/predicates.md (ssat16_imm): New predicate.
1634 (usat16_imm): Likewise.
1635 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
1636
1637 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1638
1639 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
1640 New define_insns.
1641 (arm_<simd32_op>): New define_expands.
1642 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
1643 __smuad, __smuadx): Define.
1644 * config/arm/arm_acle_builtins.def: Define builtins for the above.
1645 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
1646 (SIMD32_BINOP_Q): Likewise.
1647 (simd32_op): Handle the above.
1648 * config/arm/unspecs.md: Define unspecs for the above.
1649
1650 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1651
1652 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
1653 * config/arm/arm.md (APSRGE_REGNUM): Define.
1654 (arm_<simd32_op>): New define_insn.
1655 (arm_sel): Likewise.
1656 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
1657 (CALL_USED_REGISTERS): Likewise.
1658 (REG_ALLOC_ORDER): Likewise.
1659 (FIRST_PSEUDO_REGISTER): Update value.
1660 (ARM_GE_BITS_READ): Define.
1661 * config/arm/arm.c (arm_conditional_register_usage): Clear
1662 APSRGE_REGNUM from operand_reg_set.
1663 (arm_ge_bits_access): Define.
1664 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
1665 ARM_BUIILTIN_sel.
1666 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
1667 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
1668 FAIL if ARM_GE_BITS_READ.
1669 (*arm_add<mode>3): New define_insn.
1670 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
1671 (*arm_sub<mode>3): New define_insn.
1672 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
1673 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
1674 __usub16): Define.
1675 * config/arm/arm_acle_builtins.def: Define builtins for the above.
1676 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
1677 (simd32_op): Handle the above.
1678 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
1679 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
1680 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
1681 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
1682
1683 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1684
1685 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
1686 (arm_smlabb): New define_expand.
1687 (*maddhisi4tb): Rename to...
1688 (maddhisi4tb): ... This.
1689 (*maddhisi4tt): Rename to...
1690 (maddhisi4tt): ... This.
1691 (arm_smlatb_setq): New define_insn.
1692 (arm_smlatb): New define_expand.
1693 (arm_smlatt_setq): New define_insn.
1694 (arm_smlatt): New define_expand.
1695 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
1696 (arm_<smlaw_op>): New define_expand.
1697 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
1698 __smlawb, __smlawt): Define.
1699 * config/arm_acle_builtins.def: Define builtins for the above.
1700 * config/arm/iterators.md (SMLAWBT): New int_iterator.
1701 (slaw_op): New int_attribute.
1702 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
1703
1704 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1705
1706 * config/arm/arm.md (arm_<ss_op>): New define_expand.
1707 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
1708 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
1709 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
1710 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
1711 (ss_op): New code_attr.
1712
1713 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1714
1715 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
1716 * config/arm/arm.md (APSRQ_REGNUM): Define.
1717 (add_setq): New define_subst.
1718 (add_clobber_q_name): New define_subst_attr.
1719 (add_clobber_q_pred): Likewise.
1720 (maddhisi4): Change to define_expand. Split into mult and add if
1721 ARM_Q_BIT_READ.
1722 (arm_maddhisi4): New define_insn.
1723 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
1724 (*maddhisi4tt): Likewise.
1725 (arm_ssat): New define_expand.
1726 (arm_usat): Likewise.
1727 (arm_get_apsr): New define_insn.
1728 (arm_set_apsr): Likewise.
1729 (arm_saturation_occurred): New define_expand.
1730 (arm_set_saturation): Likewise.
1731 (*satsi_<SAT:code>): Rename to...
1732 (satsi_<SAT:code><add_clobber_q_name>): ... This.
1733 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
1734 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
1735 (CALL_USED_REGISTERS): Mark apsrq.
1736 (FIRST_PSEUDO_REGISTER): Update value.
1737 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
1738 (machine_function): Add q_bit_access.
1739 (ARM_Q_BIT_READ): Define.
1740 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
1741 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
1742 operand_reg_set.
1743 (arm_q_bit_access): Define.
1744 * config/arm/arm-builtins.c: Include stringpool.h.
1745 (arm_sat_binop_imm_qualifiers,
1746 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
1747 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
1748 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
1749 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
1750 SET_SAT_QUALIFIERS): Likewise.
1751 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
1752 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
1753 Handle 0 argument expander.
1754 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
1755 (arm_check_builtin_call): Define.
1756 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
1757 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
1758 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
1759 (arm_q_bit_access): Likewise.
1760 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
1761 __saturation_occurred, __set_saturation_occurred): Define.
1762 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
1763 saturation_occurred, set_saturation_occurred.
1764 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
1765 (UNSPEC_APSR_READ): Likewise.
1766 (VUNSPEC_APSR_WRITE): Likewise.
1767 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
1768 (*arm_ssadd<mode>3): New define_insn.
1769 (sssub<mode>3): Convert to define_expand.
1770 (*arm_sssub<mode>3): New define_insn.
1771 (ssmulsa3): Convert to define_expand.
1772 (*arm_ssmulsa3): New define_insn.
1773 (usmulusa3): Convert to define_expand.
1774 (*arm_usmulusa3): New define_insn.
1775 (ssmulha3): FAIL if ARM_Q_BIT_READ.
1776 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
1777 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
1778
1779 2019-11-07 Martin Liska <mliska@suse.cz>
1780
1781 PR c++/92354
1782 * cgraph.c (delete_function_version): Clear global
1783 variable version_info_node if equal to deleted
1784 function.
1785
1786 2019-11-07 Martin Liska <mliska@suse.cz>
1787
1788 * fold-const.c (operand_compare::operand_equal_p): Add comparison
1789 of CONSTRUCTOR_NO_CLEARING.
1790 (operand_compare::hash_operand): Likewise.
1791
1792 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
1793
1794 Support 64-bit double and 64-bit long double configurations.
1795
1796 PR target/92055
1797 * config.gcc (tm_defines) [avr]: Set from --with-double=,
1798 --with-long-double=.
1799 * config/avr/t-multilib: Remove.
1800 * config/avr/t-avr: Output of genmultilib.awk is now fully
1801 dynamically generated and no more part of the repo.
1802 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
1803 Pass them down to...
1804 * config/avr/genmultilib.awk: ...here and handle them.
1805 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
1806 (-mlong-double=, avr_long_double). New option and var.
1807 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
1808 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
1809 Set default as requested by --with-double=
1810 (TARGET_HANDLE_OPTION): Define to this...
1811 (avr_handle_option): ...new hook worker.
1812 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
1813 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
1814 (avr_double_lib): New proto for spec function.
1815 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
1816 (DRIVER_SELF_SPECS): Call %:double-lib.
1817 * config/avr/avr.c (avr_option_override): Assert
1818 sizeof(long double) >= sizeof(double) for the target.
1819 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
1820 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
1821 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
1822 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
1823 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
1824 New built-in define depending on --with-double=, --with-long-double=.
1825 * config/avr/driver-avr.c (avr_double_lib): New spec function.
1826 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
1827 * doc/install.texi (Cross-Compiler-Specific Options)
1828 <--with-double=, --with-long-double=>: Doc.
1829
1830 2019-11-07 Richard Biener <rguenther@suse.de>
1831
1832 * dbgcnt.def (gimple_unroll): New.
1833 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
1834 gimple_unroll debug counter before applying transform.
1835 (try_peel_loop): Likewise.
1836
1837 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
1838
1839 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
1840 frame pointer in multiple registers.
1841 (ira_setup_eliminable_regset): Setup eliminable_regset,
1842 ira_no_alloc_regs and regs_ever_live for frame pointer in
1843 multiple registers.
1844
1845 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
1846
1847 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
1848 V2DI modes.
1849
1850 2019-11-06 Jan Hubicka <jh@suse.cz>
1851
1852 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
1853 allocations.
1854 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
1855 Do not silently ignore summary corruptions.
1856
1857 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
1858
1859 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
1860 the epilogue if there are peeled iterations for it to handle.
1861
1862 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
1863
1864 * config/arc/arc.c (arc_split_ior): Add asserts.
1865 (arc_split_mov_const): Likewise.
1866 (arc_check_ior_const): Do not match known short immediate values.
1867 * config/arc/arc.md (movsi): Don't split predicated instructions
1868 (iorsi): Likewise.
1869
1870 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
1871
1872 * config/arc/arc.opt (mea): Update help string.
1873 * doc/invoke.texi(ARC): Update mea option info.
1874
1875 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
1876
1877 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
1878 (zero_extendqisi2_ac): Likewise.
1879 (zero_extendhisi2_i): Likewise.
1880 (extendqihi2_i): Likewise.
1881 (extendqisi2_ac): Likewise.
1882 (extendhisi2_i): Likewise.
1883
1884 2019-11-06 Richard Biener <rguenther@suse.de>
1885
1886 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
1887 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
1888 Simplify single_defuse_cycle condition.
1889
1890 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
1891
1892 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
1893 epilogue loop, make sure that the VF is small enough or that
1894 the epilogue loop can be fully-masked.
1895
1896 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
1897
1898 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
1899 loop when we've finished, rather than returning directly from
1900 the loop. Use a local variable to track whether we're still
1901 searching for the preferred simdlen. Make vect_epilogues
1902 record whether the next iteration should try to treat the
1903 loop as an epilogue.
1904
1905 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
1906
1907 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
1908 __arc_hard_float__, __ARC_HARD_FLOAT__,
1909 __arc_soft_float__, __ARC_SOFT_FLOAT__
1910
1911 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
1912
1913 PR tree-optimization/92317
1914 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
1915 update phi's with constant phi arguments.
1916
1917 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
1918 Alexandre Oliva <oliva@adacore.com>
1919
1920 * common.opt (-fcallgraph-info[=]): New option.
1921 * doc/invoke.texi (Developer options): Document it.
1922 * opts.c (common_handle_option): Handle it.
1923 * builtins.c (expand_builtin_alloca): Record allocation if
1924 -fcallgraph-info=da.
1925 * calls.c (expand_call): If -fcallgraph-info, record the call.
1926 (emit_library_call_value_1): Likewise.
1927 * flag-types.h (enum callgraph_info_type): New type.
1928 * explow.c: Include stringpool.h.
1929 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
1930 * function.c (allocate_stack_usage_info): New.
1931 (allocate_struct_function): Call it for -fcallgraph-info.
1932 (prepare_function_start): Call it otherwise.
1933 (record_final_call, record_dynamic_alloc): New.
1934 * function.h (struct callinfo_callee): New.
1935 (CALLEE_FROM_CGRAPH_P): New.
1936 (struct callinfo_dalloc): New.
1937 (struct stack_usage): Add callees and dallocs.
1938 (record_final_call, record_dynamic_alloc): Declare.
1939 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
1940 object if -fcallgraph-info=da.
1941 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
1942 * print-tree.h (print_decl_identifier): Declare.
1943 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
1944 * print-tree.c: Include print-tree.h.
1945 (print_decl_identifier): New function.
1946 * toplev.c: Include print-tree.h.
1947 (callgraph_info_file): New global variable.
1948 (callgraph_info_external_printed): Likewise.
1949 (output_stack_usage): Rename to...
1950 (output_stack_usage_1): ... this. Make it static, add cf
1951 parameter. If -fcallgraph-info=su, print stack usage to cf.
1952 If -fstack-usage, use print_decl_identifier for
1953 pretty-printing.
1954 (INDIRECT_CALL_NAME): New.
1955 (dump_final_node_vcg_start): New.
1956 (dump_final_callee_vcg, dump_final_node_vcg): New.
1957 (output_stack_usage): New.
1958 (lang_dependent_init): Open and start file if
1959 -fcallgraph-info. Allocated callgraph_info_external_printed.
1960 (finalize): If callgraph_info_file is not null, finish it,
1961 close it, and release callgraph_info_external_printed.
1962
1963 2019-11-06 Gergö Barany <gergo@codesourcery.com>
1964 Frederik Harwath <frederik@codesourcery.com>
1965 Thomas Schwinge <thomas@codesourcery.com>
1966
1967 * omp-low.c (struct omp_context): New fields
1968 local_reduction_clauses, outer_reduction_clauses.
1969 (new_omp_context): Initialize these.
1970 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
1971 (scan_omp_for): Check reduction clauses for incorrect nesting.
1972
1973 2019-11-06 Jakub Jelinek <jakub@redhat.com>
1974
1975 PR inline-asm/92352
1976 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
1977 operands with non-memory constraints.
1978
1979 2019-11-05 Martin Sebor <msebor@redhat.com>
1980
1981 PR tree-optimization/92373
1982 * tree.c (component_ref_size): Only consider initializers of objects
1983 of matching struct types.
1984 Return null for instances of interior zero-length arrays.
1985
1986 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
1987
1988 * doc/md.texi (Insn Splitting): Fix combiner documentation.
1989
1990 2019-11-05 Jason Merrill <jason@redhat.com>
1991
1992 PR tree-optimization/91825
1993 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
1994
1995 2019-11-05 Jim Wilson <jimw@sifive.com>
1996
1997 PR middle-end/92263
1998 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
1999 optimize_insn_for_speed_p is true.
2000
2001 2019-11-05 Martin Sebor <msebor@redhat.com>
2002
2003 PR middle-end/92333
2004 PR middle-end/82608
2005 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
2006 size.
2007 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
2008 name and location for a temporary variable.
2009
2010 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2011
2012 * tree-vrp.c (value_range::value_range): Fix whitespace.
2013 (defined_ranges_p): Same.
2014 (range_fold_binary_symbolics_p): Same.
2015 (value_range::intersect_helper): Same.
2016 (value_range::union_helper): Same.
2017 * tree-vrp.h (range_fold_binary_expr): Same.
2018
2019 2019-11-04 Martin Sebor <msebor@redhat.com>
2020
2021 PR middle-end/92341
2022 PR middle-end/82612
2023 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
2024 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
2025 of message printed in a warning for empty arrays.
2026 (vrp_prop::check_mem_ref): Also handle function parameters and
2027 empty arrays.
2028
2029 2019-11-05 Richard Biener <rguenther@suse.de>
2030
2031 PR tree-optimization/92371
2032 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
2033 on the original stmt of live stmts in the chain.
2034 (vectorizable_live_operation): Look at the original stmt when
2035 checking STMT_VINFO_REDUC_DEF.
2036
2037 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2038
2039 * gimple-fold.c, gimple-loop-versioning.cc,
2040 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
2041 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
2042 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
2043 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
2044 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
2045 value_range_equiv, and value_range_base to value_range.
2046
2047 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
2048
2049 * expr.c (build_personality_function): Fix generated type to
2050 match actual personality functions.
2051
2052 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
2053
2054 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
2055 enough bytes for the NULL character.
2056
2057 2019-11-05 Richard Biener <rguenther@suse.de>
2058
2059 PR tree-optimization/92280
2060 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
2061 had a single use do not create a new CTOR.
2062 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
2063 BIT_FIELD_REF of a CTOR via GENERIC.
2064
2065 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
2066
2067 * config/s390/s390.c (s390_vector_alignment): Check if the value
2068 fits into uhwi before using it.
2069
2070 2019-11-05 Martin Liska <mliska@suse.cz>
2071
2072 * symbol-summary.h: Use ggc_delete.
2073
2074 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
2075
2076 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
2077 Change vec_perm field to 10.
2078
2079 2019-11-05 Arnaud Charlet <charlet@adacore.com>
2080
2081 * doc/install.texi: Further fix syntax for html generation.
2082
2083 2019-11-05 Martin Liska <mliska@suse.cz>
2084
2085 * symbol-summary.h: Rename allocator to m_allocator and
2086 add comment.
2087
2088 2019-11-05 Richard Biener <rguenther@suse.de>
2089
2090 PR tree-optimization/92324
2091 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
2092 all signed or unsigned operations.
2093
2094 2019-11-05 Jan Hubicka <jh@suse.cz>
2095
2096 * hsa-brig.c: Include alloc-pool.h
2097 * hsa-dump.c: Likewise.
2098 * hsa-gen.c: Likewise.
2099 * hse-regalloc.c: Likewise.
2100 * ipa-hsa.c: Likewise.
2101 * ipa-predicate.c: Likewise.
2102 * ipa-reference.c: Likewise.
2103 * ipa-sra.c: Likewise.
2104 * omp-expand.c: Likewise.
2105 * omp-general.c: Likewise.
2106 * omp-low.c: Likewise.
2107 * sumbol-summary.h (function_summary_base): Add allocator.
2108 (function_summary<T *>::function_summary): Update construction.
2109 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
2110 (call_summary_base): Add allcator.
2111 (call_summary<T *>::call_summary): Update construction.
2112 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
2113
2114 2019-11-05 Jakub Jelinek <jakub@redhat.com>
2115
2116 PR tree-optimization/91945
2117 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
2118 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
2119 Formatting fix.
2120
2121 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2122
2123 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
2124 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
2125 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
2126 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
2127 (vrp_set_zero_nonzero_bits): Move to...
2128 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
2129 (vr_values::simplify_bit_ops_using_ranges): Rename
2130 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
2131
2132 2019-11-05 Martin Liska <mliska@suse.cz>
2133
2134 PR c++/92339
2135 * fold-const.c (operand_compare::hash_operand): Remove
2136 FIELD_DECL handling.
2137
2138 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2139
2140 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
2141 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
2142 static.
2143
2144 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2145
2146 * tree-vrp.c (value_range_base::operator==): Use equal_p to
2147 properly handle symbolics.
2148 (range_compatible_p): Remove.
2149
2150 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
2151
2152 * common.opt (-fabi-version): Document =14.
2153 * doc/invoke.texi (C++ Dialect Options): Likewise.
2154
2155 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2156
2157 * tree-vrp.c (value_range_base::set): Do not special case pointers.
2158
2159 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
2160
2161 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
2162 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
2163 gcn_omp_device_kind_arch_isa.
2164 * config/gcn/t-omp-device: New file.
2165 * configure.ac: Support gcn for omp_device_property.
2166 * configure: Regenerate.
2167
2168 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2169
2170 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
2171 (vrp_val_max): Same.
2172 (vrp_val_is_min): Same.
2173 (vrp_val_is_max): Same.
2174 (value_range_base::nonzero_p): Remove last argument to
2175 vrp_val_is_max.
2176 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
2177 (vrp_val_max): Same.
2178 (vrp_val_is_min): Same.
2179 (vrp_val_is_max): Same.
2180 (value_range_base::set_varying): Remove last argument to vrp_val*.
2181 (value_range_base::dump): Same.
2182 (value_range_base::set): Same.
2183 (value_range_base::normalize_symbolics): Same.
2184 (value_range_base::num_pairs): Same.
2185 (value_range_base::lower_bound): Same.
2186 (value_range_base::upper_bound): Same.
2187 (ranges_from_anti_range): Remove handle_pointers argument.
2188 (value_range_base::singleton_p): Remove last argument to
2189 ranges_from_anti_range.
2190
2191 2019-11-04 Jan Hubicka <jh@suse.cz>
2192
2193 * ipa-reference.c (init_function_info): Initialize
2194 info->global.statics_read.
2195
2196 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2197
2198 * tree-vrp.c (value_range_base::invert): Use constructors to build
2199 range.
2200
2201 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2202
2203 * tree-vrp.c (range_int_cst_singleton_p): Remove.
2204 * tree-vrp.h (range_int_cst_singleton_p): Remove.
2205
2206 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2207
2208 * tree-vrp.c (value_range_base::normalize_addresses): Handle
2209 VR_UNDEFINED.
2210
2211 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2212
2213 * tree-vrp.c (dump_assert_info): New.
2214 (dump_asserts_info): New.
2215
2216 2019-11-04 Jan Hubicka <jh@suse.cz>
2217
2218 * ipa-inline-transform.c: Include ipa-utils.h
2219 (inline_call): Set thunk_expansion flag.
2220 * ipa-utils.h (thunk_expansion): Declare.
2221 * ipa-devirt.c (thunk_expansion): New global var.
2222 (devirt_node_removal_hook): Do not invalidate cache while
2223 doing thunk expansion.
2224
2225 2019-11-04 Tamar Christina <tamar.christina@arm.com>
2226
2227 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
2228
2229 2019-11-04 Martin Sebor <msebor@redhat.com>
2230
2231 PR tree-optimization/92349
2232 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
2233 memebers have constant sizes.
2234
2235 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
2236
2237 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
2238 parameter.
2239 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
2240 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
2241 vect_analyze_loop.
2242
2243 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
2244
2245 * expr.c (store_constructor): Modify to handle single element vectors.
2246 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
2247 constructors.
2248 (vect_slp_check_for_constructors): New function.
2249 (vect_slp_analyze_bb_1): Call new function to check for vector
2250 constructors.
2251 (vectorize_slp_instance_root_stmt): New function.
2252 (vect_schedule_slp): Call new function to vectorize root stmt of vector
2253 constructors.
2254 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
2255
2256 2019-11-04 Richard Biener <rguenther@suse.de>
2257
2258 PR tree-optimization/92345
2259 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
2260 we produced a reduction chain.
2261 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
2262 LOOP_VINFO_REDUCTIONS.
2263
2264 2019-11-04 Jan Hubicka <jh@suse.cz>
2265
2266 * cgraphclones.c (cgraph_node::create_version_clone): Do not
2267 duplicate summaries.
2268 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
2269 first.
2270 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
2271 access call summaries.
2272 (dump_ipa_call_summary): Be ready for missing edge summaries.
2273 (analyze_function_body): Use get instead of get_create to access
2274 edge summary.
2275 (estimate_calls_size_and_time): Do not access summaries of
2276 inlined edges; sanity check they are missing.
2277 (ipa_call_context::estimate_size_and_time): Use get instead
2278 of get_create to access node summary.
2279 (inline_update_callee_summaries): Do not update depth of
2280 inlined edge.
2281 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
2282 growth caches.
2283 (ipa_merge_fn_summary_after_inlining): Use get instead
2284 of get_create.
2285 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
2286 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
2287 fast summary.
2288 (initialize_growth_caches): Update.
2289 (do_estimate_edge_time): Remove redundant copy of context.
2290 (ipa_remove_from_growth_caches): New function.
2291 * ipa-inline.c (flatten_function): Update overall summary
2292 only when optimizing.
2293 (inline_to_all_callers): Update overall summary of function
2294 inlined to.
2295 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
2296 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
2297 to false.
2298
2299 2019-11-04 Richard Biener <rguenther@suse.de>
2300
2301 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
2302 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
2303
2304 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
2305
2306 * ggc-common.c: Include system.h before malloc.h.
2307
2308 2019-11-04 Alexandre Oliva <oliva@adacore.com>
2309
2310 * configure.ac: Pass --enable-obsolete=* and
2311 --enable-option-checking=* down to build configure, and fail
2312 if it fails. AC_SUBST HAVE_AUTO_BUILD.
2313 * configure: Rebuild.
2314 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
2315 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
2316
2317 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2318
2319 * config.in: Regenerate.
2320 * config/msp430/msp430.c (msp430_option_override): Emit an error if
2321 -mtiny-printf is used without GCC being configured with
2322 --enable-newlib-nano-formatted-io.
2323 * config/msp430/msp430.h (LINK_SPEC): Pass
2324 "--wrap puts --wrap printf" when -mtiny-printf is used.
2325 * config/msp430/msp430.opt: Document -mtiny-printf.
2326 * configure: Regenerate.
2327 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
2328 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
2329 --enable-newlib-nano-formatted-io is passed.
2330 * doc/invoke.texi: Document -mtiny-printf.
2331
2332 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2333
2334 * configure: Regenerate.
2335
2336 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2337
2338 * config/msp430/driver-msp430.c
2339 (msp430_get_linker_devices_include_path): New spec function.
2340 * config/msp430/msp430-devices.c (msp430_dirname): New function.
2341 (extract_devices_dir_from_exec_prefix): New function.
2342 (extract_devices_dir_from_collect_gcc): New function.
2343 (msp430_check_env_var_for_devices): New function.
2344 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
2345 (parse_devices_csv): Call msp430_check_env_var_for_devices if
2346 devices.csv was not found using other methods.
2347 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
2348 New prototype.
2349 (msp430_dirname): Likewise.
2350 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
2351 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
2352 msp430_get_linker_devices_include_path.
2353 (TARGET_EXTRA_PRE_INCLUDES): Define.
2354 * doc/invoke.texi: Document new ways of searching for support files.
2355
2356 2019-11-04 Richard Biener <rguenther@suse.de>
2357
2358 PR tree-optimization/92301
2359 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
2360 as required by epilogue generation
2361
2362 2019-11-04 Martin Liska <mliska@suse.cz>
2363
2364 PR ipa/92304
2365 * fold-const.c (operand_compare::hash_operand): Fix field
2366 hashing of CONSTRUCTOR.
2367
2368 2019-11-04 Martin Liska <mliska@suse.cz>
2369
2370 * ggc.h (ggc_delete): New function.
2371 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
2372 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
2373 (ipa_free_all_node_params): Likewise.
2374 * ipa-sra.c (ipa_sra_analysis): Likewise.
2375
2376 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
2377
2378 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
2379 set_switch_stmt_execution_predicate, compute_bb_predicates,
2380 will_be_nonconstant_expr_predicate,
2381 phi_result_unknown_predicate,
2382 analyze_function_body): Pass arround params summary.
2383 (ipa_call_context::duplicate_from): New comment;
2384 only duplicate useful values.
2385 (ipa_call_context::equal_to): Only compare useful values.
2386 (remap_edge_summaries): Pass params_summary.
2387 (remap_hint_predicate): Likewise.
2388 (ipa_merge_fn_summary_after_inlining): Likewise.
2389 (inline_read_section): Initialize params summary used flags.
2390 * ipa-predicate.c (predicate::remap_after_inlining): Pass
2391 around param_summary.
2392 (add_condition): Initialized used params summary flags.
2393 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
2394 (inline_param_summary::useless_p): New predicate.
2395 (remap_after_inlining, add_condition): Update prototype
2396 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
2397 move_cost.
2398 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
2399 summaries.
2400 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
2401 (ipa_analyze_virtual_call_uses): Likewise.
2402 (update_indirect_edges_after_inlining): Update param summaries.
2403 (ipa_print_node_params): Print used flags.
2404 (ipa_read_indirect_edge_info): Update param summareis.
2405 * ipa-prop.h (ipa_param_descriptor): Add
2406 used_by_ipa_predicates, used_by_indirect_call
2407 and used_by_polymorphic_call.
2408 (ipa_set_param_used_by_ipa_predicates,
2409 ipa_set_param_used_by_indirect_call,
2410 ipa_set_param_used_by_polymorphic_call,
2411 ipa_is_param_used_by_ipa_predicates,
2412 ipa_is_param_used_by_indirect_call,
2413 ipa_is_param_used_by_polymorphic_call): New inline functions.
2414
2415 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
2416
2417 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
2418 member function.
2419 (ipa_call_context::release): Add ALL parameter.
2420 (ipa_call_context::equal_to): New member function.
2421 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
2422 duplicate_form, release, equal_to and exists_p member functoins.
2423 * ipa-inline-analysis.c (node_context_cache_entry): New
2424 class.
2425 (node_context_summary): Likewise.
2426 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
2427 node_context_clear): New static vars.
2428 (initialize_growth_caches): New function.
2429 (free_growth_caches): Also delete node_context_cache; output stats.
2430 (do_estimate_edge_time): Cache contexts.
2431 (reset_node_cache): New function.
2432 * ipa-inline.c (reset_edge_caches): Reset also node cache.
2433 (inline_small_functions): Initialize growth caches.
2434 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
2435 Declare.
2436 * ipa-predicate.h (inline_param_summary::equal_to): New.
2437 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
2438 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
2439 (ipa_agg_jump_function): Implement equal_to member function.
2440
2441 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
2442
2443 * ipa-fnsummary.c (inline_read_section): Set vector size
2444 ahead of time.
2445
2446 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
2447
2448 * ipa-fnsummary.c (ipa_call_context): New constructor.
2449 (estimate_node_size_and_time): Turn to ...
2450 (ipa_call_context::estimate_size_and_time): ... this one.
2451 (ipa_call_context::release): New.
2452 * ipa-fnsummary.h (ipa_call_context): New class.
2453 (estimate_node_size_and_time): Remove.
2454 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
2455 do_estimate_edge_hints): Update.
2456
2457 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
2458
2459 * config.in: Regenerate.
2460 * configure: Regenerate.
2461 * configure.ac: Check for mallinfo.
2462 * ggc-common.c: Include malloc.h if available;
2463 include options.h
2464 (report_heap_memory_use): New functoin.
2465 * ggc-page.c (ggc_grow): Do not print "start".
2466 * ggc.h (report_heap_memory_use): Declare.
2467 * pases.c (execute_one_pass): Report memory after IPA passes.
2468 (ipa_read_summaries_1): Likewise.
2469 (ipa_read_optimization_summaries_1): Likewise.
2470
2471 2019-11-02 Jakub Jelinek <jakub@redhat.com>
2472
2473 * gimplify.h (omp_construct_selector_matches): Change return
2474 type to int, add a new SCORES argument.
2475 * gimplify.c (omp_construct_selector_matches): Likewise. If
2476 SCORES is non-NULL, compute scores of each construct.
2477 * omp-general.h (omp_get_context_selector): Declare.
2478 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
2479 Adjust omp_construct_selector_matches callers.
2480 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
2481 (omp_context_compute_score): New function.
2482 (omp_resolve_declare_variant): Compute scores and decide based on
2483 that.
2484
2485 PR bootstrap/92314
2486 * configure.ac: Don't look for omp-device-properties files from
2487 installed offloading compilers. Instead add tmake_file snippets
2488 for configured offloading targets and use files they generate.
2489 * Makefile.in (install): Don't depend on
2490 install-omp-device-properties.
2491 (install-omp-device-properties): Remove goal.
2492 * config/i386/t-omp-device: New file.
2493 * config/i386/t-intelmic (omp-device-properties): Remove goal.
2494 * config/nvptx/t-omp-device: New file.
2495 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
2496 * configure: Regenerated.
2497
2498 * omp-general.h (omp_context_selector_set_compare): Declare.
2499 * omp-general.c (omp_construct_simd_compare,
2500 omp_context_selector_props_compare, omp_context_selector_set_compare,
2501 omp_context_selector_compare): New functions.
2502 (omp_resolve_declare_variant): Prune variants that are strict subset
2503 of another variant.
2504
2505 2019-11-01 Martin Sebor <msebor@redhat.com>
2506
2507 PR middle-end/91679
2508 PR middle-end/91647
2509 PR middle-end/91463
2510 PR middle-end/92312
2511 * doc/invoke.texi (-Wzero-length-bounds): Document.
2512 * gimple-match-head.c (try_conditional_simplification): Use memcpy
2513 instead of a hand-rolled loop to avoid PR 92323.
2514 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
2515 with initializers.
2516 (vrp_prop::check_mem_ref): Handle declared struct objects.
2517 * tree.c (last_field): New function.
2518 (array_at_struct_end_p): Handle MEM_REF.
2519 (get_initializer_for): New helper.
2520 (component_ref_size): Add argument. Rename locals. Call
2521 get_initializer_for instead of fold_ctor_reference. Correct handling
2522 of flexible array members.
2523 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
2524
2525 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
2526
2527 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
2528 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
2529 UNSPEC_VSX_CVSPUXDS): Remove.
2530 (vsx_xvcvspdp): New define_expand, old define_insn split to...
2531 (vsx_xvcvspdp_be): ... this. New. And...
2532 (vsx_xvcvspdp_le): ... this. New.
2533 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
2534 (vsx_xvcv<su>xwdp_be): ... this. New. And...
2535 (vsx_xvcv<su>xwdp_le): ... this. New.
2536 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
2537 (vsx_xvcvsp<su>xds_be): ... this. New. And...
2538 (vsx_xvcvsp<su>xds_le): ... this. New.
2539
2540 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
2541
2542 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
2543 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
2544 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
2545 UNSPEC_VSX_XVCVSPSXWS): Remove.
2546 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
2547 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
2548
2549 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
2550
2551 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
2552 (UNSPEC_VSX_XVCDPSP): Remove.
2553 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
2554 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
2555
2556 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
2557
2558 * hooks.c (hook_tree_tree_bool_null): New.
2559 * hooks.h (hook_tree_tree_bool_null): Declare.
2560 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
2561 (LANG_HOOKS_DECLS): Add it.
2562 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
2563 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
2564 (lower_omp_target): Handle Fortran array with descriptor in
2565 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
2566
2567 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
2568
2569 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
2570 Assert that the type we store in abi_vector_types is its own
2571 main variant.
2572 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
2573
2574 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
2575
2576 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
2577 from a CONST_INT address when TARGET_THUMB2.
2578
2579 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
2580
2581 * config/arm/arm.md (add_not_cin): New insn.
2582 (add_not_shift_cin): Likewise.
2583
2584 2019-10-31 Martin Liska <mliska@suse.cz>
2585
2586 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
2587 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
2588 and compare_memory_operand.
2589
2590 2019-10-31 Jakub Jelinek <jakub@redhat.com>
2591
2592 * configure.ac: Compute and substitute omp_device_properties and
2593 omp_device_property_deps.
2594 * Makefile.in (generated_files): Add omp-device-properties.h.
2595 (omp-general.o): Depend on omp-device-properties.h.
2596 (omp_device_properties): New make variable.
2597 (omp-device-properties.h, s-omp-device-properties-h,
2598 install-omp-device-properties): New goals.
2599 (install): Depend on install-omp-device-properties for accelerators.
2600 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
2601 * target.h (enum omp_device_kind_arch_isa): New enum.
2602 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
2603 documentation.
2604 * omp-general.c: Include omp-device-properties.h.
2605 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
2606 colon instead of comma.
2607 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
2608 functions.
2609 (omp_context_selector_matches): Implement device set arch/isa
2610 selectors, improve device set kind selector handling.
2611 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
2612 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
2613 TARGET_SIMD_CLONE_USABLE): Formatting fix.
2614 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
2615 ix86_omp_device_kind_arch_isa.
2616 * config/i386/i386-options.c (struct ix86_target_opts): Move type
2617 definition from ix86_target_string to file scope.
2618 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
2619 to file scope.
2620 (ix86_omp_device_kind_arch_isa): New function.
2621 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
2622 isa_opts definitions to file scope.
2623 * config/i386/t-intelmic (omp-device-properties): New goal.
2624 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
2625 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
2626 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
2627 nvptx_omp_device_kind_arch_isa.
2628 * configure: Regenerate.
2629 * doc/tm.texi: Regenerate.
2630
2631 PR middle-end/92231
2632 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
2633 DECL_BUILT_IN in comment. Remove redundant ()s around return
2634 argument.
2635 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
2636 before calling fndecl_built_in_p.
2637 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
2638 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
2639 fndecl_built_in_p on it.
2640
2641 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
2642
2643 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
2644
2645 2019-10-31 Martin Liska <mliska@suse.cz>
2646
2647 * config/arm/arm.c (arm_get_pcs_model): Remove usage
2648 of cgraph_local_info and use local_info_node instead.
2649 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
2650 (bfin_function_ok_for_sibcall): Likewise.
2651 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
2652 (must_reload_pic_reg_p): Likewise.
2653
2654 2019-10-31 Jakub Jelinek <jakub@redhat.com>
2655
2656 PR c++/90947
2657 * tree.h (type_initializer_zero_p): Remove.
2658 * tree.c (type_initializer_zero_p): Remove.
2659
2660 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
2661
2662 * doc/invoke.texi (-Wshadow, -Wshadow=global
2663 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
2664
2665 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
2666
2667 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
2668 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
2669 and 'target exit data'.
2670
2671 2019-10-30 Martin Jambor <mjambor@suse.cz>
2672
2673 ipa/92278
2674 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
2675 availability comparison.
2676
2677 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2678
2679 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
2680 calls to __mspabi_mpy* functions.
2681 * config/msp430/msp430.md (mulhisi3): New define_expand.
2682 (umulhisi3): New define_expand.
2683 (*mulhisi3_inline): Use old mulhisi3 define_insn.
2684 (*umulhisi3_inline): Use old umulhisi3 define_insn.
2685
2686 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2687
2688 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
2689 (msp430_check_plus_not_high_mem): New.
2690 (msp430_op_not_in_high_mem): Use new functions to check if the operand
2691 might be in low memory.
2692 Indicate that a 16-bit absolute address is in lower memory.
2693
2694 2019-10-30 Martin Jambor <mjambor@suse.cz>
2695
2696 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
2697 ultimate_alias_target.
2698
2699 2019-10-30 Richard Biener <rguenther@suse.de>
2700
2701 PR tree-optimization/92275
2702 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
2703 Copy all loop-closed PHIs.
2704
2705 2019-10-30 Martin Liska <mliska@suse.cz>
2706
2707 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
2708 const_tree as function argument.
2709 (func_checker::compare_decl): Likewise.
2710 (func_checker::operand_equal_p): Likewise.
2711 (func_checker::compare_variable_decl): Likewise.
2712 (func_checker::parse_labels): Likewise.
2713 * ipa-icf-gimple.h: Likewise.
2714
2715 2019-10-30 Martin Liska <mliska@suse.cz>
2716
2717 * ipa-icf-gimple.c (func_checker::compatible_types_p):
2718 Do not compare alias sets. It's handled by operand_equal_p.
2719
2720 2019-10-30 Martin Liska <mliska@suse.cz>
2721
2722 * ipa-icf-gimple.c (func_checker::func_checker): Do not
2723 initialize m_compare_polymorphic.
2724 (func_checker::compare_decl): Do not compare polymorphic types.
2725 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
2726 * ipa-icf.c (sem_function::equals_private): Do not call
2727 compare_polymorphic_p.
2728
2729 2019-10-30 Martin Liska <mliska@suse.cz>
2730
2731 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
2732 compare_operand.
2733 (func_checker::compare_memory_operand): Remove.
2734 (func_checker::compare_cst_or_decl): Remove.
2735 (func_checker::operand_equal_valueize): Do not handle
2736 FIELD_DECL.
2737 (func_checker::compare_gimple_call): Call compare_operand.
2738 (func_checker::compare_gimple_assign): Likewise.
2739 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
2740 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
2741 * ipa-icf.h (icf_handled_component_p): Remove.
2742
2743 2019-10-30 Martin Liska <mliska@suse.cz>
2744
2745 * ipa-icf-gimple.c (func_checker::hash_operand): New.
2746 (func_checker::compare_cst_or_decl): Remove handling
2747 of FIELD_DECL.
2748 (func_checker::compare_operand): Transform to ...
2749 (func_checker::operand_equal_p): ... this.
2750 * ipa-icf-gimple.h (class func_checker): Add
2751 operand_equal_p and hash_operand.
2752 * ipa-icf.c (sem_function::equals_private): Fix
2753 pushing and popping of cfun.
2754
2755 2019-10-30 Martin Liska <mliska@suse.cz>
2756
2757 * fold-const.c (operand_equal_p): Move to ...
2758 (operand_compare::operand_equal_p): ... here.
2759 (operand_compare::verify_hash_value): New.
2760 (add_expr): Move to ...
2761 (operand_compare::hash_operand): ... here.
2762 * fold-const.h (operand_equal_p): Move to the class.
2763 (class operand_compare): New.
2764 * tree.c (add_expr): Remove.
2765
2766 2019-10-30 Martin Liska <mliska@suse.cz>
2767
2768 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
2769 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
2770
2771 2019-10-30 Martin Liska <mliska@suse.cz>
2772
2773 PR lto/91393
2774 PR lto/88220
2775 * cgraph.c (cgraph_node::get_create): Overwrite node->order
2776 from a first_clone in order to get proper LTO section
2777 in LTO stream.
2778 (cgraph_node::get_untransformed_body):
2779 Use lto_get_section_data where symtab_node::order
2780 must be provided.
2781 * cgraphclones.c (cgraph_node::find_replacement):
2782 Update also symbol order.
2783 * ipa-fnsummary.c (ipa_fn_summary_read):
2784 Use new function lto_get_summary_section_data.
2785 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
2786 * ipa-icf.c (sem_item_optimizer::read_summary):
2787 Likewise.
2788 * ipa-prop.c (ipa_prop_read_jump_functions):
2789 Likewise.
2790 (ipcp_read_transformation_summaries): Likewise.
2791 * ipa-sra.c (ipa_sra_read_summary): Likewise.
2792 * lto-cgraph.c (input_node): Add also order_base.
2793 (input_varpool_node): Likewise.
2794 (input_cgraph_1): Assign the order_base.
2795 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
2796 * lto-opts.c (lto_write_options): Pass new argument.
2797 * lto-section-in.c (lto_get_section_data): Add new argumente order.
2798 (lto_get_summary_section_data): New.
2799 (lto_get_raw_section_data): Add order argument.
2800 (lto_create_simple_input_block): Likewise.
2801 * lto-section-out.c (lto_destroy_simple_output_block):
2802 Likewise.
2803 * lto-streamer-in.c (lto_input_toplevel_asms):
2804 Use lto_get_summary_section_data.
2805 (lto_input_mode_table): Likewise.
2806 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
2807 (lto_output_toplevel_asms): Pass new argument.
2808 (copy_function_or_variable): Likewise.
2809 (produce_lto_section):Likewise.
2810 (produce_symtab): Likewise.
2811 (lto_write_mode_table): Likewise.
2812 (produce_asm_for_decls): Likewise.
2813 * lto-streamer.c (lto_get_section_name): Concat symbol name
2814 and symbol order.
2815 * lto-streamer.h (lto_get_section_data): Add order argument.
2816 (lto_get_summary_section_data): New.
2817 (lto_get_raw_section_data): Add order argument.
2818 (lto_get_section_name): Likewise.
2819 * varpool.c (varpool_node::get_constructor): Pass order argument.
2820
2821 2019-10-30 Jakub Jelinek <jakub@redhat.com>
2822
2823 PR tree-optimization/92262
2824 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
2825 ubase or cbase here.
2826 (remove_unused_ivs): Unshare comp before using it.
2827
2828 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
2829
2830 * ipa-prop.c (update_jump_functions_after_inlining):
2831 Watch for missing summaries.
2832
2833 2019-10-30 Richard Biener <rguenther@suse.de>
2834
2835 PR tree-optimization/65930
2836 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
2837 chains also allow a leading and trailing conversion.
2838 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
2839 intermediate reduction chains.
2840 (vect_analyze_slp_instance): Likewise. Build a SLP
2841 node for a trailing conversion manually.
2842
2843 2019-10-30 Martin Liska <mliska@suse.cz>
2844
2845 * cgraph.c (cgraph_node::local_info): Transform to ...
2846 (cgraph_node::local_info_node): ... this.
2847 (cgraph_node::dump): Remove cgraph_local_info and
2848 put its fields directly into cgraph_node.
2849 (cgraph_node::get_availability): Likewise.
2850 (cgraph_node::make_local): Likewise.
2851 (cgraph_node::verify_node): Likewise.
2852 * cgraph.h (struct GTY): Likewise.
2853 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
2854 (duplicate_thunk_for_node): Likewise.
2855 (cgraph_node::create_clone): Likewise.
2856 (cgraph_node::create_virtual_clone): Likewise.
2857 (cgraph_node::create_version_clone): Likewise.
2858 * cgraphunit.c (cgraph_node::reset): Likewise.
2859 (cgraph_node::finalize_function): Likewise.
2860 (cgraph_node::add_new_function): Likewise.
2861 (analyze_functions): Likewise.
2862 * combine.c (setup_incoming_promotions): Likewise.
2863 * config/i386/i386.c (ix86_function_regparm): Likewise.
2864 (ix86_function_sseregparm): Likewise.
2865 (init_cumulative_args): Likewise.
2866 * ipa-cp.c (determine_versionability): Likewise.
2867 (count_callers): Likewise.
2868 (set_single_call_flag): Likewise.
2869 (initialize_node_lattices): Likewise.
2870 (estimate_local_effects): Likewise.
2871 (create_specialized_node): Likewise.
2872 (identify_dead_nodes): Likewise.
2873 * ipa-fnsummary.c (compute_fn_summary): Likewise.
2874 (ipa_fn_summary_generate): Likewise.
2875 * ipa-hsa.c (check_warn_node_versionable): Likewise.
2876 (process_hsa_functions): Likewise.
2877 * ipa-icf.c (set_local): Likewise.
2878 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
2879 * ipa-inline.c (speculation_useful_p): Likewise.
2880 * ipa-profile.c (ipa_propagate_frequency): Likewise.
2881 (ipa_profile): Likewise.
2882 * ipa-split.c (split_function): Likewise.
2883 (execute_split_functions): Likewise.
2884 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
2885 (ipa_sra_ipa_function_checks): Likewise.
2886 * ipa-visibility.c (function_and_variable_visibility): Likewise.
2887 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
2888 * lto-cgraph.c (lto_output_node): Likewise.
2889 (input_overwrite_node): Likewise.
2890 * multiple_target.c (expand_target_clones): Likewise.
2891 * omp-simd-clone.c (simd_clone_create): Likewise.
2892 * trans-mem.c (expand_call_tm): Likewise.
2893 (ipa_tm_mayenterirr_function): Likewise.
2894 (ipa_tm_diagnose_tm_safe): Likewise.
2895 (ipa_tm_diagnose_transaction): Likewise.
2896 (ipa_tm_create_version): Likewise.
2897 (ipa_tm_transform_calls_redirect): Likewise.
2898 (ipa_tm_execute): Likewise.
2899 * tree-inline.c (expand_call_inline): Likewise.
2900
2901 2019-10-29 Martin Liska <mliska@suse.cz>
2902
2903 * symbol-summary.h (function_summary): Pass memory location
2904 to underlaying hash_map (or vec).
2905 (V>::fast_function_summary): Likewise.
2906
2907 2019-10-29 Martin Liska <mliska@suse.cz>
2908
2909 * ggc.h (ggc_alloc_no_dtor): New function.
2910 * ipa-fnsummary.c (ipa_free_fn_summary): Call
2911 destructor and ggc_free.
2912 (ipa_free_size_summary): Call delete instead
2913 of release.
2914 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
2915 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
2916 (ipa_free_all_edge_args): Call destructor and ggc_free.
2917 (ipa_free_all_node_params): Likewise.
2918 (ipcp_free_transformation_sum): Likewise.
2919 * ipa-prop.h (ipa_check_create_node_params):
2920 Call new ggc_alloc_no_dtor.
2921 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
2922 (ipa_sra_analysis): Call destructor and ggc_free.
2923 Replace release with delete operator.
2924 * symbol-summary.h (release): Remove ..
2925 (V>::~fast_function_summary): and move logic here.
2926 Likewise for other classes.
2927
2928 2019-10-29 Richard Biener <rguenther@suse.de>
2929
2930 PR tree-optimization/92260
2931 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
2932 lane-reducing ops.
2933
2934 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
2935
2936 PR tree-optimization/88915
2937 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
2938 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
2939 and make the valueize function pointer also take a void pointer.
2940 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
2941 around vn_valueize, to call it without a context.
2942 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
2943 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
2944 (~_loop_vec_info): Release epilogue_vinfos.
2945 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
2946 number of iterations of epilogue.
2947 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
2948 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
2949 versioning threshold needed for main loop.
2950 (vect_analyze_loop): Likewise.
2951 (find_in_mapping): New helper function.
2952 (update_epilogue_loop_vinfo): New function.
2953 (vect_transform_loop): When vectorizing epilogues re-use analysis done
2954 on main loop and call update_epilogue_loop_vinfo to update it.
2955 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
2956 stmts on loop preheader edge.
2957 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
2958 we decided to vectorize epilogues. Update epilogues NITERS and
2959 construct ADVANCE to update epilogues data references where needed.
2960 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
2961 (vect_do_peeling, vect_update_inits_of_drs,
2962 determine_peel_for_niter, vect_analyze_loop): Add or update
2963 declarations.
2964 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
2965 created loop_vec_info's for epilogues when available. Otherwise analyse
2966 epilogue separately.
2967
2968 2019-10-29 Richard Biener <rguenther@suse.de>
2969
2970 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
2971 example.
2972
2973 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
2974
2975 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
2976 index for the COND_EXPR from stmt_info rather than reduc_info.
2977
2978 2019-10-29 Richard Biener <rguenther@suse.de>
2979
2980 PR tree-optimization/65930
2981 * tree-vect-loop.c (check_reduction_path): Relax single-use
2982 check allowing out-of-loop uses.
2983 (vect_is_simple_reduction): SLP reduction chains cannot have
2984 intermediate stmts used outside of the loop.
2985 (vect_create_epilog_for_reduction): The adjustment might need
2986 to be converted.
2987 (vectorizable_reduction): Annotate live stmts of the reduction
2988 chain with STMT_VINFO_REDUC_DEF.
2989 * tree-vect-stms.c (process_use): Remove no longer true asserts.
2990
2991 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
2992
2993 * calls.c (pass_by_reference): Leave the target to decide whether
2994 POLY_INT_CST-sized arguments should be passed by value or reference,
2995 rather than forcing them to be passed by reference.
2996 (must_pass_in_stack_var_size): Likewise.
2997 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
2998 V31_REGNUM to P15_REGNUM.
2999 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
3000 Take an extra "silent_p" parameter, defaulting to false.
3001 (aarch64_sve::svbool_type_p): Declare.
3002 (aarch64_sve::nvectors_if_data_type): Likewise.
3003 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
3004 (aarch64_frame::reg_offset): Turn into poly_int64s.
3005 (aarch64_frame::save_regs_size): Likewise.
3006 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
3007 (aarch64_frame::sve_callee_adjust): Likewise.
3008 (aarch64_frame::spare_reg_reg): Likewise.
3009 (ARM_PCS_SVE): New arm_pcs value.
3010 (CUMULATIVE_ARGS::aapcs_nprn): New field.
3011 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
3012 (CUMULATIVE_ARGS::silent_p): Likewise.
3013 (BITS_PER_SVE_PRED): New macro.
3014 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
3015 function. Reject aarch64_vector_pcs attributes on SVE functions.
3016 (aarch64_attribute_table): Use the above handler.
3017 (aarch64_sve_abi): New function.
3018 (aarch64_sve_argument_p): Likewise.
3019 (aarch64_returns_value_in_sve_regs_p): Likewise.
3020 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
3021 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
3022 descriptor for them.
3023 (aarch64_simd_decl_p): Delete.
3024 (aarch64_emit_cfi_for_reg_p): New function.
3025 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
3026 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
3027 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
3028 as partly clobbered for the SVE PCS.
3029 (aarch64_function_ok_for_sibcall): Check whether the two functions
3030 use the same ABI, rather than checking specifically for whether
3031 they're aarch64_vector_pcs functions.
3032 (aarch64_pass_by_reference): Raise an error for attempts to pass
3033 SVE arguments when SVE is disabled. Pass SVE arguments by reference
3034 if there are not enough free registers left, or if the argument is
3035 variadic.
3036 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
3037 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
3038 tuples in memory.
3039 (aarch64_layout_arg): Take a function_arg_info rather than
3040 individual properties. Handle SVE predicates, vectors and tuples.
3041 Raise an error if they are passed to unprototyped functions.
3042 (aarch64_function_arg): If the silent_p flag is set, suppress the
3043 usual error about using float registers without TARGET_FLOAT.
3044 (aarch64_init_cumulative_args): Take a silent_p parameter and store
3045 it in the cumulative_args structure. Initialize aapcs_nprn and
3046 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
3047 error about using float registers without TARGET_FLOAT.
3048 If the silent_p flag is not set, also raise an error about
3049 using SVE functions when SVE is disabled.
3050 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
3051 and call it for SVE functions too. Update aapcs_nprn similarly
3052 to the other register counts.
3053 (aarch64_layout_frame): If a big-endian function needs to save
3054 and restore Z8-Z15, search for a spare predicate that it can use.
3055 Store SVE predicates at the bottom of the register save area,
3056 followed by SVE vectors, then followed by the normal slots.
3057 Keep pointing the hard frame pointer at the base of the normal slots,
3058 above the SVE vectors. Update the various frame creation and
3059 tear-down strategies for the new layout, initializing the new
3060 sve_callee_adjust field. Add an additional layout for frames
3061 whose saved registers are all SVE registers.
3062 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
3063 (aarch64_return_address_signing_enabled): Likewise.
3064 (aarch64_push_regs, aarch64_pop_regs): Update calls to
3065 aarch64_reg_save_mode.
3066 (aarch64_adjust_sve_callee_save_base): New function.
3067 (aarch64_add_cfa_expression): Move earlier in file. Take the
3068 saved register as an rtx rather than a register number and use
3069 its mode for the MEM slot.
3070 (aarch64_save_callee_saves): Remove the mode argument and instead
3071 use aarch64_reg_save_mode to get the mode of each save slot.
3072 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
3073 offsets. Allow GP offsets to be saved at a VL-based offset from
3074 the stack, handling this case using the frame pointer if available
3075 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
3076 big-endian SVE functions; use normal moves for other SVE saves.
3077 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
3078 returns true. Add explicit CFA notes when not storing via the
3079 stack pointer. Do not try to pair SVE saves.
3080 (aarch64_restore_callee_saves): Cope with poly_int64 register
3081 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
3082 use normal moves for other SVE restores. Only add CFA restore notes
3083 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
3084 SVE restores.
3085 (aarch64_get_separate_components): Always keep the first SVE save
3086 in the prologue if we need to use it as a stack probe. Don't allow
3087 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
3088 Likewise the spare predicate register that they need. Update the
3089 offset calculation to account for the SVE save area. Use the
3090 appropriate range check for SVE LDR and STR instructions.
3091 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
3092 (aarch64_process_components): Likewise. Update the offset
3093 calculation to account for the SVE save area. Only mark the
3094 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
3095 Do not try to pair SVE saves.
3096 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
3097 reg_offsets. When handling the final allocation, expect the
3098 first SVE register save to be part of the initial allocation
3099 and for it to act as a probe at SP. Account for the SVE callee
3100 save area in the dump information.
3101 (aarch64_expand_prologue): Update the frame diagram. Fold the
3102 SVE callee allocation into the initial allocation if stack clash
3103 protection is enabled. Use new variables to track the offset
3104 of the frame chain (and hard frame pointer) from the current
3105 stack pointer, and likewise the offset of the bottom of the
3106 register save area. Update calls to aarch64_save_callee_saves
3107 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
3108 saving the FP&SIMD registers. Save the predicate registers.
3109 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
3110 into account when setting the stack pointer from the frame pointer,
3111 and when deciding whether we can inherit the initial adjustment
3112 amount from the prologue. Restore the predicate registers after
3113 the vector registers, then apply sve_callee_adjust, then restore
3114 the general registers.
3115 (aarch64_secondary_reload): Don't use secondary SVE reloads
3116 for VNx16BImode.
3117 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
3118 (aarch64_short_vector_p): Return false for SVE types.
3119 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
3120 at the start of the function. Return false for SVE types.
3121 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
3122 functions too.
3123 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
3124 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
3125 to big-endian targets for bytewise moves.
3126 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
3127
3128 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3129 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3130 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3131
3132 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
3133 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
3134 aarch64-sve-builtins-base.o to extra_objs. Add
3135 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
3136 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
3137 (aarch64-sve-builtins-shapes.o): Likewise.
3138 (aarch64-sve-builtins-base.o): New rules.
3139 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
3140 (aarch64_resolve_overloaded_builtin): Likewise.
3141 (aarch64_check_builtin_call): Likewise.
3142 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
3143 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
3144 pragma.
3145 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
3146 (aarch64_svprfop): New enum.
3147 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
3148 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
3149 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
3150 (aarch64_output_sve_cnt_pat_immediate): Likewise.
3151 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
3152 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
3153 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
3154 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
3155 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
3156 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
3157 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
3158 (aarch64_sve::mangle_builtin_type): Likewise.
3159 (aarch64_sve::resolve_overloaded_builtin): Likewise.
3160 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
3161 (aarch64_sve::expand_builtin): Likewise.
3162 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
3163 (aarch64_sve_int_mode): Likewise.
3164 (aarch64_ptrue_all_mode): New function.
3165 (aarch64_convert_sve_data_to_pred): Make public.
3166 (svprfop_token): New function.
3167 (aarch64_output_sve_prefetch): Likewise.
3168 (aarch64_fold_sve_cnt_pat): Likewise.
3169 (aarch64_output_sve_cnt_pat_immediate): Likewise.
3170 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
3171 instead of gen_while_ult.
3172 (aarch64_replace_reg_mode): Make public.
3173 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
3174 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
3175 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
3176 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
3177 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
3178 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
3179 (aarch64_sve_ptrue_svpattern_p): Likewise.
3180 (aarch64_sve_pred_valid_immediate): Check
3181 aarch64_sve_ptrue_svpattern_p.
3182 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
3183 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
3184 functions.
3185 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
3186 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
3187 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
3188 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
3189 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
3190 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
3191 New unspecs.
3192 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
3193 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
3194 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
3195 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
3196 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
3197 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
3198 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
3199 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
3200 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
3201 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
3202 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
3203 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
3204 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
3205 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
3206 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
3207 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
3208 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
3209 (Vesize): Handle partial vector modes.
3210 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
3211 mode attributes.
3212 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
3213 iterators.
3214 (s, paired_extend, inc_dec): New code attributes.
3215 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
3216 (SVE_INT_UNARY): Add UNSPEC_RBIT.
3217 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
3218 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
3219 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
3220 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
3221 UNSPEC_COND_FMULX.
3222 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
3223 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
3224 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
3225 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
3226 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
3227 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
3228 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
3229 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
3230 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
3231 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
3232 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
3233 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
3234 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
3235 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
3236 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
3237 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
3238 UNSPEC_COND_FSCALE.
3239 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
3240 (binqops_op, binqops_op_rev, last_op): New int attributes.
3241 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
3242 (fn, ab): New int attributes.
3243 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
3244 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
3245 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
3246 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
3247 UNSPEC_RBIT.
3248 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
3249 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
3250 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
3251 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
3252 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
3253 UNSPEC_COND_FMULX.
3254 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
3255 (brk_reg_con, brk_reg_opno): New int attributes.
3256 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
3257 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
3258 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
3259 UNSPEC_COND_FMIN.
3260 (max_elem_bits): New int attribute.
3261 (min_elem_bits): Handle UNSPEC_RBIT.
3262 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
3263 TRUNCATE as well as SUBREG.
3264 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
3265 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
3266 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
3267 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
3268 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
3269 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
3270 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
3271 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
3272 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
3273 (aarch64_gather_scale_operand_h): New predicates.
3274 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
3275 (vgd, vgh, vgw, vsQ, vsS): New constraints.
3276 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
3277 (*aarch64_sve_reinterpret<mode>): Allow any source register
3278 instead of requiring an exact match.
3279 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
3280 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
3281 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
3282 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
3283 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
3284 (aarch64_update_ffrt): New patterns.
3285 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
3286 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3287 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3288 (@aarch64_ld<fn>f1<mode>): New patterns.
3289 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
3290 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3291 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3292 (@aarch64_ldnt1<mode>): New patterns.
3293 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
3294 the scalar part of the address.
3295 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
3296 scalar part of the addresse and add an alternative for handling
3297 nonzero offsets.
3298 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
3299 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
3300 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3301 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3302 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
3303 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
3304 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
3305 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
3306 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3307 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3308 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
3309 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
3310 (@aarch64_sve_prefetch<mode>): New patterns.
3311 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
3312 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
3313 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
3314 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
3315 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
3316 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
3317 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
3318 (@aarch64_stnt1<mode>): New patterns.
3319 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
3320 the scalar part of the address.
3321 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
3322 the scalar part of the addresse and add an alternative for handling
3323 nonzero offsets.
3324 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
3325 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
3326 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
3327 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
3328 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
3329 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
3330 New patterns.
3331 (vec_duplicate<mode>): Use QI as the mode of the input operand.
3332 (extract_last_<mode>): Generalize to...
3333 (@extract_<LAST:last_op>_<mode>): ...this.
3334 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
3335 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
3336 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
3337 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
3338 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
3339 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
3340 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
3341 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
3342 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
3343 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
3344 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
3345 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
3346 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
3347 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
3348 (*aarch64_adr_uxtw_unspec): Likewise.
3349 (*aarch64_adr_uxtw): Rename to...
3350 (*aarch64_adr_uxtw_and): ...this.
3351 (@aarch64_adr<mode>_shift): New expander.
3352 (*aarch64_adr_shift_sxtw): New pattern.
3353 (aarch64_<su>abd<mode>_3): Rename to...
3354 (@aarch64_pred_<su>abd<mode>): ...this.
3355 (<su>abd<mode>_3): Update accordingly.
3356 (@aarch64_cond_<su>abd<mode>): New expander.
3357 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
3358 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
3359 (*<su>mul<mode>3_highpart): Rename to...
3360 (@aarch64_pred_<optab><mode>): ...this.
3361 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
3362 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
3363 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
3364 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
3365 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
3366 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
3367 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
3368 (*v<ASHIFT:optab><mode>3): Rename to...
3369 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
3370 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
3371 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
3372 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
3373 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
3374 (@cond_asrd<mode>): New expander.
3375 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
3376 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
3377 (*sdiv_pow2<mode>3): Delete.
3378 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
3379 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
3380 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
3381 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
3382 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
3383 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
3384 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
3385 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
3386 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
3387 (*add<SVE_F:mode>3): Rename to...
3388 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
3389 for SVE_STRICT_GP.
3390 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
3391 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
3392 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
3393 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
3394 (*sub<SVE_F:mode>3): Rename to...
3395 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
3396 for SVE_STRICT_GP.
3397 (@aarch64_pred_abd<SVE_F:mode>): New expander.
3398 (*fabd<SVE_F:mode>3): Rename to...
3399 (*aarch64_pred_abd<SVE_F:mode>): ...this.
3400 (@aarch64_cond_abd<SVE_F:mode>): New expander.
3401 (*mul<SVE_F:mode>3): Rename to...
3402 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
3403 for SVE_STRICT_GP.
3404 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
3405 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
3406 to...
3407 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
3408 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
3409 (*<nlogical><PRED_ALL:mode>3): Rename to...
3410 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
3411 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
3412 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
3413 (*<logical_nn><PRED_ALL:mode>3): Rename to...
3414 (aarch64_pred_<logical_nn><mode>_z): ...this.
3415 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
3416 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
3417 (*fma<SVE_I:mode>4): Rename to...
3418 (@aarch64_pred_fma<SVE_I:mode>): ...this.
3419 (*fnma<SVE_I:mode>4): Rename to...
3420 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
3421 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
3422 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
3423 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
3424 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
3425 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
3426 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
3427 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
3428 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
3429 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
3430 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
3431 (@aarch64_sve_tmad<mode>): Likewise.
3432 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
3433 (*aarch64_sel_dup<mode>): Rename to...
3434 (@aarch64_sel_dup<mode>): ...this.
3435 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
3436 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
3437 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
3438 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
3439 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
3440 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
3441 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
3442 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
3443 (*fcm<cmp_op><mode>): Rename to...
3444 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
3445 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
3446 (*fcmuo<mode>): Rename to...
3447 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
3448 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
3449 (@aarch64_pred_fac<cmp_op><mode>): New expander.
3450 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
3451 (fold_extract_last_<mode>): Generalize to...
3452 (@fold_extract_<last_op>_<mode>): ...this.
3453 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
3454 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
3455 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
3456 DImode result explicit.
3457 (reduc_plus_scal_<mode>): Update accordingly.
3458 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
3459 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
3460 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
3461 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
3462 (*aarch64_sve_tbl<mode>): Rename to...
3463 (@aarch64_sve_tbl<mode>): ...this.
3464 (@aarch64_sve_compact<mode>): New pattern.
3465 (*aarch64_sve_dup_lane<mode>): Rename to...
3466 (@aarch64_sve_dup_lane<mode>): ...this.
3467 (@aarch64_sve_dupq_lane<mode>): New pattern.
3468 (@aarch64_sve_splice<mode>): Likewise.
3469 (aarch64_sve_<perm_insn><mode>): Rename to...
3470 (@aarch64_sve_<perm_insn><mode>): ...this.
3471 (*aarch64_sve_ext<mode>): Rename to...
3472 (@aarch64_sve_ext<mode>): ...this.
3473 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
3474 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
3475 to...
3476 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
3477 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
3478 Rename to...
3479 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
3480 ...this.
3481 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
3482 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
3483 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
3484 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
3485 to...
3486 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
3487 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
3488 a "@" marker.
3489 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
3490 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
3491 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
3492 pattern.
3493 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
3494 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
3495 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
3496 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
3497 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
3498 "@" marker.
3499 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
3500 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
3501 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
3502 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
3503 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
3504 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
3505 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
3506 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
3507 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
3508 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
3509 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
3510 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
3511 (aarch64_sve_cnt_pat): Likewise.
3512 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
3513 (*aarch64_sve_incsi_pat): Likewise.
3514 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
3515 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
3516 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
3517 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
3518 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
3519 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
3520 (*aarch64_sve_decsi_pat): Likewise.
3521 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
3522 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
3523 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
3524 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
3525 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
3526 (@aarch64_pred_cntp<mode>): Likewise.
3527 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
3528 New expander.
3529 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
3530 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
3531 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
3532 New expander.
3533 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
3534 New pattern.
3535 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
3536 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
3537 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
3538 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
3539 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
3540 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
3541 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
3542 New expander.
3543 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
3544 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
3545 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
3546 New expander.
3547 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
3548 New pattern.
3549 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
3550 expander.
3551 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
3552 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
3553 expander.
3554 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
3555 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
3556 expander.
3557 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
3558 * config/aarch64/arm_sve.h: New file.
3559 * config/aarch64/aarch64-sve-builtins.h: Likewise.
3560 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
3561 * config/aarch64/aarch64-sve-builtins.def: Likewise.
3562 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
3563 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
3564 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
3565 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
3566 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
3567 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
3568
3569 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3570
3571 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
3572 New pattern.
3573 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
3574 SVE modes.
3575
3576 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3577
3578 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
3579 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
3580 FFRT_REGNUM + 1.
3581 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
3582 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
3583 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
3584 (aarch64_hard_regno_nregs): Handle the new register classes.
3585 (aarch64_hard_regno_mode_ok): Likewise.
3586 (aarch64_regno_regclass): Likewise.
3587 (aarch64_class_max_nregs): Likewise.
3588 (aarch64_register_move_cost): Likewise.
3589 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
3590 as general register_operands.
3591
3592 2019-10-29 Martin Liska <mliska@suse.cz>
3593
3594 * ggc-common.c: One can't subtract unsigned types
3595 in compare function.
3596
3597 2019-10-29 Martin Liska <mliska@suse.cz>
3598
3599 * cgraphunit.c (symbol_table::compile): Pass
3600 title as dump_memory_report argument.
3601 * toplev.c (dump_memory_report): New argument.
3602 (finalize): Pass new argument.
3603 * toplev.h (dump_memory_report): Add argument.
3604
3605 2019-10-29 Martin Liska <mliska@suse.cz>
3606
3607 * ggc-common.c: Move Leak to the first column.
3608
3609 2019-10-29 Martin Liska <mliska@suse.cz>
3610
3611 * cgraphunit.c (symbol_table::compile): Remove argument
3612 for dump_memory_report.
3613 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
3614 (compare_final): Remove in order to make report
3615 better readable.
3616 * ggc.h (dump_ggc_loc_statistics): Remove argument.
3617 * mem-stats.h (mem_alloc_description::get_list):
3618 Do not pass cmp.
3619 (mem_alloc_description::dump): Likewise here.
3620 * toplev.c (dump_memory_report): Remove final
3621 argument.
3622 (finalize): Likewise.
3623 * toplev.h (dump_memory_report): Remove argument.
3624
3625 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3626
3627 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
3628 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
3629 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
3630 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
3631 accept "const".
3632
3633 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3634
3635 * coretypes.h (string_int_pair): New typedef.
3636 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
3637 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
3638 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
3639
3640 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3641
3642 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
3643 (simulate_builtin_function_decl): Declare.
3644 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
3645 (LANG_HOOKS_INITIALIZER): Include it.
3646 * langhooks.c (add_builtin_function_common): Rename to...
3647 (build_builtin_function): ...this. Add a location parameter and use
3648 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
3649 the decl instead.
3650 (add_builtin_function): Update accordingly, passing the returned
3651 decl to the lang hook.
3652 (add_builtin_function_ext_scope): Likewise
3653 (simulate_builtin_function_decl): New function.
3654
3655 2019-10-29 Jakub Jelinek <jakub@redhat.com>
3656
3657 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
3658 example, use actual names of supported offload targets.
3659
3660 PR target/92258
3661 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
3662
3663 2019-10-28 Martin Sebor <msebor@redhat.com>
3664
3665 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
3666 (handle_store): Pass argument to get_addr_stridx.
3667
3668 2019-10-28 Martin Sebor <msebor@redhat.com>
3669
3670 PR tree-optimization/92226
3671 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
3672 the offset is in the open range outlined by SI's length.
3673
3674 2019-10-28 Martin Sebor <msebor@redhat.com>
3675
3676 PR c/66970
3677 * doc/cpp.texi (__has_builtin): Document.
3678 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
3679
3680 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
3681
3682 PR target/82981
3683 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
3684 doubleword and low doubleword result of multiplication on
3685 MIPS64R6.
3686
3687 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
3688 pure qualifier to the built-in.
3689 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
3690 built-ins.
3691 (struct mips_builtin_description): Add is_pure flag.
3692 (mips_init_builtins): Mark built-in as pure if the flag in the
3693 corresponding mips_builtin_description struct is set.
3694
3695 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
3696 alternative which covers the floating-point input value. Also
3697 forbid the split of insert.d pattern for floating-point values.
3698
3699 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
3700
3701 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
3702 * config/riscv/riscv-sr.c: New file.
3703 * config/riscv/riscv.c (riscv_reorg): New function.
3704 (TARGET_MACHINE_DEPENDENT_REORG): Define.
3705 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
3706 (riscv_remove_unneeded_save_restore_calls): Declare.
3707 * config/riscv/t-riscv (riscv-sr.o): New build rule.
3708
3709 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3710
3711 PR tree-optimization/92163
3712 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
3713 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
3714 before calling bitmap_set_bit.
3715 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
3716 delete_dead_or_redundant_assignment.
3717 (dse_dom_walker::dse_optimize_stmt): Likewise.
3718 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
3719
3720 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3721
3722 PR middle-end/91272
3723 * tree-vect-stmts.c (vectorizable_condition): Support
3724 EXTRACT_LAST_REDUCTION with fully-masked loops.
3725
3726 2019-10-28 Richard Biener <rguenther@suse.de>
3727
3728 PR tree-optimization/92252
3729 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
3730 STMT_VINFO_REDUC_IDX when swapping operands.
3731
3732 2019-10-28 Richard Biener <rguenther@suse.de>
3733
3734 PR tree-optimization/92241
3735 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
3736 we failed to update the reduction index do not use the pattern
3737 stmts for the reduction chain.
3738 (vectorizable_reduction): When the reduction chain is corrupt,
3739 fail.
3740 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
3741 fail to update the reduction chain.
3742
3743 2019-10-28 Richard Biener <rguenther@suse.de>
3744
3745 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
3746 STMT_VINFO_REDUC_IDX from the actual stmt.
3747 (vect_transform_reduction): Likewise.
3748 (vectorizable_reduction): Compute the reduction chain length,
3749 do not recompute the reduction operand index. Remove no longer
3750 necessary restriction for condition reduction chains.
3751
3752 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
3753
3754 PR target/92225
3755 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
3756 condition for V2DImode.
3757
3758 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
3759
3760 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
3761 Remove %k operand modifier.
3762 (*vec_extractv2df_1_sse): Remove %q operand modifier.
3763
3764 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
3765
3766 PR rtl-optimization/92007
3767 * cfgcleanup.c (thread_jump): Add an assertion that we don't
3768 call it after reload if hot/cold partitioning has been done.
3769 (class pass_postreload_jump): Rename to
3770 pass_jump_after_combine.
3771 (make_pass_postreload_jump): Rename to
3772 make_pass_jump_after_combine.
3773 * passes.def(pass_postreload_jump): Move before reload, rename
3774 to pass_jump_after_combine.
3775 * tree-pass.h (make_pass_postreload_jump): Rename to
3776 make_pass_jump_after_combine.
3777
3778 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
3779
3780 PR ipa/92242
3781 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
3782 for missing EDGE_REF
3783 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
3784
3785 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
3786
3787 PR tree-optimization/88760
3788 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
3789 Enable -funroll-loops for -O2 and above.
3790 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
3791 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
3792 do not turn on web and rngreg implicitly, if the unroller is not
3793 explicitly enabled.
3794
3795 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
3796
3797 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
3798 jump functions.
3799
3800 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
3801
3802 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
3803 * cgraph.h (cgraph_node::rtl_info): Likewise.
3804
3805 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
3806
3807 * ipa-cp.c (propagate_constants_across_call): If args are not available
3808 just drop everything to varying.
3809 (find_aggregate_values_for_callers_subset): Watch for missing
3810 edge summary.
3811 (find_more_scalar_values_for_callers_subs): Likewise.
3812 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
3813 update_jump_functions_after_inlining, propagate_controlled_uses):
3814 Watch for missing summaries.
3815 (ipa_propagate_indirect_call_infos): Remove summary after propagation
3816 is finished.
3817 (ipa_write_node_info): Watch for missing summaries.
3818 (ipa_read_edge_info): Create new ref.
3819 (ipa_edge_args_sum_t): Add remove.
3820 (IPA_EDGE_REF_GET_CREATE): New macro.
3821 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
3822 edge summary.
3823 (remap_edge_change_prob): Likewise.
3824
3825 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
3826
3827 * ipa-inline-transform.c (inline_call): update function summaries
3828 after expanidng thunk.
3829
3830 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
3831
3832 * ipa-icf.c (sem_function::merge): Update function summaries.
3833 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
3834
3835 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
3836
3837 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
3838 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
3839 operand already has scalar mode.
3840 (iptr): Remove SF/DF.
3841
3842 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
3843
3844 PR target/91289
3845 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
3846 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
3847 this.
3848
3849 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
3850
3851 * config/i386/sse.md
3852 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
3853 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
3854 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
3855 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
3856 <sse>_vmmaskcmp<mode>3):
3857 Change predicates from vector_operand to nonimmediate_operand,
3858 constraints xBm to xm, since scalar operations don't need
3859 memory address alignment.
3860 (avx512f_vmcmp<mode>3<round_saeonly_name>,
3861 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
3862 round_saeonly_nimm_predicate with
3863 round_saeonly_nimm_scalar_predicate.
3864 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
3865 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
3866 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
3867 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
3868 avx512f_vmfmadd_<mode>_mask3<round_name>,
3869 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
3870 *avx512f_vmfmsub_<mode>_mask<round_name>,
3871 avx512f_vmfmsub_<mode>_mask3<round_name>,
3872 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
3873 *avx512f_vmfnmadd_<mode>_mask<round_name>,
3874 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
3875 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
3876 *avx512f_vmfnmsub_<mode>_mask<round_name>,
3877 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
3878 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
3879 cvtusi2<ssescalarmodesuffix>32<round_name>,
3880 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
3881 round_nimm_predicate with round_nimm_scalr_predicate.
3882 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
3883 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
3884 avx512er_vmrcp28<mode><round_saeonly_name>,
3885 avx512er_vmrsqrt28<mode><round_saeonly_name>,
3886 ): Replace round_saeonly_nimm_predicate with
3887 round_saeonly_nimm_scalar_predicate.
3888 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
3889 vector_operand with nonimmediate_operand.
3890 * config/i386/subst.md (round_scalar_nimm_predicate,
3891 round_saeonly_scalar_nimm_predicate): Replace
3892 vector_operand with nonimmediate_operand.
3893
3894 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
3895
3896 PR target/89071
3897 * config/i386/i386.md (*rcpsf2_sse): Add
3898 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
3899 (*rsqrtsf2_sse): Ditto.
3900 (*sqrt<mode>2_sse): Ditto.
3901 (sse4_1_round<mode>2): separate constraint vm, add
3902 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
3903 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
3904 by pass rpad.
3905 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
3906 Ditto.
3907 (*sse_vmrsqrtv4sf2): Ditto.
3908 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
3909 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
3910 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
3911 <iptr> pointer size modifier since vround support memory operand.
3912
3913 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
3914
3915 PR target/85969
3916 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
3917 static function.
3918
3919 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
3920 Tobias Burnus <tobias@codesourcery.com>
3921
3922 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
3923 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
3924 common block decls.
3925
3926 2019-10-25 Richard Biener <rguenther@suse.de>
3927
3928 PR tree-optimization/92222
3929 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
3930 (_slp_oprnd_info::second_pattern): Likewise.
3931 (_slp_oprnd_info::any_pattern): New.
3932 (vect_create_oprnd_info): Adjust.
3933 (vect_get_and_check_slp_defs): Compute whether any stmt is
3934 in a pattern.
3935 (vect_build_slp_tree_2): Avoid building up a node from scalars
3936 if any of the operand defs, not just the first, is in a pattern.
3937
3938 2019-10-25 Richard Biener <rguenther@suse.de>
3939
3940 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
3941 swapping if we actually have to modify the IL on a shared stmt.
3942 (vect_build_slp_tree_2): Never fail swapping on shared stmts
3943 because we no longer modify the IL.
3944
3945 2019-10-25 Martin Liska <mliska@suse.cz>
3946
3947 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
3948
3949 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
3950
3951 * tree-vect-loop.c (vectorizable_reduction): Restrict the
3952 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
3953 handled by vect_transform_reduction. Allow fully-masked loops
3954 to be used with reduction chains.
3955 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
3956 operations in fully-masked loops.
3957 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
3958 operations in fully-masked loops.
3959
3960 2019-10-25 Richard Biener <rguenther@suse.de>
3961
3962 * tree-vect-loop.c (vectorizable_reduction): Verify
3963 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
3964 correctly.
3965 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
3966 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
3967 stmts.
3968
3969 2019-10-24 Jakub Jelinek <jakub@redhat.com>
3970
3971 * gimplify.h (omp_construct_selector_matches): Declare.
3972 * gimplify.c (struct gimplify_omp_ctx): Add code member.
3973 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
3974 called function if needed for flag_openmp.
3975 (gimplify_scan_omp_clauses): Set ctx->code.
3976 (omp_construct_selector_matches): New function.
3977 * omp-general.h (omp_constructor_traits_to_codes,
3978 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
3979 * omp-general.c (omp_constructor_traits_to_codes,
3980 omp_context_selector_matches, omp_resolve_declare_variant): New
3981 functions.
3982
3983 * config/arc/arc.c (hwloop_optimize): Add missing space in string
3984 literal.
3985 * config/rx/rx.c (rx_print_operand): Likewise.
3986 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
3987 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
3988 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
3989 Likewise.
3990 * genemit.c (emit_c_code): Likewise.
3991 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
3992
3993 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
3994
3995 * symbols-summary.h (fast_function_summary<T *, V>::release,
3996 fast_call_summary<T *, V>::release): Free m_vector.
3997
3998 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
3999
4000 * cgraphunit.c (symbol_table::process_new_functions): Call
4001 ipa_free_size_summary.
4002 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
4003 (devirtualization_time_bonus): Update.
4004 (ipcp_propagate_stage): Update.
4005 * ipa-fnsummary.c (ipa_size_summaries): New.
4006 (ipa_fn_summary_alloc): Alloc size summary.
4007 (dump_ipa_call_summary): Update.
4008 (ipa_dump_fn_summary): Update.
4009 (analyze_function_body): Update.
4010 (compute_fn_summary): Likewise.
4011 (ipa_get_stack_frame_offset): New function.
4012 (inline_update_callee_summaries): Do not update frame offsets.
4013 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
4014 remove call and function summary.
4015 (ipa_update_overall_fn_summary): Update.
4016 (inline_read_section): Update.
4017 (ipa_fn_summary_write): Update.
4018 (ipa_free_fn_summary): Do not remove summaries.
4019 (ipa_free_size_summary): New.
4020 (release summary pass): Also run at WPA.
4021 * ipa-fnsummary.h (ipa_size_summary): Declare.
4022 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
4023 estimated_self_stack_size.
4024 (ipa_size_summary_t): New type.
4025 (ipa_size_summaries): Declare.
4026 (ipa_free_size_summary): Declare.
4027 (ipa_get_stack_frame_offset): Declare.
4028 * ipa-icf.c (sem_function::merge): Update.
4029 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
4030 (estimate_growth): Update.
4031 (growth_likely_positive): Update.
4032 (clone_inlined_nodes): Update.
4033 (inline_call): Update.
4034 * ipa-inline.c (caller_growth_limits): Update.
4035 (edge_badness): Update.
4036 (recursive_inlining): Update.
4037 (inline_small_functions): Update.
4038 (inline_to_all_callers_1): Update.
4039 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
4040
4041 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
4042
4043 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
4044 (uavg<mode>3_ceil): ... This.
4045 (altivec_vavgs<VI_char>): Rename to...
4046 (avg<mode>3_ceil): ... This.
4047 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
4048 VAVGUW, VAVGSW): Adjust.
4049
4050 2019-10-24 Nathan Sidwell <nathan@acm.org>
4051
4052 * dumpfile.c (dump_begin): Reorder decls to use RAII.
4053
4054 2019-10-24 Martin Liska <mliska@suse.cz>
4055
4056 * symbol-summary.h (gt_pch_nx): Mark all functions
4057 with gcc_unreachable as we do not expect to be called.
4058
4059 2019-10-24 Richard Biener <rguenther@suse.de>
4060
4061 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
4062 chains try harder with operand swapping and instead of
4063 putting a shifted chain into the reduction operands put
4064 a repetition of the final reduction op there as if we'd
4065 reassociate the expression.
4066
4067 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
4068
4069 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
4070 statics_not_read and statics_not_written to statics_read and
4071 statics_written respectively.
4072 (no_module_statics): New static var.
4073 (ipa_reference_get_not_read_global): Rename to ...
4074 (ipa_reference_get_read_global): ... this.
4075 (ipa_reference_get_not_written_global): Rename to ...
4076 (ipa_reference_get_written_global): ... this.
4077 (dump_static_vars_set_to_file): Dump no_module_statics.
4078 (copy_static_var_set): Add for propagation parameter.
4079 (ipa_init): Initialize no_module_statics.
4080 (ipa_ref_opt_summary_t::duplicate): Update.
4081 (ipa_ref_opt_summary_t::remove): Update.
4082 (propagate): Update.
4083 (write_node_summary_p): Look correctly for bitmap differences.
4084 (ipa_reference_write_optimization_summary): Update.
4085 (ipa_reference_read_optimization_summary): Update.
4086 * ipa-reference.h
4087 (ipa_reference_get_not_read_global): Rename to ...
4088 (ipa_reference_get_read_global): ... this.
4089 (ipa_reference_get_not_written_global): Rename to ...
4090 (ipa_reference_get_written_global): ... this.
4091 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
4092 (call_may_clobber_ref_p_1): Update.
4093
4094 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4095
4096 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
4097 and add comment.
4098 (msp430_hard_regno_nregs_with_padding): Remove.
4099
4100 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4101
4102 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
4103 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
4104 shift amount is between 1 and 4.
4105 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
4106 is between 1 and 4.
4107
4108 2019-10-24 Richard Biener <rguenther@suse.de>
4109
4110 PR tree-optimization/92205
4111 * tree-vect-loop.c (vectorizable_reduction): Restrict
4112 search for alternate vectype_in to lane-reducing patterns
4113 we support.
4114
4115 2019-10-24 Richard Biener <rguenther@suse.de>
4116
4117 PR tree-optimization/92203
4118 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
4119 Skip eliminating conversion stmts inserted by insertion.
4120
4121 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
4122
4123 * config/s390/s390.c (s390_get_thread_pointer): Use
4124 gen_get_thread_pointer.
4125 (s390_expand_split_stack_prologue): Likewise.
4126 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
4127 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
4128 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
4129 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
4130 parameterized name.
4131
4132 2019-10-24 Richard Biener <rguenther@suse.de>
4133
4134 * tree-vect-slp.c (vect_analyze_slp): When reduction group
4135 SLP discovery fails try to handle the reduction as part
4136 of SLP reduction discovery.
4137
4138 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
4139
4140 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
4141 declaration.
4142 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
4143 attribute if it exists, rather than the insn size. If we use the
4144 insn size, adjust the size to remove the extra size that prefixed
4145 instructions take.
4146 (rs6000_adjust_insn_length): New function.
4147 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
4148 update the instruction sized if prefixed instructions are used.
4149 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
4150 (non_prefixed_length attribute): Delete.
4151 (num_insns attribute): New insn attribute to return the number of
4152 instructions.
4153 (max_prefixed_insns attribute): New insn attribute to return the
4154 maximum number of prefixed instructions in an insn.
4155 (length attribute): Do not adjust for prefix instructions here,
4156 punt to ADJUST_INSN_LENGTH.
4157 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
4158 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
4159 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
4160 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
4161 max_prefixed_insns and num_insns.
4162
4163 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
4164 (movtd_64bit_nodm): Reformat.
4165 (mov<mode>_32bit): Reformat.
4166 (mov<mode>_softfloat): Reformat.
4167 (FMOVE128_GPR splitter): Reformat.
4168 (DIFD splitter): Reformat.
4169 (TI2 splitter): Reformat.
4170 * config/rs6000/predicates.md (lwa_operand): If the bottom two
4171 bits of the offset for the memory address are non-zero, use PLWA
4172 if prefixed instructions are available.
4173
4174 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4175
4176 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
4177
4178 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4179
4180 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
4181 previous patch.
4182
4183 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4184
4185 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
4186 (cmp_symbol_files): New.
4187 (lto_output): Copy sections in file order.
4188 * lto-streamer.h (lto_file_decl_data): Add field order.
4189
4190 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4191
4192 * ipa-reference.h (ipa_reference_var_uid): Move offline.
4193 * ipa-reference.c (reference_vars_map_t): new type.
4194 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
4195 (ipa_reference_var_uid): Implement.
4196 (varpool_node_hooks): New static var.
4197 (varpool_removal_hook): New function.
4198 (is_improper): Do not check bitmap for id==-1
4199 (get_static_name): Update.
4200 (ipa_init): Initialize new datastructures.
4201 (analyze_function): Do not recompute ids.
4202 (propagate): Free reference_vars_to_consider.
4203 (stream_out_bitmap): Update.
4204 (ipa_reference_read_optimization_summary): Update.
4205
4206 2019-10-23 qing zhao <qing.zhao@oracle.com>
4207
4208 PR gcov-profile/91971
4209 * coverage.c (coverage_init): Mangle the full path of filename when
4210 filename is a absolute path.
4211
4212 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4213
4214 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
4215 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
4216 (msp430_has_hwmult): New.
4217 (msp430_output_labelref):
4218 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
4219 * config/msp430/msp430.md (mulhisi3): Likewise.
4220 (umulhisi3): Likewise.
4221 (mulsidi3): Likewise.
4222 (umulsidi3): Likewise.
4223
4224 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4225
4226 PR ipa/92074
4227 * params.def (inline-heuristics-hint-percent): Set to 600.
4228
4229 2019-10-23 Richard Biener <rguenther@suse.de>
4230
4231 PR tree-optimization/65930
4232 * tree-vect-loop.c (check_reduction_path): Allow conversions
4233 that only change the sign.
4234 (vectorizable_reduction): Relax latch def stmts we handle further.
4235
4236 2019-10-23 Jakub Jelinek <jakub@redhat.com>
4237
4238 PR debug/90231
4239 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
4240 (remove_unused_ivs): Use it instead of get_computation_at. When
4241 choosing best candidate, only consider candidates where
4242 get_debug_computation_at actually returns non-NULL.
4243
4244 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
4245
4246 PR tree-optimization/92131
4247 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
4248 range would be symbolic, drop to varying for any explicit overflow
4249 in the constant part or if neither range is a singleton.
4250
4251 2019-10-23 Martin Liska <mliska@suse.cz>
4252
4253 PR middle-end/81669
4254 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
4255 Initialize m_data.
4256
4257 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
4258
4259 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
4260 int_mode_for_mode rather than mode_for_int_vector for scalars.
4261
4262 2019-10-23 Richard Biener <rguenther@suse.de>
4263
4264 PR tree-optimization/92179
4265 * tree-vect-stmts.c (vectorizable_shift): For shift args
4266 that are all the same remove type restriction in the SLP case.
4267 Adjust SLP code to handle converting of the shift arg to
4268 only apply in case the modes are different.
4269
4270 2019-10-23 Martin Liska <mliska@suse.cz>
4271
4272 PR ipa/91969
4273 * ipa-inline.c (recursive_inlining): Do not print
4274 when curr->count is not initialized.
4275
4276 2019-10-23 Richard Biener <rguenther@suse.de>
4277
4278 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
4279 op from scalars in case there's a constant operand in its
4280 definition.
4281
4282 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
4283
4284 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
4285 against out of range max skip or log values.
4286
4287 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
4288
4289 * cgraph.c (dump_graphviz): Change name to dump_name
4290
4291 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
4292
4293 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
4294 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
4295 subtraction from a carry operation.
4296
4297 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
4298
4299 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
4300
4301 2019-10-22 Richard Biener <rguenther@suse.de>
4302
4303 PR tree-optimization/92173
4304 * tree-vect-loop.c (vectorizable_reduction): If
4305 vect_transform_reduction cannot handle code-generation try without
4306 the single-def-use-cycle optimization. Pass optab_vector to
4307 optab_for_tree_code to get vector shifts as that's what we'd
4308 generate.
4309
4310 2019-10-22 Michael Matz <matz@suse.de>
4311
4312 PR middle-end/90796
4313 * gimple-loop-jam.c (any_access_function_variant_p): New function.
4314 (adjust_unroll_factor): Use it to constrain safety, new parameter.
4315 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
4316
4317 2019-10-22 Richard Biener <rguenther@suse.de>
4318
4319 PR tree-optimization/92173
4320 * tree-vect-loop.c (vectorizable_reduction): If
4321 vect_transform_reduction cannot handle code-generation try without
4322 the single-def-use-cycle optimization. Pass optab_vector to
4323 optab_for_tree_code to get vector shifts as that's what we'd
4324 generate.
4325
4326 2019-10-22 Martin Liska <mliska@suse.cz>
4327
4328 * diagnostic-format-json.cc (json_from_expanded_location):
4329 Use json::integer_number.
4330 * gcov.c (output_intermediate_json_line): Use new
4331 json::integer_number.
4332 (output_json_intermediate_file): Likewise.
4333 * json.cc (number::print): Move to ...
4334 (float_number::print): ... this.
4335 (integer_number::print): New.
4336 (test_writing_numbers): Move to ...
4337 (test_writing_float_numbers): ... this.
4338 (test_writing_integer_numbers): New.
4339 (json_cc_tests): Register test_writing_integer_numbers.
4340 * json.h (class value): Add forward declaration
4341 for float_number and integer_number.
4342 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
4343 (class number): Move to ...
4344 (class float_number): ... this.
4345 (class integer_number): New.
4346 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
4347 Use json::integer_number.
4348 (optrecord_json_writer::location_to_json): Likewise.
4349 (optrecord_json_writer::profile_count_to_json): Likewise.
4350 (optrecord_json_writer::pass_to_json): Likewise.
4351
4352 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
4353
4354 * tree-vect-slp.c (vect_slp_bb_region): Check whether
4355 autodetected_vector_size rather than vector_size is zero.
4356 * tree-vect-loop.c (vect_analyze_loop): Likewise.
4357 Set autodetected_vector_size immediately after calling
4358 vect_analyze_loop_2. Check for a fatal error before advancing
4359 next_size.
4360
4361 2019-10-21 Jason Merrill <jason@redhat.com>
4362
4363 * lock-and-run.sh: Check for process existence rather than timeout.
4364
4365 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4366
4367 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
4368 widening multiplication.
4369
4370 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
4371
4372 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
4373 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
4374 type attribute.
4375 (subsi3_carryin_shift): Separate into register and constant controlled
4376 alternatives. Use shift_amount_operand for operand 4. Set shift
4377 attribute and simplify type attribute.
4378 (subsi3_carryin_shift_alt): Likewise.
4379 (rsbsi3_carryin_shift): Likewise.
4380 (rsbsi3_carryin_shift_alt): Likewise.
4381 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
4382 and register controlled shifts into distinct alternatives.
4383 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
4384 (andsi_not_shiftsi_si_scc): Likewise.
4385 (arm_cmpsi_negshiftsi_si): Likewise.
4386 (not_shiftsi): Remove redundant M constraint from alternative 1.
4387 (not_shiftsi_compare0): Likewise.
4388 (arm_cmpsi_insn): Remove redundant alternative 2.
4389 (cmpsi_shift_swp): Likewise.
4390 (sub_shiftsi): Likewise.
4391 (sub_shiftsi_compare0_scratch): Likewise.
4392 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
4393 (thumb2_cmpsi_neg_shiftsi): Likewise.
4394
4395 2019-10-21 Richard Biener <rguenther@suse.de>
4396
4397 PR tree-optimization/92162
4398 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
4399 STMT_VINFO_REDUC_IDX in reduc_info.
4400 * tree-vect-stmts.c (vectorizable_condition): Likewise.
4401
4402 2019-10-21 Richard Biener <rguenther@suse.de>
4403
4404 * tree-vectorizer.h (_slp_tree::ops): New member.
4405 (SLP_TREE_SCALAR_OPS): New.
4406 (vect_get_slp_defs): Adjust prototype.
4407 * tree-vect-slp.c (vect_free_slp_tree): Release
4408 SLP_TREE_SCALAR_OPS.
4409 (vect_create_new_slp_node): Initialize it. New overload for
4410 initializing by an operands array.
4411 (_slp_oprnd_info::ops): New member.
4412 (vect_create_oprnd_info): Initialize it.
4413 (vect_free_oprnd_info): Release it.
4414 (vect_get_and_check_slp_defs): Populate the operands array.
4415 Do not swap operands in the IL when not necessary.
4416 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
4417 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
4418 swap operands in the operands array. Do not swap operands in
4419 the IL.
4420 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
4421 (vect_gather_slp_loads): Fix.
4422 (vect_detect_hybrid_slp_stmts): Likewise.
4423 (vect_slp_analyze_node_operations_1): Search for a internal
4424 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
4425 (vect_slp_analyze_node_operations): Skip ops-only stmts for
4426 the def-type push/pop dance.
4427 (vect_get_constant_vectors): Compute number_of_vectors here.
4428 Use SLP_TREE_SCALAR_OPS and simplify greatly.
4429 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
4430 (vect_get_slp_defs): Simplify greatly.
4431 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
4432 (vect_transform_reduction): Likewise.
4433 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
4434 (vectorizable_call): Likewise.
4435 (vectorizable_operation): Likewise.
4436 (vectorizable_load): Likewise.
4437 (vectorizable_condition): Likewise.
4438 (vectorizable_comparison): Likewise.
4439
4440 2019-10-21 Richard Biener <rguenther@suse.de>
4441
4442 PR tree-optimization/92161
4443 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
4444 for reductions.
4445
4446 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4447
4448 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
4449 (aarch64_rndr): New define_insn.
4450 (aarch64_rndrrs): Likewise.
4451 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
4452 (TARGET_RNG): Likewise.
4453 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
4454 argument.
4455 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
4456 Add fourth argument in prototype.
4457 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
4458 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
4459 (aarch64_init_rng_builtins): Define.
4460 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
4461 (aarch64_expand_rng_builtin): Define.
4462 (aarch64_general_expand_builtin): Use IGNORE argument, handle
4463 RNG builtins.
4464 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
4465 __ARM_FEATURE_RNG when TARGET_RNG.
4466 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
4467
4468 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
4469
4470 * tree-vect-stmts (ensure_base_align): Only change alignment if new
4471 alignment is more restrictive.
4472
4473 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4474
4475 * tree-vectorizer.h (vec_info::vector_size): New member variable.
4476 (vect_update_max_nunits): Update comment.
4477 (current_vector_size): Delete.
4478 * tree-vect-stmts.c (current_vector_size): Likewise.
4479 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
4480 of current_vector_size.
4481 (get_mask_type_for_scalar_type): Likewise.
4482 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
4483 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
4484 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
4485 (vect_double_mask_nunits, vect_transform_loop): Likewise.
4486 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
4487 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
4488
4489 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4490
4491 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
4492 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
4493 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
4494 accordingly.
4495
4496 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4497
4498 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
4499 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
4500 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
4501 call accordingly.
4502 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
4503
4504 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4505
4506 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
4507 a loop_vec_info.
4508 (vect_set_loop_condition_masked): Update call accordingly.
4509
4510 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4511
4512 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
4513 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
4514 (simple_integer_narrowing): Update call accordingly.
4515 (vectorizable_conversion): Likewise.
4516
4517 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4518
4519 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
4520 (vectorizable_call): Update call accordingly.
4521
4522 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4523
4524 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
4525 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
4526 (duplicate_and_interleave): Update call accordingly.
4527 * tree-vect-loop.c (vectorizable_reduction): Likewise.
4528
4529 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4530
4531 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
4532 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
4533 (vect_get_constant_vectors): Update call accordingly.
4534 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
4535
4536 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4537
4538 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
4539 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
4540 (vect_prologue_cost_for_slp_op): Update call accordingly.
4541 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
4542 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
4543 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
4544 (get_mask_type_for_scalar_type): Likewise.
4545 (vect_get_vector_types_for_stmt): Likewise.
4546 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
4547 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
4548 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
4549 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
4550 (vect_split_statement, vect_convert_input): Likewise.
4551 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
4552 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
4553 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
4554 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
4555 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
4556 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
4557 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
4558 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
4559 (vect_recog_mask_conversion_pattern): Likewise.
4560 (vect_add_conversion_to_pattern): Likewise.
4561 (vect_recog_gather_scatter_pattern): Likewise.
4562 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
4563 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
4564
4565 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4566
4567 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
4568 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
4569 (vect_check_load_store_mask): Update call accordingly.
4570 (vect_get_mask_type_for_stmt): Likewise.
4571 * tree-vect-patterns.c (check_bool_pattern): Likewise.
4572 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
4573 (vect_convert_mask_for_vectype): Likewise.
4574
4575 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4576
4577 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
4578 a vec_info.
4579 (vect_recog_dot_prod_pattern): Update call accordingly.
4580 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
4581 (vect_recog_widen_sum_pattern): Likewise.
4582
4583 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4584
4585 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
4586 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
4587 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
4588 accordingly.
4589
4590 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4591
4592 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
4593 get_vectype_for_scalar_type_and_size instead of
4594 get_vectype_for_scalar_type.
4595
4596 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
4597
4598 * common.opt (-fcommon): Fix description.
4599
4600 2019-10-20 Jakub Jelinek <jakub@redhat.com>
4601
4602 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
4603 * config/i386/i386.c (ix86_pre_reload_split): New function.
4604 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
4605 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
4606 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
4607 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
4608 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
4609 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
4610 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
4611 *<shift_insn><dwi>3_doubleword_mask,
4612 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
4613 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
4614 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
4615 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
4616 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
4617 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
4618 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
4619 *avx2_<code>v8qiv8si2<mask_name>_2,
4620 *sse4_1_<code>v4qiv4si2<mask_name>_2,
4621 *sse4_1_<code>v4hiv4si2<mask_name>_2,
4622 *avx512f_<code>v8qiv8di2<mask_name>_2,
4623 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
4624 *sse4_1_<code>v2hiv2di2<mask_name>_2,
4625 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
4626 sse4_2_pcmpistr): Likewise.
4627
4628 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
4629
4630 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
4631 now defaults to https.
4632
4633 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
4634
4635 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
4636 skip non-zero array accesses.
4637
4638 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
4639
4640 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
4641 and return a boolean success value. Move the allocation and
4642 initialization of the bb_vec_info to...
4643 (vect_slp_bb_region): ...here. Update call accordingly.
4644 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
4645 than in vect_slp_analyze_bb_1.
4646
4647 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
4648
4649 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
4650 when processing the given datarefs for the first time and
4651 check_datarefs subsequently.
4652 (vect_slp_bb_region): New function, split out of...
4653 (vect_slp_bb): ...here. Don't recompute the region bounds and
4654 dataref sets when retrying with a different vector size.
4655
4656 2019-10-19 Jakub Jelinek <jakub@redhat.com>
4657 Uroš Bizjak <ubizjak@gmail.com>
4658
4659 PR target/92140
4660 * config/i386/predicates.md (int_nonimmediate_operand): New special
4661 predicate.
4662 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
4663 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
4664 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
4665 define_insn_and_split patterns.
4666
4667 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
4668
4669 * config/rs6000/rs6000.md: Delete out--of-date comment about
4670 special-casing integer loads.
4671
4672 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
4673
4674 * escaped_string.h (escaped_string): New header.
4675 * tree.c (escaped_string): Remove escaped_string class.
4676
4677 2019-10-18 Martin Sebor <msebor@redhat.com>
4678
4679 PR tree-optimization/92157
4680 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
4681 compute_string_length to return a negative result.
4682
4683 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4684
4685 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
4686 (negvsi3, negvdi3): Delete.
4687 (negdi2_compare): Delete.
4688
4689 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4690
4691 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
4692 operations.
4693 (subdi3_compare1): Delete pattern.
4694 (subvsi3_borrow): New insn pattern.
4695 (subvsi3_borrow_imm): Likewise.
4696
4697 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4698
4699 * config/arm/arm.md (subv<mode>4): Delete.
4700 (subvdi4): New expander pattern.
4701 (subvsi4): Likewise. Handle some immediate values.
4702 (subvsi3_intmin): New insn pattern.
4703 (subvsi3): Likewise.
4704 (subvsi3_imm1): Likewise.
4705 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
4706 idioms.
4707
4708 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4709
4710 * config/arm/arm.md (usubvdi4): Allow registers or integers for
4711 incoming operands. Early split the calculation into SImode
4712 operations.
4713 (usubvsi3_borrow): New insn pattern.
4714 (usubvsi3_borrow_imm): Likewise.
4715
4716 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4717
4718 * config/arm/arm.md (usubv<mode>4): Delete expansion.
4719 (usubvsi4): New pattern. Allow some immediate values for inputs.
4720 (usubvdi4): New pattern.
4721
4722 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4723
4724 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
4725 or second operand of the PLUS inside a DImode equality test to be
4726 sign-extend when selecting CC_Vmode.
4727 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
4728 instructions.
4729 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
4730 expand patterns.
4731 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
4732 (addsi3_cin_vout_0): Likewise.
4733 (adddi3_compareV): Delete.
4734
4735 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4736
4737 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
4738 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
4739 to transform this back into the summation version when that leads
4740 to smaller code.
4741
4742 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4743
4744 * config/arm/arm.md (addv<mode>4): Delete.
4745 (addvsi4): New pattern. Handle immediate values that the architecture
4746 supports.
4747 (addvdi4): New pattern.
4748 (addsi3_compareV): Rename to ...
4749 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
4750 and use COMPARE rather than NE.
4751 (addsi3_compareV_imm): New pattern.
4752 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
4753 a signed-overflow check.
4754
4755 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4756
4757 * config/arm/arm-modes.def (CC_ADC): New CC mode.
4758 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
4759 CC_ADCmode.
4760 (maybe_get_arm_condition_code): Handle CC_ADCmode.
4761 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
4762 with overflow.
4763 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
4764 expand patterns.
4765 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
4766 (addsi3_cin_cout_imm_insn): Likewise.
4767 (adddi3_compareC): Delete insn.
4768 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
4769
4770 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4771
4772 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
4773 * (uaddv<mode>4): Delete expansion pattern.
4774 (uaddvsi4): New pattern.
4775 (uaddvdi4): Likewise.
4776 (addsi3_compareC): Delete pattern, change callers to use
4777 addsi3_compare_op1.
4778 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
4779 reduce the number of alternatives and re-work type attribute handling.
4780 (addsi3_compare_op2): Clean up constraints to reduce the number of
4781 alternatives and re-work type attribute handling.
4782 (compare_addsi2_op0): Likewise.
4783 (compare_addsi2_op1): Likewise.
4784
4785 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4786
4787 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
4788 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
4789 for DImode operands.
4790 (arm_gen_dicompare_reg): Remove unreachable expansion code.
4791 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
4792 CC_NCVmode.
4793 * config/arm/arm.md (arm_cmpdi_insn): Delete.
4794 (arm_cmpdi_unsigned): Delete.
4795
4796 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4797
4798 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
4799 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
4800 unchanged only if that will be cheaper.
4801 (arm_select_cc_mode): Recognize a swapped comparison that will
4802 be regenerated using RSBS or RSCS. Relax restriction on selecting
4803 CC_RSBmode.
4804 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
4805 a constant.
4806 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
4807 is CC_RSBmode.
4808 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
4809 as CCmode.
4810 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
4811 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
4812
4813 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4814
4815 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
4816 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
4817 need these modes.
4818 (arm_gen_dicompare_reg): New code to early expand the sub-operations
4819 of EQ, NE, LT, GE, LTU and GEU.
4820 * config/arm/iterators.md (CC_EXTEND): New code attribute.
4821 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
4822 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
4823 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
4824 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
4825
4826 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4827
4828 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
4829 operand 2.
4830 (cstoredi4): Similarly, but for operand 3.
4831 * config/arm/arm.c (arm_canoncialize_comparison): Allow
4832 canonicalization of unsigned compares with a constant on Arm.
4833 Prefer using const+1 and adjusting the comparison over swapping the
4834 operands whenever the original constant was not valid.
4835 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
4836 register here.
4837 (arm_validize_comparison): Do not force invalid DImode operands to
4838 registers here.
4839
4840 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4841
4842 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
4843 return CC_Zmode if comparing against a constant where one word is
4844 zero.
4845 (arm_gen_compare_reg): Split DImode handling to ...
4846 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
4847 against simple constants.
4848 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
4849
4850 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4851
4852 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
4853 (rsbsi3_carryin_shift_alt): Likewise.
4854
4855 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4856
4857 * config/arm/arm.md (negscc_borrow): New pattern.
4858 (mov_negscc): Don't split if the insn would match negscc_borrow.
4859 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
4860 (thumb2_mov_negscc_strict_it): Likewise.
4861
4862 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4863
4864 * config/arm/arm.c (arm_insn_cost): New function.
4865 (TARGET_INSN_COST): Override default definition.
4866
4867 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4868
4869 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
4870 borrow operations.
4871
4872 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4873
4874 * config/arm/arm.c (strip_carry_operation): New function.
4875 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
4876 for SImode.
4877
4878 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4879
4880 * config/arm/predicates.md (arm_carry_operation): New special
4881 predicate.
4882 * config/arm/iterators.md (LTUGEU): Delete iterator.
4883 (cnb): Delete code attribute.
4884 (optab): Delete ltu and geu elements.
4885 * config/arm/arm.md (addsi3_carryin): Renamed from
4886 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
4887 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
4888 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
4889 (addsi3_carryin_clobercc): Similarly.
4890 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
4891 Thumb2 state.
4892
4893 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4894
4895 * config/arm/arm.md (arm_subdi3): Delete insn.
4896 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
4897
4898 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4899
4900 * config/arm/arm-modes.def (CC_RSB): New CC mode.
4901 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
4902 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
4903 return CC_RSBmode.
4904 (maybe_get_arm_condition_code): Handle CC_RSBmode.
4905 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
4906 expand.
4907 (subdi3): Rewrite to early-expand the sub-operations.
4908 (rsb_im_compare): New pattern.
4909 (negdi2): Delete.
4910 (negdi2_insn): Delete.
4911 (arm_negsi2): Correct type attribute to alu_imm.
4912 (negsi2_0compare): New insn pattern.
4913 (negsi2_carryin): New insn pattern.
4914
4915 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4916
4917 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
4918 operand 2.
4919
4920 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4921
4922 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
4923 to match canonical form.
4924
4925 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4926
4927 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
4928 (extend<mode>di2): Likewise.
4929
4930 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4931
4932 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
4933 * config/arm/arm.c (arm_decompose_di_binop): New function.
4934 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
4935 If not generating Thumb-1 code, decompose the operation into 32-bit
4936 pieces.
4937 * add0si_carryin_<optab>: New pattern.
4938
4939 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
4940
4941 * arm.md (adddi3): Only accept register operands.
4942 (arm_adddi3): Convert to simple insn with no split. Do not accept
4943 constants.
4944 (adddi_sesidi_di): Delete patern.
4945 (adddi_zesidi_di): Likewise.
4946 (uaddv<mode>4): Use LTU as condition for branch.
4947 (adddi3_compareV): Convert to simple insn with no split.
4948 (addsi3_compareV_upper): Delete pattern.
4949 (adddi3_compareC): Convert to simple insn with no split. Correct
4950 flags setting expression.
4951 (addsi3_compareC_upper): Delete pattern.
4952 (addsi3_compareC): Correct flags setting expression.
4953 (subdi3_compare1): Convert to simple insn with no split.
4954 (subsi3_carryin_compare): Delete pattern.
4955 (arm_subdi3): Convert to simple insn with no split.
4956 (subdi_zesidi): Delete pattern.
4957 (subdi_di_sesidi): Delete pattern.
4958 (subdi_zesidi_di): Delete pattern.
4959 (subdi_sesidi_di): Delete pattern.
4960 (subdi_zesidi_zesidi): Delete pattern.
4961 (negvdi3): Use s_register_operand.
4962 (negdi2_compare): Convert to simple insn with no split.
4963 (negdi2_insn): Likewise.
4964 (negsi2_carryin_compare): Delete pattern.
4965 (negdi_zero_extendsidi): Delete pattern.
4966 (arm_cmpdi_insn): Convert to simple insn with no split.
4967 (negdi2): Don't call gen_negdi2_neon.
4968 * config/arm/neon.md (adddi3_neon): Delete pattern.
4969 (subdi3_neon): Delete pattern.
4970 (negdi2_neon): Delete pattern.
4971 (splits for negdi2_neon): Delete splits.
4972
4973 2019-10-18 Jakub Jelinek <jakub@redhat.com>
4974
4975 PR middle-end/92153
4976 * ggc-page.c (release_pages): Read g->alloc_size before free rather
4977 than after it.
4978
4979 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
4980
4981 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
4982 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
4983 new multilib variants and new mappings.
4984
4985 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
4986
4987 PR target/86040
4988 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
4989
4990 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4991 Richard Sandiford <richard.sandiford@arm.com>
4992
4993 PR target/86753
4994 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
4995 and define hashmap traits for it.
4996 (loop_vec_info::scalar_cond_masked_set): New member.
4997 (vect_record_loop_mask): Adjust prototype.
4998 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
4999 Implement method.
5000 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
5001 vect_record_loop_mask.
5002 (vectorizable_live_operation): Likewise.
5003 (vect_record_loop_mask): New param scalar_mask. Add entry
5004 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
5005 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
5006 Pass it as last arg to vect_record_loop_mask.
5007 (vectorizable_call): Pass scalar_mask as last arg to
5008 vect_record_loop_mask.
5009 (vectorizable_store): Likewise.
5010 (vectorizable_load): Likewise.
5011 (vectorizable_condition): Check if another part of vectorized code
5012 applies loop_mask to condition or to it's inverse, and if yes,
5013 apply loop_mask to result of vector comparison.
5014
5015 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
5016
5017 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
5018
5019 2019-10-18 Jakub Jelinek <jakub@redhat.com>
5020
5021 PR tree-optimization/92056
5022 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
5023 before calling compute_builtin_object_size.
5024
5025 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
5026
5027 PR target/65342
5028 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
5029 (movdi_low_st): Delete.
5030 * config/rs6000/rs6000.c
5031 (darwin_rs6000_legitimate_lo_sum_const_p): New.
5032 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
5033 * config/rs6000/rs6000.md (movsi_low): Delete.
5034
5035 2019-10-17 Jason Merrill <jason@redhat.com>
5036
5037 * gimplify.h (get_initialized_tmp_var): Add default argument to
5038 post_p.
5039 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
5040 NULL post_p argument.
5041 * targhooks (std_gimplify_va_arg_expr): Likewise.
5042
5043 2019-10-17 Richard Biener <rguenther@suse.de>
5044
5045 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
5046 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
5047 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
5048 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
5049 * tree-vect-loop.c (vect_is_simple_reduction): Set
5050 STMT_VINFO_REDUC_CODE.
5051 (vectorizable_reduction): Remove dead and redundant code, use
5052 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
5053
5054 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
5055
5056 Fix breakage introduced by r276985.
5057
5058 * config/avr/avr.c (avr_option_override): Remove set of
5059 PARAM_ALLOW_STORE_DATA_RACES.
5060 * common/config/avr/avr-common.c (avr_option_optimization_table)
5061 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
5062
5063 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
5064
5065 * config/i386/i386.h (processor_costs): Add clear_ratio.
5066 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
5067 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
5068 of 6 and move_ratio in all cost models.
5069
5070 2019-10-17 Richard Biener <rguenther@suse.de>
5071
5072 * tree-vect-loop.c (check_reduction_path): Compute reduction
5073 operation here.
5074 (vect_is_simple_reduction): Remove special-case of single-stmt
5075 reduction path detection.
5076
5077 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
5078
5079 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
5080
5081 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
5082
5083 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
5084 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
5085 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
5086 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
5087 New combine patterns.
5088 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
5089 above.
5090 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
5091
5092 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
5093
5094 * tree-vrp.c (value_range_base::dump): Display +INF for both
5095 pointers and integers when appropriate.
5096
5097 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
5098
5099 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
5100 when to use versioning threshold.
5101
5102 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
5103
5104 * tree-vect-loop.c (determine_peel_for_niter): New function contained
5105 outlined code from ...
5106 (vect_analyze_loop_2): ... here.
5107
5108 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
5109
5110 * tree-vect-loop.c (vect_transform_loop): Move code from here...
5111 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
5112 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
5113
5114 2019-10-17 Richard Biener <rguenther@suse.de>
5115
5116 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
5117 (vect_is_simple_reduction): Move all validity checks ...
5118 (vectorizable_reduction): ... here. Compute whether we
5119 need a fold-left reduction here.
5120 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
5121 both overloads, check needs_fold_left_reduction_p directly.
5122 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
5123
5124 2019-10-17 Richard Biener <rguenther@suse.de>
5125
5126 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
5127 TARGET_MEM_REF creation.
5128
5129 2019-10-17 Richard Biener <rguenther@suse.de>
5130
5131 PR tree-optimization/92129
5132 * tree-vect-loop.c (vectorizable_reduction): Also fail
5133 on GIMPLE_SINGLE_RHS.
5134
5135 2019-10-17 Jakub Jelinek <jakub@redhat.com>
5136
5137 PR tree-optimization/92056
5138 * tree-object-size.c (cond_expr_object_size): Return early if then_
5139 processing resulted in unknown size.
5140
5141 PR tree-optimization/92115
5142 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
5143 temporary if it could trap.
5144
5145 2019-10-17 Richard Biener <rguenther@suse.de>
5146
5147 PR debug/91887
5148 * dwarf2out.c (gen_formal_parameter_die): Also try to match
5149 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
5150
5151 2019-10-16 Jakub Jelinek <jakub@redhat.com>
5152
5153 * tree-ssa-strlen.c (maybe_invalidate): Use
5154 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
5155
5156 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
5157 Jim Wilson <jimw@sifive.com>
5158
5159 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
5160 regs to SIBCALL_REGS.
5161 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
5162 passing regs to SIBCALL_REGS.
5163
5164 2019-10-16 Martin Sebor <msebor@redhat.com>
5165
5166 PR tree-optimization/83821
5167 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
5168 the length of a string when available.
5169 (handle_builtin_memset) Add argument.
5170 (handle_store, strlen_check_and_optimize_call): Same.
5171 (check_and_optimize_stmt): Same. Pass it to callees.
5172
5173 2019-10-16 Martin Sebor <msebor@redhat.com>
5174
5175 PR tree-optimization/91996
5176 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
5177 information.
5178 (compare_nonzero_chars): Add an overload.
5179 (count_nonzero_bytes): Add an argument. Call overload above.
5180 Handle non-constant lengths in some range.
5181 (handle_store): Add an argument.
5182 (check_and_optimize_stmt): Pass an argument to handle_store.
5183
5184 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
5185
5186 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
5187
5188 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
5189
5190 * config/mips/mips.c (mips_expand_builtin_insn): Force the
5191 operands which correspond to the same input-output register to
5192 have the same pseudo assigned to them.
5193
5194 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
5195
5196 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
5197
5198 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
5199
5200 * config/aarch64/aarch64.c (aarch64_classify_symbol):
5201 Apply reasonable limit to symbol offsets.
5202
5203 2019-10-16 Richard Biener <rguenther@suse.de>
5204
5205 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
5206 (vect_is_simple_reduction): Delay checking to
5207 vectorizable_reduction and relax the checking.
5208 (vectorizable_reduction): Check we have a simple use. Check
5209 for bogus condition reductions.
5210 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
5211 are looking at the last stmt in a pattern sequence when
5212 filling in backedge PHI values.
5213
5214 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
5215 Jiufu Guo <guojiufu@linux.ibm.com>
5216
5217 PR target/70010
5218 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
5219 the callee explicitly disables some isa_flags the caller is using.
5220
5221 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5222
5223 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
5224
5225 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5226
5227 * genmodes.c (mode_data::order): New field.
5228 (blank_mode): Update accordingly.
5229 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
5230 (make_vector_modes): Likewise.
5231 (VECTOR_MODES): Update use accordingly.
5232 (cmp_modes): Sort by the new order field ahead of sorting by size.
5233 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
5234 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
5235 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
5236 (aarch64_classify_vector_mode): Handle the new partial modes.
5237 (aarch64_vl_bytes): New function.
5238 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
5239 when counting the number of registers in an SVE mode.
5240 (aarch64_class_max_nregs): Likewise.
5241 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
5242 in registers yet.
5243 (aarch64_classify_address): Treat partial vectors analogously
5244 to full vectors.
5245 (aarch64_print_address_internal): Consolidate the printing of
5246 MUL VL addresses, using aarch64_vl_bytes as the number of
5247 bytes represented by "VL".
5248 (aarch64_vector_mode_supported_p): Reject partial vector modes.
5249
5250 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5251
5252 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
5253 rather than known_lt when choosing frame layouts.
5254
5255 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5256
5257 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
5258 that all the adjustments add up to the full frame size.
5259 Use crtl->outgoing_args_size directly as the final adjustment
5260 where appropriate.
5261
5262 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5263
5264 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
5265 "frame" reference instead of always referring directly to
5266 "cfun->machine->frame".
5267
5268 2019-10-16 Richard Biener <rguenther@suse.de>
5269
5270 PR tree-optimization/92119
5271 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
5272 against missing bswap lhs.
5273
5274 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5275
5276 PR middle-end/92033
5277 * poly-int.h (constant_lower_bound_with_limit): New function.
5278 (constant_upper_bound_with_limit): Likewise.
5279 * doc/poly-int.texi: Document them.
5280 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
5281 into the worst-case INTEGER_CST bounds.
5282
5283 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
5284
5285 PR ipa/91088
5286 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
5287 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
5288 * ipa-predicat.h (struct expr_eval_op): New struct.
5289 (expr_eval_ops): New typedef.
5290 (struct condition): Add type and param_ops fields, remove size field.
5291 (add_condition): Replace size parameter with type parameter, add
5292 param_ops parameter.
5293 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
5294 (predicate::add_clause): Add comparisons on type and param_ops.
5295 (dump_condition): Add debug dump for param_ops.
5296 (remap_after_inlining): Adjust call arguments to add_condition.
5297 (add_condition): Replace size parameter with type parameter, add
5298 param_ops parameter. Unshare constant value used in conditions.
5299 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
5300 parameter expressions using param_ops.
5301 (decompose_param_expr): New function.
5302 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
5303 to replace call to unmodified_parm_or_parm_agg_item.
5304 (set_switch_stmt_execution_predicate): Likewise.
5305 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
5306 with type.
5307 (inline_read_section): Read param_ops from summary stream.
5308 (ipa_fn_summary_write): Write param_ops to summary stream.
5309
5310 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
5311
5312 PR rtl-optimization/92107
5313 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
5314 expression written.
5315
5316 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
5317
5318 * config/darwin.c: Update description of fix and continue.
5319
5320 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
5321
5322 * config/darwin.c (darwin_binds_local_p): Update to call
5323 default_binds_local_p_3 () directly. amend comments.
5324
5325 2019-10-15 Richard Biener <rguenther@suse.de>
5326
5327 * lto-streamer-out.c (lto_variably_modified_type_p): New.
5328 (tree_is_indexable): Use it.
5329 * tree-streamer-out.c (pack_ts_type_common_value_fields):
5330 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
5331 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
5332
5333 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5334
5335 * config/msp430/msp430.md (zero_extendqipsi2): New.
5336 (zero_extendqisi2): Optimize case where src register and base dst
5337 register are the same.
5338 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
5339 (zero_extendpsisi2): Optimize r->m case.
5340 Add unnamed insn patterns to catch insns combine searches for when
5341 optimizing pointer manipulation.
5342
5343 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5344
5345 * config/msp430/msp430.md: Group zero_extend* insns together.
5346
5347 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5348
5349 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
5350 constraint.
5351 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
5352 POST_INC.
5353 (msp430_subreg): Likewise.
5354 (msp430_split_addsi): Likewise.
5355 (msp430_print_operand_addr): Likewise.
5356 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
5357 (USE_STORE_POST_INCREMENT): Define.
5358 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
5359 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
5360 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
5361 (msp430_general_dst_operand): New.
5362 (msp430_general_dst_nonv_operand): New.
5363 (msp430_nonsubreg_operand): Remove.
5364 (msp430_nonsubreg_dst_operand): New.
5365 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
5366 of defunct msp430_nonsubreg_operand.
5367 (msp430_nonsubregnonpostinc_or_imm_operand): New.
5368
5369 2019-10-15 Richard Biener <rguenther@suse.de>
5370
5371 PR tree-optimization/91929
5372 * tree-ssa-pre.c (pre_expr_d::loc): New member.
5373 (get_or_alloc_expr_for_name): Initialize it.
5374 (get_or_alloc_expr_for_constant): Likewise.
5375 (phi_translate_1): Copy it.
5376 (create_expression_by_pieces): Use the original location
5377 of the expression for the inserted stmt.
5378 (compute_avail): Record the location of the stmt for the
5379 expressions created.
5380
5381 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
5382
5383 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
5384 before using tree_to_uhwi.
5385
5386 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
5387
5388 * config/s390/s390.md: Run %a0:DI splitters only after reload.
5389
5390 2019-10-15 Richard Biener <rguenther@suse.de>
5391
5392 PR tree-optimization/92094
5393 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
5394 do not adjust the reduction definition def type.
5395 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
5396 defines the latch argument of the PHI.
5397
5398 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
5399
5400 PR target/92035
5401 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
5402 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
5403 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
5404 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
5405 _mm_maskz_roundscale_round_sd): New intrinsics.
5406 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
5407 __builtin_ia32_rndscales?_mask_round builtins instead of
5408 __builtin_ia32_rndscales?_round.
5409 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
5410 __builtin_ia32_rndscalesd_round): Remove.
5411 (__builtin_ia32_rndscaless_mask_round,
5412 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
5413 * config/i386/sse.md
5414 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
5415 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
5416 ... this, adjust and add subst atrributes to make it maskable.
5417
5418 2019-10-15 Richard Biener <rguenther@suse.de>
5419
5420 PR middle-end/92046
5421 * common.opt (fallow-store-data-races): New.
5422 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
5423 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
5424 * doc/invoke.texi (fallow-store-data-races): Document.
5425 (--param allow-store-data-races): Remove docs.
5426 * opts.c (default_options_table): Enable -fallow-store-data-races
5427 at -Ofast.
5428 (default_options_optimization): Do not enable --param
5429 allow-store-data-races at -Ofast.
5430 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
5431 instead of PARAM_ALLOW_STORE_DATA_RACES.
5432 * tree-ssa-loop-im.c (execute_sm): Likewise.
5433
5434 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5435
5436 PR tree-optimization/92085
5437 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
5438 instead of calling it unconditionally after
5439 delete_dead_or_redundant_assignment and fix indentation.
5440
5441 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5442
5443 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
5444 TARGET_VFP_DOUBLE.
5445 (*fmsub<SDF:mode>4): Likewise.
5446 *fnmsub<SDF:mode>4): Likewise.
5447 (*fnmadd<SDF:mode>4): Likewise.
5448
5449 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
5450
5451 * doc/tree-ssa.texi: Update renamed macro name.
5452
5453 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
5454
5455 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
5456 vector constants.
5457
5458 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
5459
5460 * config/darwin.c: Use unsigned ints for the picbase label
5461 counters, initialise the vars explicitly.
5462 (update_pic_label_number_if_needed): Move a variable declaration
5463 to where it's needed.
5464 (machopic_output_function_base_name): Use a more strict checking
5465 assert, and and unsigned int for the picbase label counter.
5466 (machopic_get_function_picbase): Likewise.
5467
5468 2019-10-14 Richard Biener <rguenther@suse.de>
5469
5470 PR middle-end/92046
5471 * dse.c (scan_insn): Use param max_active_local_stores.
5472 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
5473 based on optimization level.
5474 * loop-invariant.c (move_loop_invariants): Adjust
5475 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
5476 * opts.c (default_options_optimization): Do not adjust
5477 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
5478 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
5479
5480 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
5481
5482 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
5483
5484 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
5485
5486 * config/arm/arm.c (arm_option_override): Don't override sched
5487 pressure algorithm.
5488
5489 2019-10-14 Richard Biener <rguenther@suse.de>
5490
5491 PR tree-optimization/92069
5492 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
5493 cycles do not set vect_nested_cycle on the latch definition.
5494
5495 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
5496
5497 * function-abi.h (expr_callee_abi): Declare.
5498 * function-abi.cc (expr_callee_abi): New function.
5499
5500 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
5501
5502 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
5503 into [1,MAX].
5504 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
5505 non-zero being represented as [1,MAX].
5506
5507 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
5508
5509 * tree-sra.c (dump_access): Add missing braces.
5510
5511 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
5512
5513 * config/darwin.c (machopic_indirection_name): Rework the
5514 function to emit linker-visible symbols only for indirections
5515 in the data section. Clean up the code and update comments.
5516
5517 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
5518
5519 * config/darwin.c (machopic_indirect_data_reference): Remove
5520 redundant code.
5521
5522 2019-10-13 Nathan Sidwell <nathan@acm.org>
5523
5524 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
5525
5526 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5527
5528 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
5529 c99_runtime.
5530
5531 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
5532
5533 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
5534 so non-virutal are before virutals.
5535 (output_function): Avoid body modifications.
5536
5537 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
5538
5539 * config/pa/pa.c (pa_output_call): Load descriptor address to register
5540 %r22. Load function address before global pointer.
5541 (pa_attr_length_indirect_call): Adjust length of inline versions of
5542 $$dyncall.
5543 (pa_output_indirect_call): Remove fast inline version of $$dyncall
5544 before normal cases. Update inline $$dyncall sequences to preserve
5545 function descriptor address in register %r22.
5546 (TRAMPOLINE_CODE_SIZE): Adjust.
5547 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
5548 register %r22 contains trampoline address.
5549 (pa_trampoline_init): Adjust offsets.
5550 (pa_trampoline_adjust_address): Likewise.
5551 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
5552
5553 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
5554
5555 PR target/67183
5556 * config/darwin.c (machopic_indirection): New field to flag
5557 non-lazy-symbol-pointers in the data section.
5558 (machopic_indirection_name): Compute if an indirection should
5559 appear in the data section.
5560 (machopic_output_data_section_indirection): New callback split
5561 from machopic_output_indirection.
5562 (machopic_output_stub_indirection): Likewise.
5563 (machopic_output_indirection): Retain the code for non-lazy
5564 symbol pointers in their regular section.
5565 (machopic_finish): Use the new callbacks to order the indirection
5566 output.
5567
5568 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
5569
5570 * config/darwin-protos.h (machopic_finish): Delete.
5571 * config/darwin.c (machopic_finish): Make static.
5572
5573 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
5574
5575 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
5576 sections when building kernel extension code.
5577
5578 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
5579
5580 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
5581 later standard."
5582
5583 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
5584
5585 * config/pa/pa.c (pa_option_override): Remove trailing comma
5586 from warning.
5587
5588 2019-10-12 Jakub Jelinek <jakub@redhat.com>
5589
5590 PR middle-end/92063
5591 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
5592 <case VEC_COND_EXPR>: Return false with *handled = false.
5593 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
5594 recursing on the first operand.
5595 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
5596 instead of tree_could_trap_p.
5597 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
5598
5599 2019-10-11 Jim Wilson <jimw@sifive.com>
5600
5601 PR rtl-optimization/91860
5602 * combine.c (subst): If new_rtx is a constant, also check for
5603 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
5604
5605 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
5606
5607 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
5608 INTVAL when calling store_bit_field.
5609
5610 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
5611
5612 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
5613 size.
5614
5615 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
5616
5617 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
5618 vectorizable_live_operation.
5619 (vectorizable_live_operation): Adjust parameters.
5620 * tree-vect-stmts.c (vect_init_vector,
5621 vect_gen_widened_results_half): Fix typo in function comment.
5622 (can_vectorize_live_stmts): Adjust function comment.
5623 Adjust parameters. Adjust call to vectorizable_live_operation.
5624 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
5625 (vect_transform_stmt): Adjust function comment. Adjust call to
5626 can_vectorize_live_stmts.
5627 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
5628
5629 2019-10-11 Richard Biener <rguenther@suse.de>
5630
5631 PR tree-optimization/90883
5632 PR tree-optimization/91091
5633 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
5634 alias-sets both for recording VN table entries and continuing
5635 walking after translating through copies. Handle same-sized
5636 reads from SSA names by returning the plain SSA name.
5637 (eliminate_dom_walker::eliminate_stmt): Properly handle
5638 non-size precision stores in redundant store elimination.
5639
5640 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
5641
5642 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
5643 (ggc_collect): Dump later to not interfere with release_page dump.
5644 (ggc_trim): New function.
5645 * ggc-none.c (ggc_trim): New.
5646 * ggc.h (ggc_trim): Declare.
5647
5648 2019-10-11 Richard Biener <rguenther@suse.de>
5649
5650 PR tree-optimization/92066
5651 PR tree-optimization/92046
5652 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5653 Fix bogus cost model check.
5654
5655 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
5656
5657 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
5658 (LANG_HOOKS_DECLS): Add it.
5659 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
5660 update comment for omp_is_optional_argument.
5661 * omp-general.c (omp_is_allocatable_or_ptr): New.
5662 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
5663 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
5664 Fortran's optional arguments and allocatable/pointer scalars
5665 with use_device_addr.
5666
5667 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
5668
5669 PR target/77918
5670 * config/s390/2827.md: Add new opcodes.
5671 * config/s390/2964.md: Likewise.
5672 * config/s390/3906.md: Likewise.
5673 * config/s390/8561.md: Likewise.
5674 * config/s390/s390-builtins.def (s390_vfchesb): Use
5675 the new vec_cmpgev4sf_quiet_nocc.
5676 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
5677 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
5678 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
5679 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
5680 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
5681 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
5682 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
5683 * config/s390/s390-modes.def (CCSFPS): New mode.
5684 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
5685 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
5686 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
5687 (s390_expand_vec_compare): Use non-signaling patterns where
5688 necessary.
5689 (s390_reverse_condition): Support CCSFPS.
5690 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
5691 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
5692 (asm_fcmp_op): Likewise.
5693 (*smaxv2df3_vx): Use pattern for quiet comparison.
5694 (*sminv2df3_vx): Likewise.
5695 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
5696 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
5697 (vec_cmpgt<mode>_quiet_nocc): Likewise.
5698 (vec_cmplt<mode>_quiet_nocc): New expander.
5699 (vec_cmpge<mode>_quiet_nocc): New pattern.
5700 (vec_cmple<mode>_quiet_nocc): New expander.
5701 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
5702 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
5703 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
5704 (*vec_cmpge<mode>_signaling_nocc): Likewise.
5705 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
5706 (vec_cmpungt<mode>): New expander.
5707 (vec_cmpunge<mode>): Likewise.
5708 (vec_cmpuneq<mode>): Use quiet patterns.
5709 (vec_cmpltgt<mode>): Allow only on z14+.
5710 (vec_cmpordered<mode>): Use quiet patterns.
5711 (vec_cmpunordered<mode>): Likewise.
5712 (VEC_CMP_EXPAND): Add ungt and unge.
5713
5714 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
5715
5716 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
5717 parameter.
5718 * lto-streamer-out.c: Include tree-dfa.h.
5719 (output_cfg): Do not use cfun.
5720 (lto_prepare_function_for_streaming): New.
5721 (output_function): Do not push cfun; do not initialize loop optimizer.
5722 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
5723 * passes.c (ipa_write_summaries): Use it.
5724 (ipa_write_optimization_summaries): Do not modify bodies.
5725 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
5726 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
5727 * tree-ssa-dse.c (pass_dse::execute): Update use of
5728 renumber_gimple_stmt_uids.
5729 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
5730
5731 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
5732
5733 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
5734 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
5735
5736 2019-10-10 Joseph Myers <joseph@codesourcery.com>
5737
5738 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
5739 macros.
5740 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
5741 Also define DFP macros for these conditions.
5742 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
5743 DEC128_SUBNORMAL_MIN): Do not define.
5744 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
5745 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
5746
5747 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
5748 Sandra Loosemore <sandra@codesourcery.com>
5749
5750 PR middle-end/26241
5751 * doc/lto.texi (IPA): Reference to the IPA passes.
5752 * doc/passes.texi (Pass manager): Add node IPA passes and
5753 description for each IPA pass.
5754
5755 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
5756
5757 * ipa-reference.c: Do not include splay-tree.h
5758 (reference_vars_to_consider): Turn to hash map.
5759 (get_static_name, ipa_init, analyze_function, propagate,
5760 stream_out_bitmap, ipa_reference_write_optimization_summary,
5761 ipa_reference_write_optimization_summary): Update.
5762
5763 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
5764
5765 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
5766
5767 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
5768
5769 * config/darwin.c: Lookup Objective C metadata and force indirection
5770 for IVAR refs.
5771
5772 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
5773
5774 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
5775 addresses.
5776 (mem_operand_gpr): Add check for prefixed addresses.
5777 (mem_operand_ds_form): Add check for prefixed addresses.
5778 (rs6000_legitimate_offset_address_p): If we support prefixed
5779 addresses, check for a 34-bit offset instead of 16-bit.
5780 (rs6000_legitimate_address_p): Add check for prefixed addresses.
5781 Do not allow load/store with update if the address is prefixed.
5782 (rs6000_mode_dependent_address): If we support prefixed
5783 addresses, check for a 34-bit offset instead of 16-bit.
5784
5785 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
5786
5787 PR target/77918
5788 * config/s390/vector.md (vcond_comparison_operator): New
5789 predicate.
5790 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
5791
5792 2019-10-10 David Malcolm <dmalcolm@redhat.com>
5793
5794 PR 87488
5795 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
5796 -D.
5797 * configure.ac (--with-documentation-root-url): New option.
5798 * configure: Regenerate.
5799 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
5800 option URL, add it as a new string field of the diagnostic option.
5801 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
5802 (print_option_information): If get_option_url is non-NULL, call
5803 it, and if the result is non-NULL, potentially emit an escape
5804 sequence to markup the option text with the resulting URL.
5805 * diagnostic.h (diagnostic_context::get_option_url): New callback.
5806 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
5807 example of JSON output.
5808 * opts-diagnostic.h (get_option_url): New decl.
5809 * opts.c (get_option_url): New function.
5810 * toplev.c (general_init): Initialize the get_option_url callback.
5811
5812 2019-10-10 David Malcolm <dmalcolm@redhat.com>
5813
5814 PR 87488
5815 * common.opt (fdiagnostics-urls=): New option.
5816 (diagnostic-url.h): Add SourceInclude.
5817 (diagnostic_url_rule): New enum.
5818 * diagnostic-color.c: Include "diagnostic-url.h".
5819 (diagnostic_urls_enabled_p): New function.
5820 * diagnostic-url.h: New file.
5821 * diagnostic.c: Include "diagnostic-url.h".
5822 (diagnostic_urls_init): New function.
5823 * diagnostic.h (diagnostic_urls_init): New decl.
5824 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
5825 -fdiagnostics-urls to the list.
5826 (-fdiagnostics-urls): New option.
5827 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
5828 (driver::global_initializations): Call diagnostic_urls_init.
5829 * opts-global.c (init_options_once): Likewise.
5830 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
5831 * pretty-print.c (pretty_printer::pretty_printer): Initialize
5832 show_urls.
5833 (pp_begin_url): New function.
5834 (pp_end_url): New function.
5835 (selftest::test_urls): New selftest.
5836 (selftest::pretty_print_c_tests): Call it.
5837 * pretty-print.h (pretty_printer::show_urls): New field.
5838 (pp_begin_url): New decl.
5839 (pp_end_url): New decl.
5840
5841 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
5842
5843 PR target/92022
5844 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
5845
5846 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
5847
5848 PR target/88630
5849 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
5850 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
5851 also for TARGET_FPU_SH4_300.
5852 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
5853 TARGET_SH4_300.
5854 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
5855 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
5856 (*negsf2_i): Split into ...
5857 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
5858 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
5859 (**abssf2_i): Split into ...
5860 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
5861 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
5862 (*negdf2_i): Split into ...
5863 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
5864 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
5865 (**abssf2_i): Split into ...
5866 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
5867
5868 2019-10-10 Richard Biener <rguenther@suse.de>
5869
5870 PR middle-end/92046
5871 * opts.c (finish_options): Do not influence global --params
5872 from options that are adjustable per function.
5873 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5874 Apply --param adjustment based on active cost-model.
5875 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
5876 further store-sinking when vectorization or if-conversion
5877 are not enabled.
5878
5879 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
5880
5881 PR middle-end/92037
5882 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
5883 rather than ggc_alloc_cleared to alloc symbol table.
5884 * toplev.c (general_init): Likewise.
5885 * cgraph.h (symbol_table): Explicitly construct every field.
5886
5887 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
5888
5889 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
5890 (PF_Z15): ... this.
5891 * config.gcc: Add z15 as option for --with-arch and --with-tune
5892 configure switches.
5893 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
5894 error reporting for unsupported builtins.
5895 * config/s390/s390-opts.h (enum processor_type): Rename
5896 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
5897 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
5898 * config/s390/driver-native.c (s390_host_detect_local_cpu):
5899 Likewise.
5900 * config/s390/s390-builtins.def: Likewise.
5901 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
5902 (s390_expand_builtin): Add missing check for unsupported builtins.
5903 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
5904 (s390_rtx_costs): Likewise.
5905 (s390_get_sched_attrmask): Rename arch13 to z15.
5906 (s390_get_unit_mask): Likewise.
5907 (s390_is_fpd): Likewise.
5908 (s390_is_fxd): Likewise.
5909 * config/s390/s390.h (enum processor_flags): Likewise.
5910 * config/s390/s390.md: Likewise.
5911 * config/s390/vector.md: Likewise.
5912 * config/s390/vx-builtins.md: Likewise.
5913 * config/s390/s390.opt: Add z15 to processor_type value.
5914
5915 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
5916
5917 PR target/91035
5918 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
5919 prototype.
5920 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
5921 ("split_stack_data", "split_stack_call")
5922 ("split_stack_call_<mode>", "split_stack_cond_call")
5923 ("split_stack_cond_call_<mode>"): Remove.
5924 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
5925 insn definition.
5926 * config/s390/s390.c (s390_output_split_stack_data): New function.
5927 (s390_expand_split_stack_prologue): Use the merged expander.
5928
5929 2019-10-09 Martin Sebor <msebor@redhat.com>
5930
5931 PR tree-optimization/90879
5932 * builtins.c (check_access): Avoid using maxbound when null.
5933 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
5934 * doc/invoke.texi (-Wstring-compare): Document new warning option.
5935 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
5936 conditional.
5937 (get_range_strlen): Overwrite initial maxbound when non-null.
5938 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
5939 changes.
5940 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
5941 (used_only_for_zero_equality): New function.
5942 (handle_builtin_memcmp): Call it.
5943 (determine_min_objsize): Return an integer instead of tree.
5944 (get_len_or_size, strxcmp_eqz_result): New functions.
5945 (maybe_warn_pointless_strcmp): New function.
5946 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
5947 between a longer string and a smaller array.
5948 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
5949
5950 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
5951
5952 * config/darwin.c (darwin_override_options): Make the check for
5953 Objective-C ABI version more specific for 64bit code.
5954
5955 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
5956
5957 * config/darwin.c (machopic_indirect_data_reference): Set flag to
5958 indicate that the new symbol is an indirection.
5959 (machopic_indirect_call_target): Likewise.
5960 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
5961 (MACHO_SYMBOL_INDIRECTION_P): New.
5962 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
5963
5964 2019-10-08 Jason Merrill <jason@redhat.com>
5965
5966 * doc/invoke.texi: Document -fconcepts-ts.
5967
5968 2019-10-09 Richard Biener <rguenther@suse.de>
5969
5970 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
5971 allow stmts other than GIMPLE_ASSIGN in nested cycles.
5972
5973 2019-10-08 Richard Biener <rguenther@suse.de>
5974
5975 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
5976 (_stmt_vec_info::force_single_cycle): Likewise.
5977 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
5978 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
5979 * tree-vect-loop.c (vectorizable_reduction): Set
5980 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
5981 (vect_transform_reduction): Use them to remove redundant code.
5982 (vect_transform_cycle_phi): Likewise.
5983
5984 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
5985
5986 PR tree-optimization/90836
5987 * match.pd (popcount): New pattern.
5988
5989 2019-10-08 Martin Sebor <msebor@redhat.com>
5990
5991 PR middle-end/92026
5992 PR middle-end/92014
5993 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
5994 again once nbytes has been set. Set the access size when not yet set.
5995
5996 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
5997
5998 * config/darwin.c (machopic_select_section): Remove dead code for
5999 old Objective-C section selection method, replace with unreachable.
6000
6001 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
6002
6003 * config/darwin.c (machopic_indirect_data_reference): Check for
6004 required indirections before making direct access to defined
6005 values.
6006 (machopic_output_indirection): Place the indirected pointes for
6007 required indirections into the non-lazy symbol pointers section.
6008 (darwin_encode_section_info):
6009 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
6010 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
6011
6012 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
6013
6014 PR target/91994
6015 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
6016 instead of ALL_SSE_REG to check if function call preserves some
6017 256-bit SSE registers.
6018
6019 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6020
6021 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
6022 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
6023 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
6024
6025 2019-10-08 Richard Biener <rguenther@suse.de>
6026
6027 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
6028 (_stmt_vec_info::is_reduc_info): Add.
6029 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
6030 (vectorizable_condition): Remove.
6031 (vectorizable_shift): Likewise.
6032 (vectorizable_reduction): Adjust.
6033 (info_for_reduction): New.
6034 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
6035 (vect_analyze_scalar_cycles_1): ... here.
6036 (vect_analyze_loop_operations): Adjust.
6037 (needs_fold_left_reduction_p): Simplify for single caller.
6038 (vect_is_simple_reduction): Likewise. Remove stmt restriction
6039 for nested cycles not part of double reductions.
6040 (vect_model_reduction_cost): Pass in the reduction type.
6041 (info_for_reduction): New function.
6042 (vect_create_epilog_for_reduction): Use it, access reduction
6043 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
6044 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
6045 (vectorize_fold_left_reduction): Remove pointless assert.
6046 (vectorizable_reduction): Analyze the full reduction when
6047 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
6048 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
6049 stmt code-generation to vectorizable_* in most cases. Verify
6050 code-generation only for cases handled by
6051 vect_transform_reductuon.
6052 (vect_transform_reduction): Use info_for_reduction to get at
6053 reduction meta. Simplify.
6054 (vect_transform_cycle_phi): Likewise.
6055 (vectorizable_live_operation): Likewise.
6056 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
6057 at the PHI node for STMT_VINFO_REDUC_TYPE.
6058 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
6059 longer necessary code.
6060 * tree-vect-stmts.c (vectorizable_shift): Make static again.
6061 (vectorizable_condition): Likewise. Get at reduction related
6062 info via info_for_reduction.
6063 (vect_analyze_stmt): Adjust.
6064 (vect_transform_stmt): Likewise.
6065 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
6066 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
6067
6068 2019-10-08 Joseph Myers <joseph@codesourcery.com>
6069
6070 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
6071 -fno-fp-int-builtin-inexact default for C2X.
6072
6073 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6074 Richard Biener <rguenther@suse.de>
6075
6076 PR tree-optimization/91532
6077 * tree-if-conv.c: Include tree-ssa-dse.h.
6078 (ifcvt_local_dce): Change param from bb to loop,
6079 and call dse_classify_store.
6080 (tree_if_conversion): Pass loop instead of loop->header as arg
6081 to ifcvt_local_dce.
6082 * tree-ssa-dse.c: Include tree-ssa-dse.h.
6083 (delete_dead_or_redundant_assignment): Remove static qualifier from
6084 declaration, and add prototype in tree-ssa-dse.h.
6085 (dse_store_status): Move to tree-ssa-dse.h.
6086 (dse_classify_store): Remove static qualifier and add new tree param
6087 stop_at_vuse, and add prototype in tree-ssa-dse.h.
6088 * tree-ssa-dse.h: New header.
6089
6090 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
6091
6092 * config/darwin.c (machopic_output_indirection): Don't put
6093 hidden symbol indirections into the .data section, use the
6094 non-lazy symbol pointers section as normal.
6095 (darwin_encode_section_info): Record if a symbol is hidden.
6096 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
6097 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
6098
6099 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
6100
6101 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
6102 predicates instead of accessing bits directly.
6103 (machopic_indirect_call_target): Likewise.
6104 (machopic_output_indirection): Likewise.
6105 (darwin_encode_section_info): Improve description. Use renamed
6106 symbol flags. Use predicate macros for variables and functions.
6107 * config/darwin.h:
6108 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
6109 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
6110 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
6111 (MACHO_SYMBOL_VARIABLE_P): New.
6112 (MACHO_SYMBOL_DEFINED_P):New.
6113 (MACHO_SYMBOL_STATIC_P): New.
6114 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
6115 (SYMBOL_FLAG_SUBT_DEP): New.
6116 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
6117
6118 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6119
6120 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
6121 (msp430_expand_epilogue): Likewise.
6122 * config/msp430/predicates.md: Likewise.
6123 * config/msp430/msp430.md: Likewise.
6124 Replace blocks of 8 spaces with tabs.
6125
6126 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6127
6128 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
6129 * config/msp430/msp430.c (msp430_split_addsi): New.
6130 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
6131 a block of C code for splitting addsi.
6132
6133 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
6134
6135 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
6136 ix86_expand_rounddf_32): Reorder functions.
6137 * config/i386/i386-protos.h: Update.
6138
6139 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6140
6141 * config.in: Regenerate.
6142 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
6143 Add new "Yx" constraint.
6144 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
6145 function.
6146 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
6147 prototype.
6148 * config/msp430/msp430.c (msp430_option_override): Allow the lower
6149 code/data region to be selected in the small memory model.
6150 (msp430_section_attr): Don't warn if the "section" and "lower"
6151 attributes are used together.
6152 (msp430_handle_generic_attribute): Likewise.
6153 (msp430_var_in_low_mem): New function.
6154 (TARGET_ENCODE_SECTION_INFO): Define.
6155 (msp430_encode_section_info): New function.
6156 (gen_prefix): Return early in the small memory model.
6157 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
6158 ".lower" prefix if -m{code,data}-region=lower have been passed.
6159 (msp430_output_aligned_decl_common): Emit common symbols when
6160 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
6161 set.
6162 (TARGET_ASM_FILE_END): Define.
6163 (msp430_file_end): New function.
6164 (msp430_do_not_relax_short_jumps): Allow relaxation when
6165 function will be in the lower region.
6166 (msp430_op_not_in_high_mem): New function.
6167 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
6168 the 'X' operand selector.
6169 Clarify comment for 'x' operand selector.
6170 * config/msp430/msp430.h (LINK_SPEC): Propagate
6171 -m{code,data}-region to the linker via spec function
6172 msp430_propagate_region_opt.
6173 (msp430_propagate_region_opt): New prototype.
6174 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
6175 (SYMBOL_FLAG_LOW_MEM): Define.
6176 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
6177 selector.
6178 (zero_extendqihi2): Fix operand number used by "%X" selector.
6179 (zero_extendqisi2): Likewise.
6180 (zero_extendhisi2): Likewise.
6181 (movqi): Use "Yx" constraint in place of "%X" operand selector.
6182 (movhi): Likewise.
6183 (addqi3): Likewise.
6184 (addhi3): Likewise.
6185 (addsi3): Likewise.
6186 (addhi3_cy): Likewise.
6187 (addchi4_cy): Likewise.
6188 (subqi3): Likewise.
6189 (subhi3): Likewise.
6190 (subsi3): Likewise.
6191 (bic<mode>3): Likewise.
6192 (and<mode>3): Likewise.
6193 (ior<mode>3): Likewise.
6194 (xor<mode>3): Likewise.
6195 (slli_1): Add missing "%X" operand selector.
6196 (slll_1): Likewise.
6197 (slll_2): Likewise.
6198 (srai_1): Likewise.
6199 (sral_1): Likewise.
6200 (sral_2): Likewise.
6201 (srli_1): Likewise.
6202 (srll_1): Likewise.
6203 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
6204 selector.
6205 (cbranchhi4_real): Likewise.
6206 (cbranchqi4_reversed): Likewise.
6207 (cbranchhi4_reversed): Likewise.
6208 (*bitbranch<mode>4): Likewise.
6209 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
6210 * config/msp430/msp430.opt (mcode-region=): Set default to
6211 MSP430_REGION_LOWER. Improve docstring.
6212 (mdata-region=): Likewise.
6213 (muse-lower-region-prefix): New option.
6214 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
6215 mdata-region=none multilib.
6216 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
6217 mdata-region=none multilib.
6218 MULTILIB_EXCEPTIONS: Remove.
6219 MULTILIB_REQUIRED: Define.
6220 * configure: Regenerate.
6221 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
6222 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
6223 * doc/extend.texi: Clarify comment for {upper,lower,either}
6224 function attributes.
6225 Add separate description for "lower" variable attribute.
6226
6227 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
6228
6229 PR target/77918
6230 * optabs-tree.c (vcond_icode_p): New function.
6231 (vcond_eq_icode_p): Likewise.
6232 (expand_vec_cond_expr_p): Use vcond_icode_p and
6233 vcond_eq_icode_p.
6234 * optabs.c (can_vcond_compare_p): New function.
6235 * optabs.h (can_vcond_compare_p): Likewise.
6236
6237 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
6238
6239 PR target/77918
6240 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
6241 caller passes a non-trapping condition.
6242 (is_gimple_condexpr): Allow trapping conditions.
6243 (is_gimple_condexpr_1): New helper function.
6244 (is_gimple_condexpr_for_cond): New function, acts like old
6245 is_gimple_condexpr.
6246 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
6247 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
6248 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
6249 * gimplify.c (gimplify_cond_expr): Use
6250 is_gimple_condexpr_for_cond.
6251 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
6252 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
6253 VEC_COND_EXPR.
6254 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
6255 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
6256 is_gimple_condexpr_for_cond, remove pointless tmp check
6257 (forward_propagate_into_cond): Remove pointless tmp check.
6258
6259 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
6260
6261 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
6262 match that of other gsi_next_* functions. Adjust the comment.
6263 (gsi_start_nonvirtual_phis): New function.
6264 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
6265 gsi_next_nonvirtual_phi accordingly. (No functional change.)
6266
6267 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
6268
6269 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
6270 setjmp situation here. Fix a verb's ending: "the exact variables or
6271 elements for which there are warnings depends" -> "... depend".
6272
6273 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
6274
6275 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
6276
6277 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
6278
6279 * ipa-prop.c (ipa_vr::nonzero_p): New.
6280 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
6281 non-zero range.
6282 * ipa-prop.h (class ipa_vr): Add nonzero_p.
6283 * tree-vrp.c (range_has_numeric_bounds_p): New.
6284 (range_int_cst_p): Use range_has_numeric_bounds_p.
6285 (get_range_op_handler): New.
6286 (supported_types_p): New.
6287 (defined_ranges_p): New.
6288 (drop_undefines_to_varying): New.
6289 (range_fold_binary_symbolics_p): New.
6290 (range_fold_unary_symbolics_p): New.
6291 (range_fold_unary_expr): Extract out into above functions.
6292 (range_fold_binary_expr): Same.
6293 (value_range_base::normalize_addresses): New.
6294 (value_range_base::normalize_symbolics): Normalize addresses.
6295 * tree-vrp.h (class value_range_base): Add normalize_addresses.
6296
6297 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
6298
6299 * tree-vrp.c (value_range_base::singleton_p): Use
6300 value_range_base::num_pairs instead of vrp_val_is* to check
6301 if a range has one sub-range.
6302
6303 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
6304
6305 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
6306 DEF is not a true earlyclobber but is tied to a specific input
6307 operand, and so is effectively earlyclobber wrt inputs that have
6308 different values.
6309 (make_early_clobber_and_input_conflicts): Pass this case to the above.
6310
6311 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
6312
6313 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
6314 (pod_mode): Mark operators likewise.
6315 (scalar_int_mode): Mark non-default constructors and
6316 operators with CONSTEXPR.
6317 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
6318 (fixed_size_mode): Likewise.
6319
6320 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
6321
6322 PR target/91994
6323 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
6324 and wrap the unspec_volatile in a parallel.
6325 (*avx_vzeroupper): New define_insn. Use a match_parallel around
6326 the unspec_volatile.
6327 * config/i386/predicates.md (vzeroupper_pattern): Expect the
6328 unspec_volatile to be wrapped in a parallel.
6329 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
6330 (ix86_add_reg_usage_to_vzerouppers): New functions.
6331 (rest_of_handle_insert_vzeroupper): Use them to add register
6332 usage information to the vzeroupper instructions.
6333
6334 2019-10-07 Richard Biener <rguenther@suse.de>
6335
6336 PR tree-optimization/91975
6337 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
6338 handle invariants.
6339
6340 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
6341
6342 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
6343 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
6344
6345 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
6346
6347 * config/darwin.c (darwin_override_options): Adjust objective-c
6348 ABI version error messages to avoid punctuation and contracted
6349 negations.
6350
6351 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
6352
6353 * ipa-inline.c: Fix type; compute size rather than self_size
6354 for size of caller function.
6355
6356 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
6357
6358 PR target/59888
6359 * config/darwin.c (darwin_rodata_section): Add relocation flag,
6360 choose const_data section for constants with relocations.
6361 (machopic_select_section): Pass relocation flag to
6362 darwin_rodata_section ().
6363
6364 2019-10-05 Jakub Jelinek <jakub@redhat.com>
6365
6366 PR tree-optimization/91734
6367 * generic-match-head.c: Include fold-const-call.h.
6368 * match.pd (sqrt(x) cmp c): Check the boundary value and
6369 in case inexact computation of c*c affects comparison of the boundary,
6370 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
6371 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
6372 for -frounding-math. For c2, try the next smaller or larger floating
6373 point constant depending on comparison code and if it has the same
6374 sqrt as c2, use it instead of c2.
6375
6376 2019-10-04 Martin Sebor <msebor@redhat.com>
6377
6378 PR middle-end/91977
6379 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
6380 MEM_REF right operand. Avoid failing for MEM_REF assignments from
6381 uninitialized objects.
6382
6383 2019-10-04 Martin Sebor <msebor@redhat.com>
6384
6385 * builtins.c (compute_objsize): Add an argument.
6386 * tree-object-size.c (addr_object_size): Same.
6387 (compute_builtin_object_size): Same.
6388 * tree-object-size.h (compute_builtin_object): Same.
6389
6390 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
6391
6392 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
6393
6394 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
6395
6396 * match.pd (sinh (x) / cosh (x)): New simplification rule.
6397
6398 2019-10-04 Martin Jambor <mjambor@suse.cz>
6399
6400 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
6401 fntype when switching to calling memcpy instead of memset.
6402
6403 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6404
6405 * hash-table.h (hash_table::empty_slow): Don't assign
6406 size_t values to int variables.
6407
6408 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6409
6410 * expr.c (convert_mode_scalar): Remove shadowing local var.
6411 (emit_block_move): Rename local vars.
6412 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
6413 (emit_push_insn): Rename local vars.
6414 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
6415 shadowing local vars.
6416 (store_constructor): Remove shadowing local vars. Rename local var.
6417 (store_field, expand_cond_expr_using_cmove,
6418 expand_expr_real_2): Remove shadowing local vars.
6419 (expand_expr_real_1,
6420 do_store_flag): Remove shadowing local vars. Rename local vars.
6421
6422 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6423
6424 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
6425
6426 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6427
6428 * genmatch.c (commutate): Rename local var.
6429 (lower_cond): Reuse local var.
6430 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
6431 dt_operand::gen, dt_operand::gen_gimple_expr,
6432 dt_simplify::gen): Add a param. Rename generated vars.
6433 (decision_tree::insert_operand,
6434 (capture_info::walk_match, capture_info::walk_result,
6435 capture_info::walk_c_expr): Rename local vars.
6436 (expr::gen_transform): Rename generated vars.
6437 Use snprintf. Rename local vars.
6438 (capture::gen_transform, dt_operand::get_name,
6439 dt_operand::gen_opname): Rename generated vars.
6440 (write_predicate): Adjust call to gen_kids.
6441 (parser::get_internal_capture_id): Rename generated vars.
6442 (parser::parse_expr): Rename local vars.
6443 (parser::parse_if): Remove local var.
6444 (parser::parse_pattern, add_operator): Rename local vars.
6445
6446 2019-10-04 Joseph Myers <joseph@codesourcery.com>
6447
6448 * builtins.def (DEF_C2X_BUILTIN): New macro.
6449 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
6450 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
6451 (strndup): Use DEF_C2X_BUILTIN.
6452 * coretypes.h (enum function_class): Add function_c2x_misc.
6453
6454 2019-10-04 Maya Rashish <coypu@sdf.org>
6455
6456 * ira-color.c (update_costs_from_allocno): Call
6457 ira_init_register_move_cost_if_necessary.
6458
6459 2019-10-04 Jeff Law <law@redhat.com>
6460
6461 * config/h8300/h8300.md (cpymemsi): Disable.
6462 (movmd, movmd_internal_<mode>, movstr, movsd):
6463 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
6464 (movmd splitter, movsd splitter): Likewise.
6465
6466 * range-op.cc (range_tests): Avoid two tests when ints and
6467 shorts are the same size.
6468
6469 2019-10-04 Richard Biener <rguenther@suse.de>
6470
6471 PR lto/91968
6472 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
6473 BLOCK_VARS.
6474
6475 2019-10-04 Richard Biener <rguenther@suse.de>
6476
6477 PR tree-optimization/91982
6478 * tree-vect-loop.c (vectorizable_live_operation): Also guard
6479 against EXTRACT_LAST_REDUCTION.
6480 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
6481
6482 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
6483
6484 * range-op.o (value_range_from_overflowed_bounds): Rename from
6485 adjust_overflow_bound.
6486 (value_range_with_overflow): Rename from
6487 create_range_with_overflow.
6488 (create_possibly_reversed_range): Adjusted for above renames.
6489 (operator_*::wi_fold): Same.
6490 (cross_product_operator::wi_cross_productor): Same.
6491
6492 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6493
6494 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
6495 -Wshadow=compatible-local): Fix description.
6496 Add an example where -Wshadow=compatible-local does not
6497 warn.
6498
6499 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
6500
6501 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
6502
6503 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
6504 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
6505
6506 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
6507
6508 * expr.c (emit_block_move_hints): Slightly cleaner fix to
6509 can_move_by_pieces issue.
6510
6511 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
6512
6513 PR target/87243
6514 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
6515 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
6516 is available and the user has not set one on the command line.
6517
6518 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
6519
6520 PR target/91769
6521 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
6522 instead of REGNO equality check on addr.reg.
6523
6524 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
6525
6526 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
6527 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
6528 * doc/invoke.texi (inline-heuristics-hint-percent,
6529 inline-heuristics-hint-percent-O2): Document.
6530 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
6531 hint attribute.
6532 (can_inline_edge_by_limits_p): Use it.
6533
6534 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
6535
6536 * config/arm/arm.c (arm_print_value): Use real_to_decimal
6537 to print CONST_DOUBLEs.
6538
6539 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
6540
6541 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
6542 * ipa-prop.c (ipcp_free_transformation_sum): New function.
6543 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
6544
6545 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
6546
6547 * Makefile.in (OBJS): Add range.o and range-op.o.
6548 Remove wide-int-range.o.
6549 * function-tests.c (test_ranges): New.
6550 (function_tests_c_tests): Call test_ranges.
6551 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
6552 range_fold_unary_expr instead of extract_range_from_unary_expr.
6553 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
6554 * range-op.cc: New file.
6555 * range-op.h: New file.
6556 * range.cc: New file.
6557 * range.h: New file.
6558 * selftest.h (range_tests): New prototype.
6559 * ssa.h: Include range.h.
6560 * tree-vrp.c (value_range_base::value_range_base): New
6561 constructors.
6562 (value_range_base::singleton_p): Do not call
6563 ranges_from_anti_range until sure we will need to.
6564 (value_range_base::type): Rename gcc_assert to
6565 gcc_checking_assert.
6566 (vrp_val_is_max): New argument.
6567 (vrp_val_is_min): Same.
6568 (wide_int_range_set_zero_nonzero_bits): Move from
6569 wide-int-range.cc.
6570 (extract_range_into_wide_ints): Remove.
6571 (extract_range_from_multiplicative_op): Remove.
6572 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
6573 from extract_range_from_binary_expr.
6574 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
6575 from extract_range_from_binary_expr.
6576 (extract_range_from_binary_expr): Remove.
6577 (normalize_for_range_ops): New.
6578 (range_fold_binary_expr): New.
6579 (range_fold_unary_expr): New.
6580 (value_range_base::num_pairs): New.
6581 (value_range_base::lower_bound): New.
6582 (value_range_base::upper_bound): New.
6583 (value_range_base::upper_bound): New.
6584 (value_range_base::contains_p): New.
6585 (value_range_base::invert): New.
6586 (value_range_base::union_): New.
6587 (value_range_base::intersect): New.
6588 (range_compatible_p): New.
6589 (value_range_base::operator==): New.
6590 (determine_value_range_1): Call range_fold_*expr instead of
6591 extract_range_from_*expr.
6592 * tree-vrp.h (class value_range_base): Add new constructors.
6593 Add methods for union_, intersect, operator==, contains_p,
6594 num_pairs, lower_bound, upper_bound, invert.
6595 (vrp_val_is_min): Add handle_pointers argument.
6596 (vrp_val_is_max): Same.
6597 (extract_range_from_unary_expr): Remove.
6598 (extract_range_from_binary_expr): Remove.
6599 (range_fold_unary_expr): New.
6600 (range_fold_binary_expr): New.
6601 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
6602 range_fold_binary_expr instead of extract_range_from_binary_expr.
6603 (vr_values::extract_range_basic): Same.
6604 (vr_values::extract_range_from_unary_expr): Call
6605 range_fold_unary_expr instead of extract_range_from_unary_expr.
6606 * wide-int-range.cc: Remove.
6607 * wide-int-range.h: Remove.
6608
6609 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
6610
6611 * config/rs6000/rs6000.c (mem_operand_gpr): Use
6612 SIGNED_16BIT_OFFSET_EXTRA_P macro.
6613 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
6614 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
6615 macro.
6616
6617 2019-10-02 Joseph Myers <joseph@codesourcery.com>
6618
6619 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
6620 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
6621 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
6622 * glimits.h: Likewise.
6623
6624 2019-10-03 Jakub Jelinek <jakub@redhat.com>
6625
6626 PR rtl-optimization/91976
6627 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
6628 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
6629 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
6630
6631 2019-10-02 Martin Sebor <msebor@redhat.com>
6632
6633 PR tree-optimization/80936
6634 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
6635
6636 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
6637
6638 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
6639 instead of reg_class_contents[ALL_REGS].
6640
6641 2019-09-30 Jason Merrill <jason@redhat.com>
6642
6643 Add some hash_map_safe_* functions like vec_safe_*.
6644 * hash-map.h (default_hash_map_size): New variable.
6645 (create_ggc): Use it as default argument.
6646 (hash_map_maybe_create, hash_map_safe_get)
6647 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
6648
6649 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
6650
6651 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
6652 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
6653 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
6654 (can_inline_edge_by_limits_p): Use it.
6655 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
6656 (want_inline_small_function_p): Use O2 bounds.
6657 (edge_badness): LIkewise.
6658 * opts.c (default_options): Add OPT_finline_functions.
6659 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
6660 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
6661 New parameters.
6662 * doc/invoke.texi (-finline-functions): Update documentation.
6663 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
6664 inline-min-speedup-O2): Document.
6665 (early-inlining-insns-O2): Simplify docs.
6666
6667 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
6668
6669 PR rtl-optimization/87047
6670 * ifcvt.c (average_cost): New static function. Use it...
6671 (noce_process_if_block): ... here.
6672
6673 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
6674
6675 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
6676 * config/rs6000/rs6000-string.c (expand_block_move): Add
6677 might_overlap parm.
6678 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
6679 (cpymemsi): Add might_overlap parm to expand_block_move() call.
6680
6681 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
6682
6683 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
6684 (expand_builtin_memcpy): Use might_overlap parm.
6685 (expand_builtin_mempcpy_args): Use might_overlap parm.
6686 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
6687 (expand_builtin_memory_copy_args): Add might_overlap parm.
6688 * expr.c (emit_block_move_via_cpymem): Rename to
6689 emit_block_move_via_pattern, add might_overlap parm, use cpymem
6690 or movmem optab as appropriate.
6691 (emit_block_move_hints): Add might_overlap parm, do the right
6692 thing for might_overlap==true.
6693 * expr.h (emit_block_move_hints): Update prototype.
6694
6695 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
6696
6697 * tree-eh.h (unsplit_eh_edges): Declare.
6698 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
6699 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
6700 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
6701 (struct store_immediate_info): Add lp_nr field.
6702 (store_immediate_info::store_immediate_info): Add NR2 parameter and
6703 initialize lp_nr with it.
6704 (struct merged_store_group): Add lp_nr and only_constants fields.
6705 (merged_store_group::merged_store_group): Initialize them.
6706 (merged_store_group::can_be_merged_into): Deal with them.
6707 (pass_store_merging): Rename terminate_and_release_chain into
6708 terminate_and_process_chain.
6709 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
6710 renaming and remove useless assertions.
6711 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
6712 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
6713 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
6714 instead of always recomputing it and compare lp_nr.
6715 (imm_store_chain_info::output_merged_store): If the group is in an
6716 active EH region, register new stores if they can throw. Moreover,
6717 if the insertion has created new basic blocks, adjust the PHI nodes
6718 of the post landing pad.
6719 (imm_store_chain_info::output_merged_stores): If the original stores
6720 are in an active EH region, deregister them.
6721 (lhs_valid_for_store_merging_p): Prettify.
6722 (adjust_bit_pos): New function extracted from...
6723 (mem_valid_for_store_merging): ...here. Use it for the base address
6724 and also for the offset if it is the addition of a constant.
6725 (lp_nr_for_store): New function.
6726 (pass_store_merging::process_store): Change return type to bool.
6727 Call lp_nr_for_store to initialize the store info. Propagate the
6728 return status of various called functions to the return value.
6729 (store_valid_for_store_merging_p): New predicate.
6730 (enum basic_block_status): New enumeration.
6731 (get_status_for_store_merging): New function.
6732 (pass_store_merging::execute): If the function can throw and catch
6733 non-call exceptions, unsplit the EH edges on entry and clean up the
6734 CFG on exit if something changed. Call get_status_for_store_merging
6735 for every basic block and keep the chains open across basic blocks
6736 when possible. Terminate and process open chains at the end, if any.
6737
6738 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
6739
6740 * reginfo.c (globalize_reg): Fix shadowed variable in
6741 function_abis walk.
6742
6743 2019-10-02 Martin Jambor <mjambor@suse.cz>
6744
6745 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
6746 do not compute some stuff when set.
6747 (cgraph_node::create_edge): Likewise.
6748 (cgraph_node::create_indirect_edge): Renamed last parameter to
6749 coning_p and flipped its meaning, don't even calculate
6750 inline_failed when set.
6751 * cgraph.h (cgraph_node::create_edge): Add new parameter.
6752 (symbol_table::::create_edge): Likewise.
6753 (cgraph_node::create_indirect_edge): Rename last parameter, flip
6754 the default value.
6755 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
6756 call graph edge creating functions.
6757
6758 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
6759
6760 PR c++/91222
6761 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
6762 namespace types.
6763
6764 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
6765
6766 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
6767
6768 2019-10-02 Richard Biener <rguenther@suse.de>
6769
6770 * tree-vectorizer.h (vect_transform_reduction): Declare.
6771 * tree-vect-stmts.c (vect_transform_stmt): Use it.
6772 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
6773 stmt transform to ...
6774 (vect_transform_reduction): ... this.
6775
6776 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
6777
6778 * omp-low.c (lower_omp_target): Dereference optional argument
6779 to work with the right pointer.
6780
6781 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
6782
6783 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
6784 false.
6785 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
6786 * langhooks.h (omp_is_optional_argument): New hook.
6787 * omp-general.c (omp_is_optional_argument): New.
6788 * omp-general.h (omp_is_optional_argument): New declaration.
6789 * omp-low.c (lower_omp_target): Create temporary for received value
6790 and take the address for new_var if the original variable was a
6791 DECL_BY_REFERENCE. Use size of referenced object when a
6792 pass-by-reference optional argument used as argument to firstprivate.
6793
6794 2019-10-02 Jakub Jelinek <jakub@redhat.com>
6795
6796 PR tree-optimization/91940
6797 * tree-vect-patterns.c: Include tree-vector-builder.h and
6798 vec-perm-indices.h.
6799 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
6800 unpromoting the argument back to uint16_t, or by converting into a
6801 rotate, or into shifts plus ior.
6802
6803 2019-10-02 Richard Biener <rguenther@suse.de>
6804
6805 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
6806 New.
6807 (vect_transform_cycle_phi): Declare.
6808 * tree-vect-stmts.c (vect_transform_stmt): Call
6809 vect_transform_cycle_phi.
6810 * tree-vect-loop.c (vectorizable_reduction): Split out
6811 PHI transformation stage to ...
6812 (vect_transform_cycle_phi): ... here.
6813
6814 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
6815
6816 PR middle-end/91957
6817 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
6818 eliminable registers.
6819 (make_hard_regno_live): Likewise, and don't make them live.
6820
6821 2019-10-01 David Malcolm <dmalcolm@redhat.com>
6822
6823 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
6824 Call pp_emit_prefix.
6825 (layout::print_source_line): Likewise.
6826 (layout::start_annotation_line): Likewise.
6827 (diagnostic_show_locus): Remove call to temporarily clear the
6828 prefix.
6829 (selftest::test_one_liner_fixit_remove): Add test coverage for the
6830 interaction of pp_set_prefix with rulers and fix-it hints.
6831 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
6832 prefix when calling diagnostic_show_locus, rather than destroying
6833 it afterwards.
6834 (print_parseable_fixits): Temporarily clear prefix.
6835 * pretty-print.c (pp_format): Save and restore line_length, rather
6836 than assuming it is zero.
6837 (pp_output_formatted_text): Remove assertion that line_length is
6838 zero.
6839
6840 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
6841
6842 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
6843 Rename to ...
6844 (nonoverlapping_refs_since_match_p): ... this; handle also
6845 ARRAY_REFs.
6846 (alias_stats): Update stats.
6847 (dump_alias_stats): Likewise.
6848 (cheap_array_ref_low_bound): New function.
6849 (aliasing_matching_component_refs_p): Add partial_overlap
6850 argument;
6851 pass it to nonoverlapping_refs_since_match_p.
6852 (aliasing_component_refs_walk): Update call of
6853 aliasing_matching_component_refs_p
6854 (nonoverlapping_array_refs_p): New function.
6855 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
6856 indirect_refs_may_alias_p): Update calls of
6857 nonoverlapping_refs_since_match_p.
6858
6859 2019-10-01 Maya Rashish <coypu@sdf.org>
6860
6861 PR target/85401
6862 * ira-color.c (allocno_copy_cost_saving): Call
6863 ira_init_register_move_cost_if_necessary.
6864
6865 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
6866
6867 * Makefile.in (gnat_install_lib): New variable.
6868 * configure.ac: Substitute it.
6869 * configure: Regenerate.
6870
6871 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
6872
6873 PR lto/91222
6874 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
6875 is matched with non-C++ type
6876
6877 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6878
6879 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
6880 after local CSE.
6881
6882 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
6883
6884 * doc/invoke.texi (early-inlining-insns-O2): Document.
6885 (early-inlining-insns): Update.
6886 * params.def (early-inlining-insns-O2): New bound.
6887 (early-inlining-insns): Update docs.
6888 * ipa-inline.c (want_early_inline_function_p): Use new bound.
6889
6890 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
6891
6892 PR target/88562
6893 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
6894 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
6895 a memory access insn.
6896
6897 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
6898
6899 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
6900 vpmsumd.
6901
6902 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
6903
6904 PR target/77918
6905 * config/s390/s390.c (s390_expand_vec_compare): Use
6906 gen_vec_cmpordered and gen_vec_cmpunordered.
6907 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
6908 vec_unordered): Delete.
6909 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
6910 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
6911 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
6912 (vec_cmp<code>): Generic dispatcher.
6913
6914 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
6915
6916 PR target/77918
6917 * config/s390/vector.md (V_HW): Add V1TI in order to make
6918 vcond$a$b generate vcondv1tiv1tf.
6919
6920 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
6921
6922 PR rtl-optimization/91948
6923 * ira-build.c (ira_create_allocno): Initialize
6924 ALLOCNO_CROSSED_CALLS_ABIS.
6925 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
6926 than regno to ira_need_caller_save_p.
6927
6928 2019-10-01 Alexandre Oliva <oliva@adacore.com>
6929
6930 * config/i386/i386-options.c
6931 (ix86_recompute_optlev_based_flags): New, moved out of...
6932 (ix86_option_override_internal): ... this. Call it.
6933 (ix86_override_options_after_change): Call it here too.
6934
6935 PR debug/91507
6936 * dwarf2out.c (override_type_for_decl_p): New.
6937 (gen_variable_die): Use it.
6938
6939 2019-10-01 Richard Biener <rguenther@suse.de>
6940
6941 * tree-vect-loop.c (vectorizable_reduction): Move variables
6942 to where they are used.
6943
6944 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
6945
6946 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
6947 (build_def_use): Use PC instead of CC0 in a comment.
6948
6949 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
6950
6951 * rtl.def (CLOBBER_HIGH): Delete.
6952 * doc/rtl.texi (clobber_high): Remove documentation.
6953 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
6954 (reg_is_clobbered_by_clobber_high): Delete.
6955 (gen_hard_reg_clobber_high): Likewise.
6956 * alias.c (record_set): Remove CLOBBER_HIGH handling.
6957 * cfgexpand.c (expand_gimple_stmt): Likewise.
6958 * combine-stack-adj.c (single_set_for_csa): Likewise.
6959 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
6960 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
6961 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
6962 * cse.c (invalidate_reg): Remove clobber_high parameter.
6963 (invalidate): Update call accordingly.
6964 (canonicalize_insn): Remove CLOBBER_HIGH handling.
6965 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
6966 (count_reg_usage, insn_live_p): Likewise.
6967 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
6968 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
6969 (cselib_invalidate_rtx_note_stores): Update call accordingly.
6970 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
6971 (cselib_invalidate_regno, cselib_process_insn): Likewise.
6972 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
6973 (mark_nonreg_stores_2): Likewise.
6974 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
6975 (df_get_call_refs): Likewise.
6976 * dwarf2out.c (mem_loc_descriptor): Likewise.
6977 * emit-rtl.c (verify_rtx_sharing): Likewise.
6978 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
6979 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
6980 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
6981 * genemit.c (gen_exp, gen_insn): Likewise.
6982 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
6983 * haifa-sched.c (haifa_classify_rtx): Likewise.
6984 * ira-build.c (create_insn_allocnos): Likewise.
6985 * ira-costs.c (scan_one_insn): Likewise.
6986 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
6987 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
6988 * jump.c (mark_jump_label_1): Likewise.
6989 * lra-int.h (lra_insn_reg::clobber_high): Delete.
6990 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
6991 handling.
6992 (mark_not_eliminable): Likewise.
6993 * lra-lives.c (process_bb_lives): Likewise.
6994 * lra.c (new_insn_reg): Remove clobber_high parameter.
6995 (collect_non_operand_hard_regs): Likewise. Update call to new
6996 insn_reg. Remove CLOBBER_HIGH handling.
6997 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
6998 to collect_non_operand_hard_regs.
6999 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
7000 Update call to new_insn_reg.
7001 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
7002 * postreload.c (reload_cse_simplify, reload_combine_note_use)
7003 (move2add_note_store): Likewise.
7004 * print-rtl.c (print_pattern): Likewise.
7005 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
7006 (if_test_bypass_p): Likewise.
7007 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
7008 * reginfo.c (reg_scan_mark_refs): Likewise.
7009 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
7010 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
7011 (forget_old_reloads_1): Likewise.
7012 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
7013 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
7014 (dbr_schedule): Likewise.
7015 * resource.c (update_live_status, mark_referenced_resources)
7016 (mark_set_resources): Likewise.
7017 * rtl.c (copy_rtx): Likewise.
7018 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
7019 (note_pattern_stores): Likewise.
7020 (reg_is_clobbered_by_clobber_high): Delete.
7021 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
7022 CLOBBER_HIGH handling.
7023
7024 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7025
7026 PR target/91452
7027 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
7028 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
7029 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
7030 Handle ARM_PCS_TLSDESC.
7031 (aarch64_tlsdesc_abi_id): New function.
7032 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
7033 rtx instead of a list of clobbers and clobber_highs.
7034 (tlsdesc_small_<mode>): Update accordingly.
7035
7036 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7037
7038 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
7039 extra callee_abi argument.
7040 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
7041 Insert a CALLEE_ABI unspec into the call pattern as the second
7042 element in the PARALLEL.
7043 (aarch64_simd_call_p): Delete.
7044 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
7045 the new CALLEE_ABI element of the PARALLEL.
7046 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
7047 from the function type, if given.
7048 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
7049 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
7050 when passed the function_arg_info end marker.
7051 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
7052 final argument of gen_sibcall.
7053 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
7054 (call): Make operand 2 a const_int_operand and pass it to expand_call.
7055 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
7056 pattern.
7057 (call_value): Likewise operand 3.
7058 (sibcall): Likewise operand 2. Place the unspec before rather than
7059 after the return.
7060 (sibcall_value): Likewise operand 3.
7061 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
7062 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
7063 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
7064 constraint strings.
7065 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
7066
7067 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7068
7069 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
7070 choose_hard_reg_mode.
7071 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7072
7073 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7074
7075 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
7076 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
7077 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
7078
7079 2019-09-30 David Malcolm <dmalcolm@redhat.com>
7080
7081 * diagnostic-show-locus.c (line_label::line_label): Initialize
7082 m_has_vbar.
7083 (line_label::comparator): Reverse the sort order by m_state_idx,
7084 so that when the list is walked backwards the labels appear in
7085 order of insertion into the rich_location.
7086 (line_label::m_has_vbar): New field.
7087 (layout::print_any_labels): When dealing with multiple labels at
7088 the same line and column, only print vertical bars for the one
7089 with the highest label_line.
7090 (selftest::test_one_liner_labels): Update test for multiple labels
7091 to expect the labels to be in the order of insertion into the
7092 rich_location. Add a test for many such labels, where the column
7093 numbers are out-of-order relative to the insertion order.
7094
7095 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7096
7097 * config/i386/i386.h (ix86_frame::expensive_p): New field.
7098 (ix86_frame::expensive_count): Likewise.
7099 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
7100 of use_fast_prologue_epilogue robust against incidental changes
7101 in function size.
7102
7103 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
7104
7105 PR target/77918
7106 * config/s390/vector.md (vec_unordered<mode>): Call
7107 gen_vec_ordered<mode>.
7108
7109 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
7110
7111 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
7112 New pattern for ASRD.
7113 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
7114 * internal-fn.def (IFN_DIV_POW2): New internal function.
7115 * optabs.def (sdiv_pow2_optab): New optab.
7116 * tree-vect-patterns.c (vect_recog_divmod_pattern):
7117 Modify pattern to support new operation.
7118 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
7119 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
7120 Document new target selector.
7121
7122 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7123
7124 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
7125 to test whether we're compiling a vector PCS function and to test
7126 whether the function needs to save a particular register.
7127 Remove the vector PCS handling of df_set_regs_ever_live.
7128 (aarch64_components_for_bb): Use crtl->abi to test whether
7129 the function needs to save a particular register.
7130 (aarch64_process_components): Use crtl->abi to test whether
7131 we're compiling a vector PCS function.
7132 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
7133 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
7134
7135 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7136
7137 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
7138 Delete.
7139 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
7140 whether the block calls a function that clobbers more registers
7141 than the current function is allowed to.
7142 (aarch64_use_simple_return_insn_p): Delete.
7143 * config/aarch64/aarch64.md (simple_return): Remove condition.
7144
7145 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7146
7147 * function-abi.h (function_abi_aggregator): New class.
7148 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
7149 function.
7150 * ira.c (update_equiv_regs_prescan): New function. Call
7151 set_paradoxical_subreg here rather than...
7152 (update_equiv_regs): ...here.
7153 (ira): Call update_equiv_regs_prescan.
7154
7155 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7156
7157 * hard-reg-set.h (regs_invalidated_by_call): Only define if
7158 IN_TARGET_CODE.
7159 (call_used_or_fixed_regs): Likewise.
7160 (call_used_or_fixed_reg_p): Likewise.
7161 * reginfo.c (regs_invalidated_by_call): New macro.
7162
7163 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7164
7165 * shrink-wrap.c: Include function-abi.h.
7166 (requires_stack_frame_p): Use crtl->abi to test whether the
7167 current function can use a register without saving it first.
7168
7169 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7170
7171 * sel-sched-ir.h (_def::crosses_call): Replace with...
7172 (_def::crossed_call_abis): ..this new field.
7173 (def_list_add): Take a mask of ABIs instead of a crosses_call
7174 boolean.
7175 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
7176 of _def accordingly.
7177 * sel-sched.c: Include function-abi.h.
7178 (hard_regs_data::regs_for_call_clobbered): Delete.
7179 (reg_rename::crosses_call): Replace with...
7180 (reg_rename::crossed_call_abis): ...this new field.
7181 (fur_static_params::crosses_call): Replace with...
7182 (fur_static_params::crossed_call_abis): ...this new field.
7183 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
7184 (init_hard_regs_data): Use crtl->abi to test which registers the
7185 current function would need to save before it uses them.
7186 (mark_unavailable_hard_regs): Update handling of call-clobbered
7187 registers, using call_clobbers_in_region to find out which registers
7188 might be call-clobbered (but without taking -fipa-ra into account
7189 for now). Remove separate handling of partially call-clobbered
7190 registers.
7191 (verify_target_availability): Use crossed_call_abis instead of
7192 crosses_call.
7193 (get_spec_check_type_for_insn, find_used_regs): Likewise.
7194 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
7195
7196 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7197
7198 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
7199 function to test whether a register is fully or partly clobbered.
7200
7201 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7202
7203 * rtlanal.c: Include function-abi.h.
7204 (reg_set_p): Use insn_callee_abi to get the ABI of the called
7205 function and clobbers_reg_p to test whether the register
7206 is call-clobbered.
7207 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
7208 to get the ABI of the called function and full_reg_clobbers to
7209 get the set of fully call-clobbered registers. Warn about the
7210 pitfalls of using this mode.
7211
7212 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7213
7214 * reload.c: Include function-abi.h.
7215 (find_equiv_reg): Use clobbers_reg_p to test whether either
7216 of the equivalent registers is clobbered by a call.
7217 * reload1.c: Include function-abi.h.
7218 (reg_reloaded_call_part_clobbered): Delete.
7219 (reload): Use crtl->abi to test which registers would need
7220 saving in the prologue before use.
7221 (find_reg): Likewise.
7222 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
7223 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
7224 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
7225
7226 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7227
7228 * regrename.h (du_head::call_clobber_mask): New field.
7229 (du_head::need_caller_save_reg): Replace with...
7230 (du_head::call_abis): ...this new field.
7231 * regrename.c: Include function-abi.h.
7232 (call_clobbered_in_chain_p): New function.
7233 (check_new_reg_p): Use crtl->abi when deciding whether a register
7234 is free for use after RA. Use call_clobbered_in_chain_p to test
7235 whether a candidate register would be clobbered by a call.
7236 (find_rename_reg): Don't add call-clobber conflicts here.
7237 (rename_chains): Check call_abis instead of need_caller_save_reg.
7238 (merge_chains): Update for changes to du_head.
7239 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
7240 target. Record the ABI identifier in call_abis and the set of
7241 fully or partially clobbered registers in call_clobber_mask.
7242 Add fully-clobbered registers to hard_conflicts here rather
7243 than in find_rename_reg.
7244 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
7245 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
7246 * config/aarch64/falkor-tag-collision-avoidance.c: Include
7247 function-abi.h.
7248 * config/c6x/c6x.c: Likewise.
7249
7250 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7251
7252 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
7253 mode of the register when deciding whether it is no longer
7254 available after a call.
7255
7256 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7257
7258 * recog.c: Include function-abi.h.
7259 (peep2_find_free_register): Use crtl->abi when deciding whether
7260 a register is free for use after RA.
7261
7262 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7263
7264 * postreload-gcse.c: Include regs.h and function-abi.h.
7265 (record_opr_changes): Use insn_callee_abi to get the ABI of the
7266 call insn target. Conservatively assume that partially-clobbered
7267 registers are altered.
7268
7269 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7270
7271 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
7272 when deciding whether a register is free for use after RA.
7273 (reload_combine): Remove unnecessary use of fixed_reg_set.
7274 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
7275 call insn target. Use reg_mode when testing whether a register
7276 is no longer available.
7277
7278 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7279
7280 * target.def (return_call_with_max_clobbers): Delete.
7281 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
7282 * doc/tm.texi: Regenerate.
7283 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
7284 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
7285 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
7286 (lra_reg::call_insn): Delete.
7287 * lra.c: Include function-abi.h.
7288 (initialize_lra_reg_info_element): Don't initialize the fields above.
7289 (lra): Use crtl->abi to test whether the current function needs to
7290 save a register in the prologue. Remove special pre-inheritance
7291 lra_create_live_ranges pass for flag_ipa_ra.
7292 * lra-assigns.c: Include function-abi.h
7293 (find_hard_regno_for_1): Use crtl->abi to test whether the current
7294 function needs to save a register in the prologue.
7295 (lra_assign): Assert that registers aren't allocated to a
7296 conflicting register, rather than checking only for overlaps
7297 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
7298 and for registers that are not live across a call.
7299 * lra-constraints.c (last_call_for_abi): New variable.
7300 (full_and_partial_call_clobbers): Likewise.
7301 (setup_next_usage_insn): Remove the register from
7302 full_and_partial_call_clobbers.
7303 (need_for_call_save_p): Use call_clobbered_in_region_p to test
7304 whether the register needs a caller save.
7305 (need_for_split_p): Use full_and_partial_reg_clobbers instead
7306 of call_used_or_fixed_regs.
7307 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
7308 full_and_partial_call_clobbers.
7309 * lra-lives.c (check_pseudos_live_through_calls): Replace
7310 last_call_used_reg_set and call_insn arguments with an abi argument.
7311 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
7312 as the set of conflicting registers.
7313 (calls_have_same_clobbers_p): Delete.
7314 (process_bb_lives): Track the ABI of the last call instead of an
7315 insn/HARD_REG_SET pair. Update calls to
7316 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
7317 the set of registers that could be clobbered by an EH edge.
7318 Include partially-clobbered as well as fully-clobbered registers.
7319 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
7320 * lra-remat.c: Include function-abi.h.
7321 (call_used_regs_arr_len, call_used_regs_arr): Delete.
7322 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
7323 registers and bitmap_view to combine them into dead_regs.
7324 (call_used_input_regno_present_p): Take a function_abi argument
7325 and use it to test whether a register is call-clobbered.
7326 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
7327 call insn target. Update tje call to call_used_input_regno_present_p.
7328 (do_remat): Likewise.
7329 (lra_remat): Remove the initialization of call_used_regs_arr_len
7330 and call_used_regs_arr.
7331
7332 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7333
7334 * loop-iv.c: Include regs.h and function-abi.h.
7335 (simplify_using_initial_values): Use insn_callee_abi to get the
7336 ABI of the call insn target. Conservatively assume that
7337 partially-clobbered registers are altered.
7338
7339 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7340
7341 * function-abi.h (call_clobbers_in_region): Declare.
7342 (call_clobbered_in_region_p): New function.
7343 * function-abi.cc (call_clobbers_in_region): Likewise.
7344 * ira-int.h: Include function-abi.h.
7345 (ira_allocno::crossed_calls_abis): New field.
7346 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
7347 (ira_need_caller_save_regs): New function.
7348 (ira_need_caller_save_p): Likewise.
7349 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
7350 of call_used_or_fixed_regs.
7351 (do_reload): Use crtl->abi to test whether the current function
7352 needs to save a register in the prologue. Count registers that
7353 need to be saved rather than registers that don't.
7354 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
7355 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
7356 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
7357 (propagate_some_info_from_allocno): Likewise.
7358 (copy_info_to_removed_store_destinations): Likewise.
7359 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
7360 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
7361 (ira_build): Use ira_need_caller_save_regs instead of
7362 call_used_or_fixed_regs.
7363 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
7364 whether the current function would need to save a register
7365 before using it.
7366 (calculate_spill_cost): Likewise.
7367 (allocno_reload_assign): Use ira_need_caller_save_regs and
7368 ira_need_caller_save_p instead of call_used_or_fixed_regs.
7369 * ira-conflicts.c (ira_build_conflicts): Use
7370 ira_need_caller_save_regs rather than call_used_or_fixed_regs
7371 as the set of call-clobbered registers. Remove the
7372 call_used_or_fixed_regs mask from the calculation of
7373 temp_hard_reg_set and mask its use instead. Remove special
7374 handling of partially-clobbered registers.
7375 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
7376 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
7377 calculate the set of conflicting registers for calls that
7378 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
7379 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
7380 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
7381 Use eh_edge_abi to calculate the set of registers that could
7382 be clobbered by an EH edge. Include partially-clobbered as
7383 well as fully-clobbered registers.
7384
7385 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7386
7387 * haifa-sched.c: Include function-abi.h.
7388 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
7389 the function would need to save a register before using it.
7390
7391 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7392
7393 * gcse.c: Include function-abi.h.
7394 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
7395 the call insn target. Invalidate partially call-clobbered
7396 registers as well as fully call-clobbered ones.
7397
7398 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7399
7400 * function.c (aggregate_value_p): Work out which ABI the
7401 function is using before testing which registers are at least
7402 partly preserved by a call.
7403
7404 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7405
7406 * early-remat.c: Include regs.h and function-abi.h.
7407 (early_remat::maybe_add_candidate): Don't check for call-clobbered
7408 registers here.
7409 (early_remat::restrict_remat_for_unavail_regs): New function.
7410 (early_remat::restrict_remat_for_call): Likewise.
7411 (early_remat::process_block): Before calling emit_remat_insns
7412 for a previous call in the block, invalidate any candidates
7413 that would clobber call-preserved registers.
7414 (early_remat::emit_remat_insns_for_block): Likewise for the
7415 final call in a block. Do the same thing for live-in registers
7416 when calling emit_remat_insns at the head of a block.
7417
7418 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7419
7420 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
7421 whether the current function needs to save at least part of a
7422 register before using it.
7423 (df_get_exit_block_use_set): Likewise for epilogue restores.
7424
7425 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7426
7427 * df-problems.c: Include regs.h and function-abi.h.
7428 (df_rd_problem_data): Rename sparse_invalidated_by_call to
7429 sparse_invalidated_by_eh and dense_invalidated_by_call to
7430 dense_invalidated_by_eh.
7431 (df_print_bb_index): Update accordingly.
7432 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
7433 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
7434 that are clobbered by an EH edge. Clobber partially-clobbered
7435 registers as well as fully-clobbered ones.
7436 (df_md_confluence_n): Likewise.
7437 (df_rd_local_compute): Likewise. Update for changes to
7438 df_rd_problem_data.
7439 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
7440 of registers that are clobbered by an EH edge. Includde partially-
7441 clobbered registers as well as fully-clobbered ones.
7442
7443 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7444
7445 * cselib.c (cselib_process_insn): If we know what mode a
7446 register was set in, check whether it is clobbered in that
7447 mode by a call. Only fall back to reg_raw_mode if that fails.
7448
7449 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7450
7451 * cse.c: Include regs.h and function-abi.h.
7452 (invalidate_for_call): Take the call insn as an argument.
7453 Use insn_callee_abi to get the ABI of the call and invalidate
7454 partially clobbered registers as well as fully clobbered ones.
7455 (cse_insn): Update call accordingly.
7456
7457 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7458
7459 * combine.c: Include function-abi.h.
7460 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
7461 of the target of call insns. Invalidate partially-clobbered
7462 registers as well as fully-clobbered ones.
7463
7464 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7465
7466 * cfgloopanal.c: Include regs.h and function-abi.h.
7467 (init_set_costs): Use default_function_abi to test whether
7468 a general register is call-clobbered.
7469
7470 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7471
7472 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
7473 instead of the call-clobbered sets.
7474
7475 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7476
7477 * caller-save.c (setup_save_areas): Remove redundant |s of
7478 fixed_reg_set.
7479 (save_call_clobbered_regs): Likewise. Use the call ABI rather
7480 than call_used_or_fixed_regs to decide whether a REG_RETURNED
7481 value is useful.
7482
7483 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7484
7485 * rtl.h (predefined_function_abi): Declare.
7486 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
7487 instead of a boolean call_save flag.
7488 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
7489 accordingly.
7490 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7491 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7492 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
7493 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7494 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7495 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
7496 * reginfo.c (init_reg_modes_target): Likewise.
7497 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
7498 instead of a boolean call_save flag.
7499 * targhooks.c: Include function-abi.h.
7500 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
7501 using eh_edge_abi to choose the mode.
7502
7503 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7504
7505 * target.def (hard_regno_call_part_clobbered): Take an ABI
7506 identifier instead of an rtx_insn.
7507 * doc/tm.texi: Regenerate.
7508 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
7509 (hook_bool_uint_uint_mode_false): New function.
7510 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
7511 (hook_bool_uint_uint_mode_false): New function.
7512 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
7513 Take an ABI identifier instead of an rtx_insn.
7514 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
7515 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
7516 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
7517 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
7518 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
7519 Likewise.
7520 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
7521 * cselib.c: Include function-abi.h.
7522 (cselib_process_insn): Update call to
7523 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
7524 to get the appropriate ABI identifier.
7525 * function-abi.cc (predefined_function_abi::initialize): Update call
7526 to targetm.hard_regno_call_part_clobbered.
7527 * ira-conflicts.c (ira_build_conflicts): Likewise.
7528 * ira-costs.c (ira_tune_allocno_costs): Likewise.
7529 * lra-constraints.c: Include function-abi.h.
7530 (need_for_call_save_p): Update call to
7531 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
7532 to get the appropriate ABI identifier.
7533 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
7534 * regcprop.c (copyprop_hardreg_forward_1): Update call
7535 to targetm.hard_regno_call_part_clobbered.
7536 * reginfo.c (choose_hard_reg_mode): Likewise.
7537 * regrename.c (check_new_reg_p): Likewise.
7538 * reload.c (find_equiv_reg): Likewise.
7539 * reload1.c (emit_reload_insns): Likewise.
7540 * sched-deps.c: Include function-abi.h.
7541 (deps_analyze_insn): Update call to
7542 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
7543 to get the appropriate ABI identifier.
7544 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
7545 call to targetm.hard_regno_call_part_clobbered.
7546 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
7547
7548 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7549
7550 * config/i386/i386.c: Include function-abi.h.
7551 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
7552 if they preserve some 256-bit or 512-bit SSE registers.
7553
7554 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7555
7556 * target.def (insn_callee_abi): New hook.
7557 (remove_extra_call_preserved_regs): Delete.
7558 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
7559 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
7560 * doc/tm.texi: Regenerate.
7561 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
7562 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
7563 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
7564 insn argument.
7565 (aarch64_remove_extra_call_preserved_regs): Delete.
7566 (aarch64_insn_callee_abi): New function.
7567 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
7568 (TARGET_INSN_CALLEE_ABI): New macro.
7569 * rtl.h (get_call_fndecl): Declare.
7570 (cgraph_rtl_info): Fix formatting. Tweak comment for
7571 function_used_regs. Remove function_used_regs_valid.
7572 * rtlanal.c (get_call_fndecl): Moved from final.c
7573 * function-abi.h (insn_callee_abi): Declare.
7574 (target_function_abi_info): Mention insn_callee_abi.
7575 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
7576 way to get_call_reg_set_usage did.
7577 (insn_callee_abi): New function.
7578 * regs.h (get_call_reg_set_usage): Delete.
7579 * final.c: Include function-abi.h.
7580 (collect_fn_hard_reg_usage): Add fixed and stack registers to
7581 function_used_regs before the main loop rather than afterwards.
7582 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
7583 if function_used_regs ends up not being useful.
7584 (get_call_fndecl): Move to rtlanal.c
7585 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
7586 * caller-save.c: Include function-abi.h.
7587 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
7588 instead of get_call_reg_set_usage.
7589 * cfgcleanup.c: Include function-abi.h.
7590 (old_insns_match_p): Use insn_callee_abi instead of
7591 get_call_reg_set_usage.
7592 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
7593 a tree.
7594 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
7595 function_used_regs.
7596 * df-scan.c: Include function-abi.h.
7597 (df_get_call_refs): Use insn_callee_abi instead of
7598 get_call_reg_set_usage.
7599 * ira-lives.c: Include function-abi.h.
7600 (process_bb_node_lives): Use insn_callee_abi instead of
7601 get_call_reg_set_usage.
7602 * lra-lives.c: Include function-abi.h.
7603 (process_bb_lives): Use insn_callee_abi instead of
7604 get_call_reg_set_usage.
7605 * postreload.c: Include function-abi.h.
7606 (reload_combine): Use insn_callee_abi instead of
7607 get_call_reg_set_usage.
7608 * regcprop.c: Include function-abi.h.
7609 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
7610 get_call_reg_set_usage.
7611 * resource.c: Include function-abi.h.
7612 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
7613 instead of get_call_reg_set_usage.
7614 * var-tracking.c: Include function-abi.h.
7615 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
7616 get_call_reg_set_usage.
7617
7618 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7619
7620 * target.def (fntype_abi): New target hook.
7621 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
7622 * doc/tm.texi: Regenerate.
7623 * target.h (predefined_function_abi): Declare.
7624 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
7625 if defined.
7626 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
7627 * config/aarch64/aarch64.c: Include function-abi.h.
7628 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
7629 (TARGET_FNTYPE_ABI): Define.
7630
7631 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7632
7633 * Makefile.in (OBJS): Add function-abi.o.
7634 (GTFILES): Add function-abi.h.
7635 * function-abi.cc: New file.
7636 * function-abi.h: Likewise.
7637 * emit-rtl.h (rtl_data::abi): New field.
7638 * function.c: Include function-abi.h.
7639 (prepare_function_start): Initialize crtl->abi.
7640 * read-rtl-function.c: Include regs.h and function-abi.h.
7641 (read_rtl_function_body): Initialize crtl->abi.
7642 (read_rtl_function_body_from_file_range): Likewise.
7643 * reginfo.c: Include function-abi.h.
7644 (init_reg_sets_1): Initialize default_function_abi.
7645 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
7646 when making a register global.
7647 * target-globals.h (this_target_function_abi_info): Declare.
7648 (target_globals::function_abi_info): New field.
7649 (restore_target_globals): Copy it.
7650 * target-globals.c: Include function-abi.h.
7651 (default_target_globals): Initialize the function_abi_info field.
7652 (target_globals): Allocate it.
7653 (save_target_globals): Free it.
7654
7655 2019-09-30 Nick Clifton <nickc@redhat.com>
7656
7657 PR target/85978
7658 * config/frv/frv.c (frv_register_move_cost): Add break statements
7659 to avoid falling through to the wrong cases. Tidy code.
7660
7661 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7662
7663 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
7664 For multi-registers modes, test how big each register part is.
7665
7666 2019-09-30 Nick Clifton <nickc@redhat.com>
7667
7668 PR target/59205
7669 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
7670 (TARGET_ASM_SELECT_SECTION): Remove definition.
7671 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
7672
7673 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
7674
7675 * emit-rtl.c (init_raw_REG): New function.
7676 (gen_raw_REG): Use init_raw_REG.
7677 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
7678 macros.
7679 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
7680 * rtl.h (rtx_init): New function.
7681 (rtx_alloca): New function.
7682 (init_raw_REG): New function.
7683 (alloca_raw_REG): New macro.
7684
7685 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
7686
7687 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
7688 (pcrel_local_address): Replace pcrel_address predicate, use the
7689 new function address_to_insn_form.
7690 (pcrel_external_address): Replace with new implementation using
7691 address_to_insn_form..
7692 (prefixed_mem_operand): Delete predicate which is now unused.
7693 (pcrel_external_mem_operand): Delete predicate which is now
7694 unused.
7695 * config/rs6000/rs6000-protos.h (enum insn_form): New
7696 enumeration.
7697 (enum non_prefixed_form): New enumeration.
7698 (address_to_insn_form): New declaration.
7699 (prefixed_load_p): New declaration.
7700 (prefixed_store_p): New declaration.
7701 (prefixed_paddi_p): New declaration.
7702 (rs6000_asm_output_opcode): New declaration.
7703 (rs6000_final_prescan_insn): Move declaration and update calling
7704 signature.
7705 (address_is_prefixed): New helper inline function.
7706 * config/rs6000/rs6000.c(print_operand_address): Check for either
7707 PC-relative local symbols or PC-relative external symbols.
7708 (rs6000_emit_move): Support loading PC-relative addresses.
7709 (mode_supports_prefixed_address_p): Delete, no longer used.
7710 (rs6000_prefixed_address_mode_p): Delete, no longer used.
7711 (address_to_insn_form): New function to decode an address format.
7712 (reg_to_non_prefixed): New function to identify what the
7713 non-prefixed memory instruction format is for a register.
7714 (prefixed_load_p): New function to identify prefixed loads.
7715 (prefixed_store_p): New function to identify prefixed stores.
7716 (prefixed_paddi_p): New function to identify prefixed load
7717 immediates.
7718 (next_insn_prefixed_p): New static state variable.
7719 (rs6000_final_prescan_insn): New function to determine if an insn
7720 uses a prefixed instruction.
7721 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
7722 prefixed instruction.
7723 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
7724 (ASM_OUTPUT_OPCODE): New target hook.
7725 * config/rs6000/rs6000.md (prefixed): New insn attribute for
7726 prefixed instructions.
7727 (prefixed_length): New insn attribute for the size of prefixed
7728 instructions.
7729 (non_prefixed_length): New insn attribute for the size of
7730 non-prefixed instructions.
7731 (pcrel_local_addr): New insn to load up a local PC-relative
7732 address.
7733 (pcrel_extern_addr): New insn to load up an external PC-relative
7734 address.
7735 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
7736 GPR and loading a 128-bit floating point type to a GPR.
7737
7738 2019-09-30 Richard Biener <rguenther@suse.de>
7739
7740 * gimple.c (gimple_get_lhs): For PHIs return the result.
7741 * tree-vectorizer.h (vectorizable_live_operation): Also get the
7742 SLP instance as argument.
7743 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
7744 double-reduction PHIs with vectorizable_lc_phi.
7745 (vect_analyze_loop_operations): Adjust.
7746 (vect_create_epilog_for_reduction): Remove all code not dealing
7747 with reduction LC PHI or epilogue generation.
7748 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
7749 for live stmts of reductions.
7750 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
7751 do not handle defs that are not vect_internal_def.
7752 (can_vectorize_live_stmts): Adjust.
7753 (vect_analyze_stmt): When the vectorized stmt defined a value
7754 used on backedges adjust the backedge uses of vectorized PHIs.
7755
7756 2019-09-30 Martin Jambor <mjambor@suse.cz>
7757
7758 PR ipa/91853
7759 * tree-inline.c (force_value_to_type): New function.
7760 (setup_one_parameter): Use force_value_to_type to convert type.
7761 * tree-inline.c (force_value_to_type): Declare.
7762 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
7763 with register type mismatches.
7764
7765 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
7766
7767 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
7768 32-bit PowerPC.
7769 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
7770 * config/rs6000/t-freebsd64: Make use of the above define and build
7771 the 32-bit libraries with secure-plt.
7772
7773 2019-09-30 Jakub Jelinek <jakub@redhat.com>
7774
7775 PR target/91931
7776 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
7777 gen_int_mode instead of GEN_INT.
7778
7779 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
7780
7781 * config/darwin.c (gen_macho_low): Amend to include the mode
7782 argument.
7783 (machopic_indirect_data_reference): Amend gen_macho_low call
7784 to include mode argument
7785 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
7786 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
7787 the macho_high expander and two define_insn entries.
7788
7789 2019-09-29 Jakub Jelinek <jakub@redhat.com>
7790
7791 PR bootstrap/90543
7792 * optc-save-gen.awk: Fix up printing string option differences.
7793
7794 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
7795
7796 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
7797 vec_perm cost to 1 for non-Power7 VSX architectures.
7798
7799 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
7800
7801 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
7802 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
7803 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
7804
7805 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
7806
7807 * config/darwin.c (gen_macho_high): Amend to include the mode
7808 argument.
7809 (machopic_indirect_data_reference): Amend gen_macho_high call
7810 to include mode argument.
7811 (machopic_legitimize_pic_address): Likewise.
7812 * config/rs6000/rs6000.c (rs6000_legitimize_address):
7813 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
7814 the macho_high expander and two define_insn entries.
7815
7816 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
7817
7818 PR target/86805
7819 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
7820
7821 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
7822
7823 PR target/80672
7824 * config/sh/sh.c (parse_validate_atomic_model_option): Use
7825 std::string::compare instead of std::string::find.
7826
7827 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
7828
7829 * configure: Regenerate.
7830
7831 2019-09-27 Jakub Jelinek <jakub@redhat.com>
7832
7833 PR middle-end/91920
7834 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
7835 variables as shared.
7836
7837 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
7838
7839 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
7840 replaces the expander and two define_insn entries.
7841 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
7842 call.
7843 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
7844
7845 2019-09-27 David Malcolm <dmalcolm@redhat.com>
7846
7847 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
7848 (fibonacci_heap::nodes): Likewise.
7849 (fibonacci_heap::min_key): Likewise.
7850 (fibonacci_heap::min): Likewise.
7851
7852 2019-09-27 David Malcolm <dmalcolm@redhat.com>
7853
7854 * cgraph.c (cgraph_node::get_fun): Make const.
7855 * cgraph.h (cgraph_node::get_fun): Likewise.
7856
7857 2019-09-27 Jakub Jelinek <jakub@redhat.com>
7858
7859 PR target/91919
7860 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
7861 of SImode MULT.
7862
7863 2019-09-27 Richard Biener <rguenther@suse.de>
7864
7865 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
7866 (STMT_VINFO_REDUC_FN): Likewise.
7867 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
7868 STMT_VINFO_REDUC_FN.
7869 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
7870 for condition reductions.
7871 (vect_create_epilog_for_reduction): Compute all required state
7872 from the stmt to be vectorized.
7873 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
7874 invocation and remove then dead code. For single def-use chains
7875 record only a single vector stmt.
7876
7877 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
7878
7879 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
7880 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
7881 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
7882 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
7883 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
7884 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
7885 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
7886 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
7887 (aarch64_general_builtin_rsqrt): Declare.
7888 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
7889 New function.
7890 (aarch64_mangle_builtin_type): Rename to...
7891 (aarch64_general_mangle_builtin_type): ...this.
7892 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
7893 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
7894 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
7895 aarch64_general_add_builtin instead of add_builtin_function.
7896 (aarch64_init_builtins): Rename to...
7897 (aarch64_general_init_builtins): ...this. Use
7898 aarch64_general_add_builtin instead of add_builtin_function.
7899 (aarch64_builtin_decl): Rename to...
7900 (aarch64_general_builtin_decl): ...this and remove the unused
7901 arguments.
7902 (aarch64_expand_builtin): Rename to...
7903 (aarch64_general_expand_builtin): ...this and remove the unused
7904 arguments.
7905 (aarch64_builtin_rsqrt): Rename to...
7906 (aarch64_general_builtin_rsqrt): ...this.
7907 (aarch64_fold_builtin): Rename to...
7908 (aarch64_general_fold_builtin): ...this. Take the function subcode
7909 and return type as arguments. Remove the "ignored" argument.
7910 (aarch64_gimple_fold_builtin): Rename to...
7911 (aarch64_general_gimple_fold_builtin): ...this. Take the function
7912 subcode and gcall as arguments, and return the new function call.
7913 * config/aarch64/aarch64.c (aarch64_init_builtins)
7914 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
7915 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
7916 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
7917 instead of aarch64_builtin_rsqrt.
7918 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
7919 instead of aarch64_mangle_builtin_type.
7920
7921 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
7922
7923 * target.def (check_builtin_call): New target hook.
7924 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
7925 * doc/tm.texi: Regenerate.
7926
7927 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
7928
7929 PR tree-optimization/91909
7930 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
7931 reduc_index parameter. When handling COND_REDUCTION, make sure
7932 that the reduction phi operand is in the correct arm of the
7933 VEC_COND_EXPR.
7934 (vectorizable_reduction): Pass reduc_index to the above.
7935
7936 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
7937
7938 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
7939 New combine pattern.
7940
7941 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
7942
7943 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
7944 loop instruction into new basic block before the loop when basic
7945 block that precedes the loop is empty.
7946
7947 2019-09-26 Jakub Jelinek <jakub@redhat.com>
7948
7949 * function.c (gimplify_parameters): Use build_clobber function.
7950 * tree-ssa.c (execute_update_addresses_taken): Likewise.
7951 * tree-inline.c (expand_call_inline): Likewise.
7952 * tree-sra.c (clobber_subtree): Likewise.
7953 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
7954 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
7955 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
7956 lower_omp_target): Likewise.
7957 * omp-expand.c (expand_omp_for_generic): Likewise.
7958 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
7959
7960 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
7961
7962 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
7963 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
7964 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
7965 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
7966 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
7967 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
7968 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
7969 LD_ELEMREV_V16QI): Use the PURE attribute.
7970
7971 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
7972
7973 * config/rs6000/darwin.md: Replace the expanders for
7974 load_macho_picbase and reload_macho_picbase with use of '@'
7975 and <mode> in their respective define_insns.
7976 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
7977 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
7978 Pmode to gen_load_macho_picbase.
7979 * config/rs6000/rs6000.md: Likewise.
7980
7981 2019-09-25 Richard Biener <rguenther@suse.de>
7982
7983 PR tree-optimization/91896
7984 * tree-vect-loop.c (vectorizable_reduction): The single
7985 def-use cycle optimization cannot apply when there's more
7986 than one pattern stmt involved.
7987
7988 2019-09-26 Richard Biener <rguenther@suse.de>
7989
7990 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
7991 loop-closed PHIs that are vect_internal_def.
7992 (vect_create_epilog_for_reduction): Exit early for nested cycles.
7993 Simplify.
7994 (vectorizable_lc_phi): New.
7995 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
7996 (vect_transform_stmt): Likewise.
7997 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
7998 (vectorizable_lc_phi): Declare.
7999
8000 2019-09-26 Richard Biener <rguenther@suse.de>
8001
8002 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
8003 vectorizable_reduction for vect_double_reduction_def.
8004 (vect_transform_loop): Likewise.
8005 (vect_create_epilog_for_reduction): Move double-reduction
8006 PHI creation and preheader argument setting of PHIs ...
8007 (vectorizable_reduction): ... here. Also process
8008 vect_double_reduction_def PHIs, creating the vectorized
8009 PHI nodes, remembering the scalar adjustment computed for
8010 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
8011 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
8012 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
8013 Initialize STMT_VINFO_REDUC_CODE.
8014 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
8015 (_stmt_vec_info::reduc_code): Likewise.
8016 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
8017 (STMT_VINFO_REDUC_CODE): Likewise.
8018
8019 2019-09-26 Matt Turner <mattst88@gmail.com>
8020
8021 PR driver/69471
8022 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
8023 (mtune=): Add Negative(mtune=).
8024 (mcpu=): Add Negative(mcpu=).
8025 * config/arm/arm.opt: Likewise.
8026
8027 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8028
8029 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
8030 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
8031 Define.
8032 * config/arm/arm_acle.h: Define builtins for the above.
8033 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
8034 (simd32_op): Handle the above.
8035 * config/arm/unspecs.md: Define unspecs for the above.
8036
8037 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8038
8039 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
8040 (arm_<sup>xtb16): Likewise.
8041 (arm_usada8): Likewise.
8042 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
8043 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
8044 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
8045 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
8046 __sxtb16, __uxtab16, __uxtb16): Define.
8047 * config/arm/arm_acle_builtins.def: Define builtins for the above.
8048 * config/arm/unspecs.md: Define unspecs for the above.
8049 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
8050 (USXTB16): Likewise.
8051 (simd32_op): New int_attribute.
8052 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
8053 * doc/sourcebuild.exp (arm_simd32_ok): Document.
8054
8055 2019-09-26 Martin Jambor <mjambor@suse.cz>
8056
8057 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
8058 internal_error.
8059
8060 2019-09-26 Martin Jambor <mjambor@suse.cz>
8061
8062 * ipa-sra.c (process_scan_results): Fix continue condition.
8063
8064 2019-09-26 Martin Liska <mliska@suse.cz>
8065
8066 PR tree-optimization/91885
8067 * tree-vectorizer.c (try_vectorize_loop_1): Add
8068 TODO_update_ssa_only_virtuals similarly to what slp pass does.
8069
8070 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
8071
8072 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
8073 aarch64_plus_immediate rather than aarch64_uimm12_shift
8074 to test for valid PLUS immediates.
8075
8076 2019-09-25 Martin Jambor <mjambor@suse.cz>
8077
8078 * tree-sra.c (no_accesses_p): Remove.
8079 (no_accesses_representant): Likewise.
8080
8081 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8082
8083 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
8084 consistenly.
8085 (vaba_s16): Likewise.
8086 (vaba_s32): Likewise.
8087 (vaba_u8): Likewise.
8088 (vaba_u16): Likewise.
8089 (vaba_u32): Likewise.
8090 (vabal_high_s8): Likewise.
8091 (vabal_high_s16): Likewise.
8092 (vabal_high_s32): Likewise.
8093 (vabal_high_u8): Likewise.
8094 (vabal_high_u16): Likewise.
8095 (vabal_high_u32): Likewise.
8096 (vabal_s8): Likewise.
8097 (vabal_s16): Likewise.
8098 (vabal_s32): Likewise.
8099 (vabal_u8): Likewise.
8100 (vabal_u16): Likewise.
8101 (vabal_u32): Likewise.
8102 (vabaq_s8): Likewise.
8103 (vabaq_s16): Likewise.
8104 (vabaq_s32): Likewise.
8105 (vabaq_u8): Likewise.
8106 (vabaq_u16): Likewise.
8107 (vabaq_u32): Likewise.
8108 (vabd_s8): Likewise.
8109 (vabd_s16): Likewise.
8110 (vabd_s32): Likewise.
8111 (vabd_u8): Likewise.
8112 (vabd_u16): Likewise.
8113 (vabd_u32): Likewise.
8114 (vabdl_high_s8): Likewise.
8115 (vabdl_high_s16): Likewise.
8116 (vabdl_high_s32): Likewise.
8117 (vabdl_high_u8): Likewise.
8118 (vabdl_high_u16): Likewise.
8119 (vabdl_high_u32): Likewise.
8120 (vabdl_s8): Likewise.
8121 (vabdl_s16): Likewise.
8122 (vabdl_s32): Likewise.
8123 (vabdl_u8): Likewise.
8124 (vabdl_u16): Likewise.
8125 (vabdl_u32): Likewise.
8126 (vabdq_s8): Likewise.
8127 (vabdq_s16): Likewise.
8128 (vabdq_s32): Likewise.
8129 (vabdq_u8): Likewise.
8130 (vabdq_u16): Likewise.
8131 (vabdq_u32): Likewise.
8132 (vaddlv_s8): Likewise.
8133 (vaddlv_s16): Likewise.
8134 (vaddlv_u8): Likewise.
8135 (vaddlv_u16): Likewise.
8136 (vaddlvq_s8): Likewise.
8137 (vaddlvq_s16): Likewise.
8138 (vaddlvq_s32): Likewise.
8139 (vaddlvq_u8): Likewise.
8140 (vaddlvq_u16): Likewise.
8141 (vaddlvq_u32): Likewise.
8142 (vcvtx_f32_f64): Likewise.
8143 (vcvtx_high_f32_f64): Likewise.
8144 (vcvtxd_f32_f64): Likewise.
8145 (vmla_n_f32): Likewise.
8146 (vmla_n_s16): Likewise.
8147 (vmla_n_s32): Likewise.
8148 (vmla_n_u16): Likewise.
8149 (vmla_n_u32): Likewise.
8150 (vmla_s8): Likewise.
8151 (vmla_s16): Likewise.
8152 (vmla_s32): Likewise.
8153 (vmla_u8): Likewise.
8154 (vmla_u16): Likewise.
8155 (vmla_u32): Likewise.
8156 (vmlal_high_n_s16): Likewise.
8157 (vmlal_high_n_s32): Likewise.
8158 (vmlal_high_n_u16): Likewise.
8159 (vmlal_high_n_u32): Likewise.
8160 (vmlal_high_s8): Likewise.
8161 (vmlal_high_s16): Likewise.
8162 (vmlal_high_s32): Likewise.
8163 (vmlal_high_u8): Likewise.
8164 (vmlal_high_u16): Likewise.
8165 (vmlal_high_u32): Likewise.
8166 (vmlal_n_s16): Likewise.
8167 (vmlal_n_s32): Likewise.
8168 (vmlal_n_u16): Likewise.
8169 (vmlal_n_u32): Likewise.
8170 (vmlal_s8): Likewise.
8171 (vmlal_s16): Likewise.
8172 (vmlal_s32): Likewise.
8173 (vmlal_u8): Likewise.
8174 (vmlal_u16): Likewise.
8175 (vmlal_u32): Likewise.
8176 (vmlaq_n_f32): Likewise.
8177 (vmlaq_n_s16): Likewise.
8178 (vmlaq_n_s32): Likewise.
8179 (vmlaq_n_u16): Likewise.
8180 (vmlaq_n_u32): Likewise.
8181 (vmlaq_s8): Likewise.
8182 (vmlaq_s16): Likewise.
8183 (vmlaq_s32): Likewise.
8184 (vmlaq_u8): Likewise.
8185 (vmlaq_u16): Likewise.
8186 (vmlaq_u32): Likewise.
8187 (vmls_n_f32): Likewise.
8188 (vmls_n_s16): Likewise.
8189 (vmls_n_s32): Likewise.
8190 (vmls_n_u16): Likewise.
8191 (vmls_n_u32): Likewise.
8192 (vmls_s8): Likewise.
8193 (vmls_s16): Likewise.
8194 (vmls_s32): Likewise.
8195 (vmls_u8): Likewise.
8196 (vmls_u16): Likewise.
8197 (vmls_u32): Likewise.
8198 (vmlsl_high_n_s16): Likewise.
8199 (vmlsl_high_n_s32): Likewise.
8200 (vmlsl_high_n_u16): Likewise.
8201 (vmlsl_high_n_u32): Likewise.
8202 (vmlsl_high_s8): Likewise.
8203 (vmlsl_high_s16): Likewise.
8204 (vmlsl_high_s32): Likewise.
8205 (vmlsl_high_u8): Likewise.
8206 (vmlsl_high_u16): Likewise.
8207 (vmlsl_high_u32): Likewise.
8208 (vmlsl_n_s16): Likewise.
8209 (vmlsl_n_s32): Likewise.
8210 (vmlsl_n_u16): Likewise.
8211 (vmlsl_n_u32): Likewise.
8212 (vmlsl_s8): Likewise.
8213 (vmlsl_s16): Likewise.
8214 (vmlsl_s32): Likewise.
8215 (vmlsl_u8): Likewise.
8216 (vmlsl_u16): Likewise.
8217 (vmlsl_u32): Likewise.
8218 (vmlsq_n_f32): Likewise.
8219 (vmlsq_n_s16): Likewise.
8220 (vmlsq_n_s32): Likewise.
8221 (vmlsq_n_u16): Likewise.
8222 (vmlsq_n_u32): Likewise.
8223 (vmlsq_s8): Likewise.
8224 (vmlsq_s16): Likewise.
8225 (vmlsq_s32): Likewise.
8226 (vmlsq_u8): Likewise.
8227 (vmlsq_u16): Likewise.
8228 (vmlsq_u32): Likewise.
8229 (vmovl_high_s8): Likewise.
8230 (vmovl_high_s16): Likewise.
8231 (vmovl_high_s32): Likewise.
8232 (vmovl_high_u8): Likewise.
8233 (vmovl_high_u16): Likewise.
8234 (vmovl_high_u32): Likewise.
8235 (vmovl_s8): Likewise.
8236 (vmovl_s16): Likewise.
8237 (vmovl_s32): Likewise.
8238 (vmovl_u8): Likewise.
8239 (vmovl_u16): Likewise.
8240 (vmovl_u32): Likewise.
8241 (vmovn_high_s16): Likewise.
8242 (vmovn_high_s32): Likewise.
8243 (vmovn_high_s64): Likewise.
8244 (vmovn_high_u16): Likewise.
8245 (vmovn_high_u32): Likewise.
8246 (vmovn_high_u64): Likewise.
8247 (vmovn_s16): Likewise.
8248 (vmovn_s32): Likewise.
8249 (vmovn_s64): Likewise.
8250 (vmovn_u16): Likewise.
8251 (vmovn_u32): Likewise.
8252 (vmovn_u64): Likewise.
8253 (vmull_high_n_s16): Likewise.
8254 (vmull_high_n_s32): Likewise.
8255 (vmull_high_n_u16): Likewise.
8256 (vmull_high_n_u32): Likewise.
8257 (vmull_high_p8): Likewise.
8258 (vmull_high_s8): Likewise.
8259 (vmull_high_s16): Likewise.
8260 (vmull_high_s32): Likewise.
8261 (vmull_high_u8): Likewise.
8262 (vmull_high_u16): Likewise.
8263 (vmull_high_u32): Likewise.
8264 (vmull_n_s16): Likewise.
8265 (vmull_n_s32): Likewise.
8266 (vmull_n_u16): Likewise.
8267 (vmull_n_u32): Likewise.
8268 (vmull_p8): Likewise.
8269 (vmull_s8): Likewise.
8270 (vmull_s16): Likewise.
8271 (vmull_s32): Likewise.
8272 (vmull_u8): Likewise.
8273 (vmull_u16): Likewise.
8274 (vmull_u32): Likewise.
8275 (vpadal_s8): Likewise.
8276 (vpadal_s16): Likewise.
8277 (vpadal_s32): Likewise.
8278 (vpadal_u8): Likewise.
8279 (vpadal_u16): Likewise.
8280 (vpadal_u32): Likewise.
8281 (vpadalq_s8): Likewise.
8282 (vpadalq_s16): Likewise.
8283 (vpadalq_s32): Likewise.
8284 (vpadalq_u8): Likewise.
8285 (vpadalq_u16): Likewise.
8286 (vpadalq_u32): Likewise.
8287 (vpaddl_s8): Likewise.
8288 (vpaddl_s16): Likewise.
8289 (vpaddl_s32): Likewise.
8290 (vpaddl_u8): Likewise.
8291 (vpaddl_u16): Likewise.
8292 (vpaddl_u32): Likewise.
8293 (vpaddlq_s8): Likewise.
8294 (vpaddlq_s16): Likewise.
8295 (vpaddlq_s32): Likewise.
8296 (vpaddlq_u8): Likewise.
8297 (vpaddlq_u16): Likewise.
8298 (vpaddlq_u32): Likewise.
8299 (vpaddq_s8): Likewise.
8300 (vpaddq_s16): Likewise.
8301 (vpaddq_s32): Likewise.
8302 (vpaddq_s64): Likewise.
8303 (vpaddq_u8): Likewise.
8304 (vpaddq_u16): Likewise.
8305 (vpaddq_u32): Likewise.
8306 (vpaddq_u64): Likewise.
8307 (vqdmulh_n_s16): Likewise.
8308 (vqdmulh_n_s32): Likewise.
8309 (vqdmulhq_n_s16): Likewise.
8310 (vqdmulhq_n_s32): Likewise.
8311 (vqmovn_high_s16): Likewise.
8312 (vqmovn_high_s32): Likewise.
8313 (vqmovn_high_s64): Likewise.
8314 (vqmovn_high_u16): Likewise.
8315 (vqmovn_high_u32): Likewise.
8316 (vqmovn_high_u64): Likewise.
8317 (vqmovun_high_s16): Likewise.
8318 (vqmovun_high_s32): Likewise.
8319 (vqmovun_high_s64): Likewise.
8320 (vqrdmulh_n_s16): Likewise.
8321 (vqrdmulh_n_s32): Likewise.
8322 (vqrdmulhq_n_s16): Likewise.
8323 (vqrdmulhq_n_s32): Likewise.
8324 (vrsqrte_u32): Likewise.
8325 (vrsqrteq_u32): Likewise.
8326 (vtst_p8): Likewise.
8327 (vtst_p16): Likewise.
8328 (vtst_p64): Likewise.
8329 (vtstq_p8): Likewise.
8330 (vtstq_p16): Likewise.
8331 (vtstq_p64): Likewise.
8332 (vaddlv_s32): Likewise.
8333 (vaddlv_u32): Likewise.
8334 (vqtbl1_p8): Likewise.
8335 (vqtbl1_s8): Likewise.
8336 (vqtbl1_u8): Likewise.
8337 (vqtbl1q_p8): Likewise.
8338 (vqtbl1q_s8): Likewise.
8339 (vqtbl1q_u8): Likewise.
8340 (vqtbx1_s8): Likewise.
8341 (vqtbx1_u8): Likewise.
8342 (vqtbx1_p8): Likewise.
8343 (vqtbx1q_s8): Likewise.
8344 (vqtbx1q_u8): Likewise.
8345 (vqtbx1q_p8): Likewise.
8346 (vtbl1_s8): Likewise.
8347 (vtbl1_u8): Likewise.
8348 (vtbl1_p8): Likewise.
8349 (vtbl2_s8): Likewise.
8350 (vtbl2_u8): Likewise.
8351 (vtbl2_p8): Likewise.
8352 (vtbl3_s8): Likewise.
8353 (vtbl3_u8): Likewise.
8354 (vtbl3_p8): Likewise.
8355 (vtbl4_s8): Likewise.
8356 (vtbl4_u8): Likewise.
8357 (vtbl4_p8): Likewise.
8358 (vtbx2_s8): Likewise.
8359 (vtbx2_u8): Likewise.
8360 (vtbx2_p8): Likewise.
8361 (vld1_f32): Likewise.
8362 (vld1_f64): Likewise.
8363 (vld1_p8): Likewise.
8364 (vld1_p16): Likewise.
8365 (vld1_p64): Likewise.
8366 (vld1_s8): Likewise.
8367 (vld1_s16): Likewise.
8368 (vld1_s32): Likewise.
8369 (vld1_s64): Likewise.
8370 (vld1_u8): Likewise.
8371 (vld1_u16): Likewise.
8372 (vld1_u32): Likewise.
8373 (vld1_u64): Likewise.
8374 (vld1q_f32): Likewise.
8375 (vld1q_f64): Likewise.
8376 (vld1q_p8): Likewise.
8377 (vld1q_p16): Likewise.
8378 (vld1q_p64): Likewise.
8379 (vld1q_s8): Likewise.
8380 (vld1q_s16): Likewise.
8381 (vld1q_s32): Likewise.
8382 (vld1q_s64): Likewise.
8383 (vld1q_u8): Likewise.
8384 (vld1q_u16): Likewise.
8385 (vld1q_u32): Likewise.
8386 (vld1q_u64): Likewise.
8387 (vpmax_s8): Likewise.
8388 (vpmax_s16): Likewise.
8389 (vpmax_s32): Likewise.
8390 (vpmax_u8): Likewise.
8391 (vpmax_u16): Likewise.
8392 (vpmax_u32): Likewise.
8393 (vpmaxq_s8): Likewise.
8394 (vpmaxq_s16): Likewise.
8395 (vpmaxq_s32): Likewise.
8396 (vpmaxq_u8): Likewise.
8397 (vpmaxq_u16): Likewise.
8398 (vpmaxq_u32): Likewise.
8399 (vpmax_f32): Likewise.
8400 (vpmaxq_f32): Likewise.
8401 (vpmaxq_f64): Likewise.
8402 (vpmaxqd_f64): Likewise.
8403 (vpmaxs_f32): Likewise.
8404 (vpmaxnm_f32): Likewise.
8405 (vpmaxnmq_f32): Likewise.
8406 (vpmaxnmq_f64): Likewise.
8407 (vpmaxnmqd_f64): Likewise.
8408 (vpmaxnms_f32): Likewise.
8409 (vpmin_s8): Likewise.
8410 (vpmin_s16): Likewise.
8411 (vpmin_s32): Likewise.
8412 (vpmin_u8): Likewise.
8413 (vpmin_u16): Likewise.
8414 (vpmin_u32): Likewise.
8415 (vpminq_s8): Likewise.
8416 (vpminq_s16): Likewise.
8417 (vpminq_s32): Likewise.
8418 (vpminq_u8): Likewise.
8419 (vpminq_u16): Likewise.
8420 (vpminq_u32): Likewise.
8421 (vpmin_f32): Likewise.
8422 (vpminq_f32): Likewise.
8423 (vpminq_f64): Likewise.
8424 (vpminqd_f64): Likewise.
8425 (vpmins_f32): Likewise.
8426 (vpminnm_f32): Likewise.
8427 (vpminnmq_f32): Likewise.
8428 (vpminnmq_f64): Likewise.
8429 (vpminnmqd_f64): Likewise.
8430 (vpminnms_f32): Likewise.
8431 (vmla_f32): Likewise.
8432 (vmlaq_f32): Likewise.
8433 (vmlaq_f64): Likewise.
8434 (vmls_f32): Likewise.
8435 (vmlsq_f32): Likewise.
8436 (vmlsq_f64): Likewise.
8437 (vqtbl2_s8): Likewise.
8438 (vqtbl2_u8): Likewise.
8439 (vqtbl2_p8): Likewise.
8440 (vqtbl2q_s8): Likewise.
8441 (vqtbl2q_u8): Likewise.
8442 (vqtbl2q_p8): Likewise.
8443 (vqtbl3_s8): Likewise.
8444 (vqtbl3_u8): Likewise.
8445 (vqtbl3_p8): Likewise.
8446 (vqtbl3q_s8): Likewise.
8447 (vqtbl3q_u8): Likewise.
8448 (vqtbl3q_p8): Likewise.
8449 (vqtbl4_s8): Likewise.
8450 (vqtbl4_u8): Likewise.
8451 (vqtbl4_p8): Likewise.
8452 (vqtbl4q_s8): Likewise.
8453 (vqtbl4q_u8): Likewise.
8454 (vqtbl4q_p8): Likewise.
8455 (vqtbx2_s8): Likewise.
8456 (vqtbx2_u8): Likewise.
8457 (vqtbx2_p8): Likewise.
8458 (vqtbx2q_s8): Likewise.
8459 (vqtbx2q_u8): Likewise.
8460 (vqtbx2q_p8): Likewise.
8461 (vqtbx3_s8): Likewise.
8462 (vqtbx3_u8): Likewise.
8463 (vqtbx3_p8): Likewise.
8464 (vqtbx3q_s8): Likewise.
8465 (vqtbx3q_u8): Likewise.
8466 (vqtbx3q_p8): Likewise.
8467 (vqtbx4_s8): Likewise.
8468 (vqtbx4_u8): Likewise.
8469 (vqtbx4_p8): Likewise.
8470 (vqtbx4q_s8): Likewise.
8471 (vqtbx4q_u8): Likewise.
8472 (vqtbx4q_p8): Likewise.
8473 (vrev16_p8): Likewise.
8474 (vrev16_s8): Likewise.
8475 (vrev16_u8): Likewise.
8476 (vrev16q_p8): Likewise.
8477 (vrev16q_s8): Likewise.
8478 (vrev16q_u8): Likewise.
8479 (vrev32_p8): Likewise.
8480 (vrev32_p16): Likewise.
8481 (vrev32_s8): Likewise.
8482 (vrev32_s16): Likewise.
8483 (vrev32_u8): Likewise.
8484 (vrev32_u16): Likewise.
8485 (vrev32q_p8): Likewise.
8486 (vrev32q_p16): Likewise.
8487 (vrev32q_s8): Likewise.
8488 (vrev32q_s16): Likewise.
8489 (vrev32q_u8): Likewise.
8490 (vrev32q_u16): Likewise.
8491 (vrev64_f32): Likewise.
8492 (vrev64_p8): Likewise.
8493 (vrev64_p16): Likewise.
8494 (vrev64_s8): Likewise.
8495 (vrev64_s16): Likewise.
8496 (vrev64_s32): Likewise.
8497 (vrev64_u8): Likewise.
8498 (vrev64_u16): Likewise.
8499 (vrev64_u32): Likewise.
8500 (vrev64q_f32): Likewise.
8501 (vrev64q_p8): Likewise.
8502 (vrev64q_p16): Likewise.
8503 (vrev64q_s8): Likewise.
8504 (vrev64q_s16): Likewise.
8505 (vrev64q_s32): Likewise.
8506 (vrev64q_u8): Likewise.
8507 (vrev64q_u16): Likewise.
8508 (vrev64q_u32): Likewise.
8509 (vsha1cq_u32): Likewise.
8510 (vsha1mq_u32): Likewise.
8511 (vsha1pq_u32): Likewise.
8512 (vsha1h_u32): Likewise.
8513 (vsha1su0q_u32): Likewise.
8514 (vsha1su1q_u32): Likewise.
8515 (vsha256hq_u32): Likewise.
8516 (vsha256h2q_u32): Likewise.
8517 (vsha256su0q_u32): Likewise.
8518 (vsha256su1q_u32): Likewise.
8519 (vmull_p64): Likewise.
8520 (vmull_high_p64): Likewise.
8521 (vsqrt_f32): Likewise.
8522 (vsqrtq_f32): Likewise.
8523 (vsqrt_f64): Likewise.
8524 (vsqrtq_f64): Likewise.
8525 (vst1_f32): Likewise.
8526 (vst1_f64): Likewise.
8527 (vst1_p8): Likewise.
8528 (vst1_p16): Likewise.
8529 (vst1_p64): Likewise.
8530 (vst1_s8): Likewise.
8531 (vst1_s16): Likewise.
8532 (vst1_s32): Likewise.
8533 (vst1_s64): Likewise.
8534 (vst1_u8): Likewise.
8535 (vst1_u16): Likewise.
8536 (vst1_u32): Likewise.
8537 (vst1_u64): Likewise.
8538 (vst1q_f32): Likewise.
8539 (vst1q_f64): Likewise.
8540 (vst1q_p8): Likewise.
8541 (vst1q_p16): Likewise.
8542 (vst1q_p64): Likewise.
8543 (vst1q_s8): Likewise.
8544 (vst1q_s16): Likewise.
8545 (vst1q_s32): Likewise.
8546 (vst1q_s64): Likewise.
8547 (vst1q_u8): Likewise.
8548 (vst1q_u16): Likewise.
8549 (vst1q_u32): Likewise.
8550 (vst1q_u64): Likewise.
8551 (vst1_s64_x2): Likewise.
8552 (vst1_u64_x2): Likewise.
8553 (vst1_f64_x2): Likewise.
8554 (vst1_s8_x2): Likewise.
8555 (vst1_p8_x2): Likewise.
8556 (vst1_s16_x2): Likewise.
8557 (vst1_p16_x2): Likewise.
8558 (vst1_s32_x2): Likewise.
8559 (vst1_u8_x2): Likewise.
8560 (vst1_u16_x2): Likewise.
8561 (vst1_u32_x2): Likewise.
8562 (vst1_f16_x2): Likewise.
8563 (vst1_f32_x2): Likewise.
8564 (vst1_p64_x2): Likewise.
8565 (vst1q_s8_x2): Likewise.
8566 (vst1q_p8_x2): Likewise.
8567 (vst1q_s16_x2): Likewise.
8568 (vst1q_p16_x2): Likewise.
8569 (vst1q_s32_x2): Likewise.
8570 (vst1q_s64_x2): Likewise.
8571 (vst1q_u8_x2): Likewise.
8572 (vst1q_u16_x2): Likewise.
8573 (vst1q_u32_x2): Likewise.
8574 (vst1q_u64_x2): Likewise.
8575 (vst1q_f16_x2): Likewise.
8576 (vst1q_f32_x2): Likewise.
8577 (vst1q_f64_x2): Likewise.
8578 (vst1q_p64_x2): Likewise.
8579 (vst1_s64_x3): Likewise.
8580 (vst1_u64_x3): Likewise.
8581 (vst1_f64_x3): Likewise.
8582 (vst1_s8_x3): Likewise.
8583 (vst1_p8_x3): Likewise.
8584 (vst1_s16_x3): Likewise.
8585 (vst1_p16_x3): Likewise.
8586 (vst1_s32_x3): Likewise.
8587 (vst1_u8_x3): Likewise.
8588 (vst1_u16_x3): Likewise.
8589 (vst1_u32_x3): Likewise.
8590 (vst1_f16_x3): Likewise.
8591 (vst1_f32_x3): Likewise.
8592 (vst1_p64_x3): Likewise.
8593 (vst1q_s8_x3): Likewise.
8594 (vst1q_p8_x3): Likewise.
8595 (vst1q_s16_x3): Likewise.
8596 (vst1q_p16_x3): Likewise.
8597 (vst1q_s32_x3): Likewise.
8598 (vst1q_s64_x3): Likewise.
8599 (vst1q_u8_x3): Likewise.
8600 (vst1q_u16_x3): Likewise.
8601 (vst1q_u32_x3): Likewise.
8602 (vst1q_u64_x3): Likewise.
8603 (vst1q_f16_x3): Likewise.
8604 (vst1q_f32_x3): Likewise.
8605 (vst1q_f64_x3): Likewise.
8606 (vst1q_p64_x3): Likewise.
8607 (vst2_s64): Likewise.
8608 (vst2_u64): Likewise.
8609 (vst2_f64): Likewise.
8610 (vst2_s8): Likewise.
8611 (vst2_p8): Likewise.
8612 (vst2_s16): Likewise.
8613 (vst2_p16): Likewise.
8614 (vst2_s32): Likewise.
8615 (vst2_u8): Likewise.
8616 (vst2_u16): Likewise.
8617 (vst2_u32): Likewise.
8618 (vst2_f16): Likewise.
8619 (vst2_f32): Likewise.
8620 (vst2_p64): Likewise.
8621 (vst2q_s8): Likewise.
8622 (vst2q_p8): Likewise.
8623 (vst2q_s16): Likewise.
8624 (vst2q_p16): Likewise.
8625 (vst2q_s32): Likewise.
8626 (vst2q_s64): Likewise.
8627 (vst2q_u8): Likewise.
8628 (vst2q_u16): Likewise.
8629 (vst2q_u32): Likewise.
8630 (vst2q_u64): Likewise.
8631 (vst2q_f16): Likewise.
8632 (vst2q_f32): Likewise.
8633 (vst2q_f64): Likewise.
8634 (vst2q_p64): Likewise.
8635 (vst3_s64): Likewise.
8636 (vst3_u64): Likewise.
8637 (vst3_f64): Likewise.
8638 (vst3_s8): Likewise.
8639 (vst3_p8): Likewise.
8640 (vst3_s16): Likewise.
8641 (vst3_p16): Likewise.
8642 (vst3_s32): Likewise.
8643 (vst3_u8): Likewise.
8644 (vst3_u16): Likewise.
8645 (vst3_u32): Likewise.
8646 (vst3_f16): Likewise.
8647 (vst3_f32): Likewise.
8648 (vst3_p64): Likewise.
8649 (vst3q_s8): Likewise.
8650 (vst3q_p8): Likewise.
8651 (vst3q_s16): Likewise.
8652 (vst3q_p16): Likewise.
8653 (vst3q_s32): Likewise.
8654 (vst3q_s64): Likewise.
8655 (vst3q_u8): Likewise.
8656 (vst3q_u16): Likewise.
8657 (vst3q_u32): Likewise.
8658 (vst3q_u64): Likewise.
8659 (vst3q_f16): Likewise.
8660 (vst3q_f32): Likewise.
8661 (vst3q_f64): Likewise.
8662 (vst3q_p64): Likewise.
8663 (vst4_s64): Likewise.
8664 (vst4_u64): Likewise.
8665 (vst4_f64): Likewise.
8666 (vst4_s8): Likewise.
8667 (vst4_p8): Likewise.
8668 (vst4_s16): Likewise.
8669 (vst4_p16): Likewise.
8670 (vst4_s32): Likewise.
8671 (vst4_u8): Likewise.
8672 (vst4_u16): Likewise.
8673 (vst4_u32): Likewise.
8674 (vst4_f16): Likewise.
8675 (vst4_f32): Likewise.
8676 (vst4_p64): Likewise.
8677 (vst4q_s8): Likewise.
8678 (vst4q_p8): Likewise.
8679 (vst4q_s16): Likewise.
8680 (vst4q_p16): Likewise.
8681 (vst4q_s32): Likewise.
8682 (vst4q_s64): Likewise.
8683 (vst4q_u8): Likewise.
8684 (vst4q_u16): Likewise.
8685 (vst4q_u32): Likewise.
8686 (vst4q_u64): Likewise.
8687 (vst4q_f16): Likewise.
8688 (vst4q_f32): Likewise.
8689 (vst4q_f64): Likewise.
8690 (vst4q_p64): Likewise.
8691 (vtbx4_s8): Likewise.
8692 (vtbx4_u8): Likewise.
8693 (vtbx4_p8): Likewise.
8694 (vtrn_f32): Likewise.
8695 (vtrn_p8): Likewise.
8696 (vtrn_p16): Likewise.
8697 (vtrn_s8): Likewise.
8698 (vtrn_s16): Likewise.
8699 (vtrn_s32): Likewise.
8700 (vtrn_u8): Likewise.
8701 (vtrn_u16): Likewise.
8702 (vtrn_u32): Likewise.
8703 (vtrnq_f32): Likewise.
8704 (vtrnq_p8): Likewise.
8705 (vtrnq_p16): Likewise.
8706 (vtrnq_s8): Likewise.
8707 (vtrnq_s16): Likewise.
8708 (vtrnq_s32): Likewise.
8709 (vtrnq_u8): Likewise.
8710 (vtrnq_u16): Likewise.
8711 (vtrnq_u32): Likewise.
8712 (vrsqrte_f16): Likewise.
8713 (vrsqrteq_f16): Likewise.
8714 (vsqrt_f16): Likewise.
8715 (vsqrtq_f16): Likewise.
8716 (vabd_f16): Likewise.
8717 (vabdq_f16): Likewise.
8718 (vpadd_f16): Likewise.
8719 (vpaddq_f16): Likewise.
8720 (vpmax_f16): Likewise.
8721 (vpmaxq_f16): Likewise.
8722 (vpmaxnm_f16): Likewise.
8723 (vpmaxnmq_f16): Likewise.
8724 (vpmin_f16): Likewise.
8725 (vpminq_f16): Likewise.
8726 (vpminnm_f16): Likewise.
8727 (vpminnmq_f16): Likewise.
8728 (vrsqrts_f16): Likewise.
8729 (vrsqrtsq_f16): Likewise.
8730
8731 2019-09-25 Richard Biener <rguenther@suse.de>
8732
8733 PR tree-optimization/91896
8734 * tree-vect-loop.c (vectorizable_reduction): The single
8735 def-use cycle optimization cannot apply when there's more
8736 than one pattern stmt involved.
8737
8738 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
8739
8740 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
8741 the 'P' mode iterator, replacing the (removed) SI and DI variants.
8742 (reload_macho_picbase_<mode>): Likewise.
8743
8744 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
8745
8746 * config/rs6000/rs6000.md: Move darwin.md include until
8747 after the definition of the mode iterators.
8748
8749 2019-09-23 Martin Sebor <msebor@redhat.com>
8750
8751 PR tree-optimization/91570
8752 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
8753 non-constant minlen, maxlen and maxbound.
8754
8755 2019-09-24 Richard Biener <rguenther@suse.de>
8756
8757 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
8758 Rename to...
8759 (_stmt_vec_info::cond_reduc_code): ... this.
8760 (_stmt_vec_info::induc_cond_initial_val): Add.
8761 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
8762 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
8763 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
8764 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
8765 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
8766 the reduction code.
8767 (vect_create_epilog_for_reduction): Drop special
8768 induction condition reduction params, pass in reduction code
8769 and simplify.
8770 (vectorizable_reduction): Perform condition reduction kind
8771 selection only at analysis time. Adjust passing on state.
8772
8773 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8774
8775 * config/aarch64/aarch64.md (mov<mode>): Don't call
8776 aarch64_split_dimode_const_store on volatile MEM.
8777
8778 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
8779
8780 * config/aarch64/aarch64-option-extensions.def (fp16fml):
8781 Update hwcap string for fp16fml.
8782
8783 2019-09-24 Jakub Jelinek <jakub@redhat.com>
8784
8785 PR middle-end/91866
8786 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
8787 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
8788
8789 2019-09-24 Martin Liska <mliska@suse.cz>
8790
8791 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
8792 instead of if-elseif-elseif-...
8793 * gimple-expr.c (extract_ops_from_tree): Likewise.
8794 * gimple.c (get_gimple_rhs_num_ops): Likewise.
8795 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
8796
8797 2019-09-24 Martin Jambor <mjambor@suse.cz>
8798
8799 PR ipa/91831
8800 * ipa-param-manipulation.c (carry_over_param): Make a method of
8801 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
8802 in case of a context mismatch.
8803 (ipa_param_body_adjustments::common_initialization): Adjust call to
8804 carry_over_param.
8805 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
8806 private method carry_over_param.
8807
8808 2019-09-24 Martin Jambor <mjambor@suse.cz>
8809
8810 PR ipa/91832
8811 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
8812
8813 2019-09-24 Richard Biener <rguenther@suse.de>
8814
8815 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
8816 base.
8817
8818 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8819
8820 * config/arm/t-arm (arm-builtins.o): Add dependency on
8821 arm_acle_builtins.def.
8822
8823 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
8824
8825 PR target/91823
8826 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
8827 canonical CONST_INTs. Use gen_rtvec.
8828
8829 2019-09-23 Richard Biener <rguenther@suse.de>
8830
8831 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
8832 avoid adjusting by + 0 or * 1.
8833 (vect_create_epilog_for_reduction): Get reduction code only
8834 when necessary. Deal with adjustment_def only when necessary.
8835
8836 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
8837
8838 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
8839 memmodel index.
8840
8841 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8842
8843 PR ipa/91835
8844 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
8845 "ipa-sra".
8846
8847 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
8848
8849 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
8850 code. Merge code blocks with common conditionals. Use declared
8851 macro instead of a magic number for PIC level.
8852
8853 2019-09-21 Martin Sebor <msebor@redhat.com>
8854
8855 PR middle-end/91830
8856 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
8857 Simplify computation of the offset of the referenced subobject.
8858
8859 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
8860
8861 * config/darwin.c (machopic_legitimize_pic_address): Check
8862 for lra not reload.
8863
8864 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
8865
8866 * ira-conflicts.c (can_use_same_reg_p): New function.
8867 (process_reg_shuffles): Take an insn parameter. Ignore cases
8868 in which input operand op_num could seemingly never be allocated
8869 to the same register as the destination.
8870 (add_insn_allocno_copies): Update call to process_reg_shuffles.
8871
8872 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
8873
8874 * simplify-rtx.c (neg_const_int): Replace with...
8875 (neg_poly_int_rtx): ...this new function.
8876 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
8877 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
8878 (simplify_plus_minus): Likewise for constant terms here.
8879
8880 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
8881
8882 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
8883 HOST_WIDE_PRINT_UNSIGNED.
8884
8885 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
8886
8887 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
8888 character.
8889
8890 2019-09-20 Maya Rashish <coypu@sdf.org>
8891
8892 PR target/86811
8893 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
8894 Define to speculation_safe_value_not_needed.
8895
8896 2019-09-20 Richard Biener <rguenther@suse.de>
8897 Uros Bizjak <ubizjak@gmail.com>
8898
8899 PR target/91814
8900 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
8901 previous change.
8902 (general_scalar_chain::convert_op): Force not suitable memory
8903 operands to a register.
8904
8905 2019-09-20 Richard Biener <rguenther@suse.de>
8906
8907 PR tree-optimization/91821
8908 * tree-vect-loop.c (check_reduction_path): Check we can compute
8909 reduc_idx.
8910 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
8911 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
8912 operands in canonical order.
8913 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
8914 STMT_VINFO_REDUC_IDX.
8915 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
8916 (STMT_VINFO_REDUC_IDX): Likewise.
8917
8918 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
8919
8920 PR target/91269
8921 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
8922
8923 2019-09-20 Richard Biener <rguenther@suse.de>
8924
8925 PR tree-optimization/91822
8926 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
8927 parameter.
8928 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
8929 for reduc_index in nested cycles, adjust vectorizable_condition
8930 calls.
8931 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
8932 parameter.
8933 (vect_analyze_stmt): Adjust.
8934 (vect_transform_stmt): Likewise.
8935
8936 2019-09-20 Richard Biener <rguenther@suse.de>
8937
8938 PR target/91767
8939 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
8940 Ensure there's a sequence point between allocating the new register
8941 and passing a reference to a reg via regno_reg_rtx.
8942
8943 2019-09-20 Martin Jambor <mjambor@suse.cz>
8944
8945 * coretypes.h (cgraph_edge): Declare.
8946 * ipa-param-manipulation.c: Rewrite.
8947 * ipa-param-manipulation.h: Likewise.
8948 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
8949 (OBJS): Added ipa-sra.o.
8950 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
8951 and ref_p, added fields param_adjustments and performed_splits.
8952 (struct cgraph_clone_info): Remove ags_to_skip and
8953 combined_args_to_skip, new field param_adjustments.
8954 (cgraph_node::create_clone): Changed parameters to use
8955 ipa_param_adjustments.
8956 (cgraph_node::create_virtual_clone): Likewise.
8957 (cgraph_node::create_virtual_clone_with_body): Likewise.
8958 (tree_function_versioning): Likewise.
8959 (cgraph_build_function_type_skip_args): Removed.
8960 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
8961 using ipa_param_adjustments.
8962 (clone_of_p): Likewise.
8963 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
8964 (build_function_decl_skip_args): Likewise.
8965 (duplicate_thunk_for_node): Adjust parameters using
8966 ipa_param_body_adjustments, copy param_adjustments instead of
8967 args_to_skip.
8968 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
8969 (cgraph_node::create_virtual_clone): Likewise.
8970 (cgraph_node::create_version_clone_with_body): Likewise.
8971 (cgraph_materialize_clone): Likewise.
8972 (symbol_table::materialize_all_clones): Likewise.
8973 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
8974 ipa_replace_map check.
8975 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
8976 (initialize_node_lattices): Make aware that some parameters might have
8977 already been removed.
8978 (want_remove_some_param_p): New function.
8979 (create_specialized_node): Convert to using ipa_param_adjustments and
8980 deal with possibly pre-existing adjustments.
8981 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
8982 (output_node_opt_summary): Do not stream removed fields. Stream
8983 parameter adjustments instead of argumetns to skip.
8984 (input_node_opt_summary): Likewise.
8985 (input_node_opt_summary): Likewise.
8986 * lto-section-in.c (lto_section_name): Added ipa-sra section.
8987 * lto-streamer.h (lto_section_type): Likewise.
8988 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
8989 param_body_adjs.
8990 (copy_decl_to_var): Declare.
8991 * tree-inline.c (update_clone_info): Do not remap old_tree.
8992 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
8993 statements, walk all extra generated statements and remap their
8994 operands.
8995 (redirect_all_calls): Add killed SSA names to a hash set.
8996 (remap_ssa_name): Do not remap killed SSA names.
8997 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
8998 half of functionality moved to ipa_param_body_adjustments.
8999 (copy_decl_to_var): Make exported.
9000 (copy_body): Destroy killed_new_ssa_names hash set.
9001 (expand_call_inline): Remap performed splits.
9002 (update_clone_info): Likewise.
9003 (tree_function_versioning): Simplify tree_map processing. Updated to
9004 accept ipa_param_adjustments and use ipa_param_body_adjustments.
9005 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
9006 for the new interface.
9007 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
9008 (simd_clone_compute_base_data_type): Likewise.
9009 (simd_clone_init_simd_arrays): Adjust for the new interface.
9010 (simd_clone_adjust_argument_types): Likewise.
9011 (struct modify_stmt_info): Likewise.
9012 (ipa_simd_modify_stmt_ops): Likewise.
9013 (ipa_simd_modify_function_body): Likewise.
9014 (simd_clone_adjust): Likewise.
9015 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
9016 (type_internals_preclude_sra_p): Make public.
9017 * tree-sra.h: New file.
9018 * ipa-inline-transform.c (save_inline_function_body): Update to
9019 refelct new tree_function_versioning signature.
9020 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
9021 ipa_param_adjustments to get current parameter indices.
9022 (ipcp_modif_dom_walker::before_dom_children): Likewise.
9023 (ipcp_update_bits): Likewise.
9024 (ipcp_update_vr): Likewise.
9025 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
9026 * ipa-sra.c: New file.
9027 * multiple_target.c (create_target_clone): Update to reflet new type
9028 of create_version_clone_with_body.
9029 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
9030 tree_function_versioning.
9031 (modify_function): Update to reflect new type of
9032 tree_function_versioning.
9033 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
9034 * passes.def: Remove old IPA-SRA and add new one.
9035 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
9036 (make_pass_ipa_sra): Declare.
9037 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
9038 ipa_sra_retvalues.
9039 * doc/invoke.texi (ipa-sra-max-replacements): New.
9040
9041 2019-09-19 Martin Sebor <msebor@redhat.com>
9042
9043 PR middle-end/91631
9044 * builtins.c (component_size): Correct trailing array computation,
9045 rename to component_ref_size and move...
9046 (compute_objsize): Adjust.
9047 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
9048 (builtin_access::strict): Do not consider memmove.
9049 (builtin_access::write_off): New function.
9050 (builtin_memref::builtin_memref): Initialize refsize.
9051 (builtin_memref::set_base_and_offset): Adjust refoff and compute
9052 refsize.
9053 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
9054 Handle refsize.
9055 (builtin_access::builtin_access): Initialize dstoff to destination
9056 refeence offset here instead of in maybe_diag_overlap. Adjust
9057 referencess even to unrelated objects. Adjust sizrange of bounded
9058 string functions to reflect bound. For strcat, adjust destination
9059 sizrange by that of source.
9060 (builtin_access::strcat_overlap): Adjust offsets and sizes
9061 to reflect the increase in destination sizrange above.
9062 (builtin_access::overlap): Do not set dstoff here but instead
9063 in builtin_access::builtin_access.
9064 (check_bounds_or_overlap): Use builtin_access::write_off.
9065 (maybe_diag_access_bounds): Add argument. Add informational notes.
9066 (dump_builtin_memref, dump_builtin_access): New functions.
9067 * tree.c (component_ref_size): ...to here.
9068 * tree.h (component_ref_size): Declare.
9069 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
9070 nul in the size of the source string.
9071
9072 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
9073
9074 PR c/67224
9075 * doc/cpp.texi: Document support for extended characters in
9076 identifiers.
9077 * doc/cppopts.texi: Likewise.
9078
9079 2019-09-19 Richard Biener <rguenther@suse.de>
9080
9081 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
9082 (check_reduction_path): New overload having the path as result.
9083 (vect_is_simple_reduction): From the detected reduction
9084 path build a SLP reduction chain if possible.
9085
9086 2019-09-19 Richard Biener <rguenther@suse.de>
9087
9088 PR target/91814
9089 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
9090 Force operand to a register if it isn't nonimmediate_operand.
9091
9092 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
9093
9094 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
9095 * config/arm/iterators.md (optab): Add and, ior, xor entries.
9096 (logical_op): Remove code attribute.
9097 (logical_OP): Likewise.
9098
9099 2019-09-19 Martin Liska <mliska@suse.cz>
9100
9101 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
9102 Use proper casting.
9103
9104 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
9105
9106 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
9107 registers with %R.
9108
9109 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
9110 for NE comparison of TImode values.
9111 (aarch64_emit_load_exclusive): Add support for TImode.
9112 (aarch64_emit_store_exclusive): Likewise.
9113 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
9114 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
9115 Change iterator from ALLI to ALLI_TI.
9116 (@atomic_compare_and_swap<JUST_TI>): New.
9117 (@atomic_compare_and_swap<JUST_TI>_lse): New.
9118 (aarch64_load_exclusive_pair): New.
9119 (aarch64_store_exclusive_pair): New.
9120 * config/aarch64/iterators.md (JUST_TI): New.
9121
9122 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
9123 strong_zero_p for aarch64_track_speculation; unify some code paths;
9124 use aarch64_gen_compare_reg instead of open-coding.
9125
9126 * config/aarch64/aarch64.opt (-moutline-atomics): New.
9127 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
9128 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
9129 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
9130 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
9131 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
9132 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
9133 (atomic_<atomic_op><ALLI>): Likewise.
9134 (atomic_fetch_<atomic_op><ALLI>): Likewise.
9135 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
9136 * doc/invoke.texi: Document -moutline-atomics.
9137
9138 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
9139
9140 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
9141 trivial predicate for condition branch.
9142 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
9143 for switch case.
9144 (compute_bb_predicates): Update predicate based on post-dominating
9145 relationship.
9146 (analyze_function_body): Calculate post-dominating information.
9147
9148 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
9149
9150 * tree-vectorizer.h (vectorizable_condition): Take an int
9151 reduction index instead of a boolean flag.
9152 * tree-vect-stmts.c (vectorizable_condition): Likewise.
9153 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
9154 reductions if the reduction accumulator is the "then" rather
9155 than the "else" value.
9156 (vect_analyze_stmt): Update call accordingly.
9157 (vect_transform_stmt): Likewise.
9158 * tree-vect-loop.c (vectorizable_reduction): Likewise,
9159 asserting that the index is > 0.
9160
9161 2019-09-19 Martin Liska <mliska@suse.cz>
9162
9163 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
9164 (sort_congruence_classes_by_decl_uid): Likewise.
9165 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
9166 easier sorting.
9167 (sem_item_optimizer::merge_classes): Likewise.
9168
9169 2019-09-19 Richard Biener <rguenther@suse.de>
9170
9171 PR tree-optimization/91812
9172 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
9173 volatile loads.
9174
9175 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
9176
9177 * defaults.h (TARGET_UNIT): New macro.
9178 (target_unit): New type.
9179 * rtl.h (native_encode_rtx, native_decode_rtx)
9180 (native_decode_vector_rtx, subreg_size_lsb): Declare.
9181 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
9182 * rtlanal.c (subreg_lsb_1): Delete.
9183 (subreg_size_lsb): New function.
9184 * simplify-rtx.c: Include rtx-vector-builder.h
9185 (simplify_immed_subreg): Delete.
9186 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
9187 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
9188 functions.
9189 (simplify_subreg): Use them.
9190 (test_vector_subregs_modes, test_vector_subregs_repeating)
9191 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
9192 (test_vector_subregs): New functions.
9193 (test_vector_ops): Call test_vector_subregs for integer vector
9194 modes with at least 2 elements.
9195
9196 2019-09-19 Richard Biener <rguenther@suse.de>
9197
9198 * tree-parloops.c (parloops_is_slp_reduction): Do not set
9199 LOOP_VINFO_OPERANDS_SWAPPED.
9200 (parloops_is_simple_reduction): Likewise.
9201 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
9202 initialize operands_swapped.
9203 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
9204 (vect_is_slp_reduction): Do not swap operands.
9205 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
9206 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
9207
9208 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
9209
9210 PR target/87007
9211 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
9212 Add avx_partial_xmm_update.
9213
9214 2019-09-18 Jim Wilson <jimw@sifive.com>
9215
9216 PR target/91683
9217 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
9218 (riscv_move_integer): Likewise.
9219 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
9220 riscv_move_integer arg.
9221 (riscv_legitimize_move): Likewise.
9222 (riscv_force_temporary): New parameter in_splitter. Don't call
9223 force_reg if true.
9224 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
9225 arg.
9226 (riscv_add_offset): Likewise.
9227 (riscv_split_symbol): New parameter in_splitter. Pass to
9228 riscv_force_temporary.
9229 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
9230 arg.
9231 (riscv_move_integer): New parameter in_splitter. New local
9232 can_create_psuedo. Don't call riscv_split_integer or force_reg when
9233 in_splitter TRUE.
9234 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
9235 riscv_split_symbol, and riscv_force_temporary args.
9236 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
9237 riscv_move_integer arg.
9238 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
9239
9240 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
9241
9242 PR target/90878
9243 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
9244 hard register store cost to 6.
9245
9246 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
9247
9248 PR target/91446
9249 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
9250 pseudo register store cost from 3 to 6 to make it the same as
9251 QImode and HImode.
9252
9253 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
9254
9255 PR target/91738
9256 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
9257 (one_cmpldi2): Likewise.
9258 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
9259 of the constant parts is simple.
9260 * config/arm/iterators.md (LOGICAL): Add new code iterator.
9261 (logical_op): Add new code attribute.
9262 (logical_OP): Likewise.
9263 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
9264 (arm_iordi_operand): Add predicate.
9265 (arm_xordi_operand): Add predicate.
9266
9267 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
9268
9269 * config/arm/arm.md (maddsidi4): Remove expander.
9270 (mulsidi3adddi): Remove pattern.
9271 (mulsidi3adddi_v6): Likewise.
9272 (mulsidi3_nov6): Likewise.
9273 (mulsidi3_v6): Likewise.
9274 (umulsidi3): Remove expander.
9275 (umulsidi3_nov6): Remove pattern.
9276 (umulsidi3_v6): Likewise.
9277 (umulsidi3adddi): Likewise.
9278 (umulsidi3adddi_v6): Likewise.
9279 (<Us>mulsidi3): Add combined expander.
9280 (<Us>maddsidi4): Likewise.
9281 (<US>mull): Add combined umull and smull pattern.
9282 (<US>mlal): Likewise.
9283 * config/arm/iterators.md (Us): Add new iterator.
9284
9285 2019-09-18 Richard Biener <rguenther@suse.de>
9286
9287 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
9288 swapping.
9289 (vectorize_fold_left_reduction): Remove assert.
9290 (vectorizable_reduction): Also expect COND_EXPR non-reduction
9291 operand in position 2. Remove assert.
9292
9293 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
9294
9295 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
9296 (smulsi3_highpart_nov6): Remove pattern.
9297 (smulsi3_highpart_v6): Likewise.
9298 (umulsi3_highpart): Likewise.
9299 (umulsi3_highpart_nov6): Likewise.
9300 (umulsi3_highpart_v6): Likewise.
9301 (<US>mull_high): Add new combined multiply pattern.
9302
9303 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
9304
9305 * config/arm/arm.md (arm_mulsi3): Remove pattern.
9306 (arm_mulsi3_v6): Likewise.
9307 (mulsi3addsi_v6): Likewise.
9308 (mulsi3subsi): Likewise.
9309 (mul): Add new multiply pattern.
9310 (mla): Likewise.
9311 (mls): Likewise.
9312
9313 2019-09-18 Richard Biener <rguenther@suse.de>
9314
9315 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
9316 (parloops_valid_reduction_input_p): Copy from
9317 valid_reduction_input_p.
9318 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
9319 (parloops_needs_fold_left_reduction_p): Copy from
9320 needs_fold_left_reduction_p.
9321 (parloops_is_simple_reduction): Copy from
9322 vect_is_simple_reduction.
9323 (parloops_force_simple_reduction): Copy from
9324 vect_force_simple_reduction.
9325 (gather_scalar_reductions): Adjust.
9326 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
9327 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
9328
9329 2019-09-18 Richard Biener <rguenther@suse.de>
9330
9331 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
9332 * tree-vect-loop.c (get_initial_def_for_reduction): Make
9333 static.
9334 (vect_create_epilog_for_reduction): Remove dead code.
9335
9336 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9337
9338 * varasm.c (assemble_real): Generate canonical const_ints.
9339
9340 2019-09-18 Richard Biener <rguenther@suse.de>
9341
9342 PR lto/91763
9343 * lto-streamer-in.c (input_eh_regions): Move EH init to
9344 lto_materialize_function.
9345 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
9346 Likewise.
9347
9348 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9349
9350 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
9351 are INTEGER_CSTs.
9352
9353 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9354
9355 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
9356 of checking specifically for INTEGER_CST.
9357
9358 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9359
9360 * stor-layout.c (compute_record_mode): Operate on poly_uint64
9361 sizes instead of uhwi sizes.
9362
9363 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9364
9365 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
9366 (add_const_value_attribute): Handle CONST_POLY_INT.
9367
9368 2019-09-18 Martin Liska <mliska@suse.cz>
9369
9370 * dbgcnt.def (store_merging): New counter.
9371 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
9372 Use it in store merging.
9373
9374 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
9375
9376 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
9377 function.
9378 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
9379 * config/arm/arm.c (arm_sched_variable_issue): New function.
9380 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
9381
9382 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
9383
9384 * config/arm/types.md (no_reservation): New reservation.
9385 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
9386 no_insn here.
9387 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
9388 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
9389 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
9390 * config/arm/arm1020e.md (1020alu_op): Likewise.
9391 * config/arm/arm1026ejs.md (alu_op): Likewise.
9392 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9393 * config/arm/arm926ejs.md (9_alu_op): Likewise.
9394 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9395 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
9396 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9397 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9398 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
9399 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
9400 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9401 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9402 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9403 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
9404 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
9405 * config/arm/fa526.md (526_alu_op): Likewise.
9406 * config/arm/fa606te.md (606te_alu_op): Likewise.
9407 * config/arm/fa626te.md (626te_alu_op): Likewise.
9408 * config/arm/fa726te.md (726te_alu_op): Likewise.
9409 * config/arm/xgene1.md (xgene1_nop): Likewise.
9410
9411 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
9412
9413 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
9414 "no_insn" to "branch".
9415
9416 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
9417
9418 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
9419
9420 2019-09-17 Richard Biener <rguenther@suse.de>
9421
9422 PR debug/91772
9423 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
9424 was missing generate locations only once.
9425
9426 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
9427
9428 PR ipa/91089
9429 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
9430 option.
9431 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
9432 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
9433 for switch default case using range analysis information.
9434
9435 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
9436
9437 PR target/91749
9438 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
9439 mode attributed is supported by FDPIC.
9440
9441 2019-09-17 Richard Biener <rguenther@suse.de>
9442
9443 PR tree-optimization/91790
9444 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
9445 use the correct DR for setting up realignment.
9446
9447 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
9448
9449 PR target/91719
9450 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
9451 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
9452 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
9453 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
9454
9455 2019-09-16 Jason Merrill <jason@redhat.com>
9456
9457 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
9458
9459 2019-09-16 Martin Liska <mliska@suse.cz>
9460
9461 * gimple-fold.c (or_comparisons_1): Remove rules moved
9462 to ...
9463 * match.pd: ... here.
9464
9465 2019-09-16 Martin Liska <mliska@suse.cz>
9466
9467 * gimple-fold.c (or_comparisons_1): Remove rules
9468 moved to ...
9469 * match.pd: ... here.
9470
9471 2019-09-16 Martin Liska <mliska@suse.cz>
9472
9473 * genmatch.c (dt_node::append_simplify): Do not print
9474 warning when we have duplicate patterns belonging
9475 to a same simplify rule.
9476 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
9477 (maybe_fold_comparisons_from_match_pd): Handle
9478 tcc_comparison as a results.
9479 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
9480
9481 2019-09-16 Li Jia He <helijia@linux.ibm.com>
9482 Qi Feng <ffengqi@linux.ibm.com>
9483
9484 PR middle-end/88784
9485 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
9486 (x > y && x == XXX_MIN): Optimize into 'false'.
9487 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
9488 (x < y && x != XXX_MAX): Optimize into 'x < y'.
9489 (x < y && x == XXX_MAX): Optimize into 'false'.
9490 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
9491 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
9492 (x <= y || x != XXX_MIN): Optimize into 'true'.
9493 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
9494 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
9495 (x >= y || x != XXX_MAX): Optimize into 'true'.
9496 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
9497
9498 2019-09-16 Li Jia He <helijia@linux.ibm.com>
9499 Martin Liska <mliska@suse.cz>
9500
9501 * gimple-fold.c (and_comparisons_1): Add type as first
9502 argument.
9503 (and_var_with_comparison): Likewise.
9504 (and_var_with_comparison_1): Likewise.
9505 (or_comparisons_1): Likewise.
9506 (or_var_with_comparison): Likewise.
9507 (or_var_with_comparison_1): Likewise.
9508 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
9509 (maybe_fold_or_comparisons): Likewise.
9510 (maybe_fold_comparisons_from_match_pd): New.
9511 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
9512 (maybe_fold_or_comparisons): Likewise.
9513 * gimple.c (gimple_size): Make it public and add num_ops argument.
9514 (gimple_init): New function.
9515 (gimple_alloc): Call gimple_init.
9516 * gimple.h (gimple_size): New.
9517 (gimple_init): Likewise.
9518 * tree-if-conv.c (fold_or_predicates): Pass type.
9519 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
9520 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
9521 (optimize_vec_cond_expr): Likewise.
9522 (ovce_extract_ops): Return type of conditional expression.
9523 * tree-ssanames.c (init_ssa_name_imm_use): New.
9524 (make_ssa_name_fn): Use init_ssa_name_imm_use.
9525 * tree-ssanames.h (init_ssa_name_imm_use): New.
9526
9527 2019-09-16 Richard Biener <rguenther@suse.de>
9528
9529 PR tree-optimization/91756
9530 PR tree-optimization/87132
9531 * tree-ssa-alias.h (enum translate_flags): New.
9532 (get_continuation_for_phi): Use it instead of simple bool flag.
9533 (walk_non_aliased_vuses): Likewise.
9534 * tree-ssa-alias.c (maybe_skip_until): Adjust.
9535 (get_continuation_for_phi): When looking across backedges only
9536 disallow valueization.
9537 (walk_non_aliased_vuses): Adjust.
9538 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
9539 if requested.
9540
9541 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
9542
9543 PR middle-end/80791
9544 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
9545 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
9546 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
9547 * target.def (have_count_reg_decr_p): New hook.
9548 (doloop_cost_for_generic): Likewise.
9549 (doloop_cost_for_address): Likewise.
9550 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
9551 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
9552 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
9553 * doc/tm.texi: Regenerate.
9554 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
9555 addend.
9556 (record_group): Init doloop_p.
9557 (add_candidate_1): Add optional argument doloop, change the handlings
9558 accordingly.
9559 (add_candidate): Likewise.
9560 (generic_predict_doloop_p): Update attribute.
9561 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
9562 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
9563 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
9564 MIN_EXPR.
9565 (get_computation_cost): Update for doloop IV cand extra cost.
9566 (determine_group_iv_cost_cond): Update for doloop IV cand.
9567 (determine_iv_cost): Likewise.
9568 (ivopts_estimate_reg_pressure): Likewise.
9569 (may_eliminate_iv): Update handlings for doloop IV cand.
9570 (add_iv_candidate_for_doloop): New function.
9571 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
9572 (iv_ca_set_no_cp): Update for doloop IV cand.
9573 (iv_ca_set_cp): Likewise.
9574 (iv_ca_dump): Dump register cost.
9575 (find_doloop_use): New function.
9576 (analyze_and_mark_doloop_use): Likewise.
9577 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
9578
9579 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
9580
9581 PR middle-end/91708
9582 * cse.c (cse_insn): Do not replace anything with a
9583 MEM.
9584
9585 2019-09-13 Ian Lance Taylor <iant@golang.org>
9586
9587 * doc/invoke.texi (Optimize Options): Fix typo.
9588
9589 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
9590
9591 PR tree-optimization/89386
9592 * config/i386/sse.md (smulhrs<mode>3): New expander.
9593 (smulhrsv4hi3): Ditto.
9594
9595 2019-09-12 Richard Biener <rguenther@suse.de>
9596
9597 PR tree-optimization/91750
9598 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
9599 in the type of the evolution.
9600
9601 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
9602
9603 PR tree-optimization/89386
9604 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
9605 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
9606 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
9607 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
9608 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
9609 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
9610 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
9611 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
9612 (su, r): Handle the unspecs above.
9613 (bt): New int attribute.
9614 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
9615 * internal-fn.c (first_commutative_argument): Commutativity info for
9616 above.
9617 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
9618 (umulhrs_optab): New optabs.
9619 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
9620 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
9621 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
9622 function.
9623 (vect_vect_recog_func_ptrs): Add it.
9624
9625 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
9626
9627 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
9628 code.
9629
9630 2019-09-11 Nathan Sidwell <nathan@acm.org>
9631
9632 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
9633 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
9634
9635 2019-09-11 Richard Biener <rguenther@suse.de>
9636
9637 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
9638 * lto-wrapper.c (merge_and_complain): Pick up -g.
9639 (append_compiler_options): Likewise.
9640 (run_gcc): Re-instantiate handling -g0 at link-time.
9641 * doc/invoke.texi (flto): Document debug info generation.
9642
9643 2019-09-11 Richard Biener <rguenther@suse.de>
9644
9645 PR tree-optimization/90387
9646 * vr-values.c (vr_values::extract_range_basic): After inlining
9647 simplify non-constant __builtin_constant_p to false.
9648
9649 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
9650
9651 PR rtl-optimization/89795
9652 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
9653 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
9654
9655 2019-09-11 Jakub Jelinek <jakub@redhat.com>
9656
9657 PR tree-optimization/91723
9658 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
9659 instead of pointer equality when checking if argument vectypes are
9660 the same.
9661
9662 PR middle-end/91725
9663 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
9664 of get_nonzero_bits, only call it for integral types.
9665
9666 2019-09-11 Richard Biener <rguenther@suse.de>
9667
9668 Revert
9669 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
9670
9671 * match.pd: Add flag_unsafe_math_optimizations check
9672 before deciding on the widest type in a binary math operation.
9673
9674 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9675
9676 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
9677 and CALL_REALLY_USED_REGISTERS must be defined, and that
9678 CALL_REALLY_USED_REGISTERS is preferred.
9679 * doc/tm.texi: Regenerate.
9680 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
9681 (call_really_used_regs): Likewise.
9682 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
9683 CALL_REALLY_USED_REGISTERS are defined.
9684 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
9685 initial value if defined.
9686 (initial_call_really_used_regs): Delete.
9687 (saved_call_really_used_regs): Likewise.
9688 (CALL_REALLY_USED_REGNO_P): Likewise.
9689 (init_reg_sets): Remove handling of call_really_used_regs.
9690 (save_register_info, restore_register_info, globalize_reg): Likewise.
9691 (init_reg_sets_1): Likewise. Use call_used_regs instead of
9692 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
9693 outside operand_reg_set.
9694 (fix_register): Don't change call_used_regs if
9695 CALL_REALLY_USED_REGISTERS is defined.
9696 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
9697 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
9698 instead of call_really_used_regs.
9699 (csky_conditional_register_usage): Remove the old handling of
9700 call_used_regs and change the handling of call_really_used_regs
9701 to use call_used_regs instead.
9702 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
9703 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
9704 making a register fixed.
9705 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
9706 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
9707 instead of call_really_used_regs.
9708 (m32r_conditional_register_usage): Don't set call_used_regs when
9709 making a register fixed.
9710 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
9711 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
9712 instead of call_really_used_regs.
9713 (mips_interrupt_extra_call_saved_reg_p): Likewise.
9714 (mips_cfun_call_saved_reg_p): Likewise.
9715 (mips_swap_registers): Remove the old handling of call_used_regs
9716 and change the handling of call_really_used_regs to use call_used_regs
9717 instead.
9718 (mips_conditional_register_usage): Likewise.
9719 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
9720 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
9721 instead of call_really_used_regs.
9722 (mn10300_get_live_callee_saved_regs): Likewise.
9723 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
9724 (mn10300_conditional_register_usage): Don't set call_used_regs when
9725 making a register fixed.
9726 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
9727 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
9728 Remove the old handling of call_used_regs and change the handling
9729 of call_really_used_regs to use call_used_regs instead.
9730 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
9731 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
9732 instead of call_really_used_regs.
9733 (s390_register_info_gprtofpr, s390_register_info): Likewise.
9734 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
9735 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
9736 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
9737 (s390_conditional_register_usage): Remove the old handling of
9738 call_used_regs and change the handling of call_really_used_regs
9739 to use call_used_regs instead.
9740 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
9741 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
9742 (sh_fix_range, reg_unused_after): Likewise.
9743 (sh_conditional_register_usage): Remove the old handling of
9744 call_used_regs and change the handling of call_really_used_regs
9745 to use call_used_regs instead.
9746 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
9747 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
9748 call_used_regs when making a register fixed.
9749 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
9750 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
9751 call_used_regs when making a register fixed.
9752 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
9753 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
9754 set call_used_regs when making a register fixed.
9755 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
9756 * config/visium/visium.c (visium_conditional_register_usage): Remove
9757 the old handling of call_used_regs and change the handling of
9758 call_really_used_regs to use call_used_regs instead.
9759
9760 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9761
9762 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
9763 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
9764 * reginfo.c (call_used_regs): New macro.
9765
9766 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9767
9768 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
9769 fixed_regs test.
9770 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
9771 (bpf_expand_epilogue): Likewise.
9772 * config/c6x/c6x.c (c6x_save_reg): Likewise.
9773 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
9774 (ft32_expand_epilogue): Likewise.
9775 * config/i386/i386.c (ix86_save_reg): Likewise.
9776 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
9777 (moxie_expand_epilogue): Likewise.
9778 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
9779 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
9780 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
9781
9782 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9783
9784 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
9785 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
9786 instead of testing call_used_regs directly.
9787 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
9788 (aarch64_components_for_bb): Likewise.
9789 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
9790 * config/arc/arc.c (arc_must_save_register): Likewise.
9791 (arc_epilogue_uses): Likewise.
9792 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
9793 (legitimize_pic_address, callee_saved_reg_p): Likewise.
9794 (arm_compute_save_reg0_reg12_mask): Likewise.
9795 (arm_compute_save_core_reg_mask): Likewise.
9796 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
9797 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
9798 (cmse_nonsecure_entry_clear_before_return): Likewise.
9799 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
9800 (arm_expand_epilogue): Likewise.
9801 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
9802 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
9803 (_reg_unused_after): Likewise.
9804 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
9805 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
9806 (add_to_reg, hwloop_optimize): Likewise.
9807 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
9808 (bpf_expand_epilogue): Likewise.
9809 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
9810 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
9811 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
9812 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
9813 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
9814 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
9815 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
9816 * config/frv/frv.c (frv_stack_info): Likewise.
9817 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
9818 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
9819 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
9820 (move_callee_saved_registers): Likewise.
9821 * config/h8300/h8300.c (byte_reg): Likewise.
9822 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
9823 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
9824 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
9825 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
9826 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
9827 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
9828 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
9829 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
9830 * config/m32c/m32c.c (need_to_save): Likewise.
9831 * config/m68k/m68k.c (m68k_save_reg): Likewise.
9832 * config/mcore/mcore.c (calc_live_regs): Likewise.
9833 * config/microblaze/microblaze.c (microblaze_must_save_register):
9834 Likewise.
9835 * config/mmix/mmix.c (mmix_local_regno): Likewise.
9836 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
9837 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
9838 (mmix_expand_epilogue): Likewise.
9839 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
9840 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
9841 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
9842 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
9843 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
9844 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
9845 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
9846 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
9847 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
9848 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
9849 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
9850 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
9851 * config/rl78/rl78.c (need_to_save): Likewise.
9852 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
9853 (rs6000_stack_info, generate_set_vrsave): Likewise.
9854 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
9855 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
9856 * config/rx/rx.c (rx_get_stack_layout): Likewise.
9857 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
9858 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
9859 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
9860 (save_local_or_in_reg_p): Likewise.
9861 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
9862 (xstormy16_epilogue_uses): Likewise.
9863 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
9864 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
9865 * config/v850/v850.c (compute_register_save_size): Likewise.
9866 * config/vax/vax.c (vax_expand_prologue): Likewise.
9867 * config/visium/visium.c (visium_save_reg_p): Likewise.
9868 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
9869 * cselib.c (cselib_process_insn): Likewise.
9870 * df-scan.c (df_get_entry_block_def_set): Likewise.
9871 * function.c (aggregate_value_p): Likewise.
9872 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
9873 * ira-lives.c (process_bb_node_lives): Likewise.
9874 * ira.c (do_reload): Likewise.
9875 * lra-lives.c (process_bb_lives): Likewise.
9876 * lra-remat.c (lra_remat): Likewise.
9877 * lra.c (lra): Likewise.
9878 * postreload.c (reload_combine_recognize_pattern): Likewise.
9879 (reload_cse_move2add): Likewise.
9880 * recog.c (peep2_find_free_register): Likewise.
9881 * regrename.c (check_new_reg_p): Likewise.
9882 * reload.c (find_equiv_reg): Likewise.
9883 * reload1.c (reload, find_reg): Likewise.
9884 * sel-sched.c (init_hard_regs_data): Likewise.
9885
9886 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9887
9888 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
9889 regs_invalidated_by_call & ~fixed_reg_set instead of
9890 call_used_or_fixed_regs & ~fixed_reg_set.
9891 * config/sh/sh.c (output_stack_adjust): Likewise.
9892
9893 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9894
9895 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
9896 (call_used_reg_set): Delete.
9897 (call_used_or_fixed_regs): New macro.
9898 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
9899 of call_used_reg_set.
9900 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
9901 instead of call_used_regs.
9902 (save_call_clobbered_regs): Likewise.
9903 * cfgcleanup.c (old_insns_match_p): Likewise.
9904 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
9905 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
9906 Likewise.
9907 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
9908 * config/sh/sh.c (output_stack_adjust): Likewise.
9909 * final.c (collect_fn_hard_reg_usage): Likewise.
9910 * ira-build.c (ira_build): Likewise.
9911 * ira-color.c (calculate_saved_nregs): Likewise.
9912 (allocno_reload_assign, calculate_spill_cost): Likewise.
9913 * ira-conflicts.c (ira_build_conflicts): Likewise.
9914 * ira-costs.c (ira_tune_allocno_costs): Likewise.
9915 * ira-lives.c (process_bb_node_lives): Likewise.
9916 * ira.c (setup_reg_renumber): Likewise.
9917 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
9918 * lra-constraints.c (need_for_call_save_p): Likewise.
9919 (need_for_split_p, inherit_in_ebb): Likewise.
9920 * lra-lives.c (process_bb_lives): Likewise.
9921 * lra-remat.c (call_used_input_regno_present_p): Likewise.
9922 * postreload.c (reload_combine): Likewise.
9923 * regrename.c (find_rename_reg): Likewise.
9924 * reload1.c (reload_as_needed): Likewise.
9925 * rtlanal.c (find_all_hard_reg_sets): Likewise.
9926 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9927 * shrink-wrap.c (requires_stack_frame_p): Likewise.
9928
9929 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9930
9931 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
9932 (no_caller_save_reg_set): Delete.
9933 * caller-save.c (init_caller_save): Don't initialize it.
9934 * ira-conflicts.c (ira_build_conflicts): Calculate
9935 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
9936
9937 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9938
9939 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
9940 (target_hard_regs::x_savable_regs): New field.
9941 (call_fixed_reg_set): Delete.
9942 (savable_regs): New macro,
9943 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
9944 (init_reg_sets_1): Likewise. Initialize savable_regs.
9945 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
9946 for all registers. Set savable_regs instead of call_fixed_reg_set.
9947 (setup_save_areas, save_call_clobbered_regs): Replace uses of
9948 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
9949 * config/sh/sh.c (output_stack_adjust): Likewise.
9950
9951 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9952
9953 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
9954 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
9955 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
9956
9957 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
9958
9959 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
9960 * rtlanal.c (get_call_rtx_from): Likewise.
9961 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
9962 than the pattern to get_call_rtx_from.
9963 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
9964 an rtx_insn * instead of an rtx.
9965 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
9966
9967 2019-09-10 Martin Liska <mliska@suse.cz>
9968
9969 * common.opt: Use newly added WarnRemoved.
9970 * config/aarch64/aarch64.opt: Likewise.
9971 * config/arm/arm.opt: Likewise.
9972 * config/i386/i386.opt: Likewise.
9973 * config/ia64/ia64.opt: Likewise.
9974 * config/rs6000/rs6000.opt: Likewise.
9975 * doc/options.texi: Document WarnRemoved properly.
9976 * dwarf2out.c (gen_producer_string): Handle renamed
9977 OPT_SPECIAL_warn_removed.
9978 * lto-opts.c (lto_write_options): Likewise.
9979 * lto-wrapper.c (merge_and_complain): Likewise.
9980 * opts-common.c (decode_cmdline_option): Likewise.
9981 (prune_options): Likewise.
9982 (read_cmdline_option): Likewise.
9983 (control_warning_option): Likewise.
9984 * opts.c (print_filtered_help): Likewise.
9985 * optc-gen.awk: Parse for WarnRemoved and make usage
9986 of Deprecated an error.
9987 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
9988
9989 2019-09-10 Arnaud Charlet <charlet@adacore.com>
9990
9991 * doc/install.texi: Fix syntax for html generation.
9992
9993 2019-09-10 Jakub Jelinek <jakub@redhat.com>
9994
9995 PR middle-end/91680
9996 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
9997 the shift type to type.
9998
9999 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10000
10001 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
10002 FDPIC mode.
10003 (stack_protect_combined_test_insn): Likewise.
10004
10005 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10006 Mickaël Guêné <mickael.guene@st.com>
10007
10008 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
10009 * config/arm/arm.md (FDPIC_REGNUM): New constant.
10010 (load_tp_soft_fdpic): New pattern.
10011 (load_tp_soft): Disable in FDPIC mode.
10012
10013 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10014 Mickaël Guêné <mickael.guene@st.com>
10015
10016 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
10017 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
10018 (arm_call_tls_get_addr): Add FDPIC support.
10019 (legitimize_tls_address): Likewise.
10020 (arm_emit_tls_decoration): Likewise.
10021
10022 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10023 Mickaël Guêné <mickael.guene@st.com>
10024
10025 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
10026 support.
10027 (arm_trampoline_init): Likewise.
10028 (arm_trampoline_adjust_address): Likewise.
10029 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
10030
10031 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10032 Mickaël Guêné <mickael.guene@st.com>
10033
10034 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
10035 (legitimize_pic_address): Enforce binding rules on function
10036 pointers in FDPIC mode.
10037 (arm_assemble_integer): Likewise.
10038
10039 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10040 Mickaël Guêné <mickael.guene@st.com>
10041
10042 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
10043 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
10044 FDPIC.
10045
10046 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10047 Mickaël Guêné <mickael.guene@st.com>
10048
10049 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
10050 field.
10051
10052 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10053 Mickaël Guêné <mickael.guene@st.com>
10054
10055 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
10056 in FDPIC mode.
10057 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
10058 new function.
10059 * config/arm/arm.c (arm_option_override): Define pic register to
10060 FDPIC_REGNUM.
10061 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
10062 have no decl or go through PLT.
10063 (calculate_pic_address_constant): New function.
10064 (legitimize_pic_address): Call calculate_pic_address_constant.
10065 (arm_load_pic_register): Handle TARGET_FDPIC.
10066 (arm_is_segment_info_known): New function.
10067 (arm_pic_static_addr): Add support for FDPIC.
10068 (arm_load_function_descriptor): New function.
10069 (arm_emit_call_insn): Add support for FDPIC.
10070 (arm_assemble_integer): Add support for FDPIC.
10071 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
10072 Define. (FDPIC_REGNUM): New define.
10073 * config/arm/arm.md (call): Add support for FDPIC.
10074 (call_value): Likewise.
10075 (restore_pic_register_after_call): New pattern.
10076 (untyped_call): Disable if FDPIC.
10077 (untyped_return): Likewise.
10078 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
10079
10080 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10081 Mickaël Guêné <mickael.guene@st.com>
10082
10083 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
10084 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
10085 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
10086 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
10087 (CC1_SPEC): Use FDPIC_CC1_SPEC.
10088 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
10089 * config/arm/uclinuxfdpiceabi.h: New file.
10090
10091 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10092
10093 * config.gcc: Handle *-*-uclinuxfdpiceabi.
10094
10095 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10096 Mickaël Guêné <mickael.guene@st.com>
10097
10098 * config/arm/arm.opt: Add -mfdpic option.
10099 * doc/invoke.texi: Add documentation for -mfdpic.
10100
10101 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10102
10103 * expmed.c (extract_bit_field): Update function comment
10104 regarding alt_rtl.
10105 * expr.c (expand_expr_real): Update function comment
10106 regarding alt_rtl.
10107 (expand_misaligned_mem_ref): New helper function.
10108 (expand_expr_real_2): Use expand_misaligned_mem_ref.
10109 Remove duplicate assignment to "base" at case MEM_REF.
10110 Remove a shadowed variable "unsignedp" at case VCE.
10111
10112 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10113
10114 * regset.h (regs_invalidated_by_call_regset): Delete.
10115 (fixed_reg_set_regset): Likewise.
10116 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
10117 (fixed_reg_set_regset, persistent_obstack): Likewise.
10118 (init_reg_sets_1, globalize_reg): Update accordingly.
10119 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
10120 instead of a bitmap.
10121 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
10122 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
10123 instead of regs_invalidated_by_call_regset.
10124 (df_lr_confluence_n, df_md_confluence_n): Likewise.
10125 * df-scan.c (df_scan_start_dump): Likewise.
10126 * dse.c (copy_fixed_regs): Likewise.
10127 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
10128
10129 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10130
10131 * array-traits.h: New file.
10132 * coretypes.h (array_traits, bitmap_view): New types.
10133 * bitmap.h: Include "array-traits.h"
10134 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
10135 (base_bitmap_view, bitmap_view): New classes.
10136 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
10137 * hard-reg-set.h: Include array-traits.h.
10138 (array_traits<HARD_REG_SET>): New struct.
10139 * regset.h (IOR_REG_SET_HRS): New macro.
10140 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
10141 rather than iterating over each hard register.
10142 * sched-deps.c (sched_analyze_insn): Likewise.
10143 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
10144
10145 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10146
10147 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
10148 instead of a HARD_REG_SET *.
10149 * ira-build.c (ior_hard_reg_conflicts): Likewise.
10150 (ira_build): Update call accordingly.
10151 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
10152
10153 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10154
10155 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
10156 (HARD_REG_SET::operator!=): Likewise.
10157 (hard_reg_set_equal_p): Delete.
10158 * cfgcleanup.c (old_insns_match_p): Use == instead of
10159 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
10160 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
10161 (add_allocno_hard_regs_to_forest): Likewise.
10162 (setup_allocno_available_regs_num): Likewise.
10163 * ira.c (setup_pressure_classes): Likewise.
10164 (setup_allocno_and_important_classes): Likewise.
10165 (setup_reg_class_relations): Likewise.
10166 * lra-lives.c (process_bb_lives): Likewise.
10167 * reg-stack.c (change_stack, convert_regs_1): Likewise.
10168
10169 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10170
10171 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
10172 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
10173 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
10174 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
10175 Likewise.
10176 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
10177 * ira.c (setup_reg_renumber): Likewise.
10178 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10179 * regrename.c (regrename_find_superclass): Likewise.
10180 * reload1.c (find_reg): Likewise.
10181
10182 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10183
10184 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
10185 * caller-save.c (setup_save_areas): Use "&~" instead of
10186 AND_COMPL_HARD_REG_SET.
10187 (save_call_clobbered_regs): Likewise.
10188 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
10189 Likewise.
10190 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
10191 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
10192 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
10193 * config/mips/mips.c (mips_class_max_nregs): Likewise.
10194 (mips_conditional_register_usage): Likewise.
10195 * config/sh/sh.c (output_stack_adjust): Likewise.
10196 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
10197 (setup_profitable_hard_regs): Likewise.
10198 (get_conflict_and_start_profitable_regs): Likewise.
10199 * ira-conflicts.c (print_allocno_conflicts): Likewise.
10200 (ira_build_conflicts): Likewise.
10201 * ira-costs.c (restrict_cost_classes): Likewise.
10202 (setup_regno_cost_classes_by_aclass): Likewise.
10203 * ira-lives.c (process_bb_node_lives): Likewise.
10204 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
10205 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
10206 (setup_allocno_and_important_classes, setup_class_translate_array)
10207 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
10208 Likewise.
10209 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10210 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
10211 (process_alt_operands, inherit_in_ebb): Likewise.
10212 * lra-eliminations.c (update_reg_eliminate): Likewise.
10213 * lra-lives.c (process_bb_lives): Likewise.
10214 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
10215 * resource.c (find_dead_or_set_registers): Likewise.
10216 (mark_target_live_regs): Likewise.
10217 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
10218 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10219 (implicit_clobber_conflict_p): Likewise.
10220 * shrink-wrap.c (requires_stack_frame_p): Likewise.
10221 (try_shrink_wrapping): Likewise.
10222
10223 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10224
10225 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
10226 (HARD_REG_SET::operator|=): Likewise.
10227 (IOR_HARD_REG_SET): Delete.
10228 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
10229 IOR_HARD_REG_SET.
10230 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
10231 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
10232 * final.c (collect_fn_hard_reg_usage): Likewise.
10233 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
10234 * ira-build.c (merge_hard_reg_conflicts): Likewise.
10235 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
10236 (propagate_some_info_from_allocno): Likewise.
10237 (copy_info_to_removed_store_destinations): Likewise.
10238 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
10239 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
10240 (fast_allocation): Likewise.
10241 * ira-conflicts.c (ira_build_conflicts): Likewise.
10242 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
10243 (process_bb_node_lives): Likewise.
10244 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
10245 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10246 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
10247 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
10248 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
10249 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
10250 (process_bb_lives): Likewise.
10251 * lra-spills.c (assign_spill_hard_regs): Likewise.
10252 * postreload.c (reload_combine): Likewise.
10253 * reginfo.c (init_reg_sets_1): Likewise.
10254 * regrename.c (merge_overlapping_regs, find_rename_reg)
10255 (merge_chains): Likewise.
10256 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
10257 (find_reload_regs, finish_spills, choose_reload_regs_init)
10258 (emit_reload_insns): Likewise.
10259 * reorg.c (redundant_insn): Likewise.
10260 * resource.c (find_dead_or_set_registers, mark_set_resources)
10261 (mark_target_live_regs): Likewise.
10262 * rtlanal.c (find_all_hard_reg_sets): Likewise.
10263 * sched-deps.c (sched_analyze_insn): Likewise.
10264 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10265 (find_best_reg_for_expr): Likewise.
10266 * shrink-wrap.c (try_shrink_wrapping): Likewise.
10267
10268 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10269
10270 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
10271 (HARD_REG_SET::operator&): Likewise.
10272 (AND_HARD_REG_SET): Delete.
10273 * caller-save.c (setup_save_areas): Use "&" instead of
10274 AND_HARD_REG_SET.
10275 (save_call_clobbered_regs): Likewise.
10276 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
10277 * config/m32c/m32c.c (reduce_class): Likewise.
10278 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
10279 * final.c (get_call_reg_set_usage): Likewise.
10280 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
10281 (setup_left_conflict_sizes_p): Likewise.
10282 * ira-conflicts.c (print_allocno_conflicts): Likewise.
10283 (ira_build_conflicts): Likewise.
10284 * ira-costs.c (restrict_cost_classes): Likewise.
10285 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
10286 (setup_reg_class_relations): Likewise.
10287 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
10288 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
10289 * resource.c (find_dead_or_set_registers): Likewise.
10290 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10291
10292 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10293
10294 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
10295 (COMPL_HARD_REG_SET): Delete.
10296 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
10297 of COMPL_HARD_REG_SET.
10298 (try_rename_operands): Likewise.
10299 * config/sh/sh.c (push_regs): Likewise.
10300 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10301 * lra-constraints.c (contains_reg_p): Likewise.
10302 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
10303
10304 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10305
10306 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
10307 * caller-save.c (save_call_clobbered_regs): Use assignment instead
10308 of COPY_HARD_REG_SET.
10309 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
10310 (epiphany_conditional_register_usage): Likewise.
10311 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
10312 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
10313 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
10314 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
10315 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
10316 * config/mips/mips.c (mips_class_max_nregs): Likewise.
10317 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
10318 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
10319 * config/sh/sh.c (output_stack_adjust): Likewise.
10320 * final.c (collect_fn_hard_reg_usage): Likewise.
10321 (get_call_reg_set_usage): Likewise.
10322 * ira-build.c (ira_create_object, remove_low_level_allocnos)
10323 (ira_flattening): Likewise.
10324 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
10325 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
10326 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
10327 (ira_reassign_pseudos): Likewise.
10328 * ira-conflicts.c (print_allocno_conflicts): Likewise.
10329 (ira_build_conflicts): Likewise.
10330 * ira-costs.c (restrict_cost_classes): Likewise.
10331 (setup_regno_cost_classes_by_aclass): Likewise.
10332 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
10333 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
10334 (setup_stack_reg_pressure_class, setup_pressure_classes)
10335 (setup_allocno_and_important_classes, setup_class_translate_array)
10336 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
10337 (ira_setup_eliminable_regset): Likewise.
10338 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10339 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
10340 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
10341 (process_alt_operands, inherit_in_ebb): Likewise.
10342 * lra-lives.c (process_bb_lives): Likewise.
10343 * lra-spills.c (assign_spill_hard_regs): Likewise.
10344 * lra.c (lra): Likewise.
10345 * mode-switching.c (new_seginfo): Likewise.
10346 * postreload.c (reload_combine): Likewise.
10347 * reg-stack.c (straighten_stack): Likewise.
10348 * reginfo.c (save_register_info, restore_register_info): Likewise.
10349 (init_reg_sets_1, record_subregs_of_mode): Likewise
10350 * regrename.c (create_new_chain, rename_chains): Likewise.
10351 * reload1.c (order_regs_for_reload, find_reg): Likewise.
10352 (find_reload_regs): Likewise.
10353 * resource.c (find_dead_or_set_registers): Likewise.
10354 (mark_target_live_regs): Likewise.
10355 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10356
10357 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10358
10359 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
10360 (note_pattern_stores): Declare.
10361 (note_stores): Take an rtx_insn *.
10362 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
10363 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
10364 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
10365 (note_stores): Take an rtx_insn * as argument and process
10366 CALL_INSN_FUNCTION_USAGE. Rename old function to...
10367 (note_pattern_stores): ...this.
10368 (find_first_parameter_load): Pass the insn rather than
10369 its pattern to note_stores.
10370 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
10371 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
10372 (insert_one_insn): Likewise.
10373 * combine.c (combine_instructions): Likewise.
10374 (likely_spilled_retval_p): Likewise.
10375 (try_combine): Use note_pattern_stores instead of note_stores.
10376 (record_dead_and_set_regs): Pass the insn rather than its pattern
10377 to note_stores.
10378 (reg_dead_at_p): Likewise.
10379 * config/bfin/bfin.c (workaround_speculation): Likewise.
10380 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
10381 rather than an rtx.
10382 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
10383 instead of note_stores.
10384 (frv_optimize_membar_local): Pass the insn rather than its pattern
10385 to note_stores.
10386 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
10387 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
10388 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
10389 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
10390 (mips_reorg_process_insns): Likewise.
10391 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
10392 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
10393 rather than rtxes.
10394 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
10395 its pattern to note_stores.
10396 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
10397 of note_stores.
10398 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
10399 the insn to note_stores.
10400 (prescan_insns_for_dce): Update call accordingly.
10401 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
10402 to note_stores.
10403 * df-problems.c (can_move_insns_across): Likewise.
10404 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
10405 * function.c (assign_parm_setup_reg): Likewise.
10406 * gcse-common.c (record_last_mem_set_info_common): Likewise.
10407 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
10408 (single_set_gcse): Likewise.
10409 * ira.c (validate_equiv_mem): Likewise.
10410 (update_equiv_regs): Use note_pattern_stores rather than note_stores
10411 for no_equiv.
10412 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
10413 pattern to note_stores.
10414 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
10415 * loop-iv.c (simplify_using_initial_values): Likewise.
10416 * mode-switching.c (optimize_mode_switching): Likewise.
10417 * optabs.c (emit_libcall_block_1): Likewise.
10418 (expand_atomic_compare_and_swap): Likewise.
10419 * postreload-gcse.c (load_killed_in_block_p): Likewise.
10420 (record_opr_changes): Likewise. Remove explicit handling of
10421 CALL_INSN_FUNCTION_USAGE.
10422 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
10423 * regcprop.c (kill_clobbered_values): Likewise.
10424 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
10425 to note_stores.
10426 * regrename.c (build_def_use): Likewise.
10427 * reload1.c (reload): Use note_pattern_stores instead of note_stores
10428 for mark_not_eliminable.
10429 (reload_as_needed): Pass the insn rather than its pattern
10430 to note_stores.
10431 (emit_output_reload_insns): Likewise.
10432 * resource.c (mark_target_live_regs): Likewise.
10433 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
10434 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
10435 instead of note_stores.
10436 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
10437 its pattern to note_stores.
10438 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
10439 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
10440
10441 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10442
10443 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
10444 than a #define. Use a structure rather than an array as the
10445 fallback definition. Remove special cases for low array sizes.
10446 (const_hard_reg_set): New typedef.
10447 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
10448 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
10449 (hard_reg_set_empty_p): Likewise.
10450 (SET_HARD_REG_BIT): Use a function rather than a macro to
10451 handle the case in which HARD_REG_SET is a structure.
10452 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
10453 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
10454 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
10455 (IOR_COMPL_HARD_REG_SET): Likewise.
10456 (hard_reg_set_iterator::pset): Constify the pointer target.
10457 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
10458 of a "const HARD_REG_SET". Update the handling of non-integer
10459 HARD_REG_SETs.
10460 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
10461 * reload.h: Likewise.
10462 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
10463 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
10464 of a "const HARD_REG_SET".
10465 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
10466 (range_in_hard_reg_set_p): Likewise.
10467 * ira-costs.c (restrict_cost_classes): Likewise.
10468 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
10469 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10470 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
10471 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
10472 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
10473 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
10474 take an unsigned int and open-code the HARD_REG_SET operations.
10475
10476 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10477
10478 * Makefile.in (OBJS): Remove bt-load.o.
10479 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
10480 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
10481 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
10482 document that the option no longer does anything.
10483 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
10484 * target.def (branch_target_register_class): Delete.
10485 (branch_target_register_callee_saved): Likewise.
10486 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
10487 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
10488 * doc/tm.texi: Regenerate.
10489 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
10490 (make_pass_branch_target_load_optimize2): Likewise.
10491 * passes.def (pass_branch_target_load_optimize1): Likewise.
10492 (pass_branch_target_load_optimize2): Likewise.
10493 * targhooks.h (default_branch_target_register_class): Likewise.
10494 * targhooks.c (default_branch_target_register_class): Likewise.
10495 * opt-suggestions.c (test_completion_valid_options): Remove
10496 -fbtr-bb-exclusive from the list of test options.
10497 * bt-load.c: Remove.
10498
10499 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
10500
10501 * match.pd: Add flag_unsafe_math_optimizations check
10502 before deciding on the widest type in a binary math operation.
10503
10504 2019-09-09 Martin Liska <mliska@suse.cz>
10505
10506 * config/i386/i386.opt: Update comment of removed
10507 options that are preserved only for backward
10508 compatibility.
10509
10510 2019-09-09 Jakub Jelinek <jakub@redhat.com>
10511
10512 PR target/87853
10513 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
10514 instead of __v16qs.
10515
10516 PR target/91704
10517 * config/i386/avxintrin.h (__v32qs): New typedef.
10518 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
10519 instead of __v32qi.
10520
10521 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
10522
10523 * doc/invoke.texi (Option Summary): Cover eBPF.
10524 (eBPF Options): New section.
10525 * doc/extend.texi (BPF Built-in Functions): Likewise.
10526 (BPF Kernel Helpers): Likewise.
10527
10528 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
10529
10530 * config.gcc: Support for bpf-*-* targets.
10531 * common/config/bpf/bpf-common.c: New file.
10532 * config/bpf/t-bpf: Likewise.
10533 * config/bpf/predicates.md: Likewise.
10534 * config/bpf/constraints.md: Likewise.
10535 * config/bpf/bpf.opt: Likewise.
10536 * config/bpf/bpf.md: Likewise.
10537 * config/bpf/bpf.h: Likewise.
10538 * config/bpf/bpf.c: Likewise.
10539 * config/bpf/bpf-protos.h: Likewise.
10540 * config/bpf/bpf-opts.h: Likewise.
10541 * config/bpf/bpf-helpers.h: Likewise.
10542 * config/bpf/bpf-helpers.def: Likewise.
10543
10544 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
10545
10546 * doc/sourcebuild.texi (Effective-Target Keywords): Document
10547 indirect_calls.
10548
10549 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
10550
10551 * opt-functions.awk (integer_range_info): Make sure values are in
10552 numeric context before operating with them.
10553
10554 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
10555
10556 * genemit.c (gen_split): Print the filename and line number where the
10557 splitter (or peephole2) was defined, to the dump file.
10558
10559 2019-09-07 Jakub Jelinek <jakub@redhat.com>
10560
10561 PR tree-optimization/91665
10562 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
10563 incompatible with the type of PHI result.
10564
10565 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
10566
10567 PR target/91684
10568 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
10569 gen_unaligned_storedi for 4-byte aligned addresses.
10570
10571 2019-09-06 Jim Wilson <jimw@sifive.com>
10572
10573 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
10574 change.
10575
10576 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
10577
10578 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
10579
10580 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
10581
10582 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
10583 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
10584
10585 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
10586
10587 PR target/91654
10588 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
10589 cost of SSE->integer and integer->SSE moves from 2 to 6.
10590 (core_cost): Ditto.
10591
10592 2019-09-06 Jakub Jelinek <jakub@redhat.com>
10593
10594 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
10595 before testing TYPE_TRANSPARENT_AGGR.
10596 * calls.c (initialize_argument_information, load_register_parameters):
10597 Likewise.
10598
10599 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
10600
10601 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
10602 high regs.
10603 (cmp_ior): Likewise.
10604
10605 2019-09-06 Martin Liska <mliska@suse.cz>
10606
10607 * doc/match-and-simplify.texi: Separate tuples with ;.
10608
10609 2019-09-06 Martin Liska <mliska@suse.cz>
10610
10611 PR c++/91125
10612 * Makefile.in: Remove tlink.o.
10613 * collect2.c (do_link): New function isolated
10614 from do_tlink.
10615 (main): Use.
10616 * collect2.h (do_tlink): Remove declaration of do_tlink.
10617 * doc/extend.texi: Remove documentation of -frepo.
10618 * doc/invoke.texi: Likewise.
10619 * doc/sourcebuild.texi: Remove cleanup-repo-files.
10620 * tlink.c: Remove.
10621
10622 2019-09-05 Jakub Jelinek <jakub@redhat.com>
10623 Jim Wilson <jimw@sifive.com>
10624
10625 PR target/91635
10626 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
10627 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
10628 paradoxical_subreg_p (operands[0]).
10629 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
10630 use as intermediate value.
10631
10632 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
10633
10634 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
10635 (sync_compare_and_swap<mode>_insn): Likewise.
10636
10637 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
10638
10639 PR middle-end/91615
10640 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
10641 without movmisalign optab.
10642
10643 2019-09-05 Jakub Jelinek <jakub@redhat.com>
10644
10645 PR middle-end/91001
10646 PR middle-end/91105
10647 PR middle-end/91106
10648 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
10649 types, use type of their first field instead of type of
10650 args[i].tree_value.
10651
10652 2019-09-05 Richard Biener <rguenther@suse.de>
10653
10654 PR rtl-optimization/91656
10655 * postreload-gcse.c (record_last_mem_set_info): Revert addition
10656 of early out.
10657
10658 2019-09-05 Richard Biener <rguenther@suse.de>
10659
10660 PR middle-end/90501
10661 * tree-inline.c (declare_return_variable): Mark the return
10662 slot as addressable after building an address of it.
10663
10664 2019-09-05 Arnaud Charlet <charlet@adacore.com>
10665
10666 * doc/install.texi: Update and clarify requirements to build GNAT.
10667
10668 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
10669
10670 PR middle-end/91577
10671 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
10672 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
10673 call to be in memory.
10674 (pass_expand::execute): Call discover_nonconstant_array_refs before
10675 setting currently_expanding_to_rtl.
10676
10677 2019-09-04 Caroline Tice <cmtice@google.com>
10678
10679 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
10680 specified together.
10681
10682 2019-09-04 Marek Polacek <polacek@redhat.com>
10683
10684 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
10685
10686 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
10687
10688 PR target/32413
10689 * config/i386/i386.c (inline_secondary_memory_needed): Return true
10690 for QI and HImode moves between SSE and general registers.
10691
10692 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10693
10694 PR c/78736
10695 * doc/invoke.texi: Document -Wenum-conversion.
10696
10697 2019-09-04 Richard Biener <rguenther@suse.de>
10698
10699 PR rtl-optimization/36262
10700 * postreload-gcse.c: Include intl.h and gcse.h.
10701 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
10702 to avoid linear list walk.
10703 (record_last_mem_set_info): Gate off if not computing transparentness.
10704 (get_bb_avail_insn): If transparentness isn't computed give up
10705 early.
10706 (gcse_after_reload_main): Skip compute_transp and extended PRE
10707 if gcse_or_cprop_is_too_expensive says so.
10708
10709 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10710
10711 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
10712 noinit section.
10713 (msp430_select_section): Handle decls with the "noinit" attribute with
10714 default_elf_select_section.
10715 Handle SECCAT_RODATA_MERGE_* section types with
10716 default_elf_select_section.
10717 Add comments about handling of unsupported section types.
10718 (msp430_section_type_flags): Remove handling of the noinit section.
10719
10720 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10721
10722 * config/msp430/msp430.c (msp430_attr): Remove warnings about
10723 conflicting msp430-specific attributes.
10724 (msp430_section_attr): Likewise.
10725 Add warnings about conflicts with generic "noinit" and "section"
10726 attributes.
10727 Fix grammar in -mlarge error message.
10728 (msp430_data_attr): Rename to msp430_persist_attr.
10729 Add warnings about conflicts with generic "noinit" and "section"
10730 attributes.
10731 Add warning for when variable is not initialized.
10732 Chain conditionals which prevent the attribute being added.
10733 (ATTR_EXCL): New helper.
10734 (attr_reent_exclusions): New exclusion table.
10735 (attr_naked_exclusions): Likewise.
10736 (attr_crit_exclusions): Likewise.
10737 (attr_lower_exclusions): Likewise.
10738 (attr_upper_exclusions): Likewise.
10739 (attr_either_exclusions): Likewise.
10740 (attr_persist_exclusions): Likewise.
10741 (msp430_attribute_table): Update with exclusion rules.
10742 (msp430_output_aligned_decl_common): Don't output common symbol if decl
10743 has a section.
10744
10745 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10746
10747 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
10748 (msp430_handle_generic_attribute): New function.
10749 * doc/tm.texi: Regenerate.
10750 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
10751 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
10752 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
10753 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
10754
10755 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
10756
10757 PR tree-optimization/91504
10758 * match.pd: Add ((~a & b) ^a) --> (a | b).
10759
10760 2019-09-03 Jakub Jelinek <jakub@redhat.com>
10761
10762 PR target/91604
10763 * config/i386/i386-expand.c (split_double_mode): If there is more than
10764 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
10765 already split matching MEM operand instead of calling adjust_address
10766 again.
10767
10768 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
10769
10770 * config.gcc: Obsolete spu target. Remove references to spu.
10771 * configure.ac: Remove references to spu.
10772 * configure: Regenerate.
10773 * config/spu/: Remove directory.
10774 * common/config/spu/: Remove directory.
10775
10776 * doc/extend.texi: Remove references to spu.
10777 * doc/invoke.texi: Likewise.
10778 * doc/md.texi: Likewise.
10779 * doc/sourcebuild.texi: Likewise.
10780
10781 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10782
10783 PR middle-end/91603
10784 PR middle-end/91612
10785 PR middle-end/91613
10786 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
10787 and SSA_NAME referring to CONSTANT_P correctly.
10788
10789 2019-09-03 Richard Biener <rguenther@suse.de>
10790
10791 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
10792 (vn_nary_op_insert): Likewise.
10793 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
10794 (vn_nary_op_lookup): Likewise.
10795 (vn_nary_op_insert): Likewise.
10796
10797 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
10798
10799 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
10800 (*op0, 1) instead of XEXP (*op1, 0).
10801
10802 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10803
10804 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
10805 (aarch64_fjcvtzs): New define_insn.
10806 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
10807 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
10808 Add AARCH64_JSCVT.
10809 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
10810 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
10811 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
10812 __ARM_FEATURE_JCVT where appropriate.
10813 * config/aarch64/arm_acle.h (__jcvt): Define.
10814
10815 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10816
10817 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
10818 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
10819 (aarch64_<frintnzs_op><mode>): New define_insn.
10820 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
10821 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
10822 __ARM_FEATURE_FRINT when appropriate.
10823 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
10824 frint32x, frint64z, frint64x.
10825 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
10826 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
10827 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
10828 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
10829 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
10830 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
10831 * config/aarch64/iterators.md (VSFDF): Define.
10832 (FRINTNZX): Likewise.
10833 (frintnzs_op): Likewise.
10834
10835 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
10836
10837 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
10838 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
10839 Cortex-A34.
10840 * config/aarch64/aarch64-tune.md: Regenerated.
10841 * doc/invoke.texi: Document the new processors.
10842
10843 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10844
10845 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
10846 string.
10847 (ssbs): Likewise.
10848 (sve2): Likewise.
10849 (sve2-sm4): Likewise.
10850 (sveaes): Likewise.
10851 (svesha3): Likewise.
10852 (svebitperm): Likewise.
10853
10854 2019-09-03 Jakub Jelinek <jakub@redhat.com>
10855 Richard Biener <rguenther@suse.de>
10856
10857 PR tree-optimization/91597
10858 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
10859 BIT_AND_EXPR optimization for pointers, even if both operand
10860 ranges don't include NULL, the result can be NULL.
10861
10862 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
10863
10864 PR middle-end/91605
10865 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
10866 (non_mem_decl_p): ...this.
10867 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
10868 (expand_assignment): Call mem_ref_referes_to_non_mem_p
10869 unconditionally as before.
10870
10871 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
10872
10873 PR target/91323
10874 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
10875 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
10876 * tree.def (LTGT_EXPR): Likewise.
10877 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
10878
10879 2019-09-02 Jakub Jelinek <jakub@redhat.com>
10880
10881 PR go/91617
10882 * fold-const.c (range_check_type): For enumeral and boolean
10883 type, pass 1 to type_for_size langhook instead of
10884 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
10885 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
10886 (build_range_check): Don't call unsigned_type_for for pointer types.
10887 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
10888 range_check_type result.
10889
10890 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
10891
10892 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
10893 (replace_ref): Do not replace a chain of only two candidates which are
10894 valid memory references.
10895
10896 2019-09-02 Martin Liska <mliska@suse.cz>
10897
10898 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
10899 Bail out when we'll end up with the same number of clusters as
10900 at the beginning.
10901 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
10902 (jump_table_cluster::can_be_handled): Remove the guard
10903 as it's already handled in ::is_enabled. Allocate output
10904 after early bail out.
10905
10906 2019-09-02 Martin Liska <mliska@suse.cz>
10907
10908 PR gcov-profile/91601
10909 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
10910 (path_contains_zero_or_negative_cycle_arc): ... this and handle
10911 also negative edges.
10912 (circuit): Handle also negative edges as they can happen
10913 in some situations.
10914
10915 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
10916
10917 PR target/91472
10918 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
10919 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
10920 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
10921
10922 2019-09-01 Jakub Jelinek <jakub@redhat.com>
10923
10924 PR middle-end/91623
10925 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
10926 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
10927 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
10928 zero vector.
10929
10930 PR lto/91572
10931 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
10932 GIMPLE_ASM TREE_LIST operands.
10933
10934 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
10935
10936 * doc/generic.texi (Unary and Binary Expressions): Mark up
10937 an instance of TYPE_MIN.
10938
10939 2019-08-31 Stafford Horne <shorne@gmail.com>
10940
10941 * config/or1k/constraints.md (t): New constraint.
10942 * config/or1k/or1k.h (GOT_REGS): New register class.
10943 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
10944
10945 2019-08-30 Jim Wilson <jimw@sifive.com>
10946
10947 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
10948 and -fpic and -mplt then disable -msave-restore and warn.
10949
10950 2019-08-30 Martin Sebor <msebor@redhat.com>
10951
10952 PR middle-end/91599
10953 * tree-ssa-strlen.c (handle_store): Use a fallback location if
10954 the statement doesn't have one.
10955 * gimple-pretty-print.c (percent_G_format): Same.
10956
10957 PR middle-end/91584
10958 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
10959 before using them to validate MEM_REF offset.
10960
10961 2019-08-30 Marek Polacek <polacek@redhat.com>
10962
10963 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
10964
10965 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
10966
10967 * config/arm/arm.md (unaligned_loaddi,
10968 unaligned_storedi): New unspec insn patterns.
10969 * config/arm/neon.md (unaligned_storev8qi): Likewise.
10970 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
10971 and unaligned_storedi for 4-byte aligned memory.
10972 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
10973 4-byte aligned memory.
10974
10975 2019-08-30 Martin Jambor <mjambor@suse.cz>
10976
10977 tree-optimization/91579
10978 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
10979 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
10980 appropriate.
10981 (arg_needs_copy_p): Removed.
10982 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
10983 arg_needs_copy_p.
10984 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
10985
10986 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
10987
10988 * config/i386/i386-features.c
10989 (general_scalar_chain::compute_convert_gain):
10990 Correct cost for double-word shifts.
10991 (general_scalar_to_vector_candidate_p): Reject count operands
10992 greater or equal to mode bitsize.
10993
10994 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
10995
10996 * config/i386/i386.c (inline_secondary_memory_needed): Return true
10997 for moves between SSE and non-general registers and between
10998 mask and non-general registers.
10999 (ix86_register_move_cost): Remove stalled comment.
11000
11001 2019-08-29 Richard Biener <rguenther@suse.de>
11002
11003 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
11004 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
11005
11006 2019-08-29 Richard Biener <rguenther@suse.de>
11007
11008 PR bootstrap/91580
11009 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
11010 Do not emit scalar copies for debug-insns, instead replace
11011 their uses with the reg copy used in the chain or reset them
11012 if there is a reaching definition outside of the chain as well.
11013
11014 2019-08-29 Jakub Jelinek <jakub@redhat.com>
11015
11016 PR target/91560
11017 * config/i386/i386-expand.c (expand_vec_perm_movs,
11018 expand_vec_perm_blend, expand_vec_perm_vpermil,
11019 expand_vec_perm_pshufb, expand_vec_perm_1,
11020 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
11021 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
11022 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
11023 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
11024 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
11025 comments - replace ix86_expand_vec_perm_builtin_1 with
11026 ix86_expand_vec_perm_const_1.
11027 (expand_vec_perm2_vperm2f128_vblend): New function.
11028 (ix86_expand_vec_perm_const_1): New forward declaration. Call
11029 expand_vec_perm2_vperm2f128_vblend as last resort.
11030 (canonicalize_perm): Formatting fix.
11031
11032 PR tree-optimization/91351
11033 * tree-cfg.c (generate_range_test): Use range_check_type instead of
11034 unsigned_type_for.
11035 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
11036 range_check_type returns NULL.
11037 * tree-switch-conversion.c (switch_conversion::build_one_array):
11038 Use range_check_type instead of unsigned_type_for, don't perform
11039 linear opt if it returns NULL.
11040 (bit_test_cluster::find_bit_tests): Formatting fix.
11041 (bit_test_cluster::emit): Use range_check_type instead of
11042 unsigned_type_for.
11043 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
11044 returns NULL.
11045
11046 2019-08-29 Richard Biener <rguenther@suse.de>
11047
11048 PR tree-optimization/91568
11049 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
11050 (vect_update_max_nunits): Add overload for poly_uint64.
11051 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
11052 (vect_build_slp_tree): Record max_nunits into the subtree
11053 and merge it upwards.
11054 (vect_print_slp_tree): Print max_nunits.
11055
11056 2019-08-28 Marek Polacek <polacek@redhat.com>
11057
11058 Implement P1152R4: Deprecating some uses of volatile.
11059 PR c++/91361
11060 * doc/invoke.texi: Document -Wvolatile.
11061
11062 2019-08-28 Marek Polacek <polacek@redhat.com>
11063
11064 PR c++/91360 - Implement C++20 P1143R2: constinit.
11065 * doc/invoke.texi: Document -Wc++20-compat.
11066
11067 2019-08-28 Martin Sebor <msebor@redhat.com>
11068
11069 PR tree-optimization/91457
11070 * builtins.c (component_size): New function.
11071 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
11072 * builtins.h (compute_objsize): Add argument.
11073 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
11074 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
11075 (vrp_prop::check_mem_ref): Same.
11076 (vrp_prop::search_for_addr_array): Set no-warning bit.
11077 (check_array_bounds): Same.
11078
11079 2019-08-28 Martin Sebor <msebor@redhat.com>
11080
11081 PR driver/80545
11082 * opts-common.c (option_enabled): Correct checking for language
11083 options.
11084
11085 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
11086
11087 * config/i386/i386.c (ix86_register_move_cost): Do not
11088 limit the cost of moves to/from XMM register to minimum 8.
11089
11090 2019-08-28 Martin Jambor <mjambor@suse.cz>
11091
11092 PR ipa/91468
11093 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
11094 checking assert a normal assert to test it really is redundant.
11095 * ipa-prop.c (compute_complex_assign_jump_func): Removed
11096 redundant test.
11097 (update_jump_functions_after_inlining): Removed combining unary
11098 arithmetic operations with an ancestor jump function.
11099 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
11100 instead of t.
11101
11102 2019-08-28 Richard Biener <rguenther@suse.de>
11103
11104 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
11105 add the MD problem.
11106
11107 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
11108 Richard Biener <rguenther@suse.de>
11109
11110 * expr.c (expand_assignment): Handle misaligned DECLs.
11111 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
11112 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
11113 too.
11114 (assign_parm_setup_stack): Allocate properly aligned stack slots.
11115 * varasm.c (build_constant_desc): Align constants of misaligned types.
11116 * config/arm/predicates.md (aligned_operand): New predicate.
11117 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
11118 aligned_operand to check restrictions on memory addresses.
11119 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
11120 * config/arm/vec-common.md (mov<VALL>): Likewise.
11121
11122 2019-08-28 Jakub Jelinek <jakub@redhat.com>
11123
11124 PR libgomp/91530
11125 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
11126 V_128 iterator instead of VI_128.
11127
11128 2019-08-28 Martin Liska <mliska@suse.cz>
11129
11130 PR tree-optimization/90970
11131 * builtins.c (check_access): Remove assignment to maxread
11132 as it hasn't been used since when it was introduced in r255755.
11133
11134 2019-08-27 Martin Sebor <msebor@redhat.com>
11135
11136 PR tree-optimization/91567
11137 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
11138 of unknown strings.
11139 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
11140 to PTRDIFF_MAX - 2.
11141
11142 2019-08-27 Jeff Law <law@redhat.com>
11143
11144 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
11145 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
11146
11147 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
11148
11149 PR target/91528
11150 * config/i386/i386-features.c (convert_scalars_to_vector):
11151 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
11152 crtl->stack_realign_processed. Update crtl->drap_reg by calling
11153 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
11154 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
11155
11156 2019-08-27 Richard Biener <rguenther@suse.de>
11157
11158 * config/i386/i386-features.h
11159 (general_scalar_chain::~general_scalar_chain): Add.
11160 (general_scalar_chain::insns_conv): New bitmap.
11161 (general_scalar_chain::n_sse_to_integer): New.
11162 (general_scalar_chain::n_integer_to_sse): Likewise.
11163 (general_scalar_chain::make_vector_copies): Adjust signature.
11164 * config/i386/i386-features.c
11165 (general_scalar_chain::general_scalar_chain): Outline,
11166 initialize new members.
11167 (general_scalar_chain::~general_scalar_chain): New.
11168 (general_scalar_chain::mark_dual_mode_def): Record insns
11169 we need to insert conversions at and count them.
11170 (general_scalar_chain::compute_convert_gain): Account
11171 for conversion instructions at chain boundary.
11172 (general_scalar_chain::make_vector_copies): Generate a single
11173 copy for a def by a specific insn.
11174 (general_scalar_chain::convert_registers): First populate
11175 defs_map, then make copies at out-of chain insns.
11176
11177 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
11178
11179 * config/arm/arm.md (stack_protect_set_insn): Add security-related
11180 comment.
11181 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
11182
11183 2019-08-27 Martin Liska <mliska@suse.cz>
11184
11185 * cgraph.c (cgraph_node::remove): Remove dead assignment before
11186 loop.
11187 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
11188 Enclose in anonymous namespace.
11189 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
11190 hard_register initialization in braces.
11191 * tree-vrp.h (value_range_base::supports_type_p): Return false
11192 for function with boolean return type.
11193
11194 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
11195
11196 * config/i386/i386.c (emit_i387_cw_initialization)
11197 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
11198
11199 2019-08-26 Martin Sebor <msebor@redhat.com>
11200
11201 PR c++/83431
11202 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
11203 (sprintf_dom_walker): Remove class.
11204 (get_int_range): Make argument const.
11205 (directive::fmtfunc, directive::set_precision): Same.
11206 (format_none): Same.
11207 (build_intmax_type_nodes): Same.
11208 (adjust_range_for_overflow): Same.
11209 (format_floating): Same.
11210 (format_character): Same.
11211 (format_string): Same.
11212 (format_plain): Same.
11213 (get_int_range): Cast away constness.
11214 (format_integer): Same.
11215 (get_string_length): Call get_range_strlen_dynamic. Handle
11216 null lendata.maxbound.
11217 (should_warn_p): Adjust argument scope qualifier.
11218 (maybe_warn): Same.
11219 (format_directive): Same.
11220 (parse_directive): Same.
11221 (is_call_safe): Same.
11222 (try_substitute_return_value): Same.
11223 (sprintf_dom_walker::handle_printf_call): Rename...
11224 (handle_printf_call): ...to this. Initialize target to host charmap
11225 here instead of in pass_sprintf_length::execute.
11226 (struct call_info): Make global.
11227 (sprintf_dom_walker::compute_format_length): Make global.
11228 (sprintf_dom_walker::handle_gimple_call): Same.
11229 * passes.def (pass_sprintf_length): Replace with pass_strlen.
11230 * print-rtl.c (print_pattern): Reduce the number of spaces to
11231 avoid -Wformat-truncation.
11232 * tree-pass.h (make_pass_warn_printf): New function.
11233 * tree-ssa-strlen.c (strlen_optimize): New variable.
11234 (get_string_length): Add comments.
11235 (get_range_strlen_dynamic): New function.
11236 (check_and_optimize_call): New function.
11237 (handle_integral_assign): New function.
11238 (strlen_check_and_optimize_stmt): Factor code out into
11239 strlen_check_and_optimize_call and handle_integral_assign.
11240 (strlen_dom_walker::evrp): New member.
11241 (strlen_dom_walker::before_dom_children): Use evrp member.
11242 (strlen_dom_walker::after_dom_children): Use evrp member.
11243 (printf_strlen_execute): New function.
11244 (pass_strlen::gate): Update to handle printf calls.
11245 (dump_strlen_info): New function.
11246 (pass_data_warn_printf): New variable.
11247 (pass_warn_printf): New class.
11248 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
11249 (handle_printf_call): Same.
11250 * tree-vrp.c (value_range_base::type): Adjust assertion.
11251 * vr-values.c (vr_values::update_value_range): Use type of the first
11252 argument rather than the second.
11253
11254 2019-08-26 Richard Biener <rguenther@suse.de>
11255
11256 * config/i386/i386-features.c (general_remove_non_convertible_regs):
11257 Remove.
11258 (convert_scalars_to_vector): Do not call it.
11259
11260 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
11261 Uros Bizjak <ubizjak@gmail.com>
11262
11263 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
11264 CASE_MATHFN_FLOATN for roundeven.
11265 * config/i386/i386.c (ix86_i387_mode_needed): Add case
11266 I387_ROUNDEVEN.
11267 (ix86_mode_needed): Likewise.
11268 (ix86_mode_after): Likewise.
11269 (ix86_mode_entry): Likewise.
11270 (ix86_mode_exit): Likewise.
11271 (ix86_emit_mode_set): Likewise.
11272 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
11273 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
11274 (ix86_entity): Add I387_ROUNDEVEN.
11275 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
11276 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
11277 (define_int_iterator): Likewise.
11278 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
11279 (define_constant): Define ROUND_ROUNDEVEN mode.
11280 (define_attr): Add roundeven mode for i387_cw.
11281 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
11282 * internal-fn.def (ROUNDEVEN): New builtin function.
11283 * optabs.def (roundeven_optab): New optab.
11284
11285 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
11286
11287 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
11288 for ROUNDEVEN.
11289 * builtins.def: Added function definitions for roundeven function
11290 variants.
11291 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
11292 function call. Adjust condition for floor, ceil, trunc and round.
11293 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
11294 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
11295 (integer_valued_real_call_p): Added case for roundeven function.
11296 * real.c (is_even): New function. Returns true if real number is even,
11297 otherwise returns false.
11298 (is_halfway_below): New function. Returns true if real number is
11299 halfway between two integers, else return false.
11300 (real_roundeven): New function. Round real number to nearest integer,
11301 rounding halfway cases towards even.
11302 * real.h (real_value): Added descriptive comments. Added function
11303 declaration for roundeven function.
11304 * doc/extend.texi (Other Builtins): List roundeven variants among
11305 functions which can be handled as builtins.
11306
11307 2019-08-26 Richard Biener <rguenther@suse.de>
11308
11309 PR target/91522
11310 PR target/91527
11311 * config/i386/i386-features.h (general_scalar_chain::defs_map):
11312 New member.
11313 (general_scalar_chain::replace_with_subreg): Remove.
11314 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
11315 (general_scalar_chain::convert_reg): Adjust signature.
11316 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
11317 iterate over all defs of a reg.
11318 (general_scalar_chain::replace_with_subreg): Remove.
11319 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
11320 (general_scalar_chain::make_vector_copies): Populate defs_map,
11321 place copy only after defs that are used as vectors in the chain.
11322 (general_scalar_chain::convert_reg): Emit a copy for a specific
11323 def in a specific instruction.
11324 (general_scalar_chain::convert_op): All reg uses are converted here.
11325 (general_scalar_chain::convert_insn): Emit copies for scalar
11326 uses of defs here. Replace uses with the copies we created.
11327 Replace and convert the def. Adjust REG_DEAD notes, remove
11328 REG_EQUIV/EQUAL notes.
11329 (general_scalar_chain::convert_registers): Only handle copies
11330 into the chain here.
11331
11332 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
11333
11334 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
11335
11336 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
11337
11338 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
11339 Add nop_convert case.
11340 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
11341 Fold all statements if requested.
11342 * tree-ssa-propagate.h (class substitute_and_fold_engine):
11343 Allow to fold all statements.
11344 * tree-vrp.c (class vrp_folder):
11345 Let substitute_and_fold_engine fold all statements.
11346
11347 2019-08-26 Richard Biener <rguenther@suse.de>
11348
11349 PR tree-optimization/91526
11350 * passes.def: Note that after late FRE we do TODO_update_address_taken.
11351 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
11352 TODO_update_address_taken.
11353
11354 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
11355
11356 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
11357 __STDC_HOSTED__.
11358
11359 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
11360
11361 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
11362 machine mode for unspec_volatile operand.
11363
11364 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
11365
11366 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
11367 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
11368 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
11369 (prefer_neon_for_64bits): Remove.
11370 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
11371 (tune_params): Remove PREF_NEON_64_FALSE uses.
11372 (arm_option_override): Remove prefer_neon selection code.
11373 (arm_print_tune_info): Remove prefer_neon_for_64bits.
11374 * config/arm/arm-protos.h (tune_params): Remove
11375 prefer_neon_for_64bits.
11376 (prefer_neon_for_64bits): Remove.
11377
11378 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
11379
11380 PR pch/61250
11381 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
11382 and issue any diagnostics needed before collecting the pre-PCH
11383 state.
11384
11385 2019-08-23 Jakub Jelinek <jakub@redhat.com>
11386
11387 PR middle-end/91283
11388 * common.opt (fexcess-precision=): Add Optimization flag. Use
11389 flag_excess_precision variable instead of
11390 flag_excess_precision_cmdline.
11391 * flags.h (class target_flag_state): Remove x_flag_excess_precision
11392 member.
11393 (flag_excess_precision): Don't define.
11394 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
11395 flag_excess_precision_cmdline. Remove comment.
11396 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
11397 and x_flag_excess_precision instead of
11398 frontend_set_flag_excess_precision_cmdline and
11399 x_flag_excess_precision_cmdline.
11400 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
11401 x_flag_excess_precision_cmdline.
11402 * toplev.c (init_excess_precision): Remove.
11403 (lang_dependent_init_target): Don't call it.
11404
11405 2019-08-23 Martin Liska <mliska@suse.cz>
11406
11407 * lto-wrapper.c (run_gcc): When setting jobserver
11408 set also parallel to 1. This was done so before r273908.
11409
11410 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
11411
11412 * config/arm/arm-cpus.in (cortex-m35p): New entry.
11413 (cortex-a76ae): Likewise.
11414 (cortex-a77): Likewise
11415 * config/arm/arm-tables.opt: Regenerate.
11416 * config/arm/arm-tune.md: Likewise.
11417 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
11418 cortex-a77 CPU options.
11419
11420 2019-08-23 Martin Liska <mliska@suse.cz>
11421
11422 * profile.c (instrument_values): Do not set
11423 0 as last argument.
11424 * tree-profile.c (gimple_gen_interval_profiler): Remove
11425 last argument.
11426 (gimple_gen_pow2_profiler): Likewise.
11427 (gimple_gen_topn_values_profiler): Likewise.
11428 (gimple_gen_ic_profiler): Likewise.
11429 (gimple_gen_time_profiler): Likewise.
11430 (gimple_gen_average_profiler): Likewise.
11431 (gimple_gen_ior_profiler): Likewise.
11432 * value-prof.c (dump_histogram_value): Use default
11433 in switch statement instead of HIST_TYPE_MAX.
11434 (stream_in_histogram_value): Likewise.
11435 (gimple_duplicate_stmt_histograms): Do not
11436 use NULL for implicitly set arguments.
11437 (gimple_divmod_values_to_profile): Do not use
11438 reserve+quick_push.
11439 (gimple_indirect_call_to_profile): Likewise.
11440 (gimple_find_values_to_profile): Use implicit
11441 function call arguments.
11442 * value-prof.h (gimple_alloc_histogram_value):
11443 Set default values.
11444 (gimple_gen_interval_profiler): Remove last argument.
11445 (gimple_gen_pow2_profiler): Likewise.
11446 (gimple_gen_topn_values_profiler): Likewise.
11447 (gimple_gen_ic_profiler): Likewise.
11448 (gimple_gen_time_profiler): Likewise.
11449 (gimple_gen_average_profiler): Likewise.
11450 (gimple_gen_ior_profiler): Likewise.
11451
11452 2019-08-22 Martin Sebor <msebor@redhat.com>
11453
11454 PR middle-end/91490
11455 * builtins.c (c_strlen): Rename argument and introduce new local.
11456 Set no-warning bit on original argument.
11457 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
11458 Fold empty and zero constructors into empty strings.
11459 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
11460 for missing initializers.
11461 * tree.c (build_string_literal): Handle optional argument.
11462 * tree.h (build_string_literal): Add defaulted argument.
11463 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
11464 no-warning bit on original expression.
11465
11466 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
11467
11468 PR target/91481
11469 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
11470 and UNSPEC_DARN_RAW.
11471 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
11472 UNSPECV_DARN_RAW.
11473 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
11474 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
11475 (darn): Use an unspec_volatile, and UNSPECV_DARN.
11476
11477 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
11478
11479 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
11480 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
11481 * config/rs6000/rs6000.md (unspec): ... here.
11482 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
11483 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
11484 cmpeqb, *cmpeqb_internal): Delete, move to...
11485 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
11486 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
11487 cmpeqb, *cmpeqb_internal): ... here.
11488
11489 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11490
11491 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
11492 intrinsics if __ARM_FP.
11493 Use __ARM_FEATURE_CRC32 ifdef guard.
11494
11495 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
11496
11497 * config/arm/arm.md (neon_for_64bits): Remove.
11498 (avoid_neon_for_64bits): Remove.
11499 (arm_adddi3): Always split early.
11500 (arm_subdi3): Always split early.
11501 (negdi2): Remove Neon expansion.
11502 (split zero_extend): Split before reload.
11503 (split sign_extend): Split before reload.
11504
11505 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
11506
11507 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
11508 (qhs_extenddi_cstr): Likewise.
11509 * config/arm/arm.md (ashldi3): Always expand early.
11510 (ashlsi3): Likewise.
11511 (ashrsi3): Likewise.
11512 (zero_extend<mode>di2): Remove Neon variants.
11513 (extend<mode>di2): Likewise.
11514 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
11515 (signed_shift_di3_neon): Likewise.
11516 (unsigned_shift_di3_neon): Likewise.
11517 (ashrdi3_neon_imm_noclobber): Likewise.
11518 (lshrdi3_neon_imm_noclobber): Likewise.
11519 (<shift>di3_neon): Likewise.
11520 (split extend): Remove DI extend split patterns.
11521
11522 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
11523
11524 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
11525 (split not): Add DImode not splitter.
11526 (anddi3): Remove pattern.
11527 (anddi3_insn): Likewise.
11528 (anddi_zesidi_di): Likewise.
11529 (anddi_sesdi_di): Likewise.
11530 (anddi_notdi_di): Likewise.
11531 (anddi_notzesidi_di): Likewise.
11532 (anddi_notsesidi_di): Likewise.
11533 (iordi3): Likewise.
11534 (iordi3_insn): Likewise.
11535 (iordi_zesidi_di): Likewise.
11536 (iordi_sesidi_di): Likewise.
11537 (xordi3): Likewise.
11538 (xordi3_insn): Likewise.
11539 (xordi_sesidi_di): Likewise.
11540 (xordi_zesidi_di): Likewise.
11541 (one_cmpldi2): Likewise.
11542 (one_cmpldi2_insn): Likewise.
11543 * config/arm/constraints.md: Remove De, Df, Dg constraints.
11544 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
11545 alternative.
11546 (iwmmxt_xordi3): Likewise.
11547 (iwmmxt_anddi3): Likewise.
11548 * config/arm/neon.md (orndi3_neon): Remove pattern.
11549 (anddi_notdi_di): Likewise.
11550 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
11551 (arm_iordi_operand_neon): Likewise.
11552 (arm_xordi_operand_neon): Likewise.
11553 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
11554 (iordi_notzesidi_di): Likewise.
11555 (iordi_notdi_zesidi): Likewise.
11556 (iordi_notsesidi_di): Likewise.
11557
11558 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
11559
11560 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
11561 insn.
11562 (iorsi3_compare0_scratch): Likewise.
11563
11564 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
11565
11566 * config/aarch64/aarch64-simd-builtins.def:
11567 (ld1x4): New.
11568 (st1x4): Likewise.
11569 * config/aarch64/aarch64-simd.md:
11570 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
11571 (aarch64_st1x4<VALLDIF:mode>): Likewise.
11572 (aarch64_ld1_x4_<mode>): Likewise.
11573 (aarch64_st1_x4_<mode>): Likewise.
11574 * config/aarch64/arm_neon.h:
11575 (vld1_s8_x4): New function.
11576 (vld1q_s8_x4): Likewise.
11577 (vld1_s16_x4): Likewise.
11578 (vld1q_s16_x4): Likewise.
11579 (vld1_s32_x4): Likewise.
11580 (vld1q_s32_x4): Likewise.
11581 (vld1_u8_x4): Likewise.
11582 (vld1q_u8_x4): Likewise.
11583 (vld1_u16_x4): Likewise.
11584 (vld1q_u16_x4): Likewise.
11585 (vld1_u32_x4): Likewise.
11586 (vld1q_u32_x4): Likewise.
11587 (vld1_f16_x4): Likewise.
11588 (vld1q_f16_x4): Likewise.
11589 (vld1_f32_x4): Likewise.
11590 (vld1q_f32_x4): Likewise.
11591 (vld1_p8_x4): Likewise.
11592 (vld1q_p8_x4): Likewise.
11593 (vld1_p16_x4): Likewise.
11594 (vld1q_p16_x4): Likewise.
11595 (vld1_s64_x4): Likewise.
11596 (vld1_u64_x4): Likewise.
11597 (vld1_p64_x4): Likewise.
11598 (vld1q_s64_x4): Likewise.
11599 (vld1q_u64_x4): Likewise.
11600 (vld1q_p64_x4): Likewise.
11601 (vld1_f64_x4): Likewise.
11602 (vld1q_f64_x4): Likewise.
11603 (vst1_s8_x4): Likewise.
11604 (vst1q_s8_x4): Likewise.
11605 (vst1_s16_x4): Likewise.
11606 (vst1q_s16_x4): Likewise.
11607 (vst1_s32_x4): Likewise.
11608 (vst1q_s32_x4): Likewise.
11609 (vst1_u8_x4): Likewise.
11610 (vst1q_u8_x4): Likewise.
11611 (vst1_u16_x4): Likewise.
11612 (vst1q_u16_x4): Likewise.
11613 (vst1_u32_x4): Likewise.
11614 (vst1q_u32_x4): Likewise.
11615 (vst1_f16_x4): Likewise.
11616 (vst1q_f16_x4): Likewise.
11617 (vst1_f32_x4): Likewise.
11618 (vst1q_f32_x4): Likewise.
11619 (vst1_p8_x4): Likewise.
11620 (vst1q_p8_x4): Likewise.
11621 (vst1_p16_x4): Likewise.
11622 (vst1q_p16_x4): Likewise.
11623 (vst1_s64_x4): Likewise.
11624 (vst1_u64_x4): Likewise.
11625 (vst1_p64_x4): Likewise.
11626 (vst1q_s64_x4): Likewise.
11627 (vst1q_u64_x4): Likewise.
11628 (vst1q_p64_x4): Likewise.
11629 (vst1_f64_x4): Likewise.
11630 (vst1q_f64_x4): Likewise.
11631
11632 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11633
11634 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
11635
11636 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11637 Richard Sandiford <richard.sandiford@arm.com>
11638
11639 PR target/88839
11640 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
11641 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
11642
11643 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11644
11645 PR target/90724
11646 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
11647 in reg if it fails aarch64_plus_operand predicate.
11648
11649 2019-08-21 Richard Biener <rguenther@suse.de>
11650
11651 PR tree-optimization/91482
11652 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
11653 BUILT_IN_ASSUME_ALIGNED calls.
11654
11655 2019-08-21 Richard Biener <rguenther@suse.de>
11656
11657 PR target/91498
11658 PR target/91503
11659 * config/i386/i386-features.c
11660 (general_scalar_chain::make_vector_copies): Copy stack temporary
11661 rtx when using it multiple times.
11662 (general_scalar_chain::convert_reg): Likewise.
11663
11664 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
11665
11666 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
11667
11668 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
11669
11670 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
11671 catch more redundant zero initialization cases.
11672 (dse_dom_walker::dse_optimize_stmt): Likewise.
11673
11674 2019-08-20 Richard Biener <rguenther@suse.de>
11675
11676 PR lto/91307
11677 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
11678 by collect2 when targetm.have_ctors_dtors which avoids dragging
11679 in temporary filenames from LTO input objects.
11680
11681 2019-08-20 Richard Biener <rguenther@suse.de>
11682
11683 PR tree-optimization/37242
11684 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
11685 to (T)a + (T)b if we know that a + b does not overflow.
11686
11687 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
11688
11689 PR rtl-optimization/91347
11690 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
11691 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
11692
11693 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11694
11695 * calls.h (function_arg_info): Add a pass_by_reference field,
11696 defaulting to false.
11697 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
11698 when applying pass-by-reference semantics.
11699 (initialize_argument_information): Likewise.
11700 (emit_library_call_value_1): Likewise.
11701 * function.c (assign_parm_data_one): Remove passed_pointer field.
11702 (assign_parm_find_data_types): Don't set it.
11703 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
11704 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
11705 arg.pass_by_reference instead of passed_pointer.
11706
11707 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11708
11709 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
11710 into a single function_arg_info, updating its fields when we
11711 apply pass-by-reference and promotion semantics. Use the
11712 function_arg_info to track the mode rather than keeping it in
11713 a separate local variable.
11714 (initialize_argument_information): Likewise. Base the final
11715 arg_to_skip on this new function_arg_info rather than creating
11716 a new one from scratch.
11717
11718 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11719
11720 * function.c (assign_parm_data_one): Replace passed_type,
11721 promoted_mode and named_arg with a function_arg_info field.
11722 (assign_parm_find_data_types): Remove local variables and
11723 assign directly to "data". Make data->passed_mode shadow
11724 data->arg.mode until promotion, then assign the promoted
11725 mode to data->arg.mode.
11726 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
11727 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
11728 (assign_parm_remove_parallels, assign_parm_setup_block_p)
11729 (assign_parm_setup_block, assign_parm_setup_reg)
11730 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
11731 arg.mode instead of promoted_mode, arg.type instead of passed_type
11732 and arg.named instead of named_arg. Use data->arg for
11733 function_arg_info structures that had the field values passed_type,
11734 promoted_mode and named_arg. Base other function_arg_infos on
11735 data->arg, changing the necessary properties.
11736
11737 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11738
11739 * calls.h (apply_pass_by_reference_rules): Declare.
11740 * calls.c (apply_pass_by_reference_rules): New function.
11741 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
11742 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
11743 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
11744 * function.c (assign_parm_find_data_types): Likewise.
11745 * var-tracking.c (prepare_call_arguments): Likewise.
11746
11747 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11748
11749 * target.def (must_pass_in_stack): Take a function_arg_info instead
11750 of a mode and a type.
11751 * doc/tm.texi: Regenerate.
11752 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
11753 instead of a mode and a type.
11754 (must_pass_in_stack_var_size_or_pad): Likewise.
11755 * calls.c (must_pass_in_stack_var_size): Likewise.
11756 (must_pass_in_stack_var_size_or_pad): Likewise.
11757 (initialize_argument_information): Update call to
11758 targetm.calls.must_pass_in_stack.
11759 (must_pass_va_arg_on_stack): Likewise.
11760 * function.c (assign_parm_find_entry_rtl): Likewise.
11761 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
11762 * config/alpha/alpha.c (alpha_function_arg): Likewise.
11763 (alpha_function_arg_advance): Likewise.
11764 * config/cr16/cr16.c (cr16_function_arg): Likewise.
11765 (cr16_function_arg_advance): Likewise.
11766 * config/cris/cris.c (cris_pass_by_reference): Likewise.
11767 (cris_arg_partial_bytes): Likewise.
11768 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
11769 * config/lm32/lm32.c (lm32_function_arg): Likewise.
11770 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
11771 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
11772 * config/mips/mips.c (mips_pass_by_reference): Likewise.
11773 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
11774 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
11775 * config/sh/sh.c (sh_pass_by_reference): Likewise.
11776 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
11777 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
11778 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
11779 instead of a mode and a type.
11780 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
11781 (fr30_num_arg_regs): Likewise.
11782 (fr30_setup_incoming_varargs): Update calls accordingly.
11783 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
11784 (fr30_function_arg_advance): Likewise.
11785 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
11786 instead of a mode and a type.
11787 * config/gcn/gcn.c (num_arg_regs): Likewise.
11788 (gcn_function_arg, gcn_function_arg_advance): Update calls to
11789 num_arg_regs and targetm.calls.must_pass_in_stack.
11790 (gcn_arg_partial_bytes): Likewise.
11791 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
11792 function_arg_info instead of a mode and a type.
11793 (classify_argument): Update call accordingly.
11794 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
11795 function_arg_info instead of a mode and a type.
11796 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
11797 Likewise.
11798 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
11799 (rs6000_parm_needs_stack): Update call accordingly.
11800 (setup_incoming_varargs): Likewise.
11801
11802 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11803
11804 * target.def (callee_copies): Take a function_arg_info instead
11805 of a mode, type and named flag.
11806 * doc/tm.texi: Regenerate.
11807 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
11808 instead of a mode, type and named flag.
11809 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
11810 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
11811 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
11812 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
11813 instead of a mode, type and named flag.
11814 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
11815 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
11816 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
11817 * calls.h (reference_callee_copied): Take a function_arg_info
11818 instead of a mode, type and named flag.
11819 * calls.c (reference_callee_copied): Likewise.
11820 (initialize_argument_information): Update call accordingly.
11821 (emit_library_call_value_1): Likewise.
11822 * function.c (gimplify_parameters): Likewise.
11823 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
11824 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
11825 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
11826 * config/c6x/c6x.c (c6x_callee_copies): Delete.
11827 (TARGET_CALLEE_COPIES): Define to
11828 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
11829 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
11830 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
11831 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
11832 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
11833 instead of a mode, type and named flag.
11834 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
11835 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
11836 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
11837 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
11838 * config/msp430/msp430.c (msp430_callee_copies): Delete.
11839 (TARGET_CALLEE_COPIES): Define to
11840 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
11841 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
11842 instead of a mode, type and named flag.
11843 * config/sh/sh.c (sh_callee_copies): Likewise.
11844 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
11845 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
11846 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
11847
11848 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11849
11850 * target.def (function_arg_advance): Take a function_arg_info instead
11851 of a mode, type and named flag.
11852 * doc/tm.texi: Regenerate.
11853 * targhooks.h (default_function_arg_advance): Take a function_arg_info
11854 instead of a mode, type and named flag.
11855 * targhooks.c (default_function_arg_advance): Likewise.
11856 * calls.c (initialize_argument_information): Update call to
11857 targetm.calls.function_arg_advance.
11858 (emit_library_call_value_1): Likewise.
11859 * dse.c (get_call_args): Likewise.
11860 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
11861 * function.c (assign_parms, gimplify_parameters): Likewise.
11862 * var-tracking.c (prepare_call_arguments): Likewise.
11863 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
11864 function_arg_info instead of a mode, type and named flag.
11865 (aarch64_setup_incoming_varargs): Update call accordingly.
11866 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
11867 function_arg_info instead of a mode, type and named flag.
11868 (alpha_setup_incoming_varargs): Update call accordingly.
11869 * config/arc/arc.c (arc_function_arg_advance): Take a
11870 function_arg_info instead of a mode, type and named flag.
11871 (arc_setup_incoming_varargs): Update call accordingly.
11872 * config/arm/arm.c (arm_function_arg_advance): Take a
11873 function_arg_info instead of a mode, type and named flag.
11874 (cmse_func_args_or_return_in_stack): Update call accordingly.
11875 (arm_function_ok_for_sibcall): Likewise.
11876 (cmse_nonsecure_call_clear_caller_saved): Likewise.
11877 * config/avr/avr.c (avr_function_arg_advance): Take a
11878 function_arg_info instead of a mode, type and named flag.
11879 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
11880 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
11881 (c6x_call_saved_register_used): Update call accordingly.
11882 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
11883 function_arg_info instead of a mode, type and named flag.
11884 * config/cris/cris.c (cris_function_arg_advance): Likewise.
11885 * config/csky/csky.c (csky_function_arg_advance): Likewise.
11886 (csky_setup_incoming_varargs): Update call accordingly.
11887 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
11888 function_arg_info instead of a mode, type and named flag.
11889 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
11890 * config/frv/frv.c (frv_function_arg_advance): Likewise.
11891 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
11892 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
11893 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
11894 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
11895 (ix86_setup_incoming_varargs): Update call accordingly.
11896 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
11897 function_arg_info instead of a mode, type and named flag.
11898 (ia64_setup_incoming_varargs): Update call accordingly.
11899 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
11900 function_arg_info instead of a mode, type and named flag.
11901 (iq2000_expand_prologue): Update call accordingly.
11902 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
11903 function_arg_info instead of a mode, type and named flag.
11904 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
11905 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
11906 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
11907 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
11908 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
11909 Likewise.
11910 (microblaze_expand_prologue): Update call accordingly.
11911 * config/mips/mips.c (mips_function_arg_advance): Take a
11912 function_arg_info instead of a mode, type and named flag.
11913 (mips_setup_incoming_varargs): Update call accordingly.
11914 (mips_output_args_xfer): Likewise.
11915 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
11916 function_arg_info instead of a mode, type and named flag.
11917 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
11918 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
11919 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
11920 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
11921 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
11922 (nios2_setup_incoming_varargs): Update call accordingly.
11923 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
11924 function_arg_info instead of a mode, type and named flag.
11925 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
11926 * config/pa/pa.c (pa_function_arg_advance): Likewise.
11927 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
11928 * config/pru/pru.c (pru_function_arg_advance): Likewise.
11929 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
11930 (riscv_setup_incoming_varargs): Update call accordingly.
11931 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
11932 function_arg_info instead of a mode, type and named flag.
11933 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
11934 Likewise.
11935 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
11936 (rs6000_parm_needs_stack): Update call accordingly.
11937 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
11938 instead of a mode, type and named flag.
11939 * config/s390/s390.c (s390_function_arg_advance): Likewise.
11940 (s390_call_saved_register_used): Update call accordingly.
11941 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
11942 instead of a mode, type and named flag.
11943 (sh_output_mi_thunk): Update call accordingly.
11944 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
11945 function_arg_info instead of a mode, type and named flag.
11946 * config/spu/spu.c (spu_function_arg_advance): Likewise.
11947 (spu_setup_incoming_varargs): Update call accordingly.
11948 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
11949 function_arg_info instead of a mode, type and named flag.
11950 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
11951 (tilegx_setup_incoming_varargs): Update call accordingly.
11952 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
11953 function_arg_info instead of a mode, type and named flag.
11954 (tilegx_setup_incoming_varargs): Update call accordingly.
11955 * config/v850/v850.c (v850_function_arg_advance): Take a
11956 function_arg_info instead of a mode, type and named flag.
11957 * config/vax/vax.c (vax_function_arg_advance): Likewise.
11958 * config/visium/visium.c (visium_function_arg_advance): Likewise.
11959 (visium_setup_incoming_varargs): Update call accordingly.
11960 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
11961 function_arg_info instead of a mode, type and named flag.
11962
11963 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11964
11965 * target.def (function_arg, function_incoming_arg): Take a
11966 function_arg_info instead of a mode, tree and named flag.
11967 * doc/tm.texi: Regenerate.
11968 * targhooks.h (default_function_arg): Take a function_arg_info
11969 instead of a mode, tree and named flag.
11970 (default_function_incoming_arg): Likewise.
11971 * targhooks.c (default_function_arg): Likewise.
11972 (default_function_incoming_arg): Likewise.
11973 * calls.h (function_arg_info::end_marker_p): New function.
11974 (function_arg_info::end_marker): Likewise.
11975 * calls.c (prepare_call_address, initialize_argument_information)
11976 (expand_call, emit_library_call_value_1): Update calls to
11977 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
11978 * dse.c: Include calls.h.
11979 (get_call_args): Update call to targetm.calls.function_arg.
11980 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
11981 * var-tracking.c (prepare_call_arguments): Likewise.
11982 * function.c (assign_parm_find_entry_rtl): Update call to
11983 targetm.calls.function_incoming_arg.
11984 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
11985 function_arg_info instead of a mode, tree and named flag.
11986 * config/alpha/alpha.c (alpha_function_arg): Likewise.
11987 * config/arc/arc.c (arc_function_arg): Likewise.
11988 * config/arm/arm.c (arm_function_arg): Likewise.
11989 (cmse_func_args_or_return_in_stack): Update call accordingly.
11990 (arm_function_ok_for_sibcall): Likewise.
11991 (cmse_nonsecure_call_clear_caller_saved): Likewise.
11992 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
11993 instead of a mode, tree and named flag.
11994 * config/bfin/bfin.c (bfin_function_arg): Likewise.
11995 * config/c6x/c6x.c (c6x_function_arg): Likewise.
11996 (c6x_call_saved_register_used): Update call accordingly.
11997 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
11998 instead of a mode, tree and named flag.
11999 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
12000 (cris_function_arg_1): Likewise.
12001 * config/csky/csky.c (csky_function_arg): Likewise.
12002 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
12003 * config/fr30/fr30.c (fr30_function_arg): Likewise.
12004 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
12005 (frv_function_arg_1): Likewise.
12006 * config/ft32/ft32.c (ft32_function_arg): Likewise.
12007 * config/gcn/gcn.c (gcn_function_arg): Likewise.
12008 * config/h8300/h8300.c (h8300_function_arg): Likewise.
12009 * config/i386/i386.c (ix86_function_arg): Likewise.
12010 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
12011 (ia64_function_arg_1): Likewise.
12012 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
12013 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
12014 accordingly.
12015 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
12016 instead of a mode, tree and named flag.
12017 * config/m32c/m32c.c (m32c_function_arg): Likewise.
12018 * config/m32r/m32r.c (m32r_function_arg): Likewise.
12019 * config/m68k/m68k.c (m68k_function_arg): Likewise.
12020 * config/mcore/mcore.c (mcore_function_arg): Likewise.
12021 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
12022 (microblaze_expand_prologue): Update call accordingly.
12023 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
12024 instead of a mode, tree and named flag.
12025 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
12026 (mmix_function_arg_1): Likewise.
12027 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
12028 * config/moxie/moxie.c (moxie_function_arg): Likewise.
12029 * config/msp430/msp430.c (msp430_function_arg): Likewise.
12030 * config/nds32/nds32.c (nds32_function_arg): Likewise.
12031 * config/nios2/nios2.c (nios2_function_arg): Likewise.
12032 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
12033 (nvptx_function_incoming_arg): Likewise.
12034 * config/or1k/or1k.c (or1k_function_arg): Likewise.
12035 * config/pa/pa.c (pa_function_arg): Likewise.
12036 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
12037 * config/pru/pru.c (pru_function_arg): Likewise.
12038 * config/riscv/riscv.c (riscv_function_arg): Likewise.
12039 * config/rl78/rl78.c (rl78_function_arg): Likewise.
12040 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
12041 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
12042 (rs6000_parm_needs_stack): Update call accordingly.
12043 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
12044 instead of a mode, tree and named flag.
12045 * config/s390/s390.c (s390_function_arg): Likewise.
12046 (s390_call_saved_register_used): Update call accordingly.
12047 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
12048 instead of a mode, tree and named flag.
12049 (sh_output_mi_thunk): Update call accordingly.
12050 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
12051 (sparc_function_incoming_arg): Take a function_arg_info instead of
12052 a mode, tree and named flag.
12053 * config/spu/spu.c (spu_function_arg): Likewise.
12054 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
12055 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
12056 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
12057 * config/v850/v850.c (v850_function_arg): Likewise.
12058 * config/vax/vax.c (vax_function_arg): Likewise.
12059 * config/visium/visium.c (visium_function_arg): Likewise.
12060 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
12061 (xtensa_function_incoming_arg): Likewise.
12062
12063 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12064
12065 * target.def (setup_incoming_varargs): Take a function_arg_info
12066 instead of a mode and tree.
12067 * doc/tm.texi: Regenerate.
12068 * targhooks.h (default_setup_incoming_varargs): Take a
12069 function_arg_info instead of a mode and tree.
12070 * targhooks.c (default_setup_incoming_varargs): Likewise.
12071 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
12072 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
12073 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
12074 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
12075 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
12076 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
12077 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
12078 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
12079 Likewise.
12080 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
12081 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
12082 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
12083 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
12084 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
12085 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
12086 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
12087 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
12088 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
12089 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
12090 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
12091 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
12092 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
12093 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
12094 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
12095 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
12096 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
12097 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
12098 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
12099 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
12100 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
12101 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
12102 * function.c (assign_parms_setup_varargs): Update call to
12103 targetm.calls.setup_incoming_varargs.
12104
12105 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12106
12107 * target.def (pass_by_reference): Take a function_arg_info instead
12108 of a mode, type and named flag.
12109 * doc/tm.texi: Regenerate.
12110 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
12111 accordingly.
12112 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
12113 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
12114 function_arg_info instead of a mode, type and named flag.
12115 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
12116 * calls.h (pass_by_reference): Take a function_arg_info instead of a
12117 mode, type and named flag.
12118 * calls.c (pass_by_reference): Likewise.
12119 (pass_va_arg_by_reference): Update call accordingly.
12120 (initialize_argument_information): Likewise.
12121 (emit_library_call_value_1): Likewise.
12122 * function.c (assign_parm_find_data_types): Likewise.
12123 * var-tracking.c (prepare_call_arguments): Likewise.
12124 * stor-layout.c: Include calls.h.
12125 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
12126 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
12127 function_arg_info instead of a mode, type and named flag.
12128 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
12129 * config/arc/arc.c (arc_pass_by_reference): Likewise.
12130 * config/arm/arm.c (arm_pass_by_reference): Likewise.
12131 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
12132 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
12133 (c6x_call_saved_register_used): Update call to pass_by_reference.
12134 * config/cris/cris.c (cris_pass_by_reference): Take a
12135 function_arg_info instead of a mode, type and named flag.
12136 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
12137 function_arg_info instead of a mode, type and named flag.
12138 (epiphany_arg_partial_bytes): Update call accordingly.
12139 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
12140 function_arg_info instead of a mode, type and named flag.
12141 (ft32_arg_partial_bytes): Update call accordingly.
12142 * config/i386/i386.c (ix86_pass_by_reference): Take a
12143 function_arg_info instead of a mode, type and named flag.
12144 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
12145 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
12146 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
12147 (m32r_return_in_memory): Update call accordingly.
12148 * config/mips/mips.c (mips_pass_by_reference): Take a
12149 function_arg_info instead of a mode, type and named flag.
12150 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
12151 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
12152 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
12153 (moxie_arg_partial_bytes): Update call accordingly.
12154 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
12155 function_arg_info instead of a mode, type and named flag.
12156 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
12157 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
12158 * config/pa/pa.c (pa_pass_by_reference): Likewise.
12159 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
12160 (riscv_return_in_memory): Update call accordingly.
12161 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
12162 function_arg_info instead of a mode, type and named flag.
12163 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
12164 (rs6000_parm_needs_stack): Update call to pass_by_reference.
12165 * config/s390/s390.c (s390_pass_by_reference): Take a
12166 function_arg_info instead of a mode, type and named flag.
12167 (s390_call_saved_register_used): Update call accordingly.
12168 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
12169 instead of a mode, type and named flag.
12170 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
12171 * config/spu/spu.c (spu_pass_by_reference): Likewise.
12172 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
12173 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
12174 * config/v850/v850.c (v850_pass_by_reference): Likewise.
12175 * config/visium/visium.c (visium_pass_by_reference): Likewise.
12176
12177 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12178
12179 * target.def (arg_partial_bytes): Take a function_arg_info instead
12180 of a mode, type and named flag.
12181 * doc/tm.texi: Regenerate.
12182 * target.h (function_arg_info): Declare.
12183 * calls.h (function_arg_info): New class.
12184 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
12185 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
12186 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
12187 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
12188 * calls.c (initialize_argument_information): Update call to
12189 targetm.calls.partial_bytes.
12190 (emit_library_call_value_1): Likewise.
12191 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
12192 * function.c (assign_parm_find_entry_rtl): Likewise.
12193 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
12194 function_arg_info instead of a mode, type and named flag.
12195 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
12196 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
12197 (cmse_func_args_or_return_in_stack): Update accordingly.
12198 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
12199 function_arg_info instead of a mode, type and named flag.
12200 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
12201 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
12202 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
12203 * config/fr30/fr30.c: Include calls.h.
12204 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
12205 type and named flag.
12206 * config/frv/frv.c: Include calls.h.
12207 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
12208 type and named flag.
12209 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
12210 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
12211 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
12212 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
12213 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
12214 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
12215 * config/microblaze/microblaze.c (function_arg_partial_bytes):
12216 Likewise.
12217 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
12218 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
12219 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
12220 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
12221 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
12222 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
12223 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
12224 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
12225 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
12226 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
12227 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
12228 (rs6000_parm_needs_stack): Update call accordingly.
12229 * config/sh/sh.c (sh_arg_partial_bytes): Take a
12230 function_arg_info instead of a mode, type and named flag.
12231 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
12232 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
12233
12234 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12235
12236 * calls.h (must_pass_va_arg_in_stack): Declare.
12237 * calls.c (must_pass_va_arg_in_stack): New function.
12238 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
12239 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
12240 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
12241 Likewise.
12242 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
12243
12244 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12245
12246 * calls.h (pass_va_arg_by_reference): Declare.
12247 * calls.c (pass_va_arg_by_reference): New function.
12248 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
12249 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
12250 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
12251 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
12252 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
12253 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
12254 (mips_gimplify_va_arg_expr): Likewise.
12255 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
12256 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
12257 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
12258 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
12259 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
12260 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
12261 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
12262 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
12263 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
12264 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
12265 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
12266
12267 2019-08-20 Richard Biener <rguenther@suse.de>
12268
12269 PR target/91498
12270 * config/i386/i386-features.c (general_scalar_chain::convert_op):
12271 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
12272 (convert_scalars_to_vector): Add timode_p parameter and use it
12273 to guard TImode-only operation.
12274 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
12275 (pass_stv::execute): Pass down timode_p.
12276
12277 2019-08-20 Lili Cui <lili.cui@intel.com>
12278
12279 * common/config/i386/i386-common.c
12280 (processor_names): Add tigerlake and cooperlake.
12281 (processor_alias_table): Add tigerlake and cooperlake.
12282 * config.gcc: Add -march=tigerlake and cooperlake.
12283 * config/i386/driver-i386.c
12284 (host_detect_local_cpu): Detect tigerlake and cooperlake.
12285 Add "has_avx" to classify processor.
12286 * config/i386/i386-builtins.c (processor_model) :
12287 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
12288 (arch_names_table): Add tigerlake and cooperlake.
12289 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
12290 and PROCESSOR_COOPERLAKE.
12291 * config/i386/i386-c.c
12292 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
12293 * config/i386/i386-options.c
12294 (m_TIGERLAKE): Define.
12295 (m_COOPERLAKE): Ditto.
12296 (m_CORE_AVX512): Ditto.
12297 (processor_cost_table): Add cascadelake.
12298 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
12299 * config/i386/i386.h
12300 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
12301 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
12302 (PTA_MOVDIRI): Ditto.
12303 (PTA_MOVDIR64B): Ditto.
12304 (PTA_COOPERLAKE): Ditto.
12305 (PTA_TIGERLAKE): Ditto.
12306 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
12307 * doc/extend.texi: Add tigerlake and cooperlake.
12308 * doc/invoke.texi: Add tigerlake and cooperlake.
12309
12310 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
12311
12312 * doc/install.texi (Specific, alpha): Remove note to use
12313 binutils 2.11.2 or later.
12314
12315 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
12316
12317 PR middle-end/89544
12318 * function.c (assign_parm_find_stack_rtl): Use larger alignment
12319 when possible.
12320
12321 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
12322
12323 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
12324 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
12325 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
12326 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
12327 * config/aarch64/constraints.md (Dt): New constraint
12328 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
12329
12330 2019-08-19 Richard Biener <rguenther@suse.de>
12331
12332 PR tree-optimization/91403
12333 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
12334 cases we can handle with tail-recursion...
12335 (follow_ssa_edge_expr): ... here. Do so.
12336
12337 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
12338
12339 PR target/91441
12340 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
12341 implemented for -fsanitize=kernel-address, and merge check logic
12342 with -fsanitize=address.
12343
12344 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
12345
12346 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
12347 for cpu and machine. Factor 64/32b builtins.
12348
12349 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
12350
12351 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
12352 gone, point to sourceforge.net.
12353
12354 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
12355
12356 * doc/ux.texi (User Experience Guidelines): Update reference.
12357
12358 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
12359
12360 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
12361 not LGPL".
12362
12363 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
12364
12365 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
12366 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
12367
12368 2019-08-16 Martin Sebor <msebor@redhat.com>
12369
12370 * tree.def (TYPE_SIZE): Clarify.
12371 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
12372
12373 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
12374
12375 PR tree-optimization/91109
12376 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
12377 * lra.c (lra): Use lra_need_for_scratch_reg_p.
12378 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
12379
12380 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
12381
12382 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
12383 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
12384 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
12385 (uavg<mode>3_ceil): New expander.
12386 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
12387 mode iterator when creating CONST1_RTX.
12388 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
12389 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
12390 mode iterator for const1_operand predicate.
12391
12392 2019-08-16 Richard Biener <rguenther@suse.de>
12393
12394 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
12395 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
12396 follow_ssa_edge.
12397 (follow_ssa_edge_in_condition_phi_branch): Likewise.
12398 (analyze_evolution_in_loop): Likewise.
12399 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
12400 (follow_ssa_edge_expr): ... here. Refactor code.
12401
12402 2019-08-16 Richard Biener <rguenther@suse.de>
12403
12404 PR target/91469
12405 * config/i386/i386-features.c
12406 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
12407
12408 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12409
12410 PR other/91255
12411 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
12412 only if subst_name matches curr_attr string.
12413
12414 2019-08-16 Richard Biener <rguenther@suse.de>
12415
12416 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
12417 stmt at gsi_p, instead replace it with a NOP removed later.
12418 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
12419 that became dead because of that.
12420
12421 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
12422
12423 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
12424 for which we can't represent a range.
12425 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
12426 set_varying.
12427 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
12428 Set VR_UNDEFINED if type is not supported.
12429 * tree-ssanames.c (get_range_info): Pass type to set_varying.
12430 * tree-vrp.c (value_range_base::check): Assert that a varying has
12431 min/max set.
12432 (value_range_base::equal_p): Early bail for undefines.
12433 (value_range_base::set_varying): Accept a type.
12434 (value_range::set_varying): Same.
12435 (value_range_base::type): VARYING can have a type, while UNDEFINE
12436 is typeless.
12437 (value_range_base::dump): Print type for VARYING nodes.
12438 (value_range_base::set): Add type to VARYING.
12439 (extract_range_from_multiplicative_op): Pass type to set_varying.
12440 (extract_range_from_binary_expr): Same.
12441 (value_range_base::intersect_helper): Same.
12442 (value_range_base::union_helper): Same.
12443 (value_range_base::normalize_symbolics): Same.
12444 (determine_value_range_1): Same.
12445 * tree-vrp.h (class value_range_base): Add type to set_varying.
12446 Add prototype for dump(void).
12447 Add prototype for supports_type_p.
12448 (class value_range): Add type to set_varying.
12449 Add prototype for dump(void).
12450 * vr-values.c (set_value_range_to_truthvalue): Pass type to
12451 set_varying.
12452 (vr_values::get_lattice_entry): Set varying even if propagation
12453 finished.
12454 Pass type to set_varying.
12455 (vr_values::get_value_range): Remove vr_const_varying.
12456 Reallocate the lattice if needed.
12457 (vr_values::update_value_range): Pass type to set_varying.
12458 (vr_values::extract_range_for_var_from_comparison_expr): Same.
12459 (vr_values::extract_range_from_binary_expr): Same.
12460 (vr_values::extract_range_from_unary_expr): Same.
12461 (vr_values::extract_range_from_cond_expr): Same.
12462 (vr_values::check_for_binary_op_overflow): Same.
12463 (vr_values::extract_range_basic): Same.
12464 (vr_values::extract_range_from_assignment): Same.
12465 (vr_values::vr_values): Increase size of num_vr_values.
12466 (vr_values::extract_range_from_phi_node): Pass type to
12467 set_varying.
12468
12469 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
12470
12471 PR target/90878
12472 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
12473 for costs of hard register moves.
12474 (ix86_register_move_cost): Likewise.
12475 * config/i386/i386.h (processor_costs): Move costs of hard
12476 register moves to hard_register. Add int_load, int_store,
12477 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
12478 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
12479 for costs of RTL expressions.
12480 * config/i386/x86-tune-costs.h: Move costs of hard register
12481 moves to hard_register. Duplicate int_load, int_store,
12482 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
12483 sse_load, sse_store for costs of RTL expressions.
12484
12485 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12486
12487 * target.def (setup_incoming_vararg_bounds): Remove.
12488 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
12489 * doc/tm.texi: Regenerate.
12490 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
12491 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
12492 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
12493 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
12494
12495 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12496
12497 MSP430: Fix lines over 80 characters long in
12498 config/msp430/*.{c,h} files
12499
12500 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
12501 specifier in string.
12502 (msp430_select_hwmult_lib): Split line more than 80 characters long.
12503 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
12504 redundant old comment.
12505 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
12506 Split line more than 80 characters long.
12507 * config/msp430/msp430.c (msp430_option_override): Likewise.
12508 (msp430_return_in_memory): Likewise.
12509 (msp430_gimplify_va_arg_expr): Likewise.
12510 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
12511 (msp430_legitimate_constant): Likewise.
12512 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
12513 (msp430_attr): Likewise.
12514 (msp430_data_attr): Likewise.
12515 (msp430_start_function): Likewise.
12516 (gen_prefix): Likewise.
12517 (msp430_init_sections): Likewise.
12518 (msp430_select_section): Likewise.
12519 (msp430_function_section): Likewise.
12520 (msp430_unique_section): Likewise.
12521 (msp430_output_aligned_decl_common): Likewise.
12522 (msp430_do_not_relax_short_jumps): Likewise.
12523 (msp430_init_builtins): Likewise.
12524 (msp430_expand_delay_cycles): Likewise.
12525 (msp430_expand_prologue): Likewise.
12526 (msp430_expand_epilogue): Likewise.
12527 (msp430_expand_helper): Likewise.
12528 (msp430_split_movsi): Likewise.
12529 (msp430_print_operand): Likewise.
12530 (msp430_return_addr_rtx): Likewise.
12531 (msp430x_extendhisi): Likewise.
12532 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
12533 (ASM_SPEC): Likewise.
12534 Remove very obvious comments.
12535 (LIB_SPEC): Split line more than 80 characters long.
12536 (EH_RETURN_HANDLER_RTX): Likewise.
12537 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
12538
12539 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12540
12541 MSP430: Fix whitespace errors and incorrect indentation in
12542 config/msp430/*.{c,h} files
12543
12544 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
12545 (msp430_select_hwmult_lib): Likewise.
12546 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
12547 (msp430_extract_mcu_data): Likewise.
12548 (struct t_msp430_mcu_data): Likewise.
12549 * config/msp430/msp430.c (struct machine_function): Remove whitespace
12550 before left square bracket.
12551 (msp430_option_override): Fix indentation.
12552 (msp430_hard_regno_nregs_with_padding): Likewise.
12553 (msp430_initial_elimination_offset): Likewise.
12554 (msp430_special_register_convention_p): Remove whitespace before left
12555 square bracket and after exclamation mark.
12556 (msp430_evaluate_arg): Likewise.
12557 (msp430_callee_copies): Fix indentation.
12558 (msp430_gimplify_va_arg_expr): Likewise.
12559 (msp430_function_arg_advance): Remove whitespace before left square
12560 bracket.
12561 (reg_ok_for_addr): Likewise.
12562 (msp430_preserve_reg_p): Likewise.
12563 (msp430_compute_frame_info): Likewise.
12564 (msp430_asm_output_addr_const_extra): Add space between function name
12565 and open parenthesis.
12566 (has_section_name): Fix indentation.
12567 (msp430_attr): Remove trailing whitespace.
12568 (msp430_section_attr): Likewise.
12569 (msp430_data_attr): Likewise.
12570 (struct msp430_attribute_table): Fix comment and whitespace.
12571 (msp430_start_function): Remove whitespace before left square bracket.
12572 Add space between function name and open parenthesis.
12573 (msp430_select_section): Remove trailing whitespace.
12574 (msp430_section_type_flags): Remove trailing whitespace.
12575 (msp430_unique_section): Remove space before closing parenthesis.
12576 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
12577 (msp430_builtins): Remove whitespace before left square bracket.
12578 (msp430_init_builtins): Fix indentation.
12579 (msp430_expand_prologue): Remove whitespace before left square bracket.
12580 Remove space before closing parenthesis.
12581 (msp430_expand_epilogue): Remove whitespace before left square bracket.
12582 (msp430_split_movsi): Remove space before closing parenthesis.
12583 (helper_function_name_mappings): Fix indentation.
12584 (msp430_use_f5_series_hwmult): Fix whitespace.
12585 (use_32bit_hwmult): Likewise.
12586 (msp430_no_hwmult): Likewise.
12587 (msp430_output_labelref): Remove whitespace before left square bracket.
12588 (msp430_print_operand_raw): Likewise.
12589 (msp430_print_operand_addr): Likewise.
12590 (msp430_print_operand): Add two spaces after '.' in comment.
12591 Fix trailing whitespace.
12592 (msp430x_extendhisi): Fix indentation.
12593 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
12594 tab.
12595 (PC_REGNUM): Likewise.
12596 (STACK_POINTER_REGNUM): Likewise.
12597 (CC_REGNUM): Likewise.
12598
12599 2019-08-15 Richard Biener <rguenther@suse.de>
12600
12601 PR target/91454
12602 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
12603 helper.
12604 (general_scalar_chain::make_vector_copies): Use it.
12605
12606 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
12607
12608 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
12609
12610 2019-08-15 Martin Liska <mliska@suse.cz>
12611
12612 * tree-ssa-dce.c (propagate_necessity): We can't reach now
12613 operators with no arguments.
12614 (eliminate_unnecessary_stmts): Likewise here.
12615
12616 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
12617
12618 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
12619 <case COMPARE>: Revert 2019-08-14 change.
12620 (convertible_comparison_p): Revert 2019-08-14 change. Return false
12621 for (TARGET_64BIT || mode != DImode).
12622
12623 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
12624
12625 * tree-vrp.c (value_range_base::set): Merge in code from
12626 value_range_base::set_and_canonicalize.
12627 Enforce canonicalization at set time.
12628 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
12629 (value_range_base::set_undefined): Inline call to set().
12630 (value_range_base::set_varying): Same.
12631 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
12632 (vrp_val_max): New argument handle_pointers.
12633 (vrp_val_min): Same.
12634 (ranges_from_anti_range): Same.
12635 (extract_range_into_wide_ints): Use tree argument instead of sign
12636 and precision.
12637 (extract_range_from_multiplicative_op): Take in tree type instead
12638 of precision and sign. Adapt function for canonicalized ranges.
12639 (extract_range_from_binary_expr): Pass type to
12640 extract_range_from_multiplicative_op.
12641 Adapt for canonicalized ranges.
12642 (extract_range_from_unary_expr): Same.
12643 (value_range_base::intersect_helper): Adjust for canonicalized
12644 ranges.
12645 (value_range_base::union_helper): Same.
12646 (value_range_base::normalize_symbolics): New.
12647 * tree-vrp.h (class value_range_base): Remove
12648 set_and_canonicalize.
12649 New prototype for normalize_symbolics.
12650 (class value_range): Remove set_and_canonicalize.
12651 (vrp_val_min): Adjust prototype.
12652 (vrp_val_max): Same.
12653 * vr-values.c
12654 (vr_values::extract_range_for_var_from_comparison_expr): Call set
12655 instead of set_and_canonicalize.
12656
12657 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12658
12659 PR middle-end/91444
12660 * tree-vect-stmts.c (vectorizable_call): Check that the function
12661 is a BUILT_IN_MD function before passing it to
12662 targetm.vectorize.builtin_md_vectorized_function.
12663
12664 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12665
12666 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
12667 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
12668 (aarch64_select_early_remat_modes): Use it.
12669
12670 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12671
12672 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
12673 16 for SVE predicates even if they are fixed-length.
12674
12675 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12676
12677 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
12678 operand order match the MOV /Z alias.
12679
12680 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12681
12682 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
12683 the vector pattern as an aarch64_svpattern argument. Update the
12684 overloaded caller accordingly.
12685 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
12686 (aarch64_output_sve_vector_inc_dec): Likewise.
12687
12688 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12689
12690 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
12691 multiplication case, try to compute VG * (lowest set bit) directly
12692 rather than always basing the multiplication on VG. Use
12693 expand_mult for the multiplication if we can.
12694
12695 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12696
12697 * config/aarch64/aarch64-protos.h
12698 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
12699 (aarch64_sve_inc_dec_immediate_p): Rename to...
12700 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
12701 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
12702 (aarch64_output_sve_scalar_inc_dec): Declare.
12703 (aarch64_output_sve_inc_dec_immediate): Rename to...
12704 (aarch64_output_sve_vector_inc_dec): ...this.
12705 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
12706 (aarch64_output_sve_scalar_inc_dec): New functions.
12707 (aarch64_output_sve_addvl_addpl): Remove the base and offset
12708 arguments. Only handle true ADDVL and ADDPL instructions;
12709 don't emit an INC or DEC.
12710 (aarch64_sve_inc_dec_immediate_p): Rename to...
12711 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
12712 (aarch64_output_sve_inc_dec_immediate): Rename to...
12713 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
12714 aarch64_sve_vector_inc_dec_immediate_p.
12715 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
12716 (aarch64_sve_plus_immediate): New predicates.
12717 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
12718 rather than aarch64_sve_addvl_addpl_immediate.
12719 (aarch64_sve_inc_dec_immediate): Rename to...
12720 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
12721 aarch64_sve_vector_inc_dec_immediate_p.
12722 (aarch64_sve_add_operand): Update accordingly.
12723 * config/aarch64/constraints.md (Uai): New constraint.
12724 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
12725 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
12726 operand into a register if it satisfies aarch64_sve_plus_immediate.
12727 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
12728 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
12729 * config/aarch64/aarch64-sve.md (add<mode>3): Call
12730 aarch64_output_sve_vector_inc_dec instead of
12731 aarch64_output_sve_inc_dec_immediate.
12732
12733 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12734
12735 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
12736 (UNSPEC_REVW): New constants.
12737 (elem_bits): New mode attribute.
12738 (SVE_INT_UNARY): New int iterator.
12739 (optab): Handle UNSPEC_REV[BHW].
12740 (sve_int_op): New int attribute.
12741 (min_elem_bits): Handle VNx16QI and the predicate modes.
12742 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
12743 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
12744 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
12745 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
12746 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
12747 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
12748 unspecs based on the total width of the reversed data.
12749 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
12750 reinterpret followed by a subreg on big-endian targets.
12751
12752 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12753 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12754
12755 * config/aarch64/aarch64-sve.md
12756 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
12757 alternatives in which one of the inputs is in the same register
12758 as the output.
12759
12760 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12761
12762 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
12763 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
12764
12765 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12766
12767 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
12768 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
12769
12770 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12771 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12772
12773 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
12774 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
12775 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
12776
12777 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12778 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12779
12780 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
12781 Add an alternative that uses reversed shifts.
12782
12783 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12784
12785 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
12786 struct.
12787
12788 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12789
12790 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
12791 a commutativity marker.
12792
12793 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12794 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12795
12796 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
12797 (aarch64_prepare_sve_cond_int_fma): Declare.
12798 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
12799 (aarch64_prepare_sve_int_fma): New functions.
12800 (aarch64_prepare_sve_cond_int_fma): Likewise.
12801 * config/aarch64/aarch64-sve.md
12802 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
12803 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
12804 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
12805 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
12806 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
12807 (*madd<mode>): Rename to...
12808 (*fma<mode>4): ...this.
12809 (*msub<mode>): Rename to...
12810 (*fnma<mode>4): ...this.
12811
12812 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12813 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12814
12815 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
12816 Print 2.0 naturally.
12817 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
12818 * config/aarch64/predicates.md
12819 (aarch64_sve_float_negated_arith_immediate): New predicate,
12820 renamed from aarch64_sve_float_arith_with_sub_immediate.
12821 (aarch64_sve_float_arith_with_sub_immediate): Test for both
12822 positive and negative constants.
12823 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
12824 or an aarch64_sve_float_arith_with_sub_immediate.
12825 * config/aarch64/constraints.md (vsN): Use
12826 aarch64_sve_float_negated_arith_immediate.
12827 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
12828 iterator.
12829 (sve_pred_fp_rhs2_immediate): New int attribute.
12830 * config/aarch64/aarch64-sve.md
12831 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
12832 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
12833 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
12834 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
12835 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
12836 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
12837
12838 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12839 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12840
12841 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
12842 (*aarch64_cond_abd<SVE_F:mode>_3)
12843 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
12844
12845 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12846 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12847
12848 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
12849 (*aarch64_cond_<su>abd<mode>_any): New patterns.
12850
12851 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12852 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12853
12854 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
12855 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
12856 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
12857 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
12858 optabs.
12859 * optabs.h (create_convert_operand_from): Expand comment.
12860 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
12861 when mapping scalar rtxes to vector operands.
12862 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
12863 ashiftrt and lshiftrt.
12864 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
12865 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
12866 (*cond_<optab><mode>_any_const): New patterns.
12867
12868 2019-08-15 Martin Liska <mliska@suse.cz>
12869
12870 PR ipa/91438
12871 * cgraph.c (cgraph_node::remove): When setting
12872 n->origin = NULL for all nested functions, reset
12873 also next_nested.
12874
12875 2019-08-15 Martin Liska <mliska@suse.cz>
12876
12877 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
12878 and next_nested.
12879
12880 2019-08-15 Martin Liska <mliska@suse.cz>
12881
12882 PR ipa/91404
12883 * passes.c (order): Remove.
12884 (uid_hash_t): Likewise).
12885 (remove_cgraph_node_from_order): Remove from set
12886 of pointers (cgraph_node *).
12887 (insert_cgraph_node_to_order): New.
12888 (duplicate_cgraph_node_to_order): New.
12889 (do_per_function_toporder): Register all 3 cgraph hooks.
12890 Skip removed_nodes now as we know about all of them.
12891
12892 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
12893
12894 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
12895 <case E_V8QImode>: Use vector_set path for
12896 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
12897 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
12898 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
12899
12900 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12901
12902 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
12903
12904 2019-08-14 Martin Sebor <msebor@redhat.com>
12905
12906 PR tree-optimization/91294
12907 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
12908 source length as exact.
12909
12910 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
12911
12912 * doc/extend.texi: Add "noinit" attribute documentation.
12913 * doc/sourcebuild.texi: Add noinit effective target documentation.
12914 * varasm.c (default_section_type_flags): Add support for "noinit"
12915 section.
12916 (default_elf_select_section): Add support for "noinit" attribute.
12917 * config/msp430/msp430.c (msp430_attribute_table): Remove
12918 "noinit" entry.
12919
12920 2019-08-14 Richard Biener <rguenther@suse.de>
12921 Uroš Bizjak <ubizjak@gmail.com>
12922
12923 PR target/91154
12924 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
12925 mode arguments.
12926 (scalar_chain::smode): New member.
12927 (scalar_chain::vmode): Likewise.
12928 (dimode_scalar_chain): Rename to...
12929 (general_scalar_chain): ... this.
12930 (general_scalar_chain::general_scalar_chain): Take mode arguments.
12931 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
12932 base with TImode and V1TImode.
12933 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
12934 (general_scalar_chain::vector_const_cost): Adjust for SImode
12935 chains.
12936 (general_scalar_chain::compute_convert_gain): Likewise. Add
12937 {S,U}{MIN,MAX} support.
12938 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
12939 (general_scalar_chain::make_vector_copies): Likewise. Handle
12940 non-DImode chains appropriately.
12941 (general_scalar_chain::convert_reg): Likewise.
12942 (general_scalar_chain::convert_op): Likewise.
12943 (general_scalar_chain::convert_insn): Likewise. Add
12944 fatal_insn_not_found if the result is not recognized.
12945 (convertible_comparison_p): Pass in the scalar mode and use that.
12946 (general_scalar_to_vector_candidate_p): Likewise. Rename from
12947 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
12948 (scalar_to_vector_candidate_p): Remove by inlining into single
12949 caller.
12950 (general_remove_non_convertible_regs): Rename from
12951 dimode_remove_non_convertible_regs.
12952 (remove_non_convertible_regs): Remove by inlining into single caller.
12953 (convert_scalars_to_vector): Handle SImode and DImode chains
12954 in addition to TImode chains.
12955 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
12956 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
12957 (*<maxmin>di3_doubleword): Likewise.
12958
12959 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12960 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12961
12962 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
12963 (*cond_bic<mode>_any): New patterns.
12964
12965 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12966
12967 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
12968 take the equivalent mask, as well as a bit count.
12969 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
12970 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
12971 (aarch64_sve_pred_and_operand): New predicates.
12972 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
12973 code attribute.
12974 * config/aarch64/aarch64-sve.md
12975 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
12976 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
12977
12978 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12979
12980 * config/aarch64/aarch64-sve.md
12981 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
12982 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
12983 New patterns.
12984
12985 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12986 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12987
12988 * config/aarch64/aarch64-sve.md
12989 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
12990 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
12991
12992 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12993 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12994
12995 * config/aarch64/aarch64-sve.md
12996 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
12997 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
12998
12999 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13000
13001 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
13002 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
13003 New pattern.
13004
13005 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13006 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13007
13008 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
13009
13010 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13011 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13012
13013 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
13014 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
13015 (aarch64_print_operand): Add support for %I.
13016 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
13017 Bitcast floating-point constants to the corresponding integer constant.
13018 (aarch64_float_const_representable_p): Handle vectors as well
13019 as scalars.
13020 (aarch64_expand_sve_vcond): Make sure that the operands are valid
13021 for the new vcond_mask_<mode><vpred> expander.
13022 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
13023 test aarch64_float_const_representable_p.
13024 (aarch64_sve_reg_or_dup_imm): New predicate.
13025 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
13026 gen_vcond_mask_<mode><vpred> instead of
13027 gen_aarch64_sve_dup<mode>_const.
13028 (vcond_mask_<mode><vpred>): Turn into a define_expand that
13029 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
13030 for operands 1 and 2 respectively. Force operand 2 into a
13031 register if operand 1 is a register. Fold old define_insn...
13032 (aarch64_sve_dup<mode>_const): ...and this define_insn...
13033 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
13034 floating-point constants that can be moved as integers. Add
13035 alternatives for MOV /M and FMOV /M.
13036 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
13037 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
13038 1 and 2 respectively.
13039 * config/aarch64/constraints.md (Ufc): Handle vectors as well
13040 as scalars.
13041 (vss): New constraint.
13042
13043 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13044
13045 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
13046 (aarch64_sve_float_maxmin_operand): New predicates.
13047 * config/aarch64/constraints.md (vsB): New constraint.
13048 (vsM): Fix typo.
13049 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
13050 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
13051 UNSPEC_COND_FMINNM.
13052 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
13053 Use aarch64_sve_float_maxmin_operand for operand 2.
13054 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
13055 Add alternatives for the constant forms.
13056
13057 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13058
13059 * config/aarch64/constraints.md (vsb): New constraint.
13060 (vsm): Generalize description.
13061 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
13062 iterator.
13063 (sve_imm_con): Handle smax, smin, umax and umin.
13064 (sve_imm_prefix): New code attribute.
13065 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
13066 (aarch64_sve_vsb_operand): New predicates.
13067 (aarch64_sve_mul_immediate): Rename to...
13068 (aarch64_sve_vsm_immediate): ...this.
13069 (aarch64_sve_mul_operand): Rename to...
13070 (aarch64_sve_vsm_operand): ...this.
13071 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
13072 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
13073 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
13074 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
13075 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
13076 add movprfx support for the immediate alternatives.
13077 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
13078 of the above.
13079 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
13080 for operand 3.
13081
13082 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13083
13084 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
13085 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
13086 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
13087
13088 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13089
13090 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
13091 (optab, sve_int_op): Handle them.
13092 * config/aarch64/aarch64-sve.md: Expand comment.
13093
13094 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13095
13096 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
13097 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
13098 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
13099
13100 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13101
13102 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
13103 (aarch64_expand_sve_const_pred_trn): New functions.
13104 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
13105 use the above functions when the parameter is true.
13106 (aarch64_expand_sve_const_pred): Update call accordingly.
13107 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
13108 Rename to...
13109 (@aarch64_sve_<perm_insn><mode>): ...this.
13110
13111 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13112
13113 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
13114 Declare.
13115 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
13116 (aarch64_sve_emit_int_cmp): New functions.
13117 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
13118 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
13119 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
13120 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
13121 (UNSPEC_PRED_Z): New unspec.
13122 (set_clobber_cc_nzc): Delete.
13123 * config/aarch64/aarch64-sve.md: Add a block comment about
13124 UNSPEC_PRED_Z.
13125 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
13126 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
13127 the old pattern with that name. Use UNSPEC_PRED_Z instead of
13128 UNSPEC_MERGE_PTRUE.
13129 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
13130 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
13131 check for compatible predicates.
13132 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
13133 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
13134 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
13135 comparisons above.
13136
13137 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13138
13139 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
13140 * config/aarch64/aarch64-sve.md: Add a section describing it.
13141 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
13142 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
13143 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
13144 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
13145 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
13146 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
13147 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
13148 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
13149 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
13150 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
13151 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
13152 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
13153 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
13154 (aarch64_evpc_rev_local): Update accordingly.
13155
13156 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13157
13158 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
13159 iterators.
13160 (SVE_BHSI, SVE_SDI): Tweak comment.
13161 (SVE_HSDI): Likewise. Fix definition.
13162 (SVE_SDF): New mode iterator.
13163 (elem_bits): New mode attribute.
13164 (SVE_COND_FCVT): New int iterator.
13165 * config/aarch64/aarch64-sve.md
13166 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
13167 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
13168 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
13169 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
13170 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
13171 ...these new patterns.
13172 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
13173 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
13174 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
13175 Merge into...
13176 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
13177 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
13178 ...these new patterns.
13179 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
13180 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
13181 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
13182 ...this new pattern.
13183 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
13184 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
13185 ...this new pattern.
13186 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
13187
13188 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13189
13190 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
13191 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
13192 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
13193 unspecs.
13194 (optab, su): Handle them.
13195 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
13196 * config/aarch64/aarch64-sve.md
13197 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
13198 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
13199 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
13200 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
13201 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
13202 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
13203 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
13204 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
13205 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
13206 FIXUORS.
13207 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
13208 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
13209 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
13210 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
13211 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
13212 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
13213 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
13214 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
13215 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
13216 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
13217 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
13218 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
13219 of UNSPEC_FLOAT_CONVERT.
13220 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
13221 aarch64_sve_extend<mode><Vwide>2.
13222
13223 2019-08-14 Richard Biener <rguenther@suse.de>
13224
13225 PR target/91154
13226 * config/i386/i386-features.c
13227 (dimode_scalar_chain::compute_convert_gain): Compute and dump
13228 individual instruction gain. Fix reg-reg copy GRP cost. Use
13229 ix86_cost->sse_op for vector instruction costs.
13230
13231 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13232
13233 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
13234 (cmp_op): Handle it.
13235 (SVE_COND_FP_CMP): Rename to...
13236 (SVE_COND_FP_CMP_I0): ...this.
13237 (SVE_FP_CMP): Remove.
13238 * config/aarch64/aarch64-sve.md
13239 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
13240 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
13241 using unspecs to represent the comparison.
13242 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
13243 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
13244 accordingly.
13245 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
13246 (aarch64_unspec_cond_code): Move after integer code. Handle
13247 UNORDERED.
13248 (aarch64_emit_sve_predicated_cond): Replace with...
13249 (aarch64_emit_sve_fp_cond): ...this new function.
13250 (aarch64_emit_sve_or_conds): Replace with...
13251 (aarch64_emit_sve_or_fp_conds): ...this new function.
13252 (aarch64_emit_sve_inverted_cond): Replace with...
13253 (aarch64_emit_sve_invert_fp_cond): ...this new function.
13254 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
13255
13256 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13257
13258 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
13259 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
13260 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
13261 SVE_HSD instead of SVE_SD.
13262
13263 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13264 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13265
13266 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
13267 iterator.
13268 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
13269 attributes.
13270 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
13271 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
13272 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
13273 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
13274 (*div<SVE_F:mode>3): Generalize to...
13275 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
13276
13277 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13278 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13279
13280 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
13281 constants.
13282 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
13283 predicate.
13284 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
13285 Declare.
13286 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
13287 function.
13288 * config/aarch64/aarch64-sve.md: Add a block comment about the
13289 handling of predicated FP operations.
13290 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
13291 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
13292 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
13293 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
13294 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
13295 operand.
13296 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
13297 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
13298 operand.
13299 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
13300 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
13301 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
13302 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
13303 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
13304 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
13305 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
13306 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
13307 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
13308 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
13309 strictness operands. Use aarch64_sve_pred_dominates_p to check
13310 whether the predicate on the conditional operation is suitable
13311 for merging. Split patterns into the canonical equal-predicate form.
13312 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
13313 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
13314
13315 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13316 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13317
13318 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
13319 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
13320 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
13321 rtx codes.
13322 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
13323 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
13324 unspecs.
13325
13326 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13327 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13328
13329 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
13330 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
13331 actually has, rather than relying on REG_EQUAL notes.
13332 Make the insn operand order match the SVE operand order.
13333 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
13334 the SVE operand order.
13335
13336 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13337
13338 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
13339 (aarch64_emit_set_immediate): Likewise.
13340 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
13341 (aarch64_pfalse_reg): Likewise.
13342 (aarch64_convert_sve_data_to_pred): New function.
13343 (aarch64_sve_move_pred_via_while): Take an optional target register
13344 and the required register mode.
13345 (aarch64_expand_sve_const_pred_1): New function.
13346 (aarch64_expand_sve_const_pred): Likewise.
13347 (aarch64_expand_mov_immediate): Build an all-true predicate
13348 if the significant bits of the immediate are all true. Use
13349 aarch64_expand_sve_const_pred for all compile-time predicate constants.
13350 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
13351 before register allocation.
13352 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
13353 a VNx16BI PTRUE when splitting the memory alternative.
13354 (vec_duplicate<mode>): Update accordingly.
13355 (*pred_cmp<cmp_op><mode>): Rename to...
13356 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
13357
13358 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13359
13360 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
13361 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
13362 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
13363 (UNSPEC_PTEST): New unspec.
13364 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
13365 * config/aarch64/iterators.md (data_bytes): New mode attribute.
13366 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
13367 * config/aarch64/aarch64-sve.md: Add a new section describing the
13368 handling of UNSPEC_PTEST.
13369 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
13370 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
13371 (ptest_ptrue<mode>): Replace with...
13372 (aarch64_ptest<mode>): ...this new pattern.
13373 (cbranch<mode>4): Update after above changes.
13374 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
13375 UNSPEC_PTEST_PTRUE.
13376 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
13377 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
13378 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
13379
13380 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
13381
13382 PR lto/91287
13383 * builtins.c (builtin_with_linkage_p): New function.
13384 * builtins.h (builtin_with_linkage_p): New function.
13385 * symtab.c (write_symbol): Remove redundant assert.
13386 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
13387 Remove FIXME and use builtin_with_linkage_p.
13388
13389 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13390
13391 PR middle-end/91421
13392 * tree-core.h (function_decl::function_code): Change type to
13393 unsigned int.
13394 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
13395 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
13396 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
13397 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
13398 is BUILT_IN_NORMAL.
13399 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
13400 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
13401 (fndecl_built_in_p): Change the type of the "name" argument to
13402 unsigned int.
13403 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
13404 after check for DECL_BUILT_IN_CLASS.
13405 * cgraphclones.c (build_function_decl_skip_args): Use
13406 set_decl_built_in_function.
13407 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
13408 * ipa-split.c (split_function): Likewise.
13409 * langhooks.c (add_builtin_function_common): Likewise.
13410 * omp-simd-clone.c (simd_clone_create): Likewise.
13411 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
13412 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
13413 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
13414 DECL_FUNCTION_CODE.
13415 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
13416 instead of DECL_FUNCTION_CODE.
13417 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
13418 instead of DECL_FUNCTION_CODE.
13419 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
13420 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
13421 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
13422 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
13423 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
13424 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
13425 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
13426 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
13427 (alpha_gimple_fold_builtin): Likewise.
13428 * config/arc/arc.c (arc_expand_builtin): Likewise.
13429 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
13430 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
13431 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
13432 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
13433 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
13434 * config/frv/frv.c (frv_expand_builtin): Likewise.
13435 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
13436 (gcn_expand_builtin): Likewise.
13437 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
13438 (fold_builtin_cpu): Likewise.
13439 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
13440 * config/i386/i386.c (ix86_fold_builtin): Likewise.
13441 (ix86_gimple_fold_builtin): Likewise.
13442 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
13443 (ia64_expand_builtin): Likewise.
13444 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
13445 * config/mips/mips.c (mips_expand_builtin): Likewise.
13446 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
13447 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
13448 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
13449 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
13450 * config/pa/pa.c (pa_expand_builtin): Likewise.
13451 * config/pru/pru.c (pru_expand_builtin): Likewise.
13452 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
13453 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13454 Likewise.
13455 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
13456 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
13457 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
13458 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
13459 (rs6000_builtin_reciprocal): Likewise.
13460 * config/rx/rx.c (rx_expand_builtin): Likewise.
13461 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
13462 * config/s390/s390.c (s390_expand_builtin): Likewise.
13463 * config/sh/sh.c (sh_expand_builtin): Likewise.
13464 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
13465 (sparc_fold_builtin): Likewise.
13466 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
13467 * config/spu/spu.c (spu_expand_builtin): Likewise.
13468 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
13469 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
13470 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
13471 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
13472 (xtensa_expand_builtin): Likewise.
13473
13474 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13475
13476 PR middle-end/91421
13477 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
13478 before the DECL_FUNCTION_CODE.
13479 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
13480 to check for a BUILT_IN_ALLOCA call.
13481 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
13482 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
13483 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
13484 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
13485 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
13486 for BUILT_IN_NORMAL functions.
13487 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
13488 test for BUILT_IN_TM_ABORT.
13489 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
13490 to check for a BUILT_IN_STACK_RESTORE call.
13491 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
13492 * tree-ssa-threadedge.c
13493 (record_temporary_equivalences_from_stmts_at_dest): Check for a
13494 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
13495 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
13496 test for a BUILT_IN_NORMAL call instead of a negative test for
13497 an internal function call.
13498
13499 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13500
13501 * tree.h (build_vector_a_then_b): Declare.
13502 * tree.c (build_vector_a_then_b): New function.
13503 * fold-const-call.c (fold_while_ult): Likewise.
13504 (fold_const_call): Use it to handle IFN_WHILE_ULT.
13505 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
13506 (aarch64_svpattern): New enum.
13507 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
13508 constants through aarch64_expand_mov_immediate.
13509 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
13510 than general_operand as the predicate for operand 1.
13511 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
13512 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
13513 insn_type.
13514 (simd_immediate_info::simd_immediate_info): New overload that
13515 takes a scalar_int_mode and an svpattern.
13516 (simd_immediate_info::u): Add a "pattern" field.
13517 (svpattern_token): New function.
13518 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
13519 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
13520 (aarch64_sve_move_pred_via_while): New functions.
13521 (aarch64_expand_mov_immediate): Try using
13522 aarch64_sve_move_pred_via_while for predicates that contain N ones
13523 followed by M zeros but that do not correspond to a VLnnn pattern.
13524 (aarch64_sve_pred_valid_immediate): New function.
13525 (aarch64_simd_valid_immediate): Use it instead of dealing directly
13526 with PTRUE and PFALSE.
13527 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
13528 forms.
13529
13530 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
13531
13532 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
13533 flag.
13534 (darwin_override_options): Likewise.
13535 * config/darwin.h: Likewise.
13536 * config/darwin.opt: Likewise.
13537 * config/i386/i386.c (output_pic_addr_const): Likewise.
13538 * config/rs6000/darwin.h: Likewise.
13539 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
13540 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
13541 ... this TARGET_MACHO_SYMBOL_STUBS.
13542 (FUNCTION_PROFILER):Likewise.
13543 * config/i386/i386.h: Likewise.
13544
13545 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
13546
13547 * config/i386/i386-expand.c (ix86_expand_vector_extract)
13548 <case E_V2SImode>: Use vec_extr path for
13549 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
13550 <case E_V8QImode>: Ditto.
13551 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
13552 Use SWI48 mode iterator. Use %k to output operand 0.
13553 (*mmx_pextrw): New insn pattern.
13554 (*mmx_pextrb): Ditto.
13555 (*mmx_pextrb_zext): Ditto.
13556
13557 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
13558
13559 * target.def (libc_has_function, libc_has_fast_function): Improve
13560 documentation strings.
13561 * doc/tm.texi: Regenerate.
13562
13563 2019-08-13 Caroline Tice <cmtice@google.com>
13564
13565 PR other/91396
13566 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
13567 vtv_end.o or vtv_end_preinit.o files if !static.
13568
13569 2019-08-13 Olivier Hainque <hainque@adacore.com>
13570
13571 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
13572
13573 2019-08-13 Olivier Hainque <hainque@adacore.com>
13574
13575 * rtlanal.c (tablejump_casesi_pattern): New function, to
13576 determine if a tablejump insn is a casesi dispatcher. Extracted
13577 from patch_jump_insn.
13578 * rtl.h (tablejump_casesi_pattern): Declare.
13579 * cfgrtl.c (patch_jump_insn): Use it.
13580 * dwarf2cfi.c (create_trace_edges): Use it.
13581
13582 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
13583
13584 PR target/81800
13585 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
13586 operand is larger than a long int.
13587
13588 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13589
13590 * machmode.h (opt_mode::else_mode): New function.
13591 (opt_mode::else_blk): Use it.
13592 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
13593 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
13594 (aarch64_gen_stepped_int_parallel): Likewise.
13595 (aarch64_stepped_int_parallel_p): Likewise.
13596 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
13597 argument.
13598 * config/aarch64/aarch64.c
13599 (aarch64_expand_sve_widened_duplicate): Delete.
13600 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
13601 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
13602 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
13603 argument. Use early returns in the !CONST_INT_P handling.
13604 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
13605 than handling some inline.
13606 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
13607 from...
13608 (aarch64_simd_container_mode): ...here.
13609 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
13610 (aarch64_sve_ld1rq_operand_p): New functions.
13611 * config/aarch64/predicates.md (descending_int_parallel)
13612 (aarch64_sve_ld1rq_operand): New predicates.
13613 * config/aarch64/constraints.md (UtQ): New constraint.
13614 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
13615 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
13616 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
13617 (@aarch64_sve_reinterpret<mode>): New expander.
13618 (*aarch64_sve_reinterpret<mode>): New pattern.
13619 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
13620 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
13621 (*sve_ld1rq<Vesize>): Replace with...
13622 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
13623
13624 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
13625
13626 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
13627 16:12.
13628
13629 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13630
13631 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
13632 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
13633 (msp430_check_path_for_devices): New.
13634 (parse_devices_csv_1): New.
13635 (parse_devices_csv): New.
13636 (msp430_extract_mcu_data): Try to find devices.csv and search for the
13637 MCU data in devices.csv before using the hard-coded data.
13638 Warn if devices.csv isn't found and the MCU wasn't found in the
13639 hard-coded data either.
13640 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
13641 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
13642 Search for devices.csv on -I and -L paths.
13643 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
13644 msp430_set_driver_var.
13645 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
13646 -mdevices-csv-loc=.
13647 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
13648 searched for devices.csv.
13649 (mwarn-devices-csv): Document option.
13650
13651 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13652
13653 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
13654 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
13655 Use a single Dn alternative instead of separate Dz and Dm
13656 alternatives. Use aarch64_output_sve_move_immediate.
13657 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
13658 function.
13659 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
13660 for predicates too.
13661 (aarch64_output_sve_mov_immediate): Handle predicate modes.
13662 (aarch64_output_ptrue): Delete.
13663
13664 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13665
13666 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
13667 INDEX.
13668 (simd_immediate_info::value, simd_immediate_info::step)
13669 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
13670 with...
13671 (simd_immediate_info::u): ...this new union.
13672 (simd_immediate_info::simd_immediate_info): Update accordingly.
13673 (aarch64_output_simd_mov_immediate): Likewise.
13674 (aarch64_output_sve_mov_immediate): Likewise.
13675
13676 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13677
13678 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
13679 extra_gcc_objs.
13680 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
13681 (msp430_select_cpu): New spec function.
13682 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
13683 MCU data.
13684 * config/msp430/msp430-devices.c: New file.
13685 * config/msp430/msp430-devices.h: New file.
13686 * config/msp430/msp430.c: Remove msp430_mcu_data.
13687 (msp430_option_override): Use msp430_extract_mcu_data to extract
13688 MCU data.
13689 (msp430_use_f5_series_hwmult): Likewise.
13690 (use_32bit_hwmult): Likewise.
13691 (msp430_no_hwmult): Likewise.
13692 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
13693 assembler.
13694 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
13695 and -mcpu option.
13696 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
13697 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
13698 Remove hard-coded MCU multilib data.
13699
13700 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13701
13702 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
13703 based on the mode instead of testing properties of it.
13704
13705 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13706
13707 * doc/md.texi: Document the x and y constraints for AArch64.
13708 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
13709 (FP_LO8_REGS): New reg_class.
13710 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
13711 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
13712 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
13713 * config/aarch64/predicates.md (aarch64_simd_register): Use
13714 FP_REGNUM_P instead of checking the classes manually.
13715 * config/aarch64/constraints.md (y): New constraint.
13716
13717 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13718
13719 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
13720 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
13721 * config/aarch64/aarch64-simd.md
13722 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
13723 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
13724 from the asm template.
13725 * config/aarch64/aarch64-sve.md
13726 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
13727 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
13728 from the asm template.
13729 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
13730 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
13731 from the asm template.
13732 * config/aarch64/aarch64-simd-builtins.def: Update comment.
13733
13734 2019-08-13 Martin Liska <mliska@suse.cz>
13735
13736 * value-prof.c (gimple_ic_transform): Add new line.
13737 Print details with MSG_NOTE.
13738
13739 2019-08-13 Martin Liska <mliska@suse.cz>
13740
13741 * doc/invoke.texi: Document automatic detection of jobserver.
13742 * lto-wrapper.c (run_gcc): Detect jobserver always.
13743
13744 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
13745
13746 * config/i386/i386-expand.c (ix86_expand_vector_set)
13747 <case E_V2SImode>: Use vec_merge path for
13748 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
13749 <case E_V8QImode>: Ditto.
13750 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
13751 (*mmx_pinsrb): Ditto.
13752
13753 2019-08-12 Jakub Jelinek <jakub@redhat.com>
13754
13755 PR target/83250
13756 PR target/91340
13757 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
13758 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
13759 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
13760 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
13761 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
13762
13763 2019-08-12 Richard Biener <rguenther@suse.de>
13764
13765 PR lto/91375
13766 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
13767 flag_devirtualize.
13768
13769 2019-08-12 Richard Biener <rguenther@suse.de>
13770
13771 PR driver/91130
13772 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
13773 lang_mask option, always use CL_DRIVER.
13774 (get_options_from_collect_gcc_options): Adjust.
13775 (find_and_merge_options): Likewise.
13776 (run_gcc): Likewise.
13777
13778 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13779
13780 * ipa-predicate.c (add_condition): Restore inverted test.
13781
13782 2019-08-10 Jakub Jelinek <jakub@redhat.com>
13783
13784 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
13785 (enum omp_clause_device_type_kind): New enum.
13786 (struct tree_omp_clause): Add subcode.device_type_kind.
13787 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
13788 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
13789 for device_type clause.
13790 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
13791 * tree-pretty-print.c (dump_omp_clause): Likewise.
13792
13793 PR target/91408
13794 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
13795 vector_operand.
13796
13797 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
13798
13799 * reload1.c (finish_spills): Do not check ira_conflicts_p when
13800 handling spilled pseudos.
13801
13802 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
13803
13804 PR target/91386
13805 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
13806 to preserve the contents of the original insns.
13807
13808 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
13809
13810 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
13811 (addsi3_compare_op2): Likewise.
13812
13813 2019-08-09 Martin Liska <mliska@suse.cz>
13814
13815 * alias.c (alias_ptr_types_compatible_p): Strengten
13816 type comparison in LTO mode.
13817
13818 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
13819
13820 PR middle-end/90313
13821 * tree-tailcall.c (find_tail_calls): Reject calls that might
13822 read from an escaped RESULT_DECL.
13823
13824 2019-08-09 Martin Liska <mliska@suse.cz>
13825
13826 * doc/invoke.texi: Document the option value.
13827 * lto-wrapper.c (run_gcc): Set auto_parallel
13828 only with -flto=auto.
13829
13830 2019-08-09 Martin Liska <mliska@suse.cz>
13831
13832 * opts.c (common_handle_option): Error for an invalid argument
13833 to -flto=.
13834
13835 2019-08-09 Martin Liska <mliska@suse.cz>
13836
13837 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
13838 use dump_printf to report optimization.
13839 (sem_variable::merge): Likwise.
13840 (sem_item_optimizer::merge_classes): Use dump_printf to report
13841 ICF hits.
13842
13843 2019-08-09 Martin Liska <mliska@suse.cz>
13844
13845 * value-prof.c (gimple_divmod_fixed_value_transform):
13846 Use dump_printf_loc.
13847 (gimple_mod_pow2_value_transform): Likewise.
13848 (gimple_mod_subtract_transform): Likewise.
13849 (init_node_map): Likewise.
13850 (gimple_ic_transform): Likewise.
13851 (gimple_stringops_transform): Likewise.
13852
13853 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
13854
13855 * doc/extend.texi: Add const qualifier to ld intrinsics.
13856
13857 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
13858
13859 * config/rs6000/dfp.md (D64_D128): Rename to ...
13860 (DDTD): ... this, throughout.
13861 (dfp_suffix): Rename to ...
13862 (q): ... this, throughout.
13863
13864 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
13865
13866 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
13867 (dfp_suffix): Ditto.
13868 (adddd3, addtd3): Merge to ...
13869 (add<mode>3 for D64_D128): ... this.
13870 (subdd3, subtd3): Merge to ...
13871 (sub<mode>3 for D64_D128): ... this.
13872 (muldd3, multd3): Merge to ...
13873 (mul<mode>3 for D64_D128): ... this.
13874 (divdd3, divtd3): Merge to ...
13875 (div<mode>3 for D64_D128): ... this.
13876 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
13877 (*cmp<mode>_internal1 for D64_D128): ... this.
13878 (ftruncdd2, ftrunctd2): Merge to ...
13879 (ftrunc<mode>2 for D64_D128): ... this.
13880 (fixdddi2, fixtddi2): Merge to ...
13881 (fix<mode>di2 for D64_D128): ... this.
13882
13883 2019-08-08 Jim Wilson <jimw@sifive.com>
13884
13885 PR target/91229
13886 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
13887 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
13888 Pass into recursive call.
13889 (riscv_flatten_aggregate_argument): New arg. Pass to
13890 riscv_flatten_aggregate_field.
13891 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
13892 riscv_flatten_aggregate_argument twice, with false and true as last
13893 arg. Process result twice. Compare results and warn if different.
13894 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
13895
13896 2019-08-08 Martin Liska <mliska@suse.cz>
13897
13898 PR bootstrap/91352
13899 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
13900 * lto-wrapper.c (jobserver_active_p): Likewise.
13901
13902 2019-08-08 Martin Liska <mliska@suse.cz>
13903
13904 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
13905 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
13906 (create_version_clone_with_body): Likewise.
13907
13908 2019-08-08 Jakub Jelinek <jakub@redhat.com>
13909
13910 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
13911 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
13912 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
13913 GOVD_EXPLICIT flags.
13914 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
13915 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
13916 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
13917 call install_var_field with mask 11 instead of 3.
13918 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
13919 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
13920
13921 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
13922
13923 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
13924 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
13925
13926 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
13927
13928 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
13929 MOVPRFX alternatives. Make the GPR alternatives more expensive
13930 than the FPR ones.
13931
13932 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
13933
13934 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
13935 Disparage the GPR alternative relative to the FPR one.
13936 Fix handling of 8-bit and 16-bit FPR values.
13937
13938 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
13939
13940 * config/aarch64/iterators.md (BITWISEV): Delete.
13941 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
13942 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
13943 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
13944 UNSPEC_FMINNMV, UNSPEC_FMINV.
13945 (bit_reduc_op): Delete.
13946 (sve_int_op): New int attribute.
13947 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
13948 UNSPEC_FMINNMV, UNSPEC_FMINV.
13949 * config/aarch64/aarch64-sve.md
13950 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
13951 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
13952 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
13953 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
13954 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
13955 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
13956 new patterns.
13957 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
13958 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
13959 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
13960 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
13961 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
13962 new patterns.
13963
13964 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
13965
13966 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
13967 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
13968 (fms<mode>4, *fms<mode>4): Replace with...
13969 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
13970 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
13971 Use unspecs instead of rtx codes.
13972 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
13973 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
13974
13975 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
13976
13977 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
13978 int iterator.
13979 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
13980 * config/aarch64/aarch64-sve.md
13981 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
13982 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
13983 use a single unspec for the rhs.
13984 (*<su><maxmin><mode>3): Delete.
13985 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
13986
13987 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
13988
13989 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
13990 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
13991 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
13992 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
13993 (optab, sve_fp_op): Handle them.
13994 (SVE_FP_UNARY): Delete.
13995 (optab): Remove sqrt entry.
13996 (sve_fp_op): Remove neg, abs and sqrt entries.
13997 (SVE_COND_FP_UNARY): New int iterator.
13998 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
13999 (*<frint_pattern><mode>2): Delete.
14000 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
14001 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
14002 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
14003 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
14004
14005 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14006
14007 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
14008
14009 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14010
14011 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
14012 (UNSPEC_COND_FADD): ...this.
14013 (UNSPEC_COND_SUB): Rename to...
14014 (UNSPEC_COND_FSUB): ...this.
14015 (UNSPEC_COND_MUL): Rename to...
14016 (UNSPEC_COND_FMUL): ...this.
14017 (UNSPEC_COND_DIV): Rename to...
14018 (UNSPEC_COND_FDIV): ...this.
14019 (UNSPEC_COND_MAX): Rename to...
14020 (UNSPEC_COND_FMAXNM): ...this.
14021 (UNSPEC_COND_MIN): Rename to...
14022 (UNSPEC_COND_FMINNM): ...this.
14023 (UNSPEC_COND_LT): Rename to...
14024 (UNSPEC_COND_FCMLT): ...this.
14025 (UNSPEC_COND_LE): Rename to...
14026 (UNSPEC_COND_FCMLE): ...this.
14027 (UNSPEC_COND_EQ): Rename to...
14028 (UNSPEC_COND_FCMEQ): ...this.
14029 (UNSPEC_COND_NE): Rename to...
14030 (UNSPEC_COND_FCMNE): ...this.
14031 (UNSPEC_COND_GE): Rename to...
14032 (UNSPEC_COND_FCMGE): ...this.
14033 (UNSPEC_COND_GT): Rename to...
14034 (UNSPEC_COND_FCMGT): ...this.
14035 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
14036 (sve_fp_op_rev): Update accordingly.
14037 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
14038
14039 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14040
14041 * config/aarch64/aarch64-sve.md: Reorganize contents and add
14042 banner comments.
14043 * config/aarch64/check-sve-md.awk: New file.
14044 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
14045 (insn-conditions.md): Depend on it.
14046
14047 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
14048
14049 PR target/91385
14050 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
14051 (*negsi2_cmpz_zext): Ditto.
14052
14053 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14054
14055 * config/aarch64/iterators.md (commutative): Remove.
14056
14057 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
14058
14059 PR driver/91130
14060 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
14061 processing COLLECT_GCC_OPTIONS.
14062 (run_gcc): Likewise.
14063
14064 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
14065
14066 PR tree-optimization/91109
14067 * lra-remat.c (update_scratch_ops): Remove assignment of the
14068 hard register.
14069
14070 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14071
14072 * data-streamer.h (streamer_write_poly_uint64): Declare.
14073 (streamer_read_poly_uint64): Likewise.
14074 * data-streamer-in.c (streamer_read_poly_uint64): New function.
14075 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
14076 * ipa-predicate.h (condition::size): Turn into a poly_int64.
14077 (add_condition): Take a poly_int64 size.
14078 * ipa-predicate.c (add_condition): Likewise.
14079 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
14080 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
14081 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
14082 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
14083 condition::size as a poly_int64.
14084 (unmodified_parm_1): Take a poly_int64 size pointer.
14085 (unmodified_parm): Likewise.
14086 (unmodified_parm_or_parm_agg_item): Likewise.
14087 (set_cond_stmt_execution_predicate): Update accordingly.
14088 (set_switch_stmt_execution_predicate): Likewise.
14089 (will_be_nonconstant_expr_predicate): Likewise.
14090 (will_be_nonconstant_predicate): Likewise.
14091 (inline_read_section): Stream condition::size as a poly_int.
14092 (ipa_fn_summary_write): Likewise.
14093
14094 2019-08-07 Martin Liska <mliska@suse.cz>
14095
14096 * fold-const.c (twoval_comparison_p): Replace int
14097 with bool as a return type.
14098 (simple_operand_p): Likewise.
14099 (operand_equal_p): Replace int with bool as a return type.
14100 * fold-const.h (operand_equal_p): Likewise.
14101
14102 2019-08-07 Jakub Jelinek <jakub@redhat.com>
14103
14104 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
14105 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
14106 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
14107 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
14108 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
14109 * tree-pretty-print.c (dump_omp_clause): Likewise.
14110 * tree-nested.c (convert_nonlocal_omp_clauses,
14111 convert_local_omp_clauses): Likewise.
14112 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
14113 Likewise.
14114 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
14115 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
14116 clause with array or reference to array types, no matter what type
14117 except for reference it has.
14118
14119 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
14120
14121 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
14122
14123 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
14124
14125 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
14126 (arch_canonicalize): Support rv32g and rv64g and fix error
14127 handling.
14128
14129 2019-08-06 Martin Liska <mliska@suse.cz>
14130
14131 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
14132 and DECL_IS_OPERATOR_DELETE_P.
14133
14134 2019-08-06 Jakub Jelinek <jakub@redhat.com>
14135
14136 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
14137 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
14138 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
14139 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
14140 (gimplify_omp_for): Don't do C++ random access iterator clause
14141 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
14142 don't predetermine the artificial iterator in case of C++ random
14143 access iterators as lastprivate, but private. For OMP_LOOP, force
14144 bind expr around simd body and force for_pre_body before the
14145 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
14146 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
14147 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
14148 diff var of C++ random access iterators. Handle
14149 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
14150 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
14151 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
14152 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
14153 * omp-low.c (lower_rec_input_clauses): For
14154 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
14155 variables instead of default constructing them.
14156 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
14157 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
14158 is_taskloop_ctx check from the assert to the guarding condition.
14159
14160 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
14161
14162 * config/riscv/multilib-generator: (canonical_order): New.
14163 (arch_canonicalize): Dito.
14164 Apply arch_canonicalize for alts.
14165
14166 2019-08-05 Martin Sebor <msebor@redhat.com>
14167
14168 * doc/extend.texi (Common Variable Attributes): Document alias
14169 attribute.
14170
14171 2019-08-05 Marek Polacek <polacek@redhat.com>
14172
14173 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
14174 * doc/invoke.texi: Document -Wcomma-subscript.
14175
14176 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
14177
14178 * tree-core.h (tree_function_decl): Make function_code an
14179 independent field. Group the remaining bitfields into bytes
14180 and move decl_type so that it contines to be at a byte boundary.
14181 Leave 12 bits for future expansion.
14182
14183 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
14184
14185 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
14186 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
14187 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
14188 IFN_MASK_STORE.
14189
14190 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
14191
14192 * gimple.h (gimple_move_vops): Declare.
14193 * gimple.c (gimple_move_vops): New function
14194 * gimple-fold.c (replace_call_with_call_and_fold)
14195 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
14196 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
14197 (gimple_fold_call): Use it.
14198 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
14199 * tree-call-cdce.c (use_internal_fn): Likewise.
14200 * tree-if-conv.c (predicate_load_or_store): Likewise.
14201 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
14202 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
14203 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
14204 (update_call_from_tree): Likewise.
14205 * tree-vect-stmts.c (vectorizable_load): Likewise.
14206 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
14207
14208 2019-08-05 Martin Liska <mliska@suse.cz>
14209
14210 PR c++/91334
14211 * tree-ssa-dce.c (propagate_necessity): Handle new operators
14212 with not arguments.
14213 (eliminate_unnecessary_stmts): Likewise.
14214
14215 2019-08-05 Richard Biener <rguenther@suse.de>
14216
14217 PR middle-end/91169
14218 * fold-const.c (get_array_ctor_element_at_index): Create
14219 offset_ints according to the sign of the index type and treat
14220 that as signed if it is obviously so.
14221
14222 2019-08-05 Jakub Jelinek <jakub@redhat.com>
14223
14224 PR target/91341
14225 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
14226 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
14227 _mm256_storeu2_m128i): New function.
14228
14229 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
14230
14231 * config/riscv/riscv.c (riscv_promote_function_mode): New.
14232 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
14233
14234 2019-08-05 Alan Modra <amodra@gmail.com>
14235
14236 PR target/91349
14237 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
14238 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
14239
14240 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
14241
14242 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
14243 bug that was fixed in Tcl 8.6.1.
14244
14245 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
14246
14247 * config/rs6000/future.md: New file.
14248 * config/rs6000/rs6000.md: Include future.md.
14249 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
14250
14251 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14252
14253 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
14254 check to use targetm.slow_unaligned_access instead.
14255
14256 * function.c (assign_param_data_one): Remove unused data members.
14257
14258 2019-08-02 Steve Ellcey <sellcey@marvell.com>
14259
14260 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
14261 build_distinct_type_copy.
14262 (simd_clone_adjust_argument_types): Ditto.
14263 (simd_clone_adjust): Call build_distinct_type_copy here.
14264 (expand_simd_clones): Ditto.
14265
14266 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
14267
14268 PR target/91201
14269 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
14270
14271 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
14272
14273 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
14274 from 'const void *'.
14275 (sort_locs_in_loop_postorder_cmp): Likewise.
14276
14277 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
14278
14279 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
14280 (hot-bb-count-ws-permille): Likewise.
14281 (hot-bb-frequency-fraction): Likewise.
14282 (unlikely-bb-count-fraction): Likewise.
14283 * params.def (hot-bb-count-fraction): Rework description.
14284 (hot-bb-count-ws-permille): Likewise.
14285 (hot-bb-frequency-fraction): Likewise.
14286 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
14287 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
14288
14289 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
14290
14291 PR target/91323
14292 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
14293 Return false.
14294
14295 2019-08-02 Richard Biener <rguenther@suse.de>
14296
14297 * vec.h (vec::sort): Add gcc_qsort_r support.
14298 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
14299 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
14300 to gcc_qsort_r style callback.
14301 (sort_locs_in_loop_postorder_cmp): Likewise.
14302 (analyze_memory_references): Use gcc_sort_r interfaces.
14303 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
14304
14305 2019-08-02 Martin Liska <mliska@suse.cz>
14306
14307 PR lto/91313
14308 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
14309 to detect working job server.
14310 (driver::detect_jobserver): Test whether jobserver
14311 is active from GCC driver. That will prevent situation where
14312 GCC is invoked from a LD plugin and the linker already uses
14313 file descriptors suggested by make. That leads to a wrong
14314 detection.
14315 * gcc.h (driver): Add detect_jobserver.
14316 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
14317 not scanning for --jobserver-auth prefix.
14318
14319 2019-08-02 Jakub Jelinek <jakub@redhat.com>
14320
14321 PR tree-optimization/91201
14322 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
14323 V16QImode extraction without sse4.1 try to use V4SImode lowpart
14324 extraction.
14325
14326 2019-08-01 Martin Sebor <msebor@redhat.com>
14327
14328 PR c++/90947
14329 * tree.c (type_initializer_zero_p): Define.
14330 * tree.h (type_initializer_zero_p): New function.
14331
14332 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
14333
14334 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
14335
14336 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
14337
14338 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
14339 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
14340 * predict.c (maybe_hot_count_p): Likewise.
14341 (maybe_hot_bb_p): Tweak comment.
14342 (maybe_hot_edge_p): Likewise.
14343 (probably_never_executed): Likewise. Minor tweak.
14344 (probably_never_executed_bb_p): Likewise.
14345 (unlikely_executed_edge_p): Likewise.
14346 (probably_never_executed_edge_p): Likewise.
14347 (optimize_function_for_size_p): Likewise.
14348 (optimize_function_for_speed_p): Likewise.
14349 (function_optimization_type): Likewise.
14350 (optimize_bb_for_size_p): Likewise.
14351 (optimize_bb_for_speed_p): Likewise.
14352 (bb_optimization_type): Likewise.
14353 (optimize_edge_for_size_p): Likewise.
14354 (optimize_edge_for_speed_p): Likewise.
14355 (optimize_insn_for_size_p): Likewise.
14356 (optimize_insn_for_speed_p): Likewise.
14357 (optimize_loop_for_size_p): Likewise.
14358 (optimize_loop_for_speed_p): Likewise.
14359 (optimize_loop_nest_for_speed_p): Likewise.
14360 (optimize_loop_nest_for_size_p): Likewise.
14361 (predictable_edge_p): Likewise.
14362 (handle_missing_profiles): Minor tweak.
14363
14364 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
14365
14366 * config/rs6000/predicates.md (pcrel_external_address): Update
14367 comment.
14368
14369 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
14370
14371 PR target/85693
14372 * config/i386/mmx.md (usadv8qi): New expander.
14373
14374 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
14375
14376 PR c++/90590
14377 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
14378 with reserved names that are in a system header.
14379
14380 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
14381
14382 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
14383 (*vec_extractv2si_0_zext_sse4): New insn pattern.
14384 (*vec_extractv2si_0_zext): Ditto.
14385 (*vec_extractv2si_1): Add (rm,x) alternative.
14386 (*vec_extractv2si_1_zext): New insn pattern.
14387 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
14388 insn constraint.
14389
14390 2019-08-01 Richard Biener <rguenther@suse.de>
14391
14392 * domwalk.c (bb_postorder): Remove static variable.
14393 (cmp_bb_postorder): Adjust.
14394 (sort_bbs_postorder): Adjust and use gcc_sort_r.
14395 (dom_walker::walk): Adjust.
14396
14397 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
14398
14399 * sort.cc (sort_r_ctx): New struct.
14400 (reorder23): Make templated on context type.
14401 (reorder45): Ditto.
14402 (cmp1): Ditto. Adjust signature.
14403 (netsort): Ditto.
14404 (mergesort): Ditto.
14405 [CHECKING_P] (cmp2to3): New static function. Use it...
14406 (gcc_qsort) [CHECKING_P]: ...here.
14407 (gcc_sort_r): New function.
14408 * system.h (sort_r_cmp_fn): New function typedef.
14409 (qsort_chk): Adjust signature.
14410 (gcc_sort_r): Declare.
14411 * vec.c (qsort_chk_error): Adjust.
14412 (qsort_chk): Adjust.
14413
14414 2019-08-01 Richard Biener <rguenther@suse.de>
14415
14416 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
14417 (compute_antic): Localize it here.
14418
14419 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
14420
14421 * common/config/riscv/riscv-common.c: Check -march string ends
14422 with null.
14423
14424 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
14425
14426 * ipa-devirt.c (type_warning_cmp): Make static.
14427 (decl_warning_cmp): Ditto.
14428
14429 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
14430
14431 PR target/91050
14432 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
14433 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
14434 use of deleted rs6000_dejagnu_cpu_index variable.
14435 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
14436 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
14437 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
14438 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
14439 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
14440 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
14441
14442 2019-07-31 Richard Biener <rguenther@suse.de>
14443
14444 PR tree-optimization/91280
14445 * tree-ssa-structalias.c (get_constraint_for_component_ref):
14446 Decompose MEM_REF manually for offset handling.
14447
14448 2019-07-31 Richard Biener <rguenther@suse.de>
14449
14450 PR tree-optimization/91293
14451 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
14452 of reduction stmts.
14453
14454 2019-07-31 Matt Thomas <matt@3am-software.com>
14455 Nick Hudson <nick@nthcliff.demon.co.uk>
14456 Matthew Green <mrg@eterna.com.au>
14457 Maya Rashish <coypu@sdf.org>
14458
14459 * config.gcc (hppa*-*-netbsd*): New target.
14460 * config/pa/pa-netbsd.h: New file.
14461 * config/pa/pa32-netbsd.h: New file.
14462
14463 2019-07-31 Jakub Jelinek <jakub@redhat.com>
14464
14465 PR tree-optimization/91201
14466 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
14467
14468 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
14469
14470 * config/gcn/gcn-valu.md
14471 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
14472 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
14473 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
14474 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
14475 struct ilist. Add nops for delayeduse insns.
14476 * config/gcn/gcn.md (delayeduse): New attribute.
14477 (*movbi): Remove s_waitcnt from stores.
14478 (*mov<mode>_insn): Likewise.
14479 (*movti_insn): Likewise. Add delayeduse attribute.
14480 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
14481 (atomic_store<mode>): Remove or adjust s_waitcnt.
14482
14483 2019-07-31 Richard Biener <rguenther@suse.de>
14484
14485 * vr-values.h (vr_values::swap_vr_value): New.
14486 (vr_values::free_value_range): likewise.
14487 * vr-values.c (vr_values::swap_vr_value): Implement.
14488 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
14489 Do not return a range or take a var.
14490 (evrp_range_analyzer::stack): Change back to recording a non-const
14491 value_range *.
14492 * gimple-ssa-evrp-analyze.c
14493 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
14494 value-range.
14495 (evrp_range_analyzer::pop_to_marker): Adjust.
14496 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
14497 (evrp_range_analyzer::pop_value_range): Likewise. Free the
14498 no longer needed value-range.
14499
14500 2019-07-31 Martin Liska <mliska@suse.cz>
14501
14502 * tree-ssa-dce.c (propagate_necessity): Delete operator can
14503 have size and (or) alignment as 2nd and later arguments.
14504 Mark all of them as necessary.
14505
14506 2019-07-31 Richard Biener <rguenther@suse.de>
14507
14508 PR tree-optimization/91178
14509 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
14510 Use tail-recursion.
14511
14512 2019-07-31 Jakub Jelinek <jakub@redhat.com>
14513
14514 PR tree-optimization/91201
14515 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
14516 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
14517 TARGET_AVX512F.
14518 (reduc_plus_scal_<mode>): Improve formatting by introducing
14519 a temporary.
14520
14521 2019-07-31 Sudakshina Das <sudi.das@arm.com>
14522
14523 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
14524 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
14525 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
14526 (aarch64_init_tme_builtins): New.
14527 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
14528 (aarch64_expand_builtin_tme): New.
14529 (aarch64_expand_builtin): Handle TME builtins.
14530 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14531 __ARM_FEATURE_TME when enabled.
14532 * config/aarch64/aarch64-option-extensions.def: Add "tme".
14533 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
14534 (TARGET_TME): New.
14535 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
14536 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
14537 UNSPECV_TCANCEL.
14538 (tstart, ttest, tcommit, tcancel): New instructions.
14539 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
14540 (__tcancel, __ttest): New.
14541 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
14542 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
14543 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
14544 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
14545 * config/arm/types.md: Add new tme type attr.
14546 * doc/invoke.texi: Document "tme".
14547
14548 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
14549
14550 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
14551 warn_unused_result attribute.
14552 (cmse_check_address_range): Add warn_unused_result attribute.
14553
14554 2019-07-31 Richard Biener <rguenther@suse.de>
14555
14556 PR tree-optimization/91257
14557 * tree-vrp.c (union_ranges): Unify equality and less tests
14558 by using compare_values. Re-order cheap tests first.
14559
14560 2019-07-31 Jakub Jelinek <jakub@redhat.com>
14561
14562 PR middle-end/91301
14563 * gimplify.c (gimplify_omp_for): If for class iterator on
14564 distribute parallel for there is no data sharing clause
14565 on inner_for_stmt, look for private clause on combined
14566 parallel too and if found, move it to inner_for_stmt.
14567
14568 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
14569
14570 * lra-int.h (lra_operand_data): Remove early_clobber field.
14571 (lra_insn_reg): Likewise.
14572 * lra.c (debug_operand_data): Update accordingly.
14573 (setup_operand_alternative): Likewise.
14574 (new_insn_reg): Likewise. Remove early_clobber parameter.
14575 (collect_non_operand_hard_regs): Update call accordingly.
14576 Don't assign to lra_insn_reg::early_clobber.
14577 (add_regs_to_insn_regno_info): Remove early_clobber parameter
14578 and update calls to new_insn_reg.
14579 (lra_update_insn_regno_info): Update calls accordingly.
14580 * lra-constraints.c (update_and_check_small_class_inputs): Take the
14581 alternative number as a parameter and test whether the operand
14582 is earlyclobbered in that particular alternative.
14583 (process_alt_operands): Update call accordingly. Use per-alternative
14584 checks for earyclobber here too.
14585 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
14586 against zero for IRA_UNKNOWN_ALT.
14587
14588 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
14589
14590 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
14591
14592 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
14593
14594 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
14595 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
14596
14597 2019-07-30 Martin Liska <mliska@suse.cz>
14598
14599 PR ipa/89330
14600 * cgraph.c (cgraph_edge::make_direct): Use
14601 edge->indirect_unknown_callee as edge->resolve_speculation can
14602 deallocate edge which is this pointer.
14603
14604 2019-07-30 Richard Biener <rguenther@suse.de>
14605
14606 PR tree-optimization/91257
14607 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
14608
14609 2019-07-30 Martin Liska <mliska@suse.cz>
14610
14611 * doc/invoke.texi: Document new behavior.
14612 * lto-wrapper.c (cpuset_popcount): New function
14613 is a copy of libgomp/config/linux/proc.c.
14614 (init_num_threads): Likewise.
14615 (run_gcc): Automatically detect core count for -flto.
14616 (jobserver_active_p): New function.
14617
14618 2019-07-30 Richard Biener <rguenther@suse.de>
14619
14620 PR tree-optimization/91257
14621 * bitmap.h (bitmap_ior_into_and_free): Declare.
14622 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
14623 whether to add the unliked element to the freelist.
14624 (bitmap_list_insert_element_after): Add defaulted param for
14625 an already allocated element.
14626 (bitmap_ior_into_and_free): New function.
14627 * tree-ssa-structalias.c (condense_visit): Reduce the
14628 ponts-to and edge bitmaps of the SCC members in a
14629 logarithmic fashion rather than all to one.
14630
14631 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
14632
14633 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
14634 parameter. When nonnull, make sure that the addition or subtraction
14635 has the same condition.
14636 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
14637 for CFN_COND_MUL too.
14638
14639 2019-07-30 Richard Biener <rguenther@suse.de>
14640
14641 PR tree-optimization/91291
14642 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
14643 constant values.
14644
14645 2019-07-30 Jakub Jelinek <jakub@redhat.com>
14646
14647 PR middle-end/91216
14648 * omp-low.c (global_nonaddressable_vars): New variable.
14649 (use_pointer_for_field): For global decls, if they are non-addressable,
14650 remember it in the global_nonaddressable_vars bitmap, if they are
14651 addressable and in the global_nonaddressable_vars bitmap, ignore their
14652 TREE_ADDRESSABLE bit.
14653 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
14654 vars in global_nonaddressable_vars bitmap.
14655 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
14656
14657 PR target/91150
14658 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
14659 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
14660 comparison to unsigned HOST_WIDE_INT before shifting it left.
14661
14662 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
14663
14664 * config/i386/i386.md (movstrict<mode>): Use register_operand
14665 predicate for operand 0. Add expander condition. Assert that
14666 operand 0 is a SUBREG RTX.
14667 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
14668 Update operand constraints and insn condition.
14669 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
14670 (zero_extendqihi2_and): Do not call gen_movstrictqi.
14671 (*setcc_qi_slp): Use register_operand predicate for operand 0.
14672 Update operand 0 constraints.
14673 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
14674
14675 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14676
14677 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
14678 when -m{code,data}-region are used without -mlarge.
14679 * config/msp430/msp430.c (msp430_option_override): Error when a
14680 non-default code or data region is used without -mlarge.
14681 (msp430_section_attr): Emit a warning and do not add upper/lower/either
14682 attributes when they are used without -mlarge.
14683
14684 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14685
14686 PR target/70320
14687 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
14688
14689 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
14690
14691 PR middle-end/91242
14692 * wide-int.h (generic_wide_int::sext_elt): New function.
14693 * inchash.h (hash::add_wide_int): Use it instead of elt.
14694
14695 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14696
14697 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
14698 CODE_FOR_arm_##.
14699 * config/arm/arm.md (<crc_variant>): Rename to...
14700 (arm_<crc_variant>): ... This.
14701 (<cdp>): Rename to...
14702 (arm_<cdp>): ... This.
14703 (<ldc>): Rename to...
14704 (arm_<ldc>): ... This.
14705 (<stc>): Rename to...
14706 (arm_<stc>): ... This.
14707 (<mcr>): Rename to...
14708 (arm_<mcr>): ... This.
14709 (<mrc>): Rename to...
14710 (arm_<mrc>): ... This.
14711 (<mcrr>): Rename to...
14712 (arm_<mcrr>): ... This.
14713 (<mrrc>): Rename to...
14714 (arm_<mrrc>): ... This.
14715
14716 2019-07-29 Richard Biener <rguenther@suse.de>
14717
14718 PR tree-optimization/91257
14719 * tree-ssa-sccvn.h (struct vn_avail): New.
14720 (struct vn_ssa_aux): Add avail member.
14721 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
14722 member, add m_avail_freelist one.
14723 (rpo_elim::~rpo_elim): Remove.
14724 (rpo_elim::eliminate_avail): Adjust to new avail tracking
14725 data structure.
14726 (rpo_elim::eliminate_push_avail): Likewise.
14727 (do_unwind): Likewise.
14728 (do_rpo_vn): Likewise.
14729
14730 2019-07-29 Richard Biener <rguenther@suse.de>
14731
14732 PR tree-optimization/91257
14733 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
14734 most cases, instead call compare_values which handles the
14735 symbolic ranges we handle specially.
14736 (compare_values_warnv): Do not call operand_less_p but open-code
14737 the effective fold calls. Avoid converting so much.
14738
14739 2019-07-29 Martin Liska <mliska@suse.cz>
14740
14741 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
14742 remove LHS of operator new call. It's handled latter.
14743
14744 2019-07-29 Richard Biener <rguenther@suse.de>
14745
14746 PR tree-optimization/91267
14747 * vr-values.c (vr_values::update_value_range): Add early return
14748 for effectively VARYING lattice entry.
14749
14750 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
14751
14752 PR debug/86638
14753 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
14754 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
14755 necessary if keep_all_vdefs_p is true.
14756 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
14757 that keep_all_vdefs_p is false.
14758 (mark_all_reaching_defs_necessary): Likewise.
14759 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
14760
14761 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
14762
14763 * common.opt (Og): Change the initial value of flag_dse to 0.
14764 * opts.c (default_options_table): Move OPT_ftree_dse from
14765 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
14766 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
14767 entry before the OPT_ftree_sra entry.
14768 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
14769 of flags disabled by Og.
14770
14771 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
14772
14773 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
14774 variables for -Og.
14775
14776 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
14777
14778 * doc/sourcebuild.texi (check-function-bodies): Document.
14779
14780 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
14781
14782 * simplify-rtx.c (simplify_const_unary_operation): Fold a
14783 VEC_DUPLICATE of a fixed-length vector even if the result
14784 is variable-length. Likewise fold a duplicate of a
14785 variable-length vector if the variable-length vector is
14786 itself a duplicate of a fixed-length sequence.
14787 (test_vector_ops_duplicate): Test more cases.
14788
14789 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
14790
14791 * vector-builder.h (vector_builder): Add a shape template parameter.
14792 (vector_builder::new_unary_operation): New function, generalizing
14793 the old tree_vector_builder function.
14794 (vector_builder::new_binary_operation): Likewise.
14795 (vector_builder::binary_encoded_nelts): Likewise.
14796 * int-vector-builder.h (int_vector_builder): Update template
14797 parameters to vector_builder.
14798 (int_vector_builder::shape_nelts): New function.
14799 * rtx-vector-builder.h (rtx_vector_builder): Update template
14800 parameters to vector_builder.
14801 (rtx_vector_builder::shape_nelts): New function.
14802 (rtx_vector_builder::nelts_of): Likewise.
14803 (rtx_vector_builder::npatterns_of): Likewise.
14804 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
14805 * tree-vector-builder.h (tree_vector_builder): Update template
14806 parameters to vector_builder.
14807 (tree_vector_builder::shape_nelts): New function.
14808 (tree_vector_builder::nelts_of): Likewise.
14809 (tree_vector_builder::npatterns_of): Likewise.
14810 (tree_vector_builder::nelts_per_pattern_of): Likewise.
14811 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
14812 (tree_vector_builder::new_binary_operation): Delete.
14813 (tree_vector_builder::binary_encoded_nelts): Likewise.
14814 * simplify-rtx.c: Include rtx-vector-builder.h.
14815 (distributes_over_addition_p): New function.
14816 (simplify_const_unary_operation)
14817 (simplify_const_binary_operation): Generalize handling of vector
14818 constants to include variable-length vectors.
14819 (test_vector_ops_series): Add more tests.
14820
14821 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
14822
14823 PR lto/91222
14824 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
14825 than INDENTIFIER_POINTER.
14826
14827 2019-07-28 Martin Liska <mliska@suse.cz>
14828
14829 PR ipa/89330
14830 * cgraph.c (symbol_table::create_edge): Always allocate
14831 a cgraph_edge.
14832 (symbol_table::free_edge): Store summary_id to
14833 edge_released_summary_ids if != -1;
14834 * cgraph.h (NEXT_FREE_NODE): Remove.
14835 (SET_NEXT_FREE_NODE): Likewise.
14836 (NEXT_FREE_EDGE): Likewise.
14837 (symbol_table::release_symbol): Store summary_id to
14838 cgraph_released_summary_ids if != -1;
14839 (symbol_table::allocate_cgraph_symbol): Always allocate
14840 a cgraph_node.
14841
14842 2019-07-28 Alan Modra <amodra@gmail.com>
14843
14844 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
14845 gen_sibcall.
14846
14847 2019-07-28 Alan Modra <amodra@gmail.com>
14848
14849 PR target/91135
14850 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
14851 define.
14852 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
14853 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
14854 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
14855
14856 2019-07-28 Alan Modra <amodra@gmail.com>
14857
14858 PR target/91050
14859 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
14860 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
14861 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
14862 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
14863 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
14864 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
14865 in asm_default spec.
14866 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
14867 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
14868
14869 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
14870
14871 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
14872
14873 2019-07-26 Tamar Christina <tamar.christina@arm.com>
14874
14875 PR target/89517
14876 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
14877 * config/aarch64/aarch64-option-extensions.def: Add new comments
14878 and restore easier to read options.
14879
14880 2019-07-26 Tamar Christina <tamar.christina@arm.com>
14881
14882 * convert.c (convert_to_real_1): Move part of conversion code...
14883 * match.pd: ...To here.
14884
14885 2019-07-26 Martin Jambor <mjambor@suse.cz>
14886
14887 PR ipa/89330
14888 * ipa-inline-transform.c (check_speculations_1): New function.
14889 (push_all_edges_in_set_to_vec): Likewise.
14890 (check_speculations): Use check_speculations_1, new parameter
14891 new_edges.
14892 (inline_call): Pass new_edges to check_speculations.
14893 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
14894 NULL.
14895 (speculation_useful_p): Early return true if edge is inlined, remove
14896 later checks for inline_failed.
14897
14898 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
14899
14900 PR rtl-optimization/91223
14901 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
14902 matching with INOUT operand.
14903
14904 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
14905
14906 * stmt.c (expand_case): Try to narrow the index type if it's larger
14907 than a word. Tidy up.
14908
14909 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
14910
14911 * cif-code.def (NEVER_CALL): New code.
14912 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
14913 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
14914
14915 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
14916
14917 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
14918 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
14919
14920 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
14921
14922 * ipa-devirt.c (add_type_duplicate): Fix return value.
14923
14924 2019-07-25 Richard Biener <rguenther@suse.de>
14925
14926 * tree-vrp.c (extract_range_from_multiplicative_op): Add
14927 type parameter and use it instead of guessing expression
14928 type from the first operand.
14929 (extract_range_from_binary_expr): Pass expr_type down.
14930
14931 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14932
14933 * config/arm/arm.md (SATrev): Change to code attribute.
14934 (*satsi_<SAT:code>): Adjust for the above.
14935 (*satsi_<SAT:code>_shift): Likewise.
14936
14937 2019-07-25 Richard Biener <rguenther@suse.de>
14938
14939 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
14940 Make value_range * temporary const.
14941 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
14942 Likewise.
14943 (evrp_range_analyzer::record_ranges_from_): Likewise.
14944 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
14945 deal with having recorded a const one.
14946 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
14947 Return a const value_range *.
14948 (evrp_range_analyzer::pop_value_range): Likewise.
14949 (evrp_range_analyzer::stack): Record const value_range *s.
14950 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
14951 Adjust.
14952 * gimple-ssa-sprintf.c (get_int_range): Likewise.
14953 (format_integer): Likewise.
14954 (sprintf_dom_walker::handle_gimple_call): Likewise.
14955 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
14956 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
14957 (vrp_prop::get_value_range): Adjust.
14958 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
14959 modifying the lattice in-place.
14960 (vrp_prop::visit_stmt): Likewise.
14961 * vr-values.c (vr_values::get_lattice_entry): New private method.
14962 (vr_values::get_value_range): Wrap it and return a const
14963 value_range *.
14964 (vr_values::set_def_to_varying): New.
14965 (vr_values::set_defs_to_varying): Use it.
14966 (vr_values::update_value_range): Likewise.
14967 (vr_values::vrp_stmt_computes_nonzero): Adjust.
14968 (values::op_with_constant_singleton_va): Likewise.
14969 (vr_values::extract_range_for_var_from_co): Likewise.
14970 (vr_values::extract_range_from_ssa_name): Likewise.
14971 (vr_values::extract_range_from_cond_expr): Likewise.
14972 (vr_values::extract_range_basic): Likewise.
14973 (compare_ranges): Take const value_range *, adjust.
14974 (compare_range_with_value): Likewise.
14975 (vrp_valueize): Adjust.
14976 (vrp_valueize_1): Likewise.
14977 (vr_values::get_vr_for_comparison): Return a const value_range *.
14978 (vr_values::compare_name_with_value): Adjust.
14979 (vr_values::compare_names): Likewise.
14980 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14981 Likewise.
14982 (vr_values::vrp_evaluate_conditional): Likewise.
14983 (find_case_label_ranges): Take a const value_range *.
14984 (vr_values::vrp_visit_switch_stmt): Adjust.
14985 (vr_values::extract_range_from_phi_node): Likewise.
14986 (vr_values::simplify_div_or_mod_using_ran): Likewise.
14987 (vr_values::simplify_abs_using_ranges): Likewise.
14988 (test_for_singularity): Take a const value_range *.
14989 (range_fits_type_p): Likewise.
14990 (vr_values::simplify_cond_using_ranges_1): Adjust.
14991 (vr_values::simplify_cond_using_ranges_2): Likewise.
14992 (vr_values::simplify_switch_using_ranges): Likewise.
14993 (vr_values::simplify_float_conversion_usi): Likewise.
14994 (vr_values::two_valued_val_range_p): Likewise.
14995 * vr-values.h (vr_values::get_value_range): Return a const
14996 value_range *.
14997 (vr_values::set_def_to_varying): New.
14998 (vr_values::get_lattice_entry): New private method.
14999 (vr_values::get_vr_for_comparison): Return a const value_range *.
15000
15001 2019-07-25 Martin Liska <mliska@suse.cz>
15002 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
15003
15004 PR c++/23383
15005 * common.opt: Add -fallocation-dce
15006 * gimple.c (gimple_call_operator_delete_p): New.
15007 * gimple.h (gimple_call_operator_delete_p): Likewise.
15008 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
15009 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
15010 DECL_IS_OPERATOR_DELETE_P.
15011 (mark_all_reaching_defs_necessary_1): Likewise.
15012 (propagate_necessity): Likewise.
15013 (eliminate_unnecessary_stmts): Handle
15014 gimple_call_operator_delete_p.
15015 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
15016 Add packing of OPERATOR_DELETE.
15017 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
15018 Similarly here.
15019 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
15020 (DECL_SET_IS_OPERATOR_DELETE): New.
15021 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
15022
15023 2019-07-25 Martin Liska <mliska@suse.cz>
15024
15025 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
15026 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
15027 * coverage.c (coverage_begin_function): Likewise.
15028 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
15029 * gimple.c (gimple_call_nonnull_result_p): Likewise.
15030 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
15031 (sem_item::hash_referenced_symbol_properties): Likewise.
15032 * lto-streamer-out.c (hash_tree): Likewise.
15033 * predict.c (expr_expected_value_1): Likewise.
15034 * tree-inline.c (expand_call_inline): Likewise.
15035 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
15036 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
15037 * tree-core.h (enum function_decl_type): New enum.
15038 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
15039 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
15040 (set_function_decl_type): Likewise.
15041 (DECL_IS_OPERATOR_NEW_P): New.
15042 (DECL_SET_IS_OPERATOR_NEW): Likewise.
15043 (DECL_LAMBDA_FUNCTION): Likewise.
15044 (DECL_LAMBDA_FUNCTION_P): Likewise.
15045 (DECL_IS_OPERATOR_NEW): Remove.
15046 (DECL_SET_LAMBDA_FUNCTION): Likewise.
15047
15048 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
15049
15050 * ipa-profile.c (get_most_common_single_value): Use
15051 get_nth_most_common_value.
15052 * profile.c (sort_hist_value): New function.
15053 (compute_value_histograms): Call sort_hist_value to sort the
15054 values after loading from disk.
15055 * value-prof.c (get_most_common_single_value): Rename to ...
15056 get_nth_most_common_value. Add input params n, return
15057 the n_th value and count.
15058 (gimple_divmod_fixed_value_transform): Use
15059 get_nth_most_common_value.
15060 (gimple_ic_transform): Likewise.
15061 (gimple_stringops_transform): Likewise.
15062 * value-prof.h (get_most_common_single_value): Add input params
15063 n, default to 0.
15064
15065 2019-07-25 Richard Biener <rguenther@suse.de>
15066
15067 PR tree-optimization/91236
15068 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
15069 size of CONSTRUCTOR write. Fix buffer size we pass to
15070 native_encode_expr.
15071
15072 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15073
15074 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
15075 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
15076 r273773.
15077
15078 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15079
15080 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
15081 explicitly disabled with --disable-initfini-array.
15082
15083 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15084
15085 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
15086 if-exists.
15087
15088 2019-07-24 Martin Sebor <msebor@redhat.com>
15089
15090 PR tree-optimization/91183
15091 PR tree-optimization/86688
15092 * builtins.c (compute_objsize): Handle MEM_REF.
15093 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
15094 (get_min_string_length): Remove.
15095 (count_nonzero_bytes): New function.
15096 (handle_char_store): Rename...
15097 (handle_store): to this. Handle multibyte stores via integer types.
15098 (strlen_check_and_optimize_stmt): Adjust conditional and the called
15099 function name.
15100
15101 2019-07-24 Martin Sebor <msebor@redhat.com>
15102
15103 PR driver/80545
15104 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
15105 (diagnostic_report_diagnostic): Same.
15106 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
15107 (diagnostic_context::lang_mask): New data member.
15108 * ipa-pure-const.c (suggest_attribute): Use
15109 lang_hooks.option_lang_mask ().
15110 * opts-common.c (option_enabled): Handle new argument.
15111 (get_option_state): Pass an additional argument.
15112 * opts.c (print_filtered_help): Print supported languages for
15113 unsupported options. Adjust printing of current state.
15114 * opts.h (option_enabled): Add argument.
15115 * toplev.c (print_switch_values): Use lang_mask.
15116 (general_init): Set global_dc->lang_mask.
15117
15118 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
15119
15120 PR bootstrap/87030
15121 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
15122
15123 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
15124
15125 * cgraphunit.c (symbol_table::compile): Start and stop
15126 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
15127 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
15128
15129 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
15130
15131 * gimplify.c (flag_instrument_functions_exclude_p): Include
15132 namespace/class information in the printable name.
15133 * opts.c (add_comma_separated_to_vector): Add NUL terminator
15134 to tokens entered into the vector.
15135
15136 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
15137
15138 * tree-nested.c (build_simple_mem_ref_notrap): New function.
15139 (get_static_chain): Call it instead of build_simple_mem_ref.
15140 (get_frame_field): Likewise.
15141 (get_nonlocal_debug_decl): Likewise.
15142 (convert_nonlocal_reference_op): Likewise.
15143
15144 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
15145
15146 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
15147 declaration.
15148 (arc_compute_frame_size): Millicode is disabled when compiling
15149 ISR.
15150 (arc_return_address_register): Likewise.
15151 (arc_compute_function_type): Likewise.
15152 (arc_compute_frame_size): Likewise.
15153 (secondary_reload_info): Likewise.
15154 (arc_get_unalign): Likewise.
15155 (arc_can_use_return_insn): Declare.
15156 * config/arc/arc.c (AUX_LP_START): Define
15157 (AUX_LP_END): Likewise.
15158 (arc_frame_info): Update gmask member to 64-bit datum.
15159 (GMASK_LEN): Update.
15160 (arc_compute_function_type): Make it static, move it forward.
15161 (arc_must_save_register): Update, consider the extra regs.
15162 (arc_compute_millicode_save_restore_regs): Update to use the 64
15163 bit gmask.
15164 (arc_compute_frame_size): Likewise.
15165 (arc_enter_leave_p): Likewise.
15166 (arc_save_callee_saves): Likewise.
15167 (arc_restore_callee_saves): Likewise.
15168 (arc_save_callee_enter): Likewise.
15169 (arc_restore_callee_leave): Likewise.
15170 (arc_save_callee_milli): Likewise.
15171 (arc_restore_callee_milli): Likewise.
15172 (arc_expand_prologue): Add new interrupt handling.
15173 (arc_return_address_register): Make it static, move it forward.
15174 (arc_expand_epilogue): Add new interrupt handling.
15175 (arc_get_unalign): Delete.
15176 (arc_epilogue_uses): Make sure we do not remove the extra
15177 saved/restored registers when interrupt.
15178 (arc_can_use_return_insn): New function.
15179 (push_reg): Likewise.
15180 (pop_reg): Likewise.
15181 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
15182 procedures.
15183 (arc_restore_callee_saves): Likewise, but restoring.
15184 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
15185 (R33_REG): Likewise.
15186 (R34_REG): Likewise.
15187 (R35_REG): Likewise.
15188 (R36_REG): Likewise.
15189 (R37_REG): Likewise.
15190 (R38_REG): Likewise.
15191 (R39_REG): Likewise.
15192 (R45_REG): Likewise.
15193 (R46_REG): Likewise.
15194 (R47_REG): Likewise.
15195 (R48_REG): Likewise.
15196 (R49_REG): Likewise.
15197 (R50_REG): Likewise.
15198 (R51_REG): Likewise.
15199 (R52_REG): Likewise.
15200 (R53_REG): Likewise.
15201 (R54_REG): Likewise.
15202 (R55_REG): Likewise.
15203 (R56_REG): Likewise.
15204 (R58_REG): Likewise.
15205 (type): Add rtie attribute.
15206 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
15207 (movsi_insn): Accept moves to lp_count.
15208 (rtie): Update pattern.
15209 (simple_return): Simplify it, don't use this pattern as a return
15210 from an interrupt.
15211 (arc600_rtie): New pattern.
15212 (p_return_i): Clean up.
15213 (return): Likewise.
15214 * config/arc/builtins.def (rtie): Only available for non ARC6xx
15215 family CPUs.
15216 * config/arc/predicates.md (move_src_operand): Consider lp_count
15217 as a register.
15218
15219 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
15220
15221 * config/s390/predicates.md (addv_const_operand): New predicate.
15222 * config/s390/s390-modes.def (CCO): New condition code mode.
15223 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
15224 (s390_branch_condition_mask): Likewise.
15225 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
15226 ("mulv<mode>4"): New expanders.
15227 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
15228 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
15229 pattern definitions.
15230
15231 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15232
15233 PR middle-end/91166
15234 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
15235 (define_predicates): Add entry for uniform_vector_p.
15236 (vec_same_elem_p): New match pattern.
15237
15238 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
15239
15240 PR bootstrap/87030
15241 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
15242 * config/i386/darwin32-biarch.h .. to here.
15243 * config/i386/darwin64-biarch.h: Adjust comments.
15244 * config/rs6000/darwin32-biarch.h: Likewise.
15245 * config/rs6000/darwin64-biarch.h: Likewise.
15246 * config.gcc: Missed commit from r273746
15247 (*-*-darwin*): Don't include CPU t-darwin here.
15248 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
15249 an error message if i686-darwin configuration is attempted for
15250 Darwin >= 18.
15251
15252 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
15253
15254 PR bootstrap/87030
15255 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
15256 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
15257 an error message if i686-darwin configuration is attempted for
15258 Darwin >= 18.
15259 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
15260 (powerpc-*-darwin*): Use biarch files where needed.
15261 (powerpc64-*-darwin*): Likewise.
15262 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
15263 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
15264 arch case.
15265 * config/i386/darwin32-biarch.h: New.
15266 * config/i386/darwin64.h: Rename.
15267 * config/i386/darwin64-biarch.h: To this.
15268 * config/i386/t-darwin: Rename.
15269 * config/i386/t-darwin32-biarch: To this.
15270 * config/i386/t-darwin64: Rename.
15271 * config/i386/t-darwin64-biarch: To this.
15272 * config/rs6000/darwin32-biarch.h: New.
15273 * config/rs6000/darwin64.h: Rename.
15274 * config/rs6000/darwin64-biarch.h: To this.
15275 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
15276 arch case.
15277 * config/rs6000/t-darwin8: Rename.
15278 * config/rs6000/t-darwin32-biarch: To this.
15279 * config/rs6000/t-darwin64 Rename.
15280 * config/rs6000/t-darwin64-biarch: To this.
15281
15282 2019-07-23 Martin Sebor <msebor@redhat.com>
15283
15284 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
15285
15286 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
15287
15288 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
15289 (rh): New alias for it.
15290
15291 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
15292
15293 * gdbhooks.py: Pass replace=True to
15294 gdb.printing.register_pretty_printer.
15295
15296 2019-07-23 Richard Biener <rguenther@suse.de>
15297
15298 PR debug/91231
15299 * lto-streamer-in.c (input_function): Drop inline-entry markers
15300 that ended up with an unknown location block.
15301
15302 2019-07-23 Richard Biener <rguenther@suse.de>
15303
15304 PR tree-optimization/83518
15305 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
15306 init from a constant even when partial defs are already recorded.
15307
15308 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
15309
15310 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
15311 * config/i386/znver1.md: Enable patterns for znver2 and add store
15312 variants which use extra AGU unit.
15313
15314 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
15315
15316 * config/i386/i386-options.c (ix86_option_override_internal): Default
15317 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
15318 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
15319 for ZNVER2.
15320
15321 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
15322
15323 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
15324 (znver2_costs): Update 256 bit SSE costs and multiplication.
15325
15326 2019-07-23 Jan Beulich <jbeulich@suse.com>
15327
15328 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
15329 Require only AVX512F.
15330 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
15331 alternative expanding to vpternlog.
15332
15333 2019-07-23 Martin Liska <mliska@suse.cz>
15334
15335 * dwarf2out.c (gen_producer_string): Canonize -flto=N
15336 to -flto in dwarf producer string.
15337
15338 2019-07-23 Richard Biener <rguenther@suse.de>
15339
15340 * tree-cfg.c (label_for_bb): Remove global var.
15341 (main_block_label): Take label_for_bb as argument.
15342 (cleanup_dead_labels_eh): Likewise, adjust.
15343 (cleanup_dead_labels): Adjust.
15344
15345 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
15346
15347 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
15348 Configurations): Add documentation for __builtin_mtfsf.
15349
15350 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
15351
15352 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
15353 * config/riscv/riscv.c (riscv_constant_alignment): Use
15354 riscv_align_data_type.
15355 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
15356 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
15357 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
15358 * config/riscv/riscv.opt (malign-data): New.
15359 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
15360
15361 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
15362
15363 * cgraph.c (dump_graphviz): New function.
15364 * cgraph.h (dump_graphviz): New function.
15365 * symtab.c (dump_graphviz): New function.
15366
15367 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
15368
15369 * config/aarch64/aarch64-simd.md
15370 (*aarch64_simd_sra<mode>): New.
15371 * config/aarch64/iterators.md
15372 (SHIFTRT): New iterator.
15373 (sra_op): New attribute.
15374
15375 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15376
15377 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
15378 callee-saved regs R4->R10 in an interrupt function that calls another
15379 function.
15380
15381 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
15382
15383 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
15384 (_mm_blendv_epi8): New.
15385
15386 2019-07-22 Richard Biener <rguenther@suse.de>
15387
15388 PR tree-optimization/91221
15389 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
15390 restrict partial-def handling of empty constructors and
15391 memset to refs with known offset.
15392
15393 2019-07-22 Jan Beulich <jbeulich@suse.com>
15394
15395 * config/i386/sse.md (ternlogsuffix): New.
15396 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
15397 AVX512F is in use.
15398 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
15399
15400 2019-07-22 Martin Liska <mliska@suse.cz>
15401
15402 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
15403 comment.
15404 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
15405
15406 2019-07-22 Martin Liska <mliska@suse.cz>
15407
15408 * lto-section-in.c (lto_get_section_data):
15409 Use new function get_compression.
15410 * lto-streamer-out.c (produce_lto_section): Use
15411 set_compression to encode compression algorithm.
15412 * lto-streamer.h (struct lto_section): Do not
15413 use bitfields in the format.
15414
15415 2019-07-22 Martin Liska <mliska@suse.cz>
15416
15417 PR driver/91172
15418 * opts-common.c (decode_cmdline_option): Decode
15419 argument of -Werror and check it for a wrong language.
15420 * opts-global.c (complain_wrong_lang): Remove such case.
15421
15422 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
15423
15424 * config/arc/arc.c (prepare_move_operands): Always use an
15425 intermediate register when storing a TLS symbols.
15426
15427 2019-07-22 Stafford Horne <shorne@gmail.com>
15428
15429 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
15430 force_reg.
15431
15432 2019-07-22 Stafford Horne <shorne@gmail.com>
15433
15434 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
15435 and munordered-float validations.
15436 * config/or1k/constraints.md (d): New register constraint.
15437 * config/or1k/predicates.md (fp_comparison_operator): New.
15438 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
15439 operands.
15440 (or1k_expand_compare): Normalize unordered comparisons.
15441 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
15442 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
15443 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
15444 * config/or1k/or1k.md (type): Add fpu.
15445 (fpu): New instruction reservation.
15446 (F, f, fr, fi, FI, FOP, fop): New.
15447 (<fop><F:mode>3): New ALU instruction definition.
15448 (float<fi><F:mode>2): New conversion instruction definition.
15449 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
15450 (fpcmpcc): New code iterator.
15451 (*sf_fp_insn): New instruction definition.
15452 (cstore<F:mode>4): New expand definition.
15453 (cbranch<F:mode>4): New expand definition.
15454 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
15455 munordered-float): New options.
15456 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
15457 munordered-float.
15458
15459 2019-07-22 Stafford Horne <shorne@gmail.com>
15460
15461 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
15462 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
15463 documenation to be more clear.
15464 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
15465 more clear.
15466 * config/or1k/or1k.opt (mrori): New option.
15467 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
15468 msfimm, mshftimm): Rewrite documentation to be more clear.
15469 * config/or1k/or1k.md (insn_support): Add ror and rori.
15470 (enabled): Add conditions for ror and rori.
15471 (rotrsi3): Replace condition for shftimm with ror and rori.
15472
15473 2019-07-22 Stafford Horne <shorne@gmail.com>
15474
15475 PR target/90363
15476 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
15477 (extend<mode>si2): Update predicate.
15478 * config/or1k/predicates.md (volatile_mem_operand): New.
15479 (reg_or_mem_operand): New.
15480
15481 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
15482
15483 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
15484 * config/rs6000/rs6000-call.c: ... to here.
15485
15486 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15487
15488 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
15489 memory.
15490
15491 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15492
15493 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
15494
15495 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15496
15497 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
15498
15499 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15500
15501 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
15502 (any_memory_operand): New predicate.
15503 (reg_or_mem_operand): Use it.
15504
15505 2019-07-20 Jakub Jelinek <jakub@redhat.com>
15506
15507 PR target/91204
15508 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
15509
15510 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
15511
15512 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
15513 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
15514
15515 2019-07-20 Jakub Jelinek <jakub@redhat.com>
15516
15517 * tree.def (OMP_LOOP): New tree code.
15518 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
15519 (enum omp_clause_bind_kind): New enum.
15520 (struct tree_omp_clause): Add subcode.bind_kind.
15521 * tree.h (OMP_LOOP_CHECK): Rename to ...
15522 (OMP_LOOPING_CHECK): ... this.
15523 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
15524 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
15525 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
15526 (OMP_CLAUSE_BIND_KIND): Define.
15527 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
15528 bind clause entries.
15529 (walk_tree_1): Handle OMP_CLAUSE_BIND.
15530 * tree-pretty-print.c (dump_omp_clause): Likewise.
15531 (dump_generic_node): Handle OMP_LOOP.
15532 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
15533 (in_omp_construct): New variable.
15534 (is_gimple_stmt): Handle OMP_LOOP.
15535 (gimplify_scan_omp_clauses): For lastprivate don't set
15536 check_non_private if code == OMP_LOOP. For reduction clause
15537 on OMP_LOOP combined with parallel or teams propagate as shared
15538 on the combined construct. Handle OMP_CLAUSE_BIND.
15539 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
15540 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
15541 for constructs from a loop construct to gimplify_scan_omp_clauses.
15542 Don't predetermine iterator linear on OMP_SIMD from loop construct.
15543 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
15544 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
15545 to match the implicit ORT_TARGET construct around whole body.
15546 Temporarily clear in_omp_construct when processing body.
15547 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
15548 etc. temporarily set in_omp_construct when processing body.
15549 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
15550 * omp-low.c (struct omp_context): Add loop_p.
15551 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
15552 in that the original var might be private.
15553 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
15554 (check_omp_nesting_restrictions): Adjust nesting restrictions for
15555 addition of loop construct.
15556 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
15557
15558 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
15559 lastprivate non-addressable iterator of a collapse(1) simd.
15560
15561 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
15562
15563 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
15564 as in rs6000.c.
15565
15566 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
15567
15568 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
15569 refer to default conditions. Warn for the 'y' spec which is ignored
15570 by current linkers.
15571
15572 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
15573
15574 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
15575 cpu_supports_info, builtin_hash_struct, builtin_hasher,
15576 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
15577 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
15578 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
15579 init_cumulative_args, rs6000_promote_function_mode,
15580 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
15581 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
15582 rs6000_function_arg_boundary, rs6000_parm_offset,
15583 rs6000_parm_start, rs6000_arg_size,
15584 rs6000_darwin64_record_arg_advance_flush,
15585 rs6000_darwin64_record_arg_advance_recurse,
15586 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
15587 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
15588 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
15589 rs6000_mixed_function_arg, rs6000_psave_function_arg,
15590 rs6000_finish_function_arg, rs6000_function_arg,
15591 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
15592 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
15593 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
15594 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
15595 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
15596 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
15597 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
15598 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
15599 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
15600 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
15601 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
15602 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
15603 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
15604 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
15605 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
15606 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
15607 get_element_number, altivec_expand_vec_set_builtin,
15608 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
15609 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
15610 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
15611 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
15612 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
15613 rs6000_expand_builtin, rs6000_vector_type,
15614 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
15615 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
15616 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
15617 to rs6000-call.c.
15618 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
15619 cpu_supports_info, builtin_hash_struct, builtin_hasher,
15620 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
15621 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
15622 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
15623 init_cumulative_args, rs6000_promote_function_mode,
15624 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
15625 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
15626 rs6000_function_arg_boundary, rs6000_parm_offset,
15627 rs6000_parm_start, rs6000_arg_size,
15628 rs6000_darwin64_record_arg_advance_flush,
15629 rs6000_darwin64_record_arg_advance_recurse,
15630 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
15631 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
15632 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
15633 rs6000_mixed_function_arg, rs6000_psave_function_arg,
15634 rs6000_finish_function_arg, rs6000_function_arg,
15635 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
15636 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
15637 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
15638 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
15639 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
15640 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
15641 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
15642 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
15643 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
15644 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
15645 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
15646 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
15647 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
15648 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
15649 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
15650 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
15651 get_element_number, altivec_expand_vec_set_builtin,
15652 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
15653 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
15654 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
15655 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
15656 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
15657 rs6000_expand_builtin, rs6000_vector_type,
15658 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
15659 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
15660 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
15661 to here from rs6000.c.
15662 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
15663 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
15664 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
15665 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
15666 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
15667 rs6000_return_in_memory, rs6000_return_in_msb,
15668 rs6000_pass_by_reference, setup_incoming_varargs,
15669 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
15670 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
15671 rs6000_function_arg_padding, rs6000_function_arg,
15672 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
15673 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
15674 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
15675 rs6000_passes_long_double, rs6000_passes_vector,
15676 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
15677 altivec_builtin_mask_for_load) Add declarations.
15678 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
15679 * config/config.gcc: Add new source file rs6000-call.c to garbage
15680 collector and extra_objs.
15681
15682 2019-07-19 Jeff Law <law@redhat.com>
15683
15684 PR tree-optimization/86061
15685 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
15686 strncpy. Drop some trivial dead code.
15687 (maybe_trim_memstar_call): Handle strncpy.
15688
15689 2019-07-19 Richard Biener <rguenther@suse.de>
15690
15691 PR tree-optimization/91211
15692 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
15693 memset encoding size.
15694
15695 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
15696
15697 PR target/91204
15698 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
15699
15700 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
15701
15702 PR ipa/91194
15703 * ipa-inline.c (recursive_inlining): Fix limits check.
15704
15705 2019-07-19 Richard Biener <rguenther@suse.de>
15706
15707 PR tree-optimization/91200
15708 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
15709 no PHI nodes in middle-bb.
15710
15711 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
15712
15713 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
15714 to +sve-bitperm.
15715 * config/aarch64/aarch64-option-extensions.def: Likewise.
15716
15717 2019-07-19 Jakub Jelinek <jakub@redhat.com>
15718
15719 PR middle-end/91190
15720 * function.c (insert_temp_slot_address): Store into the hash table
15721 a copy of address to avoid RTL sharing issues.
15722
15723 2019-07-19 Richard Biener <rguenther@suse.de>
15724
15725 PR tree-optimization/91207
15726 Revert
15727 2019-07-17 Richard Biener <rguenther@suse.de>
15728
15729 PR tree-optimization/91178
15730 * tree-vect-stmts.c (get_group_load_store_type): For SLP
15731 loads with a gap larger than the vector size always use
15732 VMAT_STRIDED_SLP.
15733 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
15734 avoid loading vectors that are only contained in the gap
15735 and thus are not needed.
15736
15737 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
15738
15739 * config/i386/i386.md (*addqi_2_slp): Remove.
15740 (*<code>qi_2_slp): Ditto.
15741
15742 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
15743
15744 * config/rs6000/predicates.md (prefixed_mem_operand): Call
15745 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
15746 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
15747 Rename function from rs6000_prefixed_address.
15748 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
15749 TARGET_HAS_TOC.
15750 (TARGET_TOC): Likewise.
15751 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
15752 rs6000.h.
15753 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
15754 TARGET_HAS_TOC.
15755 (TARGET_TOC): Likewise.
15756 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
15757 rs6000.h.
15758 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
15759 TARGET_HAS_TOC.
15760 (TARGET_TOC): Likewise.
15761 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
15762 check to require -mcmodel=medium for pc-relative addressing.
15763 (create_TOC_reference): Add assertion for TARGET_TOC.
15764 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
15765 TARGET_NO_TOC.
15766 (rs6000_emit_move): Likewise.
15767 (TOC_alias_set): Rename TOC alias set static variable from 'set'
15768 to 'TOC_alias_set'.
15769 (get_TOC_alias_set): Likewise.
15770 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
15771 TARGET_NO_TOC.
15772 (rs6000_can_eliminate): Likewise.
15773 (rs6000_prefixed_address_mode_p): Rename function from
15774 rs6000_prefixed_address.
15775 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
15776 TARGET_HAS_TOC and not pc-relative.
15777 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
15778 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
15779 TARGET_HAS_TOC.
15780 (TARGET_TOC): Likewise.
15781 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
15782 rs6000.h.
15783
15784 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
15785
15786 PR target/91188
15787 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
15788 for operand 0. Do not use (match_dup) to match operand 1 with
15789 operand 0. Add check in insn constraint that either input operand
15790 matches operand 0. Use SWI12 mode iterator to also handle
15791 HImode operands.
15792 (*and<mode>_1_slp): Ditto.
15793 (*<code>qi_1_slp): Ditto.
15794 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
15795 Do not use (match_dup) to match operand 1 with operand 0. Add
15796 check in insn constraint that operand 1 matches operand 0.
15797 Use SWI12 mode iterator to also handle HImode operands.
15798 (*ashl<mode>3_1_slp): Ditto.
15799 (*<shift_insn><mode>3_1_slp): Ditto.
15800 (*<rotate_insn><mode>3_1_slp): Ditto.
15801
15802 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
15803
15804 * config/arm/arm-builtins.c
15805 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
15806 (arm_expand_unop_builtin): Likewise.
15807 * config/arm/crypto.md
15808 (crypto_sha1h): Convert from define_insn to define_expand.
15809 (crypto_<crypto_pattern>): Likewise.
15810 (crypto_sha1h_lb): New define_insn.
15811 (crypto_<crypto_pattern>_lb): Likewise.
15812
15813 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
15814
15815 PR target/90317
15816 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
15817 (vsha1cq_u32): Likewise.
15818 (vsha1pq_u32): Likewise.
15819 (vsha1mq_u32): Likewise.
15820 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
15821 vec select.
15822 (crypto_sha1c): Correct vec select.
15823 (crypto_sha1m): Likewise.
15824 (crypto_sha1p): Likewise.
15825
15826 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
15827
15828 * config/arm/predicates.md (arm_borrow_operation): New predicate.
15829 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
15830 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
15831 (subdi_zesidi_zesidi): Likewise.
15832 (negdi2_compare, negdi2_insn): Likewise.
15833 (negdi_extensidi): Likewise.
15834 (negdi_zero_extendsidi): Likewise.
15835 (arm_cmpdi_insn): Likewise.
15836 (subsi3_carryin): Use arm_borrow_operation.
15837 (subsi3_carryin_const): Likewise.
15838 (subsi3_carryin_const0): Likewise.
15839 (subsi3_carryin_compare): Likewise.
15840 (subsi3_carryin_compare_const): Likewise.
15841 (subsi3_carryin_compare_const0): Likewise.
15842 (subsi3_carryin_shift): Likewise.
15843 (rsbsi3_carryin_shift): Likewise.
15844 (negsi2_carryin_compare): Likewise.
15845
15846 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
15847
15848 PR tree-optimization/91137
15849 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
15850 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
15851 Init, use and fini the above new field.
15852 (determine_base_object_1): New function.
15853 (determine_base_object): Reimplement using walk_tree.
15854
15855 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
15856
15857 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
15858 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
15859 CLEANUP_FORCE_FAST_DCE is set.
15860 * ifcvt.c (rest_of_handle_if_conversion): Pass
15861 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
15862 if-conversion succeeded.
15863
15864 2019-07-18 Richard Biener <rguenther@suse.de>
15865
15866 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
15867 branches to make code less indented.
15868
15869 2019-07-17 Alexandre Oliva <oliva@adacore.com>
15870
15871 PR middle-end/81824
15872 * attribs.c (decls_mismatched_attributes): Simplify the logic
15873 that avoids duplicates and false positives.
15874
15875 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
15876
15877 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
15878 data into data section when generating PIC code.
15879 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
15880 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
15881 generating code for SOM targets earlier than HP-UX 11. Otherwise,
15882 return 2 for SOM and 0 for other targets.
15883
15884 2019-07-17 Jeff Law <law@redhat.com>
15885
15886 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
15887 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
15888 avoid unexpected switch statement fallthru.
15889
15890 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
15891
15892 * config/i386/i386.md (*add<dwi>3_doubleword):
15893 Remove redundant constraints.
15894 (*add<mode>_1): Ditto.
15895 (*addhi_1): Ditto.
15896 (*addqi_1): Ditto.
15897 (*addqi_1_slp): Ditto.
15898 (*add<mode>_2): Ditto.
15899 (*addv<mode>4): Ditto.
15900 (*sub<dwi>3_doubleword): Ditto.
15901 (*sub<mode>_1): Ditto.
15902 (*subqi_1_slp): Ditto.
15903 (*sub<mode>_2): Ditto.
15904 (*subv<mode>4): Ditto.
15905 (*sub<mode>_3): Ditto.
15906 (@add<mode>3_carry): Ditto.
15907 (@sub<mode>3_carry): Ditto.
15908 (*add<mode>3_cc_overflow_1): Ditto.
15909 (*add<mode>3_zext_cc_overflow_2): Ditto.
15910 (*anddi_1): Ditto.
15911 (*and<mode>_1): Ditto.
15912 (*andqi_1): Ditto.
15913 (*andqi_1_slp): Ditto.
15914 (*anddi_2): Ditto.
15915 (*andqi_2_maybe_si): Ditto.
15916 (*and<mode>_2): Ditto.
15917 (*andqi_2_slp): Ditto.
15918 (*<code><mode>_1): Ditto.
15919 (*<code>qi_1): Ditto.
15920 (*<code>qi_1_slp): Ditto.
15921 (*<code><mode>_2): Ditto.
15922 (*<code>qi_2_slp): Ditto.
15923
15924 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
15925
15926 * alias.c (record_component_aliases): Do not simplify pointed-to
15927 types of ODR types.
15928
15929 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
15930
15931 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
15932 partial reg stall on alternative 2.
15933
15934 2019-07-17 Richard Biener <rguenther@suse.de>
15935
15936 PR tree-optimization/91178
15937 * tree-ssa.c (release_defs_bitset): Iterate from higher to
15938 lower SSA names to avoid quadratic behavior in the common case.
15939 * tree-data-ref.c (split_constant_offset): Add limit argument
15940 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
15941 (split_constant_offset_1): Add limit argument and use it to
15942 limit SSA def walking. Optimize the common plus/minus case.
15943
15944 2019-07-17 Richard Biener <rguenther@suse.de>
15945
15946 PR tree-optimization/91178
15947 * tree-vect-stmts.c (get_group_load_store_type): For SLP
15948 loads with a gap larger than the vector size always use
15949 VMAT_STRIDED_SLP.
15950 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
15951 avoid loading vectors that are only contained in the gap
15952 and thus are not needed.
15953
15954 2019-07-17 Richard Biener <rguenther@suse.de>
15955
15956 PR tree-optimization/91180
15957 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
15958 computation for memset partial defs.
15959
15960 2019-07-17 Jakub Jelinek <jakub@redhat.com>
15961
15962 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
15963 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
15964 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
15965 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
15966 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
15967 * omp-grid.c (grid_process_grid_body,
15968 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
15969 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
15970 == GF_OMP_FOR_KIND_SIMD.
15971 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
15972 check_omp_nesting_restrictions, scan_omp_1_stmt,
15973 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
15974 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
15975 omp_find_scan): Likewise.
15976 * omp-expand.c (expand_omp_for): Likewise.
15977 * omp-general.c (omp_extract_for_data): Likewise.
15978
15979 PR tree-optimization/91157
15980 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
15981 a vector boolean with scalar mode.
15982 (expand_vector_condition): Handle first operand being a vector boolean
15983 with scalar mode.
15984 (expand_vector_operations_1): For comparisons, don't bail out early
15985 if the return type is vector boolean with scalar mode, but comparison
15986 operand type is not.
15987
15988 2019-07-17 Richard Biener <rguenther@suse.de>
15989
15990 PR tree-optimization/91181
15991 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
15992 IFN_LOADs as calls.
15993
15994 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
15995
15996 * config/i386/i386.md (*testdi_1): Match CCZmode for
15997 constants that might have the SImode sign bit set.
15998 (*testqi_1_maybe_si): Remove "!" constraint modifier.
15999 Use correct constraints for pentium pairing.
16000 (*test<mode>_1): Ditto.
16001
16002 2019-07-16 Jeff Law <law@redhat.com>
16003
16004 PR rtl-optimization/91173
16005 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
16006 SSA_NAME with a constant value, fold its value into the offset
16007 and clear the base before calling gen_addr_rtx.
16008
16009 2019-07-16 Jakub Jelinek <jakub@redhat.com>
16010
16011 PR rtl-optimization/91164
16012 * dse.c (rest_of_handle_dse): If dead edges have been purged,
16013 invalidate dominance info.
16014
16015 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16016
16017 * read-md.h (md_reader::record_potential_iterator_use): Add a
16018 file_location parameter.
16019 * read-rtl.c (attribute_use::loc): New field.
16020 (map_attr_string): Take a file_location parameter. Report cases
16021 in which attributes map to multiple distinct values.
16022 (apply_attribute_uses): Update call accordingly.
16023 (md_reader::handle_overloaded_name): Likewise.
16024 (md_reader::apply_iterator_to_string): Likewise. Skip empty
16025 nonnull strings.
16026 (record_attribute_use): Take a file_location parameter.
16027 Initialize attribute_use::loc.
16028 (md_reader::record_potential_iterator_use): Take a file_location
16029 parameter. Update call to record_attribute_use.
16030 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
16031 (rtx_reader::read_rtx_code): Likewise.
16032 (rtx_reader::read_rtx_operand): Likewise. Record a location
16033 for implicitly-expanded empty strings.
16034
16035 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16036
16037 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
16038 Use file_location instead of separate fields.
16039 (md_reader::set_md_ptr_loc): Take a file_location instead of a
16040 separate filename and line number.
16041 * read-md.c (ptr_loc): As above.
16042 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
16043 (md_reader::fprint_md_ptr_loc): Likewise.
16044 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
16045 instead of a separate filename and line number.
16046 (md_reader::read_string): Update call accordingly.
16047
16048 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16049
16050 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
16051 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
16052 leaving the choice between SFDF and P implicit.
16053 (*mov<mode>_update2): Likewise.
16054 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
16055 rather than leaving the choice betweem IBM128 and GPR implicit.
16056 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
16057 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
16058 QHSI implicit.
16059 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
16060 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
16061 * config/rs6000/vsx.md
16062 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
16063 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
16064 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
16065 and VSX_EXTRACT_I implicit.
16066
16067 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16068
16069 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
16070 Explicitly use <MOVEP1:MODE> for the mode attribute.
16071
16072 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
16073
16074 PR bootstrap/91176
16075 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
16076
16077 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
16078
16079 PR target/91050
16080 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
16081 .machine directive.
16082
16083 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
16084
16085 * config/i386/i386.md (@test<mode>_ccno_1):
16086 Rename from test<mode>_ccno_1.
16087 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
16088 (*testqi_1_maybe_si): Remove modrm attribute.
16089 (*test<mode>_1): Ditto.
16090 * config/i386/i386-expand.c (ix86_split_idivmod): Use
16091 gen_test_ccno_1 and gen_extend_insn.
16092
16093 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
16094
16095 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
16096 to 0.
16097
16098 2019-07-15 Richard Biener <rguenther@suse.de>
16099
16100 PR middle-end/91162
16101 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
16102 node make sure to replace all uses with something valid.
16103
16104 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
16105
16106 PR tree-optimization/88497
16107 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
16108 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
16109 function undistribute_bitref_for_vector.
16110 (undistribute_bitref_for_vector): New function.
16111 (cleanup_vinfo_map): Likewise.
16112 (sort_by_mach_mode): Likewise.
16113
16114 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
16115
16116 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
16117 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
16118 and testdi_ccno_1 using SWI48 mode attribute.
16119 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
16120 x86_64_szext_general_operand.
16121 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
16122 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
16123 instead of genera_operand mode attribute.
16124
16125 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
16126
16127 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
16128 fopen and fclose to their respective types.
16129 (DotFn.invoke): Ditto.
16130
16131 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
16132
16133 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
16134 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
16135 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
16136 (array_index_predicate): Remove.
16137 (analyze_function_body): Account cost for variable ofsetted array
16138 indexing.
16139 (estimate_node_size_and_time): Do not compute array index hint.
16140 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
16141 (inline_read_section): Do not read array index hint.
16142 (ipa_fn_summary_write): Do not write array index hint.
16143 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
16144 * ipa-cp.c (hint_time_bonus): Remove.
16145 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
16146 (ipa_fnsummary): Remove array_index.
16147 * ipa-inline.c (want_inline_small_function_p): Do not use
16148 array_index.
16149 (edge_badness): Likewise.
16150 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
16151
16152 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
16153
16154 PR target/91148
16155 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
16156 superfluous "builtin function" phrasing.
16157
16158 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
16159
16160 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
16161 Break out from ...
16162 (aliasing_component_refs_walk): Break out from ...
16163 (aliasing_component_refs_p): ... here.
16164
16165 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
16166
16167 PR target/91148
16168 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
16169 "builtin function" phrasing.
16170
16171 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16172
16173 PR target/90723
16174 * recog.h (temporary_volatile_ok): New class.
16175 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
16176 volatile_ok temporarily to true using temporary_volatile_ok.
16177 * expr.c (emit_block_move_via_cpymem): Likewise.
16178 * optabs.c (maybe_legitimize_operand): Likewise.
16179
16180 2019-07-13 Jakub Jelinek <jakub@redhat.com>
16181
16182 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
16183 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
16184 uses inside of order(concurrent) constructs.
16185 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
16186 OMP_CLAUSE_ORDER is seen.
16187 * omp-low.c (struct omp_context): Add order_concurrent member.
16188 (scan_sharing_clauses): Set ctx->order_concurrent if
16189 OMP_CLAUSE_ORDER is seen.
16190 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
16191 of simd order(concurrent). Diagnose constructs not allowed inside of
16192 for order(concurrent).
16193 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
16194 complaining about static double setjmp (double); or class static
16195 methods or non-global namespace setjmps.
16196 (omp_runtime_api_call): New function.
16197 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
16198 order(concurrent) loops.
16199
16200 2019-07-12 Martin Sebor <msebor@redhat.com>
16201
16202 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
16203 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
16204 * tree-vrp.c (vrp_prop::check_mem_ref): Use
16205 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
16206
16207 2019-07-12 Jan Hubicka <jh@suse.cz>
16208
16209 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
16210 (indirect_refs_may_alias_p): ... here.
16211 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
16212 mem refs in the access paths.
16213
16214 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
16215
16216 PR tree-optimization/89430
16217 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
16218 store elimination for local variable without address escape.
16219
16220 2019-07-12 Jeff Law <law@redhat.com>
16221
16222 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
16223 for the ".far" section.
16224
16225 2019-07-12 Richard Biener <rguenther@suse.de>
16226
16227 PR tree-optimization/91145
16228 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
16229 chain check.
16230
16231 2019-07-12 Alexandre Oliva <oliva@adacore.com>
16232
16233 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
16234 rather than this_state as the lowering context for the ELSE
16235 seq in a GIMPLE_EH_ELSE.
16236
16237 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
16238
16239 * vector-builder.h (vector_builder::elt): Allow already-supplied
16240 elements to be read back before building is complete.
16241
16242 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
16243
16244 PR rtl-optimization/91136
16245 * df-core.c (ACCESSING REFS): Fix typos in comment.
16246 * resource.c (mark_target_live_reg): Add artificial defs that occur at
16247 the beginning of the block to the initial set of live registers.
16248
16249 2019-07-12 Richard Biener <rguenther@suse.de>
16250
16251 * fold-const.h (get_array_ctor_element_at_index): Adjust.
16252 * fold-const.c (get_array_ctor_element_at_index): Add
16253 ctor_idx output parameter informing the caller where in
16254 the constructor the element was (not) found. Add early exit
16255 for when the ctor is sorted.
16256 * gimple-fold.c (fold_array_ctor_reference): Support constant
16257 folding across multiple array elements.
16258
16259 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
16260
16261 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
16262 doesn't have location, set the current location to the function's end.
16263
16264 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
16265
16266 * config/aarch64/aarch64.md (*compare_condjump<mode>)
16267 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
16268 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
16269 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
16270 * config/aarch64/aarch64-simd.md
16271 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
16272 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
16273 * config/aarch64/aarch64-sve.md
16274 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
16275 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
16276
16277 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
16278
16279 * doc/md.texi: Document that @ patterns can have different
16280 numbers of operands.
16281 * genemit.c (handle_overloaded_gen): Handle this case.
16282 * genopinit.c (handle_overloaded_gen): Likewise.
16283 * gensupport.c (replace_operands_with_dups): Iterate over
16284 the new rtx's format rather than the old one's.
16285
16286 2019-07-12 Jakub Jelinek <jakub@redhat.com>
16287
16288 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
16289 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
16290 order clause entries.
16291 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
16292 * tree-pretty-print.c (dump_omp_clause): Likewise.
16293 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
16294 Likewise.
16295 * omp-low.c (scan_sharing_clauses): Likewise.
16296 * tree-nested.c (convert_nonlocal_omp_clauses,
16297 convert_local_omp_clauses): Likewise.
16298
16299 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
16300
16301 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
16302 fallthrough target of current basic block isn't the placed
16303 right next.
16304
16305 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
16306
16307 PR target/90980
16308 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
16309 (_mm512_storeu_epi64): Likewise.
16310 (_mm512_loadu_epi32): Likewise.
16311 (_mm512_storeu_epi32): Likewise.
16312 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
16313 (_mm_storeu_epi64): Likewise.
16314 (_mm256_storeu_epi32): Likewise.
16315 (_mm_storeu_epi32): Likewise.
16316
16317 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
16318
16319 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
16320
16321 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
16322
16323 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
16324 Handle Modula-2.
16325
16326 2019-07-11 Jakub Jelinek <jakub@redhat.com>
16327
16328 PR target/91124
16329 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
16330 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
16331 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
16332 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
16333 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
16334 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
16335 define_insns.
16336 (ufix_truncv2dfv2si2<mask_name>): Change into ...
16337 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
16338 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
16339 define_insns.
16340 (sse2_cvttpd2dq<mask_name>): Change into ...
16341 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
16342 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
16343 (*sse2_cvtpd2dq<mask_name>): Change into ...
16344 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
16345 Add "C" constraint to const0_operand.
16346 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
16347 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
16348 changes.
16349
16350 PR target/91124
16351 * config/i386/i386-builtin-types.def
16352 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
16353 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
16354 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
16355 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
16356 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
16357 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
16358 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
16359 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
16360 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
16361 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
16362 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
16363 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
16364 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
16365 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
16366 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
16367 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
16368 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
16369 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
16370 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
16371 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
16372 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
16373 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
16374 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
16375 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
16376 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
16377 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
16378 __builtin_ia32_vpdpbusd_v4si_maskz,
16379 __builtin_ia32_vpdpbusds_v16si_mask,
16380 __builtin_ia32_vpdpbusds_v16si_maskz,
16381 __builtin_ia32_vpdpbusds_v8si_mask,
16382 __builtin_ia32_vpdpbusds_v8si_maskz,
16383 __builtin_ia32_vpdpbusds_v4si_mask,
16384 __builtin_ia32_vpdpbusds_v4si_maskz,
16385 __builtin_ia32_vpdpwssd_v16si_mask,
16386 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
16387 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
16388 __builtin_ia32_vpdpwssd_v4si_maskz,
16389 __builtin_ia32_vpdpwssds_v16si_mask,
16390 __builtin_ia32_vpdpwssds_v16si_maskz,
16391 __builtin_ia32_vpdpwssds_v8si_mask,
16392 __builtin_ia32_vpdpwssds_v8si_maskz,
16393 __builtin_ia32_vpdpwssds_v4si_mask,
16394 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
16395 suffixed types rather than *_INT.
16396 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
16397 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
16398 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
16399 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
16400 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
16401 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
16402
16403 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
16404
16405 * tree-vrp.c (intersect_ranges): If we know the intersection is
16406 empty, there is no need to conservatively add anything else to
16407 the set.
16408
16409 2019-07-11 Richard Biener <rguenther@suse.de>
16410
16411 PR middle-end/91131
16412 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
16413 when the object is volatile and we have not cleared it even though
16414 there are no nonzero elements.
16415
16416 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
16417
16418 * config/rs6000/predicates.md (cint34_operand): Update
16419 SIGNED_34BIT_OFFSET_P call.
16420 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
16421 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
16422 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
16423 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
16424 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
16425 argument.
16426 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
16427 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
16428 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
16429 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
16430 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
16431
16432 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
16433
16434 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
16435 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
16436 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
16437 (DEF_MIN_OSX_VERSION): New.
16438
16439 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
16440
16441 * fold-const.c (fold_relational_const): Fix folding of
16442 vector-to-scalar NE_EXPRs.
16443 (test_vector_folding): Add more tests.
16444
16445 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
16446
16447 PR target/91060
16448 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
16449 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
16450 (vec_setv2di_internal): Reexpress as...
16451 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
16452 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
16453 rather than gen_neon_vset_lane<mode>.
16454
16455 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
16456
16457 PR target/91102
16458 * lra-constraints.c (process_alt_operands): Don't match user
16459 defined regs only if they are early clobbers.
16460
16461 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
16462
16463 * wide-int.h (wi::lshift): Reject negative values for the fast path.
16464
16465 2019-07-10 Richard Biener <rguenther@suse.de>
16466
16467 PR tree-optimization/91126
16468 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
16469 native encoding offset for BYTES_BIG_ENDIAN.
16470 (vn_reference_lookup_3): Likewise.
16471
16472 2019-07-10 Richard Biener <rguenther@suse.de>
16473
16474 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
16475 LHS whenever possible.
16476
16477 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
16478
16479 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
16480 from ...; work also on duplicated types.
16481 (nonoverlapping_component_refs_since_match): ... here
16482 (ncr_type_uid): Break out from ...
16483 (ncr_compar): ... here; look for TYPE_UID of canonical type if
16484 available.
16485 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
16486 the types and nonoverlapping_component_refs_p_1 to disambiguate.
16487
16488 2019-07-09 Martin Sebor <msebor@redhat.com>
16489
16490 PR tree-optimization/90989
16491 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
16492 optimization to just single character stores.
16493
16494 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
16495
16496 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
16497 Swap operands only once.
16498
16499 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
16500
16501 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
16502 for both call instructions.
16503
16504 2019-07-09 John Darrington <john@darrington.wattle.id.au>
16505
16506 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
16507 rather than GET_MODE_BITSIZE to better handle partial integer modes.
16508
16509 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
16510
16511 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
16512 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
16513 function from rs6000-logue.c back to rs6000.c.
16514 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
16515
16516 2019-07-09 Martin Sebor <msebor@redhat.com>
16517
16518 PR c++/61339
16519 * auto-profile.c: Change class-key of PODs to struct and others
16520 to class.
16521 * basic-block.h: Same.
16522 * bitmap.c (bitmap_alloc): Same.
16523 * bitmap.h: Same.
16524 * builtins.c (expand_builtin_prefetch): Same.
16525 (expand_builtin_interclass_mathfn): Same.
16526 (expand_builtin_strlen): Same.
16527 (expand_builtin_mempcpy_args): Same.
16528 (expand_cmpstr): Same.
16529 (expand_builtin___clear_cache): Same.
16530 (expand_ifn_atomic_bit_test_and): Same.
16531 (expand_builtin_thread_pointer): Same.
16532 (expand_builtin_set_thread_pointer): Same.
16533 * caller-save.c (setup_save_areas): Same.
16534 (replace_reg_with_saved_mem): Same.
16535 (insert_restore): Same.
16536 (insert_save): Same.
16537 (add_used_regs): Same.
16538 * cfg.c (get_bb_copy): Same.
16539 (set_loop_copy): Same.
16540 * cfg.h: Same.
16541 * cfganal.h: Same.
16542 * cfgexpand.c (alloc_stack_frame_space): Same.
16543 (add_stack_var): Same.
16544 (add_stack_var_conflict): Same.
16545 (add_scope_conflicts_1): Same.
16546 (update_alias_info_with_stack_vars): Same.
16547 (expand_used_vars): Same.
16548 * cfghooks.c (redirect_edge_and_branch_force): Same.
16549 (delete_basic_block): Same.
16550 (split_edge): Same.
16551 (make_forwarder_block): Same.
16552 (force_nonfallthru): Same.
16553 (duplicate_block): Same.
16554 (lv_flush_pending_stmts): Same.
16555 * cfghooks.h: Same.
16556 * cfgloop.c (flow_loops_cfg_dump): Same.
16557 (flow_loop_nested_p): Same.
16558 (superloop_at_depth): Same.
16559 (get_loop_latch_edges): Same.
16560 (flow_loop_dump): Same.
16561 (flow_loops_dump): Same.
16562 (flow_loops_free): Same.
16563 (flow_loop_nodes_find): Same.
16564 (establish_preds): Same.
16565 (flow_loop_tree_node_add): Same.
16566 (flow_loop_tree_node_remove): Same.
16567 (flow_loops_find): Same.
16568 (find_subloop_latch_edge_by_profile): Same.
16569 (find_subloop_latch_edge_by_ivs): Same.
16570 (mfb_redirect_edges_in_set): Same.
16571 (form_subloop): Same.
16572 (merge_latch_edges): Same.
16573 (disambiguate_multiple_latches): Same.
16574 (disambiguate_loops_with_multiple_latches): Same.
16575 (flow_bb_inside_loop_p): Same.
16576 (glb_enum_p): Same.
16577 (get_loop_body_with_size): Same.
16578 (get_loop_body): Same.
16579 (fill_sons_in_loop): Same.
16580 (get_loop_body_in_dom_order): Same.
16581 (get_loop_body_in_custom_order): Same.
16582 (release_recorded_exits): Same.
16583 (get_loop_exit_edges): Same.
16584 (num_loop_branches): Same.
16585 (remove_bb_from_loops): Same.
16586 (find_common_loop): Same.
16587 (delete_loop): Same.
16588 (cancel_loop): Same.
16589 (verify_loop_structure): Same.
16590 (loop_preheader_edge): Same.
16591 (loop_exit_edge_p): Same.
16592 (single_exit): Same.
16593 (loop_exits_to_bb_p): Same.
16594 (loop_exits_from_bb_p): Same.
16595 (get_loop_location): Same.
16596 (record_niter_bound): Same.
16597 (get_estimated_loop_iterations_int): Same.
16598 (max_stmt_executions_int): Same.
16599 (likely_max_stmt_executions_int): Same.
16600 (get_estimated_loop_iterations): Same.
16601 (get_max_loop_iterations): Same.
16602 (get_max_loop_iterations_int): Same.
16603 (get_likely_max_loop_iterations): Same.
16604 * cfgloop.h (simple_loop_desc): Same.
16605 (get_loop): Same.
16606 (loop_depth): Same.
16607 (loop_outer): Same.
16608 (loop_iterator::next): Same.
16609 (loop_outermost): Same.
16610 * cfgloopanal.c (mark_irreducible_loops): Same.
16611 (num_loop_insns): Same.
16612 (average_num_loop_insns): Same.
16613 (expected_loop_iterations_unbounded): Same.
16614 (expected_loop_iterations): Same.
16615 (mark_loop_exit_edges): Same.
16616 (single_likely_exit): Same.
16617 * cfgloopmanip.c (fix_bb_placement): Same.
16618 (fix_bb_placements): Same.
16619 (remove_path): Same.
16620 (place_new_loop): Same.
16621 (add_loop): Same.
16622 (scale_loop_frequencies): Same.
16623 (scale_loop_profile): Same.
16624 (create_empty_if_region_on_edge): Same.
16625 (create_empty_loop_on_edge): Same.
16626 (loopify): Same.
16627 (unloop): Same.
16628 (fix_loop_placements): Same.
16629 (copy_loop_info): Same.
16630 (duplicate_loop): Same.
16631 (duplicate_subloops): Same.
16632 (loop_redirect_edge): Same.
16633 (can_duplicate_loop_p): Same.
16634 (duplicate_loop_to_header_edge): Same.
16635 (mfb_keep_just): Same.
16636 (has_preds_from_loop): Same.
16637 (create_preheader): Same.
16638 (create_preheaders): Same.
16639 (lv_adjust_loop_entry_edge): Same.
16640 (loop_version): Same.
16641 * cfgloopmanip.h: Same.
16642 * cgraph.h: Same.
16643 * cgraphbuild.c: Same.
16644 * combine.c (make_extraction): Same.
16645 * config/i386/i386-features.c: Same.
16646 * config/i386/i386-features.h: Same.
16647 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
16648 (ix86_emit_outlined_ms2sysv_restore): Same.
16649 (ix86_noce_conversion_profitable_p): Same.
16650 (ix86_init_cost): Same.
16651 (ix86_simd_clone_usable): Same.
16652 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
16653 Wstruct-not-pod.
16654 * coretypes.h: Same.
16655 * data-streamer-in.c (string_for_index): Change class-key of PODs
16656 to struct and others to class.
16657 (streamer_read_indexed_string): Same.
16658 (streamer_read_string): Same.
16659 (bp_unpack_indexed_string): Same.
16660 (bp_unpack_string): Same.
16661 (streamer_read_uhwi): Same.
16662 (streamer_read_hwi): Same.
16663 (streamer_read_gcov_count): Same.
16664 (streamer_read_wide_int): Same.
16665 * data-streamer.h (streamer_write_bitpack): Same.
16666 (bp_unpack_value): Same.
16667 (streamer_write_char_stream): Same.
16668 (streamer_write_hwi_in_range): Same.
16669 (streamer_write_record_start): Same.
16670 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
16671 (add_cross_iteration_register_deps): Same.
16672 (build_intra_loop_deps): Same.
16673 * df-core.c (df_analyze): Same.
16674 (loop_post_order_compute): Same.
16675 (loop_inverted_post_order_compute): Same.
16676 * df-problems.c (df_rd_alloc): Same.
16677 (df_rd_simulate_one_insn): Same.
16678 (df_rd_local_compute): Same.
16679 (df_rd_init_solution): Same.
16680 (df_rd_confluence_n): Same.
16681 (df_rd_transfer_function): Same.
16682 (df_rd_free): Same.
16683 (df_rd_dump_defs_set): Same.
16684 (df_rd_top_dump): Same.
16685 (df_lr_alloc): Same.
16686 (df_lr_reset): Same.
16687 (df_lr_local_compute): Same.
16688 (df_lr_init): Same.
16689 (df_lr_confluence_n): Same.
16690 (df_lr_free): Same.
16691 (df_lr_top_dump): Same.
16692 (df_lr_verify_transfer_functions): Same.
16693 (df_live_alloc): Same.
16694 (df_live_reset): Same.
16695 (df_live_init): Same.
16696 (df_live_confluence_n): Same.
16697 (df_live_finalize): Same.
16698 (df_live_free): Same.
16699 (df_live_top_dump): Same.
16700 (df_live_verify_transfer_functions): Same.
16701 (df_mir_alloc): Same.
16702 (df_mir_reset): Same.
16703 (df_mir_init): Same.
16704 (df_mir_confluence_n): Same.
16705 (df_mir_free): Same.
16706 (df_mir_top_dump): Same.
16707 (df_word_lr_alloc): Same.
16708 (df_word_lr_reset): Same.
16709 (df_word_lr_init): Same.
16710 (df_word_lr_confluence_n): Same.
16711 (df_word_lr_free): Same.
16712 (df_word_lr_top_dump): Same.
16713 (df_md_alloc): Same.
16714 (df_md_simulate_one_insn): Same.
16715 (df_md_reset): Same.
16716 (df_md_init): Same.
16717 (df_md_free): Same.
16718 (df_md_top_dump): Same.
16719 * df-scan.c (df_insn_delete): Same.
16720 (df_insn_rescan): Same.
16721 (df_notes_rescan): Same.
16722 (df_sort_and_compress_mws): Same.
16723 (df_install_mws): Same.
16724 (df_refs_add_to_chains): Same.
16725 (df_ref_create_structure): Same.
16726 (df_ref_record): Same.
16727 (df_def_record_1): Same.
16728 (df_find_hard_reg_defs): Same.
16729 (df_uses_record): Same.
16730 (df_get_conditional_uses): Same.
16731 (df_get_call_refs): Same.
16732 (df_recompute_luids): Same.
16733 (df_get_entry_block_def_set): Same.
16734 (df_entry_block_defs_collect): Same.
16735 (df_get_exit_block_use_set): Same.
16736 (df_exit_block_uses_collect): Same.
16737 (df_mws_verify): Same.
16738 (df_bb_verify): Same.
16739 * df.h (df_scan_get_bb_info): Same.
16740 * doc/tm.texi: Same.
16741 * dse.c (record_store): Same.
16742 * dumpfile.h: Same.
16743 * emit-rtl.c (const_fixed_hasher::equal): Same.
16744 (set_mem_attributes_minus_bitpos): Same.
16745 (change_address): Same.
16746 (adjust_address_1): Same.
16747 (offset_address): Same.
16748 * emit-rtl.h: Same.
16749 * except.c (dw2_build_landing_pads): Same.
16750 (sjlj_emit_dispatch_table): Same.
16751 * explow.c (allocate_dynamic_stack_space): Same.
16752 (emit_stack_probe): Same.
16753 (probe_stack_range): Same.
16754 * expmed.c (store_bit_field_using_insv): Same.
16755 (store_bit_field_1): Same.
16756 (store_integral_bit_field): Same.
16757 (extract_bit_field_using_extv): Same.
16758 (extract_bit_field_1): Same.
16759 (emit_cstore): Same.
16760 * expr.c (emit_block_move_via_cpymem): Same.
16761 (expand_cmpstrn_or_cmpmem): Same.
16762 (set_storage_via_setmem): Same.
16763 (emit_single_push_insn_1): Same.
16764 (expand_assignment): Same.
16765 (store_constructor): Same.
16766 (expand_expr_real_2): Same.
16767 (expand_expr_real_1): Same.
16768 (try_casesi): Same.
16769 * flags.h: Same.
16770 * function.c (try_fit_stack_local): Same.
16771 (assign_stack_local_1): Same.
16772 (assign_stack_local): Same.
16773 (cut_slot_from_list): Same.
16774 (insert_slot_to_list): Same.
16775 (max_slot_level): Same.
16776 (move_slot_to_level): Same.
16777 (temp_address_hasher::equal): Same.
16778 (remove_unused_temp_slot_addresses): Same.
16779 (assign_temp): Same.
16780 (combine_temp_slots): Same.
16781 (update_temp_slot_address): Same.
16782 (preserve_temp_slots): Same.
16783 * function.h: Same.
16784 * fwprop.c: Same.
16785 * gcc-rich-location.h: Same.
16786 * gcov.c: Same.
16787 * genattrtab.c (check_attr_test): Same.
16788 (check_attr_value): Same.
16789 (convert_set_attr_alternative): Same.
16790 (convert_set_attr): Same.
16791 (check_defs): Same.
16792 (copy_boolean): Same.
16793 (get_attr_value): Same.
16794 (expand_delays): Same.
16795 (make_length_attrs): Same.
16796 (min_fn): Same.
16797 (make_alternative_compare): Same.
16798 (simplify_test_exp): Same.
16799 (tests_attr_p): Same.
16800 (get_attr_order): Same.
16801 (clear_struct_flag): Same.
16802 (gen_attr): Same.
16803 (compares_alternatives_p): Same.
16804 (gen_insn): Same.
16805 (gen_delay): Same.
16806 (find_attrs_to_cache): Same.
16807 (write_test_expr): Same.
16808 (walk_attr_value): Same.
16809 (write_attr_get): Same.
16810 (eliminate_known_true): Same.
16811 (write_insn_cases): Same.
16812 (write_attr_case): Same.
16813 (write_attr_valueq): Same.
16814 (write_attr_value): Same.
16815 (write_dummy_eligible_delay): Same.
16816 (next_comma_elt): Same.
16817 (find_attr): Same.
16818 (make_internal_attr): Same.
16819 (copy_rtx_unchanging): Same.
16820 (gen_insn_reserv): Same.
16821 (check_tune_attr): Same.
16822 (make_automaton_attrs): Same.
16823 (handle_arg): Same.
16824 * genextract.c (gen_insn): Same.
16825 (VEC_char_to_string): Same.
16826 * genmatch.c (print_operand): Same.
16827 (lower): Same.
16828 (parser::parse_operation): Same.
16829 (parser::parse_capture): Same.
16830 (parser::parse_c_expr): Same.
16831 (parser::parse_simplify): Same.
16832 (main): Same.
16833 * genoutput.c (output_operand_data): Same.
16834 (output_get_insn_name): Same.
16835 (compare_operands): Same.
16836 (place_operands): Same.
16837 (process_template): Same.
16838 (validate_insn_alternatives): Same.
16839 (validate_insn_operands): Same.
16840 (gen_expand): Same.
16841 (note_constraint): Same.
16842 * genpreds.c (write_one_predicate_function): Same.
16843 (add_constraint): Same.
16844 (process_define_register_constraint): Same.
16845 (write_lookup_constraint_1): Same.
16846 (write_lookup_constraint_array): Same.
16847 (write_insn_constraint_len): Same.
16848 (write_reg_class_for_constraint_1): Same.
16849 (write_constraint_satisfied_p_array): Same.
16850 * genrecog.c (optimize_subroutine_group): Same.
16851 * gensupport.c (process_define_predicate): Same.
16852 (queue_pattern): Same.
16853 (remove_from_queue): Same.
16854 (process_rtx): Same.
16855 (is_predicable): Same.
16856 (change_subst_attribute): Same.
16857 (subst_pattern_match): Same.
16858 (alter_constraints): Same.
16859 (alter_attrs_for_insn): Same.
16860 (shift_output_template): Same.
16861 (alter_output_for_subst_insn): Same.
16862 (process_one_cond_exec): Same.
16863 (subst_dup): Same.
16864 (process_define_cond_exec): Same.
16865 (mnemonic_htab_callback): Same.
16866 (gen_mnemonic_attr): Same.
16867 (read_md_rtx): Same.
16868 * ggc-page.c: Same.
16869 * gimple-loop-interchange.cc (dump_reduction): Same.
16870 (dump_induction): Same.
16871 (loop_cand::~loop_cand): Same.
16872 (free_data_refs_with_aux): Same.
16873 (tree_loop_interchange::interchange_loops): Same.
16874 (tree_loop_interchange::map_inductions_to_loop): Same.
16875 (tree_loop_interchange::move_code_to_inner_loop): Same.
16876 (compute_access_stride): Same.
16877 (compute_access_strides): Same.
16878 (proper_loop_form_for_interchange): Same.
16879 (tree_loop_interchange_compute_ddrs): Same.
16880 (prune_datarefs_not_in_loop): Same.
16881 (prepare_data_references): Same.
16882 (pass_linterchange::execute): Same.
16883 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
16884 (unroll_jam_possible_p): Same.
16885 (fuse_loops): Same.
16886 (adjust_unroll_factor): Same.
16887 (tree_loop_unroll_and_jam): Same.
16888 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
16889 (loop_versioning::expensive_stmt_p): Same.
16890 (loop_versioning::version_for_unity): Same.
16891 (loop_versioning::dump_inner_likelihood): Same.
16892 (loop_versioning::find_per_loop_multiplication): Same.
16893 (loop_versioning::analyze_term_using_scevs): Same.
16894 (loop_versioning::record_address_fragment): Same.
16895 (loop_versioning::analyze_expr): Same.
16896 (loop_versioning::analyze_blocks): Same.
16897 (loop_versioning::prune_conditions): Same.
16898 (loop_versioning::merge_loop_info): Same.
16899 (loop_versioning::add_loop_to_queue): Same.
16900 (loop_versioning::decide_whether_loop_is_versionable): Same.
16901 (loop_versioning::make_versioning_decisions): Same.
16902 (loop_versioning::implement_versioning_decisions): Same.
16903 * gimple-ssa-evrp-analyze.c
16904 (evrp_range_analyzer::record_ranges_from_phis): Same.
16905 * gimple-ssa-store-merging.c (split_store::split_store): Same.
16906 (count_multiple_uses): Same.
16907 (split_group): Same.
16908 (imm_store_chain_info::output_merged_store): Same.
16909 (pass_store_merging::process_store): Same.
16910 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
16911 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
16912 (is_max): Same.
16913 (alloca_call_type): Same.
16914 (pass_walloca::execute): Same.
16915 * gimple-streamer-in.c (input_phi): Same.
16916 (input_gimple_stmt): Same.
16917 * gimple-streamer.h: Same.
16918 * godump.c (go_force_record_alignment): Same.
16919 (go_format_type): Same.
16920 (go_output_type): Same.
16921 (go_output_fndecl): Same.
16922 (go_output_typedef): Same.
16923 (keyword_hash_init): Same.
16924 (find_dummy_types): Same.
16925 * graph.c (draw_cfg_nodes_no_loops): Same.
16926 (draw_cfg_nodes_for_loop): Same.
16927 * hard-reg-set.h (hard_reg_set_iter_next): Same.
16928 * hsa-brig.c: Same.
16929 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
16930 * hsa-dump.c (dump_hsa_cfun): Same.
16931 * hsa-gen.c (gen_function_def_parameters): Same.
16932 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
16933 * input.c (dump_line_table_statistics): Same.
16934 (test_lexer): Same.
16935 * input.h: Same.
16936 * internal-fn.c (get_multi_vector_move): Same.
16937 (expand_load_lanes_optab_fn): Same.
16938 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
16939 (expand_GOMP_SIMT_EXIT): Same.
16940 (expand_GOMP_SIMT_LAST_LANE): Same.
16941 (expand_GOMP_SIMT_ORDERED_PRED): Same.
16942 (expand_GOMP_SIMT_VOTE_ANY): Same.
16943 (expand_GOMP_SIMT_XCHG_BFLY): Same.
16944 (expand_GOMP_SIMT_XCHG_IDX): Same.
16945 (expand_addsub_overflow): Same.
16946 (expand_neg_overflow): Same.
16947 (expand_mul_overflow): Same.
16948 (expand_call_mem_ref): Same.
16949 (expand_mask_load_optab_fn): Same.
16950 (expand_scatter_store_optab_fn): Same.
16951 (expand_gather_load_optab_fn): Same.
16952 * ipa-cp.c (ipa_get_parm_lattices): Same.
16953 (print_all_lattices): Same.
16954 (ignore_edge_p): Same.
16955 (build_toporder_info): Same.
16956 (free_toporder_info): Same.
16957 (push_node_to_stack): Same.
16958 (ipcp_lattice<valtype>::set_contains_variable): Same.
16959 (set_agg_lats_to_bottom): Same.
16960 (ipcp_bits_lattice::meet_with): Same.
16961 (set_single_call_flag): Same.
16962 (initialize_node_lattices): Same.
16963 (ipa_get_jf_ancestor_result): Same.
16964 (ipcp_verify_propagated_values): Same.
16965 (propagate_scalar_across_jump_function): Same.
16966 (propagate_context_across_jump_function): Same.
16967 (propagate_bits_across_jump_function): Same.
16968 (ipa_vr_operation_and_type_effects): Same.
16969 (propagate_vr_across_jump_function): Same.
16970 (set_check_aggs_by_ref): Same.
16971 (set_chain_of_aglats_contains_variable): Same.
16972 (merge_aggregate_lattices): Same.
16973 (agg_pass_through_permissible_p): Same.
16974 (propagate_aggs_across_jump_function): Same.
16975 (call_passes_through_thunk_p): Same.
16976 (propagate_constants_across_call): Same.
16977 (devirtualization_time_bonus): Same.
16978 (good_cloning_opportunity_p): Same.
16979 (context_independent_aggregate_values): Same.
16980 (gather_context_independent_values): Same.
16981 (perform_estimation_of_a_value): Same.
16982 (estimate_local_effects): Same.
16983 (value_topo_info<valtype>::add_val): Same.
16984 (add_all_node_vals_to_toposort): Same.
16985 (value_topo_info<valtype>::propagate_effects): Same.
16986 (ipcp_propagate_stage): Same.
16987 (ipcp_discover_new_direct_edges): Same.
16988 (same_node_or_its_all_contexts_clone_p): Same.
16989 (cgraph_edge_brings_value_p): Same.
16990 (gather_edges_for_value): Same.
16991 (create_specialized_node): Same.
16992 (find_more_scalar_values_for_callers_subset): Same.
16993 (find_more_contexts_for_caller_subset): Same.
16994 (copy_plats_to_inter): Same.
16995 (intersect_aggregates_with_edge): Same.
16996 (find_aggregate_values_for_callers_subset): Same.
16997 (cgraph_edge_brings_all_agg_vals_for_node): Same.
16998 (decide_about_value): Same.
16999 (decide_whether_version_node): Same.
17000 (spread_undeadness): Same.
17001 (identify_dead_nodes): Same.
17002 (ipcp_store_vr_results): Same.
17003 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
17004 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
17005 (redirect_to_unreachable): Same.
17006 (edge_set_predicate): Same.
17007 (evaluate_conditions_for_known_args): Same.
17008 (evaluate_properties_for_edge): Same.
17009 (ipa_fn_summary_t::duplicate): Same.
17010 (ipa_call_summary_t::duplicate): Same.
17011 (dump_ipa_call_summary): Same.
17012 (ipa_dump_fn_summary): Same.
17013 (eliminated_by_inlining_prob): Same.
17014 (set_cond_stmt_execution_predicate): Same.
17015 (set_switch_stmt_execution_predicate): Same.
17016 (compute_bb_predicates): Same.
17017 (will_be_nonconstant_expr_predicate): Same.
17018 (phi_result_unknown_predicate): Same.
17019 (analyze_function_body): Same.
17020 (compute_fn_summary): Same.
17021 (estimate_edge_devirt_benefit): Same.
17022 (estimate_edge_size_and_time): Same.
17023 (estimate_calls_size_and_time): Same.
17024 (estimate_node_size_and_time): Same.
17025 (remap_edge_change_prob): Same.
17026 (remap_edge_summaries): Same.
17027 (ipa_merge_fn_summary_after_inlining): Same.
17028 (ipa_fn_summary_generate): Same.
17029 (inline_read_section): Same.
17030 (ipa_fn_summary_read): Same.
17031 (ipa_fn_summary_write): Same.
17032 * ipa-fnsummary.h: Same.
17033 * ipa-hsa.c (ipa_hsa_read_section): Same.
17034 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
17035 * ipa-icf.c (sem_function::param_used_p): Same.
17036 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
17037 * ipa-inline.c (edge_badness): Same.
17038 (inline_small_functions): Same.
17039 * ipa-polymorphic-call.c
17040 (ipa_polymorphic_call_context::stream_out): Same.
17041 * ipa-predicate.c (predicate::remap_after_duplication): Same.
17042 (predicate::remap_after_inlining): Same.
17043 (predicate::stream_out): Same.
17044 * ipa-predicate.h: Same.
17045 * ipa-profile.c (ipa_profile_read_summary): Same.
17046 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
17047 (count_formal_params): Same.
17048 (ipa_dump_param): Same.
17049 (ipa_alloc_node_params): Same.
17050 (ipa_print_node_jump_functions_for_edge): Same.
17051 (ipa_print_node_jump_functions): Same.
17052 (ipa_load_from_parm_agg): Same.
17053 (get_ancestor_addr_info): Same.
17054 (ipa_compute_jump_functions_for_edge): Same.
17055 (ipa_analyze_virtual_call_uses): Same.
17056 (ipa_analyze_stmt_uses): Same.
17057 (ipa_analyze_params_uses_in_bb): Same.
17058 (update_jump_functions_after_inlining): Same.
17059 (try_decrement_rdesc_refcount): Same.
17060 (ipa_impossible_devirt_target): Same.
17061 (update_indirect_edges_after_inlining): Same.
17062 (combine_controlled_uses_counters): Same.
17063 (ipa_edge_args_sum_t::duplicate): Same.
17064 (ipa_write_jump_function): Same.
17065 (ipa_write_indirect_edge_info): Same.
17066 (ipa_write_node_info): Same.
17067 (ipa_read_edge_info): Same.
17068 (ipa_prop_read_section): Same.
17069 (read_replacements_section): Same.
17070 * ipa-prop.h (ipa_get_param_count): Same.
17071 (ipa_get_param): Same.
17072 (ipa_get_type): Same.
17073 (ipa_get_param_move_cost): Same.
17074 (ipa_set_param_used): Same.
17075 (ipa_get_controlled_uses): Same.
17076 (ipa_set_controlled_uses): Same.
17077 (ipa_get_cs_argument_count): Same.
17078 * ipa-pure-const.c (analyze_function): Same.
17079 (pure_const_read_summary): Same.
17080 * ipa-ref.h: Same.
17081 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
17082 * ipa-split.c (test_nonssa_use): Same.
17083 (dump_split_point): Same.
17084 (dominated_by_forbidden): Same.
17085 (split_part_set_ssa_name_p): Same.
17086 (find_split_points): Same.
17087 * ira-build.c (finish_loop_tree_nodes): Same.
17088 (low_pressure_loop_node_p): Same.
17089 * ira-color.c (ira_reuse_stack_slot): Same.
17090 * ira-int.h: Same.
17091 * ira.c (setup_reg_equiv): Same.
17092 (print_insn_chain): Same.
17093 (ira): Same.
17094 * loop-doloop.c (doloop_condition_get): Same.
17095 (add_test): Same.
17096 (record_reg_sets): Same.
17097 (doloop_optimize): Same.
17098 * loop-init.c (loop_optimizer_init): Same.
17099 (fix_loop_structure): Same.
17100 * loop-invariant.c (merge_identical_invariants): Same.
17101 (compute_always_reached): Same.
17102 (find_exits): Same.
17103 (may_assign_reg_p): Same.
17104 (find_invariants_bb): Same.
17105 (find_invariants_body): Same.
17106 (replace_uses): Same.
17107 (can_move_invariant_reg): Same.
17108 (free_inv_motion_data): Same.
17109 (move_single_loop_invariants): Same.
17110 (change_pressure): Same.
17111 (mark_ref_regs): Same.
17112 (calculate_loop_reg_pressure): Same.
17113 * loop-iv.c (biv_entry_hasher::equal): Same.
17114 (iv_extend_to_rtx_code): Same.
17115 (check_iv_ref_table_size): Same.
17116 (clear_iv_info): Same.
17117 (latch_dominating_def): Same.
17118 (iv_get_reaching_def): Same.
17119 (iv_constant): Same.
17120 (iv_subreg): Same.
17121 (iv_extend): Same.
17122 (iv_neg): Same.
17123 (iv_add): Same.
17124 (iv_mult): Same.
17125 (get_biv_step): Same.
17126 (record_iv): Same.
17127 (analyzed_for_bivness_p): Same.
17128 (record_biv): Same.
17129 (iv_analyze_biv): Same.
17130 (iv_analyze_expr): Same.
17131 (iv_analyze_def): Same.
17132 (iv_analyze_op): Same.
17133 (iv_analyze): Same.
17134 (iv_analyze_result): Same.
17135 (biv_p): Same.
17136 (eliminate_implied_conditions): Same.
17137 (simplify_using_initial_values): Same.
17138 (shorten_into_mode): Same.
17139 (canonicalize_iv_subregs): Same.
17140 (determine_max_iter): Same.
17141 (check_simple_exit): Same.
17142 (find_simple_exit): Same.
17143 (get_simple_loop_desc): Same.
17144 * loop-unroll.c (report_unroll): Same.
17145 (decide_unrolling): Same.
17146 (unroll_loops): Same.
17147 (loop_exit_at_end_p): Same.
17148 (decide_unroll_constant_iterations): Same.
17149 (unroll_loop_constant_iterations): Same.
17150 (compare_and_jump_seq): Same.
17151 (unroll_loop_runtime_iterations): Same.
17152 (decide_unroll_stupid): Same.
17153 (unroll_loop_stupid): Same.
17154 (referenced_in_one_insn_in_loop_p): Same.
17155 (reset_debug_uses_in_loop): Same.
17156 (analyze_iv_to_split_insn): Same.
17157 * lra-eliminations.c (lra_debug_elim_table): Same.
17158 (setup_can_eliminate): Same.
17159 (form_sum): Same.
17160 (lra_get_elimination_hard_regno): Same.
17161 (lra_eliminate_regs_1): Same.
17162 (eliminate_regs_in_insn): Same.
17163 (update_reg_eliminate): Same.
17164 (init_elimination): Same.
17165 (lra_eliminate): Same.
17166 * lra-int.h: Same.
17167 * lra-lives.c (initiate_live_solver): Same.
17168 * lra-remat.c (create_remat_bb_data): Same.
17169 * lra-spills.c (lra_spill): Same.
17170 * lra.c (lra_set_insn_recog_data): Same.
17171 (lra_set_used_insn_alternative_by_uid): Same.
17172 (init_reg_info): Same.
17173 (expand_reg_info): Same.
17174 * lto-cgraph.c (output_symtab): Same.
17175 (read_identifier): Same.
17176 (get_alias_symbol): Same.
17177 (input_node): Same.
17178 (input_varpool_node): Same.
17179 (input_ref): Same.
17180 (input_edge): Same.
17181 (input_cgraph_1): Same.
17182 (input_refs): Same.
17183 (input_symtab): Same.
17184 (input_offload_tables): Same.
17185 (output_cgraph_opt_summary): Same.
17186 (input_edge_opt_summary): Same.
17187 (input_cgraph_opt_section): Same.
17188 * lto-section-in.c (lto_free_raw_section_data): Same.
17189 (lto_create_simple_input_block): Same.
17190 (lto_free_function_in_decl_state_for_node): Same.
17191 * lto-streamer-in.c (lto_tag_check_set): Same.
17192 (lto_location_cache::revert_location_cache): Same.
17193 (lto_location_cache::input_location): Same.
17194 (lto_input_location): Same.
17195 (stream_input_location_now): Same.
17196 (lto_input_tree_ref): Same.
17197 (lto_input_eh_catch_list): Same.
17198 (input_eh_region): Same.
17199 (lto_init_eh): Same.
17200 (make_new_block): Same.
17201 (input_cfg): Same.
17202 (fixup_call_stmt_edges): Same.
17203 (input_struct_function_base): Same.
17204 (input_function): Same.
17205 (lto_read_body_or_constructor): Same.
17206 (lto_read_tree_1): Same.
17207 (lto_read_tree): Same.
17208 (lto_input_scc): Same.
17209 (lto_input_tree_1): Same.
17210 (lto_input_toplevel_asms): Same.
17211 (lto_input_mode_table): Same.
17212 (lto_reader_init): Same.
17213 (lto_data_in_create): Same.
17214 * lto-streamer-out.c (output_cfg): Same.
17215 * lto-streamer.h: Same.
17216 * modulo-sched.c (duplicate_insns_of_cycles): Same.
17217 (generate_prolog_epilog): Same.
17218 (mark_loop_unsched): Same.
17219 (dump_insn_location): Same.
17220 (loop_canon_p): Same.
17221 (sms_schedule): Same.
17222 * omp-expand.c (expand_omp_for_ordered_loops): Same.
17223 (expand_omp_for_generic): Same.
17224 (expand_omp_for_static_nochunk): Same.
17225 (expand_omp_for_static_chunk): Same.
17226 (expand_omp_simd): Same.
17227 (expand_omp_taskloop_for_inner): Same.
17228 (expand_oacc_for): Same.
17229 (expand_omp_atomic_pipeline): Same.
17230 (mark_loops_in_oacc_kernels_region): Same.
17231 * omp-offload.c (oacc_xform_loop): Same.
17232 * omp-simd-clone.c (simd_clone_adjust): Same.
17233 * optabs-query.c (get_traditional_extraction_insn): Same.
17234 * optabs.c (expand_vector_broadcast): Same.
17235 (expand_binop_directly): Same.
17236 (expand_twoval_unop): Same.
17237 (expand_twoval_binop): Same.
17238 (expand_unop_direct): Same.
17239 (emit_indirect_jump): Same.
17240 (emit_conditional_move): Same.
17241 (emit_conditional_neg_or_complement): Same.
17242 (emit_conditional_add): Same.
17243 (vector_compare_rtx): Same.
17244 (expand_vec_perm_1): Same.
17245 (expand_vec_perm_const): Same.
17246 (expand_vec_cond_expr): Same.
17247 (expand_vec_series_expr): Same.
17248 (maybe_emit_atomic_exchange): Same.
17249 (maybe_emit_sync_lock_test_and_set): Same.
17250 (expand_atomic_compare_and_swap): Same.
17251 (expand_atomic_load): Same.
17252 (expand_atomic_store): Same.
17253 (maybe_emit_op): Same.
17254 (valid_multiword_target_p): Same.
17255 (create_integer_operand): Same.
17256 (maybe_legitimize_operand_same_code): Same.
17257 (maybe_legitimize_operand): Same.
17258 (create_convert_operand_from_type): Same.
17259 (can_reuse_operands_p): Same.
17260 (maybe_legitimize_operands): Same.
17261 (maybe_gen_insn): Same.
17262 (maybe_expand_insn): Same.
17263 (maybe_expand_jump_insn): Same.
17264 (expand_insn): Same.
17265 * optabs.h (create_expand_operand): Same.
17266 (create_fixed_operand): Same.
17267 (create_output_operand): Same.
17268 (create_input_operand): Same.
17269 (create_convert_operand_to): Same.
17270 (create_convert_operand_from): Same.
17271 * optinfo.h: Same.
17272 * poly-int.h: Same.
17273 * predict.c (optimize_insn_for_speed_p): Same.
17274 (optimize_loop_for_size_p): Same.
17275 (optimize_loop_for_speed_p): Same.
17276 (optimize_loop_nest_for_speed_p): Same.
17277 (get_base_value): Same.
17278 (predicted_by_loop_heuristics_p): Same.
17279 (predict_extra_loop_exits): Same.
17280 (predict_loops): Same.
17281 (predict_paths_for_bb): Same.
17282 (predict_paths_leading_to): Same.
17283 (propagate_freq): Same.
17284 (pass_profile::execute): Same.
17285 * predict.h: Same.
17286 * profile-count.c (profile_count::differs_from_p): Same.
17287 (profile_probability::differs_lot_from_p): Same.
17288 * profile-count.h: Same.
17289 * profile.c (branch_prob): Same.
17290 * regrename.c (free_chain_data): Same.
17291 (mark_conflict): Same.
17292 (create_new_chain): Same.
17293 (merge_overlapping_regs): Same.
17294 (init_rename_info): Same.
17295 (merge_chains): Same.
17296 (regrename_analyze): Same.
17297 (regrename_do_replace): Same.
17298 (scan_rtx_reg): Same.
17299 (record_out_operands): Same.
17300 (build_def_use): Same.
17301 * regrename.h: Same.
17302 * reload.h: Same.
17303 * reload1.c (init_reload): Same.
17304 (maybe_fix_stack_asms): Same.
17305 (copy_reloads): Same.
17306 (count_pseudo): Same.
17307 (count_spilled_pseudo): Same.
17308 (find_reg): Same.
17309 (find_reload_regs): Same.
17310 (select_reload_regs): Same.
17311 (spill_hard_reg): Same.
17312 (fixup_eh_region_note): Same.
17313 (set_reload_reg): Same.
17314 (allocate_reload_reg): Same.
17315 (compute_reload_subreg_offset): Same.
17316 (reload_adjust_reg_for_icode): Same.
17317 (emit_input_reload_insns): Same.
17318 (emit_output_reload_insns): Same.
17319 (do_input_reload): Same.
17320 (inherit_piecemeal_p): Same.
17321 * rtl.h: Same.
17322 * sanopt.c (maybe_get_dominating_check): Same.
17323 (maybe_optimize_ubsan_ptr_ifn): Same.
17324 (can_remove_asan_check): Same.
17325 (maybe_optimize_asan_check_ifn): Same.
17326 (sanopt_optimize_walker): Same.
17327 * sched-deps.c (add_dependence_list): Same.
17328 (chain_to_prev_insn): Same.
17329 (add_insn_mem_dependence): Same.
17330 (create_insn_reg_set): Same.
17331 (maybe_extend_reg_info_p): Same.
17332 (sched_analyze_reg): Same.
17333 (sched_analyze_1): Same.
17334 (get_implicit_reg_pending_clobbers): Same.
17335 (chain_to_prev_insn_p): Same.
17336 (deps_analyze_insn): Same.
17337 (deps_start_bb): Same.
17338 (sched_free_deps): Same.
17339 (init_deps): Same.
17340 (init_deps_reg_last): Same.
17341 (free_deps): Same.
17342 * sched-ebb.c: Same.
17343 * sched-int.h: Same.
17344 * sched-rgn.c (add_branch_dependences): Same.
17345 (concat_insn_mem_list): Same.
17346 (deps_join): Same.
17347 (sched_rgn_compute_dependencies): Same.
17348 * sel-sched-ir.c (reset_target_context): Same.
17349 (copy_deps_context): Same.
17350 (init_id_from_df): Same.
17351 (has_dependence_p): Same.
17352 (change_loops_latches): Same.
17353 (bb_top_order_comparator): Same.
17354 (make_region_from_loop_preheader): Same.
17355 (sel_init_pipelining): Same.
17356 (get_loop_nest_for_rgn): Same.
17357 (make_regions_from_the_rest): Same.
17358 (sel_is_loop_preheader_p): Same.
17359 * sel-sched-ir.h (inner_loop_header_p): Same.
17360 (get_all_loop_exits): Same.
17361 * selftest.h: Same.
17362 * sese.c (sese_build_liveouts): Same.
17363 (sese_insert_phis_for_liveouts): Same.
17364 * sese.h (defined_in_sese_p): Same.
17365 * sreal.c (sreal::stream_out): Same.
17366 * sreal.h: Same.
17367 * streamer-hooks.h: Same.
17368 * target-globals.c (save_target_globals): Same.
17369 * target-globals.h: Same.
17370 * target.def: Same.
17371 * target.h: Same.
17372 * targhooks.c (default_has_ifunc_p): Same.
17373 (default_empty_mask_is_expensive): Same.
17374 (default_init_cost): Same.
17375 * targhooks.h: Same.
17376 * toplev.c: Same.
17377 * tree-affine.c (aff_combination_mult): Same.
17378 (aff_combination_expand): Same.
17379 (aff_combination_constant_multiple_p): Same.
17380 * tree-affine.h: Same.
17381 * tree-cfg.c (build_gimple_cfg): Same.
17382 (replace_loop_annotate_in_block): Same.
17383 (replace_uses_by): Same.
17384 (remove_bb): Same.
17385 (dump_cfg_stats): Same.
17386 (gimple_duplicate_sese_region): Same.
17387 (gimple_duplicate_sese_tail): Same.
17388 (move_block_to_fn): Same.
17389 (replace_block_vars_by_duplicates): Same.
17390 (move_sese_region_to_fn): Same.
17391 (print_loops_bb): Same.
17392 (print_loop): Same.
17393 (print_loops): Same.
17394 (debug): Same.
17395 (debug_loops): Same.
17396 * tree-cfg.h: Same.
17397 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
17398 (chrec_fold_multiply_poly_poly): Same.
17399 (chrec_evaluate): Same.
17400 (chrec_component_in_loop_num): Same.
17401 (reset_evolution_in_loop): Same.
17402 (is_multivariate_chrec): Same.
17403 (chrec_contains_symbols): Same.
17404 (nb_vars_in_chrec): Same.
17405 (chrec_convert_1): Same.
17406 (chrec_convert_aggressive): Same.
17407 * tree-chrec.h: Same.
17408 * tree-core.h: Same.
17409 * tree-data-ref.c (dump_data_dependence_relation): Same.
17410 (canonicalize_base_object_address): Same.
17411 (data_ref_compare_tree): Same.
17412 (prune_runtime_alias_test_list): Same.
17413 (get_segment_min_max): Same.
17414 (create_intersect_range_checks): Same.
17415 (conflict_fn_no_dependence): Same.
17416 (object_address_invariant_in_loop_p): Same.
17417 (analyze_ziv_subscript): Same.
17418 (analyze_siv_subscript_cst_affine): Same.
17419 (analyze_miv_subscript): Same.
17420 (analyze_overlapping_iterations): Same.
17421 (build_classic_dist_vector_1): Same.
17422 (add_other_self_distances): Same.
17423 (same_access_functions): Same.
17424 (build_classic_dir_vector): Same.
17425 (subscript_dependence_tester_1): Same.
17426 (subscript_dependence_tester): Same.
17427 (access_functions_are_affine_or_constant_p): Same.
17428 (get_references_in_stmt): Same.
17429 (loop_nest_has_data_refs): Same.
17430 (graphite_find_data_references_in_stmt): Same.
17431 (find_data_references_in_bb): Same.
17432 (get_base_for_alignment): Same.
17433 (find_loop_nest_1): Same.
17434 (find_loop_nest): Same.
17435 * tree-data-ref.h (dr_alignment): Same.
17436 (ddr_dependence_level): Same.
17437 * tree-if-conv.c (fold_build_cond_expr): Same.
17438 (add_to_predicate_list): Same.
17439 (add_to_dst_predicate_list): Same.
17440 (phi_convertible_by_degenerating_args): Same.
17441 (idx_within_array_bound): Same.
17442 (all_preds_critical_p): Same.
17443 (pred_blocks_visited_p): Same.
17444 (predicate_bbs): Same.
17445 (build_region): Same.
17446 (if_convertible_loop_p_1): Same.
17447 (is_cond_scalar_reduction): Same.
17448 (predicate_scalar_phi): Same.
17449 (remove_conditions_and_labels): Same.
17450 (combine_blocks): Same.
17451 (version_loop_for_if_conversion): Same.
17452 (versionable_outer_loop_p): Same.
17453 (ifcvt_local_dce): Same.
17454 (tree_if_conversion): Same.
17455 (pass_if_conversion::gate): Same.
17456 * tree-if-conv.h: Same.
17457 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
17458 * tree-loop-distribution.c (bb_top_order_cmp): Same.
17459 (free_rdg): Same.
17460 (stmt_has_scalar_dependences_outside_loop): Same.
17461 (copy_loop_before): Same.
17462 (create_bb_after_loop): Same.
17463 (const_with_all_bytes_same): Same.
17464 (generate_memset_builtin): Same.
17465 (generate_memcpy_builtin): Same.
17466 (destroy_loop): Same.
17467 (build_rdg_partition_for_vertex): Same.
17468 (compute_access_range): Same.
17469 (data_ref_segment_size): Same.
17470 (latch_dominated_by_data_ref): Same.
17471 (compute_alias_check_pairs): Same.
17472 (fuse_memset_builtins): Same.
17473 (finalize_partitions): Same.
17474 (find_seed_stmts_for_distribution): Same.
17475 (prepare_perfect_loop_nest): Same.
17476 * tree-parloops.c (lambda_transform_legal_p): Same.
17477 (loop_parallel_p): Same.
17478 (reduc_stmt_res): Same.
17479 (add_field_for_name): Same.
17480 (create_call_for_reduction_1): Same.
17481 (replace_uses_in_bb_by): Same.
17482 (transform_to_exit_first_loop_alt): Same.
17483 (try_transform_to_exit_first_loop_alt): Same.
17484 (transform_to_exit_first_loop): Same.
17485 (num_phis): Same.
17486 (gen_parallel_loop): Same.
17487 (gather_scalar_reductions): Same.
17488 (get_omp_data_i_param): Same.
17489 (try_create_reduction_list): Same.
17490 (oacc_entry_exit_single_gang): Same.
17491 (parallelize_loops): Same.
17492 * tree-pass.h: Same.
17493 * tree-predcom.c (determine_offset): Same.
17494 (last_always_executed_block): Same.
17495 (split_data_refs_to_components): Same.
17496 (suitable_component_p): Same.
17497 (valid_initializer_p): Same.
17498 (find_looparound_phi): Same.
17499 (insert_looparound_copy): Same.
17500 (add_looparound_copies): Same.
17501 (determine_roots_comp): Same.
17502 (predcom_tmp_var): Same.
17503 (initialize_root_vars): Same.
17504 (initialize_root_vars_store_elim_1): Same.
17505 (initialize_root_vars_store_elim_2): Same.
17506 (finalize_eliminated_stores): Same.
17507 (initialize_root_vars_lm): Same.
17508 (remove_stmt): Same.
17509 (determine_unroll_factor): Same.
17510 (execute_pred_commoning_cbck): Same.
17511 (base_names_in_chain_on): Same.
17512 (combine_chains): Same.
17513 (pcom_stmt_dominates_stmt_p): Same.
17514 (try_combine_chains): Same.
17515 (prepare_initializers_chain_store_elim): Same.
17516 (prepare_initializers_chain): Same.
17517 (prepare_initializers): Same.
17518 (prepare_finalizers_chain): Same.
17519 (prepare_finalizers): Same.
17520 (insert_init_seqs): Same.
17521 * tree-scalar-evolution.c (loop_phi_node_p): Same.
17522 (compute_overall_effect_of_inner_loop): Same.
17523 (add_to_evolution_1): Same.
17524 (add_to_evolution): Same.
17525 (follow_ssa_edge_binary): Same.
17526 (follow_ssa_edge_expr): Same.
17527 (backedge_phi_arg_p): Same.
17528 (follow_ssa_edge_in_condition_phi_branch): Same.
17529 (follow_ssa_edge_in_condition_phi): Same.
17530 (follow_ssa_edge_inner_loop_phi): Same.
17531 (follow_ssa_edge): Same.
17532 (analyze_evolution_in_loop): Same.
17533 (analyze_initial_condition): Same.
17534 (interpret_loop_phi): Same.
17535 (interpret_condition_phi): Same.
17536 (interpret_rhs_expr): Same.
17537 (interpret_expr): Same.
17538 (interpret_gimple_assign): Same.
17539 (analyze_scalar_evolution_1): Same.
17540 (analyze_scalar_evolution): Same.
17541 (analyze_scalar_evolution_for_address_of): Same.
17542 (get_instantiated_value_entry): Same.
17543 (loop_closed_phi_def): Same.
17544 (instantiate_scev_name): Same.
17545 (instantiate_scev_poly): Same.
17546 (instantiate_scev_binary): Same.
17547 (instantiate_scev_convert): Same.
17548 (instantiate_scev_not): Same.
17549 (instantiate_scev_r): Same.
17550 (instantiate_scev): Same.
17551 (resolve_mixers): Same.
17552 (initialize_scalar_evolutions_analyzer): Same.
17553 (scev_reset_htab): Same.
17554 (scev_reset): Same.
17555 (derive_simple_iv_with_niters): Same.
17556 (simple_iv_with_niters): Same.
17557 (expression_expensive_p): Same.
17558 (final_value_replacement_loop): Same.
17559 * tree-scalar-evolution.h (block_before_loop): Same.
17560 * tree-ssa-address.h: Same.
17561 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
17562 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
17563 (record_edge_info): Same.
17564 * tree-ssa-live.c (var_map_base_fini): Same.
17565 (remove_unused_locals): Same.
17566 * tree-ssa-live.h: Same.
17567 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
17568 (pass_ch_vect::execute): Same.
17569 (pass_ch::process_loop_p): Same.
17570 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
17571 (movement_possibility): Same.
17572 (outermost_invariant_loop): Same.
17573 (stmt_cost): Same.
17574 (determine_max_movement): Same.
17575 (invariantness_dom_walker::before_dom_children): Same.
17576 (move_computations): Same.
17577 (may_move_till): Same.
17578 (force_move_till_op): Same.
17579 (force_move_till): Same.
17580 (memref_free): Same.
17581 (record_mem_ref_loc): Same.
17582 (set_ref_stored_in_loop): Same.
17583 (mark_ref_stored): Same.
17584 (sort_bbs_in_loop_postorder_cmp): Same.
17585 (sort_locs_in_loop_postorder_cmp): Same.
17586 (analyze_memory_references): Same.
17587 (mem_refs_may_alias_p): Same.
17588 (find_ref_loc_in_loop_cmp): Same.
17589 (rewrite_mem_ref_loc::operator): Same.
17590 (first_mem_ref_loc_1::operator): Same.
17591 (sm_set_flag_if_changed::operator): Same.
17592 (execute_sm_if_changed_flag_set): Same.
17593 (execute_sm): Same.
17594 (hoist_memory_references): Same.
17595 (ref_always_accessed::operator): Same.
17596 (refs_independent_p): Same.
17597 (record_dep_loop): Same.
17598 (ref_indep_loop_p_1): Same.
17599 (ref_indep_loop_p): Same.
17600 (can_sm_ref_p): Same.
17601 (find_refs_for_sm): Same.
17602 (loop_suitable_for_sm): Same.
17603 (store_motion_loop): Same.
17604 (store_motion): Same.
17605 (fill_always_executed_in): Same.
17606 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
17607 (estimated_unrolled_size): Same.
17608 (loop_edge_to_cancel): Same.
17609 (remove_exits_and_undefined_stmts): Same.
17610 (remove_redundant_iv_tests): Same.
17611 (unloop_loops): Same.
17612 (estimated_peeled_sequence_size): Same.
17613 (try_peel_loop): Same.
17614 (canonicalize_loop_induction_variables): Same.
17615 (canonicalize_induction_variables): Same.
17616 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
17617 (name_info): Same.
17618 (stmt_after_inc_pos): Same.
17619 (contains_abnormal_ssa_name_p): Same.
17620 (niter_for_exit): Same.
17621 (find_bivs): Same.
17622 (mark_bivs): Same.
17623 (find_givs_in_bb): Same.
17624 (find_induction_variables): Same.
17625 (find_interesting_uses_cond): Same.
17626 (outermost_invariant_loop_for_expr): Same.
17627 (idx_find_step): Same.
17628 (add_candidate_1): Same.
17629 (add_iv_candidate_derived_from_uses): Same.
17630 (alloc_use_cost_map): Same.
17631 (prepare_decl_rtl): Same.
17632 (generic_predict_doloop_p): Same.
17633 (computation_cost): Same.
17634 (determine_common_wider_type): Same.
17635 (get_computation_aff_1): Same.
17636 (get_use_type): Same.
17637 (determine_group_iv_cost_address): Same.
17638 (iv_period): Same.
17639 (difference_cannot_overflow_p): Same.
17640 (may_eliminate_iv): Same.
17641 (determine_set_costs): Same.
17642 (cheaper_cost_pair): Same.
17643 (compare_cost_pair): Same.
17644 (iv_ca_cand_for_group): Same.
17645 (iv_ca_recount_cost): Same.
17646 (iv_ca_set_remove_invs): Same.
17647 (iv_ca_set_no_cp): Same.
17648 (iv_ca_set_add_invs): Same.
17649 (iv_ca_set_cp): Same.
17650 (iv_ca_add_group): Same.
17651 (iv_ca_cost): Same.
17652 (iv_ca_compare_deps): Same.
17653 (iv_ca_delta_reverse): Same.
17654 (iv_ca_delta_commit): Same.
17655 (iv_ca_cand_used_p): Same.
17656 (iv_ca_delta_free): Same.
17657 (iv_ca_new): Same.
17658 (iv_ca_free): Same.
17659 (iv_ca_dump): Same.
17660 (iv_ca_extend): Same.
17661 (iv_ca_narrow): Same.
17662 (iv_ca_prune): Same.
17663 (cheaper_cost_with_cand): Same.
17664 (iv_ca_replace): Same.
17665 (try_add_cand_for): Same.
17666 (get_initial_solution): Same.
17667 (try_improve_iv_set): Same.
17668 (find_optimal_iv_set_1): Same.
17669 (create_new_iv): Same.
17670 (rewrite_use_compare): Same.
17671 (remove_unused_ivs): Same.
17672 (determine_scaling_factor): Same.
17673 * tree-ssa-loop-ivopts.h: Same.
17674 * tree-ssa-loop-manip.c (create_iv): Same.
17675 (compute_live_loop_exits): Same.
17676 (add_exit_phi): Same.
17677 (add_exit_phis): Same.
17678 (find_uses_to_rename_use): Same.
17679 (find_uses_to_rename_def): Same.
17680 (find_uses_to_rename_in_loop): Same.
17681 (rewrite_into_loop_closed_ssa): Same.
17682 (check_loop_closed_ssa_bb): Same.
17683 (split_loop_exit_edge): Same.
17684 (ip_end_pos): Same.
17685 (ip_normal_pos): Same.
17686 (copy_phi_node_args): Same.
17687 (gimple_duplicate_loop_to_header_edge): Same.
17688 (can_unroll_loop_p): Same.
17689 (determine_exit_conditions): Same.
17690 (scale_dominated_blocks_in_loop): Same.
17691 (niter_for_unrolled_loop): Same.
17692 (tree_transform_and_unroll_loop): Same.
17693 (rewrite_all_phi_nodes_with_iv): Same.
17694 * tree-ssa-loop-manip.h: Same.
17695 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
17696 (number_of_iterations_ne): Same.
17697 (assert_no_overflow_lt): Same.
17698 (assert_loop_rolls_lt): Same.
17699 (number_of_iterations_lt): Same.
17700 (adjust_cond_for_loop_until_wrap): Same.
17701 (tree_simplify_using_condition): Same.
17702 (simplify_using_initial_conditions): Same.
17703 (simplify_using_outer_evolutions): Same.
17704 (loop_only_exit_p): Same.
17705 (ssa_defined_by_minus_one_stmt_p): Same.
17706 (number_of_iterations_popcount): Same.
17707 (number_of_iterations_exit): Same.
17708 (find_loop_niter): Same.
17709 (finite_loop_p): Same.
17710 (chain_of_csts_start): Same.
17711 (get_val_for): Same.
17712 (loop_niter_by_eval): Same.
17713 (derive_constant_upper_bound_ops): Same.
17714 (do_warn_aggressive_loop_optimizations): Same.
17715 (record_estimate): Same.
17716 (get_cst_init_from_scev): Same.
17717 (record_nonwrapping_iv): Same.
17718 (idx_infer_loop_bounds): Same.
17719 (infer_loop_bounds_from_ref): Same.
17720 (infer_loop_bounds_from_array): Same.
17721 (infer_loop_bounds_from_pointer_arith): Same.
17722 (infer_loop_bounds_from_signedness): Same.
17723 (bound_index): Same.
17724 (discover_iteration_bound_by_body_walk): Same.
17725 (maybe_lower_iteration_bound): Same.
17726 (estimate_numbers_of_iterations): Same.
17727 (estimated_loop_iterations): Same.
17728 (estimated_loop_iterations_int): Same.
17729 (max_loop_iterations): Same.
17730 (max_loop_iterations_int): Same.
17731 (likely_max_loop_iterations): Same.
17732 (likely_max_loop_iterations_int): Same.
17733 (estimated_stmt_executions_int): Same.
17734 (max_stmt_executions): Same.
17735 (likely_max_stmt_executions): Same.
17736 (estimated_stmt_executions): Same.
17737 (stmt_dominates_stmt_p): Same.
17738 (nowrap_type_p): Same.
17739 (loop_exits_before_overflow): Same.
17740 (scev_var_range_cant_overflow): Same.
17741 (scev_probably_wraps_p): Same.
17742 (free_numbers_of_iterations_estimates): Same.
17743 * tree-ssa-loop-niter.h: Same.
17744 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
17745 (idx_analyze_ref): Same.
17746 (analyze_ref): Same.
17747 (gather_memory_references_ref): Same.
17748 (mark_nontemporal_store): Same.
17749 (emit_mfence_after_loop): Same.
17750 (may_use_storent_in_loop_p): Same.
17751 (mark_nontemporal_stores): Same.
17752 (should_unroll_loop_p): Same.
17753 (volume_of_dist_vector): Same.
17754 (add_subscript_strides): Same.
17755 (self_reuse_distance): Same.
17756 (insn_to_prefetch_ratio_too_small_p): Same.
17757 * tree-ssa-loop-split.c (split_at_bb_p): Same.
17758 (patch_loop_exit): Same.
17759 (find_or_create_guard_phi): Same.
17760 (easy_exit_values): Same.
17761 (connect_loop_phis): Same.
17762 (connect_loops): Same.
17763 (compute_new_first_bound): Same.
17764 (split_loop): Same.
17765 (tree_ssa_split_loops): Same.
17766 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
17767 (is_maybe_undefined): Same.
17768 (tree_may_unswitch_on): Same.
17769 (simplify_using_entry_checks): Same.
17770 (tree_unswitch_single_loop): Same.
17771 (tree_unswitch_loop): Same.
17772 (tree_unswitch_outer_loop): Same.
17773 (empty_bb_without_guard_p): Same.
17774 (used_outside_loop_p): Same.
17775 (get_vop_from_header): Same.
17776 (hoist_guard): Same.
17777 * tree-ssa-loop.c (gate_oacc_kernels): Same.
17778 (get_lsm_tmp_name): Same.
17779 * tree-ssa-loop.h: Same.
17780 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
17781 (build_and_add_sum): Same.
17782 (no_side_effect_bb): Same.
17783 (get_ops): Same.
17784 (linearize_expr): Same.
17785 (should_break_up_subtract): Same.
17786 (linearize_expr_tree): Same.
17787 * tree-ssa-scopedtables.c: Same.
17788 * tree-ssa-scopedtables.h: Same.
17789 * tree-ssa-structalias.c (condense_visit): Same.
17790 (label_visit): Same.
17791 (dump_pred_graph): Same.
17792 (perform_var_substitution): Same.
17793 (move_complex_constraints): Same.
17794 (remove_preds_and_fake_succs): Same.
17795 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
17796 (determine_bb_domination_status): Same.
17797 (duplicate_thread_path): Same.
17798 (thread_through_all_blocks): Same.
17799 * tree-ssa-threadupdate.h: Same.
17800 * tree-streamer-in.c (streamer_read_string_cst): Same.
17801 (input_identifier): Same.
17802 (unpack_ts_type_common_value_fields): Same.
17803 (unpack_ts_block_value_fields): Same.
17804 (unpack_ts_translation_unit_decl_value_fields): Same.
17805 (unpack_ts_omp_clause_value_fields): Same.
17806 (streamer_read_tree_bitfields): Same.
17807 (streamer_alloc_tree): Same.
17808 (lto_input_ts_common_tree_pointers): Same.
17809 (lto_input_ts_vector_tree_pointers): Same.
17810 (lto_input_ts_poly_tree_pointers): Same.
17811 (lto_input_ts_complex_tree_pointers): Same.
17812 (lto_input_ts_decl_minimal_tree_pointers): Same.
17813 (lto_input_ts_decl_common_tree_pointers): Same.
17814 (lto_input_ts_decl_non_common_tree_pointers): Same.
17815 (lto_input_ts_decl_with_vis_tree_pointers): Same.
17816 (lto_input_ts_field_decl_tree_pointers): Same.
17817 (lto_input_ts_function_decl_tree_pointers): Same.
17818 (lto_input_ts_type_common_tree_pointers): Same.
17819 (lto_input_ts_type_non_common_tree_pointers): Same.
17820 (lto_input_ts_list_tree_pointers): Same.
17821 (lto_input_ts_vec_tree_pointers): Same.
17822 (lto_input_ts_exp_tree_pointers): Same.
17823 (lto_input_ts_block_tree_pointers): Same.
17824 (lto_input_ts_binfo_tree_pointers): Same.
17825 (lto_input_ts_constructor_tree_pointers): Same.
17826 (lto_input_ts_omp_clause_tree_pointers): Same.
17827 (streamer_read_tree_body): Same.
17828 * tree-streamer.h: Same.
17829 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
17830 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
17831 (vect_analyze_possibly_independent_ddr): Same.
17832 (vect_analyze_data_ref_dependence): Same.
17833 (vect_compute_data_ref_alignment): Same.
17834 (vect_enhance_data_refs_alignment): Same.
17835 (vect_analyze_data_ref_access): Same.
17836 (vect_check_gather_scatter): Same.
17837 (vect_find_stmt_data_reference): Same.
17838 (vect_create_addr_base_for_vector_ref): Same.
17839 (vect_setup_realignment): Same.
17840 (vect_supportable_dr_alignment): Same.
17841 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
17842 (adjust_phi_and_debug_stmts): Same.
17843 (vect_set_loop_mask): Same.
17844 (add_preheader_seq): Same.
17845 (vect_maybe_permute_loop_masks): Same.
17846 (vect_set_loop_masks_directly): Same.
17847 (vect_set_loop_condition_masked): Same.
17848 (vect_set_loop_condition_unmasked): Same.
17849 (slpeel_duplicate_current_defs_from_edges): Same.
17850 (slpeel_add_loop_guard): Same.
17851 (slpeel_can_duplicate_loop_p): Same.
17852 (create_lcssa_for_virtual_phi): Same.
17853 (iv_phi_p): Same.
17854 (vect_update_ivs_after_vectorizer): Same.
17855 (vect_gen_vector_loop_niters_mult_vf): Same.
17856 (slpeel_update_phi_nodes_for_loops): Same.
17857 (slpeel_update_phi_nodes_for_guard1): Same.
17858 (find_guard_arg): Same.
17859 (slpeel_update_phi_nodes_for_guard2): Same.
17860 (slpeel_update_phi_nodes_for_lcssa): Same.
17861 (vect_do_peeling): Same.
17862 (vect_create_cond_for_alias_checks): Same.
17863 (vect_loop_versioning): Same.
17864 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
17865 (vect_inner_phi_in_double_reduction_p): Same.
17866 (vect_analyze_scalar_cycles_1): Same.
17867 (vect_fixup_scalar_cycles_with_patterns): Same.
17868 (vect_get_loop_niters): Same.
17869 (bb_in_loop_p): Same.
17870 (vect_get_max_nscalars_per_iter): Same.
17871 (vect_verify_full_masking): Same.
17872 (vect_compute_single_scalar_iteration_cost): Same.
17873 (vect_analyze_loop_form_1): Same.
17874 (vect_analyze_loop_form): Same.
17875 (vect_active_double_reduction_p): Same.
17876 (vect_analyze_loop_operations): Same.
17877 (neutral_op_for_slp_reduction): Same.
17878 (vect_is_simple_reduction): Same.
17879 (vect_model_reduction_cost): Same.
17880 (get_initial_def_for_reduction): Same.
17881 (get_initial_defs_for_reduction): Same.
17882 (vect_create_epilog_for_reduction): Same.
17883 (vectorize_fold_left_reduction): Same.
17884 (vectorizable_reduction): Same.
17885 (vectorizable_induction): Same.
17886 (vectorizable_live_operation): Same.
17887 (loop_niters_no_overflow): Same.
17888 (vect_get_loop_mask): Same.
17889 (vect_transform_loop_stmt): Same.
17890 (vect_transform_loop): Same.
17891 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
17892 (vect_determine_precisions): Same.
17893 (vect_pattern_recog_1): Same.
17894 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
17895 * tree-vect-stmts.c (stmt_vectype): Same.
17896 (process_use): Same.
17897 (vect_init_vector_1): Same.
17898 (vect_truncate_gather_scatter_offset): Same.
17899 (get_group_load_store_type): Same.
17900 (vect_build_gather_load_calls): Same.
17901 (vect_get_strided_load_store_ops): Same.
17902 (vectorizable_simd_clone_call): Same.
17903 (vectorizable_store): Same.
17904 (permute_vec_elements): Same.
17905 (vectorizable_load): Same.
17906 (vect_transform_stmt): Same.
17907 (supportable_widening_operation): Same.
17908 * tree-vectorizer.c (vec_info::replace_stmt): Same.
17909 (vec_info::free_stmt_vec_info): Same.
17910 (vect_free_loop_info_assumptions): Same.
17911 (vect_loop_vectorized_call): Same.
17912 (set_uid_loop_bbs): Same.
17913 (vectorize_loops): Same.
17914 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
17915 * tree.c (add_tree_to_fld_list): Same.
17916 (fld_type_variant_equal_p): Same.
17917 (fld_decl_context): Same.
17918 (fld_incomplete_type_of): Same.
17919 (free_lang_data_in_binfo): Same.
17920 (need_assembler_name_p): Same.
17921 (find_decls_types_r): Same.
17922 (get_eh_types_for_runtime): Same.
17923 (find_decls_types_in_eh_region): Same.
17924 (find_decls_types_in_node): Same.
17925 (assign_assembler_name_if_needed): Same.
17926 * value-prof.c (stream_out_histogram_value): Same.
17927 * value-prof.h: Same.
17928 * var-tracking.c (use_narrower_mode): Same.
17929 (prepare_call_arguments): Same.
17930 (vt_expand_loc_callback): Same.
17931 (resolve_expansions_pending_recursion): Same.
17932 (vt_expand_loc): Same.
17933 * varasm.c (const_hash_1): Same.
17934 (compare_constant): Same.
17935 (tree_output_constant_def): Same.
17936 (simplify_subtraction): Same.
17937 (get_pool_constant): Same.
17938 (output_constant_pool_2): Same.
17939 (output_constant_pool_1): Same.
17940 (mark_constants_in_pattern): Same.
17941 (mark_constant_pool): Same.
17942 (get_section_anchor): Same.
17943 * vr-values.c (compare_range_with_value): Same.
17944 (vr_values::extract_range_from_phi_node): Same.
17945 * vr-values.h: Same.
17946 * web.c (unionfind_union): Same.
17947 * wide-int.h: Same.
17948
17949 2019-07-09 Martin Sebor <msebor@redhat.com>
17950
17951 PR c++/61339
17952 * align.h: Change class-key from class to struct and vice versa
17953 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
17954 * alloc-pool.h: Same.
17955 * asan.c (shadow_mem_size): Same.
17956 * auto-profile.c: Same.
17957 * basic-block.h: Same.
17958 * bitmap.h: Same.
17959 * cfgexpand.c (set_rtl): Same.
17960 (expand_one_stack_var_at): Same.
17961 * cfghooks.h: Same.
17962 * cfgloop.h: Same.
17963 * cgraph.h: Same.
17964 * config/i386/i386.h: Same.
17965 * df-problems.c (df_print_bb_index): Same.
17966 * df-scan.c: Same.
17967 * df.h (df_single_use): Same.
17968 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
17969 (layout::annotation_line_showed_range_p): Same.
17970 (get_printed_columns): Same.
17971 (correction::ensure_terminated): Same.
17972 (line_corrections::~line_corrections): Same.
17973 * dojump.h: Same.
17974 * dse.c: Same.
17975 * dump-context.h: Same.
17976 * dumpfile.h: Same.
17977 * dwarf2out.c: Same.
17978 * edit-context.c: Same.
17979 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
17980 * flags.h: Same.
17981 * function.c (assign_stack_local): Same.
17982 * function.h: Same.
17983 * gcc.c: Same.
17984 * gcov.c (block_info::block_info): Same.
17985 * genattrtab.c: Same.
17986 * genextract.c: Same.
17987 * genmatch.c (comparison_code_p): Same.
17988 (id_base::id_base): Same.
17989 (decision_tree::print): Same.
17990 * genoutput.c: Same.
17991 * genpreds.c (write_one_predicate_function): Same.
17992 * genrecog.c (validate_pattern): Same.
17993 (find_operand_positions): Same.
17994 (optimize_subroutine_group): Same.
17995 (merge_pattern_transition::merge_pattern_transition): Same.
17996 (merge_pattern_info::merge_pattern_info): Same.
17997 (merge_state_result::merge_state_result): Same.
17998 (merge_into_state): Same.
17999 * gensupport.c: Same.
18000 * gensupport.h: Same.
18001 * ggc-common.c (init_ggc_heuristics): Same.
18002 * ggc-tests.c (test_union): Same.
18003 * gimple-loop-interchange.cc (dump_induction): Same.
18004 * gimple-loop-versioning.cc: Same.
18005 * gimple-match.h (gimple_match_cond::any_else): Same.
18006 * gimple-ssa-backprop.c: Same.
18007 * gimple-ssa-sprintf.c: Same.
18008 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
18009 Same.
18010 (store_immediate_info::store_immediate_info): Same.
18011 (merged_store_group::apply_stores): Same.
18012 (get_location_for_stmts): Same.
18013 * gimple-ssa-strength-reduction.c: Same.
18014 * gimple-ssa-warn-alloca.c: Same.
18015 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
18016 * godump.c (go_type_decl): Same.
18017 * hash-map-tests.c (test_map_of_strings_to_int): Same.
18018 * hash-map.h: Same.
18019 * hash-set-tests.c (test_set_of_strings): Same.
18020 * hsa-brig.c: Same.
18021 * hsa-common.h: Same.
18022 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
18023 * input.c (assert_loceq): Same.
18024 * input.h: Same.
18025 * ipa-cp.c: Same.
18026 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
18027 * ipa-fnsummary.h: Same.
18028 * ipa-inline.h: Same.
18029 * ipa-prop.h: Same.
18030 * ipa-split.c (visit_bb): Same.
18031 * ira-int.h (minmax_set_iter_next): Same.
18032 * loop-invariant.c: Same.
18033 * loop-iv.c: Same.
18034 * lra-eliminations.c: Same.
18035 * lra-int.h: Same.
18036 * lra-lives.c (mark_regno_dead): Same.
18037 * lra-remat.c: Same.
18038 * lra-spills.c: Same.
18039 * lto-streamer.h: Same.
18040 * mem-stats.h: Same.
18041 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
18042 * omp-low.c (omp_clause_aligned_alignment): Same.
18043 * optabs-query.h (get_vcond_eq_icode): Same.
18044 * optabs.h: Same.
18045 * opts.c (wrap_help): Same.
18046 * poly-int.h: Same.
18047 * predict.c (predict_paths_leading_to_edge): Same.
18048 * pretty-print.h: Same.
18049 * profile-count.h: Same.
18050 * read-md.h: Same.
18051 * read-rtl-function.c: Same.
18052 * ree.c: Same.
18053 * reginfo.c: Same.
18054 * regrename.c: Same.
18055 * regrename.h: Same.
18056 * reload.h: Same.
18057 * rtl-iter.h: Same.
18058 * rtl.h (costs_add_n_insns): Same.
18059 * sanopt.c: Same.
18060 * sched-int.h: Same.
18061 * sel-sched-ir.h: Same.
18062 * selftest.h: Same.
18063 * sese.h (vec_find): Same.
18064 * stmt.c: Same.
18065 * target-globals.h: Same.
18066 * tree-affine.c (aff_combination_find_elt): Same.
18067 * tree-affine.h: Same.
18068 * tree-data-ref.h: Same.
18069 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
18070 * tree-predcom.c: Same.
18071 * tree-scalar-evolution.c (find_var_scev_info): Same.
18072 * tree-ssa-alias.h: Same.
18073 * tree-ssa-ccp.c: Same.
18074 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
18075 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
18076 (rewrite_mem_refs): Same.
18077 (execute_sm_if_changed): Same.
18078 (hoist_memory_references): Same.
18079 * tree-ssa-loop-ivopts.c (operator<=): Same.
18080 * tree-ssa-loop.h: Same.
18081 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
18082 * tree-ssa-structalias.c: Same.
18083 * tree-switch-conversion.h (cluster::cluster): Same.
18084 (simple_cluster::simple_cluster): Same.
18085 * tree-vect-patterns.c (type_conversion_p): Same.
18086 * tree-vectorizer.c (dump_stmt_cost): Same.
18087 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
18088 * tree.c (protected_set_expr_location): Same.
18089 * tree.h (desired_pro_or_demotion_p): Same.
18090 (fndecl_built_in_p): Same.
18091 * unique-ptr-tests.cc: Same.
18092 * var-tracking.c (delete_variable_part): Same.
18093 * varasm.c (assemble_real): Same.
18094 (tree_output_constant_def): Same.
18095 * vec.c: Same.
18096 * wide-int-bitmask.h: Same.
18097 * wide-int.h (decompose): Same.
18098
18099 2019-07-09 Richard Biener <rguenther@suse.de>
18100
18101 PR tree-optimization/91114
18102 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
18103 find a vector type isn't fatal.
18104
18105 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
18106
18107 * config/aarch64/aarch64-simd.md
18108 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
18109 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
18110 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
18111 (*aarch64_crypto_aese_fused,
18112 *aarch64_crypto_aesd_fused): Update to new definition.
18113 * config/aarch64/aarch64.c
18114 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
18115
18116 2019-07-09 Richard Biener <rguenther@suse.de>
18117
18118 * gimple-match.h (gimple_match_op::resimplify): New.
18119 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
18120 gimple_resimplify4, gimple_resimplify5): Remove.
18121 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
18122 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
18123 Make static.
18124 (gimple_match_op::resimplify): New.
18125 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
18126 according to availability. Use gimple_match_op::resimplify.
18127
18128 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
18129
18130 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
18131
18132 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
18133
18134 * config/arm/crypto.md:
18135 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
18136 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
18137 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
18138 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
18139 * config/arm/arm.c
18140 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
18141 * config/arm/aarch-common-protos.h
18142 (aarch_crypto_can_dual_issue): Remove.
18143 * config/arm/aarch-common.c
18144 (aarch_crypto_can_dual_issue): Likewise.
18145 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
18146 * config/arm/cortex-a53.md: Likewise.
18147 * config/arm/cortex-a57.md: Likewise.
18148 * config/arm/iterators.md:
18149 (CRYPTO_BINARY): Redefine.
18150 (CRYPTO_UNARY): Removed.
18151 (CRYPTO_AES, CRYPTO_AESMC): New.
18152
18153 2019-07-09 Richard Biener <rguenther@suse.de>
18154
18155 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
18156 (vn_reference_lookup_3): If the main ref has no access path recorded
18157 but orig_ref has use it to do access-path based disambiguation.
18158 (vn_reference_lookup_pieces): Adjust.
18159 (vn_reference_lookup): Pass down original ref if we valueized.
18160
18161 2019-07-09 Martin Liska <mliska@suse.cz>
18162
18163 * doc/extend.texi: Document influence on loop
18164 optimizers.
18165
18166 2019-07-09 Martin Liska <mliska@suse.cz>
18167
18168 * lto-compress.c (lto_normalized_zstd_level): Do not use
18169 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
18170 of libzstd. One can use 0 as a default compression level.
18171
18172 2019-07-09 Martin Liska <mliska@suse.cz>
18173
18174 * doc/invoke.texi: Add link from -fprofile-dir option.
18175 Use better wording for 'gcno filename'.
18176
18177 2019-07-08 Martin Sebor <msebor@redhat.com>
18178
18179 PR middle-end/71924
18180 PR middle-end/90549
18181 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
18182 comment.
18183 (args_loc_t): New type.
18184 (args_loc_t, locmap_t): same.
18185 (diag_returned_locals): New function.
18186 (is_addr_local): Same.
18187 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
18188 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
18189 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
18190
18191 2019-07-08 Jakub Jelinek <jakub@redhat.com>
18192
18193 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
18194 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
18195 and casts in offset when different, both through gimple stmts
18196 and through trees. Rewritten using loops to minimize code duplication
18197 for each operand.
18198
18199 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
18200
18201 * emit-rtl.c (set_insn_locations): New function moved from...
18202 * function.c (set_insn_locations): ...here.
18203 * ira-emit.c (emit_moves): Propagate location of the first instruction
18204 to the inserted move instructions.
18205 * reg-stack.c (compensate_edge): Set the location if the sequence is
18206 inserted on the edge.
18207 * rtl.h (set_insn_locations): Declare.
18208
18209 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
18210
18211 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
18212 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
18213 .machine string.
18214
18215 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
18216
18217 PR rtl-optimization/88233
18218 * common.opt (fsplit-wide-types-early): New option.
18219 * common/config/rs6000/rs6000-common.c
18220 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
18221 OPT_LEVELS_ALL.
18222 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
18223 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
18224 flag_split_wide_types_early.
18225 (pass_data_lower_subreg3): New.
18226 (pass_lower_subreg3): New.
18227 (make_pass_lower_subreg3): New.
18228 * passes.def (pass_lower_subreg2): Move after the loop passes.
18229 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
18230 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
18231 the pass pipeline; its previous place is taken by ...
18232 (make_pass_lower_subreg3): ... this.
18233
18234 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
18235
18236 * config/s390/s390.c (s390_shift_truncation_mask): Define.
18237 (TARGET_SHIFT_TRUNCATION_MASK): Define.
18238
18239 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
18240
18241 * config/s390/constraints.md: Add new jsc constraint.
18242 * config/s390/predicates.md: New predicates.
18243 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
18244 * config/s390/s390.c (s390_valid_shift_count): New function.
18245 (print_shift_count_operand): Use s390_valid_shift_count.
18246 (print_operand): Likewise.
18247 * config/s390/s390.md: Use new predicate.
18248 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
18249 * config/s390/vector.md: Use new predicate.
18250
18251 2019-07-08 Andrew Waterman <andrew@sifive.com>
18252 Jim Wilson <jimw@sifive.com>
18253
18254 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
18255 bitsize instead of BITS_PER_WORD.
18256
18257 2019-07-08 Martin Liska <mliska@suse.cz>
18258
18259 * collect2.c (defined): Revert to before r254460.
18260 (scan_prog_file): Revert to before r254460.
18261
18262 2019-07-08 Richard Biener <rguenther@suse.de>
18263
18264 PR tree-optimization/83518
18265 * tree-ssa-sccvn.c: Include splay-tree.h.
18266 (struct pd_range, struct pd_data): New.
18267 (struct vn_walk_cb_data): Add data to track partial definitions.
18268 (vn_walk_cb_data::~vn_walk_cb_data): New.
18269 (vn_walk_cb_data::push_partial_def): New.
18270 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
18271 (vn_reference_lookup_2): When partial defs are registered give up.
18272 (vn_reference_lookup_3): Track partial defs for memset and
18273 constructor zeroing and for defs from constants.
18274
18275 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
18276
18277 * doc/install.texi (bootstrap-Og): Document.
18278
18279 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
18280
18281 * config/riscv/pic.md (*local_pic_load_s<mode>)
18282 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
18283 referenced by <mode>, giving...
18284 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
18285 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
18286 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
18287 use <X:MODE> for the mode attribute.
18288
18289 2019-07-07 Jeff Law <law@redhat.com>
18290
18291 PR tree-optimization/91090
18292 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
18293 in handling of ranges to simplify switch statements.
18294
18295 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
18296
18297 * config/darwin.c (darwin_override_options): Make a final check on PIC
18298 options.
18299
18300 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
18301
18302 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
18303 on for kernel code.
18304
18305 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
18306
18307 PR target/91068
18308 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
18309 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
18310 instead of matching them to "l" output operands.
18311
18312 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
18313
18314 * config/mips/mips.c (mips_split_move): Zero-initialize addr
18315 and check whether addr.reg is nonnull before using it.
18316
18317 2019-07-06 Jakub Jelinek <jakub@redhat.com>
18318
18319 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
18320 ctx->for_simd_scan_phase simd copy the outer var to the privatized
18321 variable(s). For conditional lastprivate look through outer
18322 GIMPLE_OMP_SCAN context.
18323 (lower_omp_1): For conditional lastprivate look through outer
18324 GIMPLE_OMP_SCAN context.
18325
18326 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
18327 member to combined_into_simd_safelen1.
18328 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
18329 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
18330 clauses if ctx->combined_into_simd_safelen1 put statements after the
18331 predicate conditionalized block rather than into it.
18332
18333 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18334
18335 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
18336 operand 1.
18337 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
18338 Make the choice of <mode> explicit, giving...
18339 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
18340
18341 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18342
18343 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
18344 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
18345 of .md attributes.
18346 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
18347 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
18348 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
18349 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
18350 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
18351 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
18352 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
18353 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
18354 (*avx512f_scatterdi<mode>): Likewise.
18355 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
18356
18357 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18358
18359 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
18360 specify the mode iterator referenced by <mode>, giving...
18361 (*push1_h8300hs_<QHI:mode>): ...this.
18362
18363 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18364
18365 * config/gcn/gcn-valu.md
18366 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
18367 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
18368 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
18369 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
18370 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
18371 but using the _exec comparison patterns.
18372 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
18373 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
18374 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
18375 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
18376 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
18377 but using the _exec comparison patterns.
18378
18379 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18380
18381 * config/arm/sync.md
18382 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
18383 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
18384 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
18385 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
18386 <SIDI:cas_cmp_str>.
18387
18388 2019-07-06 Jakub Jelinek <jakub@redhat.com>
18389
18390 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
18391 (maybe_lookup_ctx): Add forward declaration.
18392 (omp_find_scan): Likewise. Walk into body of simd if composited
18393 with worksharing loop.
18394 (scan_omp_simd_scan): New function.
18395 (scan_omp_1_stmt): Call it.
18396 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
18397 ctx->for_simd_scan_phase.
18398 (lower_rec_input_clauses): Do much less work for inscan reductions
18399 in ctx->for_simd_scan_phase is_simd regions.
18400 (lower_omp_scan): Set is_simd also on simd constructs composited
18401 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
18402 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
18403 emit their body after in simd constructs composited with worksharing
18404 loop.
18405 (lower_omp_for_scan): Handle worksharing loop composited with simd.
18406
18407 * omp-low.c (omp_find_scan): Make static.
18408 (lower_omp_for_scan): Fix order of merge arguments in input phase of
18409 the second loop, var2 represents the first partial sum and so needs
18410 to go before rprivb[ivar].
18411
18412 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
18413
18414 * config/rs6000/rs6000-logue.c: Remove unused code.
18415
18416 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
18417
18418 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
18419
18420 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
18421
18422 PR target/90712
18423 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
18424 check with a frame laid out check.
18425
18426 2019-07-05 Richard Biener <rguenther@suse.de>
18427
18428 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
18429 when comparing against a store with possibly the same value.
18430
18431 2019-07-05 Richard Biener <rguenther@suse.de>
18432
18433 PR tree-optimization/91091
18434 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
18435 (walk_non_aliased_vuses): Likewise.
18436 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
18437 (get_continuation_for_phi): New tbaa_p parameter and pass
18438 it down.
18439 (walk_non_aliased_vuses): Likewise.
18440 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
18441 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
18442 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
18443 Likewise.
18444 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
18445 (adjust_offsets_for_equal_base_address): New function.
18446 (vn_reference_lookup_3): Use it to catch more base equivalences.
18447 Handle and pass down tbaa_p flag.
18448 (vn_reference_lookup_pieces): Adjust.
18449 (vn_reference_lookup): Remove alias-set altering, instead pass
18450 down false as tbaa_p.
18451
18452 2019-07-05 Richard Biener <rguenther@suse.de>
18453
18454 PR tree-optimization/91091
18455 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
18456 accesses can happen with -fno-strict-aliasing.
18457
18458 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
18459
18460 * tree-ssa-alias.c (alias_stats): Add
18461 nonoverlapping_component_refs_since_match_p_must_overlap.
18462 (dump_alias_stats): Print it.
18463 (nonoverlapping_component_refs_since_match_p): Add early exit.
18464 (nonoverlapping_component_refs_p): Do not account early exit.
18465
18466 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
18467
18468 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
18469 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
18470 (emit_eh_dispatch): Delete.
18471 (lower_catch): Emit the eh_dispatch manually and set the location of
18472 the first catch statement onto it.
18473 (lower_eh_filter): Emit the eh_dispatch manually and set location.
18474 (lower_eh_dispatch): Propagate location.
18475 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
18476 (eliminate_build): Likewise.
18477
18478 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
18479
18480 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
18481 phi nodes if possible.
18482 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
18483 location info on the newly created statement.
18484 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
18485 newly created increment if needed.
18486
18487 2019-07-04 Jakub Jelinek <jakub@redhat.com>
18488
18489 PR middle-end/78884
18490 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
18491 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
18492 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
18493 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
18494 ctx->add_safelen1 is set.
18495
18496 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
18497 GOMP_loop_start at the start of second worksharing loop in a scan.
18498 For nowait, don't emit GOMP_loop_end_nowait at the end of first
18499 worksharing loop in a scan even if there are conditional lastprivates,
18500 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
18501
18502 2019-07-04 Jan Hubicka <jh@suse.cz>
18503
18504 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
18505 Fix check for match in the ref walk.
18506
18507 2019-07-04 Martin Liska <mliska@suse.cz>
18508
18509 * tree-ssa-loop-niter.c
18510 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
18511 (estimate_numbers_of_iterations):
18512 Support __builtin_expect_with_probability for analysis
18513 of # of loop iterations.
18514
18515 2019-07-04 Alexandre Oliva <oliva@adacore.com>
18516
18517 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
18518 * except.c: Likewise.
18519 * expr.c (expand_expr_real_1): Reject it.
18520 * gimplify.c (gimplify_expr): Gimplify it, within
18521 TRY_FINALLY_EXPR.
18522 * tree-dump.c (dequeue_and_dump): Dump it.
18523 * tree-pretty-print.c (dump_generic_node): Likewise.
18524 * tree.c (block_may_fallthru): Handle it.
18525 * tree.def (EH_ELSE_EXPR): Introduce it.
18526 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
18527 with GIMPLE_EH_ELSE as try/finally/else.
18528
18529 2019-07-04 Richard Biener <rguenther@suse.de>
18530
18531 PR ipa/91062
18532 * tree-pass.h (execute_all_ipa_transforms): Add a flag
18533 parameter whether to disable GC collection.
18534 * passes.c (execute_one_ipa_transform_pass): Likewise, and
18535 honor it.
18536 (execute_all_ipa_transforms): Likewise and pass it down.
18537 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
18538 collection from applying IPA transforms.
18539 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
18540 from applying IPA transforms.
18541
18542 2019-07-04 Richard Biener <rguenther@suse.de>
18543
18544 PR tree-optimization/90911
18545 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
18546 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
18547 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
18548 scalar_loop_scaling.
18549 (vect_transform_loop): Scale scalar loop profile if needed.
18550 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
18551 the loop copy from if-conversion adjust edge probabilities
18552 and scale the vectorized loop body profile, queue the scalar
18553 profile for updating after peeling.
18554
18555 2019-07-04 Jan Hubicka <jh@suse.cz>
18556
18557 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
18558 parameters; return early for must-alias.
18559 (indirect_ref_may_alias_decl_p): Likewise; when establishing
18560 outer types match, try nonoverlapping_component_refs
18561 if must-alias is not obvious.
18562 (indirect_refs_may_alias_p): Likewise.
18563 (refs_may_alias_p_2): Likewise.
18564
18565 2019-07-04 Richard Biener <rguenther@suse.de>
18566
18567 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
18568 argument.
18569 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
18570 globals into...
18571 (struct vn_walk_cb_data): New callback data struct.
18572 (vn_reference_lookup_2): Adjust.
18573 (vn_reference_lookup_3): Likewise.
18574 (vn_reference_lookup_pieces): Likewise.
18575 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
18576 (visit_reference_op_load): Adjust.
18577
18578 2019-07-04 Jakub Jelinek <jakub@redhat.com>
18579
18580 PR tree-optimization/91063
18581 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
18582 stmt from stmts sequence before calling vect_init_vector_1.
18583 Formatting fix.
18584
18585 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18586
18587 PR target/88833
18588 * fwprop.c (reg_single_def_p): New function.
18589 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
18590 (forward_propagate_into): New parameter reg_prop_only
18591 with default value false.
18592 Propagate def's src into loop only if SET_SRC and SET_DEST
18593 of def_set have single definitions.
18594 Likewise if reg_prop_only is set to true.
18595 (fwprop): New param fwprop_addr_p.
18596 Integrate fwprop_addr into fwprop.
18597 (fwprop_addr): Remove.
18598 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
18599 to true.
18600 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
18601 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
18602 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
18603
18604 2019-07-04 Jakub Jelinek <jakub@redhat.com>
18605
18606 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
18607 in worksharing loop scans.
18608
18609 PR tree-optimization/91074
18610 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
18611 temporary.
18612
18613 PR rtl-optimization/90756
18614 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
18615 for VECTOR_TYPE_P.
18616
18617 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
18618
18619 * config/aarch64/aarch64.md: Remove redundant constraints from
18620 define_expand but keep some patterns untouched if they are
18621 specially selected by TARGET_SECONDARY_RELOAD hook.
18622 * config/aarch64/aarch64-sve.md: Likewise.
18623 * config/aarch64/atomics.md: Remove redundant constraints from
18624 define_expand.
18625 * config/aarch64/aarch64-simd.md: Likewise.
18626
18627 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
18628
18629 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
18630 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
18631 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
18632 clauses.
18633 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
18634 DARWIN_NOPIE_SPEC.
18635
18636 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
18637
18638 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
18639 (STARTFILE_SPEC): Split crt3 into a separate spec.
18640 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
18641 (DARWIN_CRT2_SPEC): New.
18642 (DARWIN_CRT3_SPEC): New.
18643 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
18644 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
18645 (DARWIN_CRT3_SPEC): New.
18646
18647 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
18648
18649 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
18650 Change the RTL attribute "length" from "4" to "*" to allow the
18651 length attribute to be adjusted automatically for prefixed load,
18652 store, and add immediate instructions.
18653 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
18654 Likewise.
18655 (extendsi<mode>2, EXTSI iterator): Likewise.
18656 (movsi_internal1): Likewise.
18657 (movsi_from_sf): Likewise.
18658 (movdi_from_sf_zero_ext): Likewise.
18659 (mov<mode>_internal): Likewise.
18660 (movcc_internal1, QHI iterator): Likewise.
18661 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
18662 (movsf_from_si): Likewise.
18663 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
18664 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
18665 (mov<mode>, FMOVE128 iterator): Likewise.
18666 (movdi_internal64): Likewise.
18667 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
18668 Likewise.
18669 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
18670 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
18671 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
18672 (vsx_splat_v4sf): Likewise.
18673
18674 2019-07-03 Mark Wielaard <mark@klomp.org>
18675
18676 PR debug/90981
18677 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
18678 DW_AT_addr_base if there is actually a .debug_addr section with
18679 addresses.
18680 (output_addr_table): Add DWARF5 table header generation here after
18681 checking there are actually any addresses from...
18682 (dwarf2out_finish): ...here.
18683
18684 2019-07-03 Richard Biener <rguenther@suse.de>
18685
18686 PR middle-end/91069
18687 * match.pd (vec_perm -> bit_insert): Fix element read from
18688 first vector.
18689
18690 2019-07-03 Martin Liska <mliska@suse.cz>
18691
18692 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
18693 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
18694 condition.
18695 * generic-match-head.c: Include dbgcnt.h.
18696 * gimple-match-head.c: Likewise.
18697
18698 2019-07-03 Martin Liska <mliska@suse.cz>
18699
18700 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
18701 (GCOV_COUNTER_V_TOPN): New.
18702 (GCOV_COUNTER_V_INDIR): Use _topn.
18703 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
18704 (GCOV_TOPN_VALUES): New.
18705 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
18706 (GCOV_TOPN_VALUES_COUNTERS): New.
18707 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
18708 * tree-profile.c:
18709 (gimple_init_gcov_profiler): Rename variables from one_value
18710 to topn_values.
18711 (gimple_gen_one_value_profiler): Remove.
18712 (gimple_gen_topn_values_profiler): New function.
18713 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
18714 names instead of SINGLE_VALUE.
18715 (stream_out_histogram_value): Likewise.
18716 (stream_in_histogram_value): Likewise.
18717 (get_most_common_single_value): Likewise.
18718 (gimple_divmod_fixed_value_transform): Likewise.
18719 (gimple_stringops_transform): Likewise.
18720 (gimple_divmod_values_to_profile): Likewise.
18721 (gimple_stringops_values_to_profile): Likewise.
18722 (gimple_find_values_to_profile): Likewise.
18723 * value-prof.h (enum hist_type): Rename to TOPN.
18724 (gimple_gen_one_value_profiler): Remove.
18725 (gimple_gen_topn_values_profiler): New.
18726
18727 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
18728
18729 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
18730 if it has the DW_AT_data_member_location attribute.
18731
18732 2019-07-03 Richard Biener <rguenther@suse.de>
18733
18734 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
18735 dumping.
18736
18737 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
18738
18739 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
18740 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
18741 (tlsdesc_small_sve_<mode>): Likewise.
18742
18743 2019-07-03 Martin Liska <mliska@suse.cz>
18744
18745 * Makefile.in: Define ZSTD_LIB.
18746 * common.opt: Adjust compression level
18747 to support also zstd levels.
18748 * config.in: Regenerate.
18749 * configure: Likewise.
18750 * configure.ac: Add --with-zstd and --with-zstd-include options
18751 and detect ZSTD.
18752 * doc/install.texi: Mention zstd dependency.
18753 * gcc.c: Print supported LTO compression algorithms.
18754 * lto-compress.c (lto_normalized_zstd_level): Likewise.
18755 (lto_compression_zstd): Likewise.
18756 (lto_uncompression_zstd): Likewise.
18757 (lto_end_compression): Dispatch in between zlib and zstd.
18758 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
18759 (lto_uncompression_zlib): Make it static.
18760 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
18761 * lto-section-in.c (lto_get_section_data): Pass info
18762 about used compression.
18763 * lto-streamer-out.c: By default use zstd when possible.
18764 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
18765 (TV_IPA_LTO_COMPRESS): Likewise for compression.
18766
18767 2019-07-03 Martin Liska <mliska@suse.cz>
18768
18769 * lto-section-in.c (lto_get_section_data): Add "lto" section.
18770 * lto-section-out.c (lto_destroy_simple_output_block): Never
18771 compress LTO_section_lto section.
18772 * lto-streamer-out.c (produce_asm): Do not set major_version
18773 and minor_version.
18774 (lto_output_toplevel_asms): Likewise.
18775 (produce_lto_section): New function.
18776 (lto_output): Call produce_lto_section.
18777 (lto_write_mode_table): Do not set major_version and
18778 minor_version.
18779 (produce_asm_for_decls): Likewise.
18780 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
18781 type.
18782 (struct lto_header): Remove.
18783 (struct lto_section): New struct.
18784 (struct lto_simple_header): Do not inherit from lto_header.
18785 (struct lto_file_decl_data): Add lto_section_header field.
18786
18787 2019-07-03 Martin Liska <mliska@suse.cz>
18788
18789 * lra-eliminations.c (eliminate_regs_in_insn): Remove
18790 dead assignemts.
18791 * reg-stack.c (check_asm_stack_operands): Likewise.
18792 * tree-ssa-structalias.c (create_function_info_for): Likewise.
18793 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
18794 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
18795 force_expand_binop.
18796
18797 2019-07-03 Martin Liska <mliska@suse.cz>
18798
18799 PR tree-optimization/90892
18800 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
18801 in string constants.
18802
18803 2019-07-03 Martin Liska <mliska@suse.cz>
18804
18805 PR middle-end/90899
18806 * multiple_target.c (create_dispatcher_calls): Add to comdat
18807 group only if set for ifunc.
18808
18809 2019-07-03 Martin Liska <mliska@suse.cz>
18810
18811 PR target/88056
18812 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
18813 Define local_object_name in outer scope in order to handle
18814 use-after-scope issue.
18815
18816 2019-07-03 Martin Liska <mliska@suse.cz>
18817
18818 * common.opt: Add fprofile-note.
18819 * coverage.c (coverage_init): Append the option
18820 to bbg_file_name.
18821 * doc/invoke.texi: Document -fprofile-note.
18822
18823 2019-07-03 Jakub Jelinek <jakub@redhat.com>
18824
18825 PR tree-optimization/91033
18826 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
18827 vect_analyze_data_refs): Add bool * arguments.
18828 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
18829 if failure is due to scatter/gather, set *fatal to false if non-NULL.
18830 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
18831 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
18832 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
18833 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
18834 vect_analyze_data_refs caller.
18835
18836 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
18837 clause.
18838 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
18839 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
18840 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
18841 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18842 OMP_CLAUSE__SCANTEMP_ entry.
18843 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
18844 * tree-pretty-print.c (dump_omp_clause): Likewise.
18845 * tree-nested.c (convert_nonlocal_omp_clauses,
18846 convert_local_omp_clauses): Likewise.
18847 * omp-general.h (struct omp_for_data): Add have_scantemp and
18848 have_nonctrl_scantemp members.
18849 * omp-general.c (omp_extract_for_data): Initialize them.
18850 * omp-low.c (struct omp_context): Add scan_exclusive member.
18851 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
18852 result again with GF_OMP_FOR_KIND_MASK. Initialize also
18853 ctx->scan_exclusive.
18854 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
18855 of !ctx->scan_inclusive.
18856 (lower_rec_input_clauses): Simplify gimplification of dtors using
18857 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
18858 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
18859 loops. Don't add barrier for reduction_omp_orig_ref if
18860 ctx->scan_??xclusive.
18861 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
18862 (lower_omp_scan): Use ctx->scan_exclusive instead
18863 of !ctx->scan_inclusive. Handle worksharing loops with inscan
18864 reductions. Use new_vard != new_var instead of repeated
18865 omp_is_reference calls.
18866 (omp_find_scan, lower_omp_for_scan): New functions.
18867 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
18868 inscan reductions.
18869 * omp-expand.c (expand_omp_scantemp_alloc): New function.
18870 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
18871 and fd->have_scantemp.
18872
18873 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
18874 on worksharing loop propagate it as shared clause to containing
18875 combined parallel.
18876
18877 * omp-expand.c (expand_omp_for_static_nochunk,
18878 expand_omp_for_static_chunk): For nowait worksharing loop with
18879 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
18880 at the end.
18881
18882 2019-07-02 qing zhao <qing.zhao@oracle.com>
18883
18884 PR preprocessor/90581
18885 * doc/cppopts.texi: Add document for -fmax-include-depth.
18886 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
18887
18888 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
18889
18890 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
18891 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
18892 (mmx_packssdw): Ditto.
18893 (mmx_punpckhbw): Ditto.
18894 (mmx_punpcklbw): Ditto.
18895 (mmx_punpckhwd): Ditto.
18896 (mmx_punpcklwd): Ditto.
18897 (mmx_punpckhdq): Ditto.
18898 (mmx_punpckldq): Ditto.
18899 (*vec_dupv4hi): Ditto.
18900 (*vec_dupv2si): Ditto.
18901 (mmx_pmovmskb): Ditto.
18902 * config/i386/sse.md (sse_cvtpi2ps): Use
18903 TARGET_SSE2 && SSE_REG_P in split condition.
18904 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
18905 TARGET_SSSE3 && SSE_REGNO_P in split condition.
18906 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
18907 (ssse3_pshufbv8qi3): Ditto.
18908 (ssse3_palignrdi): Ditto.
18909
18910 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
18911
18912 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
18913 with inlined save and restore.
18914
18915 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
18916
18917 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
18918 to be inserted on single successor edge of the entry block. Then call
18919 commit_edge_insertions instead of inserting the instructions manually.
18920 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
18921 RTL expansion and rebuild jump labels chain.
18922
18923 2019-07-02 Richard Biener <rguenther@suse.de>
18924
18925 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
18926 TI_CHREC_KNOWN.
18927 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
18928 Define here.
18929 * tree.c (build_common_tree_nodes): Initialize them.
18930 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
18931 Make declarations comments.
18932 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
18933 chrec_known): Remove definitions.
18934 (initialize_scalar_evolutions_analyzer): Remove.
18935 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
18936 * tree-streamer.c (preload_common_nodes): Do not preload
18937 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
18938
18939 2019-07-02 Jan Hubicka <jh@suse.cz>
18940
18941 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
18942 sanity check.
18943
18944 2019-07-02 Jan Hubicka <jh@suse.cz>
18945
18946 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
18947 to ..
18948 (nonoverlapping_component_refs_since_match_p): ... this one;
18949 handle also non-decl bases; return -1 if search gave up.
18950 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
18951 nonoverlapping_component_refs_of_decl_p_no_alias to
18952 nonoverlapping_component_refs_since_match_p_may_alias,
18953 nonoverlapping_component_refs_since_match_p_no_alias.
18954 (dump_alias_stats): Update dumping.
18955 (aliasing_matching_component_refs_p): Break out from ...;
18956 dispatch to nonoverlapping_component_refs_for_decl_p
18957 and nonoverlapping_component_refs_since_match_p.
18958 (aliasing_component_refs_p): ... here; call
18959 nonoverlapping_component_refs_p in scenarios where we can not
18960 precisely determine base match.
18961 (decl_refs_may_alias_p): Use
18962 nonoverlapping_component_refs_since_match_p.
18963 (indirect_ref_may_alias_decl_p): Do not call
18964 nonoverlapping_component_refs_p.
18965 (indirect_refs_may_alias_p): Likewise.
18966
18967 2019-07-02 Jan Hubicka <jh@suse.cz>
18968
18969 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
18970 to clobber of return value.
18971
18972 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18973
18974 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
18975 for is_neon_type instructions that have not already been categorized.
18976
18977 2019-07-02 Richard Biener <rguenther@suse.de>
18978
18979 PR tree-optimization/58483
18980 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
18981 for MEM_REF base hashing.
18982 (equal_mem_array_ref_p): Likewise for base comparison.
18983
18984 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18985
18986 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
18987 parameterized name.
18988 (signbit<mode>2): Use that name. Simplify.
18989
18990 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
18991
18992 PR middle-end/66726
18993 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
18994 Tune heuristic from PR71016 to allow MIN / MAX.
18995
18996 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18997
18998 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
18999 parameterized name.
19000 (abs<mode>2): Use that name. Simplify.
19001
19002 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19003
19004 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
19005 parameterized name.
19006 (neg<mode>2): Use that name. Simplify.
19007
19008 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19009
19010 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
19011 name.
19012 (abs<mode>2): Use that name. Simplify.
19013
19014 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19015
19016 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
19017 name.
19018 (neg<mode>2): Use that name. Simplify.
19019
19020 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
19021
19022 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
19023 ("enabled" attribute): Handle sse_noavx isa attribute.
19024 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
19025 Use TARGET_SSE && SSE_REGNO_P in split condition.
19026 (*vec_dupv2sf): Ditto.
19027
19028 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19029
19030 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
19031 name.
19032 (floatsi<mode>2): Use that name. Simplify.
19033
19034 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19035
19036 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
19037 parameterized name.
19038 (extenddf<mode>2_vsx): Make this a parameterized name.
19039 (extenddf<mode>2): Use those names. Simplify.
19040
19041 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19042
19043 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
19044 name.
19045 (eh_return): Use that name. Simplify.
19046
19047 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19048
19049 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
19050 (doloop_end): Use that name. Simplify.
19051
19052 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19053
19054 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
19055 parameterized name.
19056 (indirect_jump): Use that name. Simplify.
19057
19058 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19059
19060 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
19061 parameterized name.
19062 (abs<mode>2): Use that name. Simplify.
19063
19064 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19065
19066 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
19067 parameterized name.
19068 (fix_trunc<mode>si2): Use that name. Simplify.
19069
19070 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19071
19072 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
19073 (allocate_stack): Use that name. Simplify.
19074
19075 2019-07-01 Martin Sebor <msebor@redhat.com>
19076
19077 PR middle-end/90923
19078 * hash-map.h (hash_map::put): On insertion invoke element ctor.
19079 (hash_map::get_or_insert): Same. Reformat comment.
19080 * hash-set.h (hash_set::add): On insertion invoke element ctor.
19081 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
19082 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
19083 * hash-table.h (hash_table::operator=): Prevent copy assignment.
19084 (hash_table::hash_table (const hash_table&)): Use copy ctor
19085 instead of assignment to copy elements.
19086
19087 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
19088 John David Anglin <danglin@gcc.gnu.org>
19089
19090 PR target/90963
19091 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
19092 using saved frame pointer.
19093
19094 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
19095
19096 PR middle-end/64242
19097 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
19098 Add frame clobber and schedule blockage.
19099
19100 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
19101
19102 * doc/invoke.texi (Link Options): Further editorial changes to
19103 -flinker-output docs.
19104
19105 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19106
19107 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
19108 Load both operands of a PLUS into registers separately.
19109
19110 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
19111
19112 * config/s390/vector.md: Fix shift count operand printing.
19113
19114 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19115
19116 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
19117
19118 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19119
19120 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
19121 Use recog_data to test for an output operand.
19122
19123 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19124
19125 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
19126 exclude any others that are disparaged or that are bound to need
19127 a reload or spill.
19128 (ira_get_dup_out_num): Expand comment.
19129
19130 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19131
19132 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
19133 constraint string for each operand/alternative combo. Only handle
19134 '%' at the start of constraint strings, and look for it outside
19135 the main loop.
19136
19137 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19138
19139 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
19140 alternative_mask instead of HARD_REG_SET to represent a
19141 bitmask of alternatives.
19142 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
19143 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
19144
19145 2019-07-01 Martin Liska <mliska@suse.cz>
19146
19147 * edit-context.c (test_applying_fixits_unreadable_file): Do not
19148 use () for a constructor call.
19149 (test_applying_fixits_line_out_of_range): Likewise.
19150 * ggc-page.c (alloc_page): Use (void *) for %p printf format
19151 argument.
19152 (free_page): Likewise.
19153
19154 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
19155
19156 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
19157 parameter names to match usage (no functional change).
19158 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
19159
19160 2019-07-01 Richard Biener <rguenther@suse.de>
19161
19162 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
19163 pass parameter.
19164 (pass_fre::execute): Honor it.
19165 * passes.def: Adjust pass_fre invocations to allow iterating,
19166 add non-iterating pass_fre before late threading/dom.
19167
19168 2019-07-01 Richard Biener <rguenther@suse.de>
19169
19170 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
19171 TARGET_MEM_REF handling to also handle address-taken ones.
19172
19173 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
19174
19175 * doc/sourcebuild.texi (Effective-Target Keywords, Other
19176 hardware attributes): Document avx512vp2intersect.
19177
19178 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
19179
19180 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
19181 (abs<mode>2): New expander.
19182 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
19183 Use CODE_FOR_ssse3_absv8qi2.
19184 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
19185 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
19186
19187 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
19188
19189 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
19190 to sse, sse_noavx and avx. Update all uses.
19191
19192 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
19193
19194 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
19195 (*mmx_<plusminus_insn><mode>3): Ditto.
19196 (*mmx_mulv4hi3"): Ditto.
19197 (*mmx_smulv4hi3_highpart): Ditto.
19198 (*mmx_umulv4hi3_highpart): Ditto.
19199 (*mmx_pmaddwd): Ditto.
19200 (*sse2_umulv1siv1di3): Ditto.
19201 (*mmx_<code>v4hi3): Ditto.
19202 (*mmx_<code>v8qi3): Ditto.
19203 (mmx_ashr<mode>3): Ditto.
19204 ("mmx_<shift_insn><mode>3): Ditto.
19205 (*mmx_eq<mode>3): Ditto.
19206 (mmx_gt<mode>3): Ditto.
19207 (mmx_andnot<mode>3): Ditto.
19208 (*mmx_<code><mode>3): Ditto.
19209 (*mmx_pinsrw): Ditto.
19210 (*mmx_pextrw): Ditto.
19211 (mmx_pshufw_1): Ditto.
19212 (*mmx_uavgv8qi3): Ditto.
19213 (*mmx_uavgv4hi3): Ditto.
19214 ("mmx_psadbw): Ditto.
19215 * config/i386/sse.md (sse_cvtps2pi): Ditto.
19216 (sse_cvttps2pi): Ditto.
19217 (ssse3_pmaddubsw): Ditto.
19218 (*ssse3_pmulhrswv4hi3): Ditto.
19219 (ssse3_psign<mode>3): Ditto.
19220
19221 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
19222
19223 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
19224 adjustment for bit-fields to all aggregate types.
19225
19226 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
19227
19228 * config/rs6000/predicates.md (pcrel_address): Use
19229 SYMBOL_REF_LOCAL_P to determine if a label is local.
19230 (pcrel_external_address): New predicate.
19231 (non_prefixed_mem_operand): Delete, predicate not used.
19232 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
19233 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
19234 addressing.
19235 (SYMBOL_REF_PCREL_P): Likewise.
19236
19237 PR target/91009
19238 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
19239 alternative.
19240 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
19241 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
19242 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
19243
19244 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
19245
19246 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
19247 override on extra_headers.
19248
19249 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
19250
19251 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
19252 * config/darwin-driver.c (darwin_default_min_version): Remove newline
19253 from warning.
19254 (darwin_driver_init): Likewise.
19255
19256 2019-06-28 Jan Beulich <jbeulich@suse.com>
19257
19258 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
19259 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
19260 Eliminate redundant alternative.
19261
19262 2019-06-28 Jan Beulich <jbeulich@suse.com>
19263
19264 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
19265 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
19266 Use vector_operand.
19267
19268 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
19269
19270 * config/arc/arc.c (arc_rtx_costs): All short instructions are
19271 having a lower cost regardless of the speed option.
19272
19273 2019-06-28 Jan Beulich <jbeulich@suse.com>
19274
19275 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
19276 vector_operand plus, on both alternatives, "Bm" constraint.
19277
19278 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
19279
19280 * config/arm/arm.md: Remove redundant constraints from
19281 define_expand but leave reload_inm and reload_outm patterns
19282 untouched since they need special constraints to work.
19283 * config/arm/arm-fixed.md: Remove redundant constraints from
19284 define_expand.
19285 * config/arm/iwmmxt.md: Likewise.
19286 * config/arm/neon.md: Likewise.
19287 * config/arm/sync.md: Likewise.
19288 * config/arm/thumb1.md: Likewise.
19289 * config/arm/vec-common.md: Likewise.
19290
19291 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
19292
19293 * doc/install.texi: Document --disable-tm-clone-registry.
19294
19295 2019-06-27 Jakub Jelinek <jakub@redhat.com>
19296
19297 PR c++/91024
19298 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
19299 statements.
19300
19301 PR tree-optimization/91010
19302 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
19303 return true. Otherwise, don't call operand_equal_p if offset1 or
19304 offset2 is NULL and just return false.
19305
19306 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
19307
19308 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
19309 user-specified float mode choice for kernel mode code.
19310
19311 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
19312
19313 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
19314 spec.
19315
19316 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
19317
19318 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
19319 use longcall for 64b code.
19320
19321 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
19322
19323 * builtins.c (get_memory_rtx): Fix comment.
19324 * optabs.def (movmem_optab): Change to cpymem_optab.
19325 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
19326 (emit_block_move_hints): Change movmem to cpymem.
19327 * defaults.h: Change movmem to cpymem.
19328 * targhooks.c (get_move_ratio): Change movmem to cpymem.
19329 (default_use_by_pieces_infrastructure_p): Ditto.
19330 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
19331 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
19332 to cpymem.
19333 * config/aarch64/aarch64.h: Change movmem to cpymem.
19334 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
19335 * config/alpha/alpha.h: Change movmem to cpymem in comment.
19336 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
19337 movmem to cpymem.
19338 * config/arc/arc-protos.h: Change movmem to cpymem.
19339 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
19340 * config/arc/arc.h: Change movmem to cpymem in comment.
19341 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
19342 * config/arm/arm-protos.h: Change movmem to cpymem in names.
19343 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
19344 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
19345 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
19346 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
19347 * config/avr/avr-protos.h: Change movmem to cpymem.
19348 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
19349 avr_out_movmem): Change movmem to cpymem.
19350 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
19351 Change movmem to cpymem.
19352 * config/bfin/bfin-protos.h: Change movmem to cpymem.
19353 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
19354 Change movmem to cpymem.
19355 * config/bfin/bfin.h: Change movmem to cpymem in comment.
19356 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
19357 * config/c6x/c6x-protos.h: Change movmem to cpymem.
19358 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
19359 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
19360 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
19361 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
19362 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
19363 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
19364 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
19365 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
19366 expand_small_cpymem_or_setmem,
19367 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
19368 expand_set_or_cpymem_constant_prologue,
19369 ix86_expand_set_or_cpymem): Change movmem to cpymem.
19370 * config/i386/i386-protos.h: Change movmem to cpymem.
19371 * config/i386/i386.h: Change movmem to cpymem in comment.
19372 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
19373 (setmem<mode>): Change expansion function name.
19374 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
19375 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
19376 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
19377 * config/m32c/m32c-protos.h: Change movmem to cpymem.
19378 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
19379 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
19380 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
19381 to cpymem.
19382 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
19383 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
19384 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
19385 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
19386 Change movmem to cpymem.
19387 * config/mips/mips.h: Change movmem to cpymem.
19388 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
19389 * config/nds32/nds32-memory-manipulation.c
19390 (nds32_expand_movmemsi_loop_unknown_size,
19391 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
19392 nds32_expand_movmemsi_unroll,
19393 nds32_expand_movmemsi): Change movmem to cpymem.
19394 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
19395 * config/nds32/nds32-protos.h: Change movmem to cpymem.
19396 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
19397 (pa_adjust_insn_length): Change call to compute_movmem_length.
19398 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
19399 movmemdi, movmemdi_prereload,
19400 movmemdi_postreload): Change movmem to cpymem.
19401 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
19402 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
19403 * config/riscv/riscv.c: Change movmem to cpymem in comment.
19404 * config/riscv/riscv.h: Change movmem to cpymem.
19405 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
19406 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
19407 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
19408 movmem to cpymem.
19409 * config/s390/s390-protos.h: Change movmem to cpymem.
19410 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
19411 s390_expand_insv): Change movmem to cpymem.
19412 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
19413 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
19414 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
19415 * config/sparc/sparc.h: Change movmem to cpymem in comment.
19416 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
19417 for nonexistent function.
19418 * config/vax/vax.h: Change movmem to cpymem in comment.
19419 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
19420 * config/visium/visium.h: Change movmem to cpymem in comment.
19421 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
19422 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
19423 * doc/md.texi: Change movmem to cpymem and update description to match.
19424 * doc/rtl.texi: Change movmem to cpymem.
19425 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
19426 * doc/tm.texi: Regenerate.
19427
19428 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
19429
19430 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
19431 -fvariable-expansion-in-unroller by default.
19432 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
19433 default for Power.
19434
19435 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
19436
19437 Revert
19438 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
19439 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
19440
19441 * config.gcc(rs6000-*-*): Define target_gtfiles.
19442
19443 2019-06-27 Jan Hubicka <jh@suse.cz>
19444
19445 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
19446 (add_type_duplicate): When odr hash is not allocated, to nothing.
19447 (odr_based_tbaa_p): New function.
19448 (set_type_canonical_for_odr_type): New function.
19449 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
19450 set_type_canonical_for_odr_type): New.
19451 * tree.c (gimple_canonical_types_compatible_p): ODR types with
19452 ODR based TBAA are not equivalent to non-ODR types.
19453
19454 2019-06-27 Martin Liska <mliska@suse.cz>
19455
19456 PR tree-optimization/90974
19457 PR rtl-optimization/90975
19458 PR rtl-optimization/90976
19459 PR target/91016
19460 PR tree-optimization/91017
19461 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
19462 unused tmp.
19463 * lra.c (lra_set_insn_recog_data): Remove a leftover from
19464 initial commit of IRA.
19465 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
19466 of op0 and op1.
19467 * tree-vect-loop.c (vect_create_epilog_for_reduction):
19468 Remove unused mode1.
19469 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
19470 to new_stmt_info.
19471
19472 2019-06-27 Jakub Jelinek <jakub@redhat.com>
19473
19474 PR target/90991
19475 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
19476 instead of register_operand for operands[1], add m to its constraints
19477 if operands[2] uses "C" constraint. Ensure in condition that if
19478 operands[2] is not 0, then operands[1] is not a MEM. For last two
19479 alternatives, use unaligned loads instead of aligned if operands[1] is
19480 misaligned_operand.
19481
19482 2019-06-27 Martin Liska <mliska@suse.cz>
19483
19484 * asan.c (asan_emit_allocas_unpoison): Remove obviously
19485 dead assignments.
19486 * bt-load.c (move_btr_def): Likewise.
19487 * builtins.c (expand_builtin_apply_args_1): Likewise.
19488 (expand_builtin_apply): Likewise.
19489 * cfgexpand.c (expand_asm_stmt): Likewise.
19490 (construct_init_block): Likewise.
19491 * cfghooks.c (verify_flow_info): Likewise.
19492 * cfgloopmanip.c (remove_path): Likewise.
19493 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
19494 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
19495 * combine.c (simplify_if_then_else): Likewise.
19496 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
19497 (choose_basereg): Likewise.
19498 (ix86_expand_prologue): Likewise.
19499 (ix86_preferred_output_reload_class): Likewise.
19500 * cselib.c (cselib_record_sets): Likewise.
19501 * df-scan.c (df_scan_alloc): Likewise.
19502 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
19503 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
19504 * emit-rtl.c (try_split): Likewise.
19505 * graphite-scop-detection.c (assign_parameter_index_in_region):
19506 Likewise.
19507 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
19508 * ira-color.c (setup_profitable_hard_regs): Likewise.
19509 * ira.c (rtx_moveable_p): Likewise.
19510 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
19511 * read-rtl.c (read_subst_mapping): Likewise.
19512 * regrename.c (scan_rtx): Likewise.
19513 * reorg.c (fill_slots_from_thread): Likewise.
19514 * tree-inline.c (tree_function_versioning): Likewise.
19515 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
19516 * tree-ssa-sink.c (statement_sink_location): Likewise.
19517 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
19518 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
19519 (vect_create_epilog_for_reduction): Likewise.
19520 * tree.c (build_nonstandard_integer_type): Likewise.
19521
19522 2019-06-27 Richard Biener <rguenther@suse.de>
19523
19524 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
19525
19526 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
19527
19528 PR tree-optimization/89772
19529 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
19530 out-of-bound accesses checking.
19531
19532 2019-06-27 Martin Liska <mliska@suse.cz>
19533
19534 PR tree-optimization/91014
19535 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
19536 when LHS is NULL_TREE.
19537
19538 2019-06-27 Martin Liska <mliska@suse.cz>
19539
19540 * symbol-summary.h (traverse): Pass
19541 argument a to the call of callback.
19542 (gt_ggc_mx): Mark arguments as unused.
19543 (gt_pch_nx): Likewise.
19544
19545 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
19546
19547 PR target/62147
19548 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
19549 finiteness.
19550
19551 2019-06-26 Jeff Law <law@redhat.com>
19552
19553 PR tree-optimization/90883
19554 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
19555 (delete_dead_or_redundant_assignment): Likewise.
19556
19557 PR tree-optimization/90883
19558 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
19559 * tree-ssa-dse.c: Update various comments to distinguish between
19560 dead and redundant stores.
19561 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
19562 (dse_optimize_redundant_stores): New function.
19563 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
19564 Distinguish between dead and redundant calls in dump output. All
19565 callers updated.
19566 (delete_dead_or_redundant_assignment): Similarly for assignments.
19567 (dse_optimize_stmt): Handle _CHK variants. For statements which
19568 store 0 into multiple memory locations, try to prove a subsequent
19569 store is redundant.
19570
19571 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
19572
19573 PR target/89021
19574 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
19575 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
19576
19577 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
19578
19579 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
19580 (branch_islands): New extern.
19581 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
19582 * config/rs6000/rs6000.c: .. here.
19583
19584 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
19585
19586 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
19587 (powerpc*-*-*) ... to here.
19588
19589 2019-06-26 Jeff Law <law@redhat.com>
19590
19591 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
19592 memcpy, memmove and memset builtins.
19593 (maybe_trim_memstar_call): Likewise.
19594
19595 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
19596
19597 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
19598
19599 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
19600
19601 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
19602
19603 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
19604
19605 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
19606 declaration.
19607 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
19608 "static".
19609 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
19610 declaration.
19611
19612 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
19613
19614 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
19615
19616 2019-06-26 Richard Biener <rguenther@suse.de>
19617
19618 PR ipa/90982
19619 * tree-inline.c (remap_ssa_name): Copy SSA range info.
19620
19621 2019-06-26 Richard Biener <rguenther@suse.de>
19622
19623 * lto-streamer.h (lto_bitmap_alloc): Remove.
19624 (lto_bitmap_free): Likewise.
19625 * lto-streamer.c (lto_bitmap_alloc): Remove.
19626 (lto_bitmap_free): Likewise.
19627 (lto_obstack): Likewise.
19628 (lto_obstack_initialized): Likewise.
19629 * lto-streamer-out.c (lto_output): Use own obstack for local
19630 bitmap, free it consistently.
19631
19632 2019-06-26 Jakub Jelinek <jakub@redhat.com>
19633
19634 PR target/90991
19635 * config/i386/sse.md
19636 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
19637 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
19638 insns if operands[2] is misaligned_operand.
19639
19640 2019-06-26 Li Jia He <helijia@linux.ibm.com>
19641
19642 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
19643 TARGET_POWERPC64.
19644 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
19645 to GPR.
19646
19647 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
19648
19649 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
19650
19651 2019-06-26 Martin Liska <mliska@suse.cz>
19652
19653 PR tree-optimization/90973
19654 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
19655 epilogue_cost_vec instead of prologue_cost_vec for
19656 a epilogue cost.
19657
19658 2019-06-26 Martin Liska <mliska@suse.cz>
19659
19660 * bb-reorder.c (connect_better_edge_p): Add missing else
19661 statement in the middle of if-else statements.
19662
19663 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
19664 H.J. Lu <hongjiu.lu@intel.com>
19665 Olga Makhotina <olga.makhotina@intel.com>
19666
19667 * common/config/i386/i386-common.c
19668 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
19669 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
19670 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
19671 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
19672 (ix86_handle_option): Handle -mavx512vp2intersect.
19673 * config/i386/avx512vp2intersectintrin.h: New.
19674 * config/i386/avx512vp2intersectvlintrin.h: New.
19675 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
19676 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
19677 AVX512VP2INTERSECT.
19678 * config/i386/i386-builtin-types.def: Add new types.
19679 * config/i386/i386-builtin.def: Add new builtins.
19680 * config/i386/i386-builtins.c: (enum processor_features): Add
19681 F_AVX512VP2INTERSECT.
19682 (static const _isa_names_table isa_names_table): Ditto.
19683 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19684 __AVX512VP2INTERSECT__.
19685 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
19686 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
19687 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
19688 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
19689 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
19690 * config/i386/i386-options.c (ix86_target_string): Add
19691 -mavx512vp2intersect.
19692 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
19693 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
19694 P2HImode and P2QImode.
19695 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
19696 number for P2QImode and P2HImode.
19697 (ix86_regmode_natural_size): New function.
19698 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
19699 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
19700 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
19701 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
19702 * config/i386/i386.opt: Add -mavx512vp2intersect.
19703 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
19704 avx512vp2intersectvlintrin.h.
19705 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
19706 (define_mode_iterator VI48_AVX512VP2VL): New.
19707 (avx512vp2intersect_2intersect<mode>,
19708 avx512vp2intersect_2intersectv16si): New define_insn patterns.
19709 * config.gcc: Add avx512vp2intersectvlintrin.h and
19710 avx512vp2intersectintrin.h to extra_headers.
19711 * doc/invoke.texi: Document -mavx512vp2intersect.
19712
19713 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
19714
19715 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
19716
19717 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
19718
19719 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
19720 savres_routine_syms, savres_routine_name, morestack_ref,
19721 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
19722 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
19723 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
19724 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
19725 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
19726 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
19727 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
19728 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
19729 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
19730 get_stack_clash_protection_probe_interval,
19731 get_stack_clash_protection_guard_size,
19732 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
19733 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
19734 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
19735 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
19736 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
19737 gen_frame_mem_offset, rs6000_savres_routine_name,
19738 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
19739 ptr_regno_for_savres, rs6000_emit_savres_rtx,
19740 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
19741 rs6000_global_entry_point_prologue_needed_p,
19742 rs6000_get_separate_components, rs6000_components_for_bb,
19743 rs6000_disqualify_components, rs6000_emit_prologue_components,
19744 rs6000_emit_epilogue_components, rs6000_set_handled_components,
19745 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
19746 rs6000_output_savres_externs, rs6000_output_function_prologue,
19747 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
19748 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
19749 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
19750 rs6000_output_function_epilogue, gen_add3_const,
19751 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
19752 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
19753 to rs6000-logue.c.
19754 (machine_function): Moved to rs6000.h.
19755 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
19756 rs6000-internal.h.
19757 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
19758 savres_routine_syms, savres_routine_name, morestack_ref,
19759 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
19760 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
19761 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
19762 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
19763 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
19764 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
19765 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
19766 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
19767 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
19768 get_stack_clash_protection_probe_interval,
19769 get_stack_clash_protection_guard_size,
19770 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
19771 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
19772 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
19773 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
19774 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
19775 gen_frame_mem_offset, rs6000_savres_routine_name,
19776 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
19777 ptr_regno_for_savres, rs6000_emit_savres_rtx,
19778 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
19779 rs6000_global_entry_point_prologue_needed_p,
19780 rs6000_get_separate_components, rs6000_components_for_bb,
19781 rs6000_disqualify_components, rs6000_emit_prologue_components,
19782 rs6000_emit_epilogue_components, rs6000_set_handled_components,
19783 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
19784 rs6000_output_savres_externs, rs6000_output_function_prologue,
19785 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
19786 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
19787 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
19788 rs6000_output_function_epilogue, gen_add3_const,
19789 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
19790 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
19791 to here from rs6000.c.
19792 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
19793 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
19794 quad_address_offset_p) Moved to here from rs6000.c.
19795 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
19796 * config/config.gcc: Add new source file rs6000-logue.c to garbage
19797 collector.
19798
19799 2019-06-25 Martin Liska <mliska@suse.cz>
19800
19801 * hash-table.c (hashtab_chk_error): Move here from ...
19802 * hash-table.h (hashtab_chk_error): ... here.
19803
19804 2019-06-25 Martin Liska <mliska@suse.cz>
19805
19806 PR tree-optimization/90978
19807 * df-scan.c (df_update_entry_block_defs): Remove dead else
19808 branch.
19809 (df_update_exit_block_uses): Likewise.
19810
19811 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
19812 Andrew Stubbs <ams@codesourcery.com>
19813
19814 * config.gcc (thread_file): Set to gcn for AMD GCN.
19815 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
19816 (TARGET_EMUTLS_VAR_INIT): New hook.
19817
19818 2019-06-25 Martin Jambor <mjambor@suse.cz>
19819
19820 PR ipa/90939
19821 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
19822
19823 2019-06-25 Richard Biener <rguenther@suse.de>
19824
19825 PR tree-optimization/90930
19826 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
19827 into parallel form in the last pass instance.
19828
19829 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
19830
19831 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
19832 (arc_legitimize_pic_address): Simplify and cleanup the function.
19833 (SYMBOLIC_CONST): Remove.
19834 (prepare_pic_move): Likewise.
19835 (prepare_move_operands): Handle complex mov cases here.
19836 (arc_legitimize_address_0): Remove call to
19837 arc_legitimize_pic_address.
19838 (arc_legitimize_address): Remove call to
19839 arc_legitimize_tls_address.
19840 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
19841 (movhi_insn): Likewise.
19842
19843 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19844
19845 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
19846 PTRDIFF_TYPE.
19847 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
19848 format of "__intN" types for UINTMAX_TYPE.
19849 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
19850 format of "__intN" types for SIZETYPE.
19851 * tree.c (build_common_tree_nodes): Accept "__intN__"
19852 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
19853 * doc/invoke.texi: Document that __intN__ disables pedantic
19854 warnings.
19855
19856 2019-06-25 Jan Hubicka <jh@suse.cz>
19857
19858 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
19859 base2_alias_set is non-zero before doing TBAA based disambiguation.
19860
19861 2019-06-25 Martin Liska <mliska@suse.cz>
19862
19863 PR tree-optimization/90973
19864 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
19865 of prologue and epilogue.
19866
19867 2019-06-24 Jan Hubicka <jh@suse.cz>
19868
19869 * ipa-utils.h (type_with_linkage_p): Verify that type is
19870 CXX_ODR_P.
19871 (odr_type_p): Remove extra return.
19872 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
19873 hash STRING_FLAG only for arrays and integers.
19874 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
19875 Update analogously.
19876 * tree-streamer-out.c (pack_ts_type_common_value_fields):
19877 Likewise.
19878 * print-tree.c (print_node): Print cxx-odr-p
19879 and string-flag.
19880 * tree.c (need_assembler_name_p): Also check that type
19881 is CXX_ODR_TYPE_P
19882 (verify_type_variant): Update verification of SRING_FLAG;
19883 also check CXX_ODR_P.
19884 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
19885 (TYPE_STRING_FLAG): Use it.
19886 (TYPE_CXX_ODR_P): New macro.
19887 * dwarf2out.c (gen_array_type_die): First check that type
19888 is an array and then test string flag.
19889
19890 2019-06-24 Richard Biener <rguenther@suse.de>
19891
19892 PR tree-optimization/90972
19893 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
19894 in common code, dealing with STRING_CST properly.
19895
19896 2019-06-24 Richard Biener <rguenther@suse.de>
19897
19898 PR tree-optimization/90930
19899 PR tree-optimization/90316
19900 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
19901 decrement of limit.
19902
19903 2019-06-24 Martin Sebor <msebor@redhat.com>
19904
19905 * tree-pretty-print.h: Remove unnecessary punctuation characters
19906 from a diagnostic.
19907 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
19908
19909 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
19910
19911 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
19912 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
19913 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
19914
19915 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
19916
19917 * config/rs6000/darwin.h: Handle GCC target pragma.
19918
19919 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
19920
19921 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
19922
19923 2019-06-22 Jeff Law <law@redhat.com>
19924
19925 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
19926
19927 2019-06-22 Jan Hubicka <jh@suse.cz>
19928
19929 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
19930 give up on bitfields; continue searching for different refs
19931 appearing later.
19932
19933 2019-06-21 Jakub Jelinek <jakub@redhat.com>
19934
19935 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
19936 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
19937 containing the offset as possible simd lane access. Look through
19938 widening conversion. Move the
19939 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
19940
19941 2019-06-21 Richard Biener <rguenther@suse.de>
19942
19943 PR tree-optimization/90930
19944 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
19945 flag on new stmts to avoid re-processing them.
19946
19947 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
19948
19949 PR c++/90875 - added -Wswitch-outside-range option
19950 * doc/invoke.texi (Wswitch-outside-range): Document.
19951
19952 2019-06-21 Jeff Law <law@redhat.com>
19953
19954 PR tree-optimization/90949
19955 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
19956 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
19957
19958 2019-06-21 Richard Biener <rguenther@suse.de>
19959
19960 PR debug/90914
19961 * dwarf2out.c (prune_unused_types_walk): Always consider
19962 function-local extern declarations as used.
19963
19964 2019-06-21 Richard Biener <rguenther@suse.de>
19965
19966 PR tree-optimization/90913
19967 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
19968 the scalar variant of if-conversion versioning.
19969
19970 2019-06-21 Jakub Jelinek <jakub@redhat.com>
19971
19972 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
19973 create another "omp scan inscan exclusive" array if
19974 !ctx->scan_inclusive.
19975 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
19976 (lower_omp_scan): Likewise.
19977 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
19978 2-bit bitfield for simd_lane_access_p member.
19979 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
19980 aux == (void *)-4 as simd lane access.
19981 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
19982 comment with permutations to show the canonical permutation order.
19983 (vectorizable_scan_store): Handle exclusive scan.
19984 (vectorizable_store): Call vectorizable_scan_store even for
19985 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
19986
19987 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
19988 "omp simd array" arrays with one byte elements.
19989
19990 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
19991
19992 * config/alpha/alpha.md (@unaligned_store<mode>):
19993 Rename from unaligned_store<mode>.
19994 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
19995 * config/alpha/sync.md (@load_locked_<mode>): Rename
19996 from load_locked_<mode>.
19997 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
19998 (@atomic_compare_and_swap<mode>_1): Rename
19999 from atomic_compare_and_swap<mode>_1.
20000 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
20001 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
20002 Use gen_reload_in_aligned and gen_unaligned_store.
20003 (emit_load_locked): Remove.
20004 (emit_store_conditional): Ditto.
20005 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
20006 (alpha_split_compare_and_swap): Ditto.
20007 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
20008 (alpha_split_compare_and_swap_12): Use gen_load_locked
20009 and gen_store_conditional.
20010 (alpha_split_atomic_exchange): Ditto.
20011 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
20012 (alpha_split_atomic_exchange_12): Use gen_load_locked
20013 and gen_store_conditional.
20014
20015 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
20016
20017 * config/aarch64/aarch64-errata.h: New file.
20018 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
20019 (CA53_ERR_843419_SPEC): Delete.
20020 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
20021 * config/aarch64/aarch64-linux.h: Likewise.
20022 * config/aarch64/aarch64-netbsd.h: Likewise.
20023 * config/aarch64/aarch64-freebsd.h: Likewise.
20024
20025 2019-06-20 Marek Polacek <polacek@redhat.com>
20026
20027 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
20028
20029 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
20030
20031 * config/rs6000/rs6000.md (isa attribute): Add support for
20032 for a future processor.
20033
20034 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
20035
20036 PR target/54855
20037 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
20038 standard scalar operation pattern for V2DF.
20039 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
20040 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
20041 (*ieee_<ieee_maxmin><mode>3): Likewise.
20042 (vec_setv2df_0): Likewise.
20043
20044 2019-06-20 Jan Hubicka <jh@suse.cz>
20045
20046 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
20047 parameter; it has no use in gimple memory model.
20048 (indirect_ref_may_alias_decl_p): Update.
20049
20050 2019-06-20 Martin Liska <mliska@suse.cz>
20051
20052 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
20053 to 10.
20054
20055 2019-06-20 Jakub Jelinek <jakub@redhat.com>
20056
20057 * tree-vect-stmts.c (enum scan_store_kind): New type.
20058 (scan_store_can_perm_p): Change last argument from int * to
20059 vec<enum scan_store_kind> *, record precisely which permutations
20060 need whole vector left shift or that plus VEC_COND_EXPR.
20061 (vectorizable_scan_store): Adjust caller, use whole vector left shift
20062 and additional VEC_COND_EXPR only for those iterations that need it.
20063
20064 2019-06-20 Alexandre Oliva <oliva@adacore.com>
20065
20066 * config.gcc: Fix ARM --with-fpu checking and error message.
20067
20068 2019-06-19 Marek Polacek <polacek@redhat.com>
20069
20070 PR c++/60364 - noreturn after first decl not diagnosed.
20071 * attribs.c (get_attribute_namespace): No longer static.
20072 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
20073 attributes.
20074 (attr_noreturn_exclusions): Make it extern.
20075 * attribs.h (get_attribute_namespace): Declare.
20076 * tree-inline.c (function_attribute_inlinable_p): Use
20077 get_attribute_name.
20078
20079 2019-06-19 Martin Sebor <msebor@redhat.com>
20080
20081 PR tree-optimization/90626
20082 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
20083
20084 PR tree-optimization/90626
20085 * tree-ssa-strlen.c (strxcmp_unequal): New function.
20086 (handle_builtin_string_cmp): Call it.
20087
20088 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
20089
20090 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
20091 and DARWIN_NOPIE_SPEC.
20092 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
20093 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
20094 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
20095 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
20096 (DARWIN_EXPORT_DYNAMIC): Delete.
20097 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
20098 and pie options processing to darwin.h.
20099 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
20100
20101 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
20102
20103 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
20104 in computing the number of options to be moved.
20105
20106 2019-06-19 Maya Rashish <coypu@sdf.org>
20107
20108 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
20109 (CLEAR_INSN_CACHE) Use it.
20110
20111 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
20112
20113 * config/i386/i386.md (cmpstrnsi): Remove dead code.
20114
20115 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
20116
20117 PR middle-end/84521
20118 * builtins.c (expand_builtin_setjmp_setup): Save
20119 hard_frame_pointer_rtx.
20120 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
20121 restore fp.
20122 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
20123 non-local goto.
20124 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
20125 elimination code.
20126 (remove_reg_equal_offset_note): Remove unused function.
20127 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
20128 code.
20129 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20130 (arc_builtin_setjmp_frame_value): Remove function.
20131 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20132 (avr_builtin_setjmp_frame_value): Remove function.
20133 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20134 (ix86_builtin_setjmp_frame_value): Remove function.
20135 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
20136 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20137 (sparc_builtin_setjmp_frame_value): Remove function.
20138 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20139 (vax_builtin_setjmp_frame_value): Remove function.
20140 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
20141 pointer if has_nonlocal_label.
20142
20143 2019-06-19 Jakub Jelinek <jakub@redhat.com>
20144
20145 * doc/md.texi: Document vec_shl_<mode> pattern.
20146 * optabs.def (vec_shl_optab): New optab.
20147 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
20148 argument, if == vec_shl_optab, check for left whole vector shift
20149 pattern rather than right shift.
20150 (expand_vec_perm_const): Add vec_shl_optab support.
20151 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
20152 in the comment.
20153 * tree-vect-generic.c (lower_vec_perm): Support permutations which
20154 can be handled by vec_shl_optab.
20155 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
20156 (check_scan_store): Use it.
20157 (vectorizable_scan_store): If target can't do normal permutations,
20158 try to use whole vector left shifts and if needed a VEC_COND_EXPR
20159 after it.
20160 * config/i386/sse.md (vec_shl_<mode>): New expander.
20161
20162 * omp-low.c (lower_rec_input_clauses): Handle references properly
20163 in inscan clauses.
20164 (lower_omp_scan): Likewise.
20165
20166 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
20167
20168 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
20169 mem_mode is BLKmode.
20170
20171 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
20172
20173 PR target/90922
20174 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
20175 pointer adjustment for the case of no callee-saved registers and
20176 stack frame bigger than 128 bytes.
20177
20178 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
20179
20180 PR middle-end/90862
20181 * omp-low.c (check_omp_nesting_restrictions): Handle
20182 GF_OMP_TARGET_KIND_OACC_DECLARE.
20183
20184 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
20185
20186 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
20187 (@add<mode>3_carry): Rename from add<mode>3_carry.
20188 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
20189 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
20190 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
20191 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
20192 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
20193 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
20194 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
20195 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
20196 (cmpstrnsi): Use gen_cmp_1.
20197 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
20198 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
20199 (@umonitor_<mode>): Rename from umonitor_<mode>.
20200 * config/i386/i386-expand.c (ix86_expand_copysign):
20201 Use gen_copysign3_const and gen_copysign3_var.
20202 (ix86_expand_xorsign): Use gen_xorsign3_1.
20203 (ix86_expand_branch): Use gen_sub3_carry_ccc,
20204 gen_sub3_carry_ccgz and gen_cmp1.
20205 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
20206 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
20207 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
20208 (ix86_split_lshr): Ditto.
20209 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
20210
20211 2019-06-18 Jason Merrill <jason@redhat.com>
20212
20213 * tree.c (build_constructor): Add MEM_STAT_DECL.
20214
20215 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20216
20217 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
20218 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
20219 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
20220 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
20221 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
20222 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
20223 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
20224 Use CC_NZC instead of CC.
20225 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
20226 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
20227 (aarch64_print_operand): Handle E_CC_NZCmode.
20228 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
20229 of gen_set_clobber_cc.
20230
20231 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20232
20233 * config/aarch64/aarch64-sve.md: Tabify file.
20234
20235 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20236
20237 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
20238 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
20239 * config/aarch64/aarch64-sve.md: Use it.
20240
20241 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20242
20243 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
20244 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
20245 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
20246 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
20247 (aarch64_expand_sve_vec_cmp_int): Use it.
20248 (aarch64_expand_sve_vec_cmp_float): Likewise.
20249 * config/aarch64/aarch64-sve.md: Likewise throughout.
20250
20251 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20252 Kugan Vivekanandarajah <kuganv@linaro.org>
20253
20254 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
20255 (*cond_<optab><mode>_z): Fold into...
20256 (*cond_<optab><mode>_any): ...here. Also handle cases in which
20257 operand 4 can be tied to operand 0 (either inherently or via RA).
20258
20259 2019-06-18 Richard Biener <rguenther@suse.de>
20260
20261 PR debug/90900
20262 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
20263 as if optimized away.
20264
20265 2019-06-18 Tom de Vries <tdevries@suse.de>
20266
20267 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
20268 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
20269 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
20270 Rename to ...
20271 (define_insn "@set_softstack_<mode>"): ... this.
20272 (define_insn "omp_simt_enter_<mode>"): Rename to ...
20273 (define_insn "@omp_simt_enter_<mode>"): ... this.
20274 (define_insn "omp_simt_exit_<mode>"): Rename to ...
20275 (define_insn "@omp_simt_exit_<mode>"): ... this.
20276
20277 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20278
20279 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
20280 vf parameter. Restore the previous iv step of nscalars_step,
20281 but give it iv_type rather than compare_type. Tweak code order
20282 to match the comments.
20283 (vect_set_loop_condition_masked): Update accordingly.
20284 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
20285 for iv_precision. Tweak comment formatting.
20286
20287 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
20288
20289 * config/darwin.c: Strip trailing whitespace.
20290
20291 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
20292
20293 * config/darwin.c (darwin_emit_unwind_label): New default to false.
20294 (darwin_override_options): Set darwin_emit_unwind_label as needed.
20295
20296 2019-06-18 Martin Jambor <mjambor@suse.cz>
20297
20298 PR ipa/90889
20299 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
20300 caller does not have flag_ipa_cp set.
20301
20302 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
20303
20304 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
20305 from "*fold_left_plus_<mode>", updated operands order.
20306 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
20307 * internal-fn.c (mask_fold_left_direct): New define.
20308 (expand_mask_fold_left_optab_fn): Likewise.
20309 (direct_mask_fold_left_optab_supported_p): Likewise.
20310 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
20311 * optabs.def (mask_fold_left_plus_optab): New optab.
20312 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
20313 masked internal_fn for a reduction ifn.
20314 (vectorize_fold_left_reduction): Add support for masking reductions.
20315
20316 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
20317
20318 PR middle-end/80791
20319 * target.def (predict_doloop_p): New hook.
20320 * targhooks.h (default_predict_doloop_p): New declaration.
20321 * targhooks.c (default_predict_doloop_p): New function.
20322 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
20323 * doc/tm.texi: Regenerate.
20324 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
20325 (TARGET_PREDICT_DOLOOP_P): New macro.
20326 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
20327
20328 2019-06-17 Jakub Jelinek <jakub@redhat.com>
20329
20330 * omp-low.c (struct omp_context): Add scan_inclusive field.
20331 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
20332 if inclusive scan.
20333 (struct omplow_simd_context): Add lastlane member.
20334 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
20335 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
20336 1 or 2 argument.
20337 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
20338 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
20339 (lower_omp_scan): New function.
20340 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
20341 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
20342 check 3rd argument if present rather than 2nd.
20343 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
20344 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
20345 2-bit bitfield.
20346 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
20347 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
20348 than 2nd.
20349 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
20350 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
20351 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
20352 init.
20353 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
20354 IFN_GOMP_SIMD_LANE argument.
20355 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
20356 encoded ->aux value.
20357 * tree-vect-stmts.c: Include attribs.h.
20358 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
20359 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
20360 functions.
20361 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
20362 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
20363
20364 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
20365
20366 PR target/62055
20367 * config/i386/i386.md (*nabstf2_1): New insn pattern.
20368 (*nabs<mode>2_1): Ditto.
20369 (nabs sse-reg splitter): New splitter.
20370 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
20371
20372 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
20373
20374 PR bootstrap/90873.
20375 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
20376 TMR index check.
20377
20378 2019-06-17 Tom de Vries <tdevries@suse.de>
20379
20380 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
20381 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
20382 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
20383 ...
20384 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
20385 match_operand 0.
20386 (define_insn "omp_simt_enter_insn"): Rename to ...
20387 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
20388 match_operand 0, 1 and 2, as well as the unspec_volatile result.
20389 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
20390 gen_omp_simt_enter_si.
20391 (define_expand "omp_simt_exit"): New.
20392 (define_insn "omp_simt_exit"): Rename to ...
20393 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
20394 match_operand 0.
20395
20396 2019-06-17 Matthew Green <mrg@eterna.com.au>
20397 Maya Rashish <coypu@sdf.org>
20398
20399 * config.gcc (aarch64*-*-netbsd*): New target.
20400 * config/aarch64/aarch64-netbsd.h: New file.
20401 * config/aarch64/t-aarch64-netbsd: Likewise.
20402
20403 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
20404
20405 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
20406 the access path from base to first VIEW_CONVERT_EXPR or
20407 BIT_FIELD_REF.
20408
20409 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
20410
20411 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
20412 access path on BIT_FIELD_REFs.
20413
20414 2019-06-17 Martin Liska <mliska@suse.cz>
20415
20416 PR ipa/90874
20417 * ipa-utils.h (odr_type_p): Remove dead code.
20418
20419 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20420
20421 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
20422 alternative Solaris 11.4 format.
20423 * configure: Regenerate.
20424
20425 2019-06-17 Tom de Vries <tdevries@suse.de>
20426
20427 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
20428 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
20429 match_operand 0.
20430 (define_insn "call_value_insn"): Rename to ...
20431 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
20432 match_operand 0.
20433 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
20434 DI.
20435
20436 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
20437
20438 PR middle-end/64242
20439 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
20440 frame clobbers and schedule block.
20441 (builtin_longjmp): Likewise.
20442
20443 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
20444
20445 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
20446 describe how to perform MSPABI compliant 64-bit shift.
20447 * config/msp430/msp430.md (ashldi3): New define_expand.
20448 (ashrdi3): New define_expand.
20449 (lshrdi3): New define_expand.
20450
20451 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
20452
20453 * doc/sourcebuild.texi: Document new effective target keyword
20454 longlong64.
20455
20456 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
20457
20458 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
20459 indirect_refs_may_alias_p): Revert accidental commits.
20460
20461 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
20462 at the end of structures.
20463
20464 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
20465
20466 * config/darwin.c (machopic_indirect_call_target): Use renamed
20467 darwin_picsymbol_stubs to decide on output.
20468 (darwin_override_options): Handle darwin_picsymbol_stubs.
20469 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
20470 (LD64_VERSION): Revise default.
20471 * config/darwin.opt: (mpic-symbol-stubs): New option.
20472 (darwin_picsymbol_stubs): New variable.
20473 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
20474 rename to TARGET_MACHO_PICSYM_STUBS.
20475 * config/i386/i386.c (output_pic_addr_const): Likewise.
20476 * config/i386/i386.h Likewise.
20477 * config/rs6000/darwin.h: Likewise.
20478 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
20479 darwin_picsymbol_stubs.
20480
20481 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
20482
20483 * config/darwin.opt (prebind, noprebind, seglinkedit,
20484 noseglinkedit): Add RejectNegative.
20485
20486 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
20487
20488 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
20489 in my previous patch.
20490
20491 2019-06-16 Tom de Vries <tdevries@suse.de>
20492
20493 PR tree-optimization/89376
20494 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
20495
20496 2019-06-15 Maya Rashish <coypu@sdf.org>
20497
20498 * doc/invoke.texi (Spec Files): Update location of the
20499 Fortran spec file.
20500
20501 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
20502
20503 * doc/extend.texi (Common Function Attributes): Clarify
20504 no_sanitize. Fix grammar.
20505
20506 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
20507
20508 * tree-ssa-alias.c (alias_stats): Add
20509 nonoverlapping_component_refs_p_may_alias,
20510 nonoverlapping_component_refs_p_no_alias,
20511 nonoverlapping_component_refs_of_decl_p_may_alias,
20512 nonoverlapping_component_refs_of_decl_p_no_alias.
20513 (dump_alias_stats): Dump them.
20514 (nonoverlapping_component_refs_of_decl_p): Add stats.
20515 (nonoverlapping_component_refs_p): Add stats; do not stop on first
20516 ARRAY_REF.
20517
20518 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
20519
20520 * config/i386/i386.md (and<mode>3): Generate zero-extends for
20521 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
20522 only.
20523 (*anddi3_doubleword): Split before reload. Merge with
20524 anddi->zext pre-reload splitter.
20525 (*andndi3_doubleword): Split before reload.
20526 (*<code>di3_doubleword): Ditto.
20527 (*one_cmpldi2_doubleword): Ditto.
20528
20529 2019-06-15 Jakub Jelinek <jakub@redhat.com>
20530
20531 PR middle-end/90779
20532 * gimplify.c: Include omp-offload.h and context.h.
20533 (gimplify_bind_expr): Add "omp declare target" attributes
20534 to static block scope variables inside of target region or target
20535 functions.
20536
20537 2019-06-15 Tom de Vries <tdevries@suse.de>
20538
20539 PR tree-optimization/90009
20540 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
20541 Return NULL if bb contains IFN_UNIQUE.
20542
20543 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
20544
20545 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
20546 (un): New define_mode_attr.
20547 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
20548 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
20549 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
20550 merge into ...
20551 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
20552
20553 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
20554
20555 * config/darwin.opt: Add RejectNegative where needed, reorder
20556 and add minimal functional descriptions.
20557
20558 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
20559
20560 PR rtl-optimization/90765
20561 * calls.c (update_stack_alignment_for_call): New function.
20562 (expand_call): Call update_stack_alignment_for_call when
20563 outgoing parameter is passed in the stack.
20564 (emit_library_call_value_1): Likewise.
20565 * function.c (locate_and_pad_parm): Don't update
20566 stack_alignment_needed and preferred_stack_boundary.
20567
20568 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
20569
20570 PR target/90877
20571 * config/i386/i386-features.c
20572 (dimode_scalar_chain::compute_convert_gain): Replace
20573 mmxsse_to_integer with sse_to_integer.
20574 * config/i386/i386.c (ix86_register_move_cost): Verify that
20575 moves between MMX and non-MMX units require secondary memory.
20576 Correct costs of moves between SSE and integer units.
20577 * config/i386/i386.h (processor_costs): Rename cost of moving
20578 SSE register to integer to sse_to_integer. Rename cost of
20579
20580 2019-06-14 Matt Thomas <matt@3am-software.com>
20581 Matthew Green <mrg@eterna.com.au>
20582 Nick Hudson <skrll@netbsd.org>
20583 Maya Rashish <coypu@sdf.org>
20584 Richard Earnshaw <rearnsha@arm.com>
20585
20586 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
20587 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
20588 * config/arm/netbsd-eabi.h: New file.
20589 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
20590 redefining.
20591 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
20592 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
20593 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
20594 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
20595
20596 2019-06-14 Richard Biener <rguenther@suse.de>
20597
20598 * tree-loop-distribution.c (classify_partition): Return
20599 whether a reduction appeared in all partitions and do not
20600 stop builtin detection because of this.
20601 (distribute_loop): Sort a non-builtin partition last if
20602 there's a reduction in all partitions and make sure the
20603 partition prevailing as last is not a builtin.
20604
20605 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
20606
20607 PR ipa/90401
20608 * ipa-prop.c (add_to_agg_contents_list): New function.
20609 (clobber_by_agg_contents_list_p): Likewise.
20610 (extract_mem_content): Likewise.
20611 (get_place_in_agg_contents_list): Delete.
20612 (determine_known_aggregate_parts): Renamed from
20613 determine_locally_known_aggregate_parts. New parameter
20614 aa_walk_budget_p.
20615
20616 2019-06-13 Martin Sebor <msebor@redhat.com>
20617
20618 PR tree-optimization/90662
20619 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
20620 to the same type.
20621
20622 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
20623
20624 PR bootstrap/90873
20625 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
20626 dbase is not TARGET_MEM_REF.
20627
20628 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
20629
20630 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
20631 Update all uses.
20632 (and<mode>3): Use gen_extend_insn instead of indirect functions.
20633 Do not generate DImode extends for 32bit targets.
20634 (and->zext post-reload splitter): Use gen_extend_insn
20635 instead of indirect functions.
20636 (anddi->zext pre-reload splitter): New.
20637 (*zext<mode>_doubleword_and): Remove.
20638 (*zext<mode>_doubleword): Ditto.
20639 (*zextsi_doubleword): Dittto.
20640
20641 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
20642
20643 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
20644 Use gen_sub3_insn instead of indirect function.
20645 (ix86_expand_ashl_const): Use gen_add2_insn instead of
20646 indirect function.
20647 (ix86_adjust_counter): Ditto.
20648
20649 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
20650 Lijia He <helijia@linux.ibm.com>
20651
20652 PR tree-optimization/77820
20653 * tree-ssa-threadedge.c
20654 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
20655 function.
20656 (thread_across_edge): Add call to
20657 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
20658
20659 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
20660
20661 * config/darwin-driver.c (validate_macosx_version_min): New.
20662 (darwin_default_min_version): Cleanup and validate supplied version.
20663 (darwin_driver_init): Likewise and push cleaned version into opts.
20664
20665 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
20666
20667 PR tree-optimization/90869
20668 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
20669 converts in MEM_REF referencing decl rather than view converts
20670 from decl type to MEM_REF type.
20671
20672 2019-06-13 Richard Biener <rguenther@suse.de>
20673
20674 PR tree-optimization/90856
20675 * tree-sra.c (build_ref_for_model): Only use
20676 build_reconstructed_reference when address-spaces are the same.
20677
20678 2019-06-13 Jakub Jelinek <jakub@redhat.com>
20679
20680 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
20681 wrap ei variable name in the declaration in ()s.
20682 (nvptx_single): Actually use mode_label variable. Formatting fix.
20683
20684 2019-06-13 Richard Biener <rguenther@suse.de>
20685
20686 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
20687 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
20688 also return the condition stmt.
20689 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
20690 loop we can version and version that, reusing the loop version
20691 created by if-conversion instead of versioning again.
20692
20693 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
20694
20695 * gimple-loop-versioning.cc (prune_loop_conditions): Use
20696 may_contain_p.
20697 * tree-vrp (value_range_base::may_contain_p): Call into
20698 value_inside_range.
20699 (value_inside_range): Make private inside value_range_base class.
20700 Take min/max from *this.
20701 (range_includes_p): Remove.
20702 * tree-vrp.h (value_range_base): Add value_inside_range.
20703 (range_includes_p): Remove.
20704 (range_includes_zero_p): Call may_contain_p.
20705 * vr-values.c (compare_range_with_value): Same.
20706
20707 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
20708
20709 * doc/extend.texi (ARC Function Attributes): Update info.
20710
20711 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
20712
20713 PR tree-optimization/89713
20714 * doc/invoke.texi (-ffinite-loops): Document new option.
20715 * common.opt (-ffinite-loops): New option.
20716 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
20717 IFN_GOACC_LOOP calls as necessary.
20718 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
20719 is finite.
20720 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
20721 IFN_GOACC_LOOP call is not used.
20722 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
20723
20724 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
20725
20726 PR target/88838
20727 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
20728 compare_type is not with Pmode size, we will create an IV with
20729 Pmode size with truncated use (i.e. converted to the correct type).
20730 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
20731 (vect_iv_limit_for_full_masking): New. Factored out of
20732 vect_set_loop_condition_masked.
20733 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
20734 (vect_iv_limit_for_full_masking): Declare.
20735
20736 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
20737
20738 PR target/88834
20739 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
20740 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
20741 (get_alias_ptr_type_for_ptr_address): Likewise.
20742 (add_iv_candidate_for_use): Add scaled index candidate if useful.
20743 * tree-ssa-address.c (preferred_mem_scale_factor): New.
20744 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
20745 allow_reg_index_p.
20746
20747 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
20748
20749 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
20750
20751 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
20752
20753 * common/config/pru/pru-common.c: New file.
20754 * config.gcc: Add PRU target.
20755 * config/pru/alu-zext.md: New file.
20756 * config/pru/constraints.md: New file.
20757 * config/pru/predicates.md: New file.
20758 * config/pru/pru-opts.h: New file.
20759 * config/pru/pru-passes.c: New file.
20760 * config/pru/pru-pragma.c: New file.
20761 * config/pru/pru-protos.h: New file.
20762 * config/pru/pru.c: New file.
20763 * config/pru/pru.h: New file.
20764 * config/pru/pru.md: New file.
20765 * config/pru/pru.opt: New file.
20766 * config/pru/t-pru: New file.
20767 * doc/extend.texi: Document PRU pragmas.
20768 * doc/invoke.texi: Document PRU-specific options.
20769 * doc/md.texi: Document PRU asm constraints.
20770
20771 2019-06-12 Martin Sebor <msebor@redhat.com>
20772
20773 PR middle-end/90676
20774 * tree-pretty-print.c (dump_mem_ref): New function. Include
20775 MEM_REF type in output when different size than operand.
20776 (dump_generic_node): Move code to dump_mem_ref and call it.
20777
20778 2019-06-12 Martin Sebor <msebor@redhat.com>
20779
20780 PR tree-optimization/90662
20781 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
20782 to arrays.
20783
20784 2019-06-12 Tom de Vries <tdevries@suse.de>
20785
20786 PR tree-optimization/90009
20787 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
20788
20789 2019-06-12 Martin Liska <mliska@suse.cz>
20790
20791 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
20792 the created map.
20793 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
20794 * mem-stats.h (mem_alloc_description::mem_alloc_description):
20795 Do not sanitize created maps.
20796
20797 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
20798
20799 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
20800 value_range::singleton_p.
20801 * tree-vrp.c (value_range_constant_singleton): Remove.
20802 * tree-vrp.h (value_range_constant_singleton): Remove.
20803 * vr-values.c (vr_values::singleton): Use
20804 value_range::singleton_p.
20805
20806 2019-06-12 Jakub Jelinek <jakub@redhat.com>
20807
20808 PR target/90811
20809 * cfgexpand.c (align_local_variable): Add really_expand argument,
20810 don't SET_DECL_ALIGN if it is false.
20811 (add_stack_var): Add really_expand argument, pass it through to
20812 align_local_variable.
20813 (expand_one_stack_var_1): Pass true as really_expand to
20814 align_local_variable.
20815 (expand_one_ssa_partition): Pass true as really_expand to
20816 add_stack_var.
20817 (expand_one_var): Pass really_expand through to add_stack_var.
20818
20819 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
20820
20821 * config/arm/iterators.md (VABAL): New int iterator.
20822 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
20823 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
20824 UNSPEC_VABAL_U values.
20825
20826 2019-06-12 Martin Liska <mliska@suse.cz>
20827
20828 * value-prof.c (stream_out_histogram_value): Only first value
20829 can't be negative.
20830
20831 2019-06-12 Jakub Jelinek <jakub@redhat.com>
20832
20833 PR c/90760
20834 * symtab.c (symtab_node::set_section): Allow being called on aliases
20835 as long as they aren't analyzed yet.
20836
20837 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
20838
20839 * config/mips/mips.c (mips_final_postscan_insn): Modify call
20840 to `mips_set_text_contents_type' to indicate whether a
20841 non-debug insn follows.
20842
20843 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
20844
20845 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
20846 enabling -mpcrel by default.
20847 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
20848 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
20849 that the test against -mcpu=future is done first. Then test if
20850 -mprefixed-addr is on for -mpcrel.
20851 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
20852
20853 2019-06-11 Jakub Jelinek <jakub@redhat.com>
20854
20855 PR target/90811
20856 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
20857 instead of and.u%d.
20858
20859 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
20860
20861 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
20862
20863 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
20864
20865 PR c++/90449 - add -Winaccessible-base option.
20866 * doc/invoke.texi (Winaccessible-base): Document.
20867
20868 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
20869
20870 PR tree-optimization/62041
20871 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
20872
20873 2019-06-11 Jason Merrill <jason@redhat.com>
20874
20875 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
20876 * tree.c (get_tree_code_name): Likewise.
20877 * print-tree.c (print_node): Only briefly print a node with an
20878 invalid code.
20879
20880 2019-06-11 Jakub Jelinek <jakub@redhat.com>
20881
20882 PR bootstrap/90819
20883 * trans-mem.c (tm_memopt_compute_available): Add assertion
20884 that blocks is not empty. Formatting fix.
20885
20886 2019-06-11 Martin Liska <mliska@suse.cz>
20887
20888 PR c++/87847
20889 * hash-table.h: Extend create_gcc, add one parameter
20890 that is passed into hash_table::hash_table.
20891
20892 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
20893
20894 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
20895 New prototype.
20896 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
20897 Emit clobber also for non-sse operations.
20898 (ix86_split_fp_absneg_operator): New function.
20899 * config/i386/i386.md (SSEMODEF): New mode iterator.
20900 (ssevecmodef): New mode attribute.
20901 (<code>tf2): Use absneg code iterator.
20902 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
20903 Add three-operand AVX alternatives.
20904 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
20905 Use absneg code iterator and X87MODEF mode iterator.
20906 (absneg fp_reg non-sse splitter): Call absneg code iterator
20907 and X87MODEF mode iterator.
20908 (absneg general_reg non-sse splitter): Use absneg code iterator
20909 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
20910 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
20911 code iterator. Add three-operand AVX alternative.
20912 (absneg sse_reg splitter): Use absneg code iterator
20913 and SSEMODEF mode iterator. Handle AVX operands.
20914 (absneg fp_reg splitter): Use absneg code iterator
20915 and MODEF mode iterator.
20916 (absneg general_reg splitter): Merge splitters using MODEF mode
20917 iterator. Use absneg code iterator. Call
20918 ix86_split_fp_absneg_operator.
20919 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
20920 Do not enable for non-sse modes before reload.
20921 (CSGNMODE): Remove.
20922 (CSGNVMODE): Ditto.
20923 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
20924 ssevecmodef mode attribute instaed of CSGNVMODE.
20925 (copysign<mode>3_const): Ditto.
20926 (copysign<mode>3_var): Ditto.
20927 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
20928 Use absneg code iterator. Simplify code using std::swap.
20929 * config/i386/predicates.md (absneg_operator): Remove.
20930
20931 2019-06-10 Martin Sebor <msebor@redhat.com>
20932
20933 * gimple-fold.c (get_range_strlen): Update comment that didn't
20934 make it into r267503 or related commits.
20935
20936 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
20937
20938 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
20939 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
20940
20941 2019-06-10 Jakub Jelinek <jakub@redhat.com>
20942
20943 * tree.def (OMP_SCAN): New tree code.
20944 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
20945 OMP_CLAUSE_EXCLUSIVE.
20946 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
20947 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
20948 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
20949 OMP_CLAUSE_{IN,EX}CLUSIVE.
20950 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
20951 * tree-nested.c (convert_nonlocal_reference_stmt,
20952 convert_local_reference_stmt, convert_gimple_call): Handle
20953 GIMPLE_OMP_SCAN.
20954 * tree-pretty-print.c (dump_omp_clause): Handle
20955 OMP_CLAUSE_{IN,EX}CLUSIVE.
20956 (dump_generic_node): Handle OMP_SCAN.
20957 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
20958 * gimple.h (gomp_scan): New type.
20959 (is_a_helper <gomp_scan *>::test,
20960 is_a_helper <const gomp_scan *>::test): New templates.
20961 (gimple_build_omp_scan): Declare.
20962 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
20963 gimple_omp_scan_set_clauses): New inline functions.
20964 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
20965 * gimple.c (gimple_build_omp_scan): New function.
20966 (gimple_copy): Handle GIMPLE_OMP_SCAN.
20967 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
20968 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
20969 GIMPLE_OMP_TASKGROUP.
20970 (dump_gimple_omp_scan): New function.
20971 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
20972 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
20973 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
20974 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
20975 (is_gimple_stmt): Handle OMP_SCAN.
20976 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
20977 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
20978 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
20979 mentioned in nested #pragma omp scan. Handle
20980 OMP_CLAUSE_{IN,EX}CLUSIVE.
20981 (gimplify_expr): Handle OMP_SCAN.
20982 * omp-low.c (check_omp_nesting_restrictions): For parent context,
20983 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
20984 simd constructs.
20985 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
20986 GIMPLE_OMP_SCAN.
20987
20988 2019-06-10 Martin Liska <mliska@suse.cz>
20989
20990 * ipa-cp.c (ignore_edge_p): New function.
20991 (build_toporder_info): Use it.
20992 * ipa-inline.c (ignore_edge_p): New function.
20993 (inline_small_functions): Use it.
20994 * ipa-pure-const.c (ignore_edge_for_nothrow):
20995 Verify opt_for_fn for caller and callee.
20996 (ignore_edge_for_pure_const): Likewise.
20997 * ipa-reference.c (ignore_edge_p): Extend to check
20998 for opt_for_fn.
20999 * ipa-utils.c (searchc): Refactor.
21000 * ipa-utils.h: Fix coding style.
21001
21002 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
21003
21004 * config/arc/arc.c (arc_rtx_costs): Update costs.
21005
21006 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
21007
21008 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
21009 (arc_split_ior): Likewise.
21010 (arc_check_mov_const): Likewise.
21011 (arc_split_mov_const): Likewise.
21012 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
21013 (arc_rtx_costs): Replace check Crr with Cax constraint.
21014 (prepare_move_operands): Cleanup, remove unused code.
21015 (arc_split_ior): New function.
21016 (arc_check_ior_const): Likewise.
21017 (arc_split_mov_const): Likewise.
21018 (arc_check_mov_const): Likewise.
21019 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
21020 in define_insn_and_split pattern.
21021 (iorsi3): Likewise.
21022 (mulsi3_v2): Add new matching variant.
21023 (andsi3_i): Cleanup pattern.
21024 (rotrsi3_cnt1): Update pattern.
21025 (rotrsi3_cnt8): New pattern.
21026 (ashlsi2_cnt8): Likewise.
21027 (ashlsi2_cnt16): Likewise.
21028 * config/arc/constraints.md (C0p): Update constraint.
21029 (Crr): Remove it.
21030 (C0x): New pattern.
21031 (Cax): New pattern.
21032
21033 2019-06-10 Martin Liska <mliska@suse.cz>
21034
21035 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
21036 Update coding style.
21037 (sem_item_optimizer::dump_cong_classes):
21038 Print how many items are in a non-singular class. Improve
21039 coding style.
21040
21041 2019-06-10 Martin Liska <mliska@suse.cz>
21042
21043 * value-prof.c (dump_histogram_value): Change dump format.
21044 (gimple_mod_subtract_transform): Remove legacy comment.
21045
21046 2019-06-10 Martin Liska <mliska@suse.cz>
21047
21048 * value-prof.c (dump_histogram_value): Print histogram values
21049 only if present.
21050
21051 2019-06-10 Martin Liska <mliska@suse.cz>
21052
21053 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
21054 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
21055 * ipa-profile.c (ipa_profile_generate_summary):
21056 Use get_most_common_single_value.
21057 * tree-profile.c (gimple_init_gcov_profiler):
21058 Instrument with __gcov_one_value_profiler_v2
21059 and __gcov_indirect_call_profiler_v4.
21060 * value-prof.c (dump_histogram_value):
21061 Print all values for HIST_TYPE_SINGLE_VALUE.
21062 (stream_out_histogram_value): Update assert for
21063 N values.
21064 (stream_in_histogram_value): Set number of
21065 counters for HIST_TYPE_SINGLE_VALUE.
21066 (get_most_common_single_value): New.
21067 (gimple_divmod_fixed_value_transform):
21068 Use get_most_common_single_value.
21069 (gimple_ic_transform): Likewise.
21070 (gimple_stringops_transform): Likewise.
21071 (gimple_find_values_to_profile): Set number
21072 of counters for HIST_TYPE_SINGLE_VALUE.
21073 * value-prof.h (get_most_common_single_value): New.
21074
21075 2019-06-10 Martin Liska <mliska@suse.cz>
21076
21077 * hash-map.h: Pass default value to hash_table ctor.
21078 * hash-table.h: Add default value to call of a ctor.
21079
21080 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
21081
21082 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
21083 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
21084
21085 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
21086
21087 PR target/90751
21088 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
21089 Call pa_output_function_label.
21090 (TARGET_ASM_FUNCTION_PROLOGUE): define.
21091 * config/pa/pa-protos.h (pa_output_function_label): Declare.
21092 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
21093 to declaration.
21094 (pa_linux_output_function_prologue): Declare.
21095 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
21096 (pa_output_function_label): New.
21097 (pa_output_function_prologue): Revise to use pa_output_function_label.
21098 (pa_linux_output_function_prologue): New.
21099 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
21100
21101 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
21102
21103 * tree-vrp.h (value_range_base::intersect): New.
21104 (value_range::intersect_helper): Move from here...
21105 (value_range_base::intersect_helper): ...to here.
21106 * tree-vrp.c (value_range::intersect_helper): Rename to...
21107 (value_range_base::intersect_helper): ...this, and rewrite to
21108 return a value instead of modifying THIS in place.
21109 Also, move equivalence handling...
21110 (value_range::intersect): ...here, while calling intersect_helper.
21111 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
21112 calling intersect.
21113 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
21114 Same.
21115 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
21116
21117 2019-06-07 Jakub Jelinek <jakub@redhat.com>
21118
21119 * Makefile.in (genprogerr): Add condmd.
21120 (genprog): Remove it here.
21121
21122 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
21123
21124 * doc/invoke.texi (AMD GCN Options): Add gfx906.
21125
21126 2019-06-07 Richard Biener <rguenther@suse.de>
21127
21128 PR debug/90574
21129 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
21130 that appear after user labels.
21131
21132 2019-06-07 Martin Liska <mliska@suse.cz>
21133
21134 * cselib.c (cselib_init): Disable hash table
21135 sanitization.
21136 * hash-set.h: Pass new default argument to m_table.
21137 * hash-table.c: Add global variable with hash table
21138 sanitization limit.
21139 * hash-table.h (Allocator>::hash_table): Add new argument
21140 to ctor.
21141 (hashtab_chk_error): New.
21142 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
21143 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
21144 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
21145
21146 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
21147
21148 * common.opt (flto-odr-type-merging): Ignore.
21149 * invoke.texi (-flto-odr-type-merging): Remove.
21150 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
21151 (can_be_vtable_hashed_p): Remove.
21152 (hash_odr_vtable): Remove.
21153 (odr_vtable_hasher::hash): Remove.
21154 (types_same_for_odr): Remove.
21155 (types_odr_comparable): Remove.
21156 (odr_vtable_hasher::equal): Remove.
21157 (odr_vtable_hash_type, odr_vtable_hash): Remove.
21158 (add_type_duplicate): Do not synchronize vtable and name hashtables.
21159 (get_odr_type): Do not use vtable hash.
21160 (dump_odr_type): Remove commented out code.
21161 (build_type_inheritance_graph): Do not allocate vtable hash.
21162 (rebuild_type_inheritance_graph): Do not delete vtable hash.
21163 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
21164 (odr_type_p): Likewise.
21165 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
21166 test.
21167
21168 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
21169
21170 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
21171 immediately after same_types_for_tbaa_p returns -1 and continue
21172 looking for possible exact match; if matching types are arrays
21173 watch for partial overlaps.
21174 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
21175 (indirect_refs_may_alias_p): Do type based disambiguation first;
21176 update comment.
21177
21178 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
21179
21180 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
21181
21182 2019-06-07 Martin Liska <mliska@suse.cz>
21183
21184 * doc/invoke.texi: Remove param.
21185 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
21186 Remove.
21187 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
21188 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
21189 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
21190 * profile.c (instrument_values): Remove
21191 HIST_TYPE_INDIR_CALL_TOPN.
21192 * tree-profile.c (init_ic_make_global_vars):
21193 Always build __gcov_indirect_call only.
21194 (gimple_init_gcov_profiler): Remove usage
21195 of PARAM_INDIR_CALL_TOPN_PROFILE.
21196 (gimple_gen_ic_profiler): Likewise.
21197 * value-prof.c (dump_histogram_value): Likewise.
21198 (stream_in_histogram_value): Likewise.
21199 (gimple_indirect_call_to_profile): Likewise.
21200 (gimple_find_values_to_profile): Likewise.
21201 * value-prof.h (enum hist_type): Likewise.
21202
21203 2019-06-07 Martin Liska <mliska@suse.cz>
21204
21205 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
21206 function.
21207
21208 2019-06-07 Martin Liska <mliska@suse.cz>
21209
21210 PR tree-optimization/78902
21211 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
21212 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
21213 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
21214 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
21215 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
21216 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
21217 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
21218 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
21219 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
21220 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
21221 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
21222 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
21223 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
21224 New.
21225 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
21226 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
21227 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
21228 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
21229 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
21230 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
21231 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
21232 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
21233 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
21234 warn_unused_result attribute.
21235 (BUILT_IN_STRDUP): Likewise.
21236 (BUILT_IN_STRNDUP): Likewise.
21237 (BUILT_IN_ALLOCA): Likewise.
21238 (BUILT_IN_CALLOC): Likewise.
21239 (BUILT_IN_MALLOC): Likewise.
21240 (BUILT_IN_REALLOC): Likewise.
21241
21242 2019-06-06 Jim Wilson <jimw@sifive.com>
21243
21244 PR target/89955
21245 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
21246 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
21247 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
21248
21249 2019-06-06 Martin Sebor <msebor@redhat.com>
21250
21251 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
21252 (handle_builtin_malloc): Remove trailing spaces.
21253 (handle_builtin_memset): Same.
21254 (handle_builtin_memcmp): Same.
21255 (compute_string_length): Same.
21256 (determine_min_objsize): Same.
21257 (handle_builtin_string_cmp): Same.
21258 (handle_char_store): Same. Break up excessively long line.
21259
21260 2019-06-06 Martin Jambor <mjambor@suse.cz>
21261
21262 * tree-sra.c (build_reconstructed_reference): Drop the alignment
21263 check.
21264
21265 2019-06-06 Martin Jambor <mjambor@suse.cz>
21266
21267 * tree-sra.c (struct access): New field grp_same_access_path.
21268 (dump_access): Dump it.
21269 (build_reconstructed_reference): New function.
21270 (build_ref_for_model): Use it if possible.
21271 (path_comparable_for_same_access): New function.
21272 (same_access_path_p): Likewise.
21273 (sort_and_splice_var_accesses): Set the new flag.
21274 (analyze_access_subtree): Likewise.
21275 (propagate_subaccesses_across_link): Propagate zero value of the new
21276 flag down the access tree.
21277
21278 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
21279
21280 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
21281 * config/gcn/gcn.opt (gpu_type): Add gfx906.
21282 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
21283 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
21284 Add gfx906.
21285
21286 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21287
21288 PR tree-optimization/90332
21289 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
21290 Handle VALS containing two vectors.
21291 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
21292 to...
21293 (@aarch64_combinez<mode>): ... This.
21294 (*aarch64_combinez_be<mode>): Rename to...
21295 (@aarch64_combinez_be<mode>): ... This.
21296 (vec_init<mode><Vhalf>): New define_expand.
21297 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
21298
21299 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
21300
21301 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
21302 library functions only when not optimizing for size.
21303 (ashlsi3): Likewise.
21304 (ashrhi3): Likewise.
21305 (ashrsi3): Likewise.
21306 (lshrhi3): Likewise.
21307 (lshrsi3): Likewise.
21308
21309 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
21310
21311 PR rtl-optimization/88751
21312 * ira.c (ira): Use the number of the actually referenced registers
21313 when calculating the threshold.
21314
21315 2019-06-06 Jakub Jelinek <jakub@redhat.com>
21316
21317 * configure: Regenerate.
21318
21319 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
21320
21321 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
21322 register if it is in memory, so the shift can be emulated with a rotate
21323 instruction.
21324 (ashrhi3): Likewise.
21325 (lshrhi3): Likewise.
21326
21327 2019-06-06 Martin Liska <mliska@suse.cz>
21328
21329 PR tree-optimization/87954
21330 * match.pd: Simplify mult where both arguments are 0 or 1.
21331
21332 2019-06-06 Richard Biener <rguenther@suse.de>
21333
21334 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
21335 put equivalences on UNDEFINED ranges.
21336 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
21337 Make sure to drop defs of stmts added during simplification
21338 to VARYING.
21339
21340 2019-06-06 Richard Biener <rguenther@suse.de>
21341
21342 * tree-ssa-structalias.c: Include tree-cfg.h.
21343 (make_heapvar): Do not make heap vars artificial.
21344 (find_func_aliases_for_builtin_call): Handle stack allocation
21345 functions.
21346 (find_func_aliases): Delay processing of simple enough returns
21347 in non-IPA mode.
21348 (set_uids_in_ptset): Adjust.
21349 (find_what_var_points_to): Likewise.
21350 (solve_constraints): Do not dump points-to sets here.
21351 (compute_points_to_sets): Post-process return statements,
21352 amending the escaped solution. Dump points-to sets afterwards.
21353 (ipa_pta_execute): Dump points-to sets.
21354
21355 2019-06-06 Martin Liska <mliska@suse.cz>
21356
21357 PR web/87933
21358 * doc/install.texi: Fix HTML headers and
21359 titles for 'Installing GCC' pages.
21360
21361 2019-06-06 Martin Liska <mliska@suse.cz>
21362
21363 * ipa-icf-gimple.h (dump_message_1): Remove.
21364 (dump_message): Likewise.
21365 (return_false_with_message_1): Print also file.
21366 (return_false_with_msg): Likewise.
21367 (return_with_result): Likewise.
21368 (return_with_debug): Likewise.
21369 * ipa-icf.c (sem_function::equals_private): Remove call
21370 to dump_message.
21371
21372 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
21373
21374 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
21375 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
21376 memory operand for it.
21377 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
21378
21379 2019-06-05 Martin Sebor <msebor@redhat.com>
21380
21381 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
21382 Adjust quoting and hyphenation.
21383 * convert.c (convert_to_real_1): Same.
21384 * gcc.c (driver_wrong_lang_callback): Same.
21385 (driver::handle_unrecognized_options): Same.
21386 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
21387 * opts-common.c (cmdline_handle_error): Same.
21388 (read_cmdline_option): Same.
21389 * opts-global.c (complain_wrong_lang): Same.
21390 (print_ignored_options): Same.
21391 (handle_common_deferred_options): Same.
21392 * pretty-print.h: Same.
21393 * print-rtl.c (debug_bb_n_slim): Same.
21394 * sched-rgn.c (make_pass_sched_fusion): Same.
21395 * tree-cfg.c (verify_gimple_assign_unary): Same.
21396 (verify_gimple_label): Same.
21397 * tree-ssa-operands.c (verify_ssa_operands): Same.
21398 * varasm.c (do_assemble_alias): Same.
21399 (assemble_alias): Same.
21400
21401 2019-06-05 Richard Henderson <rth@twiddle.net>
21402
21403 * config/alpha/alpha.c (direct_return): Move down after
21404 struct machine_function definition; use saved frame_size;
21405 return bool.
21406 (struct machine_function): Add sa_mask, sa_size, frame_size.
21407 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
21408 (alpha_compute_frame_layout): ... new function.
21409 (TARGET_COMPUTE_FRAME_LAYOUT): New.
21410 (alpha_initial_elimination_offset): Use saved sa_size.
21411 (alpha_vms_initial_elimination_offset): Likewise.
21412 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
21413 (alpha_expand_prologue): Use saved frame data. Merge integer
21414 and fp register save loops.
21415 (alpha_expand_epilogue): Likewise.
21416 (alpha_start_function): Use saved frame data.
21417 * config/alpha/alpha-protos.h (direct_return): Update.
21418 (alpha_sa_size): Remove.
21419
21420 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
21421
21422 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
21423 multiplication by a power-of-two value.
21424 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
21425 and turn the modulo operation into a masking operation.
21426
21427 2019-06-05 Jakub Jelinek <jakub@redhat.com>
21428
21429 PR debug/90733
21430 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
21431 with VOIDmode inner operands.
21432
21433 2019-06-05 Richard Biener <rguenther@suse.de>
21434
21435 PR middle-end/90726
21436 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
21437 turn an expression graph into a tree.
21438
21439 2019-06-05 Jakub Jelinek <jakub@redhat.com>
21440
21441 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
21442 member.
21443 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
21444 treat it like explicit monotonic schedule modifier.
21445 (expand_omp_for): Initialize has_lastprivate_conditional.
21446 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
21447 schedule modifier.
21448
21449 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
21450 references, lookup in in hash map MEM_REF operand instead of the
21451 MEM_REF itself.
21452 (lower_omp_1): When looking for lastprivate conditional assignments,
21453 handle MEM_REFs with REFERENCE_TYPE operands.
21454
21455 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
21456 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
21457 and references a VLA. Handle references to non-VLAs if is_simd
21458 all privatization clauses like reductions.
21459 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
21460 If omp_is_reference, use always omp simd arrays and set
21461 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
21462 fails, emit reference initialization.
21463
21464 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
21465
21466 PR target/89803
21467 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
21468 _mm_mask_fpclass_sd_mask): New intrinsics.
21469 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
21470 * config/i386/i386-builtin.def
21471 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
21472 New builtins.
21473 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
21474 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
21475 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
21476 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
21477 case QI_FTYPE_V2SF_INT): Ditto.
21478 * config/i386/sse.md
21479 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
21480 Extended to insnstructions with mask operands.
21481
21482 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21483
21484 * config/rs6000/constraints.md (define_register_constraint "wp"):
21485 Delete.
21486 (define_register_constraint "wq"): Delete.
21487 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21488 (rs6000_init_hard_regno_mode_ok): Adjust.
21489 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21490 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
21491 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
21492 (define_mode_attr VSa): Delete.
21493 (define_mode_attr VSisa): New.
21494 (rest of file): Adjust.
21495 * doc/md.texi (Machine Constraints): Adjust.
21496
21497 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21498
21499 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
21500 (define_attr "enabled"): Handle those new isa values.
21501
21502 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21503
21504 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
21505 (define_mode_attr VSr5): Delete.
21506 (define_mode_attr VStype_sqrt): Delete.
21507 (define_mode_iterator VSX_SPDP): Delete.
21508 (define_mode_attr VS_spdp_res): Delete.
21509 (define_mode_attr VS_spdp_insn): Delete.
21510 (define_mode_attr VS_spdp_type): Delete.
21511 (*vsx_sqrt<mode>2): Adjust.
21512 (vsx_<VS_spdp_insn>): Delete, split to...
21513 (vsx_xscvdpsp): ... this. New. And...
21514 (vsx_xvcvspdp): ... this. New. And...
21515 (vsx_xvcvdpsp): ... this. New.
21516
21517 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21518
21519 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
21520 and V2DF.
21521 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
21522 (rest of file): Adjust.
21523
21524 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21525
21526 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
21527 (vsx_extract_<mode>_var): Ditto.
21528
21529 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21530
21531 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
21532 with just "wa".
21533
21534 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21535
21536 * config/rs6000/constraints.md (define_register_constraint "ww"):
21537 Delete.
21538 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21539 (rs6000_init_hard_regno_mode_ok): Adjust.
21540 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21541 RS6000_CONSTRAINT_ww.
21542 * config/rs6000/rs6000.md: Adjust.
21543 * config/rs6000/vsx.md: Adjust.
21544 * doc/md.texi (Machine Constraints): Adjust.
21545
21546 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21547
21548 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
21549 (define_mode_attr sd): New.
21550 (define_mode_attr s): New.
21551 (define_mode_attr Ftrad): Delete.
21552 (define_mode_attr Fvsx): Delete.
21553 (define_mode_attr Fs): Delete.
21554 (rest of file): Use the new mode attributes.
21555 * config.rs6000/vsx.md: Use the new mode attributes.
21556
21557 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21558
21559 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
21560 with just "wa".
21561
21562 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21563
21564 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
21565 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
21566 used with VSX_B, VSX_D, or VSX_F, with just "wa".
21567
21568 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
21569
21570 PR target/78263
21571 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
21572 C++ with strict ANSI requirements.
21573
21574 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
21575
21576 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
21577 computations when step is 1.
21578
21579 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21580
21581 * config/rs6000/constraints.md (define_register_constraint "wf"):
21582 Delete.
21583 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21584 (rs6000_init_hard_regno_mode_ok): Adjust.
21585 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21586 RS6000_CONSTRAINT_wf.
21587 * config/rs6000/rs6000.md: Adjust.
21588 * config/rs6000/vsx.md: Adjust.
21589 * doc/md.texi (Machine Constraints): Adjust.
21590
21591 2019-06-04 Andrew Pinski <apinski@marvell.com>
21592
21593 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
21594 Fix ILP32 value.
21595
21596 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21597
21598 * config/rs6000/constraints.md (define_register_constraint "wd"):
21599 Delete.
21600 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21601 (rs6000_init_hard_regno_mode_ok): Adjust.
21602 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21603 RS6000_CONSTRAINT_wd.
21604 * config/rs6000/rs6000.md: Adjust.
21605 * config/rs6000/vsx.md: Adjust.
21606 * doc/md.texi (Machine Constraints): Adjust.
21607
21608 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21609
21610 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
21611 (rest of file): Adjust.
21612
21613 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21614
21615 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
21616 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
21617 (vsx_splat_<mode>_reg): Adjust.
21618
21619 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21620
21621 * config/rs6000/constraints.md (define_register_constraint "ws"):
21622 Delete.
21623 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21624 (rs6000_init_hard_regno_mode_ok): Adjust.
21625 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21626 RS6000_CONSTRAINT_ws.
21627 * config/rs6000/rs6000.md: Adjust.
21628 * config/rs6000/vsx.md: Adjust.
21629 * doc/md.texi (Machine Constraints): Adjust.
21630
21631 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21632
21633 * config/rs6000/constraints.md (define_register_constraint "wv"):
21634 Delete.
21635 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21636 (rs6000_init_hard_regno_mode_ok): Adjust.
21637 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21638 RS6000_CONSTRAINT_wv.
21639 * config/rs6000/rs6000.md: Adjust.
21640 * config/rs6000/vsx.md: Adjust.
21641 * doc/md.texi (Machine Constraints): Adjust.
21642
21643 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21644
21645 * config/rs6000/constraints.md (define_register_constraint "wi"):
21646 Delete.
21647 (define_register_constraint "wt"): Delete.
21648 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21649 (rs6000_init_hard_regno_mode_ok): Adjust.
21650 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21651 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
21652 * config/rs6000/rs6000.md: Adjust.
21653 * config/rs6000/vsx.md: Adjust.
21654 * doc/md.texi (Machine Constraints): Adjust.
21655
21656 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
21657
21658 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
21659 const.
21660 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
21661 default_elf_asm_output_external.
21662
21663 2019-06-04 Martin Liska <mliska@suse.cz>
21664
21665 * ipa-icf.c (INCLUDE_LIST): Remove.
21666 (sem_item_optimizer::execute): Remove call to init_wpa.
21667 * ipa-icf.h (init_wpa): Remove.
21668
21669 2019-06-04 Jakub Jelinek <jakub@redhat.com>
21670
21671 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
21672 conditional on combined for simd.
21673 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
21674 member.
21675 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
21676 constructs, don't remove lastprivate_conditional_map, but instead set
21677 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
21678 to parent construct temporaries.
21679 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
21680 like !ctx->lastprivate_conditional_map.
21681 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
21682 use up->outer context instead of up.
21683 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
21684 gimple_omp_for_combined_p.
21685 (expand_omp_for_static_nochunk): Likewise.
21686 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
21687 probably moved over into expand_omp_for_generic rather than being copied
21688 there.
21689
21690 2019-06-04 Martin Liska <mliska@suse.cz>
21691
21692 * value-prof.c (dump_histogram_value): Fix typo.
21693 (gimple_mod_subtract_transform): Likewise.
21694
21695 2019-06-04 Richard Biener <rguenther@suse.de>
21696
21697 PR middle-end/90726
21698 * tree-chrec.c (chrec_contains_symbols): Add to visited.
21699 (tree_contains_chrecs): Likewise.
21700 (chrec_contains_symbols_defined_in_loop): Move here and avoid
21701 exponential behaivor from ...
21702 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
21703 ... here.
21704 (expression_expensive_p): Avoid exponential behavior and compute
21705 expanded size, rejecting any expansion.
21706 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
21707 (idx_contains_abnormal_ssa_name_p): Likewise.
21708 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
21709 (contains_abnormal_ssa_name_p): Simplify and use
21710 walk_tree_without_duplicates.
21711
21712 2019-06-04 Richard Biener <rguenther@suse.de>
21713
21714 PR tree-optimization/90738
21715 Revert
21716 2019-06-03 Richard Biener <rguenther@suse.de>
21717
21718 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
21719 full reference tree and record in ref->ref.
21720 (vn_reference_lookup_3): Pass in original ref to
21721 ao_ref_init_from_vn_reference.
21722 (vn_reference_lookup): Likewise.
21723 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
21724 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
21725 Handle non-decl bases in the original reference.
21726
21727 2019-06-04 Martin Liska <mliska@suse.cz>
21728
21729 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
21730 number of references.
21731 (sem_item_optimizer::do_congruence_step):
21732 (sem_item_optimizer::worklist_push): Dump how references
21733 a class has.
21734 (sem_item_optimizer::worklist_pop): Use heap.
21735 (sem_item_optimizer::process_cong_reduction): Likewise.
21736 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
21737
21738 2019-06-04 Martin Liska <mliska@suse.cz>
21739
21740 * ipa-icf.h (struct sem_usage_pair_hash): New.
21741 (sem_usage_pair_hash::hash): Likewise.
21742 (sem_usage_pair_hash::equal): Likewise.
21743 (struct sem_usage_hash): Likewise.
21744 * ipa-icf.c (sem_item::sem_item): Initialize
21745 referenced_by_count.
21746 (sem_item::add_reference): Register a reference
21747 in ref_map and not in target->usages.
21748 (sem_item::setup): Remove initialization of
21749 dead vectors.
21750 (sem_item::~sem_item): Remove usage of dead vectors.
21751 (sem_item::dump): Remove dump of references.
21752 (sem_item_optimizer::sem_item_optimizer): Initialize
21753 m_references.
21754 (sem_item_optimizer::read_section): Remove useless
21755 dump.
21756 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
21757 (sem_item_optimizer::build_graph): Pass m_references
21758 to ::add_reference.
21759 (sem_item_optimizer::verify_classes): Remove usage of dead
21760 vectors.
21761 (sem_item_optimizer::traverse_congruence_split): Return true
21762 when a class is split.
21763 (sem_item_optimizer::do_congruence_step_for_index): Use
21764 hash_map for look up of (sem_item *, index). That brings
21765 significant speed up.
21766 (sem_item_optimizer::do_congruence_step): Return true
21767 when a split is done.
21768 (congruence_class::is_class_used): Use referenced_by_count.
21769
21770 2019-06-04 Alan Modra <amodra@gmail.com>
21771
21772 PR target/90689
21773 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
21774 error.
21775
21776 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
21777
21778 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
21779 * config/rs6000/rs6000.c (direct_move_p): Adjust.
21780 (rs6000_secondary_reload_simple_move): Adjust.
21781 (rs6000_opt_masks): Neuter the "mfpgpr" option.
21782 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
21783 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
21784 comment.
21785 (power6x): Adjust.
21786 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
21787 (floatunssi<mode>2_lfiwzx): Adjust.
21788 (fix_trunc<mode>si2_stfiwx): Adjust.
21789 (fixuns_trunc<mode>si2_stfiwx): Adjust.
21790 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
21791 (mfpgpr): Mark as deprecated.
21792 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
21793 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
21794 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
21795
21796 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
21797
21798 * config/rs6000/constraints.md (define_register_constraint "wg"):
21799 Delete.
21800 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21801 RS6000_CONSTRAINT_wg.
21802 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21803 (rs6000_init_hard_regno_mode_ok): Adjust.
21804 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
21805 Delete "wg" alternatives.
21806 * doc/md.texi (Machine Constraints): Adjust.
21807
21808 2019-06-03 Alan Modra <amodra@gmail.com>
21809
21810 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
21811 (get_uncond_jump_length): Assert length less than INT_MAX and
21812 non-negative.
21813
21814 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
21815
21816 PR middle-end/64242
21817 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
21818 block.
21819 (expand_builtin_nonlocal_goto): Likewise.
21820
21821 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
21822
21823 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
21824 (aarch64_asm_output_external): Declare.
21825 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
21826 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
21827 (aarch64_asm_output_alias): New.
21828 (aarch64_asm_output_external): New.
21829 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
21830 (ASM_OUTPUT_EXTERNAL): Define.
21831
21832 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
21833 * tree-vrp.h (value_range_base::nonzero_p): New.
21834 (value_range_base::set_nonnull): Rename to...
21835 (value_range_base::set_nonzero): ...this.
21836 (value_range_base::set_null): Rename to...
21837 (value_range_base::set_zero): ...this.
21838 (value_range::set_nonnull): Remove.
21839 (value_range::set_null): Remove.
21840 * tree-vrp.c (range_is_null): Remove.
21841 (range_is_nonnull): Remove.
21842 (extract_range_from_binary_expr): Use value_range_base::*zero_p
21843 instead of range_is_*null.
21844 (extract_range_from_unary_expr): Same.
21845 (value_range_base::set_nonnull): Rename to...
21846 (value_range_base::set_nonzero): ...this.
21847 (value_range::set_nonnull): Remove.
21848 (value_range_base::set_null): Rename to...
21849 (value_range_base::set_zero): ...this.
21850 (value_range::set_null): Remove.
21851 (extract_range_from_binary_expr): Rename set_*null uses to
21852 set_*zero.
21853 (extract_range_from_unary_expr): Same.
21854 (union_helper): Same.
21855 * vr-values.c (get_value_range): Use set_*zero instead of
21856 set_*null.
21857 (vr_values::extract_range_from_binary_expr): Same.
21858 (vr_values::extract_range_basic): Same.
21859
21860 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
21861
21862 PR driver/90684
21863 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
21864
21865 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21866
21867 * config/aarch64/iterators.md (MAX_OPP): New code attr.
21868 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
21869 Rename to...
21870 (aarch64_<su>abd<mode>_3): ... This.
21871 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
21872
21873 2019-06-03 Richard Biener <rguenther@suse.de>
21874
21875 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
21876 full reference tree and record in ref->ref.
21877 (vn_reference_lookup_3): Pass in original ref to
21878 ao_ref_init_from_vn_reference.
21879 (vn_reference_lookup): Likewise.
21880 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
21881 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
21882 Handle non-decl bases in the original reference.
21883
21884 2019-06-03 Martin Liska <mliska@suse.cz>
21885
21886 * doc/generic.texi: Remove Java Trees.
21887
21888 2019-06-03 Martin Liska <mliska@suse.cz>
21889
21890 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
21891 returns 0 when operands are equal.
21892
21893 2019-06-03 Richard Biener <rguenther@suse.de>
21894
21895 PR tree-optimization/90716
21896 * tree-loop-distribution.c (destroy_loop): Process blocks in
21897 correct order.
21898
21899 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21900
21901 PR target/88837
21902 * vector-builder.h (vector_builder::count_dups): New method.
21903 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
21904 Declare prototype.
21905 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
21906 (vec_init<mode><Vel>): New pattern.
21907 * config/aarch64/aarch64.c (emit_insr): New function.
21908 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
21909 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
21910 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
21911 (aarch64_sve_expand_vector_init): Define two overloaded functions.
21912
21913 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
21914
21915 PR tree-optimization/90681
21916 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
21917 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
21918 special case for SLP, but fail on non-groupped loads.
21919
21920 2019-06-03 Martin Liska <mliska@suse.cz>
21921
21922 * cfg.c (debug): Use TDF_DETAILS for debug and
21923 print edge info only once.
21924
21925 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
21926
21927 PR fortran/90539
21928 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
21929
21930 2019-06-01 Martin Sebor <msebor@redhat.com>
21931
21932 PR middle-end/90694
21933 * tree-pretty-print.c (dump_generic_node): Add parentheses.
21934
21935 2019-05-31 Jan Hubicka <jh@suse.cz>
21936
21937 * alias.c: Include ipa-utils.h.
21938 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
21939 * ipa-devirt.c (prevailing_odr_type): New.
21940 * ipa-utils.h (previaling_odr_type): Declare.
21941
21942 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
21943 Hongtao Liu <hongtao.liu@intel.com>
21944
21945 PR target/89355
21946 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
21947 NOTE_INSN_DELETED_LABEL check.
21948
21949 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
21950 Robert Suchanek <robert.suchanek@mips.com>
21951
21952 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
21953 and 3rd operands of the fmadd/fmsub/maddv builtin.
21954
21955 2019-05-31 Jakub Jelinek <jakub@redhat.com>
21956
21957 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
21958 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
21959 on OMP_SIMD if not nested inside of worksharing loop that also has
21960 lastprivate conditional clause for the same decl.
21961 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
21962 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
21963 on simd.
21964 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
21965 on simd construct.
21966 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
21967 on simd construct.
21968 (lower_lastprivate_clauses): Likewise.
21969 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
21970 calling lower_rec_input_clauses.
21971 (lower_omp_for): Likewise.
21972 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
21973 clause on simd construct.
21974 * omp-expand.c (expand_omp_simd): Initialize cond_var if
21975 OMP_CLAUSE__CONDTEMP_ clause is present.
21976
21977 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
21978 ivar and lvar.
21979
21980 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
21981
21982 PR c/43673
21983 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
21984 TEX_D32, TEX_D64 or TEX_D128.
21985
21986 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
21987
21988 * match.pd (~(vec?cst1:cst2)): New transformation.
21989
21990 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
21991
21992 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
21993 ((size_t)(A /[ex] B) CMP C): New transformation.
21994
21995 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
21996
21997 * doc/md.texi: Document define_insn_and_rewrite.
21998 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
21999 * gensupport.c (queue_elem): Update comment.
22000 (replace_operands_with_dups): New function.
22001 (gen_rewrite_sequence): Likewise.
22002 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
22003 * read-rtl.c (apply_subst_iterator): Likewise.
22004 (add_condition_to_rtx, named_rtx_p): Likewise.
22005 (rtx_reader::read_rtx_operand): Likewise.
22006 * config/aarch64/aarch64-sve.md
22007 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
22008 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
22009 define_insn_and_rewrite.
22010 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
22011 Remove separate define_split.
22012
22013 2019-05-31 Jan Hubicka <jh@suse.cz>
22014
22015 * tree-ssa-alias.c (type_has_components_p): New function.
22016 (aliasing_component_refs_p): Use it.
22017
22018 2019-05-31 Martin Liska <mliska@suse.cz>
22019
22020 * gdbhooks.py: Add const_tree to TreePrinter.
22021
22022 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
22023
22024 PR debug/86964
22025 * common.opt (feliminate-unused-debug-symbols): Enable by default.
22026 * doc/invoke.texi (Debugging Options): Document new default of
22027 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
22028
22029 2019-05-31 Jakub Jelinek <jakub@redhat.com>
22030
22031 PR tree-optimization/90671
22032 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
22033 template_block used to be empty on the first call, don't use
22034 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
22035 seq with bb_seq and set it with set_bb_seq.
22036
22037 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
22038
22039 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
22040
22041 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
22042 Michael Meissner <meissner@linux.ibm.com>
22043
22044 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
22045 (prefixed_mem_operand): Likewise.
22046 (non_prefixed_mem_operand): Likewise.
22047 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
22048 prototype.
22049 * config/rs6000/rs6000.c (print_operand_address): Handle
22050 PC-relative addresses.
22051 (mode_supports_prefixed_address_p): New function.
22052 (rs6000_prefixed_address): New function.
22053 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
22054 (SYMBOL_REF_PCREL_P): Likewise.
22055
22056 2019-05-30 Jakub Jelinek <jakub@redhat.com>
22057
22058 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
22059 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
22060 (gimplify_omp_for): If worksharing loop with lastprivate conditional
22061 is nested inside of parallel region, add _condtemp_ clause to both.
22062 * tree-nested.c (convert_nonlocal_omp_clauses,
22063 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
22064 assertion failure.
22065 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
22066 member.
22067 * omp-general.c (omp_extract_for_data): Compute it.
22068 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
22069 (lower_rec_input_clauses): Likewise.
22070 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
22071 clause is already present, just add one further one after it.
22072 (lower_lastprivate_clauses): Handle cond_ptr with array type.
22073 (lower_send_shared_vars): Clear _condtemp_ vars.
22074 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
22075 or section or taskgroup.
22076 * omp-expand.c (determine_parallel_type): Disallow combining only if
22077 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
22078 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
22079 (expand_omp_for_generic, expand_omp_for_static_nochunk,
22080 expand_omp_for_static_chunk, expand_omp_for): Use
22081 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
22082 determine if a special set of API routines are needed and if condtemp
22083 needs to be initialized, while always initialize cond_var if
22084 fd->lastprivate_conditional is non-zero.
22085
22086 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
22087 Michael Meissner <meissner@linux.ibm.com>
22088
22089 * config/rs6000/constraints.md (eI): New constraint.
22090 * config/rs6000/predicates.md (cint34_operand): New predicate.
22091 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
22092 (SIGNED_34BIT_OFFSET_P): Likewise.
22093 * doc/md.texi (eI): Document constraint.
22094
22095 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
22096
22097 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
22098
22099 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
22100 Michael Meissner <meissner@linux.ibm.com>
22101
22102 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
22103 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
22104 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
22105 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
22106 (OTHER_FUTURE_MASKS): Likewise.
22107 (POWERPC_MASKS): Likewise.
22108 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
22109 specified without -mprefixed-addr or -mcpu=future. Error if
22110 -mprefixed-addr is specified without -mcpu=future.
22111 (rs6000_opt_masks): Add entry for prefixed-addr.
22112 * rs6000.opt (mprefixed-addr): New option.
22113
22114 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
22115
22116 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
22117 cfun->is_thunk check.
22118
22119 2019-05-30 Jakub Jelinek <jakub@redhat.com>
22120
22121 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
22122 to length.
22123
22124 2019-05-30 Martin Liska <mliska@suse.cz>
22125
22126 * gdbinit.in: Fix 'ptc' command. Add trt
22127 that prints TREE_TYPE($).
22128
22129 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
22130 Alan Modra <amodra@gmail.com>
22131
22132 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
22133 calls here...
22134 (rs6000_indirect_call_template_1): ...and here.
22135 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
22136 plt16_ha, plt16_lo, mtctr indirect calls. Use
22137 rs6000_pltseq_enum.
22138 (rs6000_decl_ok_for_sibcall): New function.
22139 (rs6000_function_ok_for_sibcall): Refactor.
22140 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
22141 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
22142 when pcrel. Reorganize.
22143 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
22144 * rs6000.h (rs6000_pltseq_enum): New enum.
22145 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
22146 (*pltseq_tocsave): Use rs6000_pltseq_enum.
22147 (*pltseq_plt16_ha): Likewise.
22148 (*pltseq_plt16_lo): Likewise.
22149 (*pltseq_mtctr): Likewise.
22150 (*pltseq_plt_pcrel): New insn.
22151 (*call_local_aix): Handle @notoc calls.
22152 (*call_value_local_aix): Likewise.
22153 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
22154 (*call_value_nonlocal_aix): Likewise.
22155 (*call_indirect_pcrel): New insn.
22156 (*call_value_indirect_pcrel): Likewise.
22157
22158 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
22159
22160 * config/i386/sse.md (*save_multiple<mode>): Rename from
22161 save_multiple<mode>.
22162 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
22163 (*restore_multiple_and_return<mode>): Rename from
22164 restore_multiple_and_return<mode>.
22165 (*restore_multiple_leave_return<mode>): Rename from
22166 restore_multiple_leave_return<mode>.
22167
22168 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
22169
22170 * config.gcc (rx-*-linux*): New target.
22171 * config/rx/elf.opt: New file.
22172 * config/rx/linux.h: Likewise.
22173 * config/rx/t-linux: Likewise.
22174 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
22175 make it zero.
22176 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
22177 (ASM_APP_OFF): Likewise.
22178 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
22179 moved elsewhere.
22180
22181 2019-05-29 Jan Hubicka <jh@suse.cz>
22182
22183 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
22184 variants are pointer equivalent.
22185
22186 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
22187
22188 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
22189 * config/aarch64/aarch64-sve2.md: New file.
22190 (<u>avg<mode>3_floor): New pattern.
22191 (<u>avg<mode>3_ceil): Likewise.
22192 (*<sur>h<addsub><mode>): Likewise.
22193 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
22194 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
22195
22196 2019-05-29 Jakub Jelinek <jakub@redhat.com>
22197
22198 PR bootstrap/90543
22199 * optc-save-gen.awk: In cl_optimization_print, use correct condition
22200 for var_opt_string printing. In cl_optimization_print_diff, print
22201 (null) instead of invoking undefined behavior if one of the
22202 var_opt_string pointers is NULL and use && instead of first || in the
22203 guarding condition. For var_target_other options, handle const char *
22204 target variables similarly to const char * optimize node variables.
22205
22206 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
22207
22208 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
22209 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
22210 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
22211 Add autib1716 and pacib1716 initialisation.
22212 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
22213 for autib1716 and pacib1716.
22214 * config/aarch64/aarch64-protos.h (aarch64_key_type,
22215 aarch64_post_cfi_startproc): Define.
22216 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
22217 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
22218 aarch64_handle_pac_ret_protection): Set default sign key to A.
22219 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
22220 aarch64_expand_prologue): Add check for b-key.
22221 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
22222 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
22223 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
22224 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
22225 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
22226 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
22227 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
22228 * config/aarch64/aarch64.md (do_return): Add check for b-key.
22229 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
22230 pauth_hint_num_a with pauth_hint_num.
22231 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
22232 pauth_hint_num_a with pauth_hint_num.
22233 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
22234 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
22235 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
22236 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
22237 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
22238 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
22239 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
22240 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
22241 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
22242 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
22243 UNSPEC_AUTIA1716 respectively.
22244 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
22245 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
22246 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
22247 * doc/invoke.texi (-mbranch-protection): Add b-key type.
22248 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
22249 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
22250
22251 2019-05-29 Jakub Jelinek <jakub@redhat.com>
22252
22253 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
22254 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
22255 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
22256 explicit clause on combined parallel into implicit shared clause.
22257 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
22258 and firstprivate if the decl has one too from combined parallel to
22259 the worksharing construct.
22260
22261 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
22262 Michael Meissner <meissner@linux.ibm.com>
22263
22264 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
22265
22266 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
22267
22268 * rtl.h (LABEL_REF_P): New #define.
22269
22270 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
22271
22272 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
22273
22274 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
22275
22276 * internal-fn.c: Marked mask_load_direct as vectorizable.
22277 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
22278 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
22279 combined even if masks different with allow_slp_p param.
22280 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
22281 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
22282 dissolve SLP-only vectorizable groups when SLP has been discarded.
22283 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
22284 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
22285 masks.
22286 (vect_build_slp_tree_1): Fixed comment typo.
22287 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
22288 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
22289 loads for SLP only.
22290 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
22291 vectorizable.
22292 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
22293
22294 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22295
22296 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
22297 Remove obsolete use_thunk reference.
22298 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
22299 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
22300 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
22301 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
22302 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
22303 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
22304 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
22305 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
22306 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
22307
22308 2019-05-28 Nathan Sidwell <nathan@acm.org>
22309
22310 * tree.h (IDENTIFIER_ANON_P): New.
22311 (anon_aggrname_format, anon_aggname_p): Don't declare.
22312 (make_anon_name): Declare.
22313 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
22314 (hash_tree): Likewise.
22315 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
22316 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
22317 (anon_cnt, make_anon_name): New.
22318
22319 2019-05-28 Martin Liska <mliska@suse.cz>
22320
22321 PR other/90315
22322 * opts-global.c (decode_options): Print help for all
22323 help_option_arguments.
22324 * opts.c (print_help): Add new argument.
22325 (common_handle_option): Remember all values into
22326 help_option_arguments.
22327 * opts.h (print_help): Add new argument.
22328
22329 2019-05-28 Martin Liska <mliska@suse.cz>
22330
22331 PR ipa/90555
22332 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
22333 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
22334 (func_checker::compare_bb): Call compare_loops.
22335
22336 2019-05-27 Jakub Jelinek <jakub@redhat.com>
22337
22338 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
22339 on sections construct.
22340 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
22341 construct.
22342 (lower_omp_sections): Handle lastprivate conditional.
22343 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
22344 lastprivate_conditional_map.
22345 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
22346
22347 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
22348 critical, taskgroup and section regions when looking for a region
22349 with non-NULL lastprivate_conditional_map.
22350
22351 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
22352
22353 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
22354 (*ix86_gen_sub3): Ditto.
22355 (*ix86_gen_sub3_carry): Ditto.
22356 (*ix86_gen_one_cmpl2): Ditto.
22357 (*ix86_gen_andsp): Ditto.
22358 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
22359 (gen_and2_insn): New static function.
22360 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
22361 Use gen_add3_insn instead of ix86_gen_add3.
22362 (ix86_expand_split_stack_prologue): Use gen_add2_insn
22363 instead of ix86_gen_add3.
22364 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
22365 Use gen_sub3_insn instead of ix86_gen_sub3.
22366 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
22367 instead of ix86_gen_add3.
22368 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
22369 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
22370 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
22371 * config/i386/i386-options.c (ix86_option_override_internal):
22372 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
22373 ix86_gen_one_cmpl2 and ix86_gen_andsp.
22374
22375 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
22376
22377 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
22378 and DW_OP_GNU_const_index opcodes.
22379
22380 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
22381
22382 * config/i386/i386.h (STACK_SIZE_MODE): Define.
22383
22384 2019-05-27 Richard Biener <rguenther@suse.de>
22385
22386 PR tree-optimization/90637
22387 * tree-ssa-sink.c (statement_sink_location): Honor the
22388 computed sink location for single-uses.
22389
22390 2019-05-27 Richard Biener <rguenther@suse.de>
22391
22392 PR middle-end/90610
22393 * match.pd (vec_perm): Avoid clobbering op0 when not generating
22394 a bit-insert.
22395
22396 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
22397
22398 * config/i386/i386.md (@sub<mode>3_carry): Rename
22399 from sub<mode>3_carry.
22400 (@leave_<mode>): New expander.
22401 (*leave): Rename from leave.
22402 (*leave_rex64): Rename from leave_rex64.
22403 (@monitorx_<mode>): Rename from monitorx_<mode>.
22404 (@clzero_<mode>): Rename from clzero_<mode>.
22405 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
22406 from sse3_monitor_<mode>.
22407 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
22408 (*ix86_gen_leave): Ditto.
22409 (*ix86_gen_monitor): Ditto.
22410 (*ix86_gen_monitorx): Ditto.
22411 (*ix86_gen_clzero): Ditto.
22412 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
22413 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
22414 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
22415 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
22416 Use gen_sse3_monitor instead of ix86_gen_monitor.
22417 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
22418 instead of ix86_gen_monitorx.
22419 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
22420 instead of ix86_gen_clzero.
22421 * config/i386/i386-options.c (ix86_option_override_internal):
22422 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
22423 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
22424
22425 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
22426
22427 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
22428 Rename from tls_global_dynamic_64_<mode>.
22429 (@tls_local_dynamic_base_64_<mode>): Rename from
22430 tls_local_dynamic_base_64_<mode>.
22431 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
22432 Remove indirect function.
22433 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
22434 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
22435 instead of ix86_gen_tls_global_dynamic_64.
22436 Use gen_tls_local_dynamic_base_64 instead of
22437 ix86_gen_tls_local_dynamic_base_64.
22438 * config/i386/i386-options.c (ix86_option_override_internal):
22439 Do not initialize ix86_gen_tls_global_dynamic_64 and
22440 ix86_gen_tls_local_dynamic_base_64.
22441
22442 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
22443
22444 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
22445 Rename from pro_epilogue_adjust_stack_<mode>_add.
22446 (@pro_epilogue_adjust_stack_sub_<mode>)
22447 Rename from pro_epilogue_adjust_stack_<mode>_sub.
22448 (@allocate_stack_worker_probe_<mode>):
22449 Rename from allocate_stack_worker_probe_<mode>.
22450 (allocate_stack): Use gen_allocate_stack_worker_probe.
22451 (probe_stack): Use gen_probe_stack_1.
22452 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
22453 (@adjust_stack_and_probe_<mode>): Rename from
22454 adjust_stack_and_probe<mode>.
22455 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
22456 (stack_protect_set): Use gen_stack_protect_set_1.
22457 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
22458 (stack_protect_test): Use gen_stack_protect_test_1.
22459 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
22460 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
22461 Remove indirect function.
22462 (*ix86_gen_adjust_stack_and_probe): Ditto.
22463 (*ix86_gen_probe_stack_range): Ditto.
22464 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
22465 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
22466 (ix86_adjust_stack_and_probe_stack_clash): Use
22467 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
22468 (ix86_adjust_stack_and_probe): Ditto.
22469 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
22470 of ix86_gen_probe_stack_range.
22471 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
22472 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
22473 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
22474 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
22475 CODE_FOR_stack_protect_test_{si,di}.
22476 * config/i386/i386-options.c (ix86_option_override_internal):
22477 Do not initialize ix86_gen_allocate_stack_worker,
22478 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
22479
22480 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
22481
22482 * doc/invoke.texi (Link Options): Many editorial changes around
22483 -flinker-output.
22484
22485 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22486
22487 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
22488 pre-Solaris 11 referene and most Studio compiler details.
22489
22490 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
22491
22492 PR target/90530
22493 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
22494 DImode to SImode in floating-point registers on 64-bit target.
22495 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
22496 register_operand in xmpyu patterns.
22497
22498 2019-05-24 Jakub Jelinek <jakub@redhat.com>
22499
22500 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
22501 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
22502 OMP_CLAUSE__REDUCTEMP_.
22503 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22504 OMP_CLAUSE__CONDTEMP_.
22505 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
22506 * tree-pretty-print.c (dump_omp_clause): Likewise.
22507 * tree-nested.c (convert_nonlocal_omp_clauses,
22508 convert_local_omp_clauses): Likewise.
22509 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
22510 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
22511 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
22512 on OMP_FOR.
22513 (gimplify_omp_for): Warn and disable conditional modifier from
22514 lastprivate on loop iterators.
22515 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
22516 member.
22517 * omp-general.c (omp_extract_for_data): Initialize it.
22518 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
22519 member.
22520 (delete_omp_context): Delete it.
22521 (lower_lastprivate_conditional_clauses): New function.
22522 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
22523 handle lastprivate conditional clauses.
22524 (lower_reduction_clauses): Add CLIST argument, emit it into
22525 the critical section if any.
22526 (lower_omp_sections): Adjust lower_lastprivate_clauses and
22527 lower_reduction_clauses callers.
22528 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
22529 to lower_lastprivate_clauses.
22530 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
22531 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
22532 clist into a critical section if not emitted there already by
22533 lower_reduction_clauses.
22534 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
22535 callers.
22536 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
22537 conditional variables.
22538 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
22539 clause is present.
22540 (expand_omp_for_generic, expand_omp_for_static_nochunk,
22541 expand_omp_for_static_chunk): Handle lastprivate conditional.
22542 (expand_omp_for): Handle fd.lastprivate_conditional like
22543 fd.have_reductemp.
22544
22545 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
22546
22547 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
22548 kernel does not exit cleanly.
22549 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
22550
22551 2019-05-24 Jason Merrill <jason@redhat.com>
22552
22553 Revert:
22554 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
22555
22556 2019-05-24 Richard Biener <rguenther@suse.de>
22557
22558 PR testsuite/90607
22559 * tree-loop-distribution.c (struct partition): Add location
22560 member.
22561 (partition_alloc): Initialize all fields.
22562 (generate_memset_builtin): Use the location recorded in the
22563 partition for the generated call.
22564 (generate_memcpy_builtin): Likewise.
22565 (classify_partition): Record the location of a single store
22566 as location for the partition.
22567
22568 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
22569
22570 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
22571 for lo-part.
22572
22573 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
22574
22575 PR target/90588
22576 * common/config/aarch64/aarch64-common.c
22577 (aarch64_rewrite_selected_cpu): Change local temporary variable
22578 type from unsigned long to uint64_t.
22579 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
22580 aarch64_get_extension_string_for_isa_flags): Change declaration to
22581 match new definition by replacing unsigned long with uint64_t.
22582
22583 2019-05-24 Jakub Jelinek <jakub@redhat.com>
22584
22585 PR target/90568
22586 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
22587 gen_attr_type just once instead of 4-7 times. Formatting fixes.
22588 Handle stack_protect_test_<mode> codegen similarly to corresponding
22589 sub instruction.
22590
22591 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
22592
22593 * config/i386/darwin.h: Reject -mfentry*.
22594 * doc/sourcebuild.texi: Document mfentry target support.
22595
22596 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
22597
22598 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
22599 Rename to rs6000_global_entry_point_prologue_needed_p. Return
22600 false for PC-relative functions.
22601 (rs6000_output_function_prologue): Change called function name to
22602 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
22603 name,1" for PC-relative functions.
22604 (rs6000_elf_declare_function_name): Change called function name to
22605 rs6000_global_entry_point_prologue_needed_p.
22606
22607 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
22608
22609 PR target/90552
22610 * config/i386/i386.c (gen_rtx_cost):
22611 Use ix86_tune_cost instead of ix86_cost.
22612
22613 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
22614 Michael Meissner <meissner@linux.ibm.com>
22615 Segher Boessenkool <segher@kernel.crashing.org>
22616
22617 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
22618 OPTION_MASK_PCREL.
22619 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
22620 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
22621 (rs6000_fndecl_pcrel_p): Likewise.
22622 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
22623 error if -mpcrel is requested without -mcpu=future.
22624 (rs6000_opt_masks): Add entry for pcrel.
22625 (rs6000_fndecl_pcrel_p): New function.
22626 (rs6000_pcrel_p): Likewise.
22627 * config/rs6000/rs6000.opt (mpcrel): New option.
22628 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
22629
22630 2019-05-23 Jan Hubicka <jh@suse.cz>
22631 Martin Liska <mliska@suse.cz>
22632
22633 PR tree-optimization/90576
22634 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
22635 poly_int_tree_p.
22636 (aliasing_component_refs_p): Fix three way size compare conditional;
22637 give up earlier in case we can not decide on equivalence.
22638
22639 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
22640 Michael Meissner <meissner@linux.ibm.com>
22641 Segher Boessenkool <segher@kernel.crashing.org>
22642
22643 * config.gcc: Add future cpu.
22644 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
22645 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
22646 #define.
22647 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
22648 (RS6000_CPU): New instantiation for future cpu.
22649 * config/rs6000/rs6000-opts.h (enum processor_type): Add
22650 PROCESSOR_FUTURE.
22651 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
22652 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
22653 * config/rs6000/rs6000-tables.opt: Regenerate.
22654 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
22655 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
22656 (rs6000_machine_from_flags): Handle future cpu.
22657 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
22658 PROCESSOR_POWER9 for now.
22659 (rs6000_adjust_cost): Likewise.
22660 (rs6000_issue_rate): Likewise.
22661 (rs6000_register_move_cost): Likewise.
22662 (rs6000_opt_masks): Add entry for future.
22663 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
22664 (MASK_FUTURE): New #define.
22665 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
22666 * config/rs6000/rs6000.opt (mfuture): New target option.
22667 * doc/invoke.texi (mcpu): Add future cpu.
22668
22669 2019-05-23 Martin Liska <mliska@suse.cz>
22670
22671 PR c++/90587
22672 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
22673 operation points to a temporary (pointed via tree_to_wide_ref)
22674 that is out of scope after the &.
22675
22676 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
22677
22678 PR c++/90592
22679 * doc/extend.texi (Function Names): Add missing word.
22680
22681 2019-05-23 Richard Biener <rguenther@suse.de>
22682
22683 PR tree-optimization/88440
22684 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
22685 at -O[2s]+.
22686 * tree-loop-distribution.c (generate_memset_builtin): Fold the
22687 generated call.
22688 (generate_memcpy_builtin): Likewise.
22689 (distribute_loop): Pass in whether to only distribute patterns.
22690 (prepare_perfect_loop_nest): Also allow size optimization.
22691 (pass_loop_distribution::execute): When optimizing a loop
22692 nest for size allow pattern replacement.
22693
22694 2019-05-23 Jakub Jelinek <jakub@redhat.com>
22695
22696 PR target/90568
22697 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
22698 of xor.
22699
22700 2019-05-23 Martin Liska <mliska@suse.cz>
22701
22702 PR sanitizer/90570
22703 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
22704 expression similarly to gimplify_decl_expr.
22705
22706 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22707
22708 * cse.c (cse_dump_path): s/dump_file/f.
22709
22710 2019-05-22 David Malcolm <dmalcolm@redhat.com>
22711
22712 PR c++/90462
22713 * diagnostic-format-json.cc: Include "selftest.h".
22714 (json_from_expanded_location): Only add "file" key for non-NULL
22715 file strings.
22716 (json_from_location_range): Don't add "start" and "finish"
22717 children if they are UNKNOWN_LOCATION.
22718 (selftest::test_unknown_location): New selftest.
22719 (selftest::test_bad_endpoints): New selftest.
22720 (selftest::diagnostic_format_json_cc_tests): New function.
22721 * json.cc (json::object::get): New function.
22722 (selftest::test_object_get): New selftest.
22723 (selftest::json_cc_tests): Call it.
22724 * json.h (json::object::get): New decl.
22725 * selftest-run-tests.c (selftest::run_tests): Call
22726 selftest::diagnostic_format_json_cc_tests.
22727 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
22728 decl.
22729
22730 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
22731 Andrew Stubbs <amd@codesourcery.com>
22732
22733 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
22734 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
22735 (kernel): Rename to...
22736 (main_kernel): ... this.
22737 (load_image): Load _init_array and _fini_array kernels.
22738 (run): Add argument for kernel to run.
22739 (main): Run init_array_kernel before main_kernel, and
22740 fini_array_kernel after.
22741 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
22742 amdgpu_hsa_kernel attribute on functions.
22743 (gcn_disable_constructors): Delete.
22744 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
22745 * config/gcn/crt0.c (size_t): Define.
22746 (_init_array, _fini_array): New.
22747 (__preinit_array_start, __preinit_array_end,
22748 __init_array_start, __init_array_end,
22749 __fini_array_start, __fini_array_end): Declare weak references.
22750
22751 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
22752
22753 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
22754
22755 2019-05-22 Jason Merrill <jason@redhat.com>
22756
22757 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
22758
22759 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
22760
22761 PR target/88483
22762 * config/i386/i386-options.c (ix86_init_machine_status): Set
22763 stack_frame_required to true.
22764 * config/i386/i386.c (ix86_get_frame_size): New function.
22765 (ix86_frame_pointer_required): Replace get_frame_size with
22766 ix86_get_frame_size.
22767 (ix86_compute_frame_layout): Likewise.
22768 (ix86_find_max_used_stack_alignment): Changed to void. Set
22769 stack_frame_required.
22770 (ix86_finalize_stack_frame_flags): Always call
22771 ix86_find_max_used_stack_alignment. Replace get_frame_size with
22772 ix86_get_frame_size.
22773 * config/i386/i386.h (machine_function): Add stack_frame_required.
22774
22775 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
22776
22777 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
22778
22779 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
22780
22781 * common/config/aarch64/aarch64-common.c
22782 (struct aarch64_option_extension, struct processor_name_to_arch,
22783 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
22784 aarch64_contains_opt,
22785 aarch64_get_extension_string_for_isa_flags): Change type of
22786 variables storing flags to uint64_t.
22787 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
22788 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
22789 * config/aarch64/aarch64.c (struct processor,
22790 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
22791 aarch64_validate_march, aarch64_override_options,
22792 aarch64_option_print, aarch64_handle_attr_isa_flags,
22793 aarch64_declare_function_name, aarch64_start_file): Make flag
22794 variables uint64_t.
22795 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
22796 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
22797 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
22798 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
22799 * config/aarch64/driver-aarch64.c
22800 (struct aarch64_arch_extension, struct aarch64_core_data,
22801 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
22802 flag variables uint64_t.
22803 * doc/invoke.texi: Add documentation for new arguments.
22804
22805 2019-05-22 Richard Biener <rguenther@suse.de>
22806
22807 * alias.c (ao_ref_from_mem): Move stack-slot sharing
22808 rewrite ...
22809 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
22810
22811 2019-05-22 Martin Liska <mliska@suse.cz>
22812
22813 PR lto/90500
22814 * doc/extend.texi: Document the change.
22815
22816 2019-05-22 Richard Biener <rguenther@suse.de>
22817
22818 PR tree-optimization/90450
22819 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
22820 (mem_ref_hasher::equal): Check it.
22821 (mem_ref_alloc): Initialize it.
22822 (gather_mem_refs_stmt): Set it.
22823
22824 2019-05-22 Richard Biener <rguenther@suse.de>
22825
22826 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
22827 Add ABS_EXPR.
22828 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
22829 as ABSU_EXPR.
22830
22831 2019-05-22 Alan Modra <amodra@gmail.com>
22832
22833 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
22834 (ASM_CPU_SPEC): Conditionally add -many.
22835 * config/rs6000/rs6000.c (rs6000_machine): New static var.
22836 (rs6000_machine_from_flags, emit_asm_machine): New functions..
22837 (rs6000_file_start): ..extracted from here, and modified to
22838 test all ISA bits.
22839 (rs6000_output_function_prologue): Emit .machine as necessary.
22840
22841 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
22842
22843 PR middle-end/90553
22844 * ira-lives.c (process_bb_node_lives): Consider defs
22845 for a call insn to be die before the call, not after.
22846
22847 * function.c (assign_parm_setup_block): Raise alignment of
22848 stacked parameter only for STRICT_ALIGNMENT targets.
22849
22850 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
22851
22852 * config/rs6000/constraints.md (define_register_constraint "wz"):
22853 Delete.
22854 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22855 RS6000_CONSTRAINT_wz.
22856 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22857 (rs6000_init_hard_regno_mode_ok): Adjust.
22858 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
22859 * doc/md.texi (Machine Constraints): Adjust.
22860
22861 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
22862
22863 * config/rs6000/constraints.md (define_register_constraint "wl"):
22864 Delete.
22865 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22866 RS6000_CONSTRAINT_wl.
22867 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22868 (rs6000_init_hard_regno_mode_ok): Adjust.
22869 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
22870 * doc/md.texi (Machine Constraints): Adjust.
22871
22872 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
22873
22874 * config/rs6000/constraints.md (define_register_constraint "wm"):
22875 Delete.
22876 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22877 RS6000_CONSTRAINT_wm.
22878 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22879 (rs6000_init_hard_regno_mode_ok): Adjust.
22880 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
22881 * doc/md.texi (Machine Constraints): Adjust.
22882
22883 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
22884
22885 * config/rs6000/constraints.md (define_register_constraint "wk"):
22886 Delete.
22887 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22888 RS6000_CONSTRAINT_wk.
22889 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22890 (rs6000_init_hard_regno_mode_ok): Adjust.
22891 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
22892 * doc/md.texi (Machine Constraints): Adjust.
22893
22894 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
22895
22896 * config/rs6000/constraints.md (define_register_constraint "wj"):
22897 Delete.
22898 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22899 RS6000_CONSTRAINT_wj.
22900 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22901 (rs6000_init_hard_regno_mode_ok): Adjust.
22902 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
22903 (VS_64dm): Delete.
22904 * config/rs6000/vsx.md: Ditto.
22905 * doc/md.texi (Machine Constraints): Adjust.
22906
22907 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
22908
22909 * config/rs6000/constraints.md (define_register_constraint "wh"):
22910 Delete.
22911 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22912 RS6000_CONSTRAINT_wh.
22913 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22914 (rs6000_init_hard_regno_mode_ok): Adjust.
22915 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
22916 * doc/md.texi (Machine Constraints): Adjust.
22917
22918 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
22919
22920 PR target/90547
22921 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
22922 Avoid calling gen_lowpart with CONST operand.
22923
22924 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
22925
22926 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
22927 field template_last_to_copy.
22928 (ssa_create_duplicates): Set it, and use it. Attempt to
22929 preserve more debug stmts.
22930
22931 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
22932
22933 * config/i386/sse.md (VF1_AVX2): New mode iterator.
22934 (signbit<mode>2): New expander
22935
22936 2019-05-21 James Clarke <jrtc27@jrtc27.com>
22937
22938 PR bootstrap/87338
22939 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
22940 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
22941
22942 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
22943
22944 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
22945 %ebx and %ecx bafore calling cpuid with leaf 1 or
22946 non-constant leaf argument.
22947
22948 2019-05-21 Alan Modra <amodra@gmail.com>
22949
22950 PR target/90545
22951 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
22952 power9 direct move cost.
22953
22954 2019-05-21 Richard Biener <rguenther@suse.de>
22955
22956 PR middle-end/90510
22957 * fold-const.c (fold_read_from_vector): New function.
22958 * fold-const.h (fold_read_from_vector): Declare.
22959 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
22960 single-element insert permutations. Canonicalize selector
22961 further and fix issue with last commit.
22962
22963 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
22964
22965 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
22966 parameter with default value false to declaration.
22967 (split_edges_for_insertion): New inline function. Wrapper for
22968 split_critical_edges with for_edge_insertion_p = true.
22969 * tree-cfg.c (split_critical_edges): Don't split non-critical
22970 edges if for_edge_insertion_p is false. Fix whitespace.
22971 * tree-ssa-pre.c (pass_pre::execute): Call
22972 split_edges_for_insertion instead of split_critical_edges.
22973 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
22974 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
22975 (pass_data_sink_code): Update function name in the comment.
22976
22977 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
22978
22979 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
22980 around is_value_included_in that knows how to handle BIT_AND_EXPR.
22981 (is_pred_expr_subset_of): Use the new function. Handle more cases where
22982 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
22983 positives.
22984
22985 2019-05-21 Martin Liska <mliska@suse.cz>
22986
22987 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
22988 an extra newline.
22989 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
22990 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
22991 vec_lvsr.
22992 * config/rs6000/rs6000.c (rs6000_option_override_internal):
22993 Quote a C type.
22994 (rs6000_function_arg): Likewise.
22995 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
22996 (rs6000_expand_ternop_builtin): Use interval syntax.
22997 (get_element_number): Likewise.
22998 (altivec_expand_builtin): Likewise.
22999 (rs6000_get_function_versions_dispatcher): Quote target_clones.
23000
23001 2019-05-20 Jakub Jelinek <jakub@redhat.com>
23002
23003 PR c++/59813
23004 PR target/90418
23005 * function.h (struct function): Add calls_eh_return member.
23006 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
23007 gimplifying __builtin_eh_return call.
23008 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
23009 to cfun.
23010 (expand_call_inline): Or in src_cfun->calls_eh_return into
23011 dst_cfun->calls_eh_return.
23012 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
23013 cfun->calls_eh_return.
23014 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
23015 * lto-streamer-out.c (output_struct_function_base): Write
23016 calls_eh_return.
23017
23018 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
23019
23020 PR rtl-optimization/43147
23021 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
23022 IX86_BUILTIN_SHUFPD.
23023
23024 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
23025
23026 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
23027 (refs_may_alias_p_1): ... here; update stats.
23028 (refs_may_alias_p): Do not update stats here.
23029
23030 2019-05-20 Richard Biener <rguenther@suse.de>
23031
23032 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
23033 doesn't produce pointers.
23034 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
23035 the first operand points to.
23036
23037 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
23038
23039 * tree-ssa-alias.c (compare_sizes): New function.
23040 (sompare_type_sizes): New function
23041 (aliasing_component_refs_p): Use it.
23042 (indirect_ref_may_alias_decl_p): Likewise.
23043
23044 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23045
23046 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
23047
23048 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23049
23050 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
23051 (LIBLSAN_EARLY_SPEC): Likewise.
23052 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
23053
23054 2019-05-20 Martin Liska <mliska@suse.cz>
23055
23056 * config/i386/i386.c (ix86_libc_has_fast_function):
23057 Add ATTRIBUTE_UNUSED for the argument.
23058
23059 2019-05-20 Richard Biener <rguenther@suse.de>
23060
23061 * gimple-match-head.c: Include vec-perm-indices.h.
23062 * generic-match-head.c: Likewise.
23063 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
23064 is included.
23065 * fold-const.c (fold_vec_perm): Export.
23066 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
23067 (match.pd): ...here.
23068
23069 2019-05-20 Jakub Jelinek <jakub@redhat.com>
23070
23071 * cfgloop.h (struct loop): Add simdlen member.
23072 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
23073 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
23074 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
23075 as new argument to autovectorize_vector_sizes target hook. If
23076 loop->simdlen, pick up vector size where the vectorization factor
23077 is equal to loop->simd, and if there is none, fall back to the first
23078 successful one.
23079 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
23080 caller.
23081 * omp-low.c (omp_clause_aligned_alignment): Likewise.
23082 * omp-general.c (omp_max_vf): Likewise.
23083 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
23084 * tree-vect-slp.c (vect_slp_bb): Likewise.
23085 * target.def (autovectorize_vector_sizes): Add ALL argument and
23086 document it.
23087 * doc/tm.texi: Adjust documentation.
23088 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
23089 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
23090 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
23091 bool argument.
23092 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
23093 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
23094 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
23095 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
23096 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
23097 preferred vector size is not 512-bit or 256-bit, just put those
23098 unpreferred ones last.
23099
23100 2019-05-20 Martin Liska <mliska@suse.cz>
23101
23102 * targhooks.c (default_libc_has_fast_function): New function.
23103 * targhooks.h (default_libc_has_fast_function): Likewise.
23104
23105 2019-05-20 Martin Liska <mliska@suse.cz>
23106
23107 PR middle-end/90263
23108 * builtins.c (expand_builtin_memory_copy_args): When having a
23109 target with fast mempcpy implementation do now use memcpy.
23110 * config/i386/i386.c (ix86_libc_has_fast_function): New.
23111 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
23112 * doc/tm.texi: Likewise.
23113 * doc/tm.texi.in: Likewise.
23114 * target.def:
23115 * expr.c (emit_block_move_hints): Add 2 new arguments.
23116 * expr.h (emit_block_move_hints): Bail out when libcall
23117 to memcpy would be used.
23118
23119 2019-05-20 Martin Liska <mliska@suse.cz>
23120
23121 * profile-count.c: Add vertical spacing in order
23122 to separate functions.
23123 * profile-count.h: Likewise.
23124
23125 2019-05-20 Martin Liska <mliska@suse.cz>
23126
23127 * profile-count.h: Do not use full qualified
23128 names if possible.
23129 * profile-count.c (profile_count::to_frequency): Likewise.
23130
23131 2019-05-20 Martin Liska <mliska@suse.cz>
23132
23133 * profile-count.h (enum profile_quality): Use capital letters
23134 for enum value names. Use the adjusted names.
23135 * profile-count.c: Use the adjusted names.
23136
23137 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23138
23139 * config/rs6000/constraints.md (define_register_constraint "wH"):
23140 Delete.
23141 (define_register_constraint "wI"): Delete.
23142 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23143 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
23144 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23145 (rs6000_init_hard_regno_mode_ok): Adjust.
23146 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
23147 resp. "d", or with "wa" as appropriate, all with "p8v".
23148 * config/rs6000/vsx.md: Ditto.
23149 * doc/md.texi (Machine Constraints): Adjust.
23150
23151 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23152
23153 * config/rs6000/constraints.md (define_register_constraint "wy"):
23154 Delete.
23155 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23156 RS6000_CONSTRAINT_wy.
23157 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23158 (rs6000_init_hard_regno_mode_ok): Adjust.
23159 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
23160 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
23161 (define_mode_attr Fisa): New.
23162 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
23163 * doc/md.texi (Machine Constraints): Adjust.
23164
23165 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23166
23167 * config/rs6000/constraints.md (define_register_constraint "wu"):
23168 Delete.
23169 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23170 RS6000_CONSTRAINT_wu.
23171 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23172 (rs6000_init_hard_regno_mode_ok): Adjust.
23173 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
23174 both with "p8v".
23175 (define_mode_attr Fa): Delete.
23176 * config/rs6000/vsx.md: Ditto.
23177 * doc/md.texi (Machine Constraints): Adjust.
23178
23179 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23180
23181 * config/rs6000/constraints.md (define_register_constraint "wJ"):
23182 Delete.
23183 (define_register_constraint "wK"): Delete.
23184 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23185 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
23186 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23187 (rs6000_init_hard_regno_mode_ok): Adjust.
23188 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
23189 Replace "wK" constraint by "wH" with "p9v".
23190 * config/rs6000/vsx.md: Ditto.
23191 * doc/md.texi (Machine Constraints): Adjust.
23192
23193 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23194
23195 * config/rs6000/constraints.md (define_register_constraint "wb"):
23196 Delete.
23197 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23198 RS6000_CONSTRAINT_wb.
23199 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23200 (rs6000_init_hard_regno_mode_ok): Adjust.
23201 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
23202 * config/rs6000/vsx.md: Ditto.
23203 * doc/md.texi (Machine Constraints): Adjust.
23204
23205 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23206
23207 * config/rs6000/constraints.md (define_register_constraint "wo"):
23208 Delete.
23209 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23210 RS6000_CONSTRAINT_wo.
23211 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23212 (rs6000_init_hard_regno_mode_ok): Adjust.
23213 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
23214 * config/rs6000/altivec.md: Ditto.
23215 * doc/md.texi (Machine Constraints): Adjust.
23216
23217 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
23218
23219 * config/darwin-c.c (darwin_register_objc_includes): Do not
23220 prepend the sysroot when building gnu-runtime header search
23221 paths.
23222
23223 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
23224
23225 * config/darwin.c (darwin_file_end): Use switch_to_section ()
23226 instead of direct output of the asm.
23227
23228 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
23229
23230 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
23231 argument to be type bool (was int before).
23232 (rs6000_emit_epilogue): Simplify some code. Declare some variables
23233 at first use. Use type bool for some variables. Fix a theoretical
23234 eh_return bug for svr4.
23235
23236 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
23237
23238 * config/rs6000/rs6000.md (isa): New attribute.
23239 (enabled): New attribute.
23240
23241 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
23242
23243 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
23244 assemble_start_function and assemble_end_function.
23245
23246 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
23247
23248 PR middle-end/89433
23249 * omp-general.c (oacc_verify_routine_clauses): Change formal
23250 parameters. Add checking if already marked with an OpenACC
23251 'routine' directive. Adjust all users.
23252
23253 PR middle-end/89433
23254 * omp-general.c (oacc_build_routine_dims): Move some of its
23255 processing into...
23256 (oacc_verify_routine_clauses): ... this new function.
23257 * omp-general.h (oacc_verify_routine_clauses): New prototype.
23258
23259 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
23260
23261 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
23262 formating of picbase labels to match other ports.
23263
23264 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
23265
23266 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
23267 in the generated code.
23268
23269 2019-05-16 Martin Sebor <msebor@redhat.com>
23270
23271 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
23272 identifiers, keywords, operators, and types in diagnostics. Correct
23273 quoting, spelling, and sentence capitalization issues.
23274 (expand_builtin_atomic_is_lock_free): Same.
23275 (fold_builtin_next_arg): Same.
23276 * cfgexpand.c (expand_one_var): Same.
23277 (tree_conflicts_with_clobbers_p): Same.
23278 (expand_asm_stmt): Same.
23279 (verify_loop_structure): Same.
23280 * cgraphunit.c (process_function_and_variable_attributes): Same.
23281 * collect-utils.c (collect_execute): Same.
23282 * collect2.c (maybe_run_lto_and_relink): Same.
23283 (is_lto_object_file): Same.
23284 (scan_prog_file): Same.
23285 * convert.c (convert_to_real_1): Same.
23286 * dwarf2out.c (dwarf2out_begin_prologue): Same.
23287 * except.c (verify_eh_tree): Same.
23288 * gcc.c (execute): Same.
23289 (eval_spec_function): Same.
23290 (run_attempt): Same.
23291 (driver::set_up_specs): Same.
23292 (compare_debug_auxbase_opt_spec_function): Same.
23293 * gcov-tool.c (unlink_gcda_file): Same.
23294 (do_merge): Same.
23295 (do_rewrite): Same.
23296 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
23297 * gimplify.c (gimplify_asm_expr): Same.
23298 (gimplify_adjust_omp_clauses): Same.
23299 * hsa-gen.c (gen_hsa_addr_insns): Same.
23300 (gen_hsa_insns_for_load): Same.
23301 (gen_hsa_cmp_insn_from_gimple): Same.
23302 (gen_hsa_insns_for_operation_assignment): Same.
23303 (gen_get_level): Same.
23304 (gen_hsa_alloca): Same.
23305 (omp_simple_builtin::generate): Same.
23306 (gen_hsa_atomic_for_builtin): Same.
23307 (gen_hsa_insns_for_call): Same.
23308 * input.c (dump_location_info): Same.
23309 * ipa-devirt.c (compare_virtual_tables): Same.
23310 * ira.c (ira_setup_eliminable_regset): Same.
23311 * lra-assigns.c (lra_assign): Same.
23312 * lra-constraints.c (lra_constraints): Same.
23313 * lto-streamer-in.c (lto_input_mode_table): Same.
23314 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
23315 (merge_and_complain): Same.
23316 (compile_offload_image): Same.
23317 (compile_images_for_offload_targets): Same.
23318 (debug_objcopy): Same.
23319 (run_gcc): Same.
23320 (main): Same.
23321 * opts.c (print_specific_help): Same.
23322 (parse_no_sanitize_attribute): Same.
23323 (print_help): Same.
23324 (handle_param): Same.
23325 * plugin.c (add_new_plugin): Same.
23326 (parse_plugin_arg_opt): Same.
23327 (try_init_one_plugin): Same.
23328 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
23329 operators, and types in diagnostics. Correct quoting and spelling
23330 issues.
23331 * read-rtl-function.c (parse_edge_flag_token): Same.
23332 (function_reader::parse_enum_value): Same.
23333 * reg-stack.c (check_asm_stack_operands): Same.
23334 * regcprop.c (validate_value_data): Same.
23335 * sched-rgn.c (make_pass_sched_fusion): Same.
23336 * stmt.c (check_unique_operand_names): Same.
23337 * targhooks.c (default_target_option_pragma_parse): Same.
23338 * tlink.c (recompile_files): Same.
23339 * toplev.c (process_options): Same.
23340 (do_compile): Same.
23341 * trans-mem.c (diagnose_tm_1): Same.
23342 (ipa_tm_scan_irr_block): Same.
23343 (ipa_tm_diagnose_transaction): Same.
23344 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
23345 format a tree code name in a diagnostic.
23346 (verify_types_in_gimple_min_lval): Same.
23347 (verify_types_in_gimple_reference): Same.
23348 (verify_gimple_call): Same.
23349 (verify_gimple_assign_unary): Same.
23350 (verify_gimple_assign_binary): Same.
23351 (verify_gimple_assign_ternary): Same.
23352 (verify_gimple_assign_single): Same.
23353 (verify_gimple_switch): Same.
23354 (verify_gimple_label): Same.
23355 (verify_gimple_phi): Same.
23356 (verify_gimple_in_seq): Same.
23357 (verify_eh_throw_stmt_node): Same.
23358 (collect_subblocks): Same.
23359 (gimple_verify_flow_info): Same.
23360 (do_warn_unused_result): Same.
23361 * tree-inline.c (expand_call_inline): Same.
23362 * tree-into-ssa.c (update_ssa): Same.
23363 * tree.c (tree_int_cst_elt_check_failed): Same.
23364 (tree_vec_elt_check_failed): Same.
23365 (omp_clause_operand_check_failed): Same.
23366 (verify_type_variant): Same.
23367 (verify_type): Same.
23368 * value-prof.c (verify_histograms): Same.
23369 * varasm.c (assemble_start_function): Same.
23370
23371 2019-05-16 Martin Sebor <msebor@redhat.com>
23372
23373 * config/i386/i386-expand.c (get_element_number): Quote keywords
23374 and other internal names in diagnostics. Adjust other diagnostic
23375 formatting issues noted by -Wformat-diag.
23376 * config/i386/i386-features.c
23377 (ix86_mangle_function_version_assembler_name): Same.
23378 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
23379 * config/i386/i386.c (ix86_function_type_abi): Same.
23380 (ix86_function_ms_hook_prologue): Same.
23381 (classify_argument): Same.
23382 (ix86_expand_prologue): Same.
23383 (ix86_md_asm_adjust): Same.
23384 (ix86_memmodel_check): Same.
23385
23386 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
23387
23388 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
23389 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
23390 and fpxx modes.
23391
23392 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
23393
23394 PR target/90497
23395 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
23396 intrinsics without SSE/SSE2/SSSE3.
23397 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
23398 check.
23399 (*mmx_uavgv8qi3): Likewise.
23400
23401 2019-05-17 Richard Biener <rguenther@suse.de>
23402
23403 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
23404 VEC_PERM_EXPR as __VEC_PERM with -gimple.
23405
23406 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
23407
23408 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
23409 vec_sldw insn pattern.
23410
23411 2019-05-17 Richard Biener <rguenther@suse.de>
23412
23413 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
23414
23415 2019-05-17 Martin Liska <mliska@suse.cz>
23416
23417 PR driver/90496
23418 * toplev.c (output_stack_usage): With LTO and sanitizer it
23419 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
23420 has no file location.
23421
23422 2019-05-16 Jakub Jelinek <jakub@redhat.com>
23423
23424 PR c++/90484
23425 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
23426 sz0 is equal to sz1, instead return false in that case.
23427
23428 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
23429 has non-constant expression, force sctx.lane and use two
23430 argument IFN_GOMP_SIMD_LANE instead of single argument.
23431 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
23432 two argument IFN_GOMP_SIMD_LANE without lhs.
23433 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
23434 member.
23435 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
23436 Define.
23437 (LOOP_REQUIRES_VERSIONING): Or in
23438 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
23439 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23440 simd_if_cond.
23441 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
23442 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
23443 from simd if clause if needed.
23444
23445 2019-05-16 Richard Biener <rguenther@suse.de>
23446
23447 * tree-affine.c (expr_to_aff_combination): New function split
23448 out from...
23449 (tree_to_aff_combination): ... here.
23450 (aff_combination_expand): Avoid building a GENERIC tree.
23451
23452 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
23453
23454 * cgraphunit.c (cgraph_node::expand_thunk): Remove
23455 assemble_start_function and assemble_end_function calls.
23456 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
23457 assemble_start_function and assemble_end_function.
23458 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
23459 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
23460 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
23461 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
23462 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
23463 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
23464 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
23465 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
23466 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
23467 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
23468 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
23469 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
23470 Likewise.
23471 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
23472 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
23473 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
23474 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
23475 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
23476 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
23477 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
23478 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
23479 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
23480 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
23481 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
23482 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
23483 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
23484 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
23485 Likewise.
23486 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
23487 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
23488 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
23489
23490 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
23491
23492 * tree-ssa-alias.c (alias_stats): Add
23493 aliasing_component_refs_p_may_alias and
23494 aliasing_component_refs_p_no_alias.
23495 (dump_alias_stats): Print aliasing_component_refs_p stats.
23496 (aliasing_component_refs_p): Update stats.
23497
23498 2019-05-16 Martin Liska <mliska@suse.cz>
23499
23500 PR lto/90500
23501 * multiple_target.c (expand_target_clones): Do not allow
23502 target_clones being used with a symbol that is an alias.
23503
23504 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
23505
23506 PR tree-optimization/90394
23507 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
23508 positives rather than ICE for cases where (code2 == NE_EXPR
23509 && code1 == BIT_AND_EXPR).
23510
23511 2019-05-16 Jakub Jelinek <jakub@redhat.com>
23512
23513 PR fortran/90329
23514 * tree-core.h (struct tree_decl_common): Document
23515 decl_nonshareable_flag for PARM_DECLs.
23516 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
23517 * calls.c (expand_call): Don't try tail call if caller
23518 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
23519 passed on the stack and callee needs to pass any arguments on the
23520 stack.
23521 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
23522 else if instead of series of mutually exclusive ifs. Handle
23523 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
23524 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
23525
23526 * lto-streamer.h (LTO_major_version): Bump to 9.
23527
23528 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
23529
23530 PR tree-optimization/90106
23531 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
23532 new parameter as new internal function call, also move it to new
23533 basic block.
23534 (use_internal_fn): Pass internal function call to
23535 shrink_wrap_one_built_in_call_with_conds.
23536
23537 2019-05-15 Jakub Jelinek <jakub@redhat.com>
23538
23539 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
23540 max_vf to 1.
23541 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
23542 safelen_int and set loop->dont_vectorize.
23543
23544 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23545
23546 PR target/89021
23547 * config/i386/i386-builtin.def: Enable MMX intrinsics with
23548 SSE/SSE2/SSSE3.
23549 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
23550 Likewise.
23551 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
23552 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
23553 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
23554 is defined.
23555
23556 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23557
23558 PR target/89021
23559 * config/i386/mmx.md (*vec_dupv2sf): Changed to
23560 define_insn_and_split to support SSE emulation.
23561 (*vec_extractv2sf_0): Likewise.
23562 (*vec_extractv2sf_1): Likewise.
23563 (*vec_extractv2si_0): Likewise.
23564 (*vec_extractv2si_1): Likewise.
23565 (*vec_extractv2si_zext_mem): Likewise.
23566 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
23567 (vec_extractv2sf_1 splitter): Likewise.
23568 (vec_extractv2sfsf): Likewise.
23569 (vec_setv2si): Likewise.
23570 (vec_extractv2si_1 splitter): Likewise.
23571 (vec_extractv2sisi): Likewise.
23572 (vec_setv4hi): Likewise.
23573 (vec_extractv4hihi): Likewise.
23574 (vec_setv8qi): Likewise.
23575 (vec_extractv8qiqi): Likewise.
23576 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
23577 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
23578 (vec_extractv2sisi): Likewise.
23579 (vec_extractv4hihi): Likewise.
23580 (vec_extractv8qiqi): Likewise.
23581 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
23582 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
23583 (vec_initv2sisi): Likewise.
23584 (vec_initv4hihi): Likewise.
23585 (vec_initv8qiqi): Likewise.
23586 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
23587 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
23588 (vec_setv4hi): Likewise.
23589 (vec_setv8qi): Likewise.
23590
23591 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23592
23593 PR target/89021
23594 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
23595 TARGET_MMX_WITH_SSE.
23596 (MMXMODE:*mov<mode>_internal): Likewise.
23597 (MMXMODE:movmisalign<mode>): Likewise.
23598
23599 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
23600
23601 PR target/89021
23602 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
23603 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
23604 (sse2_cvtpd2pi): Ditto.
23605 (sse2_cvttpd2pi): Ditto.
23606 (*vec_concatv2sf_sse4_1): Ditto.
23607 (*vec_concatv2sf_sse): Ditto.
23608 (*vec_concatv2si_sse4_1): Ditto.
23609 (*vec_concatv2si): Ditto.
23610 (*vec_concatv4si_0): Ditto.
23611 (*vec_concatv2di_0): Ditto.
23612
23613 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23614
23615 PR target/89021
23616 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
23617
23618 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23619
23620 PR target/89021
23621 * config/i386/sse.md (ssse3_palignrdi): Changed to
23622 define_insn_and_split to support SSE emulation.
23623
23624 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23625
23626 PR target/89021
23627 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
23628
23629 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23630
23631 PR target/89021
23632 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
23633 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
23634 SSE emulation.
23635
23636 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23637
23638 PR target/89021
23639 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
23640 or TARGET_MMX_WITH_SSE.
23641 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
23642
23643 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23644
23645 PR target/89021
23646 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
23647
23648 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23649
23650 PR target/89021
23651 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
23652 Changed to define_insn_and_split to support SSE emulation.
23653
23654 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23655
23656 PR target/89021
23657 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
23658 Changed to define_insn_and_split to support SSE emulation.
23659
23660 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23661
23662 PR target/89021
23663 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
23664 (*mmx_<emms>): This.
23665 (mmx_<emms>): New expander.
23666
23667 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23668
23669 PR target/89021
23670 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
23671 support.
23672 (*sse2_umulv1siv1di3): Add SSE2 emulation.
23673
23674 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23675
23676 PR target/89021
23677 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
23678
23679 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23680
23681 PR target/89021
23682 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
23683
23684 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23685
23686 PR target/89021
23687 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
23688 TARGET_MMX_WITH_SSE.
23689 (*mmx_uavgv4hi3): Add SSE emulation.
23690
23691 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23692
23693 PR target/89021
23694 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
23695 and TARGET_MMX_WITH_SSE.
23696 (*mmx_uavgv8qi3): Add SSE emulation.
23697
23698 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23699
23700 PR target/89021
23701 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
23702 maskmovdqu for __MMX_WITH_SSE__.
23703
23704 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23705
23706 PR target/89021
23707 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
23708 TARGET_MMX and TARGET_MMX_WITH_SSE.
23709 (*mmx_umulv4hi3_highpart): Add SSE emulation.
23710
23711 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23712
23713 PR target/89021
23714 * config/i386/mmx.md (mmx_pmovmskb): Changed to
23715 define_insn_and_split to support SSE emulation.
23716
23717 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23718
23719 PR target/89021
23720 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
23721 and TARGET_MMX_WITH_SSE.
23722 (mmx_<code>v8qi3): Likewise.
23723 (smaxmin:<code>v4hi3): New.
23724 (umaxmin:<code>v8qi3): Likewise.
23725 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
23726 (umaxmin:*mmx_<code>v8qi3): Likewise.
23727
23728 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23729
23730 PR target/89021
23731 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
23732 TARGET_MMX_WITH_SSE.
23733 (*mmx_pinsrw): Add SSE emulation.
23734
23735 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23736
23737 PR target/89021
23738 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
23739
23740 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23741
23742 PR target/89021
23743 * config/i386/sse.md (sse_cvtpi2ps): Changed to
23744 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
23745 SSE emulation.
23746
23747 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23748
23749 PR target/89021
23750 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
23751 (sse_cvttps2pi): Likewise.
23752
23753 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23754
23755 PR target/89021
23756 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
23757 TARGET_MMX_WITH_SSE.
23758 (mmx_pshufw_1): Add SSE emulation.
23759 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
23760 TARGET_MMX_WITH_SSE to support SSE emulation.
23761
23762 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23763
23764 PR target/89021
23765 * config/i386/constraints.md (Yw): New constraint.
23766 * config/i386/mmx.md (*vec_dupv2si): Changed to
23767 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
23768 support SSE emulation.
23769
23770 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23771
23772 PR target/89021
23773 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
23774 TARGET_MMX_WITH_SSE.
23775 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
23776 support.
23777 (mmx_gt<mode>3): Likewise.
23778
23779 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23780
23781 PR target/89021
23782 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
23783 TARGET_MMX_WITH_SSE. Add SSE support.
23784
23785 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23786
23787 PR target/89021
23788 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
23789 TARGET_MMX_WITH_SSE.
23790 (any_logic:<code><mode>3): New.
23791 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
23792 Add SSE support.
23793
23794 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23795
23796 PR target/89021
23797 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
23798 TARGET_MMX_WITH_SSE. Add SSE emulation.
23799 (mmx_<shift_insn><mode>3): Likewise.
23800 (ashr<mode>3): New.
23801 (<shift_insn><mode>3): Likewise.
23802
23803 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23804
23805 PR target/89021
23806 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
23807 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
23808
23809 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23810
23811 PR target/89021
23812 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
23813 TARGET_MMX_WITH_SSE.
23814 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
23815 SSE support.
23816
23817 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23818
23819 PR target/89021
23820 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
23821 TARGET_MMX_WITH_SSE.
23822 (mulv4hi3): New.
23823 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
23824 support.
23825
23826 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23827
23828 PR target/89021
23829 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
23830 (plusminus:mmx_<plusminus_insn><mode>3): Check
23831 TARGET_MMX_WITH_SSE.
23832 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
23833 (<plusminus_insn><mode>3): New.
23834 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
23835 (*mmx_<plusminus_insn><mode>3): Likewise.
23836
23837 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23838
23839 PR target/89021
23840 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
23841 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
23842 prototype.
23843 * config/i386/mmx.m (mmx_punpckhbw): Changed to
23844 define_insn_and_split to support SSE emulation.
23845 (mmx_punpcklbw): Likewise.
23846 (mmx_punpckhwd): Likewise.
23847 (mmx_punpcklwd): Likewise.
23848 (mmx_punpckhdq): Likewise.
23849 (mmx_punpckldq): Likewise.
23850
23851 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23852 Uros Bizjak <ubizjak@gmail.com>
23853
23854 PR target/89021
23855 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
23856 New function.
23857 (ix86_split_mmx_pack): Likewise.
23858 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
23859 New prototype.
23860 (ix86_split_mmx_pack): Likewise.
23861 * config/i386/i386.md (mmx_isa): New.
23862 (enabled): Also check mmx_isa.
23863 * config/i386/mmx.md (any_s_truncate): New code iterator.
23864 (s_trunsuffix): New code attr.
23865 (mmx_packsswb): Removed.
23866 (mmx_packssdw): Likewise.
23867 (mmx_packuswb): Likewise.
23868 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
23869 MMX packsswb/packuswb with SSE2.
23870 (mmx_packssdw): Likewise.
23871 * config/i386/predicates.md (register_mmxmem_operand): New.
23872
23873 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23874
23875 PR target/89021
23876 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23877 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
23878 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
23879 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
23880 (ix86_vector_mode_supported_p): Likewise.
23881 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
23882
23883 2019-05-15 Martin Liska <mliska@suse.cz>
23884
23885 PR middle-end/90478
23886 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
23887 Check for overflow.
23888
23889 2019-05-15 Richard Biener <rguenther@suse.de>
23890
23891 * tree-into-ssa.c (pass_build_ssa::execute): Run
23892 update_address_taken before going into SSA.
23893
23894 2019-05-15 Richard Biener <rguenther@suse.de>
23895
23896 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
23897 as __BIT_FIELD_REF with type with -gimple.
23898
23899 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
23900
23901 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
23902 semantically equivalent branches (left over after prior refactorings).
23903
23904 2019-05-15 Richard Biener <rguenther@suse.de>
23905
23906 PR tree-optimization/88828
23907 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
23908 bogus check.
23909
23910 2019-05-14 Richard Biener <rguenther@suse.de>
23911
23912 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
23913 as __VIEW_CONVERT with -gimple.
23914
23915 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
23916
23917 PR target/82920
23918 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
23919 Darwin.
23920
23921 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
23922
23923 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
23924 define_split to become a define_insn_and_split.
23925
23926 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
23927
23928 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
23929 arguments.
23930 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
23931 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
23932 (sibcall_epilogue): Adjust.
23933 (epilogue): Adjust.
23934
23935 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23936
23937 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
23938 to unsupported ones.
23939 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
23940 * config.host: Likewise.
23941 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
23942 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
23943 __svr4__]: Remove "brand" fallback.
23944 [!KSTAT_DATA_STRING]: Remove.
23945 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
23946 to *-*-solaris2*.
23947 (comdat_group): Likewise.
23948 (set_have_as_tls): Likewise.
23949 (gcc_cv_target_dl_iterate_phdr): Likewise.
23950 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
23951 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
23952 * configure: Regenerate.
23953 * doc/install.texi: Simplify Solaris target triplets.
23954 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
23955 (Specific, *-*-solaris2*): Document Solaris 10 removal.
23956 Remove Solaris 10 references.
23957 Remove obsolete Solaris bug reference.
23958 (Specific, sparc-sun-solaris2.10): Remove.
23959
23960 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
23961
23962 * config/i386/i386.md (any_div): New code iterator.
23963 (paired_mod): New code attribute.
23964 (sgnprefix): Handle DIV and UDIV RTXes.
23965 (u): Ditto.
23966 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
23967 and udivmod<mode>4 patterns using any_div code iterator.
23968 (divmod splitters): Macroize splitters using any_div code iterator.
23969 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
23970 (*udivmodsi4_pow2_zext_2): Ditto.
23971 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
23972 and *udivmod<mode>4_noext patterns using any_div code iterator.
23973 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
23974 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
23975 patterns using any_div code iterator.
23976 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
23977 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
23978 patterns using any_div code iterator.
23979 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
23980 udivmodhiqi3 patterns using any_extend code iterator.
23981
23982 2019-05-14 Richard Biener <rguenther@suse.de>
23983 H.J. Lu <hongjiu.lu@intel.com>
23984
23985 PR tree-optimization/88828
23986 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
23987 permuting in a single non-constant element not extracted
23988 from a vector.
23989
23990 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
23991
23992 * internal-fn.def (SIGNBIT): New.
23993 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
23994 defined.
23995 (signbitv4sf2): Likewise.
23996
23997 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
23998
23999 PR target/90357
24000 * config/mips/mips.c (mips_split_move): Skip forward SRC into
24001 next insn when the SRC reg is dead.
24002
24003 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
24004
24005 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
24006 (alloc_cand_and_find_basis): Ditto.
24007 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
24008 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
24009 (create_add_imm_cand, slsr_process_cast): Ditto.
24010 (slsr_process_copy, replace_mult_candidate): Ditto.
24011 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
24012 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
24013 (pass_strength_reduction::execute): Init the first NULL element.
24014
24015 2019-05-13 Nathan Sidwell <nathan@acm.org>
24016
24017 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
24018 (run_attempt): Reformat line break.
24019
24020 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
24021
24022 PR target/90418
24023 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
24024 data registers in sibcall epilogues.
24025 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
24026
24027 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
24028
24029 PR target/89221
24030 * configure.ac (--enable-frame-pointer):
24031 Disable by default for cygwin and mingw.
24032 * configure: Regenerate.
24033
24034 2019-05-13 Nathan Sidwell <nathan@acm.org>
24035
24036 * dwarf2out.c (breakout_comdat_types): Move comment to correct
24037 piece of code.
24038 (const_ok_for_output_1): Balance parens around #if/#else/#endif
24039 (gen_member_die): Move abstract origin check earlier. Only VARs
24040 can be static_inline_p. Simplify splicing control flow.
24041
24042 2019-05-13 Richard Biener <rguenther@suse.de>
24043
24044 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
24045 VIEW_CONVERT_EXPR.
24046 (vect_build_slp_tree_1): Likewise.
24047
24048 2019-05-13 Richard Biener <rguenther@suse.de>
24049
24050 PR tree-optimization/90402
24051 * tree-if-conv.c (tree_if_conversion): Value number only
24052 the loop body by making the latch an exit of the region
24053 as well.
24054 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
24055 processing PHIs.
24056 (do_rpo_vn): Deal with multiple edges into the entry block
24057 that are not backedges inside the region by skipping PHIs
24058 of the entry block.
24059
24060 2019-05-13 Richard Biener <rguenther@suse.de>
24061
24062 PR tree-optimization/90316
24063 * tree-ssa-pre.c (insert_aux): Fold into ...
24064 (insert): ... this function. Use a RPO walk to reduce the
24065 number of required iterations.
24066
24067 2019-05-13 Martin Liska <mliska@suse.cz>
24068
24069 PR tree-optimization/90416
24070 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
24071 string instead of passing the second part as va_arg argument.
24072
24073 2019-05-13 Martin Liska <mliska@suse.cz>
24074
24075 PR gcov-profile/90380
24076 * gcov.c (handle_cycle): Do not support zero cycle count,
24077 it should not be possible.
24078 (path_contains_zero_cycle_arc): New function.
24079 (circuit): Ignore zero cycle arc counts.
24080
24081 2019-05-13 Martin Liska <mliska@suse.cz>
24082
24083 PR gcov-profile/90380
24084 * gcov.c (enum loop_type): Remove the enum and
24085 the operator.
24086 (handle_cycle): Assert that we should not reach
24087 a negative count.
24088 (circuit): Use loop_found instead of a tri-state loop_type.
24089 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
24090 happen.
24091
24092 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
24093
24094 PR target/82920
24095 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
24096 (ix86_output_indirect_branch_via_reg): Use output mechanism
24097 accounting for __USER_LABEL_PREFIX__.
24098 (ix86_output_indirect_branch_via_push): Likewise.
24099 (ix86_output_function_return): Likewise.
24100 (ix86_output_indirect_function_return): Likewise.
24101
24102 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
24103
24104 * doc/md.texi: Document use of code attributes in rtx patterns.
24105 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
24106 * read-rtl.c (find_code): Split out search loops into...
24107 (maybe_find_code): ...this new function.
24108 (check_code_iterator): Make the error message more informative.
24109 (check_code_attribute): New function.
24110 (rtx_reader::rtx_alloc_for_name): Likewise.
24111 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
24112 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
24113 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
24114 <max_opp> directly as an rtx code instead of via a match_operator.
24115 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
24116 (<su>abd<mode>_3): Update accordingly.
24117
24118 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
24119
24120 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
24121 is given, print the state of the EH "save world" computation for
24122 Darwin.
24123
24124 2019-05-11 Jakub Jelinek <jakub@redhat.com>
24125
24126 PR c++/59813
24127 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
24128 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
24129
24130 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
24131
24132 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
24133 Use pinsrd for TARGET_SSE4_1.
24134 * config/i386/sse.md (movdi_to_sse): Ditto.
24135
24136 2019-05-10 Richard Biener <rguenther@suse.de>
24137
24138 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
24139 (do_rpo_vn): Initialize next_value_id.
24140
24141 2019-05-10 Martin Liska <mliska@suse.cz>
24142
24143 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
24144 Fix plural form.
24145
24146 2019-05-10 Jakub Jelinek <jakub@redhat.com>
24147
24148 PR tree-optimization/90385
24149 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
24150 arguments of the exit phis.
24151
24152 PR c++/90383
24153 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
24154 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
24155 id->do_not_fold.
24156 (copy_tree_body_r): Likewise.
24157 (copy_fn): Set id.do_not_fold to true.
24158
24159 2019-05-10 Martin Liska <mliska@suse.cz>
24160
24161 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
24162 Reapply changes from r269790.
24163
24164 2019-05-10 Martin Liska <mliska@suse.cz>
24165
24166 PR middle-end/90340
24167 * doc/invoke.texi: New params.
24168 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
24169 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
24170 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
24171 Use it.
24172 * tree-switch-conversion.h (struct jump_table_cluster):
24173 Likewise.
24174
24175 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
24176
24177 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
24178
24179 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
24180
24181 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
24182
24183 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
24184
24185 PR rtl-optimization/88879
24186 * sel-sched.c (sel_target_adjust_priority): Remove assert.
24187
24188 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
24189
24190 PR target/90405
24191 * config/arm/arm.c (callee_saved_reg_p): Move before
24192 thumb_find_work_register.
24193 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
24194 thumb_find_work_register. Only call df_get_live_out once.
24195 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
24196 (thumb_find_work_register): Use
24197 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
24198 algorithms to locate a spare call clobbered reg.
24199
24200 2019-05-09 Martin Liska <mliska@suse.cz>
24201
24202 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
24203 and MAX_EXPR in GIMPLE FE format.
24204
24205 2019-05-09 Martin Liska <mliska@suse.cz>
24206
24207 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
24208 * gimple-pretty-print.c (dump_gimple_bb_header):
24209 Dump BB count.
24210 (pp_cfg_jump): Dump edge probability.
24211 * profile-count.c (profile_quality_as_string): Simplify
24212 with a static array.
24213 (parse_profile_quality): New function.
24214 (profile_count::dump): Simplify with a static array.
24215 (profile_count::from_gcov_type): Add new argument.
24216 * profile-count.h (parse_profile_quality): Likewise.
24217 * predict.h (set_hot_bb_threshold): New.
24218 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
24219 New param.
24220 * predict.c (get_hot_bb_threshold): Set from the new param.
24221 (set_hot_bb_threshold): New.
24222
24223 2019-05-09 Richard Biener <rguenther@suse.de>
24224
24225 PR tree-optimization/90395
24226 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
24227 rewrite vector stores that throw internally.
24228
24229 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
24230
24231 * cif-code.def (CHKP): Remove.
24232
24233 PR target/89221
24234 * configure.ac (--enable-frame-pointer): Disable by default for
24235 GNU systems.
24236 * configure: Regenerate.
24237
24238 2019-05-09 Alan Modra <amodra@gmail.com>
24239
24240 PR target/89271
24241 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
24242 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
24243 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
24244 cost for general <-> vsx when direct moves are available.
24245 Cost union classes at minimal cost for any reg in the class.
24246 Correct calculation for moves between vsx, float, and altivec.
24247 Don't return a low cost for moves between special regs. Don't
24248 use hard coded register numbers.
24249 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
24250 (rs6000_ira_change_pseudo_allocno_class): New function.
24251 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
24252 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
24253 alternatives.
24254 (movsi_internal1): Don't disparage vector alternatives.
24255 (mov<mode>_internal): Likewise, excepting alternative that
24256 will be split.
24257 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
24258 we <- b alternative.
24259
24260 2019-05-08 Jakub Jelinek <jakub@redhat.com>
24261
24262 PR c++/59813
24263 PR tree-optimization/89060
24264 * tree-ssa-live.h (live_vars_map): New typedef.
24265 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
24266 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
24267 (struct compute_live_vars_data): New type.
24268 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
24269 live_vars_at_stmt, destroy_live_vars): New functions.
24270 * tree-tailcall.c: Include tree-ssa-live.h.
24271 (live_vars, live_vars_vec): New global variables.
24272 (find_tail_calls): Perform variable life analysis before punting.
24273 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
24274 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
24275 member.
24276 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
24277 Perform variable life analysis to select variables that really need
24278 clobbers added.
24279 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
24280 instead set id->eh_landing_pad_dest and assert it is the same.
24281 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
24282
24283 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
24284 Richard Earnshaw <rearnsha@arm.com>
24285
24286 PR target/88167
24287 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
24288 function.
24289 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
24290 (thumb1_compute_save_core_reg_mask): Don't force a spare work
24291 register if both the epilogue and prologue can use call-clobbered
24292 regs.
24293 (thumb1_unexpanded_epilogue): Use
24294 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
24295 picking temporaries for restoring high regs to match that of the
24296 prologue where possible.
24297 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
24298 the list of work registers. Detect if the return address is still live
24299 at the end of the prologue and avoid using it for a work register if so.
24300 If the return address is not live, add LR to the list of pushable regs
24301 after the first pass.
24302
24303 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
24304
24305 PR tree-optimization/90078
24306 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
24307 (INFTY): Increase the value for infinite cost.
24308 (struct comp_cost): Promote type of members to int64_t.
24309 (infinite_cost): Don't set complexity in initialization.
24310 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
24311 overflows to infinite_cost.
24312 (adjust_setup_cost): Promote type of parameter and cost computation
24313 to int64_t.
24314 (struct ainc_cost_data, struct iv_ca): Promote type of member to
24315 int64_t.
24316 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
24317 cost computation to int64_t.
24318 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
24319 int64_t's format specifier in dump.
24320
24321 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
24322
24323 PR tree-optimization/90240
24324 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
24325 with respect to scaling factor pre-computed for each basic block.
24326 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
24327 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
24328 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
24329 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
24330 live range for array of loop's basic blocks. Cleanup aux field of
24331 loop's basic blocks.
24332
24333 2019-05-08 Jakub Jelinek <jakub@redhat.com>
24334
24335 PR tree-optimization/90356
24336 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
24337
24338 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
24339
24340 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
24341 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
24342 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
24343 (ix86_handle_option): Handle -mavx512bf16.
24344 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
24345 to extra_headers.
24346 * config/i386/avx512bf16vlintrin.h: New.
24347 * config/i386/avx512bf16intrin.h: New.
24348 * config/i386/cpuid.h (bit_AVX512BF16): New.
24349 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
24350 * config/i386/i386-builtin-types.def: Add new types.
24351 * config/i386/i386-builtin.def: Add new builtins.
24352 * config/i386/i386-c.c (ix86_target_macros_internal): Define
24353 __AVX512BF16__.
24354 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
24355 (ix86_option_override_internal): Handle BF16.
24356 (ix86_valid_target_attribute_inner_p): Ditto.
24357 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
24358 * config/i386/i386-builtin.c (enum processor_features): Add
24359 F_AVX512BF16.
24360 (static const _isa_names_table isa_names_table): Ditto.
24361 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
24362 (PTA_AVX512BF16): Ditto.
24363 * config/i386/i386.opt: Add -mavx512bf16.
24364 * config/i386/immintrin.h: Include avx512bf16intrin.h
24365 and avx512bf16vlintrin.h.
24366 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
24367 avx512f_cvtneps2bf16_<mode><mask_name>,
24368 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
24369 * config/i386/subst.md (mask_half): Add new subst.
24370 * doc/invoke.texi: Document -mavx512bf16.
24371
24372 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
24373
24374 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
24375 Delete declaration.
24376 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
24377 (rs6000_debug_legitimize_reload_address): Delete.
24378 (rs6000_legitimize_reload_address_ptr): Delete.
24379 (rs6000_option_override_internal): Adjust.
24380 (mem_operand_gpr): Adjust comment.
24381 (legitimate_lo_sum_address_p): Ditto.
24382 (rs6000_legitimize_reload_address): Delete.
24383 (rs6000_debug_legitimize_reload_address): Delete.
24384 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
24385
24386 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
24387
24388 PR target/89765
24389 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24390 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
24391 to compute vector element selector for both constant and variable
24392 operands.
24393
24394 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
24395
24396 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
24397 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
24398 ashrdi3_cvt using SWI48 mode iterator.
24399
24400 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24401
24402 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
24403 (aarch64_<su>abd<mode>_3): Likewise.
24404 (*aarch64_<su>abd<mode>_3): New define_insn.
24405 (<sur>sad<vsi2qi>): New define_expand.
24406 * config/aarch64/iterators.md: Added MAX_OPP attribute.
24407 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
24408 (build_vect_cond_expr): Likewise.
24409
24410 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
24411
24412 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
24413 clobbers outside of accessible_reg_set.
24414 * config/i386/i386.c (ix86_conditional_register_usage):
24415 Disable register sets by clearing corresponding bits in
24416 accessible_reg_set. Do not set corresponding bits in fixed_regs,
24417 call_used_regs and don't clear corresponding reg_names array members.
24418
24419 2019-05-07 Richard Biener <rguenther@suse.de>
24420
24421 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
24422 not specified still compute a comp_vectype for invariant
24423 compares.
24424
24425 2019-05-07 Richard Biener <rguenther@suse.de>
24426
24427 PR tree-optimization/90316
24428 * tree-ssa-pre.c (translate_vuse_through_block): When
24429 same_valid is NULL do not bother to search for a virtual
24430 PHI continuation.
24431 (phi_translate_1): When operands changed we cannot keep
24432 the same value-number so do not bother to ask whether
24433 that's possible from translate_vuse_through_block.
24434
24435 2019-05-07 Martin Liska <mliska@suse.cz>
24436
24437 * bitmap.c (bitmap_register): Come up with
24438 alloc_descriptor_max_uid and assign it for
24439 a new bitmap.
24440 (register_overhead): Use get_descriptor as
24441 a descriptor.
24442 (release_overhead): New.
24443 (bitmap_elem_to_freelist): Call it.
24444 (bitmap_elt_clear_from): Likewise.
24445 (bitmap_obstack_free): Likewise.
24446 (bitmap_move): Sensitively release memory.
24447 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
24448 (bitmap_initialize): Initialize alloc_descriptor to zero.
24449 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
24450
24451 2019-05-07 Richard Biener <rguenther@suse.de>
24452
24453 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
24454 we build a SLP node. Remove max_size and limiting.
24455 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
24456
24457 2019-05-07 Richard Biener <rguenther@suse.de>
24458
24459 PR tree-optimization/90316
24460 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
24461 limit by reference.
24462 (walk_non_aliased_vuses): Take walking limit argument.
24463 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
24464 walking if it is reached instead of just counting.
24465 (get_continuation_for_phi): Likewise.
24466 (walk_non_aliased_vuses): Likewise, instead of leaving counter
24467 limiting to the callback.
24468 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
24469 (vn_reference_lookup_3): Likewise.
24470 (vn_reference_lookup_pieces): Likewise.
24471 (vn_reference_lookup): Likewise.
24472 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
24473 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
24474 (avail_exprs_stack::lookup_avail_expr): Likewise.
24475
24476 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
24477
24478 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
24479 for comparaible types in the second direction even if first one
24480 hits incomparable type.
24481
24482 2019-05-07 Richard Biener <rguenther@suse.de>
24483
24484 PR lto/90369
24485 * lto-wrapper.c (debug_objcopy): Use the original filename
24486 including archive offset for the filename used for -save-temps.
24487
24488 2019-05-07 Li Jia He <helijia@linux.ibm.com>
24489
24490 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
24491 detection.
24492
24493 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
24494 Hongtao Liu <hongtao.liu@intel.com>
24495
24496 PR target/89750
24497 PR target/86444
24498 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
24499 Modified, original implementation isn't correct.
24500
24501 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
24502
24503 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
24504 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
24505 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
24506 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
24507 (FRAME_POINTER_REGNUM): Change numbering.
24508 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
24509 (alt_reg_names): Adjust.
24510 (rs6000_conditional_register_usage): Don't mark hard register 64 as
24511 fixed.
24512 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
24513 (DWARF_FRAME_REGISTERS): Delete.
24514 (DWARF2_FRAME_REG_OUT): Fix whitespace.
24515 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
24516 Adjust.
24517 (REG_ALLOC_ORDER): Adjust.
24518 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
24519 (REG_CLASS_CONTENTS): Adjust.
24520 (RETURN_ADDR_RTX): Change comment.
24521 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
24522 instead of 67.
24523 (REGISTER_NAMES): Adjust.
24524 (ADDITIONAL_REGISTER_NAMES): Adjust.
24525 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
24526
24527 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
24528
24529 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
24530 Delete.
24531 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
24532 (DWARF_FRAME_REGISTERS): Adjust.
24533 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
24534 Adjust.
24535 (REG_ALLOC_ORDER): Adjust.
24536 (enum reg_class): Delete SPR_REGS.
24537 (REG_CLASS_NAMES): Delete SPR_REGS.
24538 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
24539 (REGISTER_NAMES): Adjust.
24540 (ADDITIONAL_REGISTER_NAMES): Adjust.
24541 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
24542 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
24543 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
24544 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
24545 (htm_spr_regno): Delete.
24546 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
24547 argument.
24548 (rs6000_dbx_register_number): Adjust.
24549
24550 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
24551
24552 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
24553
24554 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
24555
24556 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
24557 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
24558
24559 2019-05-06 Jakub Jelinek <jakub@redhat.com>
24560
24561 PR tree-optimization/88709
24562 PR tree-optimization/90271
24563 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
24564 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
24565 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
24566 variable.
24567 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
24568 of the store merging group is larger than
24569 PARAM_STORE_MERGING_MAX_SIZE parameter.
24570 (split_group): Add bzero_first argument. If set, always emit first
24571 the first store which must be = {} of the whole area and then for the
24572 rest of the stores consider all zero bytes as paddings.
24573 (imm_store_chain_info::output_merged_store): Check if first store
24574 is = {} of the whole area and if yes, determine which setting of
24575 bzero_first for split_group gives smaller number of stores. Adjust
24576 split_group callers.
24577 (lhs_valid_for_store_merging_p): Allow decls.
24578 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
24579 no elts.
24580 (pass_store_merging::process_store): Likewise.
24581
24582 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
24583
24584 PR target/89424
24585 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
24586 handling of V1TImode.
24587
24588 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
24589
24590 PR target/89221
24591 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
24592 and enable_frame_pointer ...
24593 * configure.ac: ... here. Update help strings for
24594 --enable-frame-pointer.
24595 * configure: Regenerate.
24596 * config/i386/i386-options.c (ix86_option_override_internal): Remove
24597 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
24598 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
24599 (USE_X86_64_FRAME_POINTER): Ditto.
24600
24601 2019-05-06 Martin Liska <mliska@suse.cz>
24602
24603 * config.gcc: Append to target_gtfiles and fix indentation.
24604
24605 2019-05-06 Richard Biener <rguenther@suse.de>
24606
24607 PR tree-optimization/90358
24608 * tree-vect-stmts.c (get_group_load_store_type): Properly
24609 detect unused upper half of load.
24610 (vectorizable_load): Likewise.
24611
24612 2019-05-06 Richard Biener <rguenther@suse.de>
24613
24614 PR tree-optimization/88828
24615 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
24616 (simplify_vector_constructor): ...here. Handle constants in
24617 the constructor.
24618
24619 2019-05-06 Richard Biener <rguenther@suse.de>
24620
24621 PR tree-optimization/90328
24622 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
24623 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
24624 is valid in the loop nest before using it.
24625 (initialize_data_dependence_relation): Adjust.
24626 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
24627 loop as loop-nest to dr_may_alias_p.
24628
24629 2019-05-06 Richard Biener <rguenther@suse.de>
24630
24631 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
24632
24633 2019-05-06 Richard Biener <rguenther@suse.de>
24634
24635 PR tree-optimization/90316
24636 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
24637 compute target on demand.
24638 (get_continuation_for_phi): Remove code walking stmts to
24639 get to a target virtual operand which could end up being
24640 quadratic.
24641
24642 2019-05-06 Martin Liska <mliska@suse.cz>
24643
24644 PR sanitizer/90312
24645 * config/i386/i386-options.c (ix86_option_override_internal): Error only
24646 when -mabi is selected to a non-default version.
24647
24648 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
24649 Martin Liska <mliska@suse.cz>
24650
24651 * Makefile.in: Add lto-dump.texi.
24652 * cgraph.h: Add new functions get_visibility_string and
24653 get_symtab_type_string.
24654 * doc/gcc.texi: Include lto-dump section.
24655 * doc/lto-dump.texi: New file.
24656 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
24657 (parse_dump_option): Factor out this function.
24658 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
24659 (parse_dump_option): Export the function.
24660 * symtab.c (symtab_node::get_visibility_string): New function.
24661 (symtab_node::get_symtab_type_string): Likewise.
24662
24663 2019-05-06 Martin Liska <mliska@suse.cz>
24664
24665 * config/i386/i386-builtins.c: New file.
24666 * config/i386/i386-builtins.h: New file.
24667 * config/i386/i386-expand.c: New file.
24668 * config/i386/i386-expand.h: New file.
24669 * config/i386/i386-features.c: New file.
24670 * config/i386/i386-features.h: New file.
24671 * config/i386/i386-options.c: New file.
24672 * config/i386/i386-options.h: New file.
24673 * config.gcc: Add new files into extra_objs and
24674 target_gtfiles.
24675 * config/i386/i386.c: Split content of the file
24676 into newly introduced files.
24677 * config/i386/i386.h: Declare common variables
24678 and macros.
24679 * config/i386/t-i386: Define dependencies for new files.
24680
24681 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
24682
24683 PR target/89400
24684 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
24685 Restrict 'all' variant to 32-bit configurations.
24686 (unaligned_loadhiu): Likewise.
24687 (unaligned_storehi): Likewise.
24688 (unaligned_storesi): Likewise.
24689 (unaligned_loadhis): Disable when compiling for thumb1.
24690
24691 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
24692
24693 PR tree-optimization/90269
24694 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
24695 Ignore clobbers.
24696
24697 2019-05-03 Martin Liska <mliska@suse.cz>
24698
24699 * hash-map.h: Add is_empty function.
24700 * hash-set.h: Likewise.
24701 * hash-table.h: Likewise.
24702 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
24703 elements () == 0 (and similar usages).
24704 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
24705 * gimplify.c (gimplify_bind_expr): Likewise.
24706 (gimplify_switch_expr): Likewise.
24707 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
24708 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
24709 * postreload-gcse.c (dump_hash_table): Likewise.
24710 (gcse_after_reload_main): Likewise.
24711 * predict.c (combine_predictions_for_bb): Likewise.
24712 * tree-parloops.c (reduction_phi): Likewise.
24713 (separate_decls_in_region): Likewise.
24714 (transform_to_exit_first_loop): Likewise.
24715 (gen_parallel_loop): Likewise.
24716 (gather_scalar_reductions): Likewise.
24717 (try_create_reduction_list): Likewise.
24718 * var-tracking.c (dump_vars): Likewise.
24719 (emit_notes_for_changes): Likewise.
24720 (vt_emit_notes): Likewise.
24721
24722 2019-05-03 Richard Biener <rguenther@suse.de>
24723
24724 PR tree-optimization/90316
24725 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
24726 before running VN.
24727
24728 2019-05-03 Richard Biener <rguenther@suse.de>
24729
24730 * tree-vect-stmts.c (get_group_load_store_type): Avoid
24731 peeling for gaps by loading only lower halves of vectors
24732 if possible.
24733 (vectorizable_load): Likewise.
24734
24735 2019-05-03 Richard Biener <rguenther@suse.de>
24736
24737 PR middle-end/89518
24738 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
24739
24740 2019-05-03 Richard Biener <rguenther@suse.de>
24741
24742 PR middle-end/87314
24743 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
24744 Handle STRING_CST vs DECL or STRING_CST.
24745
24746 2019-05-03 Richard Biener <rguenther@suse.de>
24747
24748 PR tree-optimization/88963
24749 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
24750 vector loads feeding only BIT_FIELD_REFs to component
24751 loads. Rewrite stores fed by CONSTRUCTORs to component
24752 stores.
24753
24754 2019-05-03 Jakub Jelinek <jakub@redhat.com>
24755
24756 * opts.h (finish_options): Remove lang_mask argument.
24757 (print_help, help_option_argument): Declare.
24758 * opts.c (print_help): Remove forward declaration, no longer static.
24759 (finish_options): Remove lang_mask argument, don't call print_help
24760 here.
24761 * opts-global.c (decode_options): Adjust finish_option caller, call
24762 print_help here.
24763
24764 PR tree-optimization/90303
24765 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
24766 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
24767
24768 2019-05-03 Richard Biener <rguenther@suse.de>
24769
24770 PR tree-optimization/89698
24771 * gimple-fold.c (canonicalize_constructor_val): Early out
24772 for constants, handle unfolded INTEGER_CSTs as they appear in
24773 C++ virtual table ctors.
24774
24775 2019-05-03 Richard Biener <rguenther@suse.de>
24776
24777 * passes.c (execute_function_todo): Remove dead code.
24778
24779 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
24780
24781 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
24782 the internal register number, for any "real" register.
24783
24784 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
24785
24786 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
24787 correct numbers for TFHAR, TFIAR, TEXASR.
24788
24789 2019-05-02 Richard Biener <rguenther@suse.de>
24790
24791 PR tree-optimization/89653
24792 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
24793 update-address-taken before the pass.
24794 * passes.def (pass_tree_loop_init): Put comment before it.
24795
24796 2019-05-02 Richard Biener <rguenther@suse.de>
24797
24798 PR tree-optimization/89509
24799 * tree-ssa-structalias.c (compute_dependence_clique): Look
24800 at the first subvar when determining whether it is restrict.
24801
24802 2019-05-02 Richard Biener <rguenther@suse.de>
24803
24804 PR tree-optimization/90273
24805 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
24806 useless debug stmts.
24807
24808 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24809
24810 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
24811 ACLE branch.
24812 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
24813 SVE ACLE branch.
24814 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
24815 VEC_COND_EXPR be inserted to emulate a conditional internal function.
24816 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
24817 (vectorizable_reduction): Use the functions above to vectorize in a
24818 fully masked loop codes that don't have a conditional internal
24819 function.
24820
24821 2019-05-02 Martin Liska <mliska@suse.cz>
24822
24823 * cgraphclones.c: Call valid_attribute_p with 1 for
24824 target_clone.
24825 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
24826 it's for target attribute.
24827 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
24828 Add new boolean argument.
24829 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
24830 Likewise.
24831 (ix86_valid_target_attribute_tree): Pass target_clone_attr
24832 to ix86_valid_target_attribute_inner_p.
24833 (ix86_valid_target_attribute_p): Pass flags argument to
24834 ix86_valid_target_attribute_inner_p.
24835 (get_builtin_code_for_version): Use 0 as it's target attribute.
24836
24837 2019-05-02 Martin Liska <mliska@suse.cz>
24838
24839 * gcc.c (process_command): Add dummy file only
24840 if n_infiles == 0.
24841 * opts-global.c (decode_options): Pass lang_mask.
24842 * opts.c (print_help): New function.
24843 (finish_options): Print --help if help_option_argument
24844 is set.
24845 (common_handle_option): Factor out content of OPT__help_
24846 into print_help.
24847 * opts.h (finish_options): Add new argument.
24848
24849 2019-05-02 Martin Liska <mliska@suse.cz>
24850
24851 PR target/88809
24852 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
24853 With -minline-all-stringops use inline expansion using 4B loop.
24854 * doc/invoke.texi: Document the change of
24855 -minline-all-stringops.
24856
24857 2019-05-01 Jeff Law <law@redhat.com>
24858
24859 PR tree-optimization/88797
24860 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
24861 PHI feeds a conditional on the RHS of an assignment.
24862
24863 2019-04-30 Andrew Waterman <andrew@sifive.com>
24864 Jim Wilson <jimw@sifive.com>
24865
24866 * config/riscv/constraints.md (L): New.
24867 * config/riscv/predicates.md (lui_operand): New.
24868 (sfb_alu_operand): New.
24869 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
24870 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
24871 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
24872 * config/riscv/risc.md (type): Add sfb_alu.
24873 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
24874 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
24875 (branch_zero<mode>): Delete.
24876 (mov<mode>cc): New.
24877 (mov<GPR:mode><X:mode>cc): Likewise.
24878 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
24879
24880 2019-04-30 Nathan Sidwell <nathan@acm.org>
24881
24882 * tree.h (MARK_TS_EXP): New.
24883
24884 2019-04-30 Martin Liska <mliska@suse.cz>
24885
24886 * opts.c (enable_warning_as_error): Provide hints
24887 for unknown options.
24888
24889 2019-04-30 Martin Liska <mliska@suse.cz>
24890
24891 PR debug/90288
24892 * doc/invoke.texi: Add missing dash for gas-locview-support
24893 and gno-as-locview-support.
24894
24895 2019-04-30 Jakub Jelinek <jakub@redhat.com>
24896
24897 PR target/89093
24898 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
24899 whitespace at the start of target attribute string.
24900
24901 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24902
24903 PR target/86538
24904 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
24905 Define __ARM_FEATURE_ATOMICS.
24906
24907 2019-04-30 Martin Liska <mliska@suse.cz>
24908
24909 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
24910 into built_in_function enum. Remove code for endp == 2 and
24911 use BUILT_IN_* constants.
24912 (gimple_fold_builtin): Call the function with fcode.
24913
24914 2019-04-30 Martin Liska <mliska@suse.cz>
24915
24916 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
24917 DECL_FUNCTION_CODE into ix86_builtins enum before
24918 the switch statement.
24919
24920 2019-04-30 Jakub Jelinek <jakub@redhat.com>
24921
24922 PR tree-optimization/89475
24923 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
24924 calls.
24925
24926 2019-04-30 Martin Liska <mliska@suse.cz>
24927
24928 PR translation/90274
24929 * opts.c (print_filtered_help): Wrap string in _(...).
24930
24931 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
24932
24933 PR tree-optimization/90240
24934 Revert:
24935 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
24936
24937 PR tree-optimization/90078
24938 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
24939 checks for infinite_cost overflow.
24940
24941 2019-04-29 Jeff Law <law@redhat.com>
24942
24943 * passes.def: Move -Wrestrict pass after copy propagation.
24944
24945 2019-04-29 Maya Rashish <coypu@sdf.org>
24946
24947 * config.gcc (default_gnu_indirect_function): Default to yes
24948 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
24949 sparc*-*-netbsd*, x86_64-*-netbsd*.
24950
24951 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
24952
24953 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
24954 where cond2 is NE_EXPR.
24955 (is_value_included_in): Update comment.
24956
24957 2019-04-29 Richard Biener <rguenther@suse.de>
24958
24959 PR tree-optimization/90278
24960 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
24961 EH on comparison simplification.
24962
24963 2019-04-29 Jason Merrill <jason@redhat.com>
24964
24965 PR c++/82081 - tail call optimization breaks noexcept
24966 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
24967 nothrow function to a might-throw function into a tail call.
24968
24969 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
24970
24971 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
24972 (DDR_INNER_LOOP): Likewise.
24973 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
24974 (initialize_data_dependence_relation): Likewise.
24975 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
24976
24977 2019-04-29 Jakub Jelinek <jakub@redhat.com>
24978
24979 PR rtl-optimization/90257
24980 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
24981 return value.
24982
24983 Revert the revert:
24984 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
24985
24986 PR target/90178
24987 Revert:
24988 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
24989
24990 Revert the revert:
24991 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
24992
24993 Revert:
24994 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
24995
24996 * lra-spills.c (lra_final_code_change): Remove useless move insns.
24997
24998 2019-04-29 Richard Biener <rguenther@suse.de>
24999
25000 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
25001 rhs issue a reset.
25002
25003 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
25004
25005 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
25006 varasm.h, and netbsd-protos.h.
25007
25008 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
25009
25010 PR target/89261
25011 * config/i386/i386-protos.h (ix86_data_alignment): Change
25012 the second argument type to unsigned int.
25013 * config/i386/i386.c (ix86_data_alignment): Change "align"
25014 argument type to unsigned int.
25015
25016 2019-04-27 Martin Liska <mliska@suse.cz>
25017
25018 PR middle-end/90258
25019 * opt-suggestions.c (option_proposer::build_option_suggestions):
25020 When get_valid_option_values returns empty values, add the
25021 misspelling candidate.
25022
25023 2019-04-26 Jim Wilson <jimw@sifive.com>
25024
25025 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
25026 parameter.
25027 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
25028 Pass orig_mode to riscv_build_integer.
25029 (riscv_split_integer): Pass mode to riscv_move_integer.
25030 (riscv_legitimize_const_move): Likewise.
25031 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
25032 promoted_mode. Replace force_reg call with code to load constant into
25033 promoted reg and then subreg it for the store.
25034 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
25035 riscv_move_integer.
25036
25037 2018-04-26 Eugene Sharygin <eush@ispras.ru>
25038
25039 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
25040 corrupt codes.
25041
25042 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
25043
25044 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
25045 commentary about the encoding of precision.
25046
25047 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
25048
25049 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
25050 * config/i386/t-freebsd64: New file.
25051 * config.gcc: Add the t-freebsd64 for multilib support.
25052
25053 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
25054
25055 * doc/extend.texi (vector_size): Add missing comma after @xref.
25056
25057 2019-04-25 Jakub Jelinek <jakub@redhat.com>
25058
25059 * BASE-VER: Set to 10.0.0.
25060
25061 2019-04-25 Richard Biener <rguenther@suse.de>
25062
25063 PR middle-end/89765
25064 * gimplify.c (gimplify_expr): Avoid turning a lvalue
25065 VIEW_CONVERT_EXPR into one operating on an rvalue.
25066
25067 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
25068
25069 PR target/89929
25070 * config/i386/i386.c (feature_priority): Moved to file scope.
25071 (processor_features): Likewise.
25072 (processor_model): Likewise.
25073 (_arch_names_table): Likewise.
25074 (arch_names_table): Likewise.
25075 (_feature_list): Removed.
25076 (feature_list): Likewise.
25077 (_isa_names_table): Moved to file scope. Add priority.
25078 (isa_names_table): Likewise.
25079 (get_builtin_code_for_version): Replace feature_list with
25080 isa_names_table. Update error message for P_ZERO priority.
25081
25082 2019-04-25 Richard Biener <rguenther@suse.de>
25083
25084 * tree-pass.h (make_pass_phi_only_cprop): Remove.
25085 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
25086
25087 2019-04-24 Jeff Law <law@redhat.com>
25088
25089 PR tree-optimization/90037
25090 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
25091 * passes.def: Replace all instance of phi-only cprop with the
25092 lattice propagator. Move propagation pass from after erroneous
25093 path isolation to before erroneous path isolation.
25094 * tree-ssa-phionlycprop.c: Remove.
25095
25096 2019-04-24 Richard Biener <rguenther@suse.de>
25097
25098 PR middle-end/90213
25099 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
25100 by size and BITS_PER_UNIT on poly-wide-ints.
25101
25102 2019-04-25 Richard Biener <rguenther@suse.de>
25103
25104 PR middle-end/90194
25105 * match.pd: Add pattern to simplify view-conversion of an
25106 empty constructor.
25107
25108 2019-04-24 Clement Chigot <clement.chigot@atos.net>
25109
25110 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
25111 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
25112 for Go on 32 bit AIX.
25113 * config/rs6000/aix72.h: Likewise.
25114
25115 2019-04-24 Jakub Jelinek <jakub@redhat.com>
25116
25117 PR target/90193
25118 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
25119 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
25120
25121 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
25122
25123 PR target/89952
25124 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
25125 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
25126 for restored hard frame pointer.
25127 (s390_sched_dependencies_evaluation): Implement new target hook.
25128 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
25129
25130 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
25131
25132 * config/arc/arc-options.def: Fix typos and spelling mistakes.
25133 * config/arc/arc.c (arc_init): Cleanup warning message.
25134 (arc_override_options): Likewise.
25135
25136 2019-04-24 Jakub Jelinek <jakub@redhat.com>
25137
25138 PR target/90187
25139 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
25140 a register if both if_true and if_false are MEMs.
25141
25142 PR tree-optimization/90208
25143 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
25144 after labels of new_bb, not before them.
25145
25146 PR tree-optimization/90211
25147 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
25148 which are not SSA_NAMEs.
25149
25150 2018-04-23 Sudakshina Das <sudi.das@arm.com>
25151
25152 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
25153 AArch64.
25154 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
25155
25156 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
25157
25158 PR rtl-optimization/87979
25159 * modulo-sched.c (sms_schedule): Start ii value "mii" should
25160 not equal zero.
25161
25162 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
25163
25164 PR rtl-optimization/84032
25165 * modulo-sched.c (ps_insn_find_column): Change condition so that
25166 branch will always be the last insn in a row inside partial
25167 schedule.
25168
25169 2019-04-23 Richard Biener <rguenther@suse.de>
25170
25171 PR debug/90131
25172 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
25173 dest_single_pred_p argument.
25174 (remove_forwarder_block): Adjust.
25175 (remove_forwarder_block_with_phi): Likewise.
25176
25177 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25178 Bernd Edlinger <bernd.edlinger@hotmail.de>
25179 Jakub Jelinek <jakub@redhat.com>
25180
25181 PR target/89093
25182 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
25183 if used with general-regs-only.
25184 (arm_conditional_register_usage): Don't add non-general regs if
25185 general-regs-only.
25186 (arm_valid_target_attribute_rec): Handle general-regs-only.
25187 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
25188 general-regs-only.
25189 (TARGET_HARD_FLOAT_SUB): Define.
25190 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
25191 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
25192 (TARGET_REALLY_IWMMXT2): Likewise.
25193 * config/arm/arm.opt: Add -mgeneral-regs-only.
25194 * doc/extend.texi: Document ARM general-regs-only target.
25195 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
25196
25197 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
25198
25199 PR tree-optimization/90078
25200 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
25201 checks for infinite_cost overflow.
25202
25203 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
25204
25205 PR tree-optimization/90021
25206 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
25207 and check univariate against it.
25208 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
25209 * tree-data-ref.c (add_other_self_distances): Pass new argument.
25210
25211 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
25212
25213 PR target/90178
25214 Revert:
25215 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
25216
25217 Revert the revert:
25218 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
25219
25220 Revert:
25221 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
25222
25223 * lra-spills.c (lra_final_code_change): Remove useless move insns.
25224
25225 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
25226
25227 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
25228 names using operand format, rather than hard-wired.
25229 (speculation_barrier): Likewise.
25230
25231 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
25232
25233 PR tree-optimization/88055
25234 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
25235 (gen_one_condition): Use it if !HONOR_NANS.
25236
25237 2019-04-19 Jakub Jelinek <jakub@redhat.com>
25238
25239 PR middle-end/90139
25240 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
25241 assign_temp instead of gen_reg_rtx.
25242
25243 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
25244
25245 PR translation/90118
25246 * config/aarch64/aarch64.c (aarch64_override_options_internal):
25247 Add missing space before %<.
25248
25249 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
25250
25251 PR rtl-optimization/87871
25252 * ira-lives.c (make_object_dead): Don't add conflicts to
25253 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
25254
25255 2019-04-18 Martin Sebor <msebor@redhat.com>
25256
25257 PR middle-end/89797
25258 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
25259 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
25260 assuming type size fits in SHWI.
25261
25262 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
25263
25264 PR ipa/85051
25265 * ipa-inline.c (flatten_function): New parameter UPDATE.
25266 (ipa_inline, early_inliner): Use it.
25267
25268 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
25269
25270 * fold-const.c (int_const_binop): Return early on failure.
25271
25272 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
25273
25274 PR middle-end/85164
25275 * combine.c (force_int_to_mode): Cast the argument rather than
25276 the result of known_alignment.
25277 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
25278
25279 2019-04-18 Richard Biener <rguenther@suse.de>
25280
25281 PR debug/90131
25282 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
25283 out from ...
25284 (remove_forwarder_block): ... here.
25285 (remove_forwarder_block_with_phi): Also move debug stmts here.
25286
25287 2019-04-18 Jakub Jelinek <jakub@redhat.com>
25288
25289 PR translation/79183
25290 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
25291 inform where appropriate.
25292
25293 2019-04-18 Richard Biener <rguenther@suse.de>
25294
25295 * tree.c (get_qualified_type): Put found type variants at the
25296 head of the variant list.
25297
25298 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
25299
25300 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
25301
25302 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
25303
25304 PR target/90125
25305 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
25306 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
25307 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
25308 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
25309 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
25310
25311 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
25312
25313 * ira-conflicts.c (print_allocno_conflicts): Always print something,
25314 even for allocno's with no conflicts.
25315 (print_conflicts): Print an extra newline.
25316
25317 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
25318
25319 * auto-inc-dec.c (attempt_change): Set the alignment of the
25320 temporary memory to that of the original.
25321
25322 2019-04-17 Joao Moreira <jmoreira@suse.de>
25323
25324 * targhooks.c (default_print_patchable_function_entry): Emit
25325 __patchable_function_entries section with writable flags to allow
25326 relocation resolution.
25327
25328 2019-04-17 Jonny Grant <jg@jguk.org>
25329
25330 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
25331
25332 2019-04-17 Jakub Jelinek <jakub@redhat.com>
25333
25334 PR middle-end/90095
25335 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
25336 on lowpart SUBREGs.
25337
25338 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
25339
25340 * config/arc/arc.c (arc_init): Format diagnostic string.
25341 (arc_override_options): Likewise.
25342 (check_if_valid_regno_const): Likewise.
25343 (arc_reorg): Likewise.
25344
25345 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
25346
25347 PR target/17108
25348 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
25349 name.
25350 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
25351 name.
25352 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
25353 (*movdi_update1): Use Pmode.
25354 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
25355 (movdi_<mode>_update_stack): Rename to ...
25356 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
25357 use Pmode.
25358 (*movsi_update1): Use Pmode.
25359 (*movsi_update2): Use Pmode.
25360 (movsi_update): Rename to ...
25361 (movsi_<mode>_update): ... this. Use Pmode.
25362 (movsi_update_stack): Fix condition.
25363 (*movhi_update1): Use Pmode. Fix argument to
25364 avoiding_indexed_address_p.
25365 (*movhi_update2): Ditto.
25366 (*movhi_update3): Ditto.
25367 (*movhi_update4): Ditto.
25368 (*movqi_update1): Ditto.
25369 (*movqi_update2): Ditto.
25370 (*movqi_update3): Ditto.
25371 (*movsf_update1, *movdf_update1): Merge, rename to...
25372 (*mov<mode>_update1): This. Use Pmode. Fix argument to
25373 avoiding_indexed_address_p. Add "size" attribute.
25374 (*movsf_update2, *movdf_update2): Merge, rename to...
25375 (*mov<mode>_update2): This. Ditto.
25376 (*movsf_update3): Use Pmode. Fix argument to
25377 avoiding_indexed_address_p.
25378 (*movsf_update4): Ditto.
25379 (allocate_stack): Simplify condition. Adjust pattern names.
25380
25381 2019-04-17 Jakub Jelinek <jakub@redhat.com>
25382
25383 PR target/89093
25384 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
25385 whitespace at the start of target attribute string.
25386
25387 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
25388
25389 PR target/84369
25390 * config/rs6000/power9.md: Add store forwarding bypass.
25391
25392 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
25393
25394 PR debug/89528
25395 * valtrack.c (dead_debug_insert_temp): Reset debug references
25396 to the return value of a call being removed.
25397
25398 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
25399
25400 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
25401 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
25402 implement target hook.
25403 (arc_memory_move_cost): New function.
25404 (TARGET_REGISTER_MOVE_COST): Define.
25405 (TARGET_MEMORY_MOVE_COST): Likewise.
25406 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
25407 (MEMORY_MOVE_COST): Likewise.
25408
25409 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
25410
25411 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
25412 (sibcall_value_insn): Likewise.
25413 * config/arc/constraints.md (Rs5): Remove.
25414
25415 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
25416
25417 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
25418 for last two fake registers.
25419 (arc_conditional_register_usage): Make sure fake frame and arg
25420 pointer regs are in general regs class.
25421 (FRAME_POINTER_MASK): Remove.
25422 (RETURN_ADDR_MASK): Remove.
25423 (arc_must_save_register): Use hard frame regnum.
25424 (frame_restore_reg): Use hard_frame_pointer_rtx.
25425 (arc_save_callee_saves): Likewise.
25426 (arc_restore_callee_saves): Likewise.
25427 (arc_save_callee_enter): Likewise.
25428 (arc_restore_callee_leave): Likewise.
25429 (arc_save_callee_milli): Likewise.
25430 (arc_eh_return_address_location): Likewise.
25431 (arc_check_multi): Use hard frame regnum.
25432 (arc_can_eliminate): Likewise.
25433 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
25434 for register allocator.
25435 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
25436 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
25437 (FRAME_POINTER_REGNUM): Change it to a fake register.
25438 (HARD_FRAME_POINTER_REGNUM): Defined.
25439 (ARG_POINTER_REGNUM): Change it to a new fake register.
25440 (ELIMINABLE_REGS): Update.
25441 (REGISTER_NAMES): Update names.
25442 * config/arc/arc.md (LP_START): Remove.
25443 (LP_END): Likewise.
25444 (shift_si3_loop): Update pattern.
25445
25446 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
25447
25448 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
25449 to avoid delay slot scheduling.
25450 (arc_must_save_register): Don't save SP.
25451 * config/arc/arc.md (stack_tie): Remove.
25452 (UNSPEC_ARC_STKTIE): Likewise.
25453
25454 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
25455 Shiva Chen <shiva0217@gmail.com>
25456
25457 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
25458 code gen with large shift amount.
25459
25460 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
25461
25462 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
25463 subreg.
25464
25465 2019-04-16 Jakub Jelinek <jakub@redhat.com>
25466
25467 PR target/90096
25468 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
25469 print -m64/-mx32/-m32 if it is true.
25470 (ix86_debug_options, ix86_function_specific_print): Pass true as
25471 ADD_ABI_P to ix86_target_string.
25472 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
25473 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
25474 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
25475
25476 PR rtl-optimization/90082
25477 * dce.c (can_delete_call): New function.
25478 (deletable_insn_p, mark_insn): Use it.
25479
25480 PR tree-optimization/90090
25481 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
25482 throw internally.
25483 (is_division_by_square): Likewise. Formatting fix.
25484
25485 2019-04-16 Richard Biener <rguenther@suse.de>
25486
25487 PR tree-optimization/56049
25488 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
25489 equality check if alias-set zero will prevail.
25490
25491 2019-04-15 Jeff Law <law@redhat.com>
25492
25493 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
25494 size and alignment as unsigned.
25495
25496 2019-04-15 Richard Biener <rguenther@suse.de>
25497
25498 PR debug/90074
25499 * tree-loop-distribution.c (destroy_loop): Preserve correct
25500 debug info.
25501
25502 2019-04-15 Richard Biener <rguenther@suse.de>
25503
25504 PR tree-optimization/90071
25505 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
25506 abnormal operands from def stmts.
25507
25508 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
25509
25510 PR rtl-optimization/89794
25511 * combine.c (count_auto_inc): New function.
25512 (try_combine): Count how many auto_inc expressions there were in the
25513 original instructions. Ensure we have the same number in the new
25514 instructions. Remove the code that tried to ensure auto_inc side
25515 effects on i1 and i0 are not lost.
25516
25517 2019-04-15 Richard Biener <rguenther@suse.de>
25518
25519 PR ipa/88936
25520 * tree.h (auto_var_p): Declare.
25521 * tree.c (auto_var_p): New function, split out from ...
25522 (auto_var_in_fn_p): ... here.
25523 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
25524 member.
25525 (new_var_info): Initialize it.
25526 (set_uids_in_ptset): Also set the shadow variable uid if required.
25527 (ipa_pta_execute): Postprocess points-to solutions assigning
25528 shadow variable uids for locals that may reach their containing
25529 function recursively.
25530 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
25531 assert but instead check whether the points-to solution is
25532 a singleton.
25533
25534 2019-04-15 Martin Jambor <mjambor@suse.cz>
25535
25536 PR ipa/pr89693
25537 * cgraph.c (clone_of_p): Loop over clone chain for each step in
25538 the thunk chain.
25539
25540 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
25541
25542 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
25543
25544 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
25545 Kito Cheng <kito.cheng@gmail.com>
25546 Shiva Chen <shiva0217@gmail.com>
25547
25548 * config/nds32/nds32-md-auxiliary.c
25549 (nds32_legitimize_pic_address): Use new PIC pattern.
25550 (nds32_legitimize_tls_address): Use new TLS pattern.
25551 (nds32_output_symrel): New.
25552 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
25553 (nds32_alloc_relax_group_id): Ditto.
25554 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
25555 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
25556 relax_group_id.
25557 (nds32_group_tls_insn): Ditto.
25558 (nds32_group_float_insns): Ditto.
25559 * config/nds32/nds32.md (tls_le): New.
25560 (sym_got): Ditto.
25561
25562 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
25563
25564 * configure: Add nds32 target for dwarf2 debug_line checking.
25565 * configure.ac: Regenerated.
25566
25567 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
25568
25569 PR lto/89358
25570 * ipa-devirt.c (skip_in_fields_list_p): New.
25571 (odr_types_equivalent_p): Use it.
25572
25573 2019-04-13 Jakub Jelinek <jakub@redhat.com>
25574
25575 PR target/89093
25576 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
25577 instead of strncmp when checking for thumb and arm. Formatting fixes.
25578
25579 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
25580
25581 * doc/install.texi: Document --with-target-system-zlib.
25582
25583 2019-04-12 Martin Sebor <msebor@redhat.com>
25584
25585 PR c/88383
25586 PR c/89288
25587 PR c/89798
25588 PR c/89797
25589 * targhooks.c (default_vector_alignment): Avoid assuming
25590 argument fits in SHWI.
25591 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
25592 a shift expression.
25593 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
25594
25595 2019-04-12 Jakub Jelinek <jakub@redhat.com>
25596
25597 PR rtl-optimization/89965
25598 * dce.c: Include rtl-iter.h.
25599 (struct check_argument_load_data): New type.
25600 (check_argument_load): New function.
25601 (find_call_stack_args): Check for loads from stack slots still tracked
25602 in sp_bytes and punt if any is found.
25603
25604 * config/mips/loongson-mmiintrin.h: Fix up #error message.
25605
25606 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
25607
25608 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
25609 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
25610
25611 2019-04-12 Martin Liska <mliska@suse.cz>
25612
25613 PR middle-end/89970
25614 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
25615 in error message.
25616 (separate_attrs): Handle multiple 'default's.
25617 (expand_target_clones): Rework error handling code.
25618
25619 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
25620
25621 PR target/87532
25622 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
25623 mode of vector rather than mode of destination for move instruction.
25624 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
25625 Use QI inner mode with V16QI vector mode.
25626
25627 2019-04-12 Jakub Jelinek <jakub@redhat.com>
25628
25629 PR target/52726
25630 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
25631 "invalid %%t operand" in output_operand_lossage message.
25632
25633 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
25634
25635 * config/s390/predicates.md (permute_pattern_operand): New
25636 predicate.
25637 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
25638 operand for the permute pattern.
25639 ("*vec_perm<mode>"): New insn definition.
25640 ("bswap<mode>"): Generate the permute pattern operand in the
25641 expander and perform the operand reloads for pre arch13 level
25642 already.
25643 ("*bswap<mode>_emu"): Rename to ...
25644 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
25645 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
25646 Add the USE operand for the permute pattern.
25647 ("*vec_set_bswap_vec<mode>"): Likewise.
25648
25649 2019-04-12 Jakub Jelinek <jakub@redhat.com>
25650
25651 PR c/89946
25652 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
25653 and gcc_unreachable if it fails, just call tree_to_uhwi which
25654 verifies that too. Test TREE_CHAIN instead of list_length > 1.
25655 Start warning message with a lower-case letter. Formatting fixes.
25656
25657 PR rtl-optimization/90026
25658 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
25659 successors, look for BARRIERs inside of the whole BB_FOOTER chain
25660 rather than just at the start of it. If e->src BB_FOOTER is not NULL
25661 in cfglayout mode, use emit_barrier_after_bb.
25662
25663 2018-04-11 Steve Ellcey <sellcey@marvell.com>
25664
25665 PR rtl-optimization/87763
25666 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
25667 New Instruction.
25668
25669 2019-04-11 Tom de Vries <tdevries@suse.de>
25670
25671 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
25672 max macro using statement expression.
25673
25674 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
25675
25676 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
25677 * xcoffout.c (xcoff_private_rodata_section_name): Define.
25678 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
25679 read_only_private_data_section using xcoff_private_rodata_section_name.
25680 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
25681
25682 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
25683
25684 PR target/90016
25685 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
25686
25687 2019-04-11 Jakub Jelinek <jakub@redhat.com>
25688
25689 PR rtl-optimization/89965
25690 * dce.c (sp_based_mem_offset): New function.
25691 (find_call_stack_args): Use sp_based_mem_offset.
25692
25693 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
25694
25695 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
25696
25697 2019-04-11 Richard Biener <rguenther@suse.de>
25698
25699 PR tree-optimization/90020
25700 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
25701 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
25702 * tree-ssa-pre.c (compute_avail): Use it to not put
25703 possibly trapping references after a call that might not
25704 return into EXP_GEN.
25705 * gcse.c (compute_hash_table_work): Do not elide
25706 marking a block containing a call if the call might not
25707 return.
25708
25709 2019-04-11 Richard Biener <rguenther@suse.de>
25710
25711 PR tree-optimization/90018
25712 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
25713 Test both SLP and interleaving variants.
25714
25715 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
25716
25717 * config/s390/8561.md: New file.
25718 * config/s390/driver-native.c (s390_host_detect_local_cpu):
25719 Add arch13 cpu model.
25720 * config/s390/s390-opts.h (enum processor_type): Likewise.
25721 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
25722 (s390_get_unit_mask): Likewise.
25723 (s390_is_fpd): Likewise.
25724 (s390_is_fxd): Likewise.
25725 * config/s390/s390.h (s390_tune_attr): Likewise.
25726 * config/s390/s390.md: Include arch13 pipeline description.
25727 * config/s390/s390.opt: Add arch13.
25728
25729 2018-04-10 Steve Ellcey <sellcey@marvell.com>
25730
25731 PR rtl-optimization/87763
25732 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
25733 New prototype.
25734 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
25735 New function.
25736 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
25737 New instruction.
25738 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
25739 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
25740 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
25741 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
25742
25743 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
25744
25745 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
25746 "Although" in -fipa-icf documentation.
25747
25748 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
25749 of using multiple -g options.
25750
25751 2019-04-10 Martin Liska <mliska@suse.cz>
25752
25753 PR gcov-profile/89959
25754 * doc/gcov.texi: Make documentation of -x option
25755 more precise.
25756
25757 2019-04-10 Richard Biener <rguenther@suse.de>
25758
25759 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
25760 member.
25761 (DR_GROUP_SAME_DR_STMT): Remove.
25762 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
25763 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
25764 replace with assert.
25765 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
25766 (vect_record_grouped_load_vectors): Remove unreachable code.
25767
25768 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
25769
25770 PR target/90016
25771 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
25772 obsolete reference to N.
25773
25774 2019-04-10 Jakub Jelinek <jakub@redhat.com>
25775
25776 PR middle-end/90025
25777 * expr.c (store_expr): Set properly size on the MEM passed to
25778 clear_storage.
25779
25780 PR c++/90010
25781 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
25782 with strlen in between hostsz-3 and hostsz-1 inclusive when no
25783 translation is needed, and when translation is needed, only append
25784 ... if the string length is hostsz or more bytes long. Avoid using
25785 strncpy or strcat.
25786
25787 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
25788
25789 PR target/90024
25790 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
25791 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
25792 into three.
25793 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
25794 differences directly.
25795 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
25796
25797 2019-04-09 Jakub Jelinek <jakub@redhat.com>
25798
25799 PR translation/90011
25800 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
25801 from diagnostics.
25802 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
25803 diagnostics.
25804 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
25805 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
25806 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
25807 trailing space from -gsplit-dwarf diagnostics.
25808
25809 PR tree-optimization/89998
25810 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
25811 instead of integer_type_node if possible, don't add ranges if return
25812 type is not compatible with int.
25813 * gimple-fold.c (gimple_fold_builtin_sprintf,
25814 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
25815 integer_type_node.
25816
25817 2019-04-09 Martin Liska <mliska@suse.cz>
25818
25819 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
25820 * doc/install.texi: Document the new config.
25821
25822 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
25823
25824 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
25825 use gimple_expr_type for load and store calls. Skip over the
25826 condition argument in a conditional internal function.
25827 Protect use of TREE_INT_CST_LOW.
25828
25829 2019-04-09 Jakub Jelinek <jakub@redhat.com>
25830
25831 PR target/90015
25832 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
25833 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
25834 trailing period from it too.
25835
25836 2019-04-08 wu yuan <wuyuan5@huawei.com>
25837
25838 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
25839 * config/aarch64/aarch64.md: Add "tsv110.md".
25840 * config/aarch64/tsv110.md: New file.
25841
25842 2019-04-08 Richard Biener <rguenther@suse.de>
25843
25844 PR tree-optimization/90006
25845 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
25846 calls like lrint.
25847
25848 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
25849
25850 PR target/83033
25851 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
25852 construction.
25853 (fma_root_node): Likewise.
25854 (func_fma_steering): Likewise.
25855
25856 2019-04-08 Jakub Jelinek <jakub@redhat.com>
25857
25858 PR rtl-optimization/89865
25859 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
25860
25861 PR rtl-optimization/89865
25862 * config/i386/i386.md
25863 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
25864 numbers not to clash with the additional operands[4].
25865 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
25866 with extra register copy in the middle.
25867
25868 2019-04-08 Martin Liska <mliska@suse.cz>
25869
25870 PR gcov-profile/89961
25871 * doc/gcov.texi: Document data_file.
25872 * gcov.c (generate_results): Add data_info into JSON output.
25873
25874 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
25875
25876 PR tree-optimization/89725
25877 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
25878 loop's chrec as invariant symbol.
25879 * tree-chrec.h (chrec_contains_symbols): New parameter.
25880 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
25881 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
25882 function of loops not in DDR's loop_nest.
25883 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
25884
25885 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
25886
25887 PR target/89623
25888 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
25889 Mask.
25890
25891 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
25892
25893 PR target/89945
25894 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
25895 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
25896
25897 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
25898
25899 * sched-deps.c (sched_macro_fuse_insns): Check return value of
25900 targetm.fixed_condition_code_regs.
25901
25902 2019-04-05 Richard Biener <rguenther@suse.de>
25903
25904 PR debug/89892
25905 PR debug/89905
25906 * tree-cfgcleanup.c (remove_forwarder_block): Always move
25907 debug bind stmts but reset them if they are not valid at the
25908 destination.
25909
25910 2019-04-05 Martin Liska <mliska@suse.cz>
25911
25912 PR translation/89936
25913 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
25914 order to wrap keywords or arguments.
25915 * collect2.c (main): Likewise.
25916 (scan_prog_file): Likewise.
25917 (scan_libraries): Likewise.
25918 * common/config/riscv/riscv-common.c
25919 (riscv_subset_list::parsing_subset_version): Likewise.
25920 (riscv_subset_list::parse_std_ext): Likewise.
25921 * config/aarch64/aarch64.c (aarch64_override_options_internal):
25922 Likewise.
25923 * config/arm/arm.c (arm_option_override): Likewise.
25924 * config/cris/cris.c (cris_print_operand): Likewise.
25925 * config/darwin-c.c (darwin_pragma_options): Likewise.
25926 (darwin_pragma_unused): Likewise.
25927 (darwin_pragma_ms_struct): Likewise.
25928 * config/ft32/ft32.c (ft32_print_operand): Likewise.
25929 * config/i386/i386.c (print_reg): Likewise.
25930 (ix86_print_operand): Likewise.
25931 * config/i386/xm-djgpp.h: Likewise.
25932 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
25933 * config/m32c/m32c.c (m32c_option_override): Likewise.
25934 * config/msp430/msp430.c (msp430_option_override): Likewise.
25935 * config/nds32/nds32.c (nds32_option_override): Likewise.
25936 * config/nvptx/mkoffload.c (main): Likewise.
25937 * config/rx/rx.c (rx_print_operand): Likewise.
25938 (valid_psw_flag): Likewise.
25939 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
25940 (vms_pragma_nomember_alignment): Likewise.
25941 (vms_pragma_extern_model): Likewise.
25942 * lto-wrapper.c (compile_offload_image): Likewise.
25943 * omp-offload.c (oacc_parse_default_dims): Likewise.
25944 * symtab.c (symtab_node::verify_base): Likewise.
25945 * tlink.c (recompile_files): Likewise.
25946 (start_tweaking): Likewise.
25947 * tree-profile.c (parse_profile_filter): Likewise.
25948
25949 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
25950
25951 PR tree-optimization/89956
25952 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
25953 multiple negates of the same value.
25954
25955 2019-04-04 Martin Sebor <msebor@redhat.com>
25956
25957 PR middle-end/89957
25958 PR middle-end/89911
25959 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
25960 have the same precision since the function crashes otherwise.
25961 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
25962 has non-zero arguments.
25963
25964 2019-04-04 Martin Sebor <msebor@redhat.com>
25965
25966 PR middle-end/89934
25967 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
25968 out if the number of arguments is less than expected.
25969
25970 2019-04-04 Jeff Law <law@redhat.com>
25971
25972 PR rtl-optimization/89399
25973 * ree.c (combine_set_extension): Use single_set rather than
25974 digging into PATTERN for items on the candidate list.
25975 (combine_reaching_defs): Likewise.
25976
25977 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
25978
25979 PR rtl-optimization/46590
25980 * loop-invariant.c (find_defs): Move df_remove_problem and
25981 df_process_deferred_rescans to move_invariants.
25982 Move df_live_add_problem and df_live_set_all_dirty calls
25983 to move_invariants.
25984 (move_invariants): Likewise.
25985 (move_loop_invariants): Likewise, making the df_live calls
25986 conditional on -O. Remove the problem again if we added it
25987 locally.
25988
25989 2019-04-03 qing zhao <qing.zhao@oracle.com>
25990
25991 PR tree-optimization/89730
25992 * ipa-inline.c (can_inline_edge_p): Delete the checking for
25993 -flive-patching=inline-only-static.
25994 (can_inline_edge_by_limits_p): Add the checking for
25995 -flive-patching=inline-only-static and grant always_inline
25996 even when -flive-patching=inline-only-static is specified.
25997
25998 2019-04-03 Jeff Law <law@redhat.com>
25999
26000 PR rtl-optimization/81025
26001 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
26002
26003 2019-04-03 Richard Biener <rguenther@suse.de>
26004
26005 PR tree-optimization/84101
26006 * tree-vect-stmts.c: Include explow.h for hard_function_value,
26007 regs.h for hard_regno_nregs.
26008 (cfun_returns): New helper.
26009 (vect_model_store_cost): When vectorizing a store to a decl
26010 we return and the function ABI returns in a multi-reg location
26011 account for the possible spilling that will happen.
26012
26013 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
26014
26015 * config/s390/s390.c (s390_legitimate_address_p): Reject long
26016 displacement addresses for vector mode operands.
26017
26018 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
26019
26020 * config/arc/arc.c (GMASK_LEN): Define.
26021 (arc_restore_callee_saves): Restore first blink when
26022 !optimize_size.
26023
26024 2019-04-03 Sudakshina Das <sudi.das@arm.com>
26025
26026 * doc/extend.texi: Add deprecated comment on sign-return-address
26027 function attribute and add mbranch-protection.
26028 * doc/invoke.texi: Add bti to the options for mbranch-protection.
26029
26030 2019-04-03 Richard Biener <rguenther@suse.de>
26031
26032 PR lto/89896
26033 * lto-wrapper.c (run_gcc): Avoid implicit rules making
26034 the all target phony.
26035
26036 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
26037
26038 PR target/89902
26039 PR target/89903
26040 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
26041 Return false for variable DImode shifts.
26042 (dimode_scalar_chain::compute_convert_gain): Do not handle
26043 register count operand in variable DImode shifts.
26044 (dimode_scalar_chain::make_vector_copies): Remove support to copy
26045 count argument of a variable shift instruction to a vector register.
26046 (dimode_scalar_chain::convert_reg): Remove support to convert
26047 count argument of a variable shift instruction.
26048
26049 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
26050
26051 PR rtl-optimization/84206
26052 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
26053 iterating over loop headers.
26054
26055 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
26056
26057 PR rtl-optimization/85876
26058 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
26059 beyond the original fence.
26060
26061 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
26062
26063 * config.gcc: Mark spu* targets as deprecated/obsolete.
26064
26065 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26066
26067 * config/s390/s390-builtin-types.def: New builtin function type
26068 definitions. Remove unused types.
26069 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
26070 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
26071 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
26072 overloaded builtins.
26073 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
26074 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
26075 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
26076 (vec_double, vec_signed, vec_unsigned): Define to use the new
26077 overloaded builtins.
26078 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
26079 Remove expanders.
26080
26081 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26082
26083 * config/s390/s390-builtin-types.def: New builtin function type
26084 definitions.
26085 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
26086 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
26087 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
26088 (s390_vstrszh, s390_vstrszf): New low-level builtins.
26089 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
26090 constant definitions.
26091 * config/s390/vecintrin.h (vec_search_string_cc)
26092 (vec_search_string_until_zero_cc): New builtin name definitions.
26093 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
26094 expanders.
26095 ("vec_vstrs<mode>"): New insn definition.
26096
26097 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26098
26099 * config/s390/s390-builtin-types.def: Add new builtin function
26100 types.
26101 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
26102 New overloaded builtins.
26103 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
26104 s390_vsrd.
26105 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
26106 (UNSPEC_VEC_SLDBYTE): ... this.
26107 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
26108 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
26109 definitions.
26110 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
26111 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
26112 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
26113
26114 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26115
26116 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
26117 New insn definition.
26118 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
26119 * config/s390/vector.md (V_HW_HSD): ... here.
26120
26121 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26122
26123 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
26124 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
26125 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
26126 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
26127 New insn definitions.
26128
26129 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26130
26131 * config/s390/s390-builtin-types.def: Add new builtin function type.
26132 * config/s390/s390-builtins.def: Add overloaded builtin
26133 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
26134 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
26135 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
26136 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
26137 ("eltswap<mode>"): New expander.
26138 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
26139 insn definitions.
26140
26141 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26142
26143 * config/s390/s390-builtin-types.def: Add new builtin function types.
26144 * config/s390/s390-builtins.def: Add overloaded builtin
26145 s390_vec_revb. Add low-level builtins for vlbr and vstbr
26146 instructions.
26147 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
26148 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
26149 ("bswap<mode>"): New expander.
26150 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
26151
26152 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26153
26154 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
26155 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
26156 vector builtin version number in __VEC__.
26157
26158 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26159
26160 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
26161 iterators.
26162 (SFSI): New mode attribute.
26163 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
26164 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
26165 rename to ...
26166 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
26167 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
26168 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
26169 ("floatsi<mode>2"): Add wcefb instruction.
26170
26171 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26172
26173 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
26174 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
26175 mode iterators.
26176 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
26177 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
26178 support 32 bit fp-int conversions. Rename to ...
26179 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
26180 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
26181 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
26182 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
26183 ... to these.
26184
26185 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26186
26187 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
26188 if-then-else constructs if we can use the select instruction.
26189 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
26190
26191 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26192
26193 * config/s390/s390.md ("*popcountdi_arch13_cc")
26194 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
26195 definition.
26196 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
26197 Append _z196 to make it ...
26198 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
26199 ("popcounthi2_z196"): ... this.
26200 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
26201 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
26202
26203 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26204
26205 * config/s390/s390.c (s390_canonicalize_comparison): Convert
26206 certain compares for arch13 in order to make use of the condition
26207 code result produced by the new instructions.
26208 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
26209 nxrk, and nxgrk instruction patterns.
26210 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
26211 (inv_no): Add new code iterator together with some attributes.
26212 ("*andc_split_<mode>"): Disable splitter for arch13.
26213 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
26214 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
26215 ("*<ANDOR:bitops_name>c<GPR:mode>")
26216 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
26217 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
26218 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
26219 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
26220
26221 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26222
26223 * common/config/s390/s390-common.c (processor_flags_table): New
26224 entry for arch13.
26225 * config.gcc: Support arch13 with the --with-arch= configure flag.
26226 * config/s390/driver-native.c (s390_host_detect_local_cpu):
26227 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
26228 * config/s390/s390.c (s390_get_sched_attrmask)
26229 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
26230 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
26231 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
26232 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
26233 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
26234 definitions.
26235 * config/s390/s390.opt: Support arch13 as processor type in
26236 command line options.
26237
26238 2019-04-02 Martin Liska <mliska@suse.cz>
26239
26240 PR translation/89912
26241 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
26242 Fix param description of graphite-max-arrays-per-scop.
26243
26244 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
26245
26246 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
26247 (ASAN_CC1_SPEC): Use it in 64-bit mode.
26248 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
26249
26250 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
26251
26252 PR rtl-optimization/85412
26253 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
26254 sel_sched_region_1, not after.
26255
26256 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
26257
26258 PR rtl-optimization/86928
26259 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
26260 compute_live if necessary.
26261 (sel_redirect_edge_and_branch): Likewise.
26262
26263 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
26264
26265 PR rtl-optimization/89865
26266 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
26267 register if it is a part of small class.
26268
26269 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
26270
26271 PR rtl-optimization/87273
26272 * sel-sched-ir.c (merge_fences): Remove assert.
26273
26274 2019-04-01 Richard Biener <rguenther@suse.de>
26275
26276 PR tree-optimization/46590
26277 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
26278 (dom_walker::m_reachability): Add in place of...
26279 (dom_walker::m_skip_unreachable_blocks): ...this.
26280 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
26281 Move complex initialization ...
26282 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
26283 lazily and initialize edge flags on each invocation.
26284 (dom_walker::bb_reachable): Use m_reachability.
26285
26286 2019-04-01 Martin Liska <mliska@suse.cz>
26287
26288 PR driver/89861
26289 * opt-suggestions.c (option_proposer::build_option_suggestions):
26290 Add variant without any argument in order to provide better
26291 hints.
26292
26293 2019-04-01 Richard Biener <rguenther@suse.de>
26294
26295 PR c/71598
26296 * gimple.c: Include langhooks.h.
26297 (gimple_get_alias_set): Treat enumeral types as the underlying
26298 integer type.
26299
26300 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
26301 Eric Botcazou <ebotcazou@adacore.com>
26302
26303 PR rtl-optimization/89862
26304 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
26305 that operates on the full registers for WORD_REGISTER_OPERATIONS
26306 architectures.
26307
26308 2019-03-29 Jim Wilson <jimw@sifive.com>
26309
26310 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
26311 Clear MASK_RVC and then set if C subset supported.
26312
26313 2019-03-29 Jakub Jelinek <jakub@redhat.com>
26314
26315 PR c/89872
26316 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
26317 non-addressable complit into its initializer if it is volatile.
26318
26319 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
26320
26321 * opts-common.c (integral_argument): Set errno properly in one case.
26322
26323 2019-03-29 Martin Liska <mliska@suse.cz>
26324
26325 * doc/invoke.texi: Remove -Wchkp from documentation.
26326
26327 2019-03-29 Martin Liska <mliska@suse.cz>
26328
26329 * dbgcnt.c (print_limit_reach): New function.
26330 (dbg_cnt): Use it.
26331
26332 2019-03-29 Martin Liska <mliska@suse.cz>
26333
26334 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
26335 (dbg_cnt_process_opt): Parse first tokens aas
26336 dbg_cnt_process_single_pair is also using strtok.
26337
26338 2019-03-29 Jakub Jelinek <jakub@redhat.com>
26339
26340 PR rtl-optimization/87485
26341 * function.c (expand_function_end): Move stack_protect_epilogue
26342 before loading of return value into hard register(s).
26343
26344 2019-03-28 Jakub Jelinek <jakub@redhat.com>
26345
26346 PR middle-end/89621
26347 * tree-inline.h (struct copy_body_data): Add
26348 dont_remap_vla_if_no_change flag.
26349 * tree-inline.c (remap_type_3, remap_type_2): New functions.
26350 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
26351 and remap_type_2 returns false.
26352 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
26353 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
26354 only from where it is copied to nested contexts.
26355
26356 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
26357
26358 PR target/89865
26359 * config/i386/i386.md (RMW operation with LEA peephole):
26360 Use LEAMODE mode attribute instead of SWI mode iterator for
26361 LEA pattern.
26362
26363 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
26364
26365 PR target/89848
26366 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
26367 Also process XEXP (src, 0) of a shift insn.
26368
26369 2019-03-28 David Malcolm <dmalcolm@redhat.com>
26370
26371 PR middle-end/89725
26372 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
26373 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
26374
26375 2019-03-28 Jakub Jelinek <jakub@redhat.com>
26376
26377 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
26378 test.
26379 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
26380 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
26381 immediately after first one with df_analyze in between, but rather
26382 process all bbs, queueing ones that need second pass in a worklist,
26383 df_analyze, process queued debug insn changes and if second pass is
26384 needed, process bbs from worklist, df_analyze, process queued debug
26385 insns again.
26386
26387 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
26388 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
26389 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
26390
26391 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
26392
26393 PR c/79022
26394 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
26395 definition.
26396
26397 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
26398
26399 PR target/85667
26400 * config/i386/i386.c (ix86_function_value_1): Call the newly added
26401 function for 32-bit MS_ABI.
26402 (function_value_ms_32): New function.
26403
26404 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
26405
26406 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
26407 (movdi): Call gen_movdi_symbol_save_scc.
26408 (gen_movdi_symbol_save_scc): New insn and split.
26409
26410 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
26411
26412 PR rtl-optimization/89313
26413 * function.c (matching_constraint_num): New static function.
26414 (match_asm_constraints_1): Use it. Fixup white space and comment.
26415 Don't replace inputs with non-matching constraints which conflict
26416 with early clobber outputs.
26417
26418 2019-03-27 Jeff Law <law@redhat.com>
26419
26420 PR rtl-optimization/87761
26421 PR rtl-optimization/89826
26422 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
26423 slightly later.
26424 (pass_cprop_hardreg::execute): Call df_analyze after adding the
26425 note problem to get REG_DEAD/REG_UNUSED notes updated.
26426
26427 2019-03-27 Richard Biener <rguenther@suse.de>
26428
26429 PR tree-optimization/89463
26430 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
26431 queue edges to remove.
26432 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
26433 dead stmts. Delay edge removal until PHIs are removed to
26434 make debug-stmt creation not confused by seemingly degenerate
26435 PHIs.
26436
26437 2019-03-27 Alan Modra <amodra@gmail.com>
26438
26439 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
26440 throughout file.
26441 * config/rs6000/darwin.h: Likewise.
26442 * config/rs6000/rs6000.c: Likewise.
26443
26444 2019-03-27 Alan Modra <amodra@gmail.com>
26445
26446 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
26447 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
26448
26449 2019-03-26 Andrew Waterman <andrew@sifive.com>
26450 Jim Wilson <jimw@sifive.com>
26451
26452 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
26453 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
26454 (generic_idivdi, generic_fmul_single, generic_fmul_double)
26455 (generic_fdiv, generic_fsqrt): Add check for generic tune.
26456 (generic_alu): Add auipc to type list.
26457 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
26458 (riscv_microarchitecture): Declare.
26459 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
26460 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
26461 field.
26462 (riscv_microarchitecture): New.
26463 (sifive_7_tune_info): New.
26464 (riscv_cpu_info_table): Add microarchitecture value for rocket and
26465 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
26466 entries.
26467 (riscv_store_data_bypass_p): New.
26468 (riscv_option_override): Set riscv_microarchitecture from
26469 cpu->microarchitecture.
26470 * config/riscv/riscv.md: Include sifive-7.md.
26471 (type): Add auipc.
26472 (tune): New.
26473 (auipc<mode>): Change type to auipc.
26474 (restore_stack_nonlocal): New.
26475 * config/riscv/sifive-7.md: New.
26476 * doc/invoke.texi (RISC-V Options): Update mtune docs.
26477
26478 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
26479
26480 PR target/89827
26481 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
26482 Also process XEXP (src, 0) of a shift insn.
26483
26484 2019-03-26 Richard Biener <rguenther@suse.de>
26485
26486 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
26487 (copy_debug_stmt): Likewise.
26488 (expand_call_inline): Likewise.
26489 (copy_bb): Avoid redundant lookup & set of gimple_block.
26490 * gimple-low.c (lower_gimple_return): Likewise.
26491 (lower_builtin_setjmp): Likewise.
26492
26493 2019-03-26 Jakub Jelinek <jakub@redhat.com>
26494
26495 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
26496 is constant 0, turn into static const data member initialized to false.
26497 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
26498 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
26499
26500 2019-03-26 Jason Merrill <jason@redhat.com>
26501 Jakub Jelinek <jakub@redhat.com>
26502
26503 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
26504 method.
26505 (mem_alloc_description::release_object_overhead): Fix comment typos.
26506 * hash-table.h (hash_table::~hash_table): Call
26507 release_instance_overhead only if m_entries is non-NULL, otherwise
26508 call unregister_descriptor.
26509
26510 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
26511
26512 PR tree-optimization/81740
26513 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
26514 In case of outer loop vectorization, check for backward dependence
26515 at the inner loop if outer loop dependence is reversed.
26516
26517 2019-03-26 Alan Modra <amodra@gmail.com>
26518
26519 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
26520 rs6000_vector_mem init. Correct wI and wJ comment.
26521
26522 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
26523
26524 PR rtl-optimization/88347
26525 PR rtl-optimization/88423
26526 * sched-deps.c (sched_analyze_insn): Take into account that for
26527 tablejumps the barrier appears after a label and a jump_table_data.
26528
26529 2019-03-25 Martin Sebor <msebor@redhat.com>
26530
26531 PR c/89812
26532 * c-common.c (check_user_alignment): Rename local. Correct maximum
26533 alignment in diagnostic. Avoid assuming argument fits in SHWI,
26534 convert it to UHWI when it fits.
26535
26536 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
26537
26538 PR debug/86964
26539 * dwarf2out.c (premark_used_variables): New function.
26540 (prune_unused_types_walk): Do not mark not premarked external
26541 variables.
26542 (prune_unused_types): Call premark_used_variables.
26543
26544 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
26545
26546 PR rtl-optimization/89676
26547 * lra-constraints.c (curr_insn_transform): Do match reload for
26548 early clobbers when the match was successful only for different
26549 registers.
26550
26551 2019-03-25 Martin Sebor <msebor@redhat.com>
26552
26553 * doc/extend.texi (Common Type Attributes): Document vector_size.
26554 (Common Variable Attributes): Mention size constraint. Correct
26555 quoting and typos.
26556 (Vector Extensions): Use @dfn when defining bas type. Clarify
26557 base type and size constraints.
26558
26559 2019-03-25 Richard Biener <rguenther@suse.de>
26560
26561 PR tree-optimization/89789
26562 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
26563 changes from non-undefined back to undefined.
26564
26565 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
26566
26567 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
26568 heap string and a gc string, but since this variable is unknown to
26569 ggc the gc string might get reused and corrupted. Fixed by always
26570 using a heap string.
26571
26572 2019-03-25 Richard Biener <rguenther@suse.de>
26573
26574 PR tree-optimization/89779
26575 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
26576 to remove IV defs, delay actual removal.
26577 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
26578 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
26579 very end, properly also reset loop control IV information.
26580
26581 2019-03-25 Richard Biener <rguenther@suse.de>
26582
26583 PR tree-optimization/89802
26584 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
26585 move EH data to folded stmt.
26586
26587 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
26588
26589 * config/s390/s390-builtin-types.def: Remove few unused types and
26590 fix sort order for others.
26591
26592 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
26593
26594 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
26595 expected and found types with -mdebug during builtin matching.
26596
26597 2019-03-25 Richard Biener <rguenther@suse.de>
26598
26599 PR middle-end/89790
26600 * fold-const.c (operand_equal_p): Revert last change with
26601 updated comment.
26602
26603 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
26604
26605 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
26606 notes for the result of the __tls_get_addr calls.
26607 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
26608
26609 2019-03-24 Jeff Law <law@redhat.com>
26610
26611 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
26612
26613 PR rtl-optimization/87761
26614 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
26615 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
26616 as needed.
26617 (pass_cprop_hardreg::execute): Add df note problem and defer insn
26618 rescans. Reprocess blocks as needed, calling df_analyze before
26619 reprocessing. Always call df_analyze before fixing up debug bind
26620 insns.
26621
26622 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
26623
26624 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
26625 big endian.
26626
26627 2019-03-22 Andrew Pinski <apinski@marvell.com>
26628
26629 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
26630 attrribute for uxtw.
26631
26632 2019-03-26 Jeff Law <law@redhat.com>
26633
26634 PR rtl-optimization/87761
26635 * config/mips/mips-protos.h (mips_split_move): Add new argument.
26636 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
26637 (mips_split_move): Accept new INSN argument. Try to forward SRC
26638 into the next instruction.
26639 (mips_split_move_insn): Pass INSN through to mips_split_move.
26640
26641 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
26642
26643 PR rtl-optimization/89676
26644 * lra-constraints.c (curr_insn_transform): Do match reload for
26645 early clobbers even if the match was successful.
26646
26647 2019-03-22 Jakub Jelinek <jakub@redhat.com>
26648
26649 PR c++/87481
26650 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
26651
26652 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
26653
26654 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
26655
26656 2019-03-22 Jakub Jelinek <jakub@redhat.com>
26657
26658 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
26659 <avx512>_fmsub_<mode>_mask3<round_name>,
26660 <avx512>_fnmadd_<mode>_mask3<round_name>,
26661 <avx512>_fnmsub_<mode>_mask3<round_name>,
26662 avx512f_vmfmadd_<mode>_mask3<round_name>,
26663 avx512f_vmfmsub_<mode>_mask3<round_name>,
26664 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
26665 instead of register_operand and %v instead of v for match_operand 1.
26666 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
26667 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
26668 <round_nimm_predicate> instead of register_operand and %v instead of v
26669 for match_operand 1.
26670
26671 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
26672 <avx512>_fmadd_<mode>_mask3<round_name>,
26673 <avx512>_fmsub_<mode>_mask<round_name>,
26674 <avx512>_fmsub_<mode>_mask3<round_name>,
26675 <avx512>_fnmadd_<mode>_mask<round_name>,
26676 <avx512>_fnmadd_<mode>_mask3<round_name>,
26677 <avx512>_fnmsub_<mode>_mask<round_name>,
26678 <avx512>_fnmsub_<mode>_mask3<round_name>,
26679 <avx512>_fmaddsub_<mode>_mask<round_name>,
26680 <avx512>_fmaddsub_<mode>_mask3<round_name>,
26681 <avx512>_fmsubadd_<mode>_mask<round_name>,
26682 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
26683 <round_nimm_predicate> instead of nonimmediate_operand.
26684 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
26685 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
26686 Use register_operand instead of <round_nimm_predicate> for the
26687 operand that needs to match output.
26688 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
26689 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
26690 Likewise. Formatting fixes.
26691
26692 PR target/89784
26693 * config/i386/i386.c (enum ix86_builtins): Remove
26694 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
26695 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
26696 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
26697 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
26698 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
26699 __builtin_ia32_vfmsubss3_mask3): New builtins.
26700 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
26701 avx512f_vmfmadd_<mode>_mask3<round_name>,
26702 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
26703 *avx512f_vmfmsub_<mode>_mask<round_name>,
26704 avx512f_vmfmsub_<mode>_mask3<round_name>,
26705 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
26706 *avx512f_vmfnmadd_<mode>_mask<round_name>,
26707 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
26708 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
26709 *avx512f_vmfnmsub_<mode>_mask<round_name>,
26710 avx512f_vmfnmsub_<mode>_mask3<round_name>,
26711 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
26712 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
26713 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
26714 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
26715 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
26716 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
26717 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
26718 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
26719 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
26720 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
26721 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
26722 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
26723 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
26724 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
26725 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
26726 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
26727 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
26728 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
26729 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
26730 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
26731 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
26732 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
26733
26734 2019-03-21 Martin Sebor <msebor@redhat.com>
26735
26736 PR tree-optimization/89350
26737 * builtins.c (compute_objsize): Also ignore offsets whose upper
26738 bound is negative.
26739 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
26740 (builtin_memref::builtin_memref): Initialize new member.
26741 Allow EXPR to be null.
26742 (builtin_memref::extend_offset_range): Replace local with a member.
26743 Avoid assuming pointer offsets are unsigned.
26744 (builtin_memref::set_base_and_offset): Determine base object
26745 before computing offset range.
26746 (builtin_access::builtin_access): Handle memset.
26747 (builtin_access::generic_overlap): Replace local with a member.
26748 (builtin_access::strcat_overlap): Same.
26749 (builtin_access::overlap): Same.
26750 (maybe_diag_overlap): Same.
26751 (maybe_diag_access_bounds): Same.
26752 (wrestrict_dom_walker::check_call): Handle memset.
26753 (check_bounds_or_overlap): Same.
26754
26755 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
26756 Jakub Jelinek <jakub@redhat.com>
26757
26758 PR lto/89692
26759 * tree.c (fld_type_variant, fld_incomplete_type_of,
26760 fld_process_array_type): Call fld->pset.add and don't call
26761 add_tree_to_fld_list if it returns true.
26762 (free_lang_data_in_type): Similarly with self-recursive call. Purge
26763 non-marked types from TYPE_NEXT_VARIANT list.
26764 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
26765
26766 2019-03-21 Jakub Jelinek <jakub@redhat.com>
26767
26768 * hash-table.h (hash_table): Add Lazy template parameter defaulted
26769 to false, if true, don't alloc_entries during construction, but defer
26770 it to the first method that needs m_entries allocated.
26771 (hash_table::hash_table, hash_table::~hash_table,
26772 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
26773 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
26774 hash_table::clear_slot, hash_table::traverse_noresize,
26775 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
26776 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
26777 false.
26778 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
26779 NO_INSERT instead of find_with_hash.
26780 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
26781 hash_set::m_table): Add Lazy to template params of hash_table.
26782 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
26783 * attribs.c (test_attribute_exclusions): Likewise.
26784 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
26785 hash_set. Add tests for hash_set with Lazy = true.
26786
26787 2019-03-21 Richard Biener <rguenther@suse.de>
26788
26789 PR tree-optimization/89779
26790 * tree.c (tree_nop_conversion): Consolidate and fix defensive
26791 checks with respect to released SSA names now having error_mark_node
26792 type.
26793 * fold-const.c (operand_equal_p): Likewise.
26794
26795 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
26796
26797 PR target/89775
26798 * config/s390/s390.c (global_not_special_regno_p): Move to make it
26799 available to ...
26800 (s390_optimize_register_info): Use global_not_special_regno_p to
26801 check for global regs.
26802
26803 2019-03-20 Jakub Jelinek <jakub@redhat.com>
26804
26805 PR target/89752
26806 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
26807 update this_alternative nor this_alternative_set.
26808
26809 2019-03-19 Jim Wilson <jimw@sifive.com>
26810
26811 PR target/89411
26812 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
26813 align, size, offset. Use them to handle a BLKmode reference. Update
26814 comment.
26815 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
26816
26817 2019-03-19 Jakub Jelinek <jakub@redhat.com>
26818
26819 PR rtl-optimization/89768
26820 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
26821 instead of GEN_INT.
26822 (unroll_loop_runtime_iterations): Likewise.
26823
26824 2019-03-19 Martin Sebor <msebor@redhat.com>
26825
26826 PR tree-optimization/89644
26827 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
26828 rather than endptr as an indicator of nul-termination.
26829
26830 PR tree-optimization/89644
26831 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
26832 arrays in determining sequence sizes in strncpy and stpncpy.
26833
26834 2019-03-19 Martin Liska <mliska@suse.cz>
26835
26836 PR middle-end/89737
26837 * predict.c (combine_predictions_for_bb): Empty likely_edges and
26838 unlikely_edges if there's an edge that belongs to both these sets.
26839
26840 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
26841
26842 PR target/89746
26843 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
26844 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
26845 go via a stack temporary.
26846
26847 2019-03-19 Jakub Jelinek <jakub@redhat.com>
26848
26849 PR target/89378
26850 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
26851 instead of gen_rtx_SUBREG.
26852 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
26853
26854 2019-03-19 Richard Biener <rguenther@suse.de>
26855
26856 PR debug/88389
26857 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
26858
26859 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
26860
26861 PR lto/87809
26862 PR lto/89335
26863 * tree.c (free_lang_data_in_decl): Do not free context of C++
26864 destrutors.
26865
26866 2019-03-19 Jakub Jelinek <jakub@redhat.com>
26867
26868 PR target/89506
26869 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
26870 subs for the first alternative except when operands[3] is 1.
26871
26872 PR target/89752
26873 * gimplify.c (gimplify_asm_expr): For output argument with
26874 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
26875 diagnose error.
26876
26877 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
26878
26879 PR rtl-optimization/89753
26880 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
26881 explicit unrolling factor even more robust.
26882
26883 2019-03-19 Jakub Jelinek <jakub@redhat.com>
26884
26885 PR target/89726
26886 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
26887 compensation use x2 += 1 instead of x2 -= -1 and when honoring
26888 signed zeros, do another copysign after the compensation.
26889
26890 2019-03-18 Martin Sebor <msebor@redhat.com>
26891
26892 PR tree-optimization/89720
26893 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
26894 more conservatively, the same as anti-range.
26895
26896 2019-03-18 Richard Biener <rguenther@suse.de>
26897
26898 PR middle-end/88945
26899 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
26900 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
26901 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
26902 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
26903
26904 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
26905
26906 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
26907 Extend queue to 1024 entries.
26908 Add "consumed" field.
26909 (gomp_print_output): Remove print_index parameter.
26910 Add final parameter.
26911 Change limit to unsigned.
26912 Use consumed field to implement circular buffer.
26913 Detect interrupted print in final pass.
26914 Flush output at the end.
26915 (run): Update gomp_print_output usage.
26916 (main): Initialize kernargs->output_data.consumed.
26917
26918 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
26919
26920 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
26921 calculation of the minimum number of scalar iterations for
26922 fully-predicated loops.
26923
26924 2019-03-18 Martin Jambor <mjambor@suse.cz>
26925
26926 PR tree-optimization/89546
26927 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
26928 any propagation to its children took place.
26929
26930 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
26931
26932 PR target/89627
26933 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
26934 parameter, and make use of it.
26935 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
26936
26937 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
26938
26939 * config/arc/arc.opt (mcode-density-frame): Get the inital value
26940 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
26941 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
26942 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
26943 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
26944 match what the ops is doing.
26945 (push_multi_fp_blink): Likewise.
26946 * config/arc/arc.c (arc_override_options): Enable enter/leave when
26947 compiling for size and elf target.
26948 (arc_save_callee_enter): Adjust note to match what enter/leave
26949 operation does.
26950
26951 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
26952
26953 * config/arc/arc.md (tst_movb): Fix constraint.
26954
26955 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
26956
26957 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
26958
26959 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
26960
26961 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
26962 * config/arc/arc.c (arc_conditional_register_usage): Remove all
26963 reg_alloc_order references.
26964 (size_alloc_order): Define.
26965 (arc_adjust_reg_alloc_order): New function.
26966 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
26967 order.
26968 (ADJUST_REG_ALLOC_ORDER): Define.
26969 (HONOR_REG_ALLOC_ORDER): Likewise.
26970
26971 2019-03-18 Richard Biener <rguenther@suse.de>
26972
26973 PR target/87561
26974 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
26975 loads and stores a bit more.
26976
26977 2019-03-18 Richard Biener <rguenther@suse.de>
26978
26979 PR target/87561
26980 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
26981 load pessimization to stores as well.
26982
26983 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
26984
26985 PR middle-end/86979
26986 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
26987 successor, use NULL as its av set.
26988
26989 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
26990
26991 PR rtl-optimization/89721
26992 * lra-constraints (invariant_p): Return false if side_effects_p holds.
26993
26994 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
26995
26996 PR target/87532
26997 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26998 When handling vec_extract, use modular arithmetic to allow
26999 constant selectors greater than vector length.
27000 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
27001 V1TImode vectors to have constant selector values greater than 0.
27002 Use modular arithmetic to compute vector index.
27003 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
27004 index for in-memory vectors. Correct code generation for
27005 in-register vectors.
27006 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
27007 compute index.
27008
27009 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
27010
27011 PR c++/88534
27012 PR c++/88537
27013 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
27014 VAR_DECL args.
27015
27016 2019-03-15 Jakub Jelinek <jakub@redhat.com>
27017
27018 PR c++/89709
27019 * tree.c (inchash::add_expr): Strip any location wrappers.
27020 * fold-const.c (operand_equal_p): Move stripping of location wrapper
27021 after hash verification.
27022
27023 PR debug/89704
27024 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
27025 SIGN_EXTEND and ZERO_EXTEND.
27026
27027 2019-03-14 Jason Merrill <jason@redhat.com>
27028 Jakub Jelinek <jakub@redhat.com>
27029
27030 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
27031 than if is_empty (*slot).
27032 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
27033 existing elt and for elt removal.
27034 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
27035 of already removed elt.
27036
27037 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
27038
27039 PR target/89650
27040 * config/i386/i386.c (remove_partial_avx_dependency): Handle
27041 REG_EH_REGION note.
27042
27043 2019-03-14 Martin Liska <mliska@suse.cz>
27044
27045 PR other/89712
27046 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
27047
27048 2019-03-14 Richard Biener <rguenther@suse.de>
27049
27050 PR target/89711
27051 * config/i386/i386.c (make_resolver_func): Properly set
27052 DECL_CONTEXT on the RESULT_DECL.
27053 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
27054
27055 2019-03-14 Richard Biener <rguenther@suse.de>
27056
27057 * gimple-pretty-print.c: Include cfgloop.h.
27058 (dump_gimple_phi): Adjust.
27059 (dump_gimple_bb_header): Dump loop header for GIMPLE.
27060 (pp_cfg_jump): Adjust.
27061 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
27062 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
27063 (lower_phi_internal_fn): Remove.
27064 (verify_gimple_call): Remove IFN_PHI special-casing.
27065 (dump_function_to_file): Dump IL state.
27066 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
27067 done to deal with PHI nodes being present in non-SSA state.
27068
27069 2019-03-14 Jakub Jelinek <jakub@redhat.com>
27070
27071 PR ipa/89684
27072 * multiple_target.c (create_dispatcher_calls): Change
27073 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
27074 In the node->iterate_referring loop, push *ref rather than ref, call
27075 ref->remove_reference () and always pass 0 to iterate_referring.
27076
27077 PR rtl-optimization/89679
27078 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
27079 would contain a paradoxical SUBREG.
27080
27081 2019-03-14 Richard Biener <rguenther@suse.de>
27082
27083 PR tree-optimization/89710
27084 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
27085 safe_dyn_cast.
27086
27087 2019-03-14 Martin Liska <mliska@suse.cz>
27088
27089 * coverage.c (coverage_begin_function): Stream also
27090 end_column.
27091 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
27092 documentation about function declaration location.
27093 * gcov-dump.c (tag_function): Print whole range
27094 of function declaration.
27095 * gcov.c (struct function_info): Add end_column field.
27096 (function_info::function_info): Initialize it.
27097 (output_json_intermediate_file): Output {start,end}_column
27098 fields.
27099 (read_graph_file): Read end_column.
27100
27101 2019-03-14 Richard Biener <rguenther@suse.de>
27102
27103 PR middle-end/89698
27104 * fold-const.c (operand_equal_p): For INDIRECT_REF check
27105 that the access types are similar.
27106
27107 2019-03-14 Jakub Jelinek <jakub@redhat.com>
27108
27109 PR tree-optimization/89703
27110 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
27111 aren't compatible also with builtin_decl_explicit. Check pure
27112 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
27113 and BUILT_IN_STPNCPY{,_CHK}.
27114
27115 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
27116
27117 PR target/89523
27118 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
27119 addr32 prefix to VSIB address for X32.
27120 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
27121 "%M2" to opcode.
27122 (*avx512pf_gatherpf<mode>df_mask): Likewise.
27123 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
27124 (*avx512pf_scatterpf<mode>df_mask): Likewise.
27125 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
27126 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
27127 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
27128 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
27129 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
27130 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
27131 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
27132 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
27133 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
27134 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
27135 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
27136 (*avx512f_scatterdi<mode>): Likewise.
27137
27138 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
27139
27140 PR target/85860
27141 * lra-constraints.c (inherit_in_ebb): Update
27142 potential_reload_hard_regs along with live_hard_regs.
27143
27144 2019-03-13 Jakub Jelinek <jakub@redhat.com>
27145
27146 PR debug/89498
27147 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
27148 DWARF_OFFSET_SIZE.
27149 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
27150
27151 2019-03-13 Martin Sebor <msebor@redhat.com>
27152
27153 PR tree-optimization/89662
27154 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
27155 has a size.
27156
27157 2019-03-13 Richard Biener <rguenther@suse.de>
27158
27159 PR middle-end/89677
27160 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
27161 throw FP expressions at tree-affine.
27162
27163 2019-03-14 Richard Biener <rguenther@suse.de>
27164
27165 * tree-pretty-print.c (dump_generic_node): For -gimple properly
27166 dump negative integer constants using _Literal (type) -num.
27167
27168 2019-03-13 Jakub Jelinek <jakub@redhat.com>
27169
27170 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
27171 nonlocal_value member.
27172
27173 PR middle-end/88588
27174 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
27175 (ipa_simd_modify_function_body): Handle PHIs.
27176
27177 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
27178
27179 * config/s390/s390.c (s390_option_override_internal): Use more
27180 aggressive inlining parameters.
27181
27182 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
27183
27184 * config/s390/3906.md: New file.
27185 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
27186 (LONGRUNNING_THRESHOLD): Remove.
27187 (MAX_SCHED_MIX_SCORE): Decrease.
27188 (MAX_SCHED_MIX_DISTANCE): Decrease.
27189 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
27190 (struct s390_sched_state): New struct to hold scheduling state.
27191 (S390_SCHED_STATE_NORMAL): Remove.
27192 (S390_SCHED_STATE_CRACKED): Remove.
27193 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
27194 (s390_get_sched_attrmask): Use new attribute.
27195 (s390_get_unit_mask): Use new units.
27196 (s390_is_fpd): New function.
27197 (s390_is_fxd): New function.
27198 (s390_is_longrunning): New function.
27199 (s390_sched_score): Use new functions.
27200 (s390_sched_reorder): Likewise.
27201 (s390_sched_variable_issue): Rework and use new functions.
27202 (s390_sched_init): Use new functions.
27203 * config/s390/s390.h (s390_tune_attr): Add z14.
27204 * config/s390/s390.md: Add z14.
27205
27206 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
27207
27208 * config/s390/2964.md: Update pipeline description.
27209 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
27210 (LONGRUNNING_THRESHOLD): Remove.
27211 (LATENCY_FACTOR): Remove.
27212 (s390_get_unit_mask): Add unit.
27213 (s390_sched_score): Use fxd/fpd.
27214 (s390_sched_variable_issue): Use fxd/fpd.
27215
27216 2019-03-12 Martin Liska <mliska@suse.cz>
27217
27218 * config/i386/i386.c: Reword an error message.
27219
27220 2019-03-12 Martin Jambor <mjambor@suse.cz>
27221
27222 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
27223 terminate with newline.
27224
27225 2019-03-12 Jakub Jelinek <jakub@redhat.com>
27226
27227 PR target/52726
27228 * config/s390/s390.md (tabort): Use %wd instead of
27229 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
27230 letters and periods.
27231 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
27232 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
27233 's with %< and %>.
27234
27235 PR middle-end/89663
27236 * builtins.c (expand_builtin_int_roundingfn,
27237 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
27238 gcc_unreachable if validate_arglist fails.
27239
27240 2019-03-12 Richard Biener <rguenther@suse.de>
27241
27242 PR tree-optimization/89664
27243 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
27244 free the occurance tree after the early out.
27245
27246 2019-03-11 Jakub Jelinek <jakub@redhat.com>
27247
27248 PR middle-end/89655
27249 PR bootstrap/89656
27250 * vr-values.c (vr_values::update_value_range): If
27251 old_vr->varying_p (), don't update it, make new_vr also VARYING
27252 and return false.
27253
27254 2019-03-11 Martin Liska <mliska@suse.cz>
27255
27256 * config/aarch64/aarch64.c (aarch64_override_options_internal):
27257 Fix double string quoting.
27258
27259 2019-03-11 Martin Liska <mliska@suse.cz>
27260
27261 * collect-utils.c (collect_wait): Wrap apostrophes
27262 in gcc internal format with %'.
27263 * collect2.c (main): Likewise.
27264 (scan_prog_file): Likewise.
27265 (scan_libraries): Likewise.
27266 * config/i386/i386.c (ix86_expand_call): Likewise.
27267 (ix86_handle_interrupt_attribute): Likewise.
27268 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
27269 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
27270 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
27271 * lto-wrapper.c (find_crtoffloadtable): Likewise.
27272 * symtab.c (symtab_node::verify_base): Likewise.
27273 * tree-cfg.c (verify_gimple_label): Likewise.
27274 * tree.c (verify_type_variant): Likewise.
27275
27276 2019-03-11 Martin Liska <mliska@suse.cz>
27277
27278 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
27279 in a string format message and fix GNU coding style.
27280 (expand_builtin_set_thread_pointer): Likewise.
27281 * common/config/aarch64/aarch64-common.c
27282 (aarch64_rewrite_selected_cpu): Likewise.
27283 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
27284 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
27285 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
27286 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
27287 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
27288 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
27289 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
27290 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
27291 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
27292 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
27293 Likewise.
27294 * common/config/riscv/riscv-common.c
27295 (riscv_subset_list::parsing_subset_version): Likewise.
27296 (riscv_subset_list::parse_std_ext): Likewise.
27297 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
27298 (riscv_subset_list::parse): Likewise.
27299 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
27300 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
27301 (aarch64_override_options_internal): Likewise.
27302 (aarch64_validate_mcpu): Likewise.
27303 (aarch64_validate_march): Likewise.
27304 (aarch64_validate_mtune): Likewise.
27305 (aarch64_override_options): Likewise.
27306 * config/alpha/alpha.c (alpha_option_override): Likewise.
27307 * config/arc/arc.c (arc_init): Likewise.
27308 (parse_mrgf_banked_regs_option): Likewise.
27309 (arc_override_options): Likewise.
27310 (arc_expand_builtin_aligned): Likewise.
27311 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
27312 (arm_expand_builtin): Likewise.
27313 * config/arm/arm.c (arm_option_check_internal): Likewise.
27314 (arm_configure_build_target): Likewise.
27315 (arm_option_override): Likewise.
27316 (arm_options_perform_arch_sanity_checks): Likewise.
27317 (arm_handle_cmse_nonsecure_entry): Likewise.
27318 (arm_handle_cmse_nonsecure_call): Likewise.
27319 (arm_tls_referenced_p): Likewise.
27320 (thumb1_expand_prologue): Likewise.
27321 * config/avr/avr.c (avr_option_override): Likewise.
27322 * config/bfin/bfin.c (bfin_option_override): Likewise.
27323 * config/c6x/c6x.c (c6x_option_override): Likewise.
27324 * config/cr16/cr16.c (cr16_override_options): Likewise.
27325 * config/cris/cris.c (cris_option_override): Likewise.
27326 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
27327 * config/darwin-c.c (macosx_version_as_macro): Likewise.
27328 * config/darwin.c (darwin_override_options): Likewise.
27329 * config/frv/frv.c (frv_expand_builtin): Likewise.
27330 * config/h8300/h8300.c (h8300_option_override): Likewise.
27331 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
27332 (ix86_option_override_internal): Likewise.
27333 (warn_once_call_ms2sysv_xlogues): Likewise.
27334 (ix86_expand_prologue): Likewise.
27335 (split_stack_prologue_scratch_regno): Likewise.
27336 (ix86_warn_parameter_passing_abi): Likewise.
27337 * config/ia64/ia64.c (fix_range): Likewise.
27338 * config/m68k/m68k.c (m68k_option_override): Likewise.
27339 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
27340 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
27341 (mips_set_compression_mode): Likewise.
27342 * config/mmix/mmix.c (mmix_option_override): Likewise.
27343 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
27344 * config/msp430/msp430.c (msp430_option_override): Likewise.
27345 * config/nds32/nds32.c (nds32_option_override): Likewise.
27346 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
27347 (nios2_option_override): Likewise.
27348 (nios2_expand_custom_builtin): Likewise.
27349 * config/nvptx/mkoffload.c (main): Likewise.
27350 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
27351 * config/pa/pa.c (fix_range): Likewise.
27352 (pa_option_override): Likewise.
27353 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
27354 (riscv_option_override): Likewise.
27355 * config/rl78/rl78.c (rl78_option_override): Likewise.
27356 * config/rs6000/aix61.h: Likewise.
27357 * config/rs6000/aix71.h: Likewise.
27358 * config/rs6000/aix72.h: Likewise.
27359 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
27360 * config/rs6000/freebsd64.h: Likewise.
27361 * config/rs6000/linux64.h: Likewise.
27362 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
27363 (rs6000_expand_zeroop_builtin): Likewise.
27364 (rs6000_expand_mtfsb_builtin): Likewise.
27365 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
27366 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
27367 (rs6000_invalid_builtin): Likewise.
27368 (rs6000_expand_split_stack_prologue): Likewise.
27369 * config/rs6000/rtems.h: Likewise.
27370 * config/rx/rx.c (valid_psw_flag): Likewise.
27371 (rx_expand_builtin): Likewise.
27372 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
27373 * config/s390/s390.c (s390_expand_builtin): Likewise.
27374 (s390_function_profiler): Likewise.
27375 (s390_option_override_internal): Likewise.
27376 (s390_option_override): Likewise.
27377 * config/sh/sh.c (sh_option_override): Likewise.
27378 (sh_builtin_saveregs): Likewise.
27379 (sh_fix_range): Likewise.
27380 * config/sh/vxworks.h: Likewise.
27381 * config/sparc/sparc.c (sparc_option_override): Likewise.
27382 * config/spu/spu.c (spu_option_override): Likewise.
27383 (fix_range): Likewise.
27384 * config/visium/visium.c (visium_option_override): Likewise.
27385 (visium_handle_interrupt_attr): Likewise.
27386 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
27387 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
27388 (dbg_cnt_process_opt): Likewise.
27389 * dwarf2out.c (output_dwarf_version): Likewise.
27390 * except.c (expand_eh_return): Likewise.
27391 * gcc.c (defined): Likewise.
27392 (driver_handle_option): Likewise.
27393 (process_command): Likewise.
27394 (compare_files): Likewise.
27395 (driver::prepare_infiles): Likewise.
27396 (driver::do_spec_on_infiles): Likewise.
27397 (driver::maybe_run_linker): Likewise.
27398 * omp-offload.c (oacc_parse_default_dims): Likewise.
27399 * opts-global.c (handle_common_deferred_options): Likewise.
27400 * opts.c (parse_sanitizer_options): Likewise.
27401 (common_handle_option): Likewise.
27402 (enable_warning_as_error): Likewise.
27403 * passes.c (enable_disable_pass): Likewise.
27404 * plugin.c (parse_plugin_arg_opt): Likewise.
27405 (default_plugin_dir_name): Likewise.
27406 * targhooks.c (default_expand_builtin_saveregs): Likewise.
27407 (default_pch_valid_p): Likewise.
27408 * toplev.c (init_asm_output): Likewise.
27409 (process_options): Likewise.
27410 (toplev::run_self_tests): Likewise.
27411 * tree-cfg.c (verify_gimple_call): Likewise.
27412 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
27413 (tree_inlinable_function_p): Likewise.
27414 * var-tracking.c (vt_find_locations): Likewise.
27415
27416 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
27417
27418 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
27419 only on the else branch.
27420
27421 2019-03-11 Martin Liska <mliska@suse.cz>
27422
27423 * gcov.c (output_intermediate_json_line): Print function
27424 name of each line.
27425 (output_json_intermediate_file): Add new argument.
27426 * doc/gcov.texi: Document the change.
27427
27428 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
27429
27430 PR rtl-optimization/89588
27431 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
27432 explicit unrolling factor more robust.
27433
27434 2019-03-11 Richard Biener <rguenther@suse.de>
27435
27436 PR tree-optimization/89649
27437 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
27438 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
27439 on the prolog and epilog loops.
27440 (vect_loop_versioning): Return copy of loop.
27441 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
27442 on the non-vectorized version of the loop.
27443
27444 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
27445
27446 PR target/68924
27447 * config/i386/sse.md (*vec_extractv2di_0_sse):
27448 Add (=r,x) alternative and corresponding splitter.
27449
27450 2019-03-10 Martin Jambor <mjambor@suse.cz>
27451
27452 PR tree-optimization/85762
27453 PR tree-optimization/87008
27454 PR tree-optimization/85459
27455 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
27456 it points to if there is a type changing MEM_REF. Adjust all callers.
27457 (build_accesses_from_assign): Disable total scalarization if
27458 contains_vce_or_bfcref_p returns true through the new parameter, for
27459 both rhs and lhs.
27460
27461 2019-03-09 Jakub Jelinek <jakub@redhat.com>
27462
27463 PR c/88568
27464 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
27465 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
27466
27467 PR target/79645
27468 * common.opt (fdiagnostics-show-labels,
27469 fdiagnostics-show-line-numbers, fdiagnostics-format=,
27470 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
27471 gas-locview-support, ginline-points, ginternal-reset-location-views):
27472 Terminate description text with a dot.
27473 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
27474 * config/mcore/mcore.opt (m210, m340): Likewise.
27475 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
27476 mnops=): Start description text with a capital letter.
27477 * config/arc/arc.opt (msize-level=): Likewise.
27478 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
27479 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
27480 mnewlib): Likewise.
27481 * config/ft32/ft32.opt (msim): Likewise.
27482 (mft32b, mcompress): Likewise. Terminate description text with a dot.
27483 (mnodiv, mnopm): Terminate description text with a dot.
27484 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
27485 a colon.
27486 * config/i386/i386.opt (prefer_vector_width, instrument_return):
27487 Likewise.
27488 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
27489 text.
27490
27491 PR rtl-optimization/89634
27492 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
27493 are modified in BB_END (e->src) instruction.
27494
27495 2019-03-08 David Malcolm <dmalcolm@redhat.com>
27496
27497 PR target/79926
27498 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
27499 messages more amenable to translation, and improve wording.
27500
27501 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
27502
27503 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
27504 ud- and du-chains between phases.
27505
27506 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
27507
27508 PR debug/89631
27509 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
27510 instead of POLY_INT_CST.
27511
27512 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
27513
27514 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
27515 requirement.
27516
27517 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
27518
27519 PR target/68924
27520 PR target/78782
27521 PR target/87558
27522 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
27523 (_mm_storeu_si64): Ditto.
27524
27525 2019-03-08 Martin Liska <mliska@suse.cz>
27526
27527 PR target/86952
27528 * config/i386/i386.c (ix86_option_override_internal): Disable
27529 jump tables when retpolines are used.
27530
27531 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
27532
27533 PR go/63560
27534 * ipa-split.c (execute_split_functions): Do not split
27535 'noinline' or 'section' function.
27536
27537 2019-03-08 Jakub Jelinek <jakub@redhat.com>
27538
27539 PR target/79846
27540 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
27541 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
27542 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
27543
27544 PR ipa/80000
27545 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
27546 from diagnostics. Formatting fixes.
27547
27548 PR target/85665
27549 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
27550 warn_odr diagnostics.
27551
27552 PR other/80058
27553 * lra-constraints.c (process_alt_operands): Avoid one space before
27554 " at the end of line and another after " on another line in a string
27555 literal.
27556 * attribs.c (handle_dll_attribute): Likewise.
27557 * config/avr/avr-devices.c (avr_texinfo): Likewise.
27558
27559 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
27560 warning_at or inform messages in G_() if there is no ?:.
27561
27562 PR tree-optimization/89550
27563 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
27564 returned true. Formatting fixes.
27565 (expand_builtin_strnlen): Formatting fixes.
27566 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
27567 if warning_at returned true.
27568 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
27569
27570 2019-03-08 Richard Biener <rguenther@suse.de>
27571
27572 PR middle-end/89578
27573 * cfgloop.h (struct loop): Add owned_clique field.
27574 * cfgloopmanip.c (copy_loop_info): Copy it.
27575 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
27576 cliques.
27577 * tree-inline.c (copy_loops): Remap owned_clique.
27578 * lto-streamer-in.c (input_cfg): Stream owned_clique.
27579 * lto-streamer-out.c (output_cfg): Likewise.
27580
27581 2019-03-08 Jakub Jelinek <jakub@redhat.com>
27582
27583 PR target/80190
27584 * config/darwin.c: Include intl.h.
27585 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
27586 composing the message out of two separate parts.
27587
27588 2019-03-07 Jakub Jelinek <jakub@redhat.com>
27589
27590 PR target/80003
27591 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
27592 doesn't start with a capital letter and doesn't end with a dot.
27593 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
27594 with a capital letter.
27595 (ix86_mangle_function_version_assembler_name): Likewise.
27596 (ix86_generate_version_dispatcher_body): Likewise.
27597 (fold_builtin_cpu): Likewise.
27598 (get_builtin_code_for_version): Likewise. Remove extraneous space.
27599 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
27600 translators, wrap full type name in %qs.
27601
27602 PR translation/79999
27603 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
27604 depend clause with source (or sink) modifier.
27605 * omp-expand.c (expand_omp_ordered_sink): Likewise.
27606
27607 PR target/89602
27608 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
27609 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
27610 (avx512f_load<mode>_mask): New define_expand.
27611 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
27612 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
27613 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
27614 __builtin_ia32_movess_mask): New builtins.
27615 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
27616 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
27617 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
27618 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
27619
27620 2019-03-07 Martin Jambor <mjambor@suse.cz>
27621
27622 PR lto/87525
27623 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
27624 for extern inline functions.
27625
27626 2019-03-07 Martin Jambor <mjambor@suse.cz>
27627
27628 PR ipa/88235
27629 * cgraph.h (cgraph_node): New inline method former_thunk_p.
27630 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
27631 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
27632 have multiple callees. At the end check if declarations match as
27633 opposed to cgraph_nodes.
27634
27635 2019-03-07 Martin Liska <mliska@suse.cz>
27636
27637 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
27638 which is equivalent to searching for this in clones chain.
27639 * symtab.c (symtab_node::verify_base): Similarly compare ASM
27640 names with a neighbour and special case first node in a chain.
27641
27642 2019-01-25 Jason Merrill <jason@redhat.com>
27643
27644 PR c++/80916 - spurious "static but not defined" warning.
27645 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
27646 for an internal symbol with DECL_EXTERNAL.
27647
27648 2019-04-07 Richard Biener <rguenther@suse.de>
27649
27650 PR middle-end/89618
27651 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
27652 * tree-inline.c (copy_loops): Simplify.
27653
27654 2019-03-07 Martin Liska <mliska@suse.cz>
27655
27656 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
27657
27658 2019-03-07 Richard Biener <rguenther@suse.de>
27659
27660 PR tree-optimization/89595
27661 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
27662 stmt iterator as reference, take boolean output parameter to
27663 indicate whether the stmt was removed and thus the iterator
27664 already advanced.
27665 (dom_opt_dom_walker::before_dom_children): Re-iterate over
27666 stmts created by folding.
27667
27668 2019-03-07 Jakub Jelinek <jakub@redhat.com>
27669
27670 PR c++/89585
27671 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
27672 at toplevel.
27673
27674 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
27675
27676 PR rtl-optimization/88845
27677 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
27678 LRA.
27679 * lra.c (remove_scratches_1): New function.
27680 (remove_scratches): Use it.
27681 (lra_emit_move): Likewise.
27682
27683 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
27684
27685 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
27686 unaligned_access variable.
27687 * config/arc/arc.c (arc_override_options): Set unaligned access
27688 default on for HS CPUs.
27689 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
27690
27691 2019-03-06 Martin Liska <mliska@suse.cz>
27692
27693 PR gcov-profile/89577
27694 * doc/gcov.texi: Prefer to use --coverage.
27695 * doc/sourcebuild.texi: Likewise.
27696
27697 2019-03-02 Jason Merrill <jason@redhat.com>
27698
27699 PR c++/86485 - -Wmaybe-unused with empty class ?:
27700 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
27701
27702 2019-03-05 Jakub Jelinek <jakub@redhat.com>
27703
27704 PR target/89587
27705 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
27706 if_multiarch.
27707
27708 PR middle-end/89590
27709 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
27710 exactly one argument.
27711
27712 2019-03-05 Jakub Jelinek <jakub@redhat.com>
27713 Richard Sandiford <richard.sandiford@arm.com>
27714
27715 PR tree-optimization/89570
27716 * match.pd (vec_cond into cond_op simplification): Don't use
27717 get_conditional_internal_fn, use as_internal_fn (cond_op).
27718
27719 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
27720
27721 PR target/89222
27722 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
27723 to decide when to split off a non-zero offset from a symbol.
27724 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
27725 in function symbols.
27726
27727 2019-03-05 Richard Biener <rguenther@suse.de>
27728
27729 PR tree-optimization/89594
27730 * tree-if-conv.c (pass_if_conversion::execute): Handle
27731 case where .LOOP_VECTORIZED_FUNCTION was removed.
27732
27733 2019-03-05 Jakub Jelinek <jakub@redhat.com>
27734
27735 PR bootstrap/89560
27736 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
27737 instead alloca it only when needed with the needed size.
27738
27739 PR tree-optimization/89570
27740 * match.pd (vec_cond into cond_op simplification): Guard with
27741 vectorized_internal_fn_supported_p test and #if GIMPLE.
27742
27743 PR tree-optimization/89566
27744 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
27745 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
27746 Punt if get_user_idx_format succeeds, but idx_format argument is
27747 not provided or doesn't have pointer type, or if idx_args is above
27748 number of provided arguments.
27749
27750 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
27751
27752 PR tree-optimization/89437
27753 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
27754
27755 2019-03-04 Richard Biener <rguenther@suse.de>
27756
27757 PR middle-end/89572
27758 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
27759 safe_dyn_cast.
27760
27761 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
27762
27763 PR tree-optimization/89487
27764 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
27765 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
27766 (distribute_loop): Don't do runtime alias check if there is non-
27767 addressable data reference.
27768 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
27769 is a register variable.
27770
27771 2019-03-02 Jakub Jelinek <jakub@redhat.com>
27772
27773 PR target/89506
27774 * config/arm/arm.md (cmpsi2_addneg): Use
27775 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
27776 If operands[2] is 0 or INT_MIN, force use of subs.
27777 (*compare_scc splitter): Use gen_int_mode.
27778 (*negscc): Likewise.
27779 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
27780
27781 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
27782 Monk Chiang <sh.chiang04@gmail.com>
27783
27784 * common/config/riscv/riscv-common.c: Include sstream.
27785 (riscv_subset_list::to_string): New.
27786 (riscv_arch_str): Likewise.
27787 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
27788 * config.in: Regen.
27789 * config/riscv/riscv-protos.h (riscv_arch_str): New.
27790 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
27791 (riscv_emit_attribute): New.
27792 (riscv_file_start): Emit attribute if needed.
27793 (riscv_option_override): Init riscv_emit_attribute_p.
27794 * config/riscv/riscv.opt (mriscv-attribute): New option.
27795 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
27796 * configure: Regen.
27797 * doc/install.texi: Document --with-riscv-attribute.
27798 * doc/invoke.texi: Document -mriscv-attribute.
27799
27800 * common/config/riscv/riscv-common.c:
27801 Include config/riscv/riscv-protos.h.
27802 (INCLUDE_STRING): Defined.
27803 (RISCV_DONT_CARE_VERSION): Defined.
27804 (riscv_subset_t): Declare.
27805 (riscv_subset_t::riscv_subset_t): New.
27806 (riscv_subset_list): Declare.
27807 (riscv_subset_list::riscv_subset_list): New.
27808 (riscv_subset_list::~riscv_subset_list): Likewise.
27809 (riscv_subset_list::parsing_subset_version): Likewise.
27810 (riscv_subset_list::parse_std_ext): Likewise.
27811 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
27812 (riscv_subset_list::add): Likewise.
27813 (riscv_subset_list::lookup): Likewise.
27814 (riscv_subset_list::xlen): Likewise.
27815 (riscv_subset_list::parse): Likewise.
27816 (riscv_supported_std_ext): Likewise.
27817 (current_subset_list): Likewise.
27818 (riscv_parse_arch_string): Using riscv_subset_list::parse to
27819 parse.
27820
27821 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
27822
27823 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
27824 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
27825 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
27826
27827 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
27828
27829 PR rtl-optimization/85899
27830 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
27831 fallthru edges leading to the exit block.
27832
27833 2019-03-01 Tamar Christina <tamar.christina@arm.com>
27834
27835 PR target/89517
27836 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
27837 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
27838
27839 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
27840
27841 PR tree-optimization/89535
27842 * tree-vect-stmts.c (vectorizable_call): Record the vector types
27843 for each operand. Calculate the fallback choice for mask operands
27844 and pass it to vect_get_vec_def_for_operand.
27845
27846 2019-03-01 Richard Biener <rguenther@suse.de>
27847
27848 PR middle-end/89541
27849 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
27850 get virtual operands.
27851 (get_expr_operands): Handle CONST_DECL like other decls.
27852
27853 2019-03-01 Jakub Jelinek <jakub@redhat.com>
27854
27855 PR middle-end/89503
27856 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
27857 on DECL_P and EXPR_P.
27858
27859 2019-03-01 Richard Biener <rguenther@suse.de>
27860
27861 PR middle-end/89497
27862 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
27863 argument, defaulted to zero.
27864 * passes.c (execute_function_todo): Pass down SSA update flags
27865 to cleanup_tree_cfg.
27866 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
27867 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
27868 form if requested.
27869 (cleanup_tree_cfg): Get and pass down SSA update flags.
27870
27871 2019-03-01 Jakub Jelinek <jakub@redhat.com>
27872
27873 PR bootstrap/89539
27874 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
27875 early_lto_debug argument.
27876
27877 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
27878
27879 PR tree-optimization/89536
27880 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
27881 only whether bit #0 of the value is 0 instead of the entire value.
27882
27883 2019-02-28 Marek Polacek <polacek@redhat.com>
27884
27885 PR c++/87068 - missing diagnostic with fallthrough statement.
27886 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
27887 at the end of a seq, save its location to walk_stmt_info.
27888 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
27889 a switch.
27890
27891 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
27892
27893 PR lto/88585
27894 * tree.c (find_atomic_core_type): Move ahead in file.
27895 (check_base_type): Correctly compare alignments of atomic types.
27896
27897 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
27898
27899 PR target/89455
27900 * config/i386/i386.c (get_builtin_code_for_version): Identify
27901 Westmere from PCLMUL, instead of AES.
27902
27903 2019-02-28 Jakub Jelinek <jakub@redhat.com>
27904
27905 PR target/89434
27906 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
27907 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
27908 -UINTVAL (...).
27909
27910 2019-02-28 Tamar Christina <tamar.christina@arm.com>
27911
27912 PR target/88530
27913 * config/aarch64/aarch64-option-extensions.def: Document it.
27914 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
27915 if empty hwcaps.
27916
27917 2019-02-28 Jakub Jelinek <jakub@redhat.com>
27918
27919 PR c/89520
27920 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
27921 builtins if they don't have a single scalar floating point argument.
27922 Formatting fixes.
27923
27924 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
27925
27926 PR rtl-optimization/89490
27927 * varasm.c (get_block_for_section): Bail out for mergeable sections.
27928 (default_use_anchors_for_symbol_p, output_object_block): Assert the
27929 block section is not mergeable.
27930
27931 2019-02-27 Jakub Jelinek <jakub@redhat.com>
27932
27933 PR target/70341
27934 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
27935 old define_insn to ...
27936 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
27937 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
27938 Rename old define_insn to ...
27939 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
27940 (thumb2_casesi_internal_pic): New define_expand. Rename old
27941 define_insn to ...
27942 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
27943 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
27944 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
27945
27946 2019-02-27 Richard Biener <rguenther@suse.de>
27947
27948 PR debug/88878
27949 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
27950
27951 2019-02-27 Richard Biener <rguenther@suse.de>
27952
27953 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
27954 building.
27955
27956 2019-02-27 Richard Biener <rguenther@suse.de>
27957
27958 PR debug/88878
27959 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
27960 parameter, prefix section name with .gnu.debuglto_ if true.
27961 (dwarf2out_finish): Pass false to output_comdat_type_unit.
27962 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
27963
27964 2019-02-27 Richard Biener <rguenther@suse.de>
27965
27966 PR debug/89514
27967 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
27968 rather than on use_debug_types, doing what output_die does.
27969 (value_format): Likewise.
27970
27971 2019-02-27 Martin Jambor <mjambor@suse.cz>
27972 Martin Sebor <msebor@redhat.com>
27973
27974 * doc/invoke.texi (Warning Options): Reword description of
27975 -Wno-absolute-value.
27976
27977 2019-02-27 Jakub Jelinek <jakub@redhat.com>
27978
27979 PR tree-optimization/89280
27980 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
27981 builtin_setjmp_setup_bb): New functions.
27982 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
27983 When visiting __builtin_setjmp_setup block, queue in special
27984 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
27985 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
27986 from visited after the loop if they don't have any visited successor
27987 blocks.
27988
27989 2018-02-26 Steve Ellcey <sellcey@marvell.com>
27990
27991 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
27992 New function.
27993 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
27994
27995 2019-02-26 Jakub Jelinek <jakub@redhat.com>
27996
27997 PR c++/89507
27998 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
27999 with types other than sizetype/ssizetype.
28000
28001 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
28002
28003 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
28004 (enum sparc_processor_type): ...this.
28005 (enum sparc_code_model_type): New enumeration type.
28006 (enum sparc_memory_model_type): Tweak comments.
28007 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
28008 (mtune): Likewise.
28009 (mcmodel): Use sparc_code_model enumeration and variable.
28010 (sparc_code_model): New enumeration.
28011 (mdebug): Add Undocumented marker.
28012 * config/sparc/sparc.h (enum cmodel): Delete.
28013 (sparc_cmodel): Likewise.
28014 (TARGET_CM_MEDLOW): Adjust to above renaming.
28015 (TARGET_CM_MEDMID): Likewise.
28016 (TARGET_CM_MEDANY): Likewise.
28017 (TARGET_CM_EMBMEDANY): Likewise.
28018 * config/sparc/sparc.c (sparc_cmodel): Delete.
28019 (sparc_option_override): Remove string/value mapping support for the
28020 code model. Move code and memory model support to after the handling
28021 of target flags. Do private machine setup last.
28022 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
28023 (sparc_legitimize_reload_address): Likewise.
28024 (sparc_output_mi_thunk): Likewise.
28025 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
28026
28027 2019-02-26 Jakub Jelinek <jakub@redhat.com>
28028
28029 PR tree-optimization/89500
28030 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
28031 (handle_builtin_strlen): Remove noncst_bound variable. Always
28032 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
28033 cst if the first cst bytes starting at x are known to be non-zero,
28034 even if the string is not zero terminated. Don't try to modify
28035 *si for strnlen. Update strlen_to_stridx only for strlen or if
28036 we can prove strnlen returns the same value as strlen would.
28037
28038 2019-02-26 Martin Liska <mliska@suse.cz>
28039
28040 * alloc-pool.h (struct pool_usage): Remove extra
28041 print_dash_line.
28042 * bitmap.h (struct bitmap_usage): Likewise.
28043 * ggc-common.c (struct ggc_usage): Likewise.
28044 * mem-stats.h (struct mem_usage): Likewise.
28045 (mem_alloc_description::dump): Print dash lines
28046 here and repeat header at the end of a table report.
28047 It's then more readable.
28048 * tree-phinodes.c (phinodes_print_statistics): Make
28049 horizontal alignment.
28050 * tree-ssanames.c (ssanames_print_statistics): Likewise.
28051 * vec.c (struct vec_usage): Remove extra print_dash_line.
28052 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
28053
28054 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
28055
28056 * doc/extend.texi (__builtin_object_size):
28057 Use @pxref instead of @xref inside parenthesis.
28058 (__builtin_has_attribute): Add missing comma after @xref.
28059 (__builtin_object_size): Ditto.
28060 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
28061
28062 2019-02-26 Jeff Law <law@redhat.com>
28063
28064 PR rtl-optimization/87761
28065 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
28066 detect obviously dead insns and delete them.
28067
28068 2019-02-26 Richard Biener <rguenther@suse.de>
28069
28070 PR tree-optimization/89505
28071 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
28072 to handle restrict pointed-to vars with multiple subvars
28073 correctly.
28074
28075 2019-02-26 Richard Biener <rguenther@suse.de>
28076
28077 PR tree-optimization/89489
28078 * tree-parloops.c (create_loop_fn): Copy over last_clique.
28079
28080 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
28081
28082 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
28083 and move around comment.
28084 <BIT_AND_EXPR>: Likewise.
28085 <BIT_NOT_EXPR>: Add specific handling for boolean types.
28086
28087 2019-02-26 Jakub Jelinek <jakub@redhat.com>
28088
28089 PR target/89474
28090 * config/i386/i386.c (remove_partial_avx_dependency): Call
28091 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
28092 after changing possibly many instructions to use that pseudo. Fix up
28093 insertion of v4sf_const0 setter at the start of bb.
28094
28095 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
28096
28097 PR c/80409
28098 * doc/extend.texi (Variadic Pointer Args): New section.
28099
28100 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
28101 Martin Sebor <msebor@gmail.com>
28102
28103 * common.opt (Wattribute-alias): Likewise.
28104 * doc/invoke.texi (Option Summary): List general form of
28105 -Wattribute-alias=. List positive form of -Wmissing-attributes.
28106 (-Wmissing-attributes): Invert entry, rewrite and correct default.
28107 Add cross-references.
28108 (-Wattribute-alias): Rewrite and correct default. Mention
28109 considered attributes (same as for -Wmissing-attributes).
28110
28111 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
28112
28113 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
28114 (_mm_cvtpd_ps): Likewise.
28115 (_mm_cvttpd_epi32): Likewise.
28116
28117 PR target/89338
28118 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
28119 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
28120
28121 PR target/89339
28122 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
28123
28124 2019-02-25 Tamar Christina <tamar.christina@arm.com>
28125
28126 PR target/88530
28127 * common/config/aarch64/aarch64-common.c
28128 (struct aarch64_option_extension): Add is_synthetic.
28129 (all_extensions): Use it.
28130 (TARGET_OPTION_INIT_STRUCT): Define hook.
28131 (struct gcc_targetm_common): Moved to end.
28132 (all_extensions_by_on): New.
28133 (opt_ext_cmp, typedef opt_ext): New.
28134 (aarch64_option_init_struct): New.
28135 (aarch64_contains_opt): New.
28136 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
28137 * config/aarch64/aarch64-option-extensions.def
28138 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
28139 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
28140 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
28141 Set is_synthetic to false.
28142 (crypto): Set is_synthetic to true.
28143 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
28144 SYNTHETIC.
28145
28146 2019-02-25 Tamar Christina <tamar.christina@arm.com>
28147
28148 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
28149 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
28150 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
28151 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
28152 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
28153 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
28154 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
28155 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
28156 Rename ...
28157 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
28158 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
28159 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
28160 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
28161 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
28162 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
28163 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
28164 vfmlsl_laneq_high_f16): ... To this.
28165 * config/arm/neon.md: Update comments.
28166
28167 2019-02-25 Tamar Christina <tamar.christina@arm.com>
28168
28169 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
28170 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
28171 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
28172 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
28173 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
28174 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
28175 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
28176 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
28177 Rename ...
28178 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
28179 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
28180 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
28181 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
28182 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
28183 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
28184 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
28185 vfmlslq_laneq_high_f16): ... To this.
28186
28187 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
28188
28189 PR rtl-optimization/86096
28190 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
28191 comparing mw_order values.
28192
28193 2019-02-25 Jakub Jelinek <jakub@redhat.com>
28194
28195 PR target/89434
28196 * config/arm/arm.md (*subsi3_carryin_const): Use
28197 arm_neg_immediate_operand predicate instead of
28198 arm_not_immediate_operand, "L" constraint instead of "K" and
28199 print it using %n2 instead of %B2.
28200 (*subsi3_carryin_const0): New define_insn.
28201 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
28202 instead of arm_not_operand and "I" constraint instead of "K" and
28203 print it using %n3 instead of %B2. Instead of using match_dup 2 add
28204 another match_operand and in the condition check that it is negation
28205 of operands[2].
28206 (*subsi3_carryin_compare_const0): New define_ins.
28207 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
28208 *subsi3_carryin_const.
28209 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
28210 split into *subsi3_carryin_compare_const0 if the highpart is zero.
28211
28212 PR target/89438
28213 * config/arm.vfp.md (*negdf2_vfp): Use
28214 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
28215 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
28216
28217 2019-02-24 Jakub Jelinek <jakub@redhat.com>
28218
28219 PR rtl-optimization/89445
28220 * simplify-rtx.c (simplify_ternary_operation): Don't use
28221 simplify_merge_mask on operands that may trap.
28222 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
28223 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
28224 second operand is CONST_VECTOR, check if any element could be zero.
28225 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
28226 their operands can trap.
28227
28228 2019-02-23 Martin Sebor <msebor@redhat.com>
28229
28230 * gimple-ssa-sprintf.c (target_strtol): Rename...
28231 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
28232 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
28233 check for range error.
28234
28235 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
28236
28237 PR driver/69471
28238 * opts-common.c (prune_options): Also prune joined switches
28239 with Negative and RejectNegative.
28240 * config/i386/i386.opt (march=): Add Negative(march=).
28241 (mtune=): Add Negative(mtune=).
28242 * doc/options.texi: Document Negative used together with Joined
28243 and RejectNegative.
28244
28245 2019-02-22 Martin Sebor <msebor@redhat.com>
28246
28247 * doc/extend.texi (Other Builtins): Add
28248 __builtin_is_constant_evaluated.
28249
28250 2019-02-22 Richard Biener <rguenther@suse.de>
28251
28252 PR tree-optimization/87609
28253 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
28254
28255 2019-02-22 Jeff Law <law@redhat.com>
28256
28257 PR rtl-optimization/87761
28258 * config/mips/mips.md: Add new combiner pattern to recognize
28259 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
28260
28261 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
28262
28263 PR target/89324
28264 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
28265 destination register in peepholes generating patterns for ADDS/SUBS.
28266 (add<mode>3_compare0,
28267 *addsi3_compare0_uxtw, add<mode>3_compareC,
28268 add<mode>3_compareV_imm, add<mode>3_compareV,
28269 *adds_<optab><ALLX:mode>_<GPI:mode>,
28270 *subs_<optab><ALLX:mode>_<GPI:mode>,
28271 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
28272 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
28273 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
28274 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
28275 sub<mode>3_compare1): Allow stack pointer for source register.
28276 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
28277
28278 2019-02-22 Martin Sebor <msebor@redhat.com>
28279
28280 PR tree-optimization/88993
28281 PR tree-optimization/88853
28282 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
28283 New helper.
28284 (sprintf_dom_walker::call_info::is_string_func): New helper.
28285 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
28286 for formatted string functions.
28287 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
28288
28289 2019-02-22 Martin Sebor <msebor@redhat.com>
28290
28291 PR c/89425
28292 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
28293 unreachable subexpressions.
28294
28295 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
28296 Hongtao Liu <hongtao.liu@intel.com>
28297 Sunil K Pandey <sunil.k.pandey@intel.com>
28298
28299 PR target/87007
28300 * config/i386/i386-passes.def: Add
28301 pass_remove_partial_avx_dependency.
28302 * config/i386/i386-protos.h
28303 (make_pass_remove_partial_avx_dependency): New.
28304 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
28305 New function.
28306 (pass_data_remove_partial_avx_dependency): New.
28307 (pass_remove_partial_avx_dependency): Likewise.
28308 (make_pass_remove_partial_avx_dependency): Likewise.
28309 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
28310 (*extendsfdf2): Add avx_partial_xmm_update.
28311 (truncdfsf2): Likewise.
28312 (*float<SWI48:mode><MODEF:mode>2): Likewise.
28313 (SF/DF conversion splitters): Disabled for TARGET_AVX.
28314
28315 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
28316
28317 PR middle-end/85598
28318 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
28319 analysis for pass.
28320
28321 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
28322
28323 PR target/89444
28324 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
28325 (PTA_SKYLAKE): Add PTA_AES.
28326 (PTA_GOLDMONT): Likewise.
28327
28328 2019-02-22 Sudakshina Das <sudi.das@arm.com>
28329
28330 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
28331 instruction if enabled.
28332 (aarch64_override_options): Remove reference to return address key.
28333
28334 2019-02-22 Richard Biener <rguenther@suse.de>
28335
28336 PR tree-optimization/89440
28337 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
28338 not necessary assert.
28339
28340 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
28341
28342 PR fortran/72741
28343 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
28344 (oacc_replace_fn_attrib_attr): ... this new function.
28345 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
28346 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
28347
28348 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28349
28350 * config/arm/arm-cpus.in (ares): Rename to...
28351 (neoverse-n1): ... This. Add ares as alias.
28352 * config/arm/arm-tables.opt: Regenerate.
28353 * config/arm/arm-tune.md: Likewise.
28354 * doc/invoke.txt (ARM Options): Document neoverse-n1.
28355
28356 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28357
28358 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
28359 * config/aarch64/aarch64-tune.md: Regenerate.
28360 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
28361
28362 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28363
28364 * config/aarch64/aarch64.c (ares_tunings): Rename to...
28365 (neoversen1_tunings): ... This.
28366 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
28367 (neoverse-n1): New CPU.
28368 * config/aarch64/aarch64-tune.md: Regenerate.
28369 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
28370
28371 2019-02-22 Richard Biener <rguenther@suse.de>
28372
28373 PR middle-end/87609
28374 * cfghooks.h (dependence_hash): New typedef.
28375 (struct copy_bb_data): New type.
28376 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
28377 (duplicate_block): Likewise.
28378 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
28379 (copy_bbs): Create and pass down copy_bb_data.
28380 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
28381 (rtl_duplicate_bb): Likewise.
28382 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
28383 remap dependence info.
28384
28385 2019-02-22 Richard Biener <rguenther@suse.de>
28386
28387 PR tree-optimization/87609
28388 * tree-core.h (tree_base): Document special clique values.
28389 * tree-inline.c (remap_dependence_clique): Do not use the
28390 special clique value of one.
28391 (maybe_set_dependence_info): Use clique one.
28392 (clear_dependence_clique): New callback.
28393 (compute_dependence_clique): Clear clique one from all refs
28394 before assigning it (again).
28395
28396 2019-02-21 Martin Sebor <msebor@redhat.com>
28397
28398 * doc/extend.texi (__clear_cache): Correct signature.
28399
28400 2019-02-21 Ian Lance Taylor <iant@golang.org>
28401
28402 PR go/89170
28403 * varasm.c (decode_addr_const): Call lookup_constant_def rather
28404 than output_constant_def.
28405 (add_constant_to_table): New static function.
28406 (output_constant_def): Call add_constant_to_table.
28407 (tree_output_constant_def): Likewise.
28408
28409 2019-02-21 Jakub Jelinek <jakub@redhat.com>
28410
28411 PR c++/89285
28412 * builtins.c (fold_builtin_arith_overflow): If first two args are
28413 INTEGER_CSTs, set intres and ovfres to constants rather than calls
28414 to ifn.
28415
28416 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
28417
28418 PR target/87412
28419 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
28420 error for -mindirect-branch/-mfunction-return with incompatible
28421 -fcf-protection.
28422
28423 2019-02-21 Jakub Jelinek <jakub@redhat.com>
28424
28425 PR bootstrap/88714
28426 * constraints.md (q): Remove.
28427 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
28428 instead of q.
28429
28430 2019-02-21 Martin Jambor <mjambor@suse.cz>
28431
28432 PR hsa/89302
28433 * omp-general.c (omp_extract_for_data): Removed a duplicate call
28434 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
28435 (omp_adjust_for_condition): ...here. Added necessary parameters.
28436 * omp-general.h (omp_adjust_for_condition): Updated declaration.
28437 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
28438 proper values to new parameters of omp_adjust_for_condition.
28439
28440 2019-02-20 Jakub Jelinek <jakub@redhat.com>
28441
28442 PR middle-end/89412
28443 * expr.c (expand_assignment): If result is a MEM, use change_address
28444 instead of simplify_gen_subreg.
28445
28446 2019-02-20 Jakub Jelinek <jakub@redhat.com>
28447 David Malcolm <dmalcolm@redhat.com>
28448
28449 PR middle-end/89091
28450 * fold-const.c (decode_field_reference): Return NULL_TREE if
28451 lang_hooks.types.type_for_size returns NULL. Check it before
28452 overwriting *exp_. Use return NULL_TREE instead of return 0.
28453
28454 2019-02-20 Jakub Jelinek <jakub@redhat.com>
28455
28456 PR middle-end/88074
28457 PR middle-end/89415
28458 * toplev.c (do_compile): Double the emin/emax exponents to workaround
28459 buggy mpc_norm.
28460
28461 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
28462
28463 PR target/89397
28464 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
28465 TARGET_SSE in addition to TARGET_SSE_MATH.
28466
28467 (ix86_excess_precision): Ditto.
28468 (ix86_float_exceptions_rounding_supported_p): Ditto.
28469 (use_rsqrt_p): Ditto.
28470 * config/i386/sse.md (rsqrt<mode>2): Ditto.
28471
28472 2019-02-20 David Malcolm <dmalcolm@redhat.com>
28473
28474 PR c/89410
28475 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
28476 linenum_arith_t when determining if two adjacent line spans are
28477 close enough to merge.
28478 (diagnostic_show_locus): Use linenum_arith_t when iterating over
28479 lines within each line_span.
28480
28481 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
28482
28483 PR target/86487
28484 * lra-constraints.c(uses_hard_regs_p): Fix handling of
28485 paradoxical SUBREGS.
28486
28487 2019-02-20 Li Jia He <helijia@linux.ibm.com>
28488
28489 PR target/88100
28490 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
28491 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
28492 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
28493 range checking it.
28494
28495 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
28496
28497 * config/gcn/gcn.c (print_operand): Fix typo.
28498
28499 2019-02-19 Richard Biener <rguenther@suse.de>
28500
28501 PR middle-end/88074
28502 * toplev.c (do_compile): Initialize mpfr's exponent range
28503 based on available float modes.
28504
28505 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
28506
28507 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
28508 as long as the epilogue isn't completed.
28509
28510 2019-02-18 Martin Sebor <msebor@redhat.com>
28511
28512 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
28513 __has_cpp_attribute, and __has_include.
28514
28515 2019-02-18 Martin Sebor <msebor@redhat.com>
28516
28517 * doc/invoke.texi (-Wreturn-type): Correct and expand.
28518
28519 2019-02-18 Martin Sebor <msebor@redhat.com>
28520
28521 PR middle-end/89294
28522 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
28523 expression.
28524 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
28525
28526 2019-02-18 Richard Biener <rguenther@suse.de>
28527
28528 PR tree-optimization/89296
28529 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
28530 of no-warning flag to cases that might emit the bogus warning.
28531
28532 2019-02-18 Jakub Jelinek <jakub@redhat.com>
28533
28534 PR bootstrap/88714
28535 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
28536 "q" constraint.
28537 * config/arm/vfp.md (*movdi_vfp): Likewise.
28538 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
28539 "q" constraint for operands[0].
28540
28541 PR target/89369
28542 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
28543 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
28544 pattern in a temporary buffer.
28545 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
28546 than 64-operands[2].
28547
28548 PR target/89361
28549 * config/s390/s390.c (s390_indirect_branch_attrvalue,
28550 s390_indirect_branch_settings): Define unconditionally.
28551 (s390_set_current_function): Likewise, but guard the whole body except
28552 the s390_indirect_branch_settings call with
28553 #if S390_USE_TARGET_ATTRIBUTE.
28554 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
28555
28556 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
28557 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
28558 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
28559 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
28560 HOST_WIDE_INT_1U instead of 1ULL.
28561 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
28562 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
28563 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
28564 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
28565 instead of 1UL.
28566 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
28567 instead of 1ul.
28568
28569 2019-02-18 Martin Jambor <mjambor@suse.cz>
28570
28571 PR tree-optimization/89209
28572 * tree-sra.c (create_access_replacement): New optional parameter
28573 reg_tree. Use it as a type if non-NULL and access type is not of
28574 a register type.
28575 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
28576 to create_access_replacement.
28577 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
28578 Check lacc is non-NULL before attempting to re-create it on the RHS.
28579
28580 2019-02-18 Martin Liska <mliska@suse.cz>
28581
28582 PR ipa/89306
28583 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
28584 by default.
28585 (symbol_table::free_edge): Recycle m_summary_id.
28586 * cgraph.h (get_summary_id): New.
28587 (symbol_table::release_symbol): Set m_summary_id to -1
28588 by default.
28589 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
28590 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
28591 function_summary to fast_function_summary.
28592 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
28593 * ipa-pure-const.c (class funct_state_summary_t):
28594 Switch from function_summary to fast_function_summary.
28595 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
28596 (class ipa_ref_opt_summary_t): Switch from function_summary
28597 to fast_function_summary.
28598 * symbol-summary.h (class function_summary_base): New class
28599 that is created from base of former function_summary.
28600 (function_summary_base::unregister_hooks): New.
28601 (class function_summary): Inherit from function_summary_base.
28602 (class call_summary_base): New class
28603 that is created from base of former call_summary.
28604 (class call_summary): Inherit from call_summary_base.
28605 (struct is_same): New.
28606 (class fast_function_summary): New summary class.
28607 (class fast_call_summary): New summary class.
28608 * vec.h (vec_safe_grow_cleared): New function.
28609
28610 2019-02-18 Martin Liska <mliska@suse.cz>
28611
28612 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
28613 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
28614 * doc/tm.texi: Document new target hook.
28615 * doc/tm.texi.in: Likewise.
28616 * target.def: Add new target macro.
28617 * gcc.c (find_fortran_preinclude_file): Do not search multilib
28618 suffixes.
28619
28620 2019-02-17 Alan Modra <amodra@gmail.com>
28621
28622 PR target/89271
28623 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
28624 output reg on add insn.
28625 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
28626
28627 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
28628
28629 PR target/89372
28630 * config/i386/sse.md (ssedoublemode): Remove V4HI.
28631 (PMULHRSW): Likewise.
28632 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
28633 TARGET_AVX2.
28634 (ssse3_pmulhrswv4hi3): New expander.
28635
28636 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
28637
28638 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
28639 MMX. Add isa attribute.
28640
28641 2019-02-16 Jakub Jelinek <jakub@redhat.com>
28642
28643 PR rtl-optimization/66152
28644 * builtins.h (c_readstr): Declare.
28645 * builtins.c (c_readstr): Remove forward declaration. Add
28646 null_terminated_p argument, if false, read all bytes from the
28647 string instead of stopping after '\0'.
28648 * expr.c (string_cst_read_str): New function.
28649 (store_expr): Use string_cst_read_str instead of
28650 builtin_strncpy_read_str. Try to store by pieces the whole
28651 exp_len first, and only if that fails, split it up into
28652 store by pieces followed by clear_storage. Formatting fix.
28653
28654 * config/i386/i386.md (*movqi_internal): Remove static from
28655 buf variable. Use output_asm_insn (buf, operands); return "";
28656 instead of return buf;.
28657 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
28658 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
28659 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
28660
28661 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
28662
28663 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
28664 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
28665 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
28666 (CC1_SPEC): Likewise.
28667 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
28668
28669 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
28670
28671 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
28672 the base address on 64-bit strict-alignment platforms.
28673
28674 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
28675
28676 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
28677
28678 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
28679
28680 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
28681
28682 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
28683
28684 PR rtl-optimization/88308
28685 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
28686 on copied instruction.
28687
28688 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
28689
28690 * final.c (insn_current_reference_address): Replace test on JUMP_P
28691 with test on jump_to_label_p.
28692 * config/visium/visium-passes.def: New file.
28693 * config/visium/t-visium (PASSES_EXTRA): Define.
28694 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
28695 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
28696 (TRAMPOLINE_ALIGNMENT): Define.
28697 * config/visium/visium.c (visium_option_override): Do not register
28698 the machine-specific reorg pass here.
28699 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
28700 for the GR6.
28701 (output_branch): Adjust threshold for long branch instruction.
28702 * config/visium/visium.md (cpu): Move around.
28703 (length): Adjust for the GR6.
28704
28705 2019-02-15 Richard Biener <rguenther@suse.de>
28706 Jakub Jelinek <jakub@redhat.com>
28707
28708 PR tree-optimization/89278
28709 * tree-loop-distribution.c: Include tree-eh.h.
28710 (generate_memset_builtin, generate_memcpy_builtin): Call
28711 rewrite_to_non_trapping_overflow on builtin->size before passing it
28712 to force_gimple_operand_gsi.
28713
28714 2019-02-15 Jakub Jelinek <jakub@redhat.com>
28715
28716 PR other/89342
28717 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
28718 optimize_debug.
28719 * opth-gen.awk: Likewise.
28720
28721 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
28722
28723 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
28724 Enable MMX, SSE and SSE2 by default.
28725 * config/i386/i386.c (ix86_option_override_internal): Do not
28726 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
28727
28728 2019-02-14 Jakub Jelinek <jakub@redhat.com>
28729
28730 PR rtl-optimization/89354
28731 * combine.c (make_extraction): Punt if extraction_mode is narrower
28732 than len bits.
28733
28734 2019-02-14 Maya Rashish <coypu@sdf.org>
28735
28736 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
28737 * config/netbsd-d.c: New file.
28738 * config/t-netbsd: Add netbsd-d.o
28739
28740 2018-02-14 Steve Ellcey <sellcey@marvell.com>
28741
28742 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
28743 affects_type_identity to true for aarch64_vector_pcs.
28744 (aarch64_comp_type_attributes): New function.
28745 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
28746
28747 2019-02-14 Tamar Christina <tamar.christina@arm.com>
28748
28749 PR target/88850
28750 * config/arm/iterators.md (ANY64): Add V4HF.
28751
28752 2019-02-14 Martin Liska <mliska@suse.cz>
28753
28754 PR rtl-optimization/89242
28755 * dce.c (delete_unmarked_insns): Call free_dominance_info we
28756 process a transformation.
28757
28758 2019-02-14 Jakub Jelinek <jakub@redhat.com>
28759
28760 PR tree-optimization/89314
28761 * fold-const.c (fold_binary_loc): Cast strlen argument to
28762 const char * before dereferencing it. Formatting fixes.
28763
28764 PR middle-end/89284
28765 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
28766
28767 2019-02-13 Ian Lance Taylor <iant@golang.org>
28768
28769 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
28770 and set current index for other optimizations.
28771
28772 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
28773
28774 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
28775 nonimmediate_operand as operand 2 predicate.
28776 (vec_set<VF2_512_256:mode>_0): Ditto.
28777 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
28778 (*vec_concatv2si): Remove alternative 2.
28779 (*vec_concatv4si_0): Use vm constraint for alternative 0.
28780 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
28781 (vec_concatv2di): Split alternatives 4,5,6 to ...
28782 (*vec_concatv2di_0) ... new pattern.
28783
28784 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
28785
28786 PR target/89190
28787 * config/arm/arm.c (ldm_stm_operation_p) Set
28788 addr_reg_in_reglist correctly for first register.
28789 (load_multiple_sequence): Remove dead base check.
28790 (gen_ldm_seq): Correctly set write_back for Thumb-1.
28791
28792 2019-02-13 Tamar Christina <tamar.christina@arm.com>
28793
28794 PR target/88847
28795 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
28796 Expose as @aarch64_pred_mov.
28797 * config/aarch64/aarch64.c (aarch64_classify_address):
28798 Use expand_insn which legitimizes operands.
28799
28800 2019-02-13 Martin Liska <mliska@suse.cz>
28801
28802 * builtins.h (expand_builtin_with_bounds): Remove declaration.
28803 * calls.c (struct arg_data): Remove special_slot, pointer_arg
28804 and pointer_offset fields.
28805 (initialize_argument_information): Remove usage of dead
28806 fields.
28807 * cgraph.h (struct cgraph_thunk_info): Remove
28808 add_pointer_bounds_args.
28809 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
28810 fields.
28811 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
28812 fields.
28813 * config/i386/i386.c (ix86_function_arg_advance): Remove
28814 unrelated comment.
28815 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
28816 (def_builtin): Remove usage of dead fields.
28817 (ix86_add_new_builtins): Likewise.
28818 * ipa-fnsummary.c (compute_fn_summary): Likewise.
28819 * ipa-icf.c (sem_function::equals_wpa): Likewise.
28820 (sem_function::init): Likewise.
28821 (sem_variable::merge): Likewise.
28822 * ipa-visibility.c (function_and_variable_visibility): Likewise.
28823 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
28824 * lto-cgraph.c (lto_output_node): Likewise.
28825 (lto_output_varpool_node): Likewise.
28826 (input_node): Likewise.
28827 (input_varpool_node): Likewise.
28828 * lto-streamer-out.c (lto_output): Likewise.
28829 * tree-inline.c (expand_call_inline): Remove usage of
28830 assign_stmts.
28831 * tree-inline.h (struct copy_body_data): Likewise.
28832 * varpool.c (varpool_node::dump): Likewise.
28833
28834 2019-02-13 Jakub Jelinek <jakub@redhat.com>
28835
28836 PR middle-end/89303
28837 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
28838 into pt->vars_contains_escaped_heap instead of setting
28839 pt->vars_contains_escaped_heap to it.
28840
28841 PR middle-end/89281
28842 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
28843 INTVAL (size), compare it to GET_MODE_MASK instead of
28844 1 << GET_MODE_BITSIZE.
28845
28846 PR target/89290
28847 * config/i386/predicates.md (x86_64_immediate_operand): Allow
28848 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
28849 -mcmodel=large.
28850
28851 2019-02-13 Martin Liska <mliska@suse.cz>
28852
28853 PR lto/88858
28854 * cfgrtl.c (remove_barriers_from_footer): New function.
28855 (try_redirect_by_replacing_jump): Use it.
28856 (cfg_layout_redirect_edge_and_branch): Likewise.
28857
28858 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
28859
28860 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
28861 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
28862 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
28863 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
28864 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
28865 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
28866 New BU_CRYPTO_2.
28867 * config/rs6000/rs6000.c (builtin_function_type)
28868 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
28869 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
28870 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
28871 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
28872 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
28873
28874 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
28875
28876 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
28877 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
28878
28879 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
28880
28881 PR target/89229
28882 * config/i386/i386.md (*movoi_internal_avx): Revert revision
28883 268678 and revision 268657.
28884 (*movti_internal): Likewise.
28885
28886 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
28887
28888 PR target/89233
28889 * config/s390/s390.c (s390_decompose_address): Update comment.
28890 (s390_check_qrst_address): Reject invalid address forms after
28891 LRA.
28892
28893 2019-02-12 Martin Liska <mliska@suse.cz>
28894
28895 PR lto/88876
28896 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
28897 we need default values of funct_state for a function that
28898 is not optimized.
28899
28900 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
28901
28902 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
28903 the object to pick the size of stores on strict-alignment platforms.
28904
28905 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
28906 (*movdi_insn_sp32): Likewise.
28907 (*movdi_insn_sp64): Likewise.
28908
28909 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
28910
28911 PR lto/88677
28912 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
28913 types that needs constructiong.
28914 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
28915
28916 2019-02-12 Richard Biener <rguenther@suse.de>
28917
28918 PR tree-optimization/89253
28919 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
28920 duplicate the loop.
28921
28922 2019-02-11 David Malcolm <dmalcolm@redhat.com>
28923
28924 PR lto/88147
28925 * input.c (selftest::test_line_offset_overflow): New selftest.
28926 (selftest::input_c_tests): Call it.
28927
28928 2019-02-11 Martin Sebor <msebor@redhat.com>
28929
28930 PR tree-optimization/88771
28931 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
28932 when -Wstringop-overflow is set.
28933 (builtin_memref::builtin_memref): Adjust excessive upper bound
28934 only when lower bound is not excessive.
28935 (maybe_diag_overlap): Detect and diagnose excessive bounds via
28936 -Wstringop-ovefflow.
28937 (maybe_diag_offset_bounds): Rename...
28938 (maybe_diag_access_bounds): ...to this.
28939 (check_bounds_or_overlap): Adjust for name change above.
28940
28941 2019-02-11 Martin Sebor <msebor@redhat.com>
28942
28943 PR c++/87996
28944 * builtins.c (max_object_size): Move from here...
28945 * builtins.h (max_object_size): ...and here...
28946 * tree.c (max_object_size): ...to here...
28947 * tree.h (max_object_size): ...and here.
28948
28949 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
28950
28951 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
28952 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
28953 for correct semantics.
28954
28955 2019-02-11 Alan Modra <amodra@gmail.com>
28956
28957 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
28958 -mlongcall and -mpltseq.
28959 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
28960 (RS/6000 and PowerPC Options <-mpltseq>): Document.
28961 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
28962 * config/rs6000/sysv4.opt (mpltseq): New option.
28963 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
28964 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
28965 support is lacking. Don't allow -mpltseq with -mbss-plt.
28966 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
28967 -mpltseq given for ELFv1.
28968 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
28969 Only use UNSPEC_PLTSEQ for inline PLT calls.
28970 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
28971 use UNSPEC_PLTSEQ for inline PLT calls.
28972 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
28973 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
28974 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
28975 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
28976 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
28977 (pltseq_mtctr_<mode>): Likewise.
28978
28979 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28980
28981 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
28982 Solaris ld.
28983 * configure: Regenerate.
28984
28985 2019-02-11 Jakub Jelinek <jakub@redhat.com>
28986
28987 PR bootstrap/88714
28988 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
28989 instead of r.
28990
28991 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
28992
28993 * function.c (assign_parm_setup_block): Use the stored
28994 size, not the passed size, when allocating stack-space,
28995 also for a parameter with alignment larger than
28996 MAX_SUPPORTED_STACK_ALIGNMENT.
28997
28998 2019-02-11 Martin Liska <mliska@suse.cz>
28999
29000 PR ipa/89009
29001 * ipa-cp.c (build_toporder_info): Remove usage of a param.
29002 * ipa-inline.c (inline_small_functions): Likewise.
29003 * ipa-pure-const.c (propagate_pure_const): Likewise.
29004 (propagate_nothrow): Likewise.
29005 * ipa-reference.c (propagate): Likewise.
29006 * ipa-utils.c (struct searchc_env): Remove unused field.
29007 (searchc): Always search across AVAIL_INTERPOSABLE.
29008 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
29009 the only called IPA pure const can properly not propagate
29010 across interposable boundary.
29011 * ipa-utils.h (ipa_reduced_postorder): Remove param.
29012
29013 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
29014
29015 * config/nds32/nds32.md (call_internal, call_value_internal,
29016 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
29017
29018 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
29019
29020 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
29021 typo.
29022
29023 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
29024
29025 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
29026 in comments
29027
29028 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
29029
29030 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
29031
29032 2019-02-10 Jakub Jelinek <jakub@redhat.com>
29033
29034 PR tree-optimization/89268
29035 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
29036 if preds is non-NULL.
29037
29038 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29039
29040 PR lto/89272
29041 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
29042 polymorphic types.
29043
29044 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
29045
29046 * config/nds32/nds32.md (trap): New pattern.
29047
29048 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
29049
29050 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
29051 dwarf span.
29052
29053 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
29054
29055 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
29056 to split POST_INC.
29057
29058 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29059
29060 * ipa-visibility.c (localize_node): Also do not localize
29061 LDPR_PREVAILING_DEF_IRONLY_EXP.
29062
29063 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29064
29065 PR lto/87957
29066 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
29067 instead of type_with_linkage.
29068
29069 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29070
29071 PR ipa/88755
29072 * params.def (uninlined-function-insns, uninlined-function-time,
29073 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
29074 bound so we don't get overflows.
29075
29076 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
29077
29078 * config/rs6000/rs6000-string.c (expand_compare_loop,
29079 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
29080 memcmp/strncmp.
29081
29082 2019-02-09 Jakub Jelinek <jakub@redhat.com>
29083
29084 PR middle-end/89246
29085 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
29086 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
29087 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
29088
29089 2019-02-09 Alan Modra <amodra@gmail.com>
29090
29091 PR target/88343
29092 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
29093 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
29094 setup.
29095
29096 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
29097
29098 PR middle-end/88560
29099 * lra-constraints.c (process_alt_operands): Don't increase reject
29100 for memory when offset memory is required.
29101
29102 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
29103
29104 * config/s390/vector.md: Implement vector copysign.
29105
29106 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
29107
29108 * expr.c (expand_constructor): Correct indentations.
29109
29110 2019-02-08 Richard Biener <rguenther@suse.de>
29111
29112 PR tree-optimization/89247
29113 * tree-if-conv.c: Include tree-cfgcleanup.h.
29114 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
29115 (tree_if_conversion): Pass through predicate vector.
29116 (pass_if_conversion::execute): Do CFG cleanup and SSA update
29117 inline, see if any if-converted loops we refrece in
29118 LOOP_VECTORIZED calls vanished and fixup.
29119 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
29120
29121 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
29122
29123 * config/s390/constraints.md (jdd): New constraint.
29124
29125 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
29126
29127 PR target/89229
29128 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
29129 upper 16 vector registers without TARGET_AVX512VL.
29130 (*movti_internal): Likewise.
29131
29132 2019-02-08 Jakub Jelinek <jakub@redhat.com>
29133
29134 PR rtl-optimization/89234
29135 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
29136 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
29137 (copy_reg_eh_region_note_backward): Likewise.
29138
29139 2019-02-08 Richard Biener <rguenther@suse.de>
29140
29141 PR middle-end/89223
29142 * tree-data-ref.c (initialize_matrix_A): Fail if constant
29143 doesn't fit in HWI.
29144 (analyze_subscript_affine_affine): Handle failure from
29145 initialize_matrix_A.
29146
29147 2019-02-08 Jakub Jelinek <jakub@redhat.com>
29148
29149 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
29150 cfun everywhere.
29151
29152 2019-02-07 David Malcolm <dmalcolm@redhat.com>
29153
29154 PR tree-optimization/86637
29155 PR tree-optimization/89235
29156 * tree-vect-loop.c (optimize_mask_stores): Add an
29157 auto_purge_vect_location sentinel to ensure that vect_location is
29158 purged on exit.
29159 * tree-vectorizer.c
29160 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
29161 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
29162 to ensure that vect_location is purged on exit.
29163 (pass_slp_vectorize::execute): Likewise, replacing the manual
29164 reset.
29165 * tree-vectorizer.h (class auto_purge_vect_location): New class.
29166
29167 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29168
29169 * config/aarch64/iterators.md (max_opp): New code_attr.
29170 (USMAX): New code iterator.
29171 * config/aarch64/predicates.md (aarch64_smin): New predicate.
29172 (aarch64_smax): Likewise.
29173 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
29174 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
29175 MINUS (MAX MIN).
29176
29177 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
29178
29179 PR target/89229
29180 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
29181 for TARGET_AVX512VL.
29182 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
29183
29184 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
29185
29186 * config/s390/s390-builtin-types.def: Add new types.
29187 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
29188 (s390_vec_xlw4): Make the memory operand into a const pointer.
29189 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
29190 float.
29191 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
29192 a new vector type with the alignment of the scalar memory operand.
29193
29194 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
29195 Jakub Jelinek <jakub@redhat.com>
29196
29197 PR bootstrap/88714
29198 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
29199 arm_count_ldrdstrd_insns): New declarations.
29200 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
29201 MINUS.
29202 (valid_operands_ldrd_strd): New function.
29203 (arm_count_ldrdstrd_insns): New function.
29204 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
29205 sets instead of single DImode set and define new insns to match this.
29206
29207 2019-02-07 Tamar Christina <tamar.christina@arm.com>
29208
29209 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
29210 Make it a C initializer.
29211
29212 2019-02-07 Tamar Christina <tamar.christina@arm.com>
29213
29214 PR/target 88850
29215 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
29216
29217 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29218
29219 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
29220 Use neon_dot<q> for type.
29221 (neon_<sup>dot_lane<vsi2qi>): Likewise.
29222
29223 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29224
29225 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
29226 Use neon_dot<q> for type.
29227 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
29228 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
29229
29230 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
29231
29232 PR rtl-optimization/89225
29233 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
29234 sizes check.
29235
29236 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
29237
29238 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
29239 after restoring registers saved to allocate the frame on Windows.
29240
29241 2019-02-06 Richard Biener <rguenther@suse.de>
29242
29243 PR tree-optimization/89182
29244 * graphite.h (cached_scalar_evolution_in_region): Declare.
29245 * graphite.c (struct seir_cache_key): New.
29246 (struct sese_scev_hash): Likewise.
29247 (seir_cache): New global.
29248 (cached_scalar_evolution_in_region): New function.
29249 (graphite_transform_loops): Allocate and release seir_cache.
29250 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
29251 cached_scalar_evolution_in_region.
29252 * graphite-scop-detection.c (scop_detection::can_represent_loop):
29253 Simplify.
29254 (scop_detection::graphite_can_represent_expr: Use
29255 cached_scalar_evolution_in_region.
29256 (scop_detection::stmt_simple_for_scop_p): Likewise.
29257 (find_params_in_bb): Likewise.
29258 (gather_bbs::before_dom_children): Likewise.
29259 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
29260 (add_loop_constraints): Likewise.
29261
29262 2019-02-06 Jakub Jelinek <jakub@redhat.com>
29263
29264 PR middle-end/89210
29265 * fold-const-call.c (fold_const_vec_convert): Pass true as last
29266 operand to new_unary_operation only if both element types are integral
29267 and it isn't a widening conversion. Return NULL_TREE if
29268 new_unary_operation failed.
29269
29270 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
29271
29272 PR target/88856
29273 * config/s390/s390.md: Remove load and test FP splitter.
29274
29275 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
29276
29277 PR target/89112
29278 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
29279 expand_compare_loop, expand_block_compare_gpr,
29280 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
29281 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
29282 #include "profile-count.h" and "predict.h" for types and functions
29283 needed to work with REG_BR_PROB notes.
29284
29285 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
29286
29287 PR target/89112
29288 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
29289 for the long branch case.
29290
29291 2019-02-05 Jakub Jelinek <jakub@redhat.com>
29292
29293 PR target/89188
29294 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
29295 can throw, non-call exceptions are enabled and we can't delete
29296 dead exceptions or alter cfg. Set must_clean if
29297 delete_insn_and_edges returns true, don't set it blindly for calls.
29298 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
29299
29300 PR rtl-optimization/89195
29301 * combine.c (make_extraction): For MEMs, don't extract bytes outside
29302 of the original MEM.
29303
29304 2019-02-05 Martin Liska <mliska@suse.cz>
29305
29306 PR gcov-profile/89000
29307 * gcov.c (function_summary): Remove argument.
29308 (file_summary): New function.
29309 (print_usage): Replace tabs with spaces.
29310 (generate_results): Use new function file_summary.
29311
29312 2019-02-05 Jakub Jelinek <jakub@redhat.com>
29313
29314 PR target/89186
29315 * optabs.c (prepare_cmp_insn): Pass x and y to
29316 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
29317
29318 2019-02-05 Richard Biener <rguenther@suse.de>
29319
29320 PR middle-end/89150
29321 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
29322 (struct bitmap_element): Drop chain_prev so we properly recurse on
29323 the prev member, supporting tree views.
29324 (struct bitmap_head): GTY skip the obstack member.
29325
29326 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
29327
29328 PR c/88698
29329 * doc/extend.texi (Vector Extensions): Add an example of using vector
29330 types together with x86 intrinsics.
29331
29332 2019-02-04 Alan Modra <amodra@gmail.com>
29333
29334 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
29335 str[] size to 160, and comment.
29336
29337 2019-02-04 Alan Modra <amodra@gmail.com>
29338
29339 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
29340 (rs6000_pltseq_template): Guard output of TLS markers with
29341 TARGET_TLS_MARKERS.
29342 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
29343 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
29344 to use inline PLT sequences.
29345 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
29346 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
29347 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
29348
29349 2019-02-04 Martin Liska <mliska@suse.cz>
29350
29351 PR ipa/88985
29352 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
29353 out when ipa_fn_summaries does not contain entry for callee.
29354
29355 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
29356
29357 * config/sparc/sparc.h: Remove superfluous blank lines.
29358 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
29359 (got_register_rtx): ...this.
29360 (sparc_got): Adjust to above renaming.
29361 (sparc_tls_got): Likewise.
29362 (sparc_delegitimize_address): Likewise.
29363 (sparc_output_mi_thunk): Likewise.
29364 (sparc_init_pic_reg): Likewise.
29365 (save_local_or_in_reg_p): Fix test on the GOT register.
29366 (USE_HIDDEN_LINKONCE): Move around.
29367 (get_pc_thunk_name): Likewise.
29368 (gen_load_pcrel_sym): Likewise.
29369 (load_got_register): Likewise.
29370
29371 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
29372
29373 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
29374 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
29375
29376 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
29377
29378 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
29379 into consideration.
29380
29381 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
29382
29383 * config.gcc (with_nds32_lib, glibc):
29384 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
29385 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
29386 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
29387
29388 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
29389
29390 PR target/89071
29391 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
29392 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
29393 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
29394 (*rcpsf2_sse): Ditto.
29395 (*rsqrtsf2_sse): Ditto.
29396 (sse4_1_round<mode<2): Ditto.
29397
29398 2019-02-03 Richard Biener <rguenther@suse.de>
29399
29400 PR debug/87295
29401 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
29402 orig.
29403
29404 2019-02-02 Jakub Jelinek <jakub@redhat.com>
29405
29406 PR middle-end/87887
29407 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
29408 Punt with warning on aggregate return or argument types. Ignore
29409 type/mode checking for uniform arguments.
29410
29411 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
29412
29413 * combine.c (try_combine): Do not print "Can't combine" messages unless
29414 printing failed combination attempts.
29415
29416 2019-02-01 Martin Jambor <mjambor@suse.cz>
29417
29418 PR hsa/87863
29419 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
29420 segment and global segment variables before making them static.
29421
29422 2019-02-01 Martin Jambor <mjambor@suse.cz>
29423
29424 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
29425 missed optimization dump with dump_enabled_p.
29426
29427 2019-02-01 Richard Biener <rguenther@suse.de>
29428
29429 PR middle-end/88597
29430 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
29431 the instantiate cache.
29432 (instantiate_scev_binary): Elide second operand procesing
29433 if equal to the first.
29434 * tree-chrec.c (chrec_contains_symbols): Add visited set.
29435 (chrec_contains_undetermined): Likewise.
29436 (tree_contains_chrecs): Likewise.
29437
29438 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
29439
29440 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
29441
29442 2019-02-01 Jakub Jelinek <jakub@redhat.com>
29443
29444 PR tree-optimization/89143
29445 * wide-int-range.h (wide_int_range_absu): Declare.
29446 * wide-int-range.cc (wide_int_range_absu): New function.
29447 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
29448
29449 PR tree-optimization/88107
29450 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
29451 instead of assertion that eh_region_outermost is non-NULL, if it
29452 is NULL, set *ALL to true and return NULL.
29453 (move_sese_region_to_fn): Adjust caller, if all is set, call
29454 duplicate_eh_regions with NULL region.
29455
29456 2019-02-01 Richard Biener <rguenth@suse.de>
29457
29458 PR rtl-optimization/88593
29459 * mode-switching.c (optimize_mode_switching): Free dominators before
29460 calling cleanup_cfg.
29461
29462 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29463
29464 PR tree-optimization/88932
29465 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
29466
29467 2019-01-31 Jakub Jelinek <jakub@redhat.com>
29468
29469 PR middle-end/89137
29470 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
29471 bogus clang warning.
29472
29473 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
29474
29475 PR target/89071
29476 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
29477 alternative to avoid partial SSE register stall for TARGET_AVX.
29478 (truncdfsf2): Ditto.
29479 (sse4_1_round<mode>2): Ditto.
29480
29481 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
29482
29483 PR tree-optimization/89008
29484 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
29485 process anything of the form X * 0.
29486
29487 2019-01-31 Richard Biener <rguenther@suse.de>
29488
29489 PR tree-optimization/89135
29490 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
29491 with abnormal preds.
29492
29493 2019-01-31 Jakub Jelinek <jakub@redhat.com>
29494
29495 PR sanitizer/89124
29496 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
29497 always_inline callees into no_sanitize_address callers.
29498
29499 2019-01-31 Richard Biener <rguenther@suse.de>
29500
29501 PR rtl-optimization/89115
29502 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
29503
29504 2019-01-30 Martin Sebor <msebor@redhat.com>
29505
29506 PR other/89106
29507 * doc/extend.texi (cast to a union): Correct and expand.
29508
29509 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
29510
29511 PR rtl-optimization/87246
29512 * lra-constraints.c (simplify_operand_subreg): Reload memory
29513 in subreg if the address became invalid.
29514
29515 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
29516
29517 PR target/87064
29518 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
29519 Disable for little-endian.
29520
29521 2019-01-30 Richard Biener <rguenther@suse.de>
29522
29523 PR rtl-optimization/89115
29524 * opts.c (default_options_optimization): Reduce
29525 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
29526 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
29527 to the default.
29528
29529 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
29530
29531 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
29532 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
29533 type of vector element when vec_extract is implemented by direct
29534 move.
29535
29536 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
29537
29538 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
29539
29540 2019-01-30 Richard Biener <rguenther@suse.de>
29541
29542 PR tree-optimization/89111
29543 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
29544 canonicalization to appropriately sized access types.
29545
29546 2019-01-30 Jakub Jelinek <jakub@redhat.com>
29547
29548 PR c++/89105
29549 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
29550 for arguments to functions that are TU-local and shouldn't be
29551 referenced by assembly.
29552
29553 2019-01-30 Ulrich Drepper <drepper@redhat.com>
29554
29555 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
29556 after '='.
29557
29558 2019-01-29 Martin Sebor <msebor@redhat.com>
29559
29560 PR c/88956
29561 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
29562
29563 2019-01-29 Jakub Jelinek <jakub@redhat.com>
29564
29565 PR c++/66676
29566 PR ipa/89104
29567 * omp-simd-clone.c (simd_clone_clauses_extract)
29568 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
29569 OMP_CLAUSE_ALIGNED_ALIGNMENT.
29570
29571 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
29572
29573 * config.gcc: Force .init_array for ARC.
29574
29575 2019-01-29 Richard Biener <rguenther@suse.de>
29576
29577 PR debug/87295
29578 * dwarf2out.c (collect_skeleton_dies): New helper.
29579 (copy_decls_for_unworthy_types): Call it.
29580 (build_abbrev_table): Assert we do not try to replace
29581 DW_AT_signature refs with local refs.
29582
29583 2019-01-28 Jakub Jelinek <jakub@redhat.com>
29584
29585 PR middle-end/89002
29586 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
29587 for lastprivate/linear IV, push gimplify context around gimplify_assign
29588 and, if it needed any temporaries, pop it into a gimple bind around the
29589 sequence.
29590
29591 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
29592
29593 * common.opt (-Wattribute-alias): Remove "no-" from name.
29594 Make -Wattribute-alias command line option and
29595 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
29596
29597 2019-01-28 Jakub Jelinek <jakub@redhat.com>
29598
29599 PR target/89073
29600 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
29601 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
29602 x86 ISA options.
29603 (bmi2): Add missing @opindex.
29604 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
29605 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
29606 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
29607 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
29608 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
29609 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
29610 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
29611 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
29612 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
29613 xsavec, xsaveopt and xsaves options.
29614
29615 2019-01-28 Richard Biener <rguenther@suse.de>
29616
29617 PR debug/89076
29618 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
29619 support removal.
29620
29621 2019-01-28 Richard Biener <rguenther@suse.de>
29622
29623 PR tree-optimization/88739
29624 * tree-cfg.c (verify_types_in_gimple_reference): Verify
29625 BIT_FIELD_REFs only are applied to mode-precision operands
29626 when they are integral.
29627 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
29628 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
29629 BIT_FIELD_REFs of non-mode-precision integral operands.
29630
29631 2019-01-27 Jakub Jelinek <jakub@redhat.com>
29632
29633 PR target/87214
29634 * config/i386/sse.md
29635 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
29636 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
29637 first constants in pairs are multiples of 2. Formatting fixes.
29638 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
29639 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
29640 first constants in each quadruple are multiples of 4. Formatting fixes.
29641
29642 2019-01-26 Martin Jambor <mjambor@suse.cz>
29643
29644 PR ipa/88933
29645 * tree-inline.c: Include tree-cfgcleanup.h.
29646 (delete_unreachable_blocks_update_callgraph): Move...
29647 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
29648 ...here, make externally visible, make second argument bool, adjust
29649 all callers.
29650 * tree-cfgcleanup.c: Include cgraph.h.
29651 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
29652 Declare.
29653 * ipa-prop.c: Include tree-cfgcleanup.h.
29654 (ipcp_transform_function): Call
29655 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
29656
29657 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
29658
29659 PR rtl-optimization/88846
29660 * ira.c (process_set_for_memref_referenced_p): New.
29661 (memref_referenced_p): Add new param. Use
29662 process_set_for_memref_referenced_p. Add new switch cases.
29663 (memref_used_between_p): Pass new arg to memref_referenced_p.
29664
29665 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
29666
29667 PR target/88469
29668 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
29669 argument ABI_BREAK. Set to true if the calculated alignment has
29670 changed in gcc-9. Check bit-fields for their base type alignment.
29671 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
29672 (aarch64_function_arg_boundary): Likewise.
29673 (aarch64_gimplify_va_arg_expr): Likewise.
29674
29675 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
29676
29677 PR middle-end/89037
29678 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
29679 instead of accessing TREE_INT_CST_ELT directly.
29680
29681 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
29682
29683 * doc/sourcebuild.texi (Environment attributes): Add fenv and
29684 fenv_exceptions description.
29685
29686 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
29687
29688 PR rtl-optimization/87763
29689 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
29690 Allow SUBREG when matching CC_NZmode compare.
29691
29692 2019-01-25 Richard Biener <rguenther@suse.de>
29693
29694 PR tree-optimization/89049
29695 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
29696 Look at the pattern stmt to determine if the stmt is vectorized.
29697
29698 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
29699
29700 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
29701 (pred_mov<mode>): Handle all-register forms using both a new
29702 alternative and a split.
29703
29704 2019-01-25 Richard Biener <rguenther@suse.de>
29705
29706 PR tree-optimization/86865
29707 * graphite-scop-detection.c (scop_detection::can_represent_loop):
29708 Reject non-do-while loops.
29709
29710 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
29711
29712 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
29713 * config/rs6000/constraints.md (Q constraint): Use REG_P.
29714 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
29715 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
29716 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
29717 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
29718 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
29719 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
29720 vlogical_operand, gpc_reg_operand, int_reg_operand,
29721 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
29722 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
29723 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
29724 (save_world_operation, restore_world_operation, lmw_operation,
29725 stmw_operation): Use MEM_P and REG_P.
29726 (tie_operand): Use MEM_P.
29727 (vrsave_operation, crsave_operation): Use REG_P.
29728 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
29729 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
29730 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
29731 (call_operand): Use HARD_REGISTER_P.
29732 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
29733 Use CONST_INT_P.
29734 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
29735 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
29736 quad_aligned_load_p, replace_swapped_aligned_store,
29737 recombine_lvx_pattern, replace_swapped_aligned_load,
29738 recombine_stvx_pattern): Use MEM_P.
29739 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
29740 Use MEM_P and SYMBOL_REF_P.
29741 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
29742 (insn_is_swappable_p): Use REG_P and MEM_P.
29743 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
29744 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
29745 Use CONST_INT_P.
29746 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
29747 Use CONST_DOUBLE_P.
29748 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
29749 CONST_WIDE_INT_P.
29750 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
29751 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
29752 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
29753 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
29754 reg_or_subregno:
29755 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
29756 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
29757 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
29758 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
29759 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
29760 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
29761 rs6000_split_logical_di): Use CONST_INT_P.
29762 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
29763 REG_P and SYMBOL_REF_P.
29764 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
29765 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
29766 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
29767 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
29768 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
29769 (small_data_operand, print_operand_address): Use CONST_INT_P and
29770 SYMBOL_REF_P.
29771 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
29772 (rs6000_init_hard_regno_mode_ok, direct_move_p):
29773 Use HARD_REGISTER_NUM_P.
29774 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
29775 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
29776 SUBREG_P and SYMBOL_REF_P.
29777 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
29778 and HARD_REGISTER_NUM_P.
29779 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
29780 reg_or_subregno.
29781 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
29782 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
29783 MEM_P and REG_P.
29784 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
29785 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
29786 find_addr_reg): Use REG_P.
29787 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
29788 (rs6000_emit_le_vsx_move): Use SUBREG_P.
29789 (offsettable_ok_by_alignment, constant_pool_expr_p,
29790 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
29791 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
29792 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
29793 rs6000_assemble_integer, create_TOC_reference,
29794 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
29795 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
29796 (rs6000_split_vec_extract_var): Use reg_or_subregno.
29797 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
29798 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
29799 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
29800 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
29801 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
29802 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
29803 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
29804 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
29805 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
29806 and cbranch<mode>4): Use CONST_INT_P.
29807 (multiple define_splits): Use REG_P and SUBREG_P.
29808 (define_expands call, call_value): Use MEM_P.
29809 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
29810 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
29811 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
29812 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
29813 and HARD_REGISTER_NUM_P.
29814 (multiple define_splits): Use HARD_REGISTER_NUM_P.
29815
29816 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
29817
29818 PR rtl-optimization/88948
29819 * rtl.h (prepare_copy_insn): New prototype.
29820 * gcse.c (prepare_copy_insn): New function, split out from
29821 process_insert_insn.
29822 (process_insert_insn): Use prepare_copy_insn.
29823 * store-motion.c (replace_store_insn): Use prepare_copy_insn
29824 instead of gen_move_insn.
29825
29826 2019-01-24 Jakub Jelinek <jakub@redhat.com>
29827
29828 PR debug/89006
29829 * config/i386/i386.c (ix86_pic_register_p): Return true for
29830 UNSPEC_SET_GOT too.
29831
29832 PR tree-optimization/88964
29833 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
29834 punt if HONOR_SNANS (chrec).
29835
29836 PR middle-end/89015
29837 * tree-nested.c (convert_nonlocal_reference_stmt,
29838 convert_local_reference_stmt, convert_tramp_reference_stmt,
29839 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
29840 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
29841 or GIMPLE_OMP_TASK.
29842
29843 PR tree-optimization/89027
29844 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
29845 for "omp simd array" variables.
29846
29847 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
29848
29849 PR target/88469
29850 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
29851 force the alignment of m_val.
29852
29853 2019-01-24 Richard Biener <rguenther@suse.de>
29854
29855 PR lto/87187
29856 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
29857 When in "legacy" debug mode make sure to reset self-origins.
29858
29859 2019-01-24 Martin Liska <mliska@suse.cz>
29860
29861 PR gcov-profile/88994
29862 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
29863 result will be always smaller or equal to the original.
29864 * gcov.c (mangle_name): Fix else branch where we should
29865 also copy to PTR and shift the pointer.
29866
29867 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
29868
29869 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
29870 * vr-values.c (find_case_label_ranges): Fix a comment typo.
29871
29872 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
29873
29874 * common/config/i386/i386-common.c
29875 (OPTION_MASK_ISA_ENQCMD_SET,
29876 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
29877 (ix86_handle_option): Handle -menqcmd.
29878 * config.gcc (enqcmdintrin.h): New header file.
29879 * config/i386/cpuid.h (bit_ENQCMD): New bit.
29880 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
29881 -menqcmd.
29882 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
29883 function type.
29884 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
29885 __builtin_ia32_enqcmds): New builtins.
29886 * config/i386/i386-c.c (__ENQCMD__): New macro.
29887 * config/i386/i386-option.c (ix86_target_string): Add
29888 -menqcmd.
29889 (ix86_valid_target_attribute_inner_p): Likewise.
29890 * config/i386/i386-expand.c
29891 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
29892 IX86_BUILTIN_ENQCMDS.
29893 * config/i386/i386.h (TARGET_ENQCMD): New.
29894 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
29895 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
29896 (movdir64b_<mode>): Parameterize to enable share expansion code
29897 with ENQCMD in function ix86_expand_builtin.
29898 * config/i386/i386.opt: Add -menqcmd.
29899 * config/i386/immintrin.h: Include enqcmdintrin.h.
29900 * config/i386/enqcmdintrin.h: New intrinsic file.
29901 * doc/invoke.texi: Add -menqcmd.
29902
29903 2019-01-23 Bin Cheng <bin.cheng@arm.com>
29904 Steve Ellcey <sellcey@marvell.com>
29905
29906 PR target/85711
29907 * recog.c (address_operand): Return false on wrong mode for address.
29908 (constrain_operands): Check for mode with 'p' constraint.
29909
29910 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
29911
29912 PR target/88998
29913 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
29914 Disparage MMX alternative.
29915 (sse2_cvtpd2pi): Ditto.
29916 (sse2_cvttpd2pi): Ditto.
29917
29918 2019-01-23 David Malcolm <dmalcolm@redhat.com>
29919
29920 PR driver/89014
29921 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
29922 use-after-free of the result of
29923 aarch64_get_extension_string_for_isa_flags.
29924
29925 2019-01-23 Jakub Jelinek <jakub@redhat.com>
29926
29927 PR c/44715
29928 * doc/extend.texi: Document break and continue behavior in
29929 statement expressions.
29930
29931 2019-01-23 Richard Biener <rguenther@suse.de>
29932
29933 PR tree-optimization/89008
29934 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
29935 not leave another stray operand.
29936
29937 2019-01-23 Jakub Jelinek <jakub@redhat.com>
29938
29939 * BASE-VER: Bump to 9.0.1.
29940
29941 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
29942
29943 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
29944 thunk that returns by reference, use the type of the return object
29945 of the thunk instead of that of the alias to build the dereference.
29946
29947 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
29948
29949 * config/arc/atomic.md: Add operand to DMB instruction.
29950
29951 2019-01-23 Jakub Jelinek <jakub@redhat.com>
29952
29953 PR tree-optimization/88964
29954 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
29955 build_zero_cst instead of build_int_cst. Return false for loop
29956 invariants which honor signed zeros.
29957
29958 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
29959
29960 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
29961
29962 2019-01-22 Jakub Jelinek <jakub@redhat.com>
29963
29964 PR target/88965
29965 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
29966 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
29967 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
29968
29969 PR middle-end/88968
29970 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
29971 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
29972
29973 PR target/87064
29974 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
29975 Disable for little endian.
29976
29977 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
29978
29979 PR target/88469
29980 * config/arm/arm.c (arm_needs_double_word_align): Check
29981 DECL_BIT_FIELD_TYPE.
29982
29983 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
29984 H.J. Lu <hongjiu.lu@intel.com>
29985
29986 PR target/88909
29987 * config/i386/i386-builtin.def: Add mask2 to all builtin
29988 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
29989 SPECIAL_ARGS.
29990 * config/i386/i386.c (BDESC): Add mask2 to the definition.
29991 (BDESC_FIRST): Likewise.
29992 (define_builtin): Add an argument for mask2. Updated to handle
29993 both ix86_isa_flags and ix86_isa_flags2.
29994 (define_builtin_const): Likewise.
29995 (define_builtin_pure): Likewise.
29996 (define_builtin2): Deleted.
29997 (define_builtin_const2): Likewise.
29998 (builtin_description): Add a member, mask2.
29999 (bdesc_*): Add mask2 to builtin initializations.
30000 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
30001 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
30002 support.
30003 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
30004
30005 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
30006
30007 PR target/88954
30008 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
30009 noplt attribute.
30010
30011 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
30012
30013 PR target/88469
30014 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
30015 alignment is dominated by a bitfield with 64-bit aligned base type.
30016 (arm_function_arg): Emit a warning if the alignment has changed since
30017 earlier GCC releases.
30018 (arm_function_arg_boundary): Likewise.
30019 (arm_setup_incoming_varargs): Likewise.
30020
30021 2019-01-22 Richard Biener <rguenther@suse.de>
30022
30023 PR tree-optimization/88862
30024 * graphite-scop-detection.c
30025 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
30026
30027 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
30028
30029 * doc/extend.tex (AMD GCN Function Attributes): New section.
30030 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
30031 * doc/invoke.texi (AMD GCN Options): New section.
30032 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
30033
30034 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
30035
30036 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
30037 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
30038
30039 2019-01-22 Jakub Jelinek <jakub@redhat.com>
30040
30041 PR tree-optimization/88044
30042 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
30043 is false in the first iteration, but !every_iteration, return false
30044 instead of true with niter->niter zero.
30045
30046 PR rtl-optimization/88904
30047 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
30048 any nonequal registers before processing BB_END (b).
30049
30050 PR target/88905
30051 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
30052 GET_MODE (op0).
30053 (expand_binop_directly, expand_doubleword_clz,
30054 expand_doubleword_popcount, expand_ctz, expand_ffs,
30055 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
30056
30057 PR rtl-optimization/49429
30058 PR target/49454
30059 PR rtl-optimization/86334
30060 PR target/88906
30061 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
30062 addressable from here...
30063 (emit_block_op_via_libcall): ... to here.
30064
30065 2019-01-22 Richard Biener <rguenther@suse.de>
30066
30067 * tree-vect-loop.c (vect_analyze_loop_operations): Use
30068 auto_vec for cost vector to fix memleak.
30069 (vectorize_fold_left_reduction): Properly gather SLP defs.
30070 (vectorizable_comparison): Do not swap operands to properly
30071 gather SLP defs.
30072
30073 2019-01-22 Alan Modra <amodra@gmail.com>
30074
30075 PR target/88614
30076 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
30077 stays a reg. Allow a const_int.
30078 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
30079 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
30080 (IS_NOMARK_TLSGETADDR): Define.
30081 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
30082 (rs6000_output_tlsargs): New function.
30083 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
30084 __tls_get_addr call takes an arg.
30085 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
30086 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
30087 delete split..
30088 (call_value_nonlocal_sysv): ..or here, delete split.
30089 (tls_gdld_nomark): Delete.
30090 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
30091 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
30092 (call_value_nonlocal_sysv): Likewise.
30093 (call_value_nonlocal_sysv_secure): Likewise.
30094 (call_value_nonlocal_aix): Likewise.
30095 (call_value_indirect_aix): Likewise.
30096 (call_value_indirect_elfv2): Likewise.
30097 (call_value_local32, call_value_local64): Disable for no-mark tls.
30098 (call_value_local_aix): Likewise.
30099
30100 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
30101
30102 PR target/88938
30103 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
30104 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
30105
30106 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
30107
30108 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
30109 string contents as hash_map keys.
30110
30111 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
30112
30113 PR c/88928
30114 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
30115 for rvalue context. Handle rvalues correctly. Use min_align_of_type
30116 instead of TYPE_ALIGN.
30117 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
30118 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
30119 pointer from TYPE_STUB_DECL.
30120
30121 2019-01-21 Richard Biener <rguenther@suse.de>
30122
30123 PR tree-optimization/88934
30124 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
30125 at the possibly non-constant operand.
30126 (vect_get_constant_vectors): Adjust.
30127
30128 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
30129
30130 PR target/71659
30131 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
30132 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
30133 instead of _X86INTRIN_H_INCLUDED.
30134 * onfig/i386/clwbintrin.h: Likewise.
30135 * config/i386/pkuintrin.h: Likewise.
30136 * config/i386/prfchwintrin.h: Likewise.
30137 * config/i386/rdseedintrin.h: Likewise.
30138 * config/i386/wbnoinvdintrin.h: Likewise.
30139 * config/i386/xsavecintrin.h: Likewise.
30140 * config/i386/xsavesintrin.h: Likewise.
30141 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
30142 * config/i386/xsaveintrin.h: Likewise.
30143 * config/i386/xsaveoptintrin.h: Likewise.
30144 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
30145 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
30146 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
30147 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
30148 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
30149 * config/i386/immintrin.h: Here.
30150
30151 2019-01-20 Martin Jambor <mjambor@suse.cz>
30152
30153 PR ipa/87615
30154 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
30155 with aa_walk_budget.
30156 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
30157 aa_walk_budget_p parameter.
30158 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
30159 walk. Updated all callers.
30160 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
30161 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
30162 unmodified_parm.
30163 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
30164 parameter info. Extract info from fbi. Pass fbi to recursive calls
30165 and to unmodified_parm.
30166 (phi_result_unknown_predicate): New parameter fbi, removed parameter
30167 info, updated call to will_be_nonconstant_expr_predicate.
30168 (param_change_prob): New parameter fbi, limit AA walking.
30169 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
30170 calls to various above functions.
30171 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
30172 parameter. Use it to limit AA walking.
30173 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
30174 fbi, limit AA walk.
30175 (detect_type_change): New parameter fbi, pass it on to
30176 detect_type_change_from_memory_writes.
30177 (detect_type_change_ssa): Likewise.
30178 (aa_overwalked): Removed.
30179 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
30180 accordingly, adjust to the neew AA limiting scheme.
30181 (parm_ref_data_preserved_p): Likewise.
30182 (ipa_compute_jump_functions_for_edge): Adjust call to
30183 get_dynamic_type.
30184 (ipa_analyze_call_uses): Likewise.
30185 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
30186 (ipa_analyze_node): Initialize aa_walk_budget.
30187 (ipcp_transform_function): Likewise.
30188 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
30189 to get_dynamic_type.
30190
30191 2019-01-19 Jakub Jelinek <jakub@redhat.com>
30192
30193 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
30194 outside of #if CHECKING_P code.
30195
30196 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
30197
30198 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
30199 New function, split out from...
30200 (loop_versioning::analyze_stride): ...here.
30201 (loop_versioning::find_per_loop_multiplication): Use gassign.
30202 (loop_versioning::analyze_term_using_scevs): Return a success code.
30203 (loop_versioning::analyze_arbitrary_term): New function.
30204 (loop_versioning::analyze_address_fragment): Use
30205 analyze_arbitrary_term if all else fails.
30206
30207 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
30208
30209 PR target/88892
30210 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
30211 operands.
30212
30213 2019-01-18 Richard Biener <rguenther@suse.de>
30214
30215 PR tree-optimization/88903
30216 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
30217 scalar stmts a SLP shift amount is composed of when detecting
30218 shifts by scalars.
30219
30220 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
30221
30222 PR target/88799
30223 * config/arm/arm-cpus.in (mp): New feature.
30224 (sec): New feature.
30225 (fgroup ARMv7ve): Add mp and sec features.
30226 (arch armv7-a): Add options to allow mp and sec extensions.
30227 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
30228 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
30229 extenstions to the base architecture.
30230 (cpu cortex-a8): Add sec extension to the base architecture.
30231 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
30232 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
30233 variants down to the base v7-a varaint.
30234 * config/arm/t-multilib (v7_a_arch_variants): New variable.
30235 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
30236 of permitted extensions for -march=armv7-a and for
30237 -mcpu=generic-armv7-a.
30238
30239 2019-01-18 Martin Liska <mliska@suse.cz>
30240
30241 * params.def: Fix comment.
30242 * tree-profile.c (gimple_init_gcov_profiler): Bump function
30243 name.
30244 (gimple_gen_ic_func_profiler): Likewise.
30245
30246 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30247
30248 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
30249 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
30250 and put in error checks for stack protector guard options.
30251 (aarch64_stack_protect_guard): New.
30252 (TARGET_STACK_PROTECT_GUARD): Define.
30253 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
30254 (reg_stack_protect_address<mode>): New.
30255 (stack_protect_set): Adjust for SSP_GLOBAL.
30256 (stack_protect_test): Likewise.
30257 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
30258 (-mstack-protector-guard): Likewise.
30259 (-mstack-protector-guard-offset): Likewise.
30260
30261 2019-01-18 Jakub Jelinek <jakub@redhat.com>
30262
30263 PR tree-optimization/86214
30264 * tree-inline.h (struct copy_body_data): Add
30265 add_clobbers_to_eh_landing_pads member.
30266 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
30267 (copy_edges_for_bb): Call it if EH edge destination is <
30268 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
30269 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
30270 if flag_stack_reuse != SR_NONE and clear it afterwards.
30271
30272 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
30273
30274 PR target/85596
30275 * doc/install.texi (with-multilib-list): Document for aarch64.
30276
30277 2019-01-18 Jakub Jelinek <jakub@redhat.com>
30278
30279 PR target/88734
30280 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
30281 (("..."))) with ("...").
30282
30283 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
30284
30285 * doc/extend.texi (Built-in Functions for Memory Model Aware
30286 Atomic Operations): Document atomic fetch and nand.
30287
30288 2019-01-18 Martin Liska <mliska@suse.cz>
30289 Richard Biener <rguenther@suse.de>
30290
30291 PR middle-end/88587
30292 * cgraph.h (create_version_clone_with_body): Add new argument
30293 with attributes.
30294 * cgraphclones.c (cgraph_node::create_version_clone): Add
30295 DECL_ATTRIBUTES to a newly created decl. And call
30296 valid_attribute_p so that proper cl_target_optimization_node
30297 is set for the newly created declaration.
30298 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
30299 for declaration.
30300 (expand_target_clones): Do not call valid_attribute_p, it must
30301 be already done.
30302 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
30303 vector types.
30304
30305 2019-01-17 Jakub Jelinek <jakub@redhat.com>
30306
30307 PR target/88734
30308 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
30309 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
30310 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
30311
30312 2019-01-17 Martin Sebor <msebor@redhat.com>
30313
30314 PR middle-end/88273
30315 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
30316 Handle anti-ranges the same as no range at all.
30317
30318 2018-01-17 Steve Ellcey <sellcey@cavium.com>
30319
30320 * config/aarch64/aarch64.c (cgraph.h): New include.
30321 (intl.h): New include.
30322 (supported_simd_type): New function.
30323 (currently_supported_simd_type): Ditto.
30324 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
30325 (aarch64_simd_clone_adjust): Ditto.
30326 (aarch64_simd_clone_usable): Ditto.
30327 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
30328 (TARGET_SIMD_CLONE_ADJUST): Ditto.
30329 (TARGET_SIMD_CLONE_USABLE): Ditto.
30330 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
30331 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
30332 call.
30333
30334 2019-01-17 Martin Sebor <msebor@redhat.com>
30335
30336 PR tree-optimization/88800
30337 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
30338 NO_WARNING bit here. Avoid folding out-of-bounds calls.
30339 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
30340 redundant argument. Add new argument and issue diagnostics under
30341 its control. Detect out-of-bounds access even with warnings
30342 disabled.
30343 (check_bounds_or_overlap): Change return type. Add argument.
30344 (wrestrict_dom_walker::check_call): Adjust.
30345 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
30346 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
30347 check_bounds_or_overlap's return value.
30348 (handle_builtin_stxncpy): Same.
30349 (handle_builtin_strcat): Same.
30350
30351 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30352 Kwok Cheung Yeung <kcy@codesourcery.com>
30353 Julian Brown <julian@codesourcery.com>
30354 Tom de Vries <tom@codesourcery.com>
30355
30356 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
30357
30358 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30359
30360 * doc/sourcebuild.texi: Document dg-require-effective-target
30361 llvm_binutils and offload_gcn.
30362
30363 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30364 Kwok Cheung Yeung <kcy@codesourcery.com>
30365 Julian Brown <julian@codesourcery.com>
30366 Tom de Vries <tom@codesourcery.com>
30367
30368 * doc/sourcebuild.texi: Document dg-required-effective-target
30369 exceptions.
30370
30371 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30372 Kwok Cheung Yeung <kcy@codesourcery.com>
30373 Julian Brown <julian@codesourcery.com>
30374 Tom de Vries <tom@codesourcery.com>
30375 Jan Hubicka <hubicka@ucw.cz>
30376 Martin Jambor <mjambor@suse.cz>
30377
30378 * config.gcc: Add amdgcn*-*-amdhsa configuration.
30379 * configure.ac: Check for dlopen.
30380 * configure: Regenerate.
30381
30382 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30383 Kwok Cheung Yeung <kcy@codesourcery.com>
30384 Julian Brown <julian@codesourcery.com>
30385 Tom de Vries <tom@codesourcery.com>
30386 Jan Hubicka <hubicka@ucw.cz>
30387 Martin Jambor <mjambor@suse.cz>
30388
30389 * common/config/gcn/gcn-common.c: New file.
30390 * config/gcn/driver-gcn.c: New file.
30391 * config/gcn/gcn-builtins.def: New file.
30392 * config/gcn/gcn-hsa.h: New file.
30393 * config/gcn/gcn-modes.def: New file.
30394 * config/gcn/gcn-opts.h: New file.
30395 * config/gcn/gcn-passes.def: New file.
30396 * config/gcn/gcn-protos.h: New file.
30397 * config/gcn/gcn-run.c: New file.
30398 * config/gcn/gcn-tree.c: New file.
30399 * config/gcn/gcn.c: New file.
30400 * config/gcn/gcn.h: New file.
30401 * config/gcn/gcn.opt: New file.
30402 * config/gcn/t-gcn-hsa: New file.
30403
30404 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30405 Kwok Cheung Yeung <kcy@codesourcery.com>
30406 Julian Brown <julian@codesourcery.com>
30407 Tom de Vries <tom@codesourcery.com>
30408 Jan Hubicka <hubicka@ucw.cz>
30409 Martin Jambor <mjambor@suse.cz>
30410
30411 * config/gcn/constraints.md: New file.
30412 * config/gcn/gcn-valu.md: New file.
30413 * config/gcn/gcn.md: New file.
30414 * config/gcn/predicates.md: New file.
30415
30416 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
30417
30418 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
30419 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
30420 (stmt_uses_0_or_null_in_undefined_way): Likewise.
30421 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
30422
30423 2019-01-17 Tamar Christina <tamar.christina@arm.com>
30424
30425 PR target/88851
30426 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
30427 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
30428 it and document registers.
30429
30430 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30431
30432 * config/aarch64/aarch64.c (ares_tunings): Define.
30433 * config/aarch64/aarch64-cores.def (ares): Use the above.
30434
30435 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
30436
30437 PR target/88794
30438 Revert:
30439 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
30440
30441 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
30442 (_mm512_fixupimm_round_pd): Update parameters and builtin.
30443 (_mm512_maskz_fixupimm_round_pd): Ditto.
30444 (_mm512_fixupimm_round_ps): Ditto.
30445 (_mm512_maskz_fixupimm_round_ps): Ditto.
30446 (_mm_fixupimm_round_sd): Ditto.
30447 (_mm_maskz_fixupimm_round_sd): Ditto.
30448 (_mm_fixupimm_round_ss): Ditto.
30449 (_mm_maskz_fixupimm_round_ss): Ditto.
30450 (_mm512_fixupimm_pd): Ditto.
30451 (_mm512_maskz_fixupimm_pd): Ditto.
30452 (_mm512_fixupimm_ps): Ditto.
30453 (_mm512_maskz_fixupimm_ps): Ditto.
30454 (_mm_fixupimm_sd): Ditto.
30455 (_mm_maskz_fixupimm_sd): Ditto.
30456 (_mm_fixupimm_ss): Ditto.
30457 (_mm_maskz_fixupimm_ss): Ditto.
30458 (_mm512_mask_fixupimm_round_pd): Update builtin.
30459 (_mm512_mask_fixupimm_round_ps): Ditto.
30460 (_mm_mask_fixupimm_round_sd): Ditto.
30461 (_mm_mask_fixupimm_round_ss): Ditto.
30462 (_mm512_mask_fixupimm_pd): Ditto.
30463 (_mm512_mask_fixupimm_ps): Ditto.
30464 (_mm_mask_fixupimm_sd): Ditto.
30465 (_mm_mask_fixupimm_ss): Ditto.
30466 * config/i386/avx512vlintrin.h:
30467 (_mm256_fixupimm_pd): Update parameters and builtin.
30468 (_mm256_maskz_fixupimm_pd): Ditto.
30469 (_mm256_fixupimm_ps): Ditto.
30470 (_mm256_maskz_fixupimm_ps): Ditto.
30471 (_mm_fixupimm_pd): Ditto.
30472 (_mm_maskz_fixupimm_pd): Ditto.
30473 (_mm_fixupimm_ps): Ditto.
30474 (_mm_maskz_fixupimm_ps): Ditto.
30475 (_mm256_mask_fixupimm_pd): Update builtin.
30476 (_mm256_mask_fixupimm_ps): Ditto.
30477 (_mm_mask_fixupimm_pd): Ditto.
30478 (_mm_mask_fixupimm_ps): Ditto.
30479 * config/i386/i386-builtin-types.def: Add new types and remove
30480 useless ones.
30481 * config/i386/i386-builtin.def: Update builtin definitions.
30482 * config/i386/i386.c: Handle new builtin types and remove useless ones.
30483 * config/i386/sse.md: Update VFIXUPIMM* patterns.
30484 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
30485 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
30486 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
30487 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
30488 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
30489 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
30490 * config/i386/subst.md:
30491 (round_saeonly_sd_mask_operand4): Add new subst_attr.
30492 (round_saeonly_sd_mask_op4): Ditto.
30493 (round_saeonly_expand_operand5): Ditto.
30494 (round_saeonly_expand): Update.
30495
30496 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
30497
30498 PR target/88794
30499 Revert:
30500 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
30501
30502 * config/i386/sse.md: Combine VFIXUPIMM* patterns
30503 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
30504 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
30505 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
30506 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
30507 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
30508 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
30509
30510 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
30511
30512 PR target/88794
30513 Revert:
30514 2018-12-15 Jakub Jelinek <jakub@redhat.com>
30515
30516 PR target/88489
30517 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
30518 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
30519 instead of UNSPEC_FIXUPIMM.
30520
30521 2019-01-17 Richard Biener <rguenther@suse.de>
30522
30523 PR lto/86736
30524 * dwarf2out.c (want_pubnames): Never generate pubnames sections
30525 and friends for the LTO part of debug info.
30526
30527 2019-01-17 Jakub Jelinek <jakub@redhat.com>
30528
30529 PR tree-optimization/86214
30530 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
30531 if x == y.
30532
30533 PR rtl-optimization/88870
30534 * dce.c (deletable_insn_p): Never delete const/pure calls that can
30535 throw if we can't alter the cfg or delete dead exceptions.
30536 (mark_insn): Don't call find_call_stack_args for such calls.
30537
30538 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
30539
30540 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
30541 prototypes for vec_st.
30542 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
30543 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
30544 mainly on signed/unsigned long long and double.
30545
30546 2019-01-16 David Malcolm <dmalcolm@redhat.com>
30547
30548 PR target/88861
30549 * combine.c (delete_noop_moves): Convert to "bool" return,
30550 returning true if any edges are eliminated.
30551 (combine_instructions): Also return true if delete_noop_moves
30552 returns true.
30553
30554 2019-01-16 Tamar Christina <tamar.christina@arm.com>
30555
30556 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
30557 correct max nunits for endian swap.
30558 (aarch64_expand_fcmla_builtin): Correct subreg code.
30559 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
30560 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
30561 lane endianness.
30562
30563 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
30564
30565 * config/alpha/alpha.c (alpha_gimplify_va_arg):
30566 Handle split indirect COMPLEX_TYPE arguments.
30567
30568 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
30569
30570 PR target/86891
30571 * config/aarch64/aarch64-modes.def: Add comment about how the carry
30572 bit is set by add and compare.
30573 (CC_ADC): New CC_MODE.
30574 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
30575 to cache the code and mode of X. Adjust the shape of a CC_Cmode
30576 comparison. Add detection for CC_ADCmode.
30577 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
30578 CC_ADCmode.
30579 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
30580 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
30581 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
30582 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
30583 to eliminate the need for zero-extending the operands.
30584 (add<mode>3_compareC_imm): Delete. Merge into ...
30585 (add<mode>3_compareC): ... this. Restructure the comparison to
30586 eliminate the need for zero-extending the operands.
30587 (add<mode>3_carryin): Use LTU for the overflow detection.
30588 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
30589 Reexpress comparison for overflow.
30590 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
30591 (add<mode>3_carryinC): Likewise.
30592 (add<mode>3_carryinV): Use LTU for carry between partials.
30593 * config/aarch64/predicates.md (aarch64_carry_operation): Update
30594 handling of CC_Cmode and add CC_ADCmode.
30595 (aarch64_borrow_operation): Likewise.
30596
30597 2019-01-16 Tamar Christina <tamar.christina@arm.com>
30598
30599 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
30600 Remove patternmode.
30601 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
30602 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
30603 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
30604 Remove endianness conversion.
30605
30606 2019-01-16 Martin Liska <mliska@suse.cz>
30607
30608 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
30609 for GCC driver.
30610 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
30611 a new argument.
30612 * gcc.c (add_sysrooted_hdrs_prefix): New function.
30613 (path_prefix_reset): Move up in the source file.
30614 (find_fortran_preinclude_file): Make complex search for the
30615 fortran header files.
30616
30617 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
30618
30619 * godump.c (go_output_typedef): When outputting a typedef, refer
30620 to the underlying type by its name and not its structure.
30621
30622 2019-01-15 David Malcolm <dmalcolm@redhat.com>
30623
30624 PR c++/88795
30625 * tree.c (build_function_type): Assert that arg_types is not
30626 error_mark_node.
30627
30628 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
30629
30630 PR inline-asm/52813
30631 * doc/extend.texi: Document that listing the stack pointer in the
30632 clobber list of an asm is a deprecated feature.
30633 * common.opt (Wdeprecated): Moved from c-family/c.opt.
30634 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
30635 warning instead of an error for clobbers of the stack pointer.
30636 Add a note explaining why.
30637
30638 2019-01-15 Richard Biener <rguenther@suse.de>
30639
30640 PR debug/88046
30641 * dwarf2out.c (gen_member_die): Do not generate inheritance
30642 DIEs late.
30643
30644 2019-01-15 Richard Biener <rguenther@suse.de>
30645
30646 PR tree-optimization/88855
30647 * tree-if-conv.c (combine_blocks): Collect
30648 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
30649
30650 2019-01-15 Tom de Vries <tdevries@suse.de>
30651
30652 PR target/80547
30653 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
30654 lhs == NULL_TREE for gang-level reduction.
30655
30656 2019-01-15 Richard Biener <rguenther@suse.de>
30657 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
30658
30659 PR ipa/88788
30660 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
30661 return true if SSA_NAME is already marked in visited bitmap.
30662 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
30663
30664 2019-01-15 Jakub Jelinek <jakub@redhat.com>
30665
30666 PR tree-optimization/88775
30667 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
30668 equal == 0 equality pointer comparisons some more if compared in
30669 integral types and either one points to an automatic var and the
30670 other to a global, or we can prove at least one points to the middle
30671 or both point to start or both point to end.
30672
30673 2019-01-14 Andi Kleen <ak@linux.intel.com>
30674
30675 * Makefile.in: Lower autofdo sampling rate by 10x.
30676 * Makefile.tpl: Dito.
30677
30678 2019-01-14 Tom Honermann <tom@honermann.net>
30679
30680 * defaults.h: Define CHAR8_TYPE.
30681
30682 2019-01-14 Martin Sebor <msebor@redhat.com>
30683
30684 PR target/88638
30685 * doc/extend.texi (Darwin Format Checks): Clarify.
30686
30687 2019-01-14 Richard Biener <rguenther@suse.de>
30688
30689 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
30690 whether we are in (simplify ...) or (match ...) context.
30691
30692 2019-01-14 Jakub Jelinek <jakub@redhat.com>
30693
30694 PR rtl-optimization/88796
30695 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
30696 * cfgexpand.c (stack_protect_prologue): Initialize
30697 crtl->stack_protect_guard_decl.
30698 * function.c (stack_protect_epilogue): Use it instead of calling
30699 targetm.stack_protect_guard again.
30700 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
30701 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
30702 crtl->stack_protect_guard_decl.
30703 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
30704 on the returned MEM_EXPR.
30705
30706 2019-01-12 Tom de Vries <tdevries@suse.de>
30707
30708 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
30709 vector length using -fopenacc-dim.
30710
30711 2019-01-12 Tom de Vries <tdevries@suse.de>
30712
30713 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
30714 lengths into account.
30715
30716 2019-01-12 Svante Signell <svante.signell@gmail.com>
30717
30718 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
30719 (TARGET_CAN_SPLIT_STACK): Define.
30720 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
30721
30722 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
30723
30724 * params.def (inline-unit-growth): Set to 40.
30725
30726 2019-01-12 Jakub Jelinek <jakub@redhat.com>
30727
30728 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
30729
30730 2019-01-12 Tom de Vries <tdevries@suse.de>
30731
30732 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
30733 region calling vector-partitionable routine, set default_vector_length
30734 to WARP_SIZE.
30735
30736 2019-01-12 Tom de Vries <tdevries@suse.de>
30737
30738 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
30739 variable default_vector_length.
30740
30741 2019-01-12 Tom de Vries <tdevries@suse.de>
30742
30743 PR middle-end/88703
30744 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
30745 from oacc_default_dims, as oacc_validate_dims would do it, and apply
30746 dimensions limits.
30747
30748 2019-01-12 Tom de Vries <tdevries@suse.de>
30749
30750 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
30751 (nvptx_goacc_validate_dims): Add used parameter.
30752 * doc/tm.texi: Regenerate.
30753 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
30754 argument to call to targetm.goacc.validate_dims.
30755 (default_goacc_validate_dims): Add used
30756 parameter.
30757 * target.def (validate_dims): Add used parameter in DEFHOOK.
30758 * targhooks.h (default_goacc_validate_dims): Add used parameter.
30759
30760 2019-01-11 Jakub Jelinek <jakub@redhat.com>
30761
30762 PR middle-end/85956
30763 PR lto/88733
30764 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
30765 field.
30766 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
30767 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
30768 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
30769 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
30770
30771 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
30772
30773 PR rtl-optimization/87305
30774 * lra-assigns.c
30775 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
30776 for little endian pseudos used as paradoxical subreg.
30777
30778 2019-01-11 Jakub Jelinek <jakub@redhat.com>
30779
30780 PR tree-optimization/88693
30781 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
30782 for STRING_CSTs that don't contain any NUL characters in the first
30783 TREE_STRING_LENGTH bytes.
30784
30785 2019-01-11 Alan Modra <amodra@gmail.com>
30786
30787 PR 88777
30788 PR 88614
30789 * genattrtab.c (min_fn): Don't translate values.
30790 (min_attr_value): Return INT_MAX when the value can't be calculated.
30791 Return minimum among any values that can be calculated.
30792 (max_attr_value): Adjust.
30793
30794 2019-01-11 Jakub Jelinek <jakub@redhat.com>
30795
30796 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
30797
30798 2019-01-11 Steve Ellcey <sellcey@marvell.com>
30799
30800 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
30801 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
30802 (aarch64_return_call_with_max_clobbers): New function.
30803 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
30804 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
30805 argument.
30806 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
30807 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
30808 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
30809 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
30810 * cselib.c (cselib_process_insn): Add argument to
30811 targetm.hard_regno_call_part_clobbered call.
30812 * ira-conflicts.c (ira_build_conflicts): Ditto.
30813 * ira-costs.c (ira_tune_allocno_costs): Ditto.
30814 * lra-constraints.c (inherit_reload_reg): Ditto.
30815 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
30816 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
30817 argument. Call targetm.return_call_with_max_clobbers.
30818 Add argument to targetm.hard_regno_call_part_clobbered call.
30819 (calls_have_same_clobbers_p): New function.
30820 (process_bb_lives): Add call_insn and last_call_insn variables.
30821 Pass call_insn to check_pseudos_live_through_calls.
30822 Modify if stmt to check targetm.return_call_with_max_clobbers.
30823 Update setting of flush variable.
30824 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
30825 to false.
30826 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
30827 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
30828 targetm.hard_regno_call_part_clobbered call.
30829 * reginfo.c (choose_hard_reg_mode): Ditto.
30830 * regrename.c (check_new_reg_p): Ditto.
30831 * reload.c (find_equiv_reg): Ditto.
30832 * reload1.c (emit_reload_insns): Ditto.
30833 * sched-deps.c (deps_analyze_insn): Ditto.
30834 * sel-sched.c (init_regs_for_mode): Ditto.
30835 (mark_unavailable_hard_regs): Ditto.
30836 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
30837 * target.def (hard_regno_call_part_clobbered): Add insn argument.
30838 (return_call_with_max_clobbers): New target function.
30839 * doc/tm.texi: Regenerate.
30840 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
30841 * hooks.c (hook_bool_uint_mode_false): Change to
30842 hook_bool_insn_uint_mode_false.
30843 * hooks.h (hook_bool_uint_mode_false): Ditto.
30844
30845 2019-01-11 Steve Ellcey <sellcey@marvell.com>
30846
30847 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
30848 (aarch64_remove_extra_call_preserved_regs): New function.
30849 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
30850 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
30851 * doc/tm.texi: Regenerate.
30852 * final.c (get_call_reg_set_usage): Call new hook.
30853 * target.def (remove_extra_call_preserved_regs): New hook.
30854 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
30855 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
30856
30857 2019-01-11 Jakub Jelinek <jakub@redhat.com>
30858
30859 PR bootstrap/88714
30860 * passes.c (finish_optimization_passes): Call print_combine_total_stats
30861 inside of pass_combine_1 dump rather than pass_profile_1.
30862
30863 2019-01-11 Tom de Vries <tdevries@suse.de>
30864
30865 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
30866 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
30867 (PTX_NUM_PER_WORKER_BARRIERS): Define.
30868 (nvptx_apply_dim_limits): Prevent vector_length 64 and
30869 num_workers 16.
30870
30871 2019-01-11 Tom de Vries <tdevries@suse.de>
30872
30873 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
30874
30875 2019-01-11 Jan Beulich <jbeulich@suse.com>
30876
30877 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
30878 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
30879 sse2_cvtsi2sd): Add {l}.
30880 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
30881 syntax.
30882
30883 2019-01-10 Jakub Jelinek <jakub@redhat.com>
30884
30885 PR target/88785
30886 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
30887 define_expand.
30888 (*float<floatunssuffix>v2div2sf2): New define_insn.
30889 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
30890 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
30891 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
30892 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
30893 match_operands with "const0_operand" "C".
30894
30895 2019-01-10 Tamar Christina <tamar.christina@arm.com>
30896
30897 * config/aarch64/aarch64-builtins.c
30898 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
30899 (aarch64_init_simd_builtins): ...Here
30900
30901 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
30902
30903 PR rtl-optimization/87305
30904 * lra-assigns.c
30905 (setup_live_pseudos_and_spill_after_risky_transforms): Check
30906 allocation for big endian pseudos used as paradoxical subregs and
30907 spill them if it is wrong.
30908 * lra-constraints.c (lra_constraints): Add a comment.
30909
30910 2019-01-10 Richard Biener <rguenther@suse.de>
30911
30912 PR tree-optimization/88792
30913 * tree-ssa-pre.c (get_representative_for): Do not return a
30914 value-number here.
30915
30916 2019-01-10 Jakub Jelinek <jakub@redhat.com>
30917
30918 PR middle-end/84877
30919 PR bootstrap/88450
30920 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
30921 (assign_parm_setup_block): Do the argument slot realignment here
30922 instead.
30923
30924 2019-01-10 Stefan Agner <stefan@agner.ch>
30925
30926 PR target/88648
30927 * config/arm/arm.c (arm_option_override_internal): Force
30928 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
30929
30930 2019-01-10 Jakub Jelinek <jakub@redhat.com>
30931
30932 PR c/88568
30933 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
30934 DECL_EXTERNAL.
30935
30936 2019-01-10 Tamar Christina <tamar.christina@arm.com>
30937
30938 * config/arm/arm-builtins.c
30939 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
30940 (MAC_LANE_PAIR_QUALIFIERS): New.
30941 (arm_expand_builtin_args): Use it.
30942 (arm_expand_builtin_1): Likewise.
30943 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
30944 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
30945 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
30946 * config/arm/arm_neon.h:
30947 (vcadd_rot90_f16): New.
30948 (vcaddq_rot90_f16): New.
30949 (vcadd_rot270_f16): New.
30950 (vcaddq_rot270_f16): New.
30951 (vcmla_f16): New.
30952 (vcmlaq_f16): New.
30953 (vcmla_lane_f16): New.
30954 (vcmla_laneq_f16): New.
30955 (vcmlaq_lane_f16): New.
30956 (vcmlaq_laneq_f16): New.
30957 (vcmla_rot90_f16): New.
30958 (vcmlaq_rot90_f16): New.
30959 (vcmla_rot90_lane_f16): New.
30960 (vcmla_rot90_laneq_f16): New.
30961 (vcmlaq_rot90_lane_f16): New.
30962 (vcmlaq_rot90_laneq_f16): New.
30963 (vcmla_rot180_f16): New.
30964 (vcmlaq_rot180_f16): New.
30965 (vcmla_rot180_lane_f16): New.
30966 (vcmla_rot180_laneq_f16): New.
30967 (vcmlaq_rot180_lane_f16): New.
30968 (vcmlaq_rot180_laneq_f16): New.
30969 (vcmla_rot270_f16): New.
30970 (vcmlaq_rot270_f16): New.
30971 (vcmla_rot270_lane_f16): New.
30972 (vcmla_rot270_laneq_f16): New.
30973 (vcmlaq_rot270_lane_f16): New.
30974 (vcmlaq_rot270_laneq_f16): New.
30975 (vcadd_rot90_f32): New.
30976 (vcaddq_rot90_f32): New.
30977 (vcadd_rot270_f32): New.
30978 (vcaddq_rot270_f32): New.
30979 (vcmla_f32): New.
30980 (vcmlaq_f32): New.
30981 (vcmla_lane_f32): New.
30982 (vcmla_laneq_f32): New.
30983 (vcmlaq_lane_f32): New.
30984 (vcmlaq_laneq_f32): New.
30985 (vcmla_rot90_f32): New.
30986 (vcmlaq_rot90_f32): New.
30987 (vcmla_rot90_lane_f32): New.
30988 (vcmla_rot90_laneq_f32): New.
30989 (vcmlaq_rot90_lane_f32): New.
30990 (vcmlaq_rot90_laneq_f32): New.
30991 (vcmla_rot180_f32): New.
30992 (vcmlaq_rot180_f32): New.
30993 (vcmla_rot180_lane_f32): New.
30994 (vcmla_rot180_laneq_f32): New.
30995 (vcmlaq_rot180_lane_f32): New.
30996 (vcmlaq_rot180_laneq_f32): New.
30997 (vcmla_rot270_f32): New.
30998 (vcmlaq_rot270_f32): New.
30999 (vcmla_rot270_lane_f32): New.
31000 (vcmla_rot270_laneq_f32): New.
31001 (vcmlaq_rot270_lane_f32): New.
31002 (vcmlaq_rot270_laneq_f32): New.
31003 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
31004 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
31005 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
31006 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
31007 vcmlaq_lane270): New.
31008 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
31009 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
31010 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
31011 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
31012 (arm_option_reconfigure_globals): Use them.
31013 * config/arm/iterators.md (VDF, VQ_HSF): New.
31014 (VCADD, VCMLA): New.
31015 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
31016 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
31017 New.
31018 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
31019 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
31020
31021 2019-01-10 Tamar Christina <tamar.christina@arm.com>
31022
31023 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
31024 Add qualifier_lane_pair_index.
31025 (emit-rtl.h): Include.
31026 (TYPES_QUADOP_LANE_PAIR): New.
31027 (aarch64_simd_expand_args): Use it.
31028 (aarch64_simd_expand_builtin): Likewise.
31029 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
31030 New.
31031 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
31032 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
31033 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
31034 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
31035 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
31036 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
31037 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
31038 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
31039 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
31040 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
31041 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
31042 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
31043 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
31044 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
31045 Add __ARM_FEATURE_COMPLEX.
31046 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
31047 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
31048 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
31049 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
31050 fcmlaq_lane270): New.
31051 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
31052 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
31053 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
31054 * config/aarch64/arm_neon.h:
31055 (vcadd_rot90_f16): New.
31056 (vcaddq_rot90_f16): New.
31057 (vcadd_rot270_f16): New.
31058 (vcaddq_rot270_f16): New.
31059 (vcmla_f16): New.
31060 (vcmlaq_f16): New.
31061 (vcmla_lane_f16): New.
31062 (vcmla_laneq_f16): New.
31063 (vcmlaq_lane_f16): New.
31064 (vcmlaq_rot90_lane_f16): New.
31065 (vcmla_rot90_laneq_f16): New.
31066 (vcmla_rot90_lane_f16): New.
31067 (vcmlaq_rot90_f16): New.
31068 (vcmla_rot90_f16): New.
31069 (vcmlaq_laneq_f16): New.
31070 (vcmla_rot180_laneq_f16): New.
31071 (vcmla_rot180_lane_f16): New.
31072 (vcmlaq_rot180_f16): New.
31073 (vcmla_rot180_f16): New.
31074 (vcmlaq_rot90_laneq_f16): New.
31075 (vcmlaq_rot270_laneq_f16): New.
31076 (vcmlaq_rot270_lane_f16): New.
31077 (vcmla_rot270_laneq_f16): New.
31078 (vcmlaq_rot270_f16): New.
31079 (vcmla_rot270_f16): New.
31080 (vcmlaq_rot180_laneq_f16): New.
31081 (vcmlaq_rot180_lane_f16): New.
31082 (vcmla_rot270_lane_f16): New.
31083 (vcadd_rot90_f32): New.
31084 (vcaddq_rot90_f32): New.
31085 (vcaddq_rot90_f64): New.
31086 (vcadd_rot270_f32): New.
31087 (vcaddq_rot270_f32): New.
31088 (vcaddq_rot270_f64): New.
31089 (vcmla_f32): New.
31090 (vcmlaq_f32): New.
31091 (vcmlaq_f64): New.
31092 (vcmla_lane_f32): New.
31093 (vcmla_laneq_f32): New.
31094 (vcmlaq_lane_f32): New.
31095 (vcmlaq_laneq_f32): New.
31096 (vcmla_rot90_f32): New.
31097 (vcmlaq_rot90_f32): New.
31098 (vcmlaq_rot90_f64): New.
31099 (vcmla_rot90_lane_f32): New.
31100 (vcmla_rot90_laneq_f32): New.
31101 (vcmlaq_rot90_lane_f32): New.
31102 (vcmlaq_rot90_laneq_f32): New.
31103 (vcmla_rot180_f32): New.
31104 (vcmlaq_rot180_f32): New.
31105 (vcmlaq_rot180_f64): New.
31106 (vcmla_rot180_lane_f32): New.
31107 (vcmla_rot180_laneq_f32): New.
31108 (vcmlaq_rot180_lane_f32): New.
31109 (vcmlaq_rot180_laneq_f32): New.
31110 (vcmla_rot270_f32): New.
31111 (vcmlaq_rot270_f32): New.
31112 (vcmlaq_rot270_f64): New.
31113 (vcmla_rot270_lane_f32): New.
31114 (vcmla_rot270_laneq_f32): New.
31115 (vcmlaq_rot270_lane_f32): New.
31116 (vcmlaq_rot270_laneq_f32): New.
31117 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
31118 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
31119 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
31120 (FCADD, FCMLA): New.
31121 (rot): New.
31122 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
31123
31124 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
31125
31126 PR other/16615
31127
31128 * config/pa/pa.c: Change "can not" to "cannot".
31129 * gimple-ssa-evrp-analyze.c: Likewise.
31130 * ipa-icf.c: Likewise.
31131 * ipa-polymorphic-call.c: Likewise.
31132 * ipa-pure-const.c: Likewise.
31133 * lra-constraints.c: Likewise.
31134 * lra-remat.c: Likewise.
31135 * reload1.c: Likewise.
31136 * reorg.c: Likewise.
31137 * tree-ssa-uninit.c: Likewise.
31138
31139 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
31140
31141 PR other/16615
31142
31143 * Makefile.in: Mechanically replace "can not" with "cannot".
31144 * alias.c: Likewise.
31145 * builtins.c: Likewise.
31146 * calls.c: Likewise.
31147 * cgraph.c: Likewise.
31148 * cgraph.h: Likewise.
31149 * cgraphclones.c: Likewise.
31150 * cgraphunit.c: Likewise.
31151 * combine-stack-adj.c: Likewise.
31152 * combine.c: Likewise.
31153 * common/config/i386/i386-common.c: Likewise.
31154 * config/aarch64/aarch64.c: Likewise.
31155 * config/alpha/sync.md: Likewise.
31156 * config/arc/arc.c: Likewise.
31157 * config/arc/predicates.md: Likewise.
31158 * config/arm/arm-c.c: Likewise.
31159 * config/arm/arm.c: Likewise.
31160 * config/arm/arm.h: Likewise.
31161 * config/arm/arm.md: Likewise.
31162 * config/arm/cortex-r4f.md: Likewise.
31163 * config/csky/csky.c: Likewise.
31164 * config/csky/csky.h: Likewise.
31165 * config/darwin-f.c: Likewise.
31166 * config/epiphany/epiphany.md: Likewise.
31167 * config/i386/i386.c: Likewise.
31168 * config/i386/sol2.h: Likewise.
31169 * config/m68k/m68k.c: Likewise.
31170 * config/mcore/mcore.h: Likewise.
31171 * config/microblaze/microblaze.md: Likewise.
31172 * config/mips/20kc.md: Likewise.
31173 * config/mips/sb1.md: Likewise.
31174 * config/nds32/nds32.c: Likewise.
31175 * config/nds32/predicates.md: Likewise.
31176 * config/pa/pa.c: Likewise.
31177 * config/rs6000/e300c2c3.md: Likewise.
31178 * config/rs6000/rs6000.c: Likewise.
31179 * config/s390/s390.h: Likewise.
31180 * config/sh/sh.c: Likewise.
31181 * config/sh/sh.md: Likewise.
31182 * config/spu/vmx2spu.h: Likewise.
31183 * cprop.c: Likewise.
31184 * dbxout.c: Likewise.
31185 * df-scan.c: Likewise.
31186 * doc/cfg.texi: Likewise.
31187 * doc/extend.texi: Likewise.
31188 * doc/fragments.texi: Likewise.
31189 * doc/gty.texi: Likewise.
31190 * doc/invoke.texi: Likewise.
31191 * doc/lto.texi: Likewise.
31192 * doc/md.texi: Likewise.
31193 * doc/objc.texi: Likewise.
31194 * doc/rtl.texi: Likewise.
31195 * doc/tm.texi: Likewise.
31196 * dse.c: Likewise.
31197 * emit-rtl.c: Likewise.
31198 * emit-rtl.h: Likewise.
31199 * except.c: Likewise.
31200 * expmed.c: Likewise.
31201 * expr.c: Likewise.
31202 * fold-const.c: Likewise.
31203 * genautomata.c: Likewise.
31204 * gimple-fold.c: Likewise.
31205 * hard-reg-set.h: Likewise.
31206 * ifcvt.c: Likewise.
31207 * ipa-comdats.c: Likewise.
31208 * ipa-cp.c: Likewise.
31209 * ipa-devirt.c: Likewise.
31210 * ipa-fnsummary.c: Likewise.
31211 * ipa-icf.c: Likewise.
31212 * ipa-inline-transform.c: Likewise.
31213 * ipa-inline.c: Likewise.
31214 * ipa-polymorphic-call.c: Likewise.
31215 * ipa-profile.c: Likewise.
31216 * ipa-prop.c: Likewise.
31217 * ipa-pure-const.c: Likewise.
31218 * ipa-reference.c: Likewise.
31219 * ipa-split.c: Likewise.
31220 * ipa-visibility.c: Likewise.
31221 * ipa.c: Likewise.
31222 * ira-build.c: Likewise.
31223 * ira-color.c: Likewise.
31224 * ira-conflicts.c: Likewise.
31225 * ira-costs.c: Likewise.
31226 * ira-int.h: Likewise.
31227 * ira-lives.c: Likewise.
31228 * ira.c: Likewise.
31229 * ira.h: Likewise.
31230 * loop-invariant.c: Likewise.
31231 * loop-unroll.c: Likewise.
31232 * lower-subreg.c: Likewise.
31233 * lra-assigns.c: Likewise.
31234 * lra-constraints.c: Likewise.
31235 * lra-eliminations.c: Likewise.
31236 * lra-lives.c: Likewise.
31237 * lra-remat.c: Likewise.
31238 * lra-spills.c: Likewise.
31239 * lra.c: Likewise.
31240 * lto-cgraph.c: Likewise.
31241 * lto-streamer-out.c: Likewise.
31242 * postreload-gcse.c: Likewise.
31243 * predict.c: Likewise.
31244 * profile-count.h: Likewise.
31245 * profile.c: Likewise.
31246 * recog.c: Likewise.
31247 * ree.c: Likewise.
31248 * reload.c: Likewise.
31249 * reload1.c: Likewise.
31250 * reorg.c: Likewise.
31251 * resource.c: Likewise.
31252 * rtl.def: Likewise.
31253 * rtl.h: Likewise.
31254 * rtlanal.c: Likewise.
31255 * sched-deps.c: Likewise.
31256 * sched-ebb.c: Likewise.
31257 * sched-rgn.c: Likewise.
31258 * sel-sched-ir.c: Likewise.
31259 * sel-sched.c: Likewise.
31260 * shrink-wrap.c: Likewise.
31261 * simplify-rtx.c: Likewise.
31262 * symtab.c: Likewise.
31263 * target.def: Likewise.
31264 * toplev.c: Likewise.
31265 * tree-call-cdce.c: Likewise.
31266 * tree-cfg.c: Likewise.
31267 * tree-complex.c: Likewise.
31268 * tree-core.h: Likewise.
31269 * tree-eh.c: Likewise.
31270 * tree-inline.c: Likewise.
31271 * tree-loop-distribution.c: Likewise.
31272 * tree-nrv.c: Likewise.
31273 * tree-profile.c: Likewise.
31274 * tree-sra.c: Likewise.
31275 * tree-ssa-alias.c: Likewise.
31276 * tree-ssa-dce.c: Likewise.
31277 * tree-ssa-dom.c: Likewise.
31278 * tree-ssa-forwprop.c: Likewise.
31279 * tree-ssa-loop-im.c: Likewise.
31280 * tree-ssa-loop-ivcanon.c: Likewise.
31281 * tree-ssa-loop-ivopts.c: Likewise.
31282 * tree-ssa-loop-niter.c: Likewise.
31283 * tree-ssa-phionlycprop.c: Likewise.
31284 * tree-ssa-phiopt.c: Likewise.
31285 * tree-ssa-propagate.c: Likewise.
31286 * tree-ssa-threadedge.c: Likewise.
31287 * tree-ssa-threadupdate.c: Likewise.
31288 * tree-ssa-uninit.c: Likewise.
31289 * tree-ssanames.c: Likewise.
31290 * tree-streamer-out.c: Likewise.
31291 * tree.c: Likewise.
31292 * tree.h: Likewise.
31293 * vr-values.c: Likewise.
31294
31295 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
31296
31297 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
31298 (ix86_split_xorsign): Ditto.
31299 * config/i386/i386.c (ix86_expand_xorsign): New function.
31300 (ix86_split_xorsign): Ditto.
31301 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
31302 (xorsign<mode>3): New expander.
31303 (xorsign<mode>3_1): New insn_and_split pattern.
31304 * config/i386/sse.md (xorsign<mode>3): New expander.
31305
31306 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
31307
31308 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
31309 (*tablejump_sp64): Likewise.
31310 (*tablejump<P:mode>): ...this.
31311 (*call_address_sp32): Merge into...
31312 (*call_address_sp64): Likewise.
31313 (*call_address<P:mode>): ...this.
31314 (*call_symbolic_sp32): Merge into...
31315 (*call_symbolic_sp64): Likewise.
31316 (*call_symbolic<P:mode>): ...this.
31317 (call_value): Remove constraint and add predicate.
31318 (*call_value_address_sp32): Merge into...
31319 (*call_value_address_sp64): Likewise.
31320 (*call_value_address<P:mode>): ...this.
31321 (*call_value_symbolic_sp32): Merge into...
31322 (*call_value_symbolic_sp64): Likewise.
31323 (*call_value_symbolic<P:mode>): ...this.
31324 (*sibcall_symbolic_sp32): Merge into...
31325 (*sibcall_symbolic_sp64): Likewise.
31326 (*sibcall_symbolic<P:mode>): ...this.
31327 (sibcall_value): Remove constraint and add predicate.
31328 (*sibcall_value_symbolic_sp32): Merge into...
31329 (*sibcall_value_symbolic_sp64): Likewise.
31330 (*sibcall_value_symbolic<P:mode>): ...this.
31331 (window_save): Minor tweak.
31332 (*branch_sp32): Merge into...
31333 (*branch_sp64): Likewise.
31334 (*branch<P:mode>): ...this.
31335
31336 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
31337 James Clarke <jrtc27@jrtc27.com>
31338
31339 PR target/84010
31340 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
31341 consistently in TLS address generation and adjust code to the renaming
31342 of patterns. Mark calls to __tls_get_addr as const.
31343 * config/sparc/sparc.md (tgd_hi22): Turn into...
31344 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
31345 (tgd_lo10): Turn into...
31346 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
31347 (tgd_add32): Merge into...
31348 (tgd_add64): Likewise.
31349 (tgd_add<P:mode>): ...this and use Pmode throughout.
31350 (tldm_hi22): Turn into...
31351 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
31352 (tldm_lo10): Turn into...
31353 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
31354 (tldm_add32): Merge into...
31355 (tldm_add64): Likewise.
31356 (tldm_add<P:mode>): ...this and use Pmode throughout.
31357 (tldm_call32): Merge into...
31358 (tldm_call64): Likewise.
31359 (tldm_call<P:mode>): ...this and use Pmode throughout.
31360 (tldo_hix22): Turn into...
31361 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
31362 (tldo_lox10): Turn into...
31363 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
31364 (tldo_add32): Merge into...
31365 (tldo_add64): Likewise.
31366 (tldo_add<P:mode>): ...this and use Pmode throughout.
31367 (tie_hi22): Turn into...
31368 (tie_hi22<P:mode>): ...this and use Pmode throughout.
31369 (tie_lo10): Turn into...
31370 (tie_lo10<P:mode>): ...this and use Pmode throughout.
31371 (tie_ld64): Use DImode throughout.
31372 (tie_add32): Merge into...
31373 (tie_add64): Likewise.
31374 (tie_add<P:mode>): ...this and use Pmode throughout.
31375 (tle_hix22_sp32): Merge into...
31376 (tle_hix22_sp64): Likewise.
31377 (tle_hix22<P:mode>): ...this and use Pmode throughout.
31378 (tle_lox22_sp32): Merge into...
31379 (tle_lox22_sp64): Likewise.
31380 (tle_lox22<P:mode>): ...this and use Pmode throughout.
31381 (*tldo_ldub_sp32): Merge into...
31382 (*tldo_ldub_sp64): Likewise.
31383 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
31384 (*tldo_ldub1_sp32): Merge into...
31385 (*tldo_ldub1_sp64): Likewise.
31386 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
31387 (*tldo_ldub2_sp32): Merge into...
31388 (*tldo_ldub2_sp64): Likewise.
31389 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
31390 (*tldo_ldsb1_sp32): Merge into...
31391 (*tldo_ldsb1_sp64): Likewise.
31392 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
31393 (*tldo_ldsb2_sp32): Merge into...
31394 (*tldo_ldsb2_sp64): Likewise.
31395 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
31396 (*tldo_ldub3_sp64): Use DImode throughout.
31397 (*tldo_ldsb3_sp64): Likewise.
31398 (*tldo_lduh_sp32): Merge into...
31399 (*tldo_lduh_sp64): Likewise.
31400 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
31401 (*tldo_lduh1_sp32): Merge into...
31402 (*tldo_lduh1_sp64): Likewise.
31403 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
31404 (*tldo_ldsh1_sp32): Merge into...
31405 (*tldo_ldsh1_sp64): Likewise.
31406 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
31407 (*tldo_lduh2_sp64): Use DImode throughout.
31408 (*tldo_ldsh2_sp64): Likewise.
31409 (*tldo_lduw_sp32): Merge into...
31410 (*tldo_lduw_sp64): Likewise.
31411 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
31412 (*tldo_lduw1_sp64): Use DImode throughout.
31413 (*tldo_ldsw1_sp64): Likewise.
31414 (*tldo_ldx_sp64): Likewise.
31415 (*tldo_stb_sp32): Merge into...
31416 (*tldo_stb_sp64): Likewise.
31417 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
31418 (*tldo_sth_sp32): Merge into...
31419 (*tldo_sth_sp64): Likewise.
31420 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
31421 (*tldo_stw_sp32): Merge into...
31422 (*tldo_stw_sp64): Likewise.
31423 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
31424 (*tldo_stx_sp64): Use DImode throughout.
31425
31426 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31427
31428 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
31429 check configure option to set BTI and Return Address Signing.
31430 * configure.ac: Add --enable-standard-branch-protection and
31431 --disable-standard-branch-protection.
31432 * configure: Regenerated.
31433 * doc/install.texi: Document the same.
31434
31435 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31436 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31437
31438 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
31439 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
31440 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
31441 if bti is enabled.
31442 * config/aarch64/aarch64-bti-insert.c: New file.
31443 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
31444 pass.
31445 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
31446 new bti pass.
31447 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
31448 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
31449 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
31450 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
31451
31452 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31453
31454 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
31455 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
31456 Disable bti for -mbranch-protection=none.
31457 (aarch64_handle_standard_branch_protection): Enable bti for
31458 -mbranch-protection=standard.
31459 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
31460 -mbranch-protection.
31461 (aarch64_bti_enabled): Check if bti is enabled.
31462 * config/aarch64/aarch64.opt: Declare target variable.
31463 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
31464
31465 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31466
31467 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
31468 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
31469 (aarch64_expand_epilogue): Likewise.
31470 (aarch64_output_mi_thunk): Likewise.
31471 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
31472 TAILCALL_ADDR_REGS to x16 and x17.
31473 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
31474
31475 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31476
31477 * config/aarch64/aarch64-option-extensions.def: Define
31478 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
31479 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
31480 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
31481 (AARCH64_FL_PREDRES): New.
31482 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
31483 AARCH64_FL_PREDRES by default.
31484 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
31485
31486 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31487
31488 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
31489 ARMv8.5-A.
31490 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
31491 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
31492 * doc/invoke.texi: Document ARMv8.5-A.
31493
31494 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
31495
31496 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
31497 (xorsign<mode>3): Likewise.
31498
31499 2019-01-09 Jelinek <jakub@redhat.com>
31500
31501 PR middle-end/88758
31502 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
31503 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
31504
31505 PR rtl-optimization/88331
31506 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
31507 not currently_expanding_to_rtl.
31508
31509 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
31510
31511 * doc/invoke.texi (-Os): Remove trailing spaces.
31512 (-finline-functions): Remove reference to -O2.
31513
31514 2019-01-08 Jakub Jelinek <jakub@redhat.com>
31515
31516 PR rtl-optimization/79593
31517 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
31518
31519 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
31520 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
31521
31522 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
31523
31524 PR bootstrap/88721
31525 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
31526 to -1 on entry.
31527
31528 PR debug/88723
31529 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
31530 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
31531
31532 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
31533
31534 PR target/88717
31535 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
31536 ix86_avx_u128_mode_entry.
31537
31538 2019-01-08 Martin Liska <mliska@suse.cz>
31539
31540 PR tree-optimization/88753
31541 * tree-switch-conversion.c (switch_conversion::build_one_array):
31542 Come up with local variable constructor. Convert first to
31543 type of constructor values.
31544
31545 2019-01-08 Richard Biener <rguenther@suse.de>
31546
31547 PR tree-optimization/86554
31548 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
31549 rpo_avail): Move earlier.
31550 (visit_nary_op): When value-numbering to expressions
31551 with different overflow behavior make sure there's an
31552 available expression on the path.
31553
31554 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
31555
31556 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
31557 aarch64_parse_branch_protection,
31558 struct aarch64_branch_protect_type,
31559 aarch64_handle_no_branch_protection,
31560 aarch64_handle_standard_branch_protection,
31561 aarch64_validate_mbranch_protection,
31562 aarch64_handle_pac_ret_protection,
31563 aarch64_handle_attr_branch_protection,
31564 accepted_branch_protection_string,
31565 aarch64_pac_ret_subtypes,
31566 aarch64_branch_protect_types,
31567 aarch64_handle_pac_ret_leaf): Define.
31568 (aarch64_override_options_after_change_1, aarch64_override_options):
31569 Add check for accepted_branch_protection_string.
31570 (aarch64_option_save): Save accepted_branch_protection_string.
31571 (aarch64_option_restore): Save accepted_branch_protection_string.
31572 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
31573 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
31574 msign-return-address.
31575 * doc/invoke.texi: Add mbranch-protection.
31576
31577 2019-01-08 Alan Modra <amodra@gmail.com>
31578
31579 PR target/88614
31580 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
31581 Delete "unknownp" parameter. Adjust callers. Handle
31582 CONST_INT, PLUS, MINUS, and MULT.
31583 (attr_value_aligned): Renamed from or_attr_value.
31584 (min_attr_value): Return INT_MIN for unhandled rtl case..
31585 (min_fn): ..and translate to INT_MAX here.
31586 (write_length_unit_log): Modify to cope without "unknown".
31587 (write_attr_value): Handle IF_THEN_ELSE.
31588
31589 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
31590
31591 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
31592 optimization for masked stores.
31593
31594 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
31595
31596 PR middle-end/88567
31597 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
31598 output vector directly to duplicate_and_interleave instead of
31599 going through a temporary. Postpone insertion of ctor_seq to
31600 the end of the loop.
31601
31602 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
31603
31604 PR target/86891
31605 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
31606 unsigned_p. Handle signed and unsigned overflow correction as
31607 required.
31608 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
31609 prototype.
31610 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
31611 for operand 2.
31612 (add<mode>3_compareV_imm): Make this callable for expanding.
31613 (subv<GPI:mode>4): Use register_operand for operand 1. Use
31614 aarch64_plus_operand for operand 2.
31615 (subv<GPI:mode>_insn): New insn pattern.
31616 (subv<GPI:mode>_imm): Likewise.
31617 (negv<GPI:mode>3): New expand pattern.
31618 (negv<GPI:mode>_insn): New insn pattern.
31619 (negv<GPI:mode>_cmp_only): Likewise.
31620 (cmpv<GPI:mode>_insn): Likewise.
31621 (subvti4): Use register_operand for operand 1. Update call to
31622 aarch64_expand_subvti.
31623 (usubvti4): Likewise.
31624 (negvti3): New expand pattern.
31625 (negdi_carryout): New insn pattern.
31626 (negvdi_carryinV): New insn pattern.
31627 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
31628 version the named version.
31629 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
31630 operands.
31631 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
31632 patterns.
31633 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
31634 patterns.
31635 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
31636 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
31637 (sub<mode>3_carryinCV): Delete.
31638 (sub<GPI:mode>3_carryinV): New expand pattern.
31639 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
31640
31641 2019-01-07 Richard Biener <rguenther@suse.de>
31642
31643 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
31644 of tree_operand_hash.
31645
31646 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
31647
31648 PR tree-optimization/88598
31649 * tree.h (single_nonzero_element): Declare.
31650 * tree.c (single_nonzero_element): New function.
31651 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
31652 if I is the only nonzero element of CST.
31653
31654 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
31655
31656 PR tree-optimization/88598
31657 * tree.h (initializer_each_zero_or_onep): Declare.
31658 * tree.c (initializer_each_zero_or_onep): New function.
31659 (signed_or_unsigned_type_for): Handle float types too.
31660 (unsigned_type_for, signed_type_for): Update comments accordingly.
31661 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
31662 x & { 0 or -1, 0 or -1, ... }.
31663
31664 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
31665
31666 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
31667 with x86_64-pc-linux-gnu.
31668
31669 2019-01-07 Tom de Vries <tdevries@suse.de>
31670
31671 PR target/85486
31672 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
31673 function.
31674 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
31675 routines.
31676
31677 2019-01-07 Jakub Jelinek <jakub@redhat.com>
31678
31679 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
31680 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
31681 TARGET_AVX512F as condition.
31682
31683 PR debug/88723
31684 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
31685 const_not_ok_for_debug_p target hook.
31686 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
31687 on UNSPEC and subexpressions thereof if all subexpressions of the
31688 UNSPEC are CONSTANT_P.
31689
31690 PR tree-optimization/88676
31691 * tree-ssa-phiopt.c (two_value_replacement): New function.
31692 (tree_ssa_phiopt_worker): Call it.
31693
31694 PR sanitizer/88619
31695 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
31696 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
31697
31698 PR c++/85052
31699 * tree-vect-generic.c: Include insn-config.h and recog.h.
31700 (expand_vector_piecewise): Add defaulted ret_type argument,
31701 if non-NULL, use that in preference to type for the result type.
31702 (expand_vector_parallel): Formatting fix.
31703 (do_vec_conversion, do_vec_narrowing_conversion,
31704 expand_vector_conversion): New functions.
31705 (expand_vector_operations_1): Call expand_vector_conversion
31706 for VEC_CONVERT ifn calls.
31707 * internal-fn.def (VEC_CONVERT): New internal function.
31708 * internal-fn.c (expand_VEC_CONVERT): New function.
31709 * fold-const-call.c (fold_const_vec_convert): New function.
31710 (fold_const_call): Use it for CFN_VEC_CONVERT.
31711 * doc/extend.texi (__builtin_convertvector): Document.
31712
31713 2019-01-07 Tom de Vries <tdevries@suse.de>
31714
31715 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
31716 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
31717 vector_red_partition, vector_red_sym): New global variables.
31718 (nvptx_option_override): Initialize vector_red_sym.
31719 (nvptx_declare_function_name): Restore red_partition register.
31720 (nvptx_file_end): Emit code to declare the vector reduction variables.
31721 (nvptx_output_red_partition): New function.
31722 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
31723 large vector reductions.
31724 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
31725 (nvptx_init_builtins): Add VECTOR_ADDR.
31726 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
31727 Handle nvptx_expand_shared_addr.
31728 (nvptx_get_shared_red_addr): Add vector argument and handle large
31729 vectors.
31730 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
31731 large vectors.
31732 (nvptx_goacc_reduction_init): Likewise.
31733 (nvptx_goacc_reduction_fini): Likewise.
31734 (nvptx_goacc_reduction_teardown): Likewise.
31735 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
31736 init,fini,teardown}.
31737 (nvptx_init_axis_predicate): Initialize vector_red_partition.
31738 (nvptx_set_current_function): Init vector_red_partition.
31739 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
31740 (nvptx_red_partition): New insn.
31741 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
31742
31743 2019-01-07 Tom de Vries <tdevries@suse.de>
31744
31745 PR target/85381
31746 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
31747 empty loops.
31748
31749 2019-01-07 Tom de Vries <tdevries@suse.de>
31750
31751 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
31752 (nvptx_option_override): Init oacc_bcast_partition.
31753 (nvptx_init_oacc_workers): New function.
31754 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
31755 (nvptx_needs_shared_bcast): New function.
31756 (nvptx_find_par): Generalize to enable vectors to use shared-memory
31757 to propagate state.
31758 (nvptx_shared_propagate): Initialize vector bcast partition and
31759 synchronization state.
31760 (nvptx_single): Generalize to enable vectors to use shared-memory
31761 to propagate state.
31762 (nvptx_process_pars): Likewise.
31763 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
31764 * config/nvptx/nvptx.h (struct machine_function): Add
31765 bcast_partition and sync_bar members.
31766
31767 2019-01-07 Tom de Vries <tdevries@suse.de>
31768
31769 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
31770 (nvptx_apply_dim_limits): New function.
31771 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
31772 PTX_WARP_SIZE.
31773
31774 2019-01-07 Tom de Vries <tdevries@suse.de>
31775
31776 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
31777 as late as possible.
31778
31779 2019-01-07 Tom de Vries <tdevries@suse.de>
31780
31781 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
31782 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
31783 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
31784 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
31785 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
31786
31787 2019-01-07 Tom de Vries <tdevries@suse.de>
31788
31789 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
31790
31791 2019-01-07 Tom de Vries <tdevries@suse.de>
31792
31793 * omp-offload.c (oacc_get_min_dim): New function.
31794 * omp-offload.h (oacc_get_min_dim): Declare.
31795
31796 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
31797
31798 PR target/88521
31799 * config/i386/i386.c (function_value_ms_64): Return small sturct in
31800 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
31801
31802 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
31803
31804 PR tree-opt/86020
31805 Revert:
31806 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
31807
31808 * ipa-inline.c (edge_badness): Use inlined_time instead of
31809 inline_summaries->get.
31810
31811 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
31812
31813 * opts.c (enable_fdo_optimizations): Enable
31814 version-loops-for-strides, loop-interchange, unrol-and-jam
31815 and tree-loop-distribution.
31816 * invoke.texi: Document newly enabled options.
31817
31818 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
31819
31820 * doc/invoke.texi (max-inline-insns-small): New parameters.
31821 * ipa-inline.c (want_early_inline_function_p): simplify.
31822 (want_inline_small_function_p): Fix pasto from previous patch;
31823 use max-inline-insns-small bound.
31824 * params.def (max-inline-insns-small): New param.
31825 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
31826 variables correctly.
31827
31828 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
31829
31830 * doc/invoke.texi: Document max-inline-insns-size,
31831 uninlined-function-insns, uninlined-function-time,
31832 uninlined-thunk-insns and uninlined-thunk-time.
31833 * params.def: Add max-inline-insns-size,
31834 uninlined-function-insns, uninlined-function-time,
31835 uninlined-thunk-insns and uninlined-thunk-time.
31836 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
31837 new parameters.
31838 * ipa-inline.c (can_inline_edge_by_limits_p,
31839 want_inline_small_function_p): Use new parameters.
31840
31841 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
31842
31843 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
31844
31845 2019-01-05 Jakub Jelinek <jakub@redhat.com>
31846
31847 PR middle-end/82564
31848 PR target/88620
31849 * expr.c (expand_assignment): For calls returning VLA structures
31850 if to_rtx is not a MEM, force it into a stack temporary.
31851
31852 PR debug/88635
31853 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
31854 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
31855 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
31856 subexpressions of both operands.
31857 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
31858 subrtxes are CONSTANT_P.
31859 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
31860 2018-11-09 changes.
31861
31862 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
31863
31864 * params.def (hot-bb-count-ws-permille): Set to 990.
31865
31866 2019-01-04 Martin Sebor <msebor@redhat.com>
31867
31868 PR c/88546
31869 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
31870 leaf.
31871
31872 2019-01-04 Martin Sebor <msebor@redhat.com>
31873
31874 PR c/88363
31875 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
31876
31877 2019-01-04 Jakub Jelinek <jakub@redhat.com>
31878
31879 * gdbinit.in: Turn off pagination for the skip commands, restore
31880 it to previous state afterwards.
31881
31882 2019-01-04 Jakub Jelinek <jakub@redhat.com>
31883
31884 PR target/88594
31885 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
31886 of GET_MODE (opN) as modes of the libcall arguments.
31887
31888 2019-01-04 Jan Beulich <jbeulich@suse.com>
31889
31890 * config/i386/sse.md
31891 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
31892 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
31893 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
31894 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
31895 avx512f_vmcmp<mode>3<round_saeonly_name>,
31896 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
31897 avx512f_maskcmp<mode>3,
31898 <avx512>_cvt<ssemodesuffix>2mask<mode>,
31899 <avx512>_cvt<ssemodesuffix>2mask<mode>,
31900 *<avx512>_cvtmask2<ssemodesuffix><mode>,
31901 *<avx512>_cvtmask2<ssemodesuffix><mode>,
31902 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
31903 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
31904 <avx512>_gt<mode>3<mask_scalar_merge_name>,
31905 <avx512>_gt<mode>3<mask_scalar_merge_name>,
31906 <avx512>_testm<mode>3<mask_scalar_merge_name>,
31907 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
31908 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
31909 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
31910 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
31911 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
31912 avx512cd_maskb_vec_dup<mode>,
31913 avx512cd_maskw_vec_dup<mode>,
31914 avx512dq_fpclass<mode><mask_scalar_merge_name>,
31915 avx512dq_vmfpclass<mode>,
31916 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
31917 instead of =Yk.
31918
31919 2019-01-03 Martin Sebor <msebor@redhat.com>
31920
31921 PR tree-optimization/88659
31922 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
31923
31924 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
31925
31926 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
31927 unaligned vsx and avoid lxvd2x/stxvd2x.
31928 (gen_lvx_v4si_move): New function.
31929
31930 2019-01-03 Tom de Vries <tdevries@suse.de>
31931
31932 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
31933 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
31934 function.
31935 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
31936
31937 2019-01-03 Tom de Vries <tdevries@suse.de>
31938
31939 * config/nvptx/nvptx.c (struct offload_attrs): New.
31940 (populate_offload_attrs): New function. Factor mask extraction out of
31941 nvptx_reorg. Add extraction of dimensions.
31942 (nvptx_reorg): Use populate_offload_attrs.
31943
31944 2019-01-03 Tom de Vries <tdevries@suse.de>
31945
31946 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
31947 cases for oacc_min_dims_p and routine_p. Add asserts for
31948 oacc_default_dims_p and offload_region_p.
31949
31950 2019-01-03 Tom de Vries <tdevries@suse.de>
31951
31952 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
31953 factored out of ...
31954 (nvptx_goacc_validate_dims): ... here.
31955
31956 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
31957
31958 PR tree-optimization/85574
31959 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
31960 structure.
31961 (struct ssa_equip_hash_traits): Declare.
31962 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
31963
31964 2019-01-03 Jakub Jelinek <jakub@redhat.com>
31965
31966 PR debug/88644
31967 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
31968 change it to qualified_type.
31969
31970 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
31971
31972 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
31973 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
31974
31975 2019-01-02 Martin Sebor <msebor@redhat.com>
31976 Jeff Law <law@redhat.com>
31977
31978 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
31979 (get_range_strlen_tree): Update appropriately.
31980 (get_range_strlen)
31981 * gimple-fold.h (get_range_strlen): Drop unused last argument.
31982
31983 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
31984 rather than set_range_info.
31985 * tree-ssa-strlen.c (set_strlen_range): Extracted from
31986 maybe_set_strlen_range. Handle potentially boundary crossing
31987 cases more conservatively.
31988 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
31989 Call set_strlen_range.
31990 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
31991
31992 PR middle-end/88663
31993 * gimple-fold.c (get_range_strlen): Update prototype to no longer
31994 need the flexp argument.
31995 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
31996 from calls to get_range_strlen. Update comments. Just update
31997 VAL for an unterminated const char array and let the reset of the
31998 code handle it normally. No longer try to set *flexp. Adjust
31999 return value.
32000 (get_range_strlen): Update for the new get_range_strlen API.
32001 (get_maxval_strlen): Similarly.
32002 (gimple_fold_builtin_strlen): Handle update meaning of return value
32003 from get_range_strlen.
32004 * gimple-ssa-sprintf.c (get_string_length): Update for the new
32005 get_range_strlen API.
32006
32007 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
32008
32009 PR lto/88130
32010 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
32011 false at WPA time when body was removed.
32012
32013 2019-01-02 Martin Liska <mliska@suse.cz>
32014
32015 PR tree-optimization/88650
32016 * predict.c (set_even_probabilities): Calculate probability
32017 remainer only when really used.
32018
32019 2019-01-02 Richard Biener <rguenther@suse.de>
32020
32021 PR middle-end/88651
32022 * tree-data-ref.c (analyze_subscript_affine_affine): Use
32023 widest_ints when mangling max_stmt_execution results.
32024
32025 2019-01-02 Richard Biener <rguenther@suse.de>
32026
32027 PR tree-optimization/88621
32028 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
32029 bitfields when canoncalizing.
32030
32031 2019-01-02 Richard Biener <rguenther@suse.de>
32032
32033 PR target/87545
32034 * config/i386/x86-tune-costs.h (intel_cost): Adjust
32035 cost of cheap SSE instruction.
32036
32037 2019-01-02 Richard Biener <rguenther@suse.de>
32038
32039 PR ipa/85574
32040 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
32041 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
32042 function.
32043 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
32044 set after UIDs before splitting them.
32045
32046 2019-01-01 Martin Sebor <msebor@redhat.com>
32047 Jeff Law <law@redhat.com>
32048
32049 * gimple-fold.c (get_range_strlen_tree): Record if the computed
32050 length is optimistic. If it is, then arrange to compute the
32051 conservative length as well.
32052
32053 * gimple-fold.h (get_range_strlen): Update prototype.
32054 * builtins.c (check_access): Update call to get_range_strlen to use
32055 c_strlen_data pointer. Change various variable accesses to instead
32056 pull data from the c_strlen_data structure.
32057 (check_strncat_sizes, expand_builtin_strncat): Likewise.
32058 * calls.c (maybe_warn_nonstring_arg): Likewise.
32059 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
32060 minimum length if maximum lengh is unknown.
32061 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
32062 that used c_strlen, it's no longer needed. Restructure slightly.
32063 (format_string): Set unlikely range appropriately.
32064 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
32065 formatting issues.
32066 (get_range_strlen): Accept c_strlen_data pointer for external
32067 call sites as well. Pass through to call to internal get_range_strlen.
32068 Adjust minlen, maxlen and maxbound as needed.
32069 (get_maxval_strlen): Update comments.
32070 (gimple_fold_builtin_strlen): Update call to get_range_strlen
32071 to use c_strlen_data pointer. Change variable accesses to instead
32072 use c_strlen_data data members.
32073
32074 * gimple-fold.c (get_range_strlen): Update prototype.
32075 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
32076 local variables. Use pdata to return information to caller.
32077 Update calls to get_range_strlen. Update pdata->maxbound.
32078 (get_range_strlen -- static version): Similarly.
32079 (get_range_strlen -- extern version): Update for internal
32080 get_range_strlen API change. Convert to external data format.
32081 (get_maxval_strlen): Similarly.
32082
32083 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
32084
32085 * coverage.c (get_coverage_counts): Use current_function_decl.
32086 * profile.c (read_thunk_profile): New function.
32087 (branch_prob): Add THUNK parameter.
32088 * tree-profile.c (tree_profiling): Handle thunks.
32089 * value-prof.c (init_node_map): Handle thunks.
32090 * value-prof.h (branch_prob): Upate prototype.
32091 (read_thunk_profile): Declare.
32092
32093 2019-01-01 Jakub Jelinek <jakub@redhat.com>
32094
32095 Update copyright years.
32096
32097 * gcc.c (process_command): Update copyright notice dates.
32098 * gcov-dump.c (print_version): Ditto.
32099 * gcov.c (print_version): Ditto.
32100 * gcov-tool.c (print_version): Ditto.
32101 * gengtype.c (create_file): Ditto.
32102 * doc/cpp.texi: Bump @copying's copyright year.
32103 * doc/cppinternals.texi: Ditto.
32104 * doc/gcc.texi: Ditto.
32105 * doc/gccint.texi: Ditto.
32106 * doc/gcov.texi: Ditto.
32107 * doc/install.texi: Ditto.
32108 * doc/invoke.texi: Ditto.
32109 \f
32110 Copyright (C) 2019 Free Software Foundation, Inc.
32111
32112 Copying and distribution of this file, with or without modification,
32113 are permitted in any medium without royalty provided the copyright
32114 notice and this notice are preserved.