]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
arc.c (hwloop_optimize): Add missing space in string literal.
[thirdparty/gcc.git] / gcc / ChangeLog
1 2019-10-24 Jakub Jelinek <jakub@redhat.com>
2
3 * config/arc/arc.c (hwloop_optimize): Add missing space in string
4 literal.
5 * config/rx/rx.c (rx_print_operand): Likewise.
6 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
8 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
9 Likewise.
10 * genemit.c (emit_c_code): Likewise.
11 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
12
13 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
14
15 * symbols-summary.h (fast_function_summary<T *, V>::release,
16 fast_call_summary<T *, V>::release): Free m_vector.
17
18 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
19
20 * cgraphunit.c (symbol_table::process_new_functions): Call
21 ipa_free_size_summary.
22 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
23 (devirtualization_time_bonus): Update.
24 (ipcp_propagate_stage): Update.
25 * ipa-fnsummary.c (ipa_size_summaries): New.
26 (ipa_fn_summary_alloc): Alloc size summary.
27 (dump_ipa_call_summary): Update.
28 (ipa_dump_fn_summary): Update.
29 (analyze_function_body): Update.
30 (compute_fn_summary): Likewise.
31 (ipa_get_stack_frame_offset): New function.
32 (inline_update_callee_summaries): Do not update frame offsets.
33 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
34 remove call and function summary.
35 (ipa_update_overall_fn_summary): Update.
36 (inline_read_section): Update.
37 (ipa_fn_summary_write): Update.
38 (ipa_free_fn_summary): Do not remove summaries.
39 (ipa_free_size_summary): New.
40 (release summary pass): Also run at WPA.
41 * ipa-fnsummary.h (ipa_size_summary): Declare.
42 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
43 estimated_self_stack_size.
44 (ipa_size_summary_t): New type.
45 (ipa_size_summaries): Declare.
46 (ipa_free_size_summary): Declare.
47 (ipa_get_stack_frame_offset): Declare.
48 * ipa-icf.c (sem_function::merge): Update.
49 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
50 (estimate_growth): Update.
51 (growth_likely_positive): Update.
52 (clone_inlined_nodes): Update.
53 (inline_call): Update.
54 * ipa-inline.c (caller_growth_limits): Update.
55 (edge_badness): Update.
56 (recursive_inlining): Update.
57 (inline_small_functions): Update.
58 (inline_to_all_callers_1): Update.
59 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
60
61 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
62
63 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
64 (uavg<mode>3_ceil): ... This.
65 (altivec_vavgs<VI_char>): Rename to...
66 (avg<mode>3_ceil): ... This.
67 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
68 VAVGUW, VAVGSW): Adjust.
69
70 2019-10-24 Nathan Sidwell <nathan@acm.org>
71
72 * dumpfile.c (dump_begin): Reorder decls to use RAII.
73
74 2019-10-24 Martin Liska <mliska@suse.cz>
75
76 * symbol-summary.h (gt_pch_nx): Mark all functions
77 with gcc_unreachable as we do not expect to be called.
78
79 2019-10-24 Richard Biener <rguenther@suse.de>
80
81 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
82 chains try harder with operand swapping and instead of
83 putting a shifted chain into the reduction operands put
84 a repetition of the final reduction op there as if we'd
85 reassociate the expression.
86
87 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
88
89 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
90 statics_not_read and statics_not_written to statics_read and
91 statics_written respectively.
92 (no_module_statics): New static var.
93 (ipa_reference_get_not_read_global): Rename to ...
94 (ipa_reference_get_read_global): ... this.
95 (ipa_reference_get_not_written_global): Rename to ...
96 (ipa_reference_get_written_global): ... this.
97 (dump_static_vars_set_to_file): Dump no_module_statics.
98 (copy_static_var_set): Add for propagation parameter.
99 (ipa_init): Initialize no_module_statics.
100 (ipa_ref_opt_summary_t::duplicate): Update.
101 (ipa_ref_opt_summary_t::remove): Update.
102 (propagate): Update.
103 (write_node_summary_p): Look correctly for bitmap differences.
104 (ipa_reference_write_optimization_summary): Update.
105 (ipa_reference_read_optimization_summary): Update.
106 * ipa-reference.h
107 (ipa_reference_get_not_read_global): Rename to ...
108 (ipa_reference_get_read_global): ... this.
109 (ipa_reference_get_not_written_global): Rename to ...
110 (ipa_reference_get_written_global): ... this.
111 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
112 (call_may_clobber_ref_p_1): Update.
113
114 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
115
116 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
117 and add comment.
118 (msp430_hard_regno_nregs_with_padding): Remove.
119
120 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
121
122 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
123 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
124 shift amount is between 1 and 4.
125 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
126 is between 1 and 4.
127
128 2019-10-24 Richard Biener <rguenther@suse.de>
129
130 PR tree-optimization/92205
131 * tree-vect-loop.c (vectorizable_reduction): Restrict
132 search for alternate vectype_in to lane-reducing patterns
133 we support.
134
135 2019-10-24 Richard Biener <rguenther@suse.de>
136
137 PR tree-optimization/92203
138 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
139 Skip eliminating conversion stmts inserted by insertion.
140
141 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
142
143 * config/s390/s390.c (s390_get_thread_pointer): Use
144 gen_get_thread_pointer.
145 (s390_expand_split_stack_prologue): Likewise.
146 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
147 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
148 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
149 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
150 parameterized name.
151
152 2019-10-24 Richard Biener <rguenther@suse.de>
153
154 * tree-vect-slp.c (vect_analyze_slp): When reduction group
155 SLP discovery fails try to handle the reduction as part
156 of SLP reduction discovery.
157
158 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
159
160 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
161 declaration.
162 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
163 attribute if it exists, rather than the insn size. If we use the
164 insn size, adjust the size to remove the extra size that prefixed
165 instructions take.
166 (rs6000_adjust_insn_length): New function.
167 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
168 update the instruction sized if prefixed instructions are used.
169 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
170 (non_prefixed_length attribute): Delete.
171 (num_insns attribute): New insn attribute to return the number of
172 instructions.
173 (max_prefixed_insns attribute): New insn attribute to return the
174 maximum number of prefixed instructions in an insn.
175 (length attribute): Do not adjust for prefix instructions here,
176 punt to ADJUST_INSN_LENGTH.
177 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
178 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
179 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
180 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
181 max_prefixed_insns and num_insns.
182
183 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
184 (movtd_64bit_nodm): Reformat.
185 (mov<mode>_32bit): Reformat.
186 (mov<mode>_softfloat): Reformat.
187 (FMOVE128_GPR splitter): Reformat.
188 (DIFD splitter): Reformat.
189 (TI2 splitter): Reformat.
190 * config/rs6000/predicates.md (lwa_operand): If the bottom two
191 bits of the offset for the memory address are non-zero, use PLWA
192 if prefixed instructions are available.
193
194 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
195
196 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
197
198 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
199
200 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
201 previous patch.
202
203 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
204
205 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
206 (cmp_symbol_files): New.
207 (lto_output): Copy sections in file order.
208 * lto-streamer.h (lto_file_decl_data): Add field order.
209
210 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
211
212 * ipa-reference.h (ipa_reference_var_uid): Move offline.
213 * ipa-reference.c (reference_vars_map_t): new type.
214 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
215 (ipa_reference_var_uid): Implement.
216 (varpool_node_hooks): New static var.
217 (varpool_removal_hook): New function.
218 (is_improper): Do not check bitmap for id==-1
219 (get_static_name): Update.
220 (ipa_init): Initialize new datastructures.
221 (analyze_function): Do not recompute ids.
222 (propagate): Free reference_vars_to_consider.
223 (stream_out_bitmap): Update.
224 (ipa_reference_read_optimization_summary): Update.
225
226 2019-10-23 qing zhao <qing.zhao@oracle.com>
227
228 PR gcov-profile/91971
229 * coverage.c (coverage_init): Mangle the full path of filename when
230 filename is a absolute path.
231
232 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
233
234 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
235 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
236 (msp430_has_hwmult): New.
237 (msp430_output_labelref):
238 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
239 * config/msp430/msp430.md (mulhisi3): Likewise.
240 (umulhisi3): Likewise.
241 (mulsidi3): Likewise.
242 (umulsidi3): Likewise.
243
244 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
245
246 PR ipa/92074
247 * params.def (inline-heuristics-hint-percent): Set to 600.
248
249 2019-10-23 Richard Biener <rguenther@suse.de>
250
251 PR tree-optimization/65930
252 * tree-vect-loop.c (check_reduction_path): Allow conversions
253 that only change the sign.
254 (vectorizable_reduction): Relax latch def stmts we handle further.
255
256 2019-10-23 Jakub Jelinek <jakub@redhat.com>
257
258 PR debug/90231
259 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
260 (remove_unused_ivs): Use it instead of get_computation_at. When
261 choosing best candidate, only consider candidates where
262 get_debug_computation_at actually returns non-NULL.
263
264 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
265
266 PR tree-optimization/92131
267 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
268 range would be symbolic, drop to varying for any explicit overflow
269 in the constant part or if neither range is a singleton.
270
271 2019-10-23 Martin Liska <mliska@suse.cz>
272
273 PR middle-end/81669
274 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
275 Initialize m_data.
276
277 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
278
279 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
280 int_mode_for_mode rather than mode_for_int_vector for scalars.
281
282 2019-10-23 Richard Biener <rguenther@suse.de>
283
284 PR tree-optimization/92179
285 * tree-vect-stmts.c (vectorizable_shift): For shift args
286 that are all the same remove type restriction in the SLP case.
287 Adjust SLP code to handle converting of the shift arg to
288 only apply in case the modes are different.
289
290 2019-10-23 Martin Liska <mliska@suse.cz>
291
292 PR ipa/91969
293 * ipa-inline.c (recursive_inlining): Do not print
294 when curr->count is not initialized.
295
296 2019-10-23 Richard Biener <rguenther@suse.de>
297
298 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
299 op from scalars in case there's a constant operand in its
300 definition.
301
302 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
303
304 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
305 against out of range max skip or log values.
306
307 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
308
309 * cgraph.c (dump_graphviz): Change name to dump_name
310
311 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
312
313 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
314 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
315 subtraction from a carry operation.
316
317 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
318
319 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
320
321 2019-10-22 Richard Biener <rguenther@suse.de>
322
323 PR tree-optimization/92173
324 * tree-vect-loop.c (vectorizable_reduction): If
325 vect_transform_reduction cannot handle code-generation try without
326 the single-def-use-cycle optimization. Pass optab_vector to
327 optab_for_tree_code to get vector shifts as that's what we'd
328 generate.
329
330 2019-10-22 Michael Matz <matz@suse.de>
331
332 PR middle-end/90796
333 * gimple-loop-jam.c (any_access_function_variant_p): New function.
334 (adjust_unroll_factor): Use it to constrain safety, new parameter.
335 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
336
337 2019-10-22 Richard Biener <rguenther@suse.de>
338
339 PR tree-optimization/92173
340 * tree-vect-loop.c (vectorizable_reduction): If
341 vect_transform_reduction cannot handle code-generation try without
342 the single-def-use-cycle optimization. Pass optab_vector to
343 optab_for_tree_code to get vector shifts as that's what we'd
344 generate.
345
346 2019-10-22 Martin Liska <mliska@suse.cz>
347
348 * diagnostic-format-json.cc (json_from_expanded_location):
349 Use json::integer_number.
350 * gcov.c (output_intermediate_json_line): Use new
351 json::integer_number.
352 (output_json_intermediate_file): Likewise.
353 * json.cc (number::print): Move to ...
354 (float_number::print): ... this.
355 (integer_number::print): New.
356 (test_writing_numbers): Move to ...
357 (test_writing_float_numbers): ... this.
358 (test_writing_integer_numbers): New.
359 (json_cc_tests): Register test_writing_integer_numbers.
360 * json.h (class value): Add forward declaration
361 for float_number and integer_number.
362 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
363 (class number): Move to ...
364 (class float_number): ... this.
365 (class integer_number): New.
366 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
367 Use json::integer_number.
368 (optrecord_json_writer::location_to_json): Likewise.
369 (optrecord_json_writer::profile_count_to_json): Likewise.
370 (optrecord_json_writer::pass_to_json): Likewise.
371
372 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
373
374 * tree-vect-slp.c (vect_slp_bb_region): Check whether
375 autodetected_vector_size rather than vector_size is zero.
376 * tree-vect-loop.c (vect_analyze_loop): Likewise.
377 Set autodetected_vector_size immediately after calling
378 vect_analyze_loop_2. Check for a fatal error before advancing
379 next_size.
380
381 2019-10-21 Jason Merrill <jason@redhat.com>
382
383 * lock-and-run.sh: Check for process existence rather than timeout.
384
385 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
386
387 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
388 widening multiplication.
389
390 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
391
392 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
393 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
394 type attribute.
395 (subsi3_carryin_shift): Separate into register and constant controlled
396 alternatives. Use shift_amount_operand for operand 4. Set shift
397 attribute and simplify type attribute.
398 (subsi3_carryin_shift_alt): Likewise.
399 (rsbsi3_carryin_shift): Likewise.
400 (rsbsi3_carryin_shift_alt): Likewise.
401 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
402 and register controlled shifts into distinct alternatives.
403 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
404 (andsi_not_shiftsi_si_scc): Likewise.
405 (arm_cmpsi_negshiftsi_si): Likewise.
406 (not_shiftsi): Remove redundant M constraint from alternative 1.
407 (not_shiftsi_compare0): Likewise.
408 (arm_cmpsi_insn): Remove redundant alternative 2.
409 (cmpsi_shift_swp): Likewise.
410 (sub_shiftsi): Likewise.
411 (sub_shiftsi_compare0_scratch): Likewise.
412 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
413 (thumb2_cmpsi_neg_shiftsi): Likewise.
414
415 2019-10-21 Richard Biener <rguenther@suse.de>
416
417 PR tree-optimization/92162
418 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
419 STMT_VINFO_REDUC_IDX in reduc_info.
420 * tree-vect-stmts.c (vectorizable_condition): Likewise.
421
422 2019-10-21 Richard Biener <rguenther@suse.de>
423
424 * tree-vectorizer.h (_slp_tree::ops): New member.
425 (SLP_TREE_SCALAR_OPS): New.
426 (vect_get_slp_defs): Adjust prototype.
427 * tree-vect-slp.c (vect_free_slp_tree): Release
428 SLP_TREE_SCALAR_OPS.
429 (vect_create_new_slp_node): Initialize it. New overload for
430 initializing by an operands array.
431 (_slp_oprnd_info::ops): New member.
432 (vect_create_oprnd_info): Initialize it.
433 (vect_free_oprnd_info): Release it.
434 (vect_get_and_check_slp_defs): Populate the operands array.
435 Do not swap operands in the IL when not necessary.
436 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
437 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
438 swap operands in the operands array. Do not swap operands in
439 the IL.
440 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
441 (vect_gather_slp_loads): Fix.
442 (vect_detect_hybrid_slp_stmts): Likewise.
443 (vect_slp_analyze_node_operations_1): Search for a internal
444 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
445 (vect_slp_analyze_node_operations): Skip ops-only stmts for
446 the def-type push/pop dance.
447 (vect_get_constant_vectors): Compute number_of_vectors here.
448 Use SLP_TREE_SCALAR_OPS and simplify greatly.
449 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
450 (vect_get_slp_defs): Simplify greatly.
451 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
452 (vect_transform_reduction): Likewise.
453 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
454 (vectorizable_call): Likewise.
455 (vectorizable_operation): Likewise.
456 (vectorizable_load): Likewise.
457 (vectorizable_condition): Likewise.
458 (vectorizable_comparison): Likewise.
459
460 2019-10-21 Richard Biener <rguenther@suse.de>
461
462 PR tree-optimization/92161
463 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
464 for reductions.
465
466 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
467
468 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
469 (aarch64_rndr): New define_insn.
470 (aarch64_rndrrs): Likewise.
471 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
472 (TARGET_RNG): Likewise.
473 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
474 argument.
475 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
476 Add fourth argument in prototype.
477 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
478 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
479 (aarch64_init_rng_builtins): Define.
480 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
481 (aarch64_expand_rng_builtin): Define.
482 (aarch64_general_expand_builtin): Use IGNORE argument, handle
483 RNG builtins.
484 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
485 __ARM_FEATURE_RNG when TARGET_RNG.
486 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
487
488 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
489
490 * tree-vect-stmts (ensure_base_align): Only change alignment if new
491 alignment is more restrictive.
492
493 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
494
495 * tree-vectorizer.h (vec_info::vector_size): New member variable.
496 (vect_update_max_nunits): Update comment.
497 (current_vector_size): Delete.
498 * tree-vect-stmts.c (current_vector_size): Likewise.
499 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
500 of current_vector_size.
501 (get_mask_type_for_scalar_type): Likewise.
502 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
503 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
504 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
505 (vect_double_mask_nunits, vect_transform_loop): Likewise.
506 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
507 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
508
509 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
510
511 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
512 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
513 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
514 accordingly.
515
516 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
517
518 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
519 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
520 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
521 call accordingly.
522 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
523
524 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
525
526 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
527 a loop_vec_info.
528 (vect_set_loop_condition_masked): Update call accordingly.
529
530 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
531
532 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
533 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
534 (simple_integer_narrowing): Update call accordingly.
535 (vectorizable_conversion): Likewise.
536
537 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
538
539 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
540 (vectorizable_call): Update call accordingly.
541
542 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
543
544 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
545 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
546 (duplicate_and_interleave): Update call accordingly.
547 * tree-vect-loop.c (vectorizable_reduction): Likewise.
548
549 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
550
551 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
552 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
553 (vect_get_constant_vectors): Update call accordingly.
554 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
555
556 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
557
558 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
559 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
560 (vect_prologue_cost_for_slp_op): Update call accordingly.
561 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
562 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
563 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
564 (get_mask_type_for_scalar_type): Likewise.
565 (vect_get_vector_types_for_stmt): Likewise.
566 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
567 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
568 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
569 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
570 (vect_split_statement, vect_convert_input): Likewise.
571 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
572 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
573 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
574 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
575 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
576 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
577 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
578 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
579 (vect_recog_mask_conversion_pattern): Likewise.
580 (vect_add_conversion_to_pattern): Likewise.
581 (vect_recog_gather_scatter_pattern): Likewise.
582 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
583 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
584
585 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
586
587 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
588 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
589 (vect_check_load_store_mask): Update call accordingly.
590 (vect_get_mask_type_for_stmt): Likewise.
591 * tree-vect-patterns.c (check_bool_pattern): Likewise.
592 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
593 (vect_convert_mask_for_vectype): Likewise.
594
595 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
596
597 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
598 a vec_info.
599 (vect_recog_dot_prod_pattern): Update call accordingly.
600 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
601 (vect_recog_widen_sum_pattern): Likewise.
602
603 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
604
605 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
606 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
607 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
608 accordingly.
609
610 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
611
612 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
613 get_vectype_for_scalar_type_and_size instead of
614 get_vectype_for_scalar_type.
615
616 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
617
618 * common.opt (-fcommon): Fix description.
619
620 2019-10-20 Jakub Jelinek <jakub@redhat.com>
621
622 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
623 * config/i386/i386.c (ix86_pre_reload_split): New function.
624 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
625 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
626 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
627 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
628 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
629 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
630 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
631 *<shift_insn><dwi>3_doubleword_mask,
632 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
633 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
634 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
635 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
636 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
637 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
638 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
639 *avx2_<code>v8qiv8si2<mask_name>_2,
640 *sse4_1_<code>v4qiv4si2<mask_name>_2,
641 *sse4_1_<code>v4hiv4si2<mask_name>_2,
642 *avx512f_<code>v8qiv8di2<mask_name>_2,
643 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
644 *sse4_1_<code>v2hiv2di2<mask_name>_2,
645 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
646 sse4_2_pcmpistr): Likewise.
647
648 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
649
650 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
651 now defaults to https.
652
653 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
654
655 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
656 skip non-zero array accesses.
657
658 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
659
660 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
661 and return a boolean success value. Move the allocation and
662 initialization of the bb_vec_info to...
663 (vect_slp_bb_region): ...here. Update call accordingly.
664 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
665 than in vect_slp_analyze_bb_1.
666
667 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
668
669 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
670 when processing the given datarefs for the first time and
671 check_datarefs subsequently.
672 (vect_slp_bb_region): New function, split out of...
673 (vect_slp_bb): ...here. Don't recompute the region bounds and
674 dataref sets when retrying with a different vector size.
675
676 2019-10-19 Jakub Jelinek <jakub@redhat.com>
677 Uroš Bizjak <ubizjak@gmail.com>
678
679 PR target/92140
680 * config/i386/predicates.md (int_nonimmediate_operand): New special
681 predicate.
682 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
683 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
684 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
685 define_insn_and_split patterns.
686
687 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
688
689 * config/rs6000/rs6000.md: Delete out--of-date comment about
690 special-casing integer loads.
691
692 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
693
694 * escaped_string.h (escaped_string): New header.
695 * tree.c (escaped_string): Remove escaped_string class.
696
697 2019-10-18 Martin Sebor <msebor@redhat.com>
698
699 PR tree-optimization/92157
700 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
701 compute_string_length to return a negative result.
702
703 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
704
705 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
706 (negvsi3, negvdi3): Delete.
707 (negdi2_compare): Delete.
708
709 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
710
711 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
712 operations.
713 (subdi3_compare1): Delete pattern.
714 (subvsi3_borrow): New insn pattern.
715 (subvsi3_borrow_imm): Likewise.
716
717 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
718
719 * config/arm/arm.md (subv<mode>4): Delete.
720 (subvdi4): New expander pattern.
721 (subvsi4): Likewise. Handle some immediate values.
722 (subvsi3_intmin): New insn pattern.
723 (subvsi3): Likewise.
724 (subvsi3_imm1): Likewise.
725 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
726 idioms.
727
728 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
729
730 * config/arm/arm.md (usubvdi4): Allow registers or integers for
731 incoming operands. Early split the calculation into SImode
732 operations.
733 (usubvsi3_borrow): New insn pattern.
734 (usubvsi3_borrow_imm): Likewise.
735
736 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
737
738 * config/arm/arm.md (usubv<mode>4): Delete expansion.
739 (usubvsi4): New pattern. Allow some immediate values for inputs.
740 (usubvdi4): New pattern.
741
742 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
743
744 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
745 or second operand of the PLUS inside a DImode equality test to be
746 sign-extend when selecting CC_Vmode.
747 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
748 instructions.
749 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
750 expand patterns.
751 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
752 (addsi3_cin_vout_0): Likewise.
753 (adddi3_compareV): Delete.
754
755 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
756
757 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
758 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
759 to transform this back into the summation version when that leads
760 to smaller code.
761
762 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
763
764 * config/arm/arm.md (addv<mode>4): Delete.
765 (addvsi4): New pattern. Handle immediate values that the architecture
766 supports.
767 (addvdi4): New pattern.
768 (addsi3_compareV): Rename to ...
769 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
770 and use COMPARE rather than NE.
771 (addsi3_compareV_imm): New pattern.
772 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
773 a signed-overflow check.
774
775 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
776
777 * config/arm/arm-modes.def (CC_ADC): New CC mode.
778 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
779 CC_ADCmode.
780 (maybe_get_arm_condition_code): Handle CC_ADCmode.
781 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
782 with overflow.
783 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
784 expand patterns.
785 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
786 (addsi3_cin_cout_imm_insn): Likewise.
787 (adddi3_compareC): Delete insn.
788 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
789
790 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
791
792 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
793 * (uaddv<mode>4): Delete expansion pattern.
794 (uaddvsi4): New pattern.
795 (uaddvdi4): Likewise.
796 (addsi3_compareC): Delete pattern, change callers to use
797 addsi3_compare_op1.
798 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
799 reduce the number of alternatives and re-work type attribute handling.
800 (addsi3_compare_op2): Clean up constraints to reduce the number of
801 alternatives and re-work type attribute handling.
802 (compare_addsi2_op0): Likewise.
803 (compare_addsi2_op1): Likewise.
804
805 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
806
807 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
808 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
809 for DImode operands.
810 (arm_gen_dicompare_reg): Remove unreachable expansion code.
811 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
812 CC_NCVmode.
813 * config/arm/arm.md (arm_cmpdi_insn): Delete.
814 (arm_cmpdi_unsigned): Delete.
815
816 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
817
818 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
819 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
820 unchanged only if that will be cheaper.
821 (arm_select_cc_mode): Recognize a swapped comparison that will
822 be regenerated using RSBS or RSCS. Relax restriction on selecting
823 CC_RSBmode.
824 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
825 a constant.
826 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
827 is CC_RSBmode.
828 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
829 as CCmode.
830 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
831 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
832
833 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
834
835 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
836 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
837 need these modes.
838 (arm_gen_dicompare_reg): New code to early expand the sub-operations
839 of EQ, NE, LT, GE, LTU and GEU.
840 * config/arm/iterators.md (CC_EXTEND): New code attribute.
841 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
842 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
843 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
844 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
845
846 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
847
848 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
849 operand 2.
850 (cstoredi4): Similarly, but for operand 3.
851 * config/arm/arm.c (arm_canoncialize_comparison): Allow
852 canonicalization of unsigned compares with a constant on Arm.
853 Prefer using const+1 and adjusting the comparison over swapping the
854 operands whenever the original constant was not valid.
855 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
856 register here.
857 (arm_validize_comparison): Do not force invalid DImode operands to
858 registers here.
859
860 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
861
862 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
863 return CC_Zmode if comparing against a constant where one word is
864 zero.
865 (arm_gen_compare_reg): Split DImode handling to ...
866 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
867 against simple constants.
868 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
869
870 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
871
872 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
873 (rsbsi3_carryin_shift_alt): Likewise.
874
875 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
876
877 * config/arm/arm.md (negscc_borrow): New pattern.
878 (mov_negscc): Don't split if the insn would match negscc_borrow.
879 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
880 (thumb2_mov_negscc_strict_it): Likewise.
881
882 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
883
884 * config/arm/arm.c (arm_insn_cost): New function.
885 (TARGET_INSN_COST): Override default definition.
886
887 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
888
889 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
890 borrow operations.
891
892 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
893
894 * config/arm/arm.c (strip_carry_operation): New function.
895 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
896 for SImode.
897
898 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
899
900 * config/arm/predicates.md (arm_carry_operation): New special
901 predicate.
902 * config/arm/iterators.md (LTUGEU): Delete iterator.
903 (cnb): Delete code attribute.
904 (optab): Delete ltu and geu elements.
905 * config/arm/arm.md (addsi3_carryin): Renamed from
906 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
907 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
908 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
909 (addsi3_carryin_clobercc): Similarly.
910 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
911 Thumb2 state.
912
913 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
914
915 * config/arm/arm.md (arm_subdi3): Delete insn.
916 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
917
918 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
919
920 * config/arm/arm-modes.def (CC_RSB): New CC mode.
921 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
922 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
923 return CC_RSBmode.
924 (maybe_get_arm_condition_code): Handle CC_RSBmode.
925 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
926 expand.
927 (subdi3): Rewrite to early-expand the sub-operations.
928 (rsb_im_compare): New pattern.
929 (negdi2): Delete.
930 (negdi2_insn): Delete.
931 (arm_negsi2): Correct type attribute to alu_imm.
932 (negsi2_0compare): New insn pattern.
933 (negsi2_carryin): New insn pattern.
934
935 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
936
937 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
938 operand 2.
939
940 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
941
942 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
943 to match canonical form.
944
945 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
946
947 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
948 (extend<mode>di2): Likewise.
949
950 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
951
952 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
953 * config/arm/arm.c (arm_decompose_di_binop): New function.
954 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
955 If not generating Thumb-1 code, decompose the operation into 32-bit
956 pieces.
957 * add0si_carryin_<optab>: New pattern.
958
959 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
960
961 * arm.md (adddi3): Only accept register operands.
962 (arm_adddi3): Convert to simple insn with no split. Do not accept
963 constants.
964 (adddi_sesidi_di): Delete patern.
965 (adddi_zesidi_di): Likewise.
966 (uaddv<mode>4): Use LTU as condition for branch.
967 (adddi3_compareV): Convert to simple insn with no split.
968 (addsi3_compareV_upper): Delete pattern.
969 (adddi3_compareC): Convert to simple insn with no split. Correct
970 flags setting expression.
971 (addsi3_compareC_upper): Delete pattern.
972 (addsi3_compareC): Correct flags setting expression.
973 (subdi3_compare1): Convert to simple insn with no split.
974 (subsi3_carryin_compare): Delete pattern.
975 (arm_subdi3): Convert to simple insn with no split.
976 (subdi_zesidi): Delete pattern.
977 (subdi_di_sesidi): Delete pattern.
978 (subdi_zesidi_di): Delete pattern.
979 (subdi_sesidi_di): Delete pattern.
980 (subdi_zesidi_zesidi): Delete pattern.
981 (negvdi3): Use s_register_operand.
982 (negdi2_compare): Convert to simple insn with no split.
983 (negdi2_insn): Likewise.
984 (negsi2_carryin_compare): Delete pattern.
985 (negdi_zero_extendsidi): Delete pattern.
986 (arm_cmpdi_insn): Convert to simple insn with no split.
987 (negdi2): Don't call gen_negdi2_neon.
988 * config/arm/neon.md (adddi3_neon): Delete pattern.
989 (subdi3_neon): Delete pattern.
990 (negdi2_neon): Delete pattern.
991 (splits for negdi2_neon): Delete splits.
992
993 2019-10-18 Jakub Jelinek <jakub@redhat.com>
994
995 PR middle-end/92153
996 * ggc-page.c (release_pages): Read g->alloc_size before free rather
997 than after it.
998
999 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
1000
1001 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
1002 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
1003 new multilib variants and new mappings.
1004
1005 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
1006
1007 PR target/86040
1008 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
1009
1010 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1011 Richard Sandiford <richard.sandiford@arm.com>
1012
1013 PR target/86753
1014 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
1015 and define hashmap traits for it.
1016 (loop_vec_info::scalar_cond_masked_set): New member.
1017 (vect_record_loop_mask): Adjust prototype.
1018 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
1019 Implement method.
1020 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
1021 vect_record_loop_mask.
1022 (vectorizable_live_operation): Likewise.
1023 (vect_record_loop_mask): New param scalar_mask. Add entry
1024 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
1025 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
1026 Pass it as last arg to vect_record_loop_mask.
1027 (vectorizable_call): Pass scalar_mask as last arg to
1028 vect_record_loop_mask.
1029 (vectorizable_store): Likewise.
1030 (vectorizable_load): Likewise.
1031 (vectorizable_condition): Check if another part of vectorized code
1032 applies loop_mask to condition or to it's inverse, and if yes,
1033 apply loop_mask to result of vector comparison.
1034
1035 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
1036
1037 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
1038
1039 2019-10-18 Jakub Jelinek <jakub@redhat.com>
1040
1041 PR tree-optimization/92056
1042 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
1043 before calling compute_builtin_object_size.
1044
1045 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
1046
1047 PR target/65342
1048 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
1049 (movdi_low_st): Delete.
1050 * config/rs6000/rs6000.c
1051 (darwin_rs6000_legitimate_lo_sum_const_p): New.
1052 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
1053 * config/rs6000/rs6000.md (movsi_low): Delete.
1054
1055 2019-10-17 Jason Merrill <jason@redhat.com>
1056
1057 * gimplify.h (get_initialized_tmp_var): Add default argument to
1058 post_p.
1059 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
1060 NULL post_p argument.
1061 * targhooks (std_gimplify_va_arg_expr): Likewise.
1062
1063 2019-10-17 Richard Biener <rguenther@suse.de>
1064
1065 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
1066 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
1067 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
1068 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
1069 * tree-vect-loop.c (vect_is_simple_reduction): Set
1070 STMT_VINFO_REDUC_CODE.
1071 (vectorizable_reduction): Remove dead and redundant code, use
1072 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
1073
1074 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
1075
1076 Fix breakage introduced by r276985.
1077
1078 * config/avr/avr.c (avr_option_override): Remove set of
1079 PARAM_ALLOW_STORE_DATA_RACES.
1080 * common/config/avr/avr-common.c (avr_option_optimization_table)
1081 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
1082
1083 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
1084
1085 * config/i386/i386.h (processor_costs): Add clear_ratio.
1086 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
1087 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
1088 of 6 and move_ratio in all cost models.
1089
1090 2019-10-17 Richard Biener <rguenther@suse.de>
1091
1092 * tree-vect-loop.c (check_reduction_path): Compute reduction
1093 operation here.
1094 (vect_is_simple_reduction): Remove special-case of single-stmt
1095 reduction path detection.
1096
1097 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
1098
1099 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
1100
1101 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
1102
1103 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
1104 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
1105 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
1106 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
1107 New combine patterns.
1108 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
1109 above.
1110 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
1111
1112 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
1113
1114 * tree-vrp.c (value_range_base::dump): Display +INF for both
1115 pointers and integers when appropriate.
1116
1117 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
1118
1119 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
1120 when to use versioning threshold.
1121
1122 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
1123
1124 * tree-vect-loop.c (determine_peel_for_niter): New function contained
1125 outlined code from ...
1126 (vect_analyze_loop_2): ... here.
1127
1128 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
1129
1130 * tree-vect-loop.c (vect_transform_loop): Move code from here...
1131 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
1132 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
1133
1134 2019-10-17 Richard Biener <rguenther@suse.de>
1135
1136 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
1137 (vect_is_simple_reduction): Move all validity checks ...
1138 (vectorizable_reduction): ... here. Compute whether we
1139 need a fold-left reduction here.
1140 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
1141 both overloads, check needs_fold_left_reduction_p directly.
1142 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
1143
1144 2019-10-17 Richard Biener <rguenther@suse.de>
1145
1146 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
1147 TARGET_MEM_REF creation.
1148
1149 2019-10-17 Richard Biener <rguenther@suse.de>
1150
1151 PR tree-optimization/92129
1152 * tree-vect-loop.c (vectorizable_reduction): Also fail
1153 on GIMPLE_SINGLE_RHS.
1154
1155 2019-10-17 Jakub Jelinek <jakub@redhat.com>
1156
1157 PR tree-optimization/92056
1158 * tree-object-size.c (cond_expr_object_size): Return early if then_
1159 processing resulted in unknown size.
1160
1161 PR tree-optimization/92115
1162 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
1163 temporary if it could trap.
1164
1165 2019-10-17 Richard Biener <rguenther@suse.de>
1166
1167 PR debug/91887
1168 * dwarf2out.c (gen_formal_parameter_die): Also try to match
1169 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
1170
1171 2019-10-16 Jakub Jelinek <jakub@redhat.com>
1172
1173 * tree-ssa-strlen.c (maybe_invalidate): Use
1174 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
1175
1176 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
1177 Jim Wilson <jimw@sifive.com>
1178
1179 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
1180 regs to SIBCALL_REGS.
1181 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
1182 passing regs to SIBCALL_REGS.
1183
1184 2019-10-16 Martin Sebor <msebor@redhat.com>
1185
1186 PR tree-optimization/83821
1187 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
1188 the length of a string when available.
1189 (handle_builtin_memset) Add argument.
1190 (handle_store, strlen_check_and_optimize_call): Same.
1191 (check_and_optimize_stmt): Same. Pass it to callees.
1192
1193 2019-10-16 Martin Sebor <msebor@redhat.com>
1194
1195 PR tree-optimization/91996
1196 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
1197 information.
1198 (compare_nonzero_chars): Add an overload.
1199 (count_nonzero_bytes): Add an argument. Call overload above.
1200 Handle non-constant lengths in some range.
1201 (handle_store): Add an argument.
1202 (check_and_optimize_stmt): Pass an argument to handle_store.
1203
1204 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
1205
1206 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
1207
1208 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
1209
1210 * config/mips/mips.c (mips_expand_builtin_insn): Force the
1211 operands which correspond to the same input-output register to
1212 have the same pseudo assigned to them.
1213
1214 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
1215
1216 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
1217
1218 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
1219
1220 * config/aarch64/aarch64.c (aarch64_classify_symbol):
1221 Apply reasonable limit to symbol offsets.
1222
1223 2019-10-16 Richard Biener <rguenther@suse.de>
1224
1225 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
1226 (vect_is_simple_reduction): Delay checking to
1227 vectorizable_reduction and relax the checking.
1228 (vectorizable_reduction): Check we have a simple use. Check
1229 for bogus condition reductions.
1230 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
1231 are looking at the last stmt in a pattern sequence when
1232 filling in backedge PHI values.
1233
1234 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
1235 Jiufu Guo <guojiufu@linux.ibm.com>
1236
1237 PR target/70010
1238 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
1239 the callee explicitly disables some isa_flags the caller is using.
1240
1241 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
1242
1243 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
1244
1245 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
1246
1247 * genmodes.c (mode_data::order): New field.
1248 (blank_mode): Update accordingly.
1249 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
1250 (make_vector_modes): Likewise.
1251 (VECTOR_MODES): Update use accordingly.
1252 (cmp_modes): Sort by the new order field ahead of sorting by size.
1253 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
1254 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
1255 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
1256 (aarch64_classify_vector_mode): Handle the new partial modes.
1257 (aarch64_vl_bytes): New function.
1258 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
1259 when counting the number of registers in an SVE mode.
1260 (aarch64_class_max_nregs): Likewise.
1261 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
1262 in registers yet.
1263 (aarch64_classify_address): Treat partial vectors analogously
1264 to full vectors.
1265 (aarch64_print_address_internal): Consolidate the printing of
1266 MUL VL addresses, using aarch64_vl_bytes as the number of
1267 bytes represented by "VL".
1268 (aarch64_vector_mode_supported_p): Reject partial vector modes.
1269
1270 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
1271
1272 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
1273 rather than known_lt when choosing frame layouts.
1274
1275 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
1276
1277 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
1278 that all the adjustments add up to the full frame size.
1279 Use crtl->outgoing_args_size directly as the final adjustment
1280 where appropriate.
1281
1282 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
1283
1284 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
1285 "frame" reference instead of always referring directly to
1286 "cfun->machine->frame".
1287
1288 2019-10-16 Richard Biener <rguenther@suse.de>
1289
1290 PR tree-optimization/92119
1291 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
1292 against missing bswap lhs.
1293
1294 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
1295
1296 PR middle-end/92033
1297 * poly-int.h (constant_lower_bound_with_limit): New function.
1298 (constant_upper_bound_with_limit): Likewise.
1299 * doc/poly-int.texi: Document them.
1300 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
1301 into the worst-case INTEGER_CST bounds.
1302
1303 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
1304
1305 PR ipa/91088
1306 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
1307 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
1308 * ipa-predicat.h (struct expr_eval_op): New struct.
1309 (expr_eval_ops): New typedef.
1310 (struct condition): Add type and param_ops fields, remove size field.
1311 (add_condition): Replace size parameter with type parameter, add
1312 param_ops parameter.
1313 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
1314 (predicate::add_clause): Add comparisons on type and param_ops.
1315 (dump_condition): Add debug dump for param_ops.
1316 (remap_after_inlining): Adjust call arguments to add_condition.
1317 (add_condition): Replace size parameter with type parameter, add
1318 param_ops parameter. Unshare constant value used in conditions.
1319 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
1320 parameter expressions using param_ops.
1321 (decompose_param_expr): New function.
1322 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
1323 to replace call to unmodified_parm_or_parm_agg_item.
1324 (set_switch_stmt_execution_predicate): Likewise.
1325 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
1326 with type.
1327 (inline_read_section): Read param_ops from summary stream.
1328 (ipa_fn_summary_write): Write param_ops to summary stream.
1329
1330 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
1331
1332 PR rtl-optimization/92107
1333 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
1334 expression written.
1335
1336 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
1337
1338 * config/darwin.c: Update description of fix and continue.
1339
1340 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
1341
1342 * config/darwin.c (darwin_binds_local_p): Update to call
1343 default_binds_local_p_3 () directly. amend comments.
1344
1345 2019-10-15 Richard Biener <rguenther@suse.de>
1346
1347 * lto-streamer-out.c (lto_variably_modified_type_p): New.
1348 (tree_is_indexable): Use it.
1349 * tree-streamer-out.c (pack_ts_type_common_value_fields):
1350 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
1351 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
1352
1353 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1354
1355 * config/msp430/msp430.md (zero_extendqipsi2): New.
1356 (zero_extendqisi2): Optimize case where src register and base dst
1357 register are the same.
1358 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
1359 (zero_extendpsisi2): Optimize r->m case.
1360 Add unnamed insn patterns to catch insns combine searches for when
1361 optimizing pointer manipulation.
1362
1363 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1364
1365 * config/msp430/msp430.md: Group zero_extend* insns together.
1366
1367 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1368
1369 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
1370 constraint.
1371 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
1372 POST_INC.
1373 (msp430_subreg): Likewise.
1374 (msp430_split_addsi): Likewise.
1375 (msp430_print_operand_addr): Likewise.
1376 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
1377 (USE_STORE_POST_INCREMENT): Define.
1378 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
1379 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
1380 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
1381 (msp430_general_dst_operand): New.
1382 (msp430_general_dst_nonv_operand): New.
1383 (msp430_nonsubreg_operand): Remove.
1384 (msp430_nonsubreg_dst_operand): New.
1385 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
1386 of defunct msp430_nonsubreg_operand.
1387 (msp430_nonsubregnonpostinc_or_imm_operand): New.
1388
1389 2019-10-15 Richard Biener <rguenther@suse.de>
1390
1391 PR tree-optimization/91929
1392 * tree-ssa-pre.c (pre_expr_d::loc): New member.
1393 (get_or_alloc_expr_for_name): Initialize it.
1394 (get_or_alloc_expr_for_constant): Likewise.
1395 (phi_translate_1): Copy it.
1396 (create_expression_by_pieces): Use the original location
1397 of the expression for the inserted stmt.
1398 (compute_avail): Record the location of the stmt for the
1399 expressions created.
1400
1401 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
1402
1403 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
1404 before using tree_to_uhwi.
1405
1406 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
1407
1408 * config/s390/s390.md: Run %a0:DI splitters only after reload.
1409
1410 2019-10-15 Richard Biener <rguenther@suse.de>
1411
1412 PR tree-optimization/92094
1413 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
1414 do not adjust the reduction definition def type.
1415 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
1416 defines the latch argument of the PHI.
1417
1418 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
1419
1420 PR target/92035
1421 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
1422 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
1423 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
1424 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
1425 _mm_maskz_roundscale_round_sd): New intrinsics.
1426 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
1427 __builtin_ia32_rndscales?_mask_round builtins instead of
1428 __builtin_ia32_rndscales?_round.
1429 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
1430 __builtin_ia32_rndscalesd_round): Remove.
1431 (__builtin_ia32_rndscaless_mask_round,
1432 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
1433 * config/i386/sse.md
1434 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
1435 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
1436 ... this, adjust and add subst atrributes to make it maskable.
1437
1438 2019-10-15 Richard Biener <rguenther@suse.de>
1439
1440 PR middle-end/92046
1441 * common.opt (fallow-store-data-races): New.
1442 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
1443 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
1444 * doc/invoke.texi (fallow-store-data-races): Document.
1445 (--param allow-store-data-races): Remove docs.
1446 * opts.c (default_options_table): Enable -fallow-store-data-races
1447 at -Ofast.
1448 (default_options_optimization): Do not enable --param
1449 allow-store-data-races at -Ofast.
1450 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
1451 instead of PARAM_ALLOW_STORE_DATA_RACES.
1452 * tree-ssa-loop-im.c (execute_sm): Likewise.
1453
1454 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1455
1456 PR tree-optimization/92085
1457 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
1458 instead of calling it unconditionally after
1459 delete_dead_or_redundant_assignment and fix indentation.
1460
1461 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1462
1463 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
1464 TARGET_VFP_DOUBLE.
1465 (*fmsub<SDF:mode>4): Likewise.
1466 *fnmsub<SDF:mode>4): Likewise.
1467 (*fnmadd<SDF:mode>4): Likewise.
1468
1469 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
1470
1471 * doc/tree-ssa.texi: Update renamed macro name.
1472
1473 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
1474
1475 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
1476 vector constants.
1477
1478 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
1479
1480 * config/darwin.c: Use unsigned ints for the picbase label
1481 counters, initialise the vars explicitly.
1482 (update_pic_label_number_if_needed): Move a variable declaration
1483 to where it's needed.
1484 (machopic_output_function_base_name): Use a more strict checking
1485 assert, and and unsigned int for the picbase label counter.
1486 (machopic_get_function_picbase): Likewise.
1487
1488 2019-10-14 Richard Biener <rguenther@suse.de>
1489
1490 PR middle-end/92046
1491 * dse.c (scan_insn): Use param max_active_local_stores.
1492 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
1493 based on optimization level.
1494 * loop-invariant.c (move_loop_invariants): Adjust
1495 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
1496 * opts.c (default_options_optimization): Do not adjust
1497 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
1498 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
1499
1500 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
1501
1502 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
1503
1504 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
1505
1506 * config/arm/arm.c (arm_option_override): Don't override sched
1507 pressure algorithm.
1508
1509 2019-10-14 Richard Biener <rguenther@suse.de>
1510
1511 PR tree-optimization/92069
1512 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
1513 cycles do not set vect_nested_cycle on the latch definition.
1514
1515 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
1516
1517 * function-abi.h (expr_callee_abi): Declare.
1518 * function-abi.cc (expr_callee_abi): New function.
1519
1520 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
1521
1522 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
1523 into [1,MAX].
1524 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
1525 non-zero being represented as [1,MAX].
1526
1527 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
1528
1529 * tree-sra.c (dump_access): Add missing braces.
1530
1531 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
1532
1533 * config/darwin.c (machopic_indirection_name): Rework the
1534 function to emit linker-visible symbols only for indirections
1535 in the data section. Clean up the code and update comments.
1536
1537 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
1538
1539 * config/darwin.c (machopic_indirect_data_reference): Remove
1540 redundant code.
1541
1542 2019-10-13 Nathan Sidwell <nathan@acm.org>
1543
1544 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
1545
1546 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1547
1548 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
1549 c99_runtime.
1550
1551 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
1552
1553 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
1554 so non-virutal are before virutals.
1555 (output_function): Avoid body modifications.
1556
1557 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
1558
1559 * config/pa/pa.c (pa_output_call): Load descriptor address to register
1560 %r22. Load function address before global pointer.
1561 (pa_attr_length_indirect_call): Adjust length of inline versions of
1562 $$dyncall.
1563 (pa_output_indirect_call): Remove fast inline version of $$dyncall
1564 before normal cases. Update inline $$dyncall sequences to preserve
1565 function descriptor address in register %r22.
1566 (TRAMPOLINE_CODE_SIZE): Adjust.
1567 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
1568 register %r22 contains trampoline address.
1569 (pa_trampoline_init): Adjust offsets.
1570 (pa_trampoline_adjust_address): Likewise.
1571 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
1572
1573 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
1574
1575 PR target/67183
1576 * config/darwin.c (machopic_indirection): New field to flag
1577 non-lazy-symbol-pointers in the data section.
1578 (machopic_indirection_name): Compute if an indirection should
1579 appear in the data section.
1580 (machopic_output_data_section_indirection): New callback split
1581 from machopic_output_indirection.
1582 (machopic_output_stub_indirection): Likewise.
1583 (machopic_output_indirection): Retain the code for non-lazy
1584 symbol pointers in their regular section.
1585 (machopic_finish): Use the new callbacks to order the indirection
1586 output.
1587
1588 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
1589
1590 * config/darwin-protos.h (machopic_finish): Delete.
1591 * config/darwin.c (machopic_finish): Make static.
1592
1593 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
1594
1595 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
1596 sections when building kernel extension code.
1597
1598 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
1599
1600 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
1601 later standard."
1602
1603 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
1604
1605 * gcc/config/pa/pa.c (pa_option_override): Remove trailing comma
1606 from warning.
1607
1608 2019-10-12 Jakub Jelinek <jakub@redhat.com>
1609
1610 PR middle-end/92063
1611 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
1612 <case VEC_COND_EXPR>: Return false with *handled = false.
1613 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
1614 recursing on the first operand.
1615 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
1616 instead of tree_could_trap_p.
1617 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
1618
1619 2019-10-11 Jim Wilson <jimw@sifive.com>
1620
1621 PR rtl-optimization/91860
1622 * combine.c (subst): If new_rtx is a constant, also check for
1623 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
1624
1625 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
1626
1627 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
1628 INTVAL when calling store_bit_field.
1629
1630 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
1631
1632 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
1633 size.
1634
1635 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1636
1637 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
1638 vectorizable_live_operation.
1639 (vectorizable_live_operation): Adjust parameters.
1640 * tree-vect-stmts.c (vect_init_vector,
1641 vect_gen_widened_results_half): Fix typo in function comment.
1642 (can_vectorize_live_stmts): Adjust function comment.
1643 Adjust parameters. Adjust call to vectorizable_live_operation.
1644 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
1645 (vect_transform_stmt): Adjust function comment. Adjust call to
1646 can_vectorize_live_stmts.
1647 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
1648
1649 2019-10-11 Richard Biener <rguenther@suse.de>
1650
1651 PR tree-optimization/90883
1652 PR tree-optimization/91091
1653 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
1654 alias-sets both for recording VN table entries and continuing
1655 walking after translating through copies. Handle same-sized
1656 reads from SSA names by returning the plain SSA name.
1657 (eliminate_dom_walker::eliminate_stmt): Properly handle
1658 non-size precision stores in redundant store elimination.
1659
1660 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
1661
1662 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
1663 (ggc_collect): Dump later to not interfere with release_page dump.
1664 (ggc_trim): New function.
1665 * ggc-none.c (ggc_trim): New.
1666 * ggc.h (ggc_trim): Declare.
1667
1668 2019-10-11 Richard Biener <rguenther@suse.de>
1669
1670 PR tree-optimization/92066
1671 PR tree-optimization/92046
1672 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1673 Fix bogus cost model check.
1674
1675 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
1676
1677 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
1678 (LANG_HOOKS_DECLS): Add it.
1679 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
1680 update comment for omp_is_optional_argument.
1681 * omp-general.c (omp_is_allocatable_or_ptr): New.
1682 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
1683 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
1684 Fortran's optional arguments and allocatable/pointer scalars
1685 with use_device_addr.
1686
1687 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
1688
1689 PR target/77918
1690 * config/s390/2827.md: Add new opcodes.
1691 * config/s390/2964.md: Likewise.
1692 * config/s390/3906.md: Likewise.
1693 * config/s390/8561.md: Likewise.
1694 * config/s390/s390-builtins.def (s390_vfchesb): Use
1695 the new vec_cmpgev4sf_quiet_nocc.
1696 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
1697 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
1698 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
1699 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
1700 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
1701 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
1702 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
1703 * config/s390/s390-modes.def (CCSFPS): New mode.
1704 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
1705 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
1706 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
1707 (s390_expand_vec_compare): Use non-signaling patterns where
1708 necessary.
1709 (s390_reverse_condition): Support CCSFPS.
1710 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
1711 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
1712 (asm_fcmp_op): Likewise.
1713 (*smaxv2df3_vx): Use pattern for quiet comparison.
1714 (*sminv2df3_vx): Likewise.
1715 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
1716 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
1717 (vec_cmpgt<mode>_quiet_nocc): Likewise.
1718 (vec_cmplt<mode>_quiet_nocc): New expander.
1719 (vec_cmpge<mode>_quiet_nocc): New pattern.
1720 (vec_cmple<mode>_quiet_nocc): New expander.
1721 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
1722 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
1723 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
1724 (*vec_cmpge<mode>_signaling_nocc): Likewise.
1725 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
1726 (vec_cmpungt<mode>): New expander.
1727 (vec_cmpunge<mode>): Likewise.
1728 (vec_cmpuneq<mode>): Use quiet patterns.
1729 (vec_cmpltgt<mode>): Allow only on z14+.
1730 (vec_cmpordered<mode>): Use quiet patterns.
1731 (vec_cmpunordered<mode>): Likewise.
1732 (VEC_CMP_EXPAND): Add ungt and unge.
1733
1734 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
1735
1736 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
1737 parameter.
1738 * lto-streamer-out.c: Include tree-dfa.h.
1739 (output_cfg): Do not use cfun.
1740 (lto_prepare_function_for_streaming): New.
1741 (output_function): Do not push cfun; do not initialize loop optimizer.
1742 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
1743 * passes.c (ipa_write_summaries): Use it.
1744 (ipa_write_optimization_summaries): Do not modify bodies.
1745 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
1746 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
1747 * tree-ssa-dse.c (pass_dse::execute): Update use of
1748 renumber_gimple_stmt_uids.
1749 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
1750
1751 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
1752
1753 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
1754 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
1755
1756 2019-10-10 Joseph Myers <joseph@codesourcery.com>
1757
1758 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
1759 macros.
1760 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
1761 Also define DFP macros for these conditions.
1762 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
1763 DEC128_SUBNORMAL_MIN): Do not define.
1764 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
1765 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
1766
1767 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
1768 Sandra Loosemore <sandra@codesourcery.com>
1769
1770 PR middle-end/26241
1771 * doc/lto.texi (IPA): Reference to the IPA passes.
1772 * doc/passes.texi (Pass manager): Add node IPA passes and
1773 description for each IPA pass.
1774
1775 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
1776
1777 * ipa-reference.c: Do not include splay-tree.h
1778 (reference_vars_to_consider): Turn to hash map.
1779 (get_static_name, ipa_init, analyze_function, propagate,
1780 stream_out_bitmap, ipa_reference_write_optimization_summary,
1781 ipa_reference_write_optimization_summary): Update.
1782
1783 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
1784
1785 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
1786
1787 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
1788
1789 * config/darwin.c: Lookup Objective C metadata and force indirection
1790 for IVAR refs.
1791
1792 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
1793
1794 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
1795 addresses.
1796 (mem_operand_gpr): Add check for prefixed addresses.
1797 (mem_operand_ds_form): Add check for prefixed addresses.
1798 (rs6000_legitimate_offset_address_p): If we support prefixed
1799 addresses, check for a 34-bit offset instead of 16-bit.
1800 (rs6000_legitimate_address_p): Add check for prefixed addresses.
1801 Do not allow load/store with update if the address is prefixed.
1802 (rs6000_mode_dependent_address): If we support prefixed
1803 addresses, check for a 34-bit offset instead of 16-bit.
1804
1805 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
1806
1807 PR target/77918
1808 * config/s390/vector.md (vcond_comparison_operator): New
1809 predicate.
1810 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
1811
1812 2019-10-10 David Malcolm <dmalcolm@redhat.com>
1813
1814 PR 87488
1815 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
1816 -D.
1817 * configure.ac (--with-documentation-root-url): New option.
1818 * configure: Regenerate.
1819 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
1820 option URL, add it as a new string field of the diagnostic option.
1821 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
1822 (print_option_information): If get_option_url is non-NULL, call
1823 it, and if the result is non-NULL, potentially emit an escape
1824 sequence to markup the option text with the resulting URL.
1825 * diagnostic.h (diagnostic_context::get_option_url): New callback.
1826 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
1827 example of JSON output.
1828 * opts-diagnostic.h (get_option_url): New decl.
1829 * opts.c (get_option_url): New function.
1830 * toplev.c (general_init): Initialize the get_option_url callback.
1831
1832 2019-10-10 David Malcolm <dmalcolm@redhat.com>
1833
1834 PR 87488
1835 * common.opt (fdiagnostics-urls=): New option.
1836 (diagnostic-url.h): Add SourceInclude.
1837 (diagnostic_url_rule): New enum.
1838 * diagnostic-color.c: Include "diagnostic-url.h".
1839 (diagnostic_urls_enabled_p): New function.
1840 * diagnostic-url.h: New file.
1841 * diagnostic.c: Include "diagnostic-url.h".
1842 (diagnostic_urls_init): New function.
1843 * diagnostic.h (diagnostic_urls_init): New decl.
1844 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
1845 -fdiagnostics-urls to the list.
1846 (-fdiagnostics-urls): New option.
1847 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
1848 (driver::global_initializations): Call diagnostic_urls_init.
1849 * opts-global.c (init_options_once): Likewise.
1850 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
1851 * pretty-print.c (pretty_printer::pretty_printer): Initialize
1852 show_urls.
1853 (pp_begin_url): New function.
1854 (pp_end_url): New function.
1855 (selftest::test_urls): New selftest.
1856 (selftest::pretty_print_c_tests): Call it.
1857 * pretty-print.h (pretty_printer::show_urls): New field.
1858 (pp_begin_url): New decl.
1859 (pp_end_url): New decl.
1860
1861 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
1862
1863 PR target/92022
1864 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
1865
1866 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
1867
1868 PR target/88630
1869 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
1870 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
1871 also for TARGET_FPU_SH4_300.
1872 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
1873 TARGET_SH4_300.
1874 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
1875 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
1876 (*negsf2_i): Split into ...
1877 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
1878 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
1879 (**abssf2_i): Split into ...
1880 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
1881 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
1882 (*negdf2_i): Split into ...
1883 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
1884 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
1885 (**abssf2_i): Split into ...
1886 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
1887
1888 2019-10-10 Richard Biener <rguenther@suse.de>
1889
1890 PR middle-end/92046
1891 * opts.c (finish_options): Do not influence global --params
1892 from options that are adjustable per function.
1893 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1894 Apply --param adjustment based on active cost-model.
1895 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
1896 further store-sinking when vectorization or if-conversion
1897 are not enabled.
1898
1899 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
1900
1901 PR middle-end/92037
1902 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
1903 rather than ggc_alloc_cleared to alloc symbol table.
1904 * toplev.c (general_init): Likewise.
1905 * cgraph.h (symbol_table): Explicitly construct every field.
1906
1907 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
1908
1909 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
1910 (PF_Z15): ... this.
1911 * config.gcc: Add z15 as option for --with-arch and --with-tune
1912 configure switches.
1913 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
1914 error reporting for unsupported builtins.
1915 * config/s390/s390-opts.h (enum processor_type): Rename
1916 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
1917 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
1918 * config/s390/driver-native.c (s390_host_detect_local_cpu):
1919 Likewise.
1920 * config/s390/s390-builtins.def: Likewise.
1921 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
1922 (s390_expand_builtin): Add missing check for unsupported builtins.
1923 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
1924 (s390_rtx_costs): Likewise.
1925 (s390_get_sched_attrmask): Rename arch13 to z15.
1926 (s390_get_unit_mask): Likewise.
1927 (s390_is_fpd): Likewise.
1928 (s390_is_fxd): Likewise.
1929 * config/s390/s390.h (enum processor_flags): Likewise.
1930 * config/s390/s390.md: Likewise.
1931 * config/s390/vector.md: Likewise.
1932 * config/s390/vx-builtins.md: Likewise.
1933 * config/s390/s390.opt: Add z15 to processor_type value.
1934
1935 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
1936
1937 PR target/91035
1938 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
1939 prototype.
1940 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
1941 ("split_stack_data", "split_stack_call")
1942 ("split_stack_call_<mode>", "split_stack_cond_call")
1943 ("split_stack_cond_call_<mode>"): Remove.
1944 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
1945 insn definition.
1946 * config/s390/s390.c (s390_output_split_stack_data): New function.
1947 (s390_expand_split_stack_prologue): Use the merged expander.
1948
1949 2019-10-09 Martin Sebor <msebor@redhat.com>
1950
1951 PR tree-optimization/90879
1952 * builtins.c (check_access): Avoid using maxbound when null.
1953 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
1954 * doc/invoke.texi (-Wstring-compare): Document new warning option.
1955 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
1956 conditional.
1957 (get_range_strlen): Overwrite initial maxbound when non-null.
1958 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
1959 changes.
1960 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
1961 (used_only_for_zero_equality): New function.
1962 (handle_builtin_memcmp): Call it.
1963 (determine_min_objsize): Return an integer instead of tree.
1964 (get_len_or_size, strxcmp_eqz_result): New functions.
1965 (maybe_warn_pointless_strcmp): New function.
1966 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
1967 between a longer string and a smaller array.
1968 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
1969
1970 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
1971
1972 * config/darwin.c (darwin_override_options): Make the check for
1973 Objective-C ABI version more specific for 64bit code.
1974
1975 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
1976
1977 * config/darwin.c (machopic_indirect_data_reference): Set flag to
1978 indicate that the new symbol is an indirection.
1979 (machopic_indirect_call_target): Likewise.
1980 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
1981 (MACHO_SYMBOL_INDIRECTION_P): New.
1982 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
1983
1984 2019-10-08 Jason Merrill <jason@redhat.com>
1985
1986 * doc/invoke.texi: Document -fconcepts-ts.
1987
1988 2019-10-09 Richard Biener <rguenther@suse.de>
1989
1990 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
1991 allow stmts other than GIMPLE_ASSIGN in nested cycles.
1992
1993 2019-10-08 Richard Biener <rguenther@suse.de>
1994
1995 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
1996 (_stmt_vec_info::force_single_cycle): Likewise.
1997 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
1998 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
1999 * tree-vect-loop.c (vectorizable_reduction): Set
2000 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
2001 (vect_transform_reduction): Use them to remove redundant code.
2002 (vect_transform_cycle_phi): Likewise.
2003
2004 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
2005
2006 PR tree-optimization/90836
2007 * gcc/match.pd (popcount): New pattern.
2008
2009 2019-10-08 Martin Sebor <msebor@redhat.com>
2010
2011 PR middle-end/92026
2012 PR middle-end/92014
2013 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
2014 again once nbytes has been set. Set the access size when not yet set.
2015
2016 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
2017
2018 * config/darwin.c (machopic_select_section): Remove dead code for
2019 old Objective-C section selection method, replace with unreachable.
2020
2021 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
2022
2023 * config/darwin.c (machopic_indirect_data_reference): Check for
2024 required indirections before making direct access to defined
2025 values.
2026 (machopic_output_indirection): Place the indirected pointes for
2027 required indirections into the non-lazy symbol pointers section.
2028 (darwin_encode_section_info):
2029 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
2030 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
2031
2032 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
2033
2034 PR target/91994
2035 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
2036 instead of ALL_SSE_REG to check if function call preserves some
2037 256-bit SSE registers.
2038
2039 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2040
2041 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
2042 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
2043 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
2044
2045 2019-10-08 Richard Biener <rguenther@suse.de>
2046
2047 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
2048 (_stmt_vec_info::is_reduc_info): Add.
2049 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
2050 (vectorizable_condition): Remove.
2051 (vectorizable_shift): Likewise.
2052 (vectorizable_reduction): Adjust.
2053 (info_for_reduction): New.
2054 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
2055 (vect_analyze_scalar_cycles_1): ... here.
2056 (vect_analyze_loop_operations): Adjust.
2057 (needs_fold_left_reduction_p): Simplify for single caller.
2058 (vect_is_simple_reduction): Likewise. Remove stmt restriction
2059 for nested cycles not part of double reductions.
2060 (vect_model_reduction_cost): Pass in the reduction type.
2061 (info_for_reduction): New function.
2062 (vect_create_epilog_for_reduction): Use it, access reduction
2063 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
2064 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
2065 (vectorize_fold_left_reduction): Remove pointless assert.
2066 (vectorizable_reduction): Analyze the full reduction when
2067 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
2068 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
2069 stmt code-generation to vectorizable_* in most cases. Verify
2070 code-generation only for cases handled by
2071 vect_transform_reductuon.
2072 (vect_transform_reduction): Use info_for_reduction to get at
2073 reduction meta. Simplify.
2074 (vect_transform_cycle_phi): Likewise.
2075 (vectorizable_live_operation): Likewise.
2076 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
2077 at the PHI node for STMT_VINFO_REDUC_TYPE.
2078 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
2079 longer necessary code.
2080 * tree-vect-stmts.c (vectorizable_shift): Make static again.
2081 (vectorizable_condition): Likewise. Get at reduction related
2082 info via info_for_reduction.
2083 (vect_analyze_stmt): Adjust.
2084 (vect_transform_stmt): Likewise.
2085 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2086 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
2087
2088 2019-10-08 Joseph Myers <joseph@codesourcery.com>
2089
2090 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
2091 -fno-fp-int-builtin-inexact default for C2X.
2092
2093 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2094 Richard Biener <rguenther@suse.de>
2095
2096 PR tree-optimization/91532
2097 * tree-if-conv.c: Include tree-ssa-dse.h.
2098 (ifcvt_local_dce): Change param from bb to loop,
2099 and call dse_classify_store.
2100 (tree_if_conversion): Pass loop instead of loop->header as arg
2101 to ifcvt_local_dce.
2102 * tree-ssa-dse.c: Include tree-ssa-dse.h.
2103 (delete_dead_or_redundant_assignment): Remove static qualifier from
2104 declaration, and add prototype in tree-ssa-dse.h.
2105 (dse_store_status): Move to tree-ssa-dse.h.
2106 (dse_classify_store): Remove static qualifier and add new tree param
2107 stop_at_vuse, and add prototype in tree-ssa-dse.h.
2108 * tree-ssa-dse.h: New header.
2109
2110 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
2111
2112 * config/darwin.c (machopic_output_indirection): Don't put
2113 hidden symbol indirections into the .data section, use the
2114 non-lazy symbol pointers section as normal.
2115 (darwin_encode_section_info): Record if a symbol is hidden.
2116 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
2117 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
2118
2119 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
2120
2121 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
2122 predicates instead of accessing bits directly.
2123 (machopic_indirect_call_target): Likewise.
2124 (machopic_output_indirection): Likewise.
2125 (darwin_encode_section_info): Improve description. Use renamed
2126 symbol flags. Use predicate macros for variables and functions.
2127 * config/darwin.h:
2128 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
2129 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
2130 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
2131 (MACHO_SYMBOL_VARIABLE_P): New.
2132 (MACHO_SYMBOL_DEFINED_P):New.
2133 (MACHO_SYMBOL_STATIC_P): New.
2134 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
2135 (SYMBOL_FLAG_SUBT_DEP): New.
2136 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
2137
2138 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2139
2140 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
2141 (msp430_expand_epilogue): Likewise.
2142 * config/msp430/predicates.md: Likewise.
2143 * config/msp430/msp430.md: Likewise.
2144 Replace blocks of 8 spaces with tabs.
2145
2146 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2147
2148 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
2149 * config/msp430/msp430.c (msp430_split_addsi): New.
2150 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
2151 a block of C code for splitting addsi.
2152
2153 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
2154
2155 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
2156 ix86_expand_rounddf_32): Reorder functions.
2157 * config/i386/i386-protos.h: Update.
2158
2159 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2160
2161 * config.in: Regenerate.
2162 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
2163 Add new "Yx" constraint.
2164 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
2165 function.
2166 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
2167 prototype.
2168 * config/msp430/msp430.c (msp430_option_override): Allow the lower
2169 code/data region to be selected in the small memory model.
2170 (msp430_section_attr): Don't warn if the "section" and "lower"
2171 attributes are used together.
2172 (msp430_handle_generic_attribute): Likewise.
2173 (msp430_var_in_low_mem): New function.
2174 (TARGET_ENCODE_SECTION_INFO): Define.
2175 (msp430_encode_section_info): New function.
2176 (gen_prefix): Return early in the small memory model.
2177 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
2178 ".lower" prefix if -m{code,data}-region=lower have been passed.
2179 (msp430_output_aligned_decl_common): Emit common symbols when
2180 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
2181 set.
2182 (TARGET_ASM_FILE_END): Define.
2183 (msp430_file_end): New function.
2184 (msp430_do_not_relax_short_jumps): Allow relaxation when
2185 function will be in the lower region.
2186 (msp430_op_not_in_high_mem): New function.
2187 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
2188 the 'X' operand selector.
2189 Clarify comment for 'x' operand selector.
2190 * config/msp430/msp430.h (LINK_SPEC): Propagate
2191 -m{code,data}-region to the linker via spec function
2192 msp430_propagate_region_opt.
2193 (msp430_propagate_region_opt): New prototype.
2194 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
2195 (SYMBOL_FLAG_LOW_MEM): Define.
2196 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
2197 selector.
2198 (zero_extendqihi2): Fix operand number used by "%X" selector.
2199 (zero_extendqisi2): Likewise.
2200 (zero_extendhisi2): Likewise.
2201 (movqi): Use "Yx" constraint in place of "%X" operand selector.
2202 (movhi): Likewise.
2203 (addqi3): Likewise.
2204 (addhi3): Likewise.
2205 (addsi3): Likewise.
2206 (addhi3_cy): Likewise.
2207 (addchi4_cy): Likewise.
2208 (subqi3): Likewise.
2209 (subhi3): Likewise.
2210 (subsi3): Likewise.
2211 (bic<mode>3): Likewise.
2212 (and<mode>3): Likewise.
2213 (ior<mode>3): Likewise.
2214 (xor<mode>3): Likewise.
2215 (slli_1): Add missing "%X" operand selector.
2216 (slll_1): Likewise.
2217 (slll_2): Likewise.
2218 (srai_1): Likewise.
2219 (sral_1): Likewise.
2220 (sral_2): Likewise.
2221 (srli_1): Likewise.
2222 (srll_1): Likewise.
2223 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
2224 selector.
2225 (cbranchhi4_real): Likewise.
2226 (cbranchqi4_reversed): Likewise.
2227 (cbranchhi4_reversed): Likewise.
2228 (*bitbranch<mode>4): Likewise.
2229 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
2230 * config/msp430/msp430.opt (mcode-region=): Set default to
2231 MSP430_REGION_LOWER. Improve docstring.
2232 (mdata-region=): Likewise.
2233 (muse-lower-region-prefix): New option.
2234 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
2235 mdata-region=none multilib.
2236 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
2237 mdata-region=none multilib.
2238 MULTILIB_EXCEPTIONS: Remove.
2239 MULTILIB_REQUIRED: Define.
2240 * configure: Regenerate.
2241 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
2242 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
2243 * doc/extend.texi: Clarify comment for {upper,lower,either}
2244 function attributes.
2245 Add separate description for "lower" variable attribute.
2246
2247 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
2248
2249 PR target/77918
2250 * optabs-tree.c (vcond_icode_p): New function.
2251 (vcond_eq_icode_p): Likewise.
2252 (expand_vec_cond_expr_p): Use vcond_icode_p and
2253 vcond_eq_icode_p.
2254 * optabs.c (can_vcond_compare_p): New function.
2255 * optabs.h (can_vcond_compare_p): Likewise.
2256
2257 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
2258
2259 PR target/77918
2260 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
2261 caller passes a non-trapping condition.
2262 (is_gimple_condexpr): Allow trapping conditions.
2263 (is_gimple_condexpr_1): New helper function.
2264 (is_gimple_condexpr_for_cond): New function, acts like old
2265 is_gimple_condexpr.
2266 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
2267 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
2268 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
2269 * gimplify.c (gimplify_cond_expr): Use
2270 is_gimple_condexpr_for_cond.
2271 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
2272 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
2273 VEC_COND_EXPR.
2274 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
2275 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
2276 is_gimple_condexpr_for_cond, remove pointless tmp check
2277 (forward_propagate_into_cond): Remove pointless tmp check.
2278
2279 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
2280
2281 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
2282 match that of other gsi_next_* functions. Adjust the comment.
2283 (gsi_start_nonvirtual_phis): New function.
2284 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
2285 gsi_next_nonvirtual_phi accordingly. (No functional change.)
2286
2287 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
2288
2289 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
2290 setjmp situation here. Fix a verb's ending: "the exact variables or
2291 elements for which there are warnings depends" -> "... depend".
2292
2293 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
2294
2295 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
2296
2297 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
2298
2299 * ipa-prop.c (ipa_vr::nonzero_p): New.
2300 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
2301 non-zero range.
2302 * ipa-prop.h (class ipa_vr): Add nonzero_p.
2303 * tree-vrp.c (range_has_numeric_bounds_p): New.
2304 (range_int_cst_p): Use range_has_numeric_bounds_p.
2305 (get_range_op_handler): New.
2306 (supported_types_p): New.
2307 (defined_ranges_p): New.
2308 (drop_undefines_to_varying): New.
2309 (range_fold_binary_symbolics_p): New.
2310 (range_fold_unary_symbolics_p): New.
2311 (range_fold_unary_expr): Extract out into above functions.
2312 (range_fold_binary_expr): Same.
2313 (value_range_base::normalize_addresses): New.
2314 (value_range_base::normalize_symbolics): Normalize addresses.
2315 * tree-vrp.h (class value_range_base): Add normalize_addresses.
2316
2317 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
2318
2319 * tree-vrp.c (value_range_base::singleton_p): Use
2320 value_range_base::num_pairs instead of vrp_val_is* to check
2321 if a range has one sub-range.
2322
2323 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
2324
2325 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
2326 DEF is not a true earlyclobber but is tied to a specific input
2327 operand, and so is effectively earlyclobber wrt inputs that have
2328 different values.
2329 (make_early_clobber_and_input_conflicts): Pass this case to the above.
2330
2331 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
2332
2333 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
2334 (pod_mode): Mark operators likewise.
2335 (scalar_int_mode): Mark non-default constructors and
2336 operators with CONSTEXPR.
2337 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
2338 (fixed_size_mode): Likewise.
2339
2340 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
2341
2342 PR target/91994
2343 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
2344 and wrap the unspec_volatile in a parallel.
2345 (*avx_vzeroupper): New define_insn. Use a match_parallel around
2346 the unspec_volatile.
2347 * config/i386/predicates.md (vzeroupper_pattern): Expect the
2348 unspec_volatile to be wrapped in a parallel.
2349 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
2350 (ix86_add_reg_usage_to_vzerouppers): New functions.
2351 (rest_of_handle_insert_vzeroupper): Use them to add register
2352 usage information to the vzeroupper instructions.
2353
2354 2019-10-07 Richard Biener <rguenther@suse.de>
2355
2356 PR tree-optimization/91975
2357 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
2358 handle invariants.
2359
2360 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
2361
2362 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
2363 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
2364
2365 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
2366
2367 * config/darwin.c (darwin_override_options): Adjust objective-c
2368 ABI version error messages to avoid punctuation and contracted
2369 negations.
2370
2371 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
2372
2373 * ipa-inline.c: Fix type; compute size rather than self_size
2374 for size of caller function.
2375
2376 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
2377
2378 PR target/59888
2379 * config/darwin.c (darwin_rodata_section): Add relocation flag,
2380 choose const_data section for constants with relocations.
2381 (machopic_select_section): Pass relocation flag to
2382 darwin_rodata_section ().
2383
2384 2019-10-05 Jakub Jelinek <jakub@redhat.com>
2385
2386 PR tree-optimization/91734
2387 * generic-match-head.c: Include fold-const-call.h.
2388 * match.pd (sqrt(x) cmp c): Check the boundary value and
2389 in case inexact computation of c*c affects comparison of the boundary,
2390 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
2391 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
2392 for -frounding-math. For c2, try the next smaller or larger floating
2393 point constant depending on comparison code and if it has the same
2394 sqrt as c2, use it instead of c2.
2395
2396 2019-10-04 Martin Sebor <msebor@redhat.com>
2397
2398 PR middle-end/91977
2399 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
2400 MEM_REF right operand. Avoid failing for MEM_REF assignments from
2401 uninitialized objects.
2402
2403 2019-10-04 Martin Sebor <msebor@redhat.com>
2404
2405 * builtins.c (compute_objsize): Add an argument.
2406 * tree-object-size.c (addr_object_size): Same.
2407 (compute_builtin_object_size): Same.
2408 * tree-object-size.h (compute_builtin_object): Same.
2409
2410 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
2411
2412 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
2413
2414 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
2415
2416 * match.pd (sinh (x) / cosh (x)): New simplification rule.
2417
2418 2019-10-04 Martin Jambor <mjambor@suse.cz>
2419
2420 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
2421 fntype when switching to calling memcpy instead of memset.
2422
2423 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
2424
2425 * hash-table.h (hash_table::empty_slow): Don't assign
2426 size_t values to int variables.
2427
2428 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
2429
2430 * expr.c (convert_mode_scalar): Remove shadowing local var.
2431 (emit_block_move): Rename local vars.
2432 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
2433 (emit_push_insn): Rename local vars.
2434 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
2435 shadowing local vars.
2436 (store_constructor): Remove shadowing local vars. Rename local var.
2437 (store_field, expand_cond_expr_using_cmove,
2438 expand_expr_real_2): Remove shadowing local vars.
2439 (expand_expr_real_1,
2440 do_store_flag): Remove shadowing local vars. Rename local vars.
2441
2442 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
2443
2444 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
2445
2446 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
2447
2448 * genmatch.c (commutate): Rename local var.
2449 (lower_cond): Reuse local var.
2450 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
2451 dt_operand::gen, dt_operand::gen_gimple_expr,
2452 dt_simplify::gen): Add a param. Rename generated vars.
2453 (decision_tree::insert_operand,
2454 (capture_info::walk_match, capture_info::walk_result,
2455 capture_info::walk_c_expr): Rename local vars.
2456 (expr::gen_transform): Rename generated vars.
2457 Use snprintf. Rename local vars.
2458 (capture::gen_transform, dt_operand::get_name,
2459 dt_operand::gen_opname): Rename generated vars.
2460 (write_predicate): Adjust call to gen_kids.
2461 (parser::get_internal_capture_id): Rename generated vars.
2462 (parser::parse_expr): Rename local vars.
2463 (parser::parse_if): Remove local var.
2464 (parser::parse_pattern, add_operator): Rename local vars.
2465
2466 2019-10-04 Joseph Myers <joseph@codesourcery.com>
2467
2468 * builtins.def (DEF_C2X_BUILTIN): New macro.
2469 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
2470 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
2471 (strndup): Use DEF_C2X_BUILTIN.
2472 * coretypes.h (enum function_class): Add function_c2x_misc.
2473
2474 2019-10-04 Maya Rashish <coypu@sdf.org>
2475
2476 * ira-color.c (update_costs_from_allocno): Call
2477 ira_init_register_move_cost_if_necessary.
2478
2479 2019-10-04 Jeff Law <law@redhat.com>
2480
2481 * config/h8300/h8300.md (cpymemsi): Disable.
2482 (movmd, movmd_internal_<mode>, movstr, movsd):
2483 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
2484 (movmd splitter, movsd splitter): Likewise.
2485
2486 * range-op.cc (range_tests): Avoid two tests when ints and
2487 shorts are the same size.
2488
2489 2019-10-04 Richard Biener <rguenther@suse.de>
2490
2491 PR lto/91968
2492 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
2493 BLOCK_VARS.
2494
2495 2019-10-04 Richard Biener <rguenther@suse.de>
2496
2497 PR tree-optimization/91982
2498 * tree-vect-loop.c (vectorizable_live_operation): Also guard
2499 against EXTRACT_LAST_REDUCTION.
2500 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
2501
2502 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
2503
2504 * range-op.o (value_range_from_overflowed_bounds): Rename from
2505 adjust_overflow_bound.
2506 (value_range_with_overflow): Rename from
2507 create_range_with_overflow.
2508 (create_possibly_reversed_range): Adjusted for above renames.
2509 (operator_*::wi_fold): Same.
2510 (cross_product_operator::wi_cross_productor): Same.
2511
2512 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
2513
2514 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
2515 -Wshadow=compatible-local): Fix description.
2516 Add an example where -Wshadow=compatible-local does not
2517 warn.
2518
2519 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
2520
2521 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
2522
2523 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
2524 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
2525
2526 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
2527
2528 * expr.c (emit_block_move_hints): Slightly cleaner fix to
2529 can_move_by_pieces issue.
2530
2531 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
2532
2533 PR target/87243
2534 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
2535 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
2536 is available and the user has not set one on the command line.
2537
2538 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2539
2540 PR target/91769
2541 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
2542 instead of REGNO equality check on addr.reg.
2543
2544 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
2545
2546 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
2547 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
2548 * doc/invoke.texi (inline-heuristics-hint-percent,
2549 inline-heuristics-hint-percent-O2): Document.
2550 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
2551 hint attribute.
2552 (can_inline_edge_by_limits_p): Use it.
2553
2554 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
2555
2556 * config/arm/arm.c (arm_print_value): Use real_to_decimal
2557 to print CONST_DOUBLEs.
2558
2559 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
2560
2561 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
2562 * ipa-prop.c (ipcp_free_transformation_sum): New function.
2563 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
2564
2565 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
2566
2567 * Makefile.in (OBJS): Add range.o and range-op.o.
2568 Remove wide-int-range.o.
2569 * function-tests.c (test_ranges): New.
2570 (function_tests_c_tests): Call test_ranges.
2571 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
2572 range_fold_unary_expr instead of extract_range_from_unary_expr.
2573 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
2574 * range-op.cc: New file.
2575 * range-op.h: New file.
2576 * range.cc: New file.
2577 * range.h: New file.
2578 * selftest.h (range_tests): New prototype.
2579 * ssa.h: Include range.h.
2580 * tree-vrp.c (value_range_base::value_range_base): New
2581 constructors.
2582 (value_range_base::singleton_p): Do not call
2583 ranges_from_anti_range until sure we will need to.
2584 (value_range_base::type): Rename gcc_assert to
2585 gcc_checking_assert.
2586 (vrp_val_is_max): New argument.
2587 (vrp_val_is_min): Same.
2588 (wide_int_range_set_zero_nonzero_bits): Move from
2589 wide-int-range.cc.
2590 (extract_range_into_wide_ints): Remove.
2591 (extract_range_from_multiplicative_op): Remove.
2592 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
2593 from extract_range_from_binary_expr.
2594 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
2595 from extract_range_from_binary_expr.
2596 (extract_range_from_binary_expr): Remove.
2597 (normalize_for_range_ops): New.
2598 (range_fold_binary_expr): New.
2599 (range_fold_unary_expr): New.
2600 (value_range_base::num_pairs): New.
2601 (value_range_base::lower_bound): New.
2602 (value_range_base::upper_bound): New.
2603 (value_range_base::upper_bound): New.
2604 (value_range_base::contains_p): New.
2605 (value_range_base::invert): New.
2606 (value_range_base::union_): New.
2607 (value_range_base::intersect): New.
2608 (range_compatible_p): New.
2609 (value_range_base::operator==): New.
2610 (determine_value_range_1): Call range_fold_*expr instead of
2611 extract_range_from_*expr.
2612 * tree-vrp.h (class value_range_base): Add new constructors.
2613 Add methods for union_, intersect, operator==, contains_p,
2614 num_pairs, lower_bound, upper_bound, invert.
2615 (vrp_val_is_min): Add handle_pointers argument.
2616 (vrp_val_is_max): Same.
2617 (extract_range_from_unary_expr): Remove.
2618 (extract_range_from_binary_expr): Remove.
2619 (range_fold_unary_expr): New.
2620 (range_fold_binary_expr): New.
2621 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
2622 range_fold_binary_expr instead of extract_range_from_binary_expr.
2623 (vr_values::extract_range_basic): Same.
2624 (vr_values::extract_range_from_unary_expr): Call
2625 range_fold_unary_expr instead of extract_range_from_unary_expr.
2626 * wide-int-range.cc: Remove.
2627 * wide-int-range.h: Remove.
2628
2629 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
2630
2631 * config/rs6000/rs6000.c (mem_operand_gpr): Use
2632 SIGNED_16BIT_OFFSET_EXTRA_P macro.
2633 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
2634 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
2635 macro.
2636
2637 2019-10-02 Joseph Myers <joseph@codesourcery.com>
2638
2639 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
2640 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
2641 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
2642 * glimits.h: Likewise.
2643
2644 2019-10-03 Jakub Jelinek <jakub@redhat.com>
2645
2646 PR rtl-optimization/91976
2647 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
2648 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
2649 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
2650
2651 2019-10-02 Martin Sebor <msebor@redhat.com>
2652
2653 PR tree-optimization/80936
2654 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
2655
2656 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
2657
2658 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
2659 instead of reg_class_contents[ALL_REGS].
2660
2661 2019-09-30 Jason Merrill <jason@redhat.com>
2662
2663 Add some hash_map_safe_* functions like vec_safe_*.
2664 * hash-map.h (default_hash_map_size): New variable.
2665 (create_ggc): Use it as default argument.
2666 (hash_map_maybe_create, hash_map_safe_get)
2667 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
2668
2669 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
2670
2671 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
2672 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
2673 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
2674 (can_inline_edge_by_limits_p): Use it.
2675 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
2676 (want_inline_small_function_p): Use O2 bounds.
2677 (edge_badness): LIkewise.
2678 * opts.c (default_options): Add OPT_finline_functions.
2679 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
2680 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
2681 New parameters.
2682 * doc/invoke.texi (-finline-functions): Update documentation.
2683 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
2684 inline-min-speedup-O2): Document.
2685 (early-inlining-insns-O2): Simplify docs.
2686
2687 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
2688
2689 PR rtl-optimization/87047
2690 * ifcvt.c (average_cost): New static function. Use it...
2691 (noce_process_if_block): ... here.
2692
2693 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
2694
2695 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
2696 * config/rs6000/rs6000-string.c (expand_block_move): Add
2697 might_overlap parm.
2698 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
2699 (cpymemsi): Add might_overlap parm to expand_block_move() call.
2700
2701 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
2702
2703 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
2704 (expand_builtin_memcpy): Use might_overlap parm.
2705 (expand_builtin_mempcpy_args): Use might_overlap parm.
2706 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
2707 (expand_builtin_memory_copy_args): Add might_overlap parm.
2708 * expr.c (emit_block_move_via_cpymem): Rename to
2709 emit_block_move_via_pattern, add might_overlap parm, use cpymem
2710 or movmem optab as appropriate.
2711 (emit_block_move_hints): Add might_overlap parm, do the right
2712 thing for might_overlap==true.
2713 * expr.h (emit_block_move_hints): Update prototype.
2714
2715 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
2716
2717 * tree-eh.h (unsplit_eh_edges): Declare.
2718 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
2719 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
2720 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
2721 (struct store_immediate_info): Add lp_nr field.
2722 (store_immediate_info::store_immediate_info): Add NR2 parameter and
2723 initialize lp_nr with it.
2724 (struct merged_store_group): Add lp_nr and only_constants fields.
2725 (merged_store_group::merged_store_group): Initialize them.
2726 (merged_store_group::can_be_merged_into): Deal with them.
2727 (pass_store_merging): Rename terminate_and_release_chain into
2728 terminate_and_process_chain.
2729 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
2730 renaming and remove useless assertions.
2731 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
2732 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
2733 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
2734 instead of always recomputing it and compare lp_nr.
2735 (imm_store_chain_info::output_merged_store): If the group is in an
2736 active EH region, register new stores if they can throw. Moreover,
2737 if the insertion has created new basic blocks, adjust the PHI nodes
2738 of the post landing pad.
2739 (imm_store_chain_info::output_merged_stores): If the original stores
2740 are in an active EH region, deregister them.
2741 (lhs_valid_for_store_merging_p): Prettify.
2742 (adjust_bit_pos): New function extracted from...
2743 (mem_valid_for_store_merging): ...here. Use it for the base address
2744 and also for the offset if it is the addition of a constant.
2745 (lp_nr_for_store): New function.
2746 (pass_store_merging::process_store): Change return type to bool.
2747 Call lp_nr_for_store to initialize the store info. Propagate the
2748 return status of various called functions to the return value.
2749 (store_valid_for_store_merging_p): New predicate.
2750 (enum basic_block_status): New enumeration.
2751 (get_status_for_store_merging): New function.
2752 (pass_store_merging::execute): If the function can throw and catch
2753 non-call exceptions, unsplit the EH edges on entry and clean up the
2754 CFG on exit if something changed. Call get_status_for_store_merging
2755 for every basic block and keep the chains open across basic blocks
2756 when possible. Terminate and process open chains at the end, if any.
2757
2758 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
2759
2760 * reginfo.c (globalize_reg): Fix shadowed variable in
2761 function_abis walk.
2762
2763 2019-10-02 Martin Jambor <mjambor@suse.cz>
2764
2765 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
2766 do not compute some stuff when set.
2767 (cgraph_node::create_edge): Likewise.
2768 (cgraph_node::create_indirect_edge): Renamed last parameter to
2769 coning_p and flipped its meaning, don't even calculate
2770 inline_failed when set.
2771 * cgraph.h (cgraph_node::create_edge): Add new parameter.
2772 (symbol_table::::create_edge): Likewise.
2773 (cgraph_node::create_indirect_edge): Rename last parameter, flip
2774 the default value.
2775 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
2776 call graph edge creating functions.
2777
2778 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
2779
2780 PR c++/91222
2781 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
2782 namespace types.
2783
2784 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
2785
2786 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
2787
2788 2019-10-02 Richard Biener <rguenther@suse.de>
2789
2790 * tree-vectorizer.h (vect_transform_reduction): Declare.
2791 * tree-vect-stmts.c (vect_transform_stmt): Use it.
2792 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
2793 stmt transform to ...
2794 (vect_transform_reduction): ... this.
2795
2796 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
2797
2798 * omp-low.c (lower_omp_target): Dereference optional argument
2799 to work with the right pointer.
2800
2801 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
2802
2803 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
2804 false.
2805 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
2806 * langhooks.h (omp_is_optional_argument): New hook.
2807 * omp-general.c (omp_is_optional_argument): New.
2808 * omp-general.h (omp_is_optional_argument): New declaration.
2809 * omp-low.c (lower_omp_target): Create temporary for received value
2810 and take the address for new_var if the original variable was a
2811 DECL_BY_REFERENCE. Use size of referenced object when a
2812 pass-by-reference optional argument used as argument to firstprivate.
2813
2814 2019-10-02 Jakub Jelinek <jakub@redhat.com>
2815
2816 PR tree-optimization/91940
2817 * tree-vect-patterns.c: Include tree-vector-builder.h and
2818 vec-perm-indices.h.
2819 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
2820 unpromoting the argument back to uint16_t, or by converting into a
2821 rotate, or into shifts plus ior.
2822
2823 2019-10-02 Richard Biener <rguenther@suse.de>
2824
2825 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
2826 New.
2827 (vect_transform_cycle_phi): Declare.
2828 * tree-vect-stmts.c (vect_transform_stmt): Call
2829 vect_transform_cycle_phi.
2830 * tree-vect-loop.c (vectorizable_reduction): Split out
2831 PHI transformation stage to ...
2832 (vect_transform_cycle_phi): ... here.
2833
2834 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
2835
2836 PR middle-end/91957
2837 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
2838 eliminable registers.
2839 (make_hard_regno_live): Likewise, and don't make them live.
2840
2841 2019-10-01 David Malcolm <dmalcolm@redhat.com>
2842
2843 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
2844 Call pp_emit_prefix.
2845 (layout::print_source_line): Likewise.
2846 (layout::start_annotation_line): Likewise.
2847 (diagnostic_show_locus): Remove call to temporarily clear the
2848 prefix.
2849 (selftest::test_one_liner_fixit_remove): Add test coverage for the
2850 interaction of pp_set_prefix with rulers and fix-it hints.
2851 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
2852 prefix when calling diagnostic_show_locus, rather than destroying
2853 it afterwards.
2854 (print_parseable_fixits): Temporarily clear prefix.
2855 * pretty-print.c (pp_format): Save and restore line_length, rather
2856 than assuming it is zero.
2857 (pp_output_formatted_text): Remove assertion that line_length is
2858 zero.
2859
2860 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
2861
2862 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
2863 Rename to ...
2864 (nonoverlapping_refs_since_match_p): ... this; handle also
2865 ARRAY_REFs.
2866 (alias_stats): Update stats.
2867 (dump_alias_stats): Likewise.
2868 (cheap_array_ref_low_bound): New function.
2869 (aliasing_matching_component_refs_p): Add partial_overlap
2870 argument;
2871 pass it to nonoverlapping_refs_since_match_p.
2872 (aliasing_component_refs_walk): Update call of
2873 aliasing_matching_component_refs_p
2874 (nonoverlapping_array_refs_p): New function.
2875 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
2876 indirect_refs_may_alias_p): Update calls of
2877 nonoverlapping_refs_since_match_p.
2878
2879 2019-10-01 Maya Rashish <coypu@sdf.org>
2880
2881 PR target/85401
2882 * ira-color.c (allocno_copy_cost_saving): Call
2883 ira_init_register_move_cost_if_necessary.
2884
2885 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
2886
2887 * Makefile.in (gnat_install_lib): New variable.
2888 * configure.ac: Substitute it.
2889 * configure: Regenerate.
2890
2891 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
2892
2893 PR lto/91222
2894 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
2895 is matched with non-C++ type
2896
2897 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2898
2899 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
2900 after local CSE.
2901
2902 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
2903
2904 * doc/invoke.texi (early-inlining-insns-O2): Document.
2905 (early-inlining-insns): Update.
2906 * params.def (early-inlining-insns-O2): New bound.
2907 (early-inlining-insns): Update docs.
2908 * ipa-inline.c (want_early_inline_function_p): Use new bound.
2909
2910 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
2911
2912 PR target/88562
2913 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
2914 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
2915 a memory access insn.
2916
2917 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
2918
2919 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
2920 vpmsumd.
2921
2922 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
2923
2924 PR target/77918
2925 * config/s390/s390.c (s390_expand_vec_compare): Use
2926 gen_vec_cmpordered and gen_vec_cmpunordered.
2927 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
2928 vec_unordered): Delete.
2929 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
2930 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
2931 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
2932 (vec_cmp<code>): Generic dispatcher.
2933
2934 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
2935
2936 PR target/77918
2937 * config/s390/vector.md (V_HW): Add V1TI in order to make
2938 vcond$a$b generate vcondv1tiv1tf.
2939
2940 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2941
2942 PR rtl-optimization/91948
2943 * ira-build.c (ira_create_allocno): Initialize
2944 ALLOCNO_CROSSED_CALLS_ABIS.
2945 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
2946 than regno to ira_need_caller_save_p.
2947
2948 2019-10-01 Alexandre Oliva <oliva@adacore.com>
2949
2950 * config/i386/i386-options.c
2951 (ix86_recompute_optlev_based_flags): New, moved out of...
2952 (ix86_option_override_internal): ... this. Call it.
2953 (ix86_override_options_after_change): Call it here too.
2954
2955 PR debug/91507
2956 * dwarf2out.c (override_type_for_decl_p): New.
2957 (gen_variable_die): Use it.
2958
2959 2019-10-01 Richard Biener <rguenther@suse.de>
2960
2961 * tree-vect-loop.c (vectorizable_reduction): Move variables
2962 to where they are used.
2963
2964 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2965
2966 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
2967 (build_def_use): Use PC instead of CC0 in a comment.
2968
2969 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2970
2971 * rtl.def (CLOBBER_HIGH): Delete.
2972 * doc/rtl.texi (clobber_high): Remove documentation.
2973 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
2974 (reg_is_clobbered_by_clobber_high): Delete.
2975 (gen_hard_reg_clobber_high): Likewise.
2976 * alias.c (record_set): Remove CLOBBER_HIGH handling.
2977 * cfgexpand.c (expand_gimple_stmt): Likewise.
2978 * combine-stack-adj.c (single_set_for_csa): Likewise.
2979 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
2980 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
2981 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
2982 * cse.c (invalidate_reg): Remove clobber_high parameter.
2983 (invalidate): Update call accordingly.
2984 (canonicalize_insn): Remove CLOBBER_HIGH handling.
2985 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
2986 (count_reg_usage, insn_live_p): Likewise.
2987 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
2988 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
2989 (cselib_invalidate_rtx_note_stores): Update call accordingly.
2990 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
2991 (cselib_invalidate_regno, cselib_process_insn): Likewise.
2992 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
2993 (mark_nonreg_stores_2): Likewise.
2994 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
2995 (df_get_call_refs): Likewise.
2996 * dwarf2out.c (mem_loc_descriptor): Likewise.
2997 * emit-rtl.c (verify_rtx_sharing): Likewise.
2998 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
2999 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
3000 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
3001 * genemit.c (gen_exp, gen_insn): Likewise.
3002 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
3003 * haifa-sched.c (haifa_classify_rtx): Likewise.
3004 * ira-build.c (create_insn_allocnos): Likewise.
3005 * ira-costs.c (scan_one_insn): Likewise.
3006 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
3007 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
3008 * jump.c (mark_jump_label_1): Likewise.
3009 * lra-int.h (lra_insn_reg::clobber_high): Delete.
3010 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
3011 handling.
3012 (mark_not_eliminable): Likewise.
3013 * lra-lives.c (process_bb_lives): Likewise.
3014 * lra.c (new_insn_reg): Remove clobber_high parameter.
3015 (collect_non_operand_hard_regs): Likewise. Update call to new
3016 insn_reg. Remove CLOBBER_HIGH handling.
3017 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
3018 to collect_non_operand_hard_regs.
3019 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
3020 Update call to new_insn_reg.
3021 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
3022 * postreload.c (reload_cse_simplify, reload_combine_note_use)
3023 (move2add_note_store): Likewise.
3024 * print-rtl.c (print_pattern): Likewise.
3025 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
3026 (if_test_bypass_p): Likewise.
3027 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
3028 * reginfo.c (reg_scan_mark_refs): Likewise.
3029 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
3030 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
3031 (forget_old_reloads_1): Likewise.
3032 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
3033 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
3034 (dbr_schedule): Likewise.
3035 * resource.c (update_live_status, mark_referenced_resources)
3036 (mark_set_resources): Likewise.
3037 * rtl.c (copy_rtx): Likewise.
3038 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
3039 (note_pattern_stores): Likewise.
3040 (reg_is_clobbered_by_clobber_high): Delete.
3041 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
3042 CLOBBER_HIGH handling.
3043
3044 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
3045
3046 PR target/91452
3047 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
3048 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
3049 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
3050 Handle ARM_PCS_TLSDESC.
3051 (aarch64_tlsdesc_abi_id): New function.
3052 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
3053 rtx instead of a list of clobbers and clobber_highs.
3054 (tlsdesc_small_<mode>): Update accordingly.
3055
3056 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
3057
3058 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
3059 extra callee_abi argument.
3060 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
3061 Insert a CALLEE_ABI unspec into the call pattern as the second
3062 element in the PARALLEL.
3063 (aarch64_simd_call_p): Delete.
3064 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
3065 the new CALLEE_ABI element of the PARALLEL.
3066 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
3067 from the function type, if given.
3068 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
3069 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
3070 when passed the function_arg_info end marker.
3071 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
3072 final argument of gen_sibcall.
3073 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
3074 (call): Make operand 2 a const_int_operand and pass it to expand_call.
3075 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
3076 pattern.
3077 (call_value): Likewise operand 3.
3078 (sibcall): Likewise operand 2. Place the unspec before rather than
3079 after the return.
3080 (sibcall_value): Likewise operand 3.
3081 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
3082 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
3083 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
3084 constraint strings.
3085 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
3086
3087 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
3088
3089 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
3090 choose_hard_reg_mode.
3091 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
3092
3093 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
3094
3095 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
3096 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
3097 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
3098
3099 2019-09-30 David Malcolm <dmalcolm@redhat.com>
3100
3101 * diagnostic-show-locus.c (line_label::line_label): Initialize
3102 m_has_vbar.
3103 (line_label::comparator): Reverse the sort order by m_state_idx,
3104 so that when the list is walked backwards the labels appear in
3105 order of insertion into the rich_location.
3106 (line_label::m_has_vbar): New field.
3107 (layout::print_any_labels): When dealing with multiple labels at
3108 the same line and column, only print vertical bars for the one
3109 with the highest label_line.
3110 (selftest::test_one_liner_labels): Update test for multiple labels
3111 to expect the labels to be in the order of insertion into the
3112 rich_location. Add a test for many such labels, where the column
3113 numbers are out-of-order relative to the insertion order.
3114
3115 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3116
3117 * config/i386/i386.h (ix86_frame::expensive_p): New field.
3118 (ix86_frame::expensive_count): Likewise.
3119 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
3120 of use_fast_prologue_epilogue robust against incidental changes
3121 in function size.
3122
3123 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
3124
3125 PR target/77918
3126 * config/s390/vector.md (vec_unordered<mode>): Call
3127 gen_vec_ordered<mode>.
3128
3129 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
3130
3131 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
3132 New pattern for ASRD.
3133 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
3134 * internal-fn.def (IFN_DIV_POW2): New internal function.
3135 * optabs.def (sdiv_pow2_optab): New optab.
3136 * tree-vect-patterns.c (vect_recog_divmod_pattern):
3137 Modify pattern to support new operation.
3138 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
3139 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
3140 Document new target selector.
3141
3142 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3143
3144 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
3145 to test whether we're compiling a vector PCS function and to test
3146 whether the function needs to save a particular register.
3147 Remove the vector PCS handling of df_set_regs_ever_live.
3148 (aarch64_components_for_bb): Use crtl->abi to test whether
3149 the function needs to save a particular register.
3150 (aarch64_process_components): Use crtl->abi to test whether
3151 we're compiling a vector PCS function.
3152 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
3153 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
3154
3155 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3156
3157 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
3158 Delete.
3159 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
3160 whether the block calls a function that clobbers more registers
3161 than the current function is allowed to.
3162 (aarch64_use_simple_return_insn_p): Delete.
3163 * config/aarch64/aarch64.md (simple_return): Remove condition.
3164
3165 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3166
3167 * function-abi.h (function_abi_aggregator): New class.
3168 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
3169 function.
3170 * ira.c (update_equiv_regs_prescan): New function. Call
3171 set_paradoxical_subreg here rather than...
3172 (update_equiv_regs): ...here.
3173 (ira): Call update_equiv_regs_prescan.
3174
3175 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3176
3177 * hard-reg-set.h (regs_invalidated_by_call): Only define if
3178 IN_TARGET_CODE.
3179 (call_used_or_fixed_regs): Likewise.
3180 (call_used_or_fixed_reg_p): Likewise.
3181 * reginfo.c (regs_invalidated_by_call): New macro.
3182
3183 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3184
3185 * shrink-wrap.c: Include function-abi.h.
3186 (requires_stack_frame_p): Use crtl->abi to test whether the
3187 current function can use a register without saving it first.
3188
3189 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3190
3191 * sel-sched-ir.h (_def::crosses_call): Replace with...
3192 (_def::crossed_call_abis): ..this new field.
3193 (def_list_add): Take a mask of ABIs instead of a crosses_call
3194 boolean.
3195 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
3196 of _def accordingly.
3197 * sel-sched.c: Include function-abi.h.
3198 (hard_regs_data::regs_for_call_clobbered): Delete.
3199 (reg_rename::crosses_call): Replace with...
3200 (reg_rename::crossed_call_abis): ...this new field.
3201 (fur_static_params::crosses_call): Replace with...
3202 (fur_static_params::crossed_call_abis): ...this new field.
3203 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
3204 (init_hard_regs_data): Use crtl->abi to test which registers the
3205 current function would need to save before it uses them.
3206 (mark_unavailable_hard_regs): Update handling of call-clobbered
3207 registers, using call_clobbers_in_region to find out which registers
3208 might be call-clobbered (but without taking -fipa-ra into account
3209 for now). Remove separate handling of partially call-clobbered
3210 registers.
3211 (verify_target_availability): Use crossed_call_abis instead of
3212 crosses_call.
3213 (get_spec_check_type_for_insn, find_used_regs): Likewise.
3214 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
3215
3216 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3217
3218 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
3219 function to test whether a register is fully or partly clobbered.
3220
3221 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3222
3223 * rtlanal.c: Include function-abi.h.
3224 (reg_set_p): Use insn_callee_abi to get the ABI of the called
3225 function and clobbers_reg_p to test whether the register
3226 is call-clobbered.
3227 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
3228 to get the ABI of the called function and full_reg_clobbers to
3229 get the set of fully call-clobbered registers. Warn about the
3230 pitfalls of using this mode.
3231
3232 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3233
3234 * reload.c: Include function-abi.h.
3235 (find_equiv_reg): Use clobbers_reg_p to test whether either
3236 of the equivalent registers is clobbered by a call.
3237 * reload1.c: Include function-abi.h.
3238 (reg_reloaded_call_part_clobbered): Delete.
3239 (reload): Use crtl->abi to test which registers would need
3240 saving in the prologue before use.
3241 (find_reg): Likewise.
3242 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
3243 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
3244 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
3245
3246 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3247
3248 * regrename.h (du_head::call_clobber_mask): New field.
3249 (du_head::need_caller_save_reg): Replace with...
3250 (du_head::call_abis): ...this new field.
3251 * regrename.c: Include function-abi.h.
3252 (call_clobbered_in_chain_p): New function.
3253 (check_new_reg_p): Use crtl->abi when deciding whether a register
3254 is free for use after RA. Use call_clobbered_in_chain_p to test
3255 whether a candidate register would be clobbered by a call.
3256 (find_rename_reg): Don't add call-clobber conflicts here.
3257 (rename_chains): Check call_abis instead of need_caller_save_reg.
3258 (merge_chains): Update for changes to du_head.
3259 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
3260 target. Record the ABI identifier in call_abis and the set of
3261 fully or partially clobbered registers in call_clobber_mask.
3262 Add fully-clobbered registers to hard_conflicts here rather
3263 than in find_rename_reg.
3264 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
3265 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
3266 * config/aarch64/falkor-tag-collision-avoidance.c: Include
3267 function-abi.h.
3268 * config/c6x/c6x.c: Likewise.
3269
3270 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3271
3272 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
3273 mode of the register when deciding whether it is no longer
3274 available after a call.
3275
3276 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3277
3278 * recog.c: Include function-abi.h.
3279 (peep2_find_free_register): Use crtl->abi when deciding whether
3280 a register is free for use after RA.
3281
3282 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3283
3284 * postreload-gcse.c: Include regs.h and function-abi.h.
3285 (record_opr_changes): Use insn_callee_abi to get the ABI of the
3286 call insn target. Conservatively assume that partially-clobbered
3287 registers are altered.
3288
3289 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3290
3291 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
3292 when deciding whether a register is free for use after RA.
3293 (reload_combine): Remove unnecessary use of fixed_reg_set.
3294 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
3295 call insn target. Use reg_mode when testing whether a register
3296 is no longer available.
3297
3298 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3299
3300 * target.def (return_call_with_max_clobbers): Delete.
3301 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
3302 * doc/tm.texi: Regenerate.
3303 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
3304 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
3305 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
3306 (lra_reg::call_insn): Delete.
3307 * lra.c: Include function-abi.h.
3308 (initialize_lra_reg_info_element): Don't initialize the fields above.
3309 (lra): Use crtl->abi to test whether the current function needs to
3310 save a register in the prologue. Remove special pre-inheritance
3311 lra_create_live_ranges pass for flag_ipa_ra.
3312 * lra-assigns.c: Include function-abi.h
3313 (find_hard_regno_for_1): Use crtl->abi to test whether the current
3314 function needs to save a register in the prologue.
3315 (lra_assign): Assert that registers aren't allocated to a
3316 conflicting register, rather than checking only for overlaps
3317 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
3318 and for registers that are not live across a call.
3319 * lra-constraints.c (last_call_for_abi): New variable.
3320 (full_and_partial_call_clobbers): Likewise.
3321 (setup_next_usage_insn): Remove the register from
3322 full_and_partial_call_clobbers.
3323 (need_for_call_save_p): Use call_clobbered_in_region_p to test
3324 whether the register needs a caller save.
3325 (need_for_split_p): Use full_and_partial_reg_clobbers instead
3326 of call_used_or_fixed_regs.
3327 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
3328 full_and_partial_call_clobbers.
3329 * lra-lives.c (check_pseudos_live_through_calls): Replace
3330 last_call_used_reg_set and call_insn arguments with an abi argument.
3331 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
3332 as the set of conflicting registers.
3333 (calls_have_same_clobbers_p): Delete.
3334 (process_bb_lives): Track the ABI of the last call instead of an
3335 insn/HARD_REG_SET pair. Update calls to
3336 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
3337 the set of registers that could be clobbered by an EH edge.
3338 Include partially-clobbered as well as fully-clobbered registers.
3339 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
3340 * lra-remat.c: Include function-abi.h.
3341 (call_used_regs_arr_len, call_used_regs_arr): Delete.
3342 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
3343 registers and bitmap_view to combine them into dead_regs.
3344 (call_used_input_regno_present_p): Take a function_abi argument
3345 and use it to test whether a register is call-clobbered.
3346 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
3347 call insn target. Update tje call to call_used_input_regno_present_p.
3348 (do_remat): Likewise.
3349 (lra_remat): Remove the initialization of call_used_regs_arr_len
3350 and call_used_regs_arr.
3351
3352 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3353
3354 * loop-iv.c: Include regs.h and function-abi.h.
3355 (simplify_using_initial_values): Use insn_callee_abi to get the
3356 ABI of the call insn target. Conservatively assume that
3357 partially-clobbered registers are altered.
3358
3359 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3360
3361 * function-abi.h (call_clobbers_in_region): Declare.
3362 (call_clobbered_in_region_p): New function.
3363 * function-abi.cc (call_clobbers_in_region): Likewise.
3364 * ira-int.h: Include function-abi.h.
3365 (ira_allocno::crossed_calls_abis): New field.
3366 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
3367 (ira_need_caller_save_regs): New function.
3368 (ira_need_caller_save_p): Likewise.
3369 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
3370 of call_used_or_fixed_regs.
3371 (do_reload): Use crtl->abi to test whether the current function
3372 needs to save a register in the prologue. Count registers that
3373 need to be saved rather than registers that don't.
3374 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
3375 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
3376 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
3377 (propagate_some_info_from_allocno): Likewise.
3378 (copy_info_to_removed_store_destinations): Likewise.
3379 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
3380 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
3381 (ira_build): Use ira_need_caller_save_regs instead of
3382 call_used_or_fixed_regs.
3383 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
3384 whether the current function would need to save a register
3385 before using it.
3386 (calculate_spill_cost): Likewise.
3387 (allocno_reload_assign): Use ira_need_caller_save_regs and
3388 ira_need_caller_save_p instead of call_used_or_fixed_regs.
3389 * ira-conflicts.c (ira_build_conflicts): Use
3390 ira_need_caller_save_regs rather than call_used_or_fixed_regs
3391 as the set of call-clobbered registers. Remove the
3392 call_used_or_fixed_regs mask from the calculation of
3393 temp_hard_reg_set and mask its use instead. Remove special
3394 handling of partially-clobbered registers.
3395 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
3396 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
3397 calculate the set of conflicting registers for calls that
3398 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
3399 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
3400 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
3401 Use eh_edge_abi to calculate the set of registers that could
3402 be clobbered by an EH edge. Include partially-clobbered as
3403 well as fully-clobbered registers.
3404
3405 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3406
3407 * haifa-sched.c: Include function-abi.h.
3408 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
3409 the function would need to save a register before using it.
3410
3411 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3412
3413 * gcse.c: Include function-abi.h.
3414 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
3415 the call insn target. Invalidate partially call-clobbered
3416 registers as well as fully call-clobbered ones.
3417
3418 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3419
3420 * function.c (aggregate_value_p): Work out which ABI the
3421 function is using before testing which registers are at least
3422 partly preserved by a call.
3423
3424 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3425
3426 * early-remat.c: Include regs.h and function-abi.h.
3427 (early_remat::maybe_add_candidate): Don't check for call-clobbered
3428 registers here.
3429 (early_remat::restrict_remat_for_unavail_regs): New function.
3430 (early_remat::restrict_remat_for_call): Likewise.
3431 (early_remat::process_block): Before calling emit_remat_insns
3432 for a previous call in the block, invalidate any candidates
3433 that would clobber call-preserved registers.
3434 (early_remat::emit_remat_insns_for_block): Likewise for the
3435 final call in a block. Do the same thing for live-in registers
3436 when calling emit_remat_insns at the head of a block.
3437
3438 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3439
3440 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
3441 whether the current function needs to save at least part of a
3442 register before using it.
3443 (df_get_exit_block_use_set): Likewise for epilogue restores.
3444
3445 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3446
3447 * df-problems.c: Include regs.h and function-abi.h.
3448 (df_rd_problem_data): Rename sparse_invalidated_by_call to
3449 sparse_invalidated_by_eh and dense_invalidated_by_call to
3450 dense_invalidated_by_eh.
3451 (df_print_bb_index): Update accordingly.
3452 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
3453 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
3454 that are clobbered by an EH edge. Clobber partially-clobbered
3455 registers as well as fully-clobbered ones.
3456 (df_md_confluence_n): Likewise.
3457 (df_rd_local_compute): Likewise. Update for changes to
3458 df_rd_problem_data.
3459 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
3460 of registers that are clobbered by an EH edge. Includde partially-
3461 clobbered registers as well as fully-clobbered ones.
3462
3463 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3464
3465 * cselib.c (cselib_process_insn): If we know what mode a
3466 register was set in, check whether it is clobbered in that
3467 mode by a call. Only fall back to reg_raw_mode if that fails.
3468
3469 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3470
3471 * cse.c: Include regs.h and function-abi.h.
3472 (invalidate_for_call): Take the call insn as an argument.
3473 Use insn_callee_abi to get the ABI of the call and invalidate
3474 partially clobbered registers as well as fully clobbered ones.
3475 (cse_insn): Update call accordingly.
3476
3477 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3478
3479 * combine.c: Include function-abi.h.
3480 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
3481 of the target of call insns. Invalidate partially-clobbered
3482 registers as well as fully-clobbered ones.
3483
3484 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3485
3486 * cfgloopanal.c: Include regs.h and function-abi.h.
3487 (init_set_costs): Use default_function_abi to test whether
3488 a general register is call-clobbered.
3489
3490 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3491
3492 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
3493 instead of the call-clobbered sets.
3494
3495 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3496
3497 * caller-save.c (setup_save_areas): Remove redundant |s of
3498 fixed_reg_set.
3499 (save_call_clobbered_regs): Likewise. Use the call ABI rather
3500 than call_used_or_fixed_regs to decide whether a REG_RETURNED
3501 value is useful.
3502
3503 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3504
3505 * rtl.h (predefined_function_abi): Declare.
3506 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
3507 instead of a boolean call_save flag.
3508 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
3509 accordingly.
3510 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
3511 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
3512 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
3513 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
3514 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
3515 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
3516 * reginfo.c (init_reg_modes_target): Likewise.
3517 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
3518 instead of a boolean call_save flag.
3519 * targhooks.c: Include function-abi.h.
3520 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
3521 using eh_edge_abi to choose the mode.
3522
3523 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3524
3525 * target.def (hard_regno_call_part_clobbered): Take an ABI
3526 identifier instead of an rtx_insn.
3527 * doc/tm.texi: Regenerate.
3528 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
3529 (hook_bool_uint_uint_mode_false): New function.
3530 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
3531 (hook_bool_uint_uint_mode_false): New function.
3532 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
3533 Take an ABI identifier instead of an rtx_insn.
3534 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
3535 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
3536 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
3537 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
3538 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
3539 Likewise.
3540 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
3541 * cselib.c: Include function-abi.h.
3542 (cselib_process_insn): Update call to
3543 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
3544 to get the appropriate ABI identifier.
3545 * function-abi.cc (predefined_function_abi::initialize): Update call
3546 to targetm.hard_regno_call_part_clobbered.
3547 * ira-conflicts.c (ira_build_conflicts): Likewise.
3548 * ira-costs.c (ira_tune_allocno_costs): Likewise.
3549 * lra-constraints.c: Include function-abi.h.
3550 (need_for_call_save_p): Update call to
3551 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
3552 to get the appropriate ABI identifier.
3553 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
3554 * regcprop.c (copyprop_hardreg_forward_1): Update call
3555 to targetm.hard_regno_call_part_clobbered.
3556 * reginfo.c (choose_hard_reg_mode): Likewise.
3557 * regrename.c (check_new_reg_p): Likewise.
3558 * reload.c (find_equiv_reg): Likewise.
3559 * reload1.c (emit_reload_insns): Likewise.
3560 * sched-deps.c: Include function-abi.h.
3561 (deps_analyze_insn): Update call to
3562 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
3563 to get the appropriate ABI identifier.
3564 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
3565 call to targetm.hard_regno_call_part_clobbered.
3566 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
3567
3568 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3569
3570 * config/i386/i386.c: Include function-abi.h.
3571 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
3572 if they preserve some 256-bit or 512-bit SSE registers.
3573
3574 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3575
3576 * target.def (insn_callee_abi): New hook.
3577 (remove_extra_call_preserved_regs): Delete.
3578 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
3579 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
3580 * doc/tm.texi: Regenerate.
3581 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
3582 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
3583 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
3584 insn argument.
3585 (aarch64_remove_extra_call_preserved_regs): Delete.
3586 (aarch64_insn_callee_abi): New function.
3587 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
3588 (TARGET_INSN_CALLEE_ABI): New macro.
3589 * rtl.h (get_call_fndecl): Declare.
3590 (cgraph_rtl_info): Fix formatting. Tweak comment for
3591 function_used_regs. Remove function_used_regs_valid.
3592 * rtlanal.c (get_call_fndecl): Moved from final.c
3593 * function-abi.h (insn_callee_abi): Declare.
3594 (target_function_abi_info): Mention insn_callee_abi.
3595 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
3596 way to get_call_reg_set_usage did.
3597 (insn_callee_abi): New function.
3598 * regs.h (get_call_reg_set_usage): Delete.
3599 * final.c: Include function-abi.h.
3600 (collect_fn_hard_reg_usage): Add fixed and stack registers to
3601 function_used_regs before the main loop rather than afterwards.
3602 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
3603 if function_used_regs ends up not being useful.
3604 (get_call_fndecl): Move to rtlanal.c
3605 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
3606 * caller-save.c: Include function-abi.h.
3607 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
3608 instead of get_call_reg_set_usage.
3609 * cfgcleanup.c: Include function-abi.h.
3610 (old_insns_match_p): Use insn_callee_abi instead of
3611 get_call_reg_set_usage.
3612 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
3613 a tree.
3614 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
3615 function_used_regs.
3616 * df-scan.c: Include function-abi.h.
3617 (df_get_call_refs): Use insn_callee_abi instead of
3618 get_call_reg_set_usage.
3619 * ira-lives.c: Include function-abi.h.
3620 (process_bb_node_lives): Use insn_callee_abi instead of
3621 get_call_reg_set_usage.
3622 * lra-lives.c: Include function-abi.h.
3623 (process_bb_lives): Use insn_callee_abi instead of
3624 get_call_reg_set_usage.
3625 * postreload.c: Include function-abi.h.
3626 (reload_combine): Use insn_callee_abi instead of
3627 get_call_reg_set_usage.
3628 * regcprop.c: Include function-abi.h.
3629 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
3630 get_call_reg_set_usage.
3631 * resource.c: Include function-abi.h.
3632 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
3633 instead of get_call_reg_set_usage.
3634 * var-tracking.c: Include function-abi.h.
3635 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
3636 get_call_reg_set_usage.
3637
3638 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3639
3640 * target.def (fntype_abi): New target hook.
3641 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
3642 * doc/tm.texi: Regenerate.
3643 * target.h (predefined_function_abi): Declare.
3644 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
3645 if defined.
3646 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
3647 * config/aarch64/aarch64.c: Include function-abi.h.
3648 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
3649 (TARGET_FNTYPE_ABI): Define.
3650
3651 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3652
3653 * Makefile.in (OBJS): Add function-abi.o.
3654 (GTFILES): Add function-abi.h.
3655 * function-abi.cc: New file.
3656 * function-abi.h: Likewise.
3657 * emit-rtl.h (rtl_data::abi): New field.
3658 * function.c: Include function-abi.h.
3659 (prepare_function_start): Initialize crtl->abi.
3660 * read-rtl-function.c: Include regs.h and function-abi.h.
3661 (read_rtl_function_body): Initialize crtl->abi.
3662 (read_rtl_function_body_from_file_range): Likewise.
3663 * reginfo.c: Include function-abi.h.
3664 (init_reg_sets_1): Initialize default_function_abi.
3665 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
3666 when making a register global.
3667 * target-globals.h (this_target_function_abi_info): Declare.
3668 (target_globals::function_abi_info): New field.
3669 (restore_target_globals): Copy it.
3670 * target-globals.c: Include function-abi.h.
3671 (default_target_globals): Initialize the function_abi_info field.
3672 (target_globals): Allocate it.
3673 (save_target_globals): Free it.
3674
3675 2019-09-30 Nick Clifton <nickc@redhat.com>
3676
3677 PR target/85978
3678 * config/frv/frv.c (frv_register_move_cost): Add break statements
3679 to avoid falling through to the wrong cases. Tidy code.
3680
3681 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3682
3683 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
3684 For multi-registers modes, test how big each register part is.
3685
3686 2019-09-30 Nick Clifton <nickc@redhat.com>
3687
3688 PR target/59205
3689 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
3690 (TARGET_ASM_SELECT_SECTION): Remove definition.
3691 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
3692
3693 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
3694
3695 * emit-rtl.c (init_raw_REG): New function.
3696 (gen_raw_REG): Use init_raw_REG.
3697 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
3698 macros.
3699 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
3700 * rtl.h (rtx_init): New function.
3701 (rtx_alloca): New function.
3702 (init_raw_REG): New function.
3703 (alloca_raw_REG): New macro.
3704
3705 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
3706
3707 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
3708 (pcrel_local_address): Replace pcrel_address predicate, use the
3709 new function address_to_insn_form.
3710 (pcrel_external_address): Replace with new implementation using
3711 address_to_insn_form..
3712 (prefixed_mem_operand): Delete predicate which is now unused.
3713 (pcrel_external_mem_operand): Delete predicate which is now
3714 unused.
3715 * config/rs6000/rs6000-protos.h (enum insn_form): New
3716 enumeration.
3717 (enum non_prefixed_form): New enumeration.
3718 (address_to_insn_form): New declaration.
3719 (prefixed_load_p): New declaration.
3720 (prefixed_store_p): New declaration.
3721 (prefixed_paddi_p): New declaration.
3722 (rs6000_asm_output_opcode): New declaration.
3723 (rs6000_final_prescan_insn): Move declaration and update calling
3724 signature.
3725 (address_is_prefixed): New helper inline function.
3726 * config/rs6000/rs6000.c(print_operand_address): Check for either
3727 PC-relative local symbols or PC-relative external symbols.
3728 (rs6000_emit_move): Support loading PC-relative addresses.
3729 (mode_supports_prefixed_address_p): Delete, no longer used.
3730 (rs6000_prefixed_address_mode_p): Delete, no longer used.
3731 (address_to_insn_form): New function to decode an address format.
3732 (reg_to_non_prefixed): New function to identify what the
3733 non-prefixed memory instruction format is for a register.
3734 (prefixed_load_p): New function to identify prefixed loads.
3735 (prefixed_store_p): New function to identify prefixed stores.
3736 (prefixed_paddi_p): New function to identify prefixed load
3737 immediates.
3738 (next_insn_prefixed_p): New static state variable.
3739 (rs6000_final_prescan_insn): New function to determine if an insn
3740 uses a prefixed instruction.
3741 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
3742 prefixed instruction.
3743 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
3744 (ASM_OUTPUT_OPCODE): New target hook.
3745 * config/rs6000/rs6000.md (prefixed): New insn attribute for
3746 prefixed instructions.
3747 (prefixed_length): New insn attribute for the size of prefixed
3748 instructions.
3749 (non_prefixed_length): New insn attribute for the size of
3750 non-prefixed instructions.
3751 (pcrel_local_addr): New insn to load up a local PC-relative
3752 address.
3753 (pcrel_extern_addr): New insn to load up an external PC-relative
3754 address.
3755 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
3756 GPR and loading a 128-bit floating point type to a GPR.
3757
3758 2019-09-30 Richard Biener <rguenther@suse.de>
3759
3760 * gimple.c (gimple_get_lhs): For PHIs return the result.
3761 * tree-vectorizer.h (vectorizable_live_operation): Also get the
3762 SLP instance as argument.
3763 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
3764 double-reduction PHIs with vectorizable_lc_phi.
3765 (vect_analyze_loop_operations): Adjust.
3766 (vect_create_epilog_for_reduction): Remove all code not dealing
3767 with reduction LC PHI or epilogue generation.
3768 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
3769 for live stmts of reductions.
3770 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
3771 do not handle defs that are not vect_internal_def.
3772 (can_vectorize_live_stmts): Adjust.
3773 (vect_analyze_stmt): When the vectorized stmt defined a value
3774 used on backedges adjust the backedge uses of vectorized PHIs.
3775
3776 2019-09-30 Martin Jambor <mjambor@suse.cz>
3777
3778 PR ipa/91853
3779 * tree-inline.c (force_value_to_type): New function.
3780 (setup_one_parameter): Use force_value_to_type to convert type.
3781 * tree-inline.c (force_value_to_type): Declare.
3782 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
3783 with register type mismatches.
3784
3785 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
3786
3787 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
3788 32-bit PowerPC.
3789 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
3790 * config/rs6000/t-freebsd64: Make use of the above define and build
3791 the 32-bit libraries with secure-plt.
3792
3793 2019-09-30 Jakub Jelinek <jakub@redhat.com>
3794
3795 PR target/91931
3796 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
3797 gen_int_mode instead of GEN_INT.
3798
3799 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
3800
3801 * config/darwin.c (gen_macho_low): Amend to include the mode
3802 argument.
3803 (machopic_indirect_data_reference): Amend gen_macho_low call
3804 to include mode argument
3805 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
3806 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
3807 the macho_high expander and two define_insn entries.
3808
3809 2019-09-29 Jakub Jelinek <jakub@redhat.com>
3810
3811 PR bootstrap/90543
3812 * optc-save-gen.awk: Fix up printing string option differences.
3813
3814 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
3815
3816 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
3817 vec_perm cost to 1 for non-Power7 VSX architectures.
3818
3819 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
3820
3821 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
3822 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
3823 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
3824
3825 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
3826
3827 * config/darwin.c (gen_macho_high): Amend to include the mode
3828 argument.
3829 (machopic_indirect_data_reference): Amend gen_macho_high call
3830 to include mode argument.
3831 (machopic_legitimize_pic_address): Likewise.
3832 * config/rs6000/rs6000.c (rs6000_legitimize_address):
3833 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
3834 the macho_high expander and two define_insn entries.
3835
3836 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
3837
3838 PR target/86805
3839 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
3840
3841 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
3842
3843 PR target/80672
3844 * config/sh/sh.c (parse_validate_atomic_model_option): Use
3845 std::string::compare instead of std::string::find.
3846
3847 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
3848
3849 * configure: Regenerate.
3850
3851 2019-09-27 Jakub Jelinek <jakub@redhat.com>
3852
3853 PR middle-end/91920
3854 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
3855 variables as shared.
3856
3857 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
3858
3859 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
3860 replaces the expander and two define_insn entries.
3861 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
3862 call.
3863 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
3864
3865 2019-09-27 David Malcolm <dmalcolm@redhat.com>
3866
3867 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
3868 (fibonacci_heap::nodes): Likewise.
3869 (fibonacci_heap::min_key): Likewise.
3870 (fibonacci_heap::min): Likewise.
3871
3872 2019-09-27 David Malcolm <dmalcolm@redhat.com>
3873
3874 * cgraph.c (cgraph_node::get_fun): Make const.
3875 * cgraph.h (cgraph_node::get_fun): Likewise.
3876
3877 2019-09-27 Jakub Jelinek <jakub@redhat.com>
3878
3879 PR target/91919
3880 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
3881 of SImode MULT.
3882
3883 2019-09-27 Richard Biener <rguenther@suse.de>
3884
3885 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
3886 (STMT_VINFO_REDUC_FN): Likewise.
3887 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3888 STMT_VINFO_REDUC_FN.
3889 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
3890 for condition reductions.
3891 (vect_create_epilog_for_reduction): Compute all required state
3892 from the stmt to be vectorized.
3893 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
3894 invocation and remove then dead code. For single def-use chains
3895 record only a single vector stmt.
3896
3897 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
3898
3899 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
3900 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
3901 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
3902 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
3903 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
3904 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
3905 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
3906 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
3907 (aarch64_general_builtin_rsqrt): Declare.
3908 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
3909 New function.
3910 (aarch64_mangle_builtin_type): Rename to...
3911 (aarch64_general_mangle_builtin_type): ...this.
3912 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
3913 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
3914 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
3915 aarch64_general_add_builtin instead of add_builtin_function.
3916 (aarch64_init_builtins): Rename to...
3917 (aarch64_general_init_builtins): ...this. Use
3918 aarch64_general_add_builtin instead of add_builtin_function.
3919 (aarch64_builtin_decl): Rename to...
3920 (aarch64_general_builtin_decl): ...this and remove the unused
3921 arguments.
3922 (aarch64_expand_builtin): Rename to...
3923 (aarch64_general_expand_builtin): ...this and remove the unused
3924 arguments.
3925 (aarch64_builtin_rsqrt): Rename to...
3926 (aarch64_general_builtin_rsqrt): ...this.
3927 (aarch64_fold_builtin): Rename to...
3928 (aarch64_general_fold_builtin): ...this. Take the function subcode
3929 and return type as arguments. Remove the "ignored" argument.
3930 (aarch64_gimple_fold_builtin): Rename to...
3931 (aarch64_general_gimple_fold_builtin): ...this. Take the function
3932 subcode and gcall as arguments, and return the new function call.
3933 * config/aarch64/aarch64.c (aarch64_init_builtins)
3934 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
3935 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
3936 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
3937 instead of aarch64_builtin_rsqrt.
3938 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
3939 instead of aarch64_mangle_builtin_type.
3940
3941 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
3942
3943 * target.def (check_builtin_call): New target hook.
3944 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
3945 * doc/tm.texi: Regenerate.
3946
3947 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
3948
3949 PR tree-optimization/91909
3950 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
3951 reduc_index parameter. When handling COND_REDUCTION, make sure
3952 that the reduction phi operand is in the correct arm of the
3953 VEC_COND_EXPR.
3954 (vectorizable_reduction): Pass reduc_index to the above.
3955
3956 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
3957
3958 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
3959 New combine pattern.
3960
3961 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
3962
3963 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
3964 loop instruction into new basic block before the loop when basic
3965 block that precedes the loop is empty.
3966
3967 2019-09-26 Jakub Jelinek <jakub@redhat.com>
3968
3969 * function.c (gimplify_parameters): Use build_clobber function.
3970 * tree-ssa.c (execute_update_addresses_taken): Likewise.
3971 * tree-inline.c (expand_call_inline): Likewise.
3972 * tree-sra.c (clobber_subtree): Likewise.
3973 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
3974 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
3975 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
3976 lower_omp_target): Likewise.
3977 * omp-expand.c (expand_omp_for_generic): Likewise.
3978 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
3979
3980 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
3981
3982 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
3983 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
3984 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
3985 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
3986 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
3987 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
3988 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
3989 LD_ELEMREV_V16QI): Use the PURE attribute.
3990
3991 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
3992
3993 * config/rs6000/darwin.md: Replace the expanders for
3994 load_macho_picbase and reload_macho_picbase with use of '@'
3995 and <mode> in their respective define_insns.
3996 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
3997 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
3998 Pmode to gen_load_macho_picbase.
3999 * config/rs6000/rs6000.md: Likewise.
4000
4001 2019-09-25 Richard Biener <rguenther@suse.de>
4002
4003 PR tree-optimization/91896
4004 * tree-vect-loop.c (vectorizable_reduction): The single
4005 def-use cycle optimization cannot apply when there's more
4006 than one pattern stmt involved.
4007
4008 2019-09-26 Richard Biener <rguenther@suse.de>
4009
4010 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
4011 loop-closed PHIs that are vect_internal_def.
4012 (vect_create_epilog_for_reduction): Exit early for nested cycles.
4013 Simplify.
4014 (vectorizable_lc_phi): New.
4015 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
4016 (vect_transform_stmt): Likewise.
4017 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
4018 (vectorizable_lc_phi): Declare.
4019
4020 2019-09-26 Richard Biener <rguenther@suse.de>
4021
4022 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
4023 vectorizable_reduction for vect_double_reduction_def.
4024 (vect_transform_loop): Likewise.
4025 (vect_create_epilog_for_reduction): Move double-reduction
4026 PHI creation and preheader argument setting of PHIs ...
4027 (vectorizable_reduction): ... here. Also process
4028 vect_double_reduction_def PHIs, creating the vectorized
4029 PHI nodes, remembering the scalar adjustment computed for
4030 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
4031 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
4032 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
4033 Initialize STMT_VINFO_REDUC_CODE.
4034 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
4035 (_stmt_vec_info::reduc_code): Likewise.
4036 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
4037 (STMT_VINFO_REDUC_CODE): Likewise.
4038
4039 2019-09-26 Matt Turner <mattst88@gmail.com>
4040
4041 PR driver/69471
4042 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
4043 (mtune=): Add Negative(mtune=).
4044 (mcpu=): Add Negative(mcpu=).
4045 * config/arm/arm.opt: Likewise.
4046
4047 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4048
4049 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
4050 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
4051 Define.
4052 * config/arm/arm_acle.h: Define builtins for the above.
4053 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
4054 (simd32_op): Handle the above.
4055 * config/arm/unspecs.md: Define unspecs for the above.
4056
4057 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4058
4059 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
4060 (arm_<sup>xtb16): Likewise.
4061 (arm_usada8): Likewise.
4062 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
4063 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
4064 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
4065 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
4066 __sxtb16, __uxtab16, __uxtb16): Define.
4067 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4068 * config/arm/unspecs.md: Define unspecs for the above.
4069 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
4070 (USXTB16): Likewise.
4071 (simd32_op): New int_attribute.
4072 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
4073 * doc/sourcebuild.exp (arm_simd32_ok): Document.
4074
4075 2019-09-26 Martin Jambor <mjambor@suse.cz>
4076
4077 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
4078 internal_error.
4079
4080 2019-09-26 Martin Jambor <mjambor@suse.cz>
4081
4082 * ipa-sra.c (process_scan_results): Fix continue condition.
4083
4084 2019-09-26 Martin Liska <mliska@suse.cz>
4085
4086 PR tree-optimization/91885
4087 * tree-vectorizer.c (try_vectorize_loop_1): Add
4088 TODO_update_ssa_only_virtuals similarly to what slp pass does.
4089
4090 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
4091
4092 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
4093 aarch64_plus_immediate rather than aarch64_uimm12_shift
4094 to test for valid PLUS immediates.
4095
4096 2019-09-25 Martin Jambor <mjambor@suse.cz>
4097
4098 * tree-sra.c (no_accesses_p): Remove.
4099 (no_accesses_representant): Likewise.
4100
4101 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4102
4103 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
4104 consistenly.
4105 (vaba_s16): Likewise.
4106 (vaba_s32): Likewise.
4107 (vaba_u8): Likewise.
4108 (vaba_u16): Likewise.
4109 (vaba_u32): Likewise.
4110 (vabal_high_s8): Likewise.
4111 (vabal_high_s16): Likewise.
4112 (vabal_high_s32): Likewise.
4113 (vabal_high_u8): Likewise.
4114 (vabal_high_u16): Likewise.
4115 (vabal_high_u32): Likewise.
4116 (vabal_s8): Likewise.
4117 (vabal_s16): Likewise.
4118 (vabal_s32): Likewise.
4119 (vabal_u8): Likewise.
4120 (vabal_u16): Likewise.
4121 (vabal_u32): Likewise.
4122 (vabaq_s8): Likewise.
4123 (vabaq_s16): Likewise.
4124 (vabaq_s32): Likewise.
4125 (vabaq_u8): Likewise.
4126 (vabaq_u16): Likewise.
4127 (vabaq_u32): Likewise.
4128 (vabd_s8): Likewise.
4129 (vabd_s16): Likewise.
4130 (vabd_s32): Likewise.
4131 (vabd_u8): Likewise.
4132 (vabd_u16): Likewise.
4133 (vabd_u32): Likewise.
4134 (vabdl_high_s8): Likewise.
4135 (vabdl_high_s16): Likewise.
4136 (vabdl_high_s32): Likewise.
4137 (vabdl_high_u8): Likewise.
4138 (vabdl_high_u16): Likewise.
4139 (vabdl_high_u32): Likewise.
4140 (vabdl_s8): Likewise.
4141 (vabdl_s16): Likewise.
4142 (vabdl_s32): Likewise.
4143 (vabdl_u8): Likewise.
4144 (vabdl_u16): Likewise.
4145 (vabdl_u32): Likewise.
4146 (vabdq_s8): Likewise.
4147 (vabdq_s16): Likewise.
4148 (vabdq_s32): Likewise.
4149 (vabdq_u8): Likewise.
4150 (vabdq_u16): Likewise.
4151 (vabdq_u32): Likewise.
4152 (vaddlv_s8): Likewise.
4153 (vaddlv_s16): Likewise.
4154 (vaddlv_u8): Likewise.
4155 (vaddlv_u16): Likewise.
4156 (vaddlvq_s8): Likewise.
4157 (vaddlvq_s16): Likewise.
4158 (vaddlvq_s32): Likewise.
4159 (vaddlvq_u8): Likewise.
4160 (vaddlvq_u16): Likewise.
4161 (vaddlvq_u32): Likewise.
4162 (vcvtx_f32_f64): Likewise.
4163 (vcvtx_high_f32_f64): Likewise.
4164 (vcvtxd_f32_f64): Likewise.
4165 (vmla_n_f32): Likewise.
4166 (vmla_n_s16): Likewise.
4167 (vmla_n_s32): Likewise.
4168 (vmla_n_u16): Likewise.
4169 (vmla_n_u32): Likewise.
4170 (vmla_s8): Likewise.
4171 (vmla_s16): Likewise.
4172 (vmla_s32): Likewise.
4173 (vmla_u8): Likewise.
4174 (vmla_u16): Likewise.
4175 (vmla_u32): Likewise.
4176 (vmlal_high_n_s16): Likewise.
4177 (vmlal_high_n_s32): Likewise.
4178 (vmlal_high_n_u16): Likewise.
4179 (vmlal_high_n_u32): Likewise.
4180 (vmlal_high_s8): Likewise.
4181 (vmlal_high_s16): Likewise.
4182 (vmlal_high_s32): Likewise.
4183 (vmlal_high_u8): Likewise.
4184 (vmlal_high_u16): Likewise.
4185 (vmlal_high_u32): Likewise.
4186 (vmlal_n_s16): Likewise.
4187 (vmlal_n_s32): Likewise.
4188 (vmlal_n_u16): Likewise.
4189 (vmlal_n_u32): Likewise.
4190 (vmlal_s8): Likewise.
4191 (vmlal_s16): Likewise.
4192 (vmlal_s32): Likewise.
4193 (vmlal_u8): Likewise.
4194 (vmlal_u16): Likewise.
4195 (vmlal_u32): Likewise.
4196 (vmlaq_n_f32): Likewise.
4197 (vmlaq_n_s16): Likewise.
4198 (vmlaq_n_s32): Likewise.
4199 (vmlaq_n_u16): Likewise.
4200 (vmlaq_n_u32): Likewise.
4201 (vmlaq_s8): Likewise.
4202 (vmlaq_s16): Likewise.
4203 (vmlaq_s32): Likewise.
4204 (vmlaq_u8): Likewise.
4205 (vmlaq_u16): Likewise.
4206 (vmlaq_u32): Likewise.
4207 (vmls_n_f32): Likewise.
4208 (vmls_n_s16): Likewise.
4209 (vmls_n_s32): Likewise.
4210 (vmls_n_u16): Likewise.
4211 (vmls_n_u32): Likewise.
4212 (vmls_s8): Likewise.
4213 (vmls_s16): Likewise.
4214 (vmls_s32): Likewise.
4215 (vmls_u8): Likewise.
4216 (vmls_u16): Likewise.
4217 (vmls_u32): Likewise.
4218 (vmlsl_high_n_s16): Likewise.
4219 (vmlsl_high_n_s32): Likewise.
4220 (vmlsl_high_n_u16): Likewise.
4221 (vmlsl_high_n_u32): Likewise.
4222 (vmlsl_high_s8): Likewise.
4223 (vmlsl_high_s16): Likewise.
4224 (vmlsl_high_s32): Likewise.
4225 (vmlsl_high_u8): Likewise.
4226 (vmlsl_high_u16): Likewise.
4227 (vmlsl_high_u32): Likewise.
4228 (vmlsl_n_s16): Likewise.
4229 (vmlsl_n_s32): Likewise.
4230 (vmlsl_n_u16): Likewise.
4231 (vmlsl_n_u32): Likewise.
4232 (vmlsl_s8): Likewise.
4233 (vmlsl_s16): Likewise.
4234 (vmlsl_s32): Likewise.
4235 (vmlsl_u8): Likewise.
4236 (vmlsl_u16): Likewise.
4237 (vmlsl_u32): Likewise.
4238 (vmlsq_n_f32): Likewise.
4239 (vmlsq_n_s16): Likewise.
4240 (vmlsq_n_s32): Likewise.
4241 (vmlsq_n_u16): Likewise.
4242 (vmlsq_n_u32): Likewise.
4243 (vmlsq_s8): Likewise.
4244 (vmlsq_s16): Likewise.
4245 (vmlsq_s32): Likewise.
4246 (vmlsq_u8): Likewise.
4247 (vmlsq_u16): Likewise.
4248 (vmlsq_u32): Likewise.
4249 (vmovl_high_s8): Likewise.
4250 (vmovl_high_s16): Likewise.
4251 (vmovl_high_s32): Likewise.
4252 (vmovl_high_u8): Likewise.
4253 (vmovl_high_u16): Likewise.
4254 (vmovl_high_u32): Likewise.
4255 (vmovl_s8): Likewise.
4256 (vmovl_s16): Likewise.
4257 (vmovl_s32): Likewise.
4258 (vmovl_u8): Likewise.
4259 (vmovl_u16): Likewise.
4260 (vmovl_u32): Likewise.
4261 (vmovn_high_s16): Likewise.
4262 (vmovn_high_s32): Likewise.
4263 (vmovn_high_s64): Likewise.
4264 (vmovn_high_u16): Likewise.
4265 (vmovn_high_u32): Likewise.
4266 (vmovn_high_u64): Likewise.
4267 (vmovn_s16): Likewise.
4268 (vmovn_s32): Likewise.
4269 (vmovn_s64): Likewise.
4270 (vmovn_u16): Likewise.
4271 (vmovn_u32): Likewise.
4272 (vmovn_u64): Likewise.
4273 (vmull_high_n_s16): Likewise.
4274 (vmull_high_n_s32): Likewise.
4275 (vmull_high_n_u16): Likewise.
4276 (vmull_high_n_u32): Likewise.
4277 (vmull_high_p8): Likewise.
4278 (vmull_high_s8): Likewise.
4279 (vmull_high_s16): Likewise.
4280 (vmull_high_s32): Likewise.
4281 (vmull_high_u8): Likewise.
4282 (vmull_high_u16): Likewise.
4283 (vmull_high_u32): Likewise.
4284 (vmull_n_s16): Likewise.
4285 (vmull_n_s32): Likewise.
4286 (vmull_n_u16): Likewise.
4287 (vmull_n_u32): Likewise.
4288 (vmull_p8): Likewise.
4289 (vmull_s8): Likewise.
4290 (vmull_s16): Likewise.
4291 (vmull_s32): Likewise.
4292 (vmull_u8): Likewise.
4293 (vmull_u16): Likewise.
4294 (vmull_u32): Likewise.
4295 (vpadal_s8): Likewise.
4296 (vpadal_s16): Likewise.
4297 (vpadal_s32): Likewise.
4298 (vpadal_u8): Likewise.
4299 (vpadal_u16): Likewise.
4300 (vpadal_u32): Likewise.
4301 (vpadalq_s8): Likewise.
4302 (vpadalq_s16): Likewise.
4303 (vpadalq_s32): Likewise.
4304 (vpadalq_u8): Likewise.
4305 (vpadalq_u16): Likewise.
4306 (vpadalq_u32): Likewise.
4307 (vpaddl_s8): Likewise.
4308 (vpaddl_s16): Likewise.
4309 (vpaddl_s32): Likewise.
4310 (vpaddl_u8): Likewise.
4311 (vpaddl_u16): Likewise.
4312 (vpaddl_u32): Likewise.
4313 (vpaddlq_s8): Likewise.
4314 (vpaddlq_s16): Likewise.
4315 (vpaddlq_s32): Likewise.
4316 (vpaddlq_u8): Likewise.
4317 (vpaddlq_u16): Likewise.
4318 (vpaddlq_u32): Likewise.
4319 (vpaddq_s8): Likewise.
4320 (vpaddq_s16): Likewise.
4321 (vpaddq_s32): Likewise.
4322 (vpaddq_s64): Likewise.
4323 (vpaddq_u8): Likewise.
4324 (vpaddq_u16): Likewise.
4325 (vpaddq_u32): Likewise.
4326 (vpaddq_u64): Likewise.
4327 (vqdmulh_n_s16): Likewise.
4328 (vqdmulh_n_s32): Likewise.
4329 (vqdmulhq_n_s16): Likewise.
4330 (vqdmulhq_n_s32): Likewise.
4331 (vqmovn_high_s16): Likewise.
4332 (vqmovn_high_s32): Likewise.
4333 (vqmovn_high_s64): Likewise.
4334 (vqmovn_high_u16): Likewise.
4335 (vqmovn_high_u32): Likewise.
4336 (vqmovn_high_u64): Likewise.
4337 (vqmovun_high_s16): Likewise.
4338 (vqmovun_high_s32): Likewise.
4339 (vqmovun_high_s64): Likewise.
4340 (vqrdmulh_n_s16): Likewise.
4341 (vqrdmulh_n_s32): Likewise.
4342 (vqrdmulhq_n_s16): Likewise.
4343 (vqrdmulhq_n_s32): Likewise.
4344 (vrsqrte_u32): Likewise.
4345 (vrsqrteq_u32): Likewise.
4346 (vtst_p8): Likewise.
4347 (vtst_p16): Likewise.
4348 (vtst_p64): Likewise.
4349 (vtstq_p8): Likewise.
4350 (vtstq_p16): Likewise.
4351 (vtstq_p64): Likewise.
4352 (vaddlv_s32): Likewise.
4353 (vaddlv_u32): Likewise.
4354 (vqtbl1_p8): Likewise.
4355 (vqtbl1_s8): Likewise.
4356 (vqtbl1_u8): Likewise.
4357 (vqtbl1q_p8): Likewise.
4358 (vqtbl1q_s8): Likewise.
4359 (vqtbl1q_u8): Likewise.
4360 (vqtbx1_s8): Likewise.
4361 (vqtbx1_u8): Likewise.
4362 (vqtbx1_p8): Likewise.
4363 (vqtbx1q_s8): Likewise.
4364 (vqtbx1q_u8): Likewise.
4365 (vqtbx1q_p8): Likewise.
4366 (vtbl1_s8): Likewise.
4367 (vtbl1_u8): Likewise.
4368 (vtbl1_p8): Likewise.
4369 (vtbl2_s8): Likewise.
4370 (vtbl2_u8): Likewise.
4371 (vtbl2_p8): Likewise.
4372 (vtbl3_s8): Likewise.
4373 (vtbl3_u8): Likewise.
4374 (vtbl3_p8): Likewise.
4375 (vtbl4_s8): Likewise.
4376 (vtbl4_u8): Likewise.
4377 (vtbl4_p8): Likewise.
4378 (vtbx2_s8): Likewise.
4379 (vtbx2_u8): Likewise.
4380 (vtbx2_p8): Likewise.
4381 (vld1_f32): Likewise.
4382 (vld1_f64): Likewise.
4383 (vld1_p8): Likewise.
4384 (vld1_p16): Likewise.
4385 (vld1_p64): Likewise.
4386 (vld1_s8): Likewise.
4387 (vld1_s16): Likewise.
4388 (vld1_s32): Likewise.
4389 (vld1_s64): Likewise.
4390 (vld1_u8): Likewise.
4391 (vld1_u16): Likewise.
4392 (vld1_u32): Likewise.
4393 (vld1_u64): Likewise.
4394 (vld1q_f32): Likewise.
4395 (vld1q_f64): Likewise.
4396 (vld1q_p8): Likewise.
4397 (vld1q_p16): Likewise.
4398 (vld1q_p64): Likewise.
4399 (vld1q_s8): Likewise.
4400 (vld1q_s16): Likewise.
4401 (vld1q_s32): Likewise.
4402 (vld1q_s64): Likewise.
4403 (vld1q_u8): Likewise.
4404 (vld1q_u16): Likewise.
4405 (vld1q_u32): Likewise.
4406 (vld1q_u64): Likewise.
4407 (vpmax_s8): Likewise.
4408 (vpmax_s16): Likewise.
4409 (vpmax_s32): Likewise.
4410 (vpmax_u8): Likewise.
4411 (vpmax_u16): Likewise.
4412 (vpmax_u32): Likewise.
4413 (vpmaxq_s8): Likewise.
4414 (vpmaxq_s16): Likewise.
4415 (vpmaxq_s32): Likewise.
4416 (vpmaxq_u8): Likewise.
4417 (vpmaxq_u16): Likewise.
4418 (vpmaxq_u32): Likewise.
4419 (vpmax_f32): Likewise.
4420 (vpmaxq_f32): Likewise.
4421 (vpmaxq_f64): Likewise.
4422 (vpmaxqd_f64): Likewise.
4423 (vpmaxs_f32): Likewise.
4424 (vpmaxnm_f32): Likewise.
4425 (vpmaxnmq_f32): Likewise.
4426 (vpmaxnmq_f64): Likewise.
4427 (vpmaxnmqd_f64): Likewise.
4428 (vpmaxnms_f32): Likewise.
4429 (vpmin_s8): Likewise.
4430 (vpmin_s16): Likewise.
4431 (vpmin_s32): Likewise.
4432 (vpmin_u8): Likewise.
4433 (vpmin_u16): Likewise.
4434 (vpmin_u32): Likewise.
4435 (vpminq_s8): Likewise.
4436 (vpminq_s16): Likewise.
4437 (vpminq_s32): Likewise.
4438 (vpminq_u8): Likewise.
4439 (vpminq_u16): Likewise.
4440 (vpminq_u32): Likewise.
4441 (vpmin_f32): Likewise.
4442 (vpminq_f32): Likewise.
4443 (vpminq_f64): Likewise.
4444 (vpminqd_f64): Likewise.
4445 (vpmins_f32): Likewise.
4446 (vpminnm_f32): Likewise.
4447 (vpminnmq_f32): Likewise.
4448 (vpminnmq_f64): Likewise.
4449 (vpminnmqd_f64): Likewise.
4450 (vpminnms_f32): Likewise.
4451 (vmla_f32): Likewise.
4452 (vmlaq_f32): Likewise.
4453 (vmlaq_f64): Likewise.
4454 (vmls_f32): Likewise.
4455 (vmlsq_f32): Likewise.
4456 (vmlsq_f64): Likewise.
4457 (vqtbl2_s8): Likewise.
4458 (vqtbl2_u8): Likewise.
4459 (vqtbl2_p8): Likewise.
4460 (vqtbl2q_s8): Likewise.
4461 (vqtbl2q_u8): Likewise.
4462 (vqtbl2q_p8): Likewise.
4463 (vqtbl3_s8): Likewise.
4464 (vqtbl3_u8): Likewise.
4465 (vqtbl3_p8): Likewise.
4466 (vqtbl3q_s8): Likewise.
4467 (vqtbl3q_u8): Likewise.
4468 (vqtbl3q_p8): Likewise.
4469 (vqtbl4_s8): Likewise.
4470 (vqtbl4_u8): Likewise.
4471 (vqtbl4_p8): Likewise.
4472 (vqtbl4q_s8): Likewise.
4473 (vqtbl4q_u8): Likewise.
4474 (vqtbl4q_p8): Likewise.
4475 (vqtbx2_s8): Likewise.
4476 (vqtbx2_u8): Likewise.
4477 (vqtbx2_p8): Likewise.
4478 (vqtbx2q_s8): Likewise.
4479 (vqtbx2q_u8): Likewise.
4480 (vqtbx2q_p8): Likewise.
4481 (vqtbx3_s8): Likewise.
4482 (vqtbx3_u8): Likewise.
4483 (vqtbx3_p8): Likewise.
4484 (vqtbx3q_s8): Likewise.
4485 (vqtbx3q_u8): Likewise.
4486 (vqtbx3q_p8): Likewise.
4487 (vqtbx4_s8): Likewise.
4488 (vqtbx4_u8): Likewise.
4489 (vqtbx4_p8): Likewise.
4490 (vqtbx4q_s8): Likewise.
4491 (vqtbx4q_u8): Likewise.
4492 (vqtbx4q_p8): Likewise.
4493 (vrev16_p8): Likewise.
4494 (vrev16_s8): Likewise.
4495 (vrev16_u8): Likewise.
4496 (vrev16q_p8): Likewise.
4497 (vrev16q_s8): Likewise.
4498 (vrev16q_u8): Likewise.
4499 (vrev32_p8): Likewise.
4500 (vrev32_p16): Likewise.
4501 (vrev32_s8): Likewise.
4502 (vrev32_s16): Likewise.
4503 (vrev32_u8): Likewise.
4504 (vrev32_u16): Likewise.
4505 (vrev32q_p8): Likewise.
4506 (vrev32q_p16): Likewise.
4507 (vrev32q_s8): Likewise.
4508 (vrev32q_s16): Likewise.
4509 (vrev32q_u8): Likewise.
4510 (vrev32q_u16): Likewise.
4511 (vrev64_f32): Likewise.
4512 (vrev64_p8): Likewise.
4513 (vrev64_p16): Likewise.
4514 (vrev64_s8): Likewise.
4515 (vrev64_s16): Likewise.
4516 (vrev64_s32): Likewise.
4517 (vrev64_u8): Likewise.
4518 (vrev64_u16): Likewise.
4519 (vrev64_u32): Likewise.
4520 (vrev64q_f32): Likewise.
4521 (vrev64q_p8): Likewise.
4522 (vrev64q_p16): Likewise.
4523 (vrev64q_s8): Likewise.
4524 (vrev64q_s16): Likewise.
4525 (vrev64q_s32): Likewise.
4526 (vrev64q_u8): Likewise.
4527 (vrev64q_u16): Likewise.
4528 (vrev64q_u32): Likewise.
4529 (vsha1cq_u32): Likewise.
4530 (vsha1mq_u32): Likewise.
4531 (vsha1pq_u32): Likewise.
4532 (vsha1h_u32): Likewise.
4533 (vsha1su0q_u32): Likewise.
4534 (vsha1su1q_u32): Likewise.
4535 (vsha256hq_u32): Likewise.
4536 (vsha256h2q_u32): Likewise.
4537 (vsha256su0q_u32): Likewise.
4538 (vsha256su1q_u32): Likewise.
4539 (vmull_p64): Likewise.
4540 (vmull_high_p64): Likewise.
4541 (vsqrt_f32): Likewise.
4542 (vsqrtq_f32): Likewise.
4543 (vsqrt_f64): Likewise.
4544 (vsqrtq_f64): Likewise.
4545 (vst1_f32): Likewise.
4546 (vst1_f64): Likewise.
4547 (vst1_p8): Likewise.
4548 (vst1_p16): Likewise.
4549 (vst1_p64): Likewise.
4550 (vst1_s8): Likewise.
4551 (vst1_s16): Likewise.
4552 (vst1_s32): Likewise.
4553 (vst1_s64): Likewise.
4554 (vst1_u8): Likewise.
4555 (vst1_u16): Likewise.
4556 (vst1_u32): Likewise.
4557 (vst1_u64): Likewise.
4558 (vst1q_f32): Likewise.
4559 (vst1q_f64): Likewise.
4560 (vst1q_p8): Likewise.
4561 (vst1q_p16): Likewise.
4562 (vst1q_p64): Likewise.
4563 (vst1q_s8): Likewise.
4564 (vst1q_s16): Likewise.
4565 (vst1q_s32): Likewise.
4566 (vst1q_s64): Likewise.
4567 (vst1q_u8): Likewise.
4568 (vst1q_u16): Likewise.
4569 (vst1q_u32): Likewise.
4570 (vst1q_u64): Likewise.
4571 (vst1_s64_x2): Likewise.
4572 (vst1_u64_x2): Likewise.
4573 (vst1_f64_x2): Likewise.
4574 (vst1_s8_x2): Likewise.
4575 (vst1_p8_x2): Likewise.
4576 (vst1_s16_x2): Likewise.
4577 (vst1_p16_x2): Likewise.
4578 (vst1_s32_x2): Likewise.
4579 (vst1_u8_x2): Likewise.
4580 (vst1_u16_x2): Likewise.
4581 (vst1_u32_x2): Likewise.
4582 (vst1_f16_x2): Likewise.
4583 (vst1_f32_x2): Likewise.
4584 (vst1_p64_x2): Likewise.
4585 (vst1q_s8_x2): Likewise.
4586 (vst1q_p8_x2): Likewise.
4587 (vst1q_s16_x2): Likewise.
4588 (vst1q_p16_x2): Likewise.
4589 (vst1q_s32_x2): Likewise.
4590 (vst1q_s64_x2): Likewise.
4591 (vst1q_u8_x2): Likewise.
4592 (vst1q_u16_x2): Likewise.
4593 (vst1q_u32_x2): Likewise.
4594 (vst1q_u64_x2): Likewise.
4595 (vst1q_f16_x2): Likewise.
4596 (vst1q_f32_x2): Likewise.
4597 (vst1q_f64_x2): Likewise.
4598 (vst1q_p64_x2): Likewise.
4599 (vst1_s64_x3): Likewise.
4600 (vst1_u64_x3): Likewise.
4601 (vst1_f64_x3): Likewise.
4602 (vst1_s8_x3): Likewise.
4603 (vst1_p8_x3): Likewise.
4604 (vst1_s16_x3): Likewise.
4605 (vst1_p16_x3): Likewise.
4606 (vst1_s32_x3): Likewise.
4607 (vst1_u8_x3): Likewise.
4608 (vst1_u16_x3): Likewise.
4609 (vst1_u32_x3): Likewise.
4610 (vst1_f16_x3): Likewise.
4611 (vst1_f32_x3): Likewise.
4612 (vst1_p64_x3): Likewise.
4613 (vst1q_s8_x3): Likewise.
4614 (vst1q_p8_x3): Likewise.
4615 (vst1q_s16_x3): Likewise.
4616 (vst1q_p16_x3): Likewise.
4617 (vst1q_s32_x3): Likewise.
4618 (vst1q_s64_x3): Likewise.
4619 (vst1q_u8_x3): Likewise.
4620 (vst1q_u16_x3): Likewise.
4621 (vst1q_u32_x3): Likewise.
4622 (vst1q_u64_x3): Likewise.
4623 (vst1q_f16_x3): Likewise.
4624 (vst1q_f32_x3): Likewise.
4625 (vst1q_f64_x3): Likewise.
4626 (vst1q_p64_x3): Likewise.
4627 (vst2_s64): Likewise.
4628 (vst2_u64): Likewise.
4629 (vst2_f64): Likewise.
4630 (vst2_s8): Likewise.
4631 (vst2_p8): Likewise.
4632 (vst2_s16): Likewise.
4633 (vst2_p16): Likewise.
4634 (vst2_s32): Likewise.
4635 (vst2_u8): Likewise.
4636 (vst2_u16): Likewise.
4637 (vst2_u32): Likewise.
4638 (vst2_f16): Likewise.
4639 (vst2_f32): Likewise.
4640 (vst2_p64): Likewise.
4641 (vst2q_s8): Likewise.
4642 (vst2q_p8): Likewise.
4643 (vst2q_s16): Likewise.
4644 (vst2q_p16): Likewise.
4645 (vst2q_s32): Likewise.
4646 (vst2q_s64): Likewise.
4647 (vst2q_u8): Likewise.
4648 (vst2q_u16): Likewise.
4649 (vst2q_u32): Likewise.
4650 (vst2q_u64): Likewise.
4651 (vst2q_f16): Likewise.
4652 (vst2q_f32): Likewise.
4653 (vst2q_f64): Likewise.
4654 (vst2q_p64): Likewise.
4655 (vst3_s64): Likewise.
4656 (vst3_u64): Likewise.
4657 (vst3_f64): Likewise.
4658 (vst3_s8): Likewise.
4659 (vst3_p8): Likewise.
4660 (vst3_s16): Likewise.
4661 (vst3_p16): Likewise.
4662 (vst3_s32): Likewise.
4663 (vst3_u8): Likewise.
4664 (vst3_u16): Likewise.
4665 (vst3_u32): Likewise.
4666 (vst3_f16): Likewise.
4667 (vst3_f32): Likewise.
4668 (vst3_p64): Likewise.
4669 (vst3q_s8): Likewise.
4670 (vst3q_p8): Likewise.
4671 (vst3q_s16): Likewise.
4672 (vst3q_p16): Likewise.
4673 (vst3q_s32): Likewise.
4674 (vst3q_s64): Likewise.
4675 (vst3q_u8): Likewise.
4676 (vst3q_u16): Likewise.
4677 (vst3q_u32): Likewise.
4678 (vst3q_u64): Likewise.
4679 (vst3q_f16): Likewise.
4680 (vst3q_f32): Likewise.
4681 (vst3q_f64): Likewise.
4682 (vst3q_p64): Likewise.
4683 (vst4_s64): Likewise.
4684 (vst4_u64): Likewise.
4685 (vst4_f64): Likewise.
4686 (vst4_s8): Likewise.
4687 (vst4_p8): Likewise.
4688 (vst4_s16): Likewise.
4689 (vst4_p16): Likewise.
4690 (vst4_s32): Likewise.
4691 (vst4_u8): Likewise.
4692 (vst4_u16): Likewise.
4693 (vst4_u32): Likewise.
4694 (vst4_f16): Likewise.
4695 (vst4_f32): Likewise.
4696 (vst4_p64): Likewise.
4697 (vst4q_s8): Likewise.
4698 (vst4q_p8): Likewise.
4699 (vst4q_s16): Likewise.
4700 (vst4q_p16): Likewise.
4701 (vst4q_s32): Likewise.
4702 (vst4q_s64): Likewise.
4703 (vst4q_u8): Likewise.
4704 (vst4q_u16): Likewise.
4705 (vst4q_u32): Likewise.
4706 (vst4q_u64): Likewise.
4707 (vst4q_f16): Likewise.
4708 (vst4q_f32): Likewise.
4709 (vst4q_f64): Likewise.
4710 (vst4q_p64): Likewise.
4711 (vtbx4_s8): Likewise.
4712 (vtbx4_u8): Likewise.
4713 (vtbx4_p8): Likewise.
4714 (vtrn_f32): Likewise.
4715 (vtrn_p8): Likewise.
4716 (vtrn_p16): Likewise.
4717 (vtrn_s8): Likewise.
4718 (vtrn_s16): Likewise.
4719 (vtrn_s32): Likewise.
4720 (vtrn_u8): Likewise.
4721 (vtrn_u16): Likewise.
4722 (vtrn_u32): Likewise.
4723 (vtrnq_f32): Likewise.
4724 (vtrnq_p8): Likewise.
4725 (vtrnq_p16): Likewise.
4726 (vtrnq_s8): Likewise.
4727 (vtrnq_s16): Likewise.
4728 (vtrnq_s32): Likewise.
4729 (vtrnq_u8): Likewise.
4730 (vtrnq_u16): Likewise.
4731 (vtrnq_u32): Likewise.
4732 (vrsqrte_f16): Likewise.
4733 (vrsqrteq_f16): Likewise.
4734 (vsqrt_f16): Likewise.
4735 (vsqrtq_f16): Likewise.
4736 (vabd_f16): Likewise.
4737 (vabdq_f16): Likewise.
4738 (vpadd_f16): Likewise.
4739 (vpaddq_f16): Likewise.
4740 (vpmax_f16): Likewise.
4741 (vpmaxq_f16): Likewise.
4742 (vpmaxnm_f16): Likewise.
4743 (vpmaxnmq_f16): Likewise.
4744 (vpmin_f16): Likewise.
4745 (vpminq_f16): Likewise.
4746 (vpminnm_f16): Likewise.
4747 (vpminnmq_f16): Likewise.
4748 (vrsqrts_f16): Likewise.
4749 (vrsqrtsq_f16): Likewise.
4750
4751 2019-09-25 Richard Biener <rguenther@suse.de>
4752
4753 PR tree-optimization/91896
4754 * tree-vect-loop.c (vectorizable_reduction): The single
4755 def-use cycle optimization cannot apply when there's more
4756 than one pattern stmt involved.
4757
4758 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
4759
4760 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
4761 the 'P' mode iterator, replacing the (removed) SI and DI variants.
4762 (reload_macho_picbase_<mode>): Likewise.
4763
4764 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
4765
4766 * config/rs6000/rs6000.md: Move darwin.md include until
4767 after the definition of the mode iterators.
4768
4769 2019-09-23 Martin Sebor <msebor@redhat.com>
4770
4771 PR tree-optimization/91570
4772 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
4773 non-constant minlen, maxlen and maxbound.
4774
4775 2019-09-24 Richard Biener <rguenther@suse.de>
4776
4777 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
4778 Rename to...
4779 (_stmt_vec_info::cond_reduc_code): ... this.
4780 (_stmt_vec_info::induc_cond_initial_val): Add.
4781 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
4782 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
4783 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
4784 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
4785 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
4786 the reduction code.
4787 (vect_create_epilog_for_reduction): Drop special
4788 induction condition reduction params, pass in reduction code
4789 and simplify.
4790 (vectorizable_reduction): Perform condition reduction kind
4791 selection only at analysis time. Adjust passing on state.
4792
4793 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4794
4795 * config/aarch64/aarch64.md (mov<mode>): Don't call
4796 aarch64_split_dimode_const_store on volatile MEM.
4797
4798 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
4799
4800 * config/aarch64/aarch64-option-extensions.def (fp16fml):
4801 Update hwcap string for fp16fml.
4802
4803 2019-09-24 Jakub Jelinek <jakub@redhat.com>
4804
4805 PR middle-end/91866
4806 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
4807 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
4808
4809 2019-09-24 Martin Liska <mliska@suse.cz>
4810
4811 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
4812 instead of if-elseif-elseif-...
4813 * gimple-expr.c (extract_ops_from_tree): Likewise.
4814 * gimple.c (get_gimple_rhs_num_ops): Likewise.
4815 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
4816
4817 2019-09-24 Martin Jambor <mjambor@suse.cz>
4818
4819 PR ipa/91831
4820 * ipa-param-manipulation.c (carry_over_param): Make a method of
4821 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
4822 in case of a context mismatch.
4823 (ipa_param_body_adjustments::common_initialization): Adjust call to
4824 carry_over_param.
4825 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
4826 private method carry_over_param.
4827
4828 2019-09-24 Martin Jambor <mjambor@suse.cz>
4829
4830 PR ipa/91832
4831 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
4832
4833 2019-09-24 Richard Biener <rguenther@suse.de>
4834
4835 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
4836 base.
4837
4838 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4839
4840 * config/arm/t-arm (arm-builtins.o): Add dependency on
4841 arm_acle_builtins.def.
4842
4843 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
4844
4845 PR target/91823
4846 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
4847 canonical CONST_INTs. Use gen_rtvec.
4848
4849 2019-09-23 Richard Biener <rguenther@suse.de>
4850
4851 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
4852 avoid adjusting by + 0 or * 1.
4853 (vect_create_epilog_for_reduction): Get reduction code only
4854 when necessary. Deal with adjustment_def only when necessary.
4855
4856 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
4857
4858 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
4859 memmodel index.
4860
4861 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4862
4863 PR ipa/91835
4864 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
4865 "ipa-sra".
4866
4867 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
4868
4869 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
4870 code. Merge code blocks with common conditionals. Use declared
4871 macro instead of a magic number for PIC level.
4872
4873 2019-09-21 Martin Sebor <msebor@redhat.com>
4874
4875 PR middle-end/91830
4876 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
4877 Simplify computation of the offset of the referenced subobject.
4878
4879 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
4880
4881 * config/darwin.c (machopic_legitimize_pic_address): Check
4882 for lra not reload.
4883
4884 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
4885
4886 * ira-conflicts.c (can_use_same_reg_p): New function.
4887 (process_reg_shuffles): Take an insn parameter. Ignore cases
4888 in which input operand op_num could seemingly never be allocated
4889 to the same register as the destination.
4890 (add_insn_allocno_copies): Update call to process_reg_shuffles.
4891
4892 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
4893
4894 * simplify-rtx.c (neg_const_int): Replace with...
4895 (neg_poly_int_rtx): ...this new function.
4896 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
4897 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
4898 (simplify_plus_minus): Likewise for constant terms here.
4899
4900 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
4901
4902 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
4903 HOST_WIDE_PRINT_UNSIGNED.
4904
4905 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
4906
4907 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
4908 character.
4909
4910 2019-09-20 Maya Rashish <coypu@sdf.org>
4911
4912 PR target/86811
4913 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
4914 Define to speculation_safe_value_not_needed.
4915
4916 2019-09-20 Richard Biener <rguenther@suse.de>
4917 Uros Bizjak <ubizjak@gmail.com>
4918
4919 PR target/91814
4920 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
4921 previous change.
4922 (general_scalar_chain::convert_op): Force not suitable memory
4923 operands to a register.
4924
4925 2019-09-20 Richard Biener <rguenther@suse.de>
4926
4927 PR tree-optimization/91821
4928 * tree-vect-loop.c (check_reduction_path): Check we can compute
4929 reduc_idx.
4930 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
4931 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
4932 operands in canonical order.
4933 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
4934 STMT_VINFO_REDUC_IDX.
4935 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
4936 (STMT_VINFO_REDUC_IDX): Likewise.
4937
4938 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
4939
4940 PR target/91269
4941 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
4942
4943 2019-09-20 Richard Biener <rguenther@suse.de>
4944
4945 PR tree-optimization/91822
4946 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
4947 parameter.
4948 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
4949 for reduc_index in nested cycles, adjust vectorizable_condition
4950 calls.
4951 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
4952 parameter.
4953 (vect_analyze_stmt): Adjust.
4954 (vect_transform_stmt): Likewise.
4955
4956 2019-09-20 Richard Biener <rguenther@suse.de>
4957
4958 PR target/91767
4959 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
4960 Ensure there's a sequence point between allocating the new register
4961 and passing a reference to a reg via regno_reg_rtx.
4962
4963 2019-09-20 Martin Jambor <mjambor@suse.cz>
4964
4965 * coretypes.h (cgraph_edge): Declare.
4966 * ipa-param-manipulation.c: Rewrite.
4967 * ipa-param-manipulation.h: Likewise.
4968 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
4969 (OBJS): Added ipa-sra.o.
4970 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
4971 and ref_p, added fields param_adjustments and performed_splits.
4972 (struct cgraph_clone_info): Remove ags_to_skip and
4973 combined_args_to_skip, new field param_adjustments.
4974 (cgraph_node::create_clone): Changed parameters to use
4975 ipa_param_adjustments.
4976 (cgraph_node::create_virtual_clone): Likewise.
4977 (cgraph_node::create_virtual_clone_with_body): Likewise.
4978 (tree_function_versioning): Likewise.
4979 (cgraph_build_function_type_skip_args): Removed.
4980 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
4981 using ipa_param_adjustments.
4982 (clone_of_p): Likewise.
4983 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
4984 (build_function_decl_skip_args): Likewise.
4985 (duplicate_thunk_for_node): Adjust parameters using
4986 ipa_param_body_adjustments, copy param_adjustments instead of
4987 args_to_skip.
4988 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
4989 (cgraph_node::create_virtual_clone): Likewise.
4990 (cgraph_node::create_version_clone_with_body): Likewise.
4991 (cgraph_materialize_clone): Likewise.
4992 (symbol_table::materialize_all_clones): Likewise.
4993 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
4994 ipa_replace_map check.
4995 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
4996 (initialize_node_lattices): Make aware that some parameters might have
4997 already been removed.
4998 (want_remove_some_param_p): New function.
4999 (create_specialized_node): Convert to using ipa_param_adjustments and
5000 deal with possibly pre-existing adjustments.
5001 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
5002 (output_node_opt_summary): Do not stream removed fields. Stream
5003 parameter adjustments instead of argumetns to skip.
5004 (input_node_opt_summary): Likewise.
5005 (input_node_opt_summary): Likewise.
5006 * lto-section-in.c (lto_section_name): Added ipa-sra section.
5007 * lto-streamer.h (lto_section_type): Likewise.
5008 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
5009 param_body_adjs.
5010 (copy_decl_to_var): Declare.
5011 * tree-inline.c (update_clone_info): Do not remap old_tree.
5012 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
5013 statements, walk all extra generated statements and remap their
5014 operands.
5015 (redirect_all_calls): Add killed SSA names to a hash set.
5016 (remap_ssa_name): Do not remap killed SSA names.
5017 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
5018 half of functionality moved to ipa_param_body_adjustments.
5019 (copy_decl_to_var): Make exported.
5020 (copy_body): Destroy killed_new_ssa_names hash set.
5021 (expand_call_inline): Remap performed splits.
5022 (update_clone_info): Likewise.
5023 (tree_function_versioning): Simplify tree_map processing. Updated to
5024 accept ipa_param_adjustments and use ipa_param_body_adjustments.
5025 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
5026 for the new interface.
5027 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
5028 (simd_clone_compute_base_data_type): Likewise.
5029 (simd_clone_init_simd_arrays): Adjust for the new interface.
5030 (simd_clone_adjust_argument_types): Likewise.
5031 (struct modify_stmt_info): Likewise.
5032 (ipa_simd_modify_stmt_ops): Likewise.
5033 (ipa_simd_modify_function_body): Likewise.
5034 (simd_clone_adjust): Likewise.
5035 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
5036 (type_internals_preclude_sra_p): Make public.
5037 * tree-sra.h: New file.
5038 * ipa-inline-transform.c (save_inline_function_body): Update to
5039 refelct new tree_function_versioning signature.
5040 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
5041 ipa_param_adjustments to get current parameter indices.
5042 (ipcp_modif_dom_walker::before_dom_children): Likewise.
5043 (ipcp_update_bits): Likewise.
5044 (ipcp_update_vr): Likewise.
5045 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
5046 * ipa-sra.c: New file.
5047 * multiple_target.c (create_target_clone): Update to reflet new type
5048 of create_version_clone_with_body.
5049 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
5050 tree_function_versioning.
5051 (modify_function): Update to reflect new type of
5052 tree_function_versioning.
5053 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
5054 * passes.def: Remove old IPA-SRA and add new one.
5055 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
5056 (make_pass_ipa_sra): Declare.
5057 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
5058 ipa_sra_retvalues.
5059 * doc/invoke.texi (ipa-sra-max-replacements): New.
5060
5061 2019-09-19 Martin Sebor <msebor@redhat.com>
5062
5063 PR middle-end/91631
5064 * builtins.c (component_size): Correct trailing array computation,
5065 rename to component_ref_size and move...
5066 (compute_objsize): Adjust.
5067 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
5068 (builtin_access::strict): Do not consider memmove.
5069 (builtin_access::write_off): New function.
5070 (builtin_memref::builtin_memref): Initialize refsize.
5071 (builtin_memref::set_base_and_offset): Adjust refoff and compute
5072 refsize.
5073 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
5074 Handle refsize.
5075 (builtin_access::builtin_access): Initialize dstoff to destination
5076 refeence offset here instead of in maybe_diag_overlap. Adjust
5077 referencess even to unrelated objects. Adjust sizrange of bounded
5078 string functions to reflect bound. For strcat, adjust destination
5079 sizrange by that of source.
5080 (builtin_access::strcat_overlap): Adjust offsets and sizes
5081 to reflect the increase in destination sizrange above.
5082 (builtin_access::overlap): Do not set dstoff here but instead
5083 in builtin_access::builtin_access.
5084 (check_bounds_or_overlap): Use builtin_access::write_off.
5085 (maybe_diag_access_bounds): Add argument. Add informational notes.
5086 (dump_builtin_memref, dump_builtin_access): New functions.
5087 * tree.c (component_ref_size): ...to here.
5088 * tree.h (component_ref_size): Declare.
5089 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
5090 nul in the size of the source string.
5091
5092 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
5093
5094 PR c/67224
5095 * doc/cpp.texi: Document support for extended characters in
5096 identifiers.
5097 * doc/cppopts.texi: Likewise.
5098
5099 2019-09-19 Richard Biener <rguenther@suse.de>
5100
5101 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
5102 (check_reduction_path): New overload having the path as result.
5103 (vect_is_simple_reduction): From the detected reduction
5104 path build a SLP reduction chain if possible.
5105
5106 2019-09-19 Richard Biener <rguenther@suse.de>
5107
5108 PR target/91814
5109 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
5110 Force operand to a register if it isn't nonimmediate_operand.
5111
5112 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
5113
5114 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
5115 * config/arm/iterators.md (optab): Add and, ior, xor entries.
5116 (logical_op): Remove code attribute.
5117 (logical_OP): Likewise.
5118
5119 2019-09-19 Martin Liska <mliska@suse.cz>
5120
5121 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
5122 Use proper casting.
5123
5124 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
5125
5126 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
5127 registers with %R.
5128
5129 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
5130 for NE comparison of TImode values.
5131 (aarch64_emit_load_exclusive): Add support for TImode.
5132 (aarch64_emit_store_exclusive): Likewise.
5133 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
5134 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
5135 Change iterator from ALLI to ALLI_TI.
5136 (@atomic_compare_and_swap<JUST_TI>): New.
5137 (@atomic_compare_and_swap<JUST_TI>_lse): New.
5138 (aarch64_load_exclusive_pair): New.
5139 (aarch64_store_exclusive_pair): New.
5140 * config/aarch64/iterators.md (JUST_TI): New.
5141
5142 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
5143 strong_zero_p for aarch64_track_speculation; unify some code paths;
5144 use aarch64_gen_compare_reg instead of open-coding.
5145
5146 * config/aarch64/aarch64.opt (-moutline-atomics): New.
5147 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
5148 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
5149 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
5150 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
5151 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
5152 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
5153 (atomic_<atomic_op><ALLI>): Likewise.
5154 (atomic_fetch_<atomic_op><ALLI>): Likewise.
5155 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
5156 * doc/invoke.texi: Document -moutline-atomics.
5157
5158 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
5159
5160 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
5161 trivial predicate for condition branch.
5162 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
5163 for switch case.
5164 (compute_bb_predicates): Update predicate based on post-dominating
5165 relationship.
5166 (analyze_function_body): Calculate post-dominating information.
5167
5168 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
5169
5170 * tree-vectorizer.h (vectorizable_condition): Take an int
5171 reduction index instead of a boolean flag.
5172 * tree-vect-stmts.c (vectorizable_condition): Likewise.
5173 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
5174 reductions if the reduction accumulator is the "then" rather
5175 than the "else" value.
5176 (vect_analyze_stmt): Update call accordingly.
5177 (vect_transform_stmt): Likewise.
5178 * tree-vect-loop.c (vectorizable_reduction): Likewise,
5179 asserting that the index is > 0.
5180
5181 2019-09-19 Martin Liska <mliska@suse.cz>
5182
5183 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
5184 (sort_congruence_classes_by_decl_uid): Likewise.
5185 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
5186 easier sorting.
5187 (sem_item_optimizer::merge_classes): Likewise.
5188
5189 2019-09-19 Richard Biener <rguenther@suse.de>
5190
5191 PR tree-optimization/91812
5192 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
5193 volatile loads.
5194
5195 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
5196
5197 * defaults.h (TARGET_UNIT): New macro.
5198 (target_unit): New type.
5199 * rtl.h (native_encode_rtx, native_decode_rtx)
5200 (native_decode_vector_rtx, subreg_size_lsb): Declare.
5201 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
5202 * rtlanal.c (subreg_lsb_1): Delete.
5203 (subreg_size_lsb): New function.
5204 * simplify-rtx.c: Include rtx-vector-builder.h
5205 (simplify_immed_subreg): Delete.
5206 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
5207 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
5208 functions.
5209 (simplify_subreg): Use them.
5210 (test_vector_subregs_modes, test_vector_subregs_repeating)
5211 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
5212 (test_vector_subregs): New functions.
5213 (test_vector_ops): Call test_vector_subregs for integer vector
5214 modes with at least 2 elements.
5215
5216 2019-09-19 Richard Biener <rguenther@suse.de>
5217
5218 * tree-parloops.c (parloops_is_slp_reduction): Do not set
5219 LOOP_VINFO_OPERANDS_SWAPPED.
5220 (parloops_is_simple_reduction): Likewise.
5221 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
5222 initialize operands_swapped.
5223 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
5224 (vect_is_slp_reduction): Do not swap operands.
5225 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
5226 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
5227
5228 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
5229
5230 PR target/87007
5231 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
5232 Add avx_partial_xmm_update.
5233
5234 2019-09-18 Jim Wilson <jimw@sifive.com>
5235
5236 PR target/91683
5237 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
5238 (riscv_move_integer): Likewise.
5239 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
5240 riscv_move_integer arg.
5241 (riscv_legitimize_move): Likewise.
5242 (riscv_force_temporary): New parameter in_splitter. Don't call
5243 force_reg if true.
5244 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
5245 arg.
5246 (riscv_add_offset): Likewise.
5247 (riscv_split_symbol): New parameter in_splitter. Pass to
5248 riscv_force_temporary.
5249 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
5250 arg.
5251 (riscv_move_integer): New parameter in_splitter. New local
5252 can_create_psuedo. Don't call riscv_split_integer or force_reg when
5253 in_splitter TRUE.
5254 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
5255 riscv_split_symbol, and riscv_force_temporary args.
5256 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
5257 riscv_move_integer arg.
5258 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
5259
5260 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
5261
5262 PR target/90878
5263 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
5264 hard register store cost to 6.
5265
5266 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
5267
5268 PR target/91446
5269 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
5270 pseudo register store cost from 3 to 6 to make it the same as
5271 QImode and HImode.
5272
5273 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
5274
5275 PR target/91738
5276 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
5277 (one_cmpldi2): Likewise.
5278 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
5279 of the constant parts is simple.
5280 * config/arm/iterators.md (LOGICAL): Add new code iterator.
5281 (logical_op): Add new code attribute.
5282 (logical_OP): Likewise.
5283 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
5284 (arm_iordi_operand): Add predicate.
5285 (arm_xordi_operand): Add predicate.
5286
5287 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
5288
5289 * config/arm/arm.md (maddsidi4): Remove expander.
5290 (mulsidi3adddi): Remove pattern.
5291 (mulsidi3adddi_v6): Likewise.
5292 (mulsidi3_nov6): Likewise.
5293 (mulsidi3_v6): Likewise.
5294 (umulsidi3): Remove expander.
5295 (umulsidi3_nov6): Remove pattern.
5296 (umulsidi3_v6): Likewise.
5297 (umulsidi3adddi): Likewise.
5298 (umulsidi3adddi_v6): Likewise.
5299 (<Us>mulsidi3): Add combined expander.
5300 (<Us>maddsidi4): Likewise.
5301 (<US>mull): Add combined umull and smull pattern.
5302 (<US>mlal): Likewise.
5303 * config/arm/iterators.md (Us): Add new iterator.
5304
5305 2019-09-18 Richard Biener <rguenther@suse.de>
5306
5307 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
5308 swapping.
5309 (vectorize_fold_left_reduction): Remove assert.
5310 (vectorizable_reduction): Also expect COND_EXPR non-reduction
5311 operand in position 2. Remove assert.
5312
5313 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
5314
5315 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
5316 (smulsi3_highpart_nov6): Remove pattern.
5317 (smulsi3_highpart_v6): Likewise.
5318 (umulsi3_highpart): Likewise.
5319 (umulsi3_highpart_nov6): Likewise.
5320 (umulsi3_highpart_v6): Likewise.
5321 (<US>mull_high): Add new combined multiply pattern.
5322
5323 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
5324
5325 * config/arm/arm.md (arm_mulsi3): Remove pattern.
5326 (arm_mulsi3_v6): Likewise.
5327 (mulsi3addsi_v6): Likewise.
5328 (mulsi3subsi): Likewise.
5329 (mul): Add new multiply pattern.
5330 (mla): Likewise.
5331 (mls): Likewise.
5332
5333 2019-09-18 Richard Biener <rguenther@suse.de>
5334
5335 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
5336 (parloops_valid_reduction_input_p): Copy from
5337 valid_reduction_input_p.
5338 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
5339 (parloops_needs_fold_left_reduction_p): Copy from
5340 needs_fold_left_reduction_p.
5341 (parloops_is_simple_reduction): Copy from
5342 vect_is_simple_reduction.
5343 (parloops_force_simple_reduction): Copy from
5344 vect_force_simple_reduction.
5345 (gather_scalar_reductions): Adjust.
5346 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
5347 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
5348
5349 2019-09-18 Richard Biener <rguenther@suse.de>
5350
5351 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
5352 * tree-vect-loop.c (get_initial_def_for_reduction): Make
5353 static.
5354 (vect_create_epilog_for_reduction): Remove dead code.
5355
5356 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
5357
5358 * varasm.c (assemble_real): Generate canonical const_ints.
5359
5360 2019-09-18 Richard Biener <rguenther@suse.de>
5361
5362 PR lto/91763
5363 * lto-streamer-in.c (input_eh_regions): Move EH init to
5364 lto_materialize_function.
5365 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
5366 Likewise.
5367
5368 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
5369
5370 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
5371 are INTEGER_CSTs.
5372
5373 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
5374
5375 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
5376 of checking specifically for INTEGER_CST.
5377
5378 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
5379
5380 * stor-layout.c (compute_record_mode): Operate on poly_uint64
5381 sizes instead of uhwi sizes.
5382
5383 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
5384
5385 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
5386 (add_const_value_attribute): Handle CONST_POLY_INT.
5387
5388 2019-09-18 Martin Liska <mliska@suse.cz>
5389
5390 * dbgcnt.def (store_merging): New counter.
5391 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
5392 Use it in store merging.
5393
5394 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
5395
5396 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
5397 function.
5398 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
5399 * config/arm/arm.c (arm_sched_variable_issue): New function.
5400 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
5401
5402 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
5403
5404 * config/arm/types.md (no_reservation): New reservation.
5405 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
5406 no_insn here.
5407 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
5408 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
5409 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
5410 * config/arm/arm1020e.md (1020alu_op): Likewise.
5411 * config/arm/arm1026ejs.md (alu_op): Likewise.
5412 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
5413 * config/arm/arm926ejs.md (9_alu_op): Likewise.
5414 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
5415 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
5416 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
5417 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
5418 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
5419 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
5420 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
5421 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
5422 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
5423 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
5424 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
5425 * config/arm/fa526.md (526_alu_op): Likewise.
5426 * config/arm/fa606te.md (606te_alu_op): Likewise.
5427 * config/arm/fa626te.md (626te_alu_op): Likewise.
5428 * config/arm/fa726te.md (726te_alu_op): Likewise.
5429 * config/arm/xgene1.md (xgene1_nop): Likewise.
5430
5431 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
5432
5433 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
5434 "no_insn" to "branch".
5435
5436 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
5437
5438 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
5439
5440 2019-09-17 Richard Biener <rguenther@suse.de>
5441
5442 PR debug/91772
5443 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
5444 was missing generate locations only once.
5445
5446 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
5447
5448 PR ipa/91089
5449 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
5450 option.
5451 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
5452 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
5453 for switch default case using range analysis information.
5454
5455 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
5456
5457 PR target/91749
5458 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
5459 mode attributed is supported by FDPIC.
5460
5461 2019-09-17 Richard Biener <rguenther@suse.de>
5462
5463 PR tree-optimization/91790
5464 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
5465 use the correct DR for setting up realignment.
5466
5467 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
5468
5469 PR target/91719
5470 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
5471 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
5472 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
5473 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
5474
5475 2019-09-16 Jason Merrill <jason@redhat.com>
5476
5477 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
5478
5479 2019-09-16 Martin Liska <mliska@suse.cz>
5480
5481 * gimple-fold.c (or_comparisons_1): Remove rules moved
5482 to ...
5483 * match.pd: ... here.
5484
5485 2019-09-16 Martin Liska <mliska@suse.cz>
5486
5487 * gimple-fold.c (or_comparisons_1): Remove rules
5488 moved to ...
5489 * match.pd: ... here.
5490
5491 2019-09-16 Martin Liska <mliska@suse.cz>
5492
5493 * genmatch.c (dt_node::append_simplify): Do not print
5494 warning when we have duplicate patterns belonging
5495 to a same simplify rule.
5496 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
5497 (maybe_fold_comparisons_from_match_pd): Handle
5498 tcc_comparison as a results.
5499 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
5500
5501 2019-09-16 Li Jia He <helijia@linux.ibm.com>
5502 Qi Feng <ffengqi@linux.ibm.com>
5503
5504 PR middle-end/88784
5505 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
5506 (x > y && x == XXX_MIN): Optimize into 'false'.
5507 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
5508 (x < y && x != XXX_MAX): Optimize into 'x < y'.
5509 (x < y && x == XXX_MAX): Optimize into 'false'.
5510 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
5511 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
5512 (x <= y || x != XXX_MIN): Optimize into 'true'.
5513 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
5514 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
5515 (x >= y || x != XXX_MAX): Optimize into 'true'.
5516 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
5517
5518 2019-09-16 Li Jia He <helijia@linux.ibm.com>
5519 Martin Liska <mliska@suse.cz>
5520
5521 * gimple-fold.c (and_comparisons_1): Add type as first
5522 argument.
5523 (and_var_with_comparison): Likewise.
5524 (and_var_with_comparison_1): Likewise.
5525 (or_comparisons_1): Likewise.
5526 (or_var_with_comparison): Likewise.
5527 (or_var_with_comparison_1): Likewise.
5528 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
5529 (maybe_fold_or_comparisons): Likewise.
5530 (maybe_fold_comparisons_from_match_pd): New.
5531 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
5532 (maybe_fold_or_comparisons): Likewise.
5533 * gimple.c (gimple_size): Make it public and add num_ops argument.
5534 (gimple_init): New function.
5535 (gimple_alloc): Call gimple_init.
5536 * gimple.h (gimple_size): New.
5537 (gimple_init): Likewise.
5538 * tree-if-conv.c (fold_or_predicates): Pass type.
5539 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
5540 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
5541 (optimize_vec_cond_expr): Likewise.
5542 (ovce_extract_ops): Return type of conditional expression.
5543 * tree-ssanames.c (init_ssa_name_imm_use): New.
5544 (make_ssa_name_fn): Use init_ssa_name_imm_use.
5545 * tree-ssanames.h (init_ssa_name_imm_use): New.
5546
5547 2019-09-16 Richard Biener <rguenther@suse.de>
5548
5549 PR tree-optimization/91756
5550 PR tree-optimization/87132
5551 * tree-ssa-alias.h (enum translate_flags): New.
5552 (get_continuation_for_phi): Use it instead of simple bool flag.
5553 (walk_non_aliased_vuses): Likewise.
5554 * tree-ssa-alias.c (maybe_skip_until): Adjust.
5555 (get_continuation_for_phi): When looking across backedges only
5556 disallow valueization.
5557 (walk_non_aliased_vuses): Adjust.
5558 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
5559 if requested.
5560
5561 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
5562
5563 PR middle-end/80791
5564 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
5565 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
5566 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
5567 * target.def (have_count_reg_decr_p): New hook.
5568 (doloop_cost_for_generic): Likewise.
5569 (doloop_cost_for_address): Likewise.
5570 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
5571 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
5572 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
5573 * doc/tm.texi: Regenerate.
5574 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
5575 addend.
5576 (record_group): Init doloop_p.
5577 (add_candidate_1): Add optional argument doloop, change the handlings
5578 accordingly.
5579 (add_candidate): Likewise.
5580 (generic_predict_doloop_p): Update attribute.
5581 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
5582 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
5583 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
5584 MIN_EXPR.
5585 (get_computation_cost): Update for doloop IV cand extra cost.
5586 (determine_group_iv_cost_cond): Update for doloop IV cand.
5587 (determine_iv_cost): Likewise.
5588 (ivopts_estimate_reg_pressure): Likewise.
5589 (may_eliminate_iv): Update handlings for doloop IV cand.
5590 (add_iv_candidate_for_doloop): New function.
5591 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
5592 (iv_ca_set_no_cp): Update for doloop IV cand.
5593 (iv_ca_set_cp): Likewise.
5594 (iv_ca_dump): Dump register cost.
5595 (find_doloop_use): New function.
5596 (analyze_and_mark_doloop_use): Likewise.
5597 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
5598
5599 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
5600
5601 PR middle-end/91708
5602 * cse.c (cse_insn): Do not replace anything with a
5603 MEM.
5604
5605 2019-09-13 Ian Lance Taylor <iant@golang.org>
5606
5607 * doc/invoke.texi (Optimize Options): Fix typo.
5608
5609 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
5610
5611 PR tree-optimization/89386
5612 * config/i386/sse.md (smulhrs<mode>3): New expander.
5613 (smulhrsv4hi3): Ditto.
5614
5615 2019-09-12 Richard Biener <rguenther@suse.de>
5616
5617 PR tree-optimization/91750
5618 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
5619 in the type of the evolution.
5620
5621 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
5622
5623 PR tree-optimization/89386
5624 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
5625 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
5626 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
5627 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
5628 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
5629 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
5630 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
5631 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
5632 (su, r): Handle the unspecs above.
5633 (bt): New int attribute.
5634 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
5635 * internal-fn.c (first_commutative_argument): Commutativity info for
5636 above.
5637 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
5638 (umulhrs_optab): New optabs.
5639 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
5640 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
5641 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
5642 function.
5643 (vect_vect_recog_func_ptrs): Add it.
5644
5645 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
5646
5647 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
5648 code.
5649
5650 2019-09-11 Nathan Sidwell <nathan@acm.org>
5651
5652 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
5653 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
5654
5655 2019-09-11 Richard Biener <rguenther@suse.de>
5656
5657 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
5658 * lto-wrapper.c (merge_and_complain): Pick up -g.
5659 (append_compiler_options): Likewise.
5660 (run_gcc): Re-instantiate handling -g0 at link-time.
5661 * doc/invoke.texi (flto): Document debug info generation.
5662
5663 2019-09-11 Richard Biener <rguenther@suse.de>
5664
5665 PR tree-optimization/90387
5666 * vr-values.c (vr_values::extract_range_basic): After inlining
5667 simplify non-constant __builtin_constant_p to false.
5668
5669 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
5670
5671 PR rtl-optimization/89795
5672 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
5673 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
5674
5675 2019-09-11 Jakub Jelinek <jakub@redhat.com>
5676
5677 PR tree-optimization/91723
5678 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
5679 instead of pointer equality when checking if argument vectypes are
5680 the same.
5681
5682 PR middle-end/91725
5683 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
5684 of get_nonzero_bits, only call it for integral types.
5685
5686 2019-09-11 Richard Biener <rguenther@suse.de>
5687
5688 Revert
5689 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
5690
5691 * match.pd: Add flag_unsafe_math_optimizations check
5692 before deciding on the widest type in a binary math operation.
5693
5694 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5695
5696 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
5697 and CALL_REALLY_USED_REGISTERS must be defined, and that
5698 CALL_REALLY_USED_REGISTERS is preferred.
5699 * doc/tm.texi: Regenerate.
5700 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
5701 (call_really_used_regs): Likewise.
5702 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
5703 CALL_REALLY_USED_REGISTERS are defined.
5704 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
5705 initial value if defined.
5706 (initial_call_really_used_regs): Delete.
5707 (saved_call_really_used_regs): Likewise.
5708 (CALL_REALLY_USED_REGNO_P): Likewise.
5709 (init_reg_sets): Remove handling of call_really_used_regs.
5710 (save_register_info, restore_register_info, globalize_reg): Likewise.
5711 (init_reg_sets_1): Likewise. Use call_used_regs instead of
5712 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
5713 outside operand_reg_set.
5714 (fix_register): Don't change call_used_regs if
5715 CALL_REALLY_USED_REGISTERS is defined.
5716 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
5717 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
5718 instead of call_really_used_regs.
5719 (csky_conditional_register_usage): Remove the old handling of
5720 call_used_regs and change the handling of call_really_used_regs
5721 to use call_used_regs instead.
5722 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
5723 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
5724 making a register fixed.
5725 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
5726 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
5727 instead of call_really_used_regs.
5728 (m32r_conditional_register_usage): Don't set call_used_regs when
5729 making a register fixed.
5730 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
5731 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
5732 instead of call_really_used_regs.
5733 (mips_interrupt_extra_call_saved_reg_p): Likewise.
5734 (mips_cfun_call_saved_reg_p): Likewise.
5735 (mips_swap_registers): Remove the old handling of call_used_regs
5736 and change the handling of call_really_used_regs to use call_used_regs
5737 instead.
5738 (mips_conditional_register_usage): Likewise.
5739 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
5740 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
5741 instead of call_really_used_regs.
5742 (mn10300_get_live_callee_saved_regs): Likewise.
5743 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
5744 (mn10300_conditional_register_usage): Don't set call_used_regs when
5745 making a register fixed.
5746 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
5747 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
5748 Remove the old handling of call_used_regs and change the handling
5749 of call_really_used_regs to use call_used_regs instead.
5750 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
5751 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
5752 instead of call_really_used_regs.
5753 (s390_register_info_gprtofpr, s390_register_info): Likewise.
5754 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
5755 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
5756 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
5757 (s390_conditional_register_usage): Remove the old handling of
5758 call_used_regs and change the handling of call_really_used_regs
5759 to use call_used_regs instead.
5760 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
5761 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
5762 (sh_fix_range, reg_unused_after): Likewise.
5763 (sh_conditional_register_usage): Remove the old handling of
5764 call_used_regs and change the handling of call_really_used_regs
5765 to use call_used_regs instead.
5766 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
5767 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
5768 call_used_regs when making a register fixed.
5769 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
5770 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
5771 call_used_regs when making a register fixed.
5772 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
5773 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
5774 set call_used_regs when making a register fixed.
5775 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
5776 * config/visium/visium.c (visium_conditional_register_usage): Remove
5777 the old handling of call_used_regs and change the handling of
5778 call_really_used_regs to use call_used_regs instead.
5779
5780 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5781
5782 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
5783 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
5784 * reginfo.c (call_used_regs): New macro.
5785
5786 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5787
5788 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
5789 fixed_regs test.
5790 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
5791 (bpf_expand_epilogue): Likewise.
5792 * config/c6x/c6x.c (c6x_save_reg): Likewise.
5793 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
5794 (ft32_expand_epilogue): Likewise.
5795 * config/i386/i386.c (ix86_save_reg): Likewise.
5796 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
5797 (moxie_expand_epilogue): Likewise.
5798 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
5799 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
5800 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
5801
5802 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5803
5804 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
5805 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
5806 instead of testing call_used_regs directly.
5807 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
5808 (aarch64_components_for_bb): Likewise.
5809 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
5810 * config/arc/arc.c (arc_must_save_register): Likewise.
5811 (arc_epilogue_uses): Likewise.
5812 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
5813 (legitimize_pic_address, callee_saved_reg_p): Likewise.
5814 (arm_compute_save_reg0_reg12_mask): Likewise.
5815 (arm_compute_save_core_reg_mask): Likewise.
5816 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
5817 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
5818 (cmse_nonsecure_entry_clear_before_return): Likewise.
5819 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
5820 (arm_expand_epilogue): Likewise.
5821 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
5822 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
5823 (_reg_unused_after): Likewise.
5824 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
5825 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
5826 (add_to_reg, hwloop_optimize): Likewise.
5827 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
5828 (bpf_expand_epilogue): Likewise.
5829 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
5830 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
5831 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
5832 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
5833 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
5834 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
5835 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
5836 * config/frv/frv.c (frv_stack_info): Likewise.
5837 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
5838 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
5839 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
5840 (move_callee_saved_registers): Likewise.
5841 * config/h8300/h8300.c (byte_reg): Likewise.
5842 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
5843 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
5844 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
5845 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
5846 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
5847 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
5848 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
5849 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
5850 * config/m32c/m32c.c (need_to_save): Likewise.
5851 * config/m68k/m68k.c (m68k_save_reg): Likewise.
5852 * config/mcore/mcore.c (calc_live_regs): Likewise.
5853 * config/microblaze/microblaze.c (microblaze_must_save_register):
5854 Likewise.
5855 * config/mmix/mmix.c (mmix_local_regno): Likewise.
5856 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
5857 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
5858 (mmix_expand_epilogue): Likewise.
5859 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
5860 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
5861 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
5862 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
5863 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
5864 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
5865 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
5866 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
5867 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
5868 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
5869 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
5870 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
5871 * config/rl78/rl78.c (need_to_save): Likewise.
5872 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
5873 (rs6000_stack_info, generate_set_vrsave): Likewise.
5874 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
5875 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
5876 * config/rx/rx.c (rx_get_stack_layout): Likewise.
5877 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
5878 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
5879 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
5880 (save_local_or_in_reg_p): Likewise.
5881 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
5882 (xstormy16_epilogue_uses): Likewise.
5883 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
5884 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
5885 * config/v850/v850.c (compute_register_save_size): Likewise.
5886 * config/vax/vax.c (vax_expand_prologue): Likewise.
5887 * config/visium/visium.c (visium_save_reg_p): Likewise.
5888 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
5889 * cselib.c (cselib_process_insn): Likewise.
5890 * df-scan.c (df_get_entry_block_def_set): Likewise.
5891 * function.c (aggregate_value_p): Likewise.
5892 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
5893 * ira-lives.c (process_bb_node_lives): Likewise.
5894 * ira.c (do_reload): Likewise.
5895 * lra-lives.c (process_bb_lives): Likewise.
5896 * lra-remat.c (lra_remat): Likewise.
5897 * lra.c (lra): Likewise.
5898 * postreload.c (reload_combine_recognize_pattern): Likewise.
5899 (reload_cse_move2add): Likewise.
5900 * recog.c (peep2_find_free_register): Likewise.
5901 * regrename.c (check_new_reg_p): Likewise.
5902 * reload.c (find_equiv_reg): Likewise.
5903 * reload1.c (reload, find_reg): Likewise.
5904 * sel-sched.c (init_hard_regs_data): Likewise.
5905
5906 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5907
5908 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
5909 regs_invalidated_by_call & ~fixed_reg_set instead of
5910 call_used_or_fixed_regs & ~fixed_reg_set.
5911 * config/sh/sh.c (output_stack_adjust): Likewise.
5912
5913 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5914
5915 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
5916 (call_used_reg_set): Delete.
5917 (call_used_or_fixed_regs): New macro.
5918 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
5919 of call_used_reg_set.
5920 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
5921 instead of call_used_regs.
5922 (save_call_clobbered_regs): Likewise.
5923 * cfgcleanup.c (old_insns_match_p): Likewise.
5924 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
5925 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
5926 Likewise.
5927 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5928 * config/sh/sh.c (output_stack_adjust): Likewise.
5929 * final.c (collect_fn_hard_reg_usage): Likewise.
5930 * ira-build.c (ira_build): Likewise.
5931 * ira-color.c (calculate_saved_nregs): Likewise.
5932 (allocno_reload_assign, calculate_spill_cost): Likewise.
5933 * ira-conflicts.c (ira_build_conflicts): Likewise.
5934 * ira-costs.c (ira_tune_allocno_costs): Likewise.
5935 * ira-lives.c (process_bb_node_lives): Likewise.
5936 * ira.c (setup_reg_renumber): Likewise.
5937 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
5938 * lra-constraints.c (need_for_call_save_p): Likewise.
5939 (need_for_split_p, inherit_in_ebb): Likewise.
5940 * lra-lives.c (process_bb_lives): Likewise.
5941 * lra-remat.c (call_used_input_regno_present_p): Likewise.
5942 * postreload.c (reload_combine): Likewise.
5943 * regrename.c (find_rename_reg): Likewise.
5944 * reload1.c (reload_as_needed): Likewise.
5945 * rtlanal.c (find_all_hard_reg_sets): Likewise.
5946 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5947 * shrink-wrap.c (requires_stack_frame_p): Likewise.
5948
5949 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5950
5951 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
5952 (no_caller_save_reg_set): Delete.
5953 * caller-save.c (init_caller_save): Don't initialize it.
5954 * ira-conflicts.c (ira_build_conflicts): Calculate
5955 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
5956
5957 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5958
5959 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
5960 (target_hard_regs::x_savable_regs): New field.
5961 (call_fixed_reg_set): Delete.
5962 (savable_regs): New macro,
5963 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
5964 (init_reg_sets_1): Likewise. Initialize savable_regs.
5965 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
5966 for all registers. Set savable_regs instead of call_fixed_reg_set.
5967 (setup_save_areas, save_call_clobbered_regs): Replace uses of
5968 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
5969 * config/sh/sh.c (output_stack_adjust): Likewise.
5970
5971 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5972
5973 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
5974 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
5975 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
5976
5977 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5978
5979 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
5980 * rtlanal.c (get_call_rtx_from): Likewise.
5981 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
5982 than the pattern to get_call_rtx_from.
5983 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
5984 an rtx_insn * instead of an rtx.
5985 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
5986
5987 2019-09-10 Martin Liska <mliska@suse.cz>
5988
5989 * common.opt: Use newly added WarnRemoved.
5990 * config/aarch64/aarch64.opt: Likewise.
5991 * config/arm/arm.opt: Likewise.
5992 * config/i386/i386.opt: Likewise.
5993 * config/ia64/ia64.opt: Likewise.
5994 * config/rs6000/rs6000.opt: Likewise.
5995 * doc/options.texi: Document WarnRemoved properly.
5996 * dwarf2out.c (gen_producer_string): Handle renamed
5997 OPT_SPECIAL_warn_removed.
5998 * lto-opts.c (lto_write_options): Likewise.
5999 * lto-wrapper.c (merge_and_complain): Likewise.
6000 * opts-common.c (decode_cmdline_option): Likewise.
6001 (prune_options): Likewise.
6002 (read_cmdline_option): Likewise.
6003 (control_warning_option): Likewise.
6004 * opts.c (print_filtered_help): Likewise.
6005 * optc-gen.awk: Parse for WarnRemoved and make usage
6006 of Deprecated an error.
6007 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
6008
6009 2019-09-10 Arnaud Charlet <charlet@adacore.com>
6010
6011 * doc/install.texi: Fix syntax for html generation.
6012
6013 2019-09-10 Jakub Jelinek <jakub@redhat.com>
6014
6015 PR middle-end/91680
6016 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
6017 the shift type to type.
6018
6019 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
6020
6021 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
6022 FDPIC mode.
6023 (stack_protect_combined_test_insn): Likewise.
6024
6025 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
6026 Mickaël Guêné <mickael.guene@st.com>
6027
6028 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
6029 * config/arm/arm.md (FDPIC_REGNUM): New constant.
6030 (load_tp_soft_fdpic): New pattern.
6031 (load_tp_soft): Disable in FDPIC mode.
6032
6033 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
6034 Mickaël Guêné <mickael.guene@st.com>
6035
6036 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
6037 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
6038 (arm_call_tls_get_addr): Add FDPIC support.
6039 (legitimize_tls_address): Likewise.
6040 (arm_emit_tls_decoration): Likewise.
6041
6042 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
6043 Mickaël Guêné <mickael.guene@st.com>
6044
6045 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
6046 support.
6047 (arm_trampoline_init): Likewise.
6048 (arm_trampoline_adjust_address): Likewise.
6049 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
6050
6051 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
6052 Mickaël Guêné <mickael.guene@st.com>
6053
6054 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
6055 (legitimize_pic_address): Enforce binding rules on function
6056 pointers in FDPIC mode.
6057 (arm_assemble_integer): Likewise.
6058
6059 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
6060 Mickaël Guêné <mickael.guene@st.com>
6061
6062 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
6063 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
6064 FDPIC.
6065
6066 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
6067 Mickaël Guêné <mickael.guene@st.com>
6068
6069 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
6070 field.
6071
6072 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
6073 Mickaël Guêné <mickael.guene@st.com>
6074
6075 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
6076 in FDPIC mode.
6077 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
6078 new function.
6079 * config/arm/arm.c (arm_option_override): Define pic register to
6080 FDPIC_REGNUM.
6081 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
6082 have no decl or go through PLT.
6083 (calculate_pic_address_constant): New function.
6084 (legitimize_pic_address): Call calculate_pic_address_constant.
6085 (arm_load_pic_register): Handle TARGET_FDPIC.
6086 (arm_is_segment_info_known): New function.
6087 (arm_pic_static_addr): Add support for FDPIC.
6088 (arm_load_function_descriptor): New function.
6089 (arm_emit_call_insn): Add support for FDPIC.
6090 (arm_assemble_integer): Add support for FDPIC.
6091 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
6092 Define. (FDPIC_REGNUM): New define.
6093 * config/arm/arm.md (call): Add support for FDPIC.
6094 (call_value): Likewise.
6095 (restore_pic_register_after_call): New pattern.
6096 (untyped_call): Disable if FDPIC.
6097 (untyped_return): Likewise.
6098 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
6099
6100 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
6101 Mickaël Guêné <mickael.guene@st.com>
6102
6103 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
6104 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
6105 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
6106 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
6107 (CC1_SPEC): Use FDPIC_CC1_SPEC.
6108 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
6109 * config/arm/uclinuxfdpiceabi.h: New file.
6110
6111 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
6112
6113 * config.gcc: Handle *-*-uclinuxfdpiceabi.
6114
6115 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
6116 Mickaël Guêné <mickael.guene@st.com>
6117
6118 * config/arm/arm.opt: Add -mfdpic option.
6119 * doc/invoke.texi: Add documentation for -mfdpic.
6120
6121 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6122
6123 * expmed.c (extract_bit_field): Update function comment
6124 regarding alt_rtl.
6125 * expr.c (expand_expr_real): Update function comment
6126 regarding alt_rtl.
6127 (expand_misaligned_mem_ref): New helper function.
6128 (expand_expr_real_2): Use expand_misaligned_mem_ref.
6129 Remove duplicate assignment to "base" at case MEM_REF.
6130 Remove a shadowed variable "unsignedp" at case VCE.
6131
6132 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
6133
6134 * regset.h (regs_invalidated_by_call_regset): Delete.
6135 (fixed_reg_set_regset): Likewise.
6136 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
6137 (fixed_reg_set_regset, persistent_obstack): Likewise.
6138 (init_reg_sets_1, globalize_reg): Update accordingly.
6139 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
6140 instead of a bitmap.
6141 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
6142 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
6143 instead of regs_invalidated_by_call_regset.
6144 (df_lr_confluence_n, df_md_confluence_n): Likewise.
6145 * df-scan.c (df_scan_start_dump): Likewise.
6146 * dse.c (copy_fixed_regs): Likewise.
6147 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
6148
6149 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
6150
6151 * array-traits.h: New file.
6152 * coretypes.h (array_traits, bitmap_view): New types.
6153 * bitmap.h: Include "array-traits.h"
6154 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
6155 (base_bitmap_view, bitmap_view): New classes.
6156 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
6157 * hard-reg-set.h: Include array-traits.h.
6158 (array_traits<HARD_REG_SET>): New struct.
6159 * regset.h (IOR_REG_SET_HRS): New macro.
6160 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
6161 rather than iterating over each hard register.
6162 * sched-deps.c (sched_analyze_insn): Likewise.
6163 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
6164
6165 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
6166
6167 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
6168 instead of a HARD_REG_SET *.
6169 * ira-build.c (ior_hard_reg_conflicts): Likewise.
6170 (ira_build): Update call accordingly.
6171 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
6172
6173 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
6174
6175 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
6176 (HARD_REG_SET::operator!=): Likewise.
6177 (hard_reg_set_equal_p): Delete.
6178 * cfgcleanup.c (old_insns_match_p): Use == instead of
6179 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
6180 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
6181 (add_allocno_hard_regs_to_forest): Likewise.
6182 (setup_allocno_available_regs_num): Likewise.
6183 * ira.c (setup_pressure_classes): Likewise.
6184 (setup_allocno_and_important_classes): Likewise.
6185 (setup_reg_class_relations): Likewise.
6186 * lra-lives.c (process_bb_lives): Likewise.
6187 * reg-stack.c (change_stack, convert_regs_1): Likewise.
6188
6189 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
6190
6191 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
6192 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
6193 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
6194 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
6195 Likewise.
6196 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
6197 * ira.c (setup_reg_renumber): Likewise.
6198 * lra-assigns.c (find_hard_regno_for_1): Likewise.
6199 * regrename.c (regrename_find_superclass): Likewise.
6200 * reload1.c (find_reg): Likewise.
6201
6202 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
6203
6204 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
6205 * caller-save.c (setup_save_areas): Use "&~" instead of
6206 AND_COMPL_HARD_REG_SET.
6207 (save_call_clobbered_regs): Likewise.
6208 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
6209 Likewise.
6210 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
6211 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
6212 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
6213 * config/mips/mips.c (mips_class_max_nregs): Likewise.
6214 (mips_conditional_register_usage): Likewise.
6215 * config/sh/sh.c (output_stack_adjust): Likewise.
6216 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
6217 (setup_profitable_hard_regs): Likewise.
6218 (get_conflict_and_start_profitable_regs): Likewise.
6219 * ira-conflicts.c (print_allocno_conflicts): Likewise.
6220 (ira_build_conflicts): Likewise.
6221 * ira-costs.c (restrict_cost_classes): Likewise.
6222 (setup_regno_cost_classes_by_aclass): Likewise.
6223 * ira-lives.c (process_bb_node_lives): Likewise.
6224 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
6225 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
6226 (setup_allocno_and_important_classes, setup_class_translate_array)
6227 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
6228 Likewise.
6229 * lra-assigns.c (find_hard_regno_for_1): Likewise.
6230 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
6231 (process_alt_operands, inherit_in_ebb): Likewise.
6232 * lra-eliminations.c (update_reg_eliminate): Likewise.
6233 * lra-lives.c (process_bb_lives): Likewise.
6234 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
6235 * resource.c (find_dead_or_set_registers): Likewise.
6236 (mark_target_live_regs): Likewise.
6237 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
6238 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6239 (implicit_clobber_conflict_p): Likewise.
6240 * shrink-wrap.c (requires_stack_frame_p): Likewise.
6241 (try_shrink_wrapping): Likewise.
6242
6243 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
6244
6245 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
6246 (HARD_REG_SET::operator|=): Likewise.
6247 (IOR_HARD_REG_SET): Delete.
6248 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
6249 IOR_HARD_REG_SET.
6250 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
6251 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
6252 * final.c (collect_fn_hard_reg_usage): Likewise.
6253 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
6254 * ira-build.c (merge_hard_reg_conflicts): Likewise.
6255 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
6256 (propagate_some_info_from_allocno): Likewise.
6257 (copy_info_to_removed_store_destinations): Likewise.
6258 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
6259 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
6260 (fast_allocation): Likewise.
6261 * ira-conflicts.c (ira_build_conflicts): Likewise.
6262 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
6263 (process_bb_node_lives): Likewise.
6264 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
6265 * lra-assigns.c (find_hard_regno_for_1): Likewise.
6266 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
6267 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
6268 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
6269 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
6270 (process_bb_lives): Likewise.
6271 * lra-spills.c (assign_spill_hard_regs): Likewise.
6272 * postreload.c (reload_combine): Likewise.
6273 * reginfo.c (init_reg_sets_1): Likewise.
6274 * regrename.c (merge_overlapping_regs, find_rename_reg)
6275 (merge_chains): Likewise.
6276 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
6277 (find_reload_regs, finish_spills, choose_reload_regs_init)
6278 (emit_reload_insns): Likewise.
6279 * reorg.c (redundant_insn): Likewise.
6280 * resource.c (find_dead_or_set_registers, mark_set_resources)
6281 (mark_target_live_regs): Likewise.
6282 * rtlanal.c (find_all_hard_reg_sets): Likewise.
6283 * sched-deps.c (sched_analyze_insn): Likewise.
6284 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6285 (find_best_reg_for_expr): Likewise.
6286 * shrink-wrap.c (try_shrink_wrapping): Likewise.
6287
6288 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
6289
6290 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
6291 (HARD_REG_SET::operator&): Likewise.
6292 (AND_HARD_REG_SET): Delete.
6293 * caller-save.c (setup_save_areas): Use "&" instead of
6294 AND_HARD_REG_SET.
6295 (save_call_clobbered_regs): Likewise.
6296 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
6297 * config/m32c/m32c.c (reduce_class): Likewise.
6298 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
6299 * final.c (get_call_reg_set_usage): Likewise.
6300 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
6301 (setup_left_conflict_sizes_p): Likewise.
6302 * ira-conflicts.c (print_allocno_conflicts): Likewise.
6303 (ira_build_conflicts): Likewise.
6304 * ira-costs.c (restrict_cost_classes): Likewise.
6305 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
6306 (setup_reg_class_relations): Likewise.
6307 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
6308 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
6309 * resource.c (find_dead_or_set_registers): Likewise.
6310 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6311
6312 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
6313
6314 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
6315 (COMPL_HARD_REG_SET): Delete.
6316 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
6317 of COMPL_HARD_REG_SET.
6318 (try_rename_operands): Likewise.
6319 * config/sh/sh.c (push_regs): Likewise.
6320 * lra-assigns.c (find_hard_regno_for_1): Likewise.
6321 * lra-constraints.c (contains_reg_p): Likewise.
6322 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
6323
6324 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
6325
6326 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
6327 * caller-save.c (save_call_clobbered_regs): Use assignment instead
6328 of COPY_HARD_REG_SET.
6329 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
6330 (epiphany_conditional_register_usage): Likewise.
6331 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
6332 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
6333 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
6334 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
6335 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
6336 * config/mips/mips.c (mips_class_max_nregs): Likewise.
6337 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
6338 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
6339 * config/sh/sh.c (output_stack_adjust): Likewise.
6340 * final.c (collect_fn_hard_reg_usage): Likewise.
6341 (get_call_reg_set_usage): Likewise.
6342 * ira-build.c (ira_create_object, remove_low_level_allocnos)
6343 (ira_flattening): Likewise.
6344 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
6345 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
6346 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
6347 (ira_reassign_pseudos): Likewise.
6348 * ira-conflicts.c (print_allocno_conflicts): Likewise.
6349 (ira_build_conflicts): Likewise.
6350 * ira-costs.c (restrict_cost_classes): Likewise.
6351 (setup_regno_cost_classes_by_aclass): Likewise.
6352 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
6353 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
6354 (setup_stack_reg_pressure_class, setup_pressure_classes)
6355 (setup_allocno_and_important_classes, setup_class_translate_array)
6356 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
6357 (ira_setup_eliminable_regset): Likewise.
6358 * lra-assigns.c (find_hard_regno_for_1): Likewise.
6359 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
6360 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
6361 (process_alt_operands, inherit_in_ebb): Likewise.
6362 * lra-lives.c (process_bb_lives): Likewise.
6363 * lra-spills.c (assign_spill_hard_regs): Likewise.
6364 * lra.c (lra): Likewise.
6365 * mode-switching.c (new_seginfo): Likewise.
6366 * postreload.c (reload_combine): Likewise.
6367 * reg-stack.c (straighten_stack): Likewise.
6368 * reginfo.c (save_register_info, restore_register_info): Likewise.
6369 (init_reg_sets_1, record_subregs_of_mode): Likewise
6370 * regrename.c (create_new_chain, rename_chains): Likewise.
6371 * reload1.c (order_regs_for_reload, find_reg): Likewise.
6372 (find_reload_regs): Likewise.
6373 * resource.c (find_dead_or_set_registers): Likewise.
6374 (mark_target_live_regs): Likewise.
6375 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6376
6377 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
6378
6379 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
6380 (note_pattern_stores): Declare.
6381 (note_stores): Take an rtx_insn *.
6382 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
6383 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
6384 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
6385 (note_stores): Take an rtx_insn * as argument and process
6386 CALL_INSN_FUNCTION_USAGE. Rename old function to...
6387 (note_pattern_stores): ...this.
6388 (find_first_parameter_load): Pass the insn rather than
6389 its pattern to note_stores.
6390 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
6391 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
6392 (insert_one_insn): Likewise.
6393 * combine.c (combine_instructions): Likewise.
6394 (likely_spilled_retval_p): Likewise.
6395 (try_combine): Use note_pattern_stores instead of note_stores.
6396 (record_dead_and_set_regs): Pass the insn rather than its pattern
6397 to note_stores.
6398 (reg_dead_at_p): Likewise.
6399 * config/bfin/bfin.c (workaround_speculation): Likewise.
6400 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
6401 rather than an rtx.
6402 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
6403 instead of note_stores.
6404 (frv_optimize_membar_local): Pass the insn rather than its pattern
6405 to note_stores.
6406 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
6407 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
6408 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
6409 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
6410 (mips_reorg_process_insns): Likewise.
6411 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
6412 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
6413 rather than rtxes.
6414 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
6415 its pattern to note_stores.
6416 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
6417 of note_stores.
6418 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
6419 the insn to note_stores.
6420 (prescan_insns_for_dce): Update call accordingly.
6421 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
6422 to note_stores.
6423 * df-problems.c (can_move_insns_across): Likewise.
6424 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
6425 * function.c (assign_parm_setup_reg): Likewise.
6426 * gcse-common.c (record_last_mem_set_info_common): Likewise.
6427 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
6428 (single_set_gcse): Likewise.
6429 * ira.c (validate_equiv_mem): Likewise.
6430 (update_equiv_regs): Use note_pattern_stores rather than note_stores
6431 for no_equiv.
6432 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
6433 pattern to note_stores.
6434 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
6435 * loop-iv.c (simplify_using_initial_values): Likewise.
6436 * mode-switching.c (optimize_mode_switching): Likewise.
6437 * optabs.c (emit_libcall_block_1): Likewise.
6438 (expand_atomic_compare_and_swap): Likewise.
6439 * postreload-gcse.c (load_killed_in_block_p): Likewise.
6440 (record_opr_changes): Likewise. Remove explicit handling of
6441 CALL_INSN_FUNCTION_USAGE.
6442 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
6443 * regcprop.c (kill_clobbered_values): Likewise.
6444 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
6445 to note_stores.
6446 * regrename.c (build_def_use): Likewise.
6447 * reload1.c (reload): Use note_pattern_stores instead of note_stores
6448 for mark_not_eliminable.
6449 (reload_as_needed): Pass the insn rather than its pattern
6450 to note_stores.
6451 (emit_output_reload_insns): Likewise.
6452 * resource.c (mark_target_live_regs): Likewise.
6453 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
6454 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
6455 instead of note_stores.
6456 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
6457 its pattern to note_stores.
6458 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
6459 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
6460
6461 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
6462
6463 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
6464 than a #define. Use a structure rather than an array as the
6465 fallback definition. Remove special cases for low array sizes.
6466 (const_hard_reg_set): New typedef.
6467 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
6468 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
6469 (hard_reg_set_empty_p): Likewise.
6470 (SET_HARD_REG_BIT): Use a function rather than a macro to
6471 handle the case in which HARD_REG_SET is a structure.
6472 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
6473 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
6474 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
6475 (IOR_COMPL_HARD_REG_SET): Likewise.
6476 (hard_reg_set_iterator::pset): Constify the pointer target.
6477 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
6478 of a "const HARD_REG_SET". Update the handling of non-integer
6479 HARD_REG_SETs.
6480 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
6481 * reload.h: Likewise.
6482 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
6483 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
6484 of a "const HARD_REG_SET".
6485 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
6486 (range_in_hard_reg_set_p): Likewise.
6487 * ira-costs.c (restrict_cost_classes): Likewise.
6488 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
6489 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
6490 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
6491 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
6492 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
6493 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
6494 take an unsigned int and open-code the HARD_REG_SET operations.
6495
6496 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
6497
6498 * Makefile.in (OBJS): Remove bt-load.o.
6499 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
6500 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
6501 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
6502 document that the option no longer does anything.
6503 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
6504 * target.def (branch_target_register_class): Delete.
6505 (branch_target_register_callee_saved): Likewise.
6506 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
6507 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
6508 * doc/tm.texi: Regenerate.
6509 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
6510 (make_pass_branch_target_load_optimize2): Likewise.
6511 * passes.def (pass_branch_target_load_optimize1): Likewise.
6512 (pass_branch_target_load_optimize2): Likewise.
6513 * targhooks.h (default_branch_target_register_class): Likewise.
6514 * targhooks.c (default_branch_target_register_class): Likewise.
6515 * opt-suggestions.c (test_completion_valid_options): Remove
6516 -fbtr-bb-exclusive from the list of test options.
6517 * bt-load.c: Remove.
6518
6519 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
6520
6521 * match.pd: Add flag_unsafe_math_optimizations check
6522 before deciding on the widest type in a binary math operation.
6523
6524 2019-09-09 Martin Liska <mliska@suse.cz>
6525
6526 * config/i386/i386.opt: Update comment of removed
6527 options that are preserved only for backward
6528 compatibility.
6529
6530 2019-09-09 Jakub Jelinek <jakub@redhat.com>
6531
6532 PR target/87853
6533 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
6534 instead of __v16qs.
6535
6536 PR target/91704
6537 * config/i386/avxintrin.h (__v32qs): New typedef.
6538 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
6539 instead of __v32qi.
6540
6541 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
6542
6543 * doc/invoke.texi (Option Summary): Cover eBPF.
6544 (eBPF Options): New section.
6545 * doc/extend.texi (BPF Built-in Functions): Likewise.
6546 (BPF Kernel Helpers): Likewise.
6547
6548 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
6549
6550 * config.gcc: Support for bpf-*-* targets.
6551 * common/config/bpf/bpf-common.c: New file.
6552 * config/bpf/t-bpf: Likewise.
6553 * config/bpf/predicates.md: Likewise.
6554 * config/bpf/constraints.md: Likewise.
6555 * config/bpf/bpf.opt: Likewise.
6556 * config/bpf/bpf.md: Likewise.
6557 * config/bpf/bpf.h: Likewise.
6558 * config/bpf/bpf.c: Likewise.
6559 * config/bpf/bpf-protos.h: Likewise.
6560 * config/bpf/bpf-opts.h: Likewise.
6561 * config/bpf/bpf-helpers.h: Likewise.
6562 * config/bpf/bpf-helpers.def: Likewise.
6563
6564 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
6565
6566 * doc/sourcebuild.texi (Effective-Target Keywords): Document
6567 indirect_calls.
6568
6569 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
6570
6571 * opt-functions.awk (integer_range_info): Make sure values are in
6572 numeric context before operating with them.
6573
6574 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
6575
6576 * genemit.c (gen_split): Print the filename and line number where the
6577 splitter (or peephole2) was defined, to the dump file.
6578
6579 2019-09-07 Jakub Jelinek <jakub@redhat.com>
6580
6581 PR tree-optimization/91665
6582 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
6583 incompatible with the type of PHI result.
6584
6585 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
6586
6587 PR target/91684
6588 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
6589 gen_unaligned_storedi for 4-byte aligned addresses.
6590
6591 2019-09-06 Jim Wilson <jimw@sifive.com>
6592
6593 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
6594 change.
6595
6596 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
6597
6598 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
6599
6600 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
6601
6602 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
6603 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
6604
6605 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
6606
6607 PR target/91654
6608 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
6609 cost of SSE->integer and integer->SSE moves from 2 to 6.
6610 (core_cost): Ditto.
6611
6612 2019-09-06 Jakub Jelinek <jakub@redhat.com>
6613
6614 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
6615 before testing TYPE_TRANSPARENT_AGGR.
6616 * calls.c (initialize_argument_information, load_register_parameters):
6617 Likewise.
6618
6619 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
6620
6621 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
6622 high regs.
6623 (cmp_ior): Likewise.
6624
6625 2019-09-06 Martin Liska <mliska@suse.cz>
6626
6627 * doc/match-and-simplify.texi: Separate tuples with ;.
6628
6629 2019-09-06 Martin Liska <mliska@suse.cz>
6630
6631 PR c++/91125
6632 * Makefile.in: Remove tlink.o.
6633 * collect2.c (do_link): New function isolated
6634 from do_tlink.
6635 (main): Use.
6636 * collect2.h (do_tlink): Remove declaration of do_tlink.
6637 * doc/extend.texi: Remove documentation of -frepo.
6638 * doc/invoke.texi: Likewise.
6639 * doc/sourcebuild.texi: Remove cleanup-repo-files.
6640 * tlink.c: Remove.
6641
6642 2019-09-05 Jakub Jelinek <jakub@redhat.com>
6643 Jim Wilson <jimw@sifive.com>
6644
6645 PR target/91635
6646 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
6647 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
6648 paradoxical_subreg_p (operands[0]).
6649 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
6650 use as intermediate value.
6651
6652 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
6653
6654 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
6655 (sync_compare_and_swap<mode>_insn): Likewise.
6656
6657 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
6658
6659 PR middle-end/91615
6660 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
6661 without movmisalign optab.
6662
6663 2019-09-05 Jakub Jelinek <jakub@redhat.com>
6664
6665 PR middle-end/91001
6666 PR middle-end/91105
6667 PR middle-end/91106
6668 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
6669 types, use type of their first field instead of type of
6670 args[i].tree_value.
6671
6672 2019-09-05 Richard Biener <rguenther@suse.de>
6673
6674 PR rtl-optimization/91656
6675 * postreload-gcse.c (record_last_mem_set_info): Revert addition
6676 of early out.
6677
6678 2019-09-05 Richard Biener <rguenther@suse.de>
6679
6680 PR middle-end/90501
6681 * tree-inline.c (declare_return_variable): Mark the return
6682 slot as addressable after building an address of it.
6683
6684 2019-09-05 Arnaud Charlet <charlet@adacore.com>
6685
6686 * doc/install.texi: Update and clarify requirements to build GNAT.
6687
6688 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
6689
6690 PR middle-end/91577
6691 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
6692 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
6693 call to be in memory.
6694 (pass_expand::execute): Call discover_nonconstant_array_refs before
6695 setting currently_expanding_to_rtl.
6696
6697 2019-09-04 Caroline Tice <cmtice@google.com>
6698
6699 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
6700 specified together.
6701
6702 2019-09-04 Marek Polacek <polacek@redhat.com>
6703
6704 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
6705
6706 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
6707
6708 PR target/32413
6709 * config/i386/i386.c (inline_secondary_memory_needed): Return true
6710 for QI and HImode moves between SSE and general registers.
6711
6712 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6713
6714 PR c/78736
6715 * doc/invoke.texi: Document -Wenum-conversion.
6716
6717 2019-09-04 Richard Biener <rguenther@suse.de>
6718
6719 PR rtl-optimization/36262
6720 * postreload-gcse.c: Include intl.h and gcse.h.
6721 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
6722 to avoid linear list walk.
6723 (record_last_mem_set_info): Gate off if not computing transparentness.
6724 (get_bb_avail_insn): If transparentness isn't computed give up
6725 early.
6726 (gcse_after_reload_main): Skip compute_transp and extended PRE
6727 if gcse_or_cprop_is_too_expensive says so.
6728
6729 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6730
6731 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
6732 noinit section.
6733 (msp430_select_section): Handle decls with the "noinit" attribute with
6734 default_elf_select_section.
6735 Handle SECCAT_RODATA_MERGE_* section types with
6736 default_elf_select_section.
6737 Add comments about handling of unsupported section types.
6738 (msp430_section_type_flags): Remove handling of the noinit section.
6739
6740 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6741
6742 * config/msp430/msp430.c (msp430_attr): Remove warnings about
6743 conflicting msp430-specific attributes.
6744 (msp430_section_attr): Likewise.
6745 Add warnings about conflicts with generic "noinit" and "section"
6746 attributes.
6747 Fix grammar in -mlarge error message.
6748 (msp430_data_attr): Rename to msp430_persist_attr.
6749 Add warnings about conflicts with generic "noinit" and "section"
6750 attributes.
6751 Add warning for when variable is not initialized.
6752 Chain conditionals which prevent the attribute being added.
6753 (ATTR_EXCL): New helper.
6754 (attr_reent_exclusions): New exclusion table.
6755 (attr_naked_exclusions): Likewise.
6756 (attr_crit_exclusions): Likewise.
6757 (attr_lower_exclusions): Likewise.
6758 (attr_upper_exclusions): Likewise.
6759 (attr_either_exclusions): Likewise.
6760 (attr_persist_exclusions): Likewise.
6761 (msp430_attribute_table): Update with exclusion rules.
6762 (msp430_output_aligned_decl_common): Don't output common symbol if decl
6763 has a section.
6764
6765 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6766
6767 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
6768 (msp430_handle_generic_attribute): New function.
6769 * doc/tm.texi: Regenerate.
6770 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
6771 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
6772 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
6773 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
6774
6775 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
6776
6777 PR tree-optimization/91504
6778 * match.pd: Add ((~a & b) ^a) --> (a | b).
6779
6780 2019-09-03 Jakub Jelinek <jakub@redhat.com>
6781
6782 PR target/91604
6783 * config/i386/i386-expand.c (split_double_mode): If there is more than
6784 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
6785 already split matching MEM operand instead of calling adjust_address
6786 again.
6787
6788 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
6789
6790 * config.gcc: Obsolete spu target. Remove references to spu.
6791 * configure.ac: Remove references to spu.
6792 * configure: Regenerate.
6793 * config/spu/: Remove directory.
6794 * common/config/spu/: Remove directory.
6795
6796 * doc/extend.texi: Remove references to spu.
6797 * doc/invoke.texi: Likewise.
6798 * doc/md.texi: Likewise.
6799 * doc/sourcebuild.texi: Likewise.
6800
6801 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
6802
6803 PR middle-end/91603
6804 PR middle-end/91612
6805 PR middle-end/91613
6806 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
6807 and SSA_NAME referring to CONSTANT_P correctly.
6808
6809 2019-09-03 Richard Biener <rguenther@suse.de>
6810
6811 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
6812 (vn_nary_op_insert): Likewise.
6813 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
6814 (vn_nary_op_lookup): Likewise.
6815 (vn_nary_op_insert): Likewise.
6816
6817 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
6818
6819 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
6820 (*op0, 1) instead of XEXP (*op1, 0).
6821
6822 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6823
6824 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
6825 (aarch64_fjcvtzs): New define_insn.
6826 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
6827 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
6828 Add AARCH64_JSCVT.
6829 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
6830 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
6831 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
6832 __ARM_FEATURE_JCVT where appropriate.
6833 * config/aarch64/arm_acle.h (__jcvt): Define.
6834
6835 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6836
6837 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
6838 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
6839 (aarch64_<frintnzs_op><mode>): New define_insn.
6840 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
6841 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
6842 __ARM_FEATURE_FRINT when appropriate.
6843 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
6844 frint32x, frint64z, frint64x.
6845 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
6846 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
6847 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
6848 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
6849 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
6850 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
6851 * config/aarch64/iterators.md (VSFDF): Define.
6852 (FRINTNZX): Likewise.
6853 (frintnzs_op): Likewise.
6854
6855 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
6856
6857 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
6858 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
6859 Cortex-A34.
6860 * config/aarch64/aarch64-tune.md: Regenerated.
6861 * doc/invoke.texi: Document the new processors.
6862
6863 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6864
6865 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
6866 string.
6867 (ssbs): Likewise.
6868 (sve2): Likewise.
6869 (sve2-sm4): Likewise.
6870 (sveaes): Likewise.
6871 (svesha3): Likewise.
6872 (svebitperm): Likewise.
6873
6874 2019-09-03 Jakub Jelinek <jakub@redhat.com>
6875 Richard Biener <rguenther@suse.de>
6876
6877 PR tree-optimization/91597
6878 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
6879 BIT_AND_EXPR optimization for pointers, even if both operand
6880 ranges don't include NULL, the result can be NULL.
6881
6882 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
6883
6884 PR middle-end/91605
6885 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
6886 (non_mem_decl_p): ...this.
6887 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
6888 (expand_assignment): Call mem_ref_referes_to_non_mem_p
6889 unconditionally as before.
6890
6891 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
6892
6893 PR target/91323
6894 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
6895 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
6896 * tree.def (LTGT_EXPR): Likewise.
6897 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
6898
6899 2019-09-02 Jakub Jelinek <jakub@redhat.com>
6900
6901 PR go/91617
6902 * fold-const.c (range_check_type): For enumeral and boolean
6903 type, pass 1 to type_for_size langhook instead of
6904 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
6905 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
6906 (build_range_check): Don't call unsigned_type_for for pointer types.
6907 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
6908 range_check_type result.
6909
6910 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
6911
6912 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
6913 (replace_ref): Do not replace a chain of only two candidates which are
6914 valid memory references.
6915
6916 2019-09-02 Martin Liska <mliska@suse.cz>
6917
6918 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
6919 Bail out when we'll end up with the same number of clusters as
6920 at the beginning.
6921 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
6922 (jump_table_cluster::can_be_handled): Remove the guard
6923 as it's already handled in ::is_enabled. Allocate output
6924 after early bail out.
6925
6926 2019-09-02 Martin Liska <mliska@suse.cz>
6927
6928 PR gcov-profile/91601
6929 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
6930 (path_contains_zero_or_negative_cycle_arc): ... this and handle
6931 also negative edges.
6932 (circuit): Handle also negative edges as they can happen
6933 in some situations.
6934
6935 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
6936
6937 PR target/91472
6938 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
6939 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
6940 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
6941
6942 2019-09-01 Jakub Jelinek <jakub@redhat.com>
6943
6944 PR middle-end/91623
6945 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
6946 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
6947 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
6948 zero vector.
6949
6950 PR lto/91572
6951 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
6952 GIMPLE_ASM TREE_LIST operands.
6953
6954 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
6955
6956 * doc/generic.texi (Unary and Binary Expressions): Mark up
6957 an instance of TYPE_MIN.
6958
6959 2019-08-31 Stafford Horne <shorne@gmail.com>
6960
6961 * config/or1k/constraints.md (t): New constraint.
6962 * config/or1k/or1k.h (GOT_REGS): New register class.
6963 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
6964
6965 2019-08-30 Jim Wilson <jimw@sifive.com>
6966
6967 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
6968 and -fpic and -mplt then disable -msave-restore and warn.
6969
6970 2019-08-30 Martin Sebor <msebor@redhat.com>
6971
6972 PR middle-end/91599
6973 * tree-ssa-strlen.c (handle_store): Use a fallback location if
6974 the statement doesn't have one.
6975 * gimple-pretty-print.c (percent_G_format): Same.
6976
6977 PR middle-end/91584
6978 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
6979 before using them to validate MEM_REF offset.
6980
6981 2019-08-30 Marek Polacek <polacek@redhat.com>
6982
6983 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
6984
6985 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6986
6987 * config/arm/arm.md (unaligned_loaddi,
6988 unaligned_storedi): New unspec insn patterns.
6989 * config/arm/neon.md (unaligned_storev8qi): Likewise.
6990 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
6991 and unaligned_storedi for 4-byte aligned memory.
6992 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
6993 4-byte aligned memory.
6994
6995 2019-08-30 Martin Jambor <mjambor@suse.cz>
6996
6997 tree-optimization/91579
6998 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
6999 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
7000 appropriate.
7001 (arg_needs_copy_p): Removed.
7002 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
7003 arg_needs_copy_p.
7004 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
7005
7006 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
7007
7008 * config/i386/i386-features.c
7009 (general_scalar_chain::compute_convert_gain):
7010 Correct cost for double-word shifts.
7011 (general_scalar_to_vector_candidate_p): Reject count operands
7012 greater or equal to mode bitsize.
7013
7014 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
7015
7016 * config/i386/i386.c (inline_secondary_memory_needed): Return true
7017 for moves between SSE and non-general registers and between
7018 mask and non-general registers.
7019 (ix86_register_move_cost): Remove stalled comment.
7020
7021 2019-08-29 Richard Biener <rguenther@suse.de>
7022
7023 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
7024 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
7025
7026 2019-08-29 Richard Biener <rguenther@suse.de>
7027
7028 PR bootstrap/91580
7029 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
7030 Do not emit scalar copies for debug-insns, instead replace
7031 their uses with the reg copy used in the chain or reset them
7032 if there is a reaching definition outside of the chain as well.
7033
7034 2019-08-29 Jakub Jelinek <jakub@redhat.com>
7035
7036 PR target/91560
7037 * config/i386/i386-expand.c (expand_vec_perm_movs,
7038 expand_vec_perm_blend, expand_vec_perm_vpermil,
7039 expand_vec_perm_pshufb, expand_vec_perm_1,
7040 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
7041 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
7042 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
7043 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
7044 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
7045 comments - replace ix86_expand_vec_perm_builtin_1 with
7046 ix86_expand_vec_perm_const_1.
7047 (expand_vec_perm2_vperm2f128_vblend): New function.
7048 (ix86_expand_vec_perm_const_1): New forward declaration. Call
7049 expand_vec_perm2_vperm2f128_vblend as last resort.
7050 (canonicalize_perm): Formatting fix.
7051
7052 PR tree-optimization/91351
7053 * tree-cfg.c (generate_range_test): Use range_check_type instead of
7054 unsigned_type_for.
7055 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
7056 range_check_type returns NULL.
7057 * tree-switch-conversion.c (switch_conversion::build_one_array):
7058 Use range_check_type instead of unsigned_type_for, don't perform
7059 linear opt if it returns NULL.
7060 (bit_test_cluster::find_bit_tests): Formatting fix.
7061 (bit_test_cluster::emit): Use range_check_type instead of
7062 unsigned_type_for.
7063 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
7064 returns NULL.
7065
7066 2019-08-29 Richard Biener <rguenther@suse.de>
7067
7068 PR tree-optimization/91568
7069 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
7070 (vect_update_max_nunits): Add overload for poly_uint64.
7071 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
7072 (vect_build_slp_tree): Record max_nunits into the subtree
7073 and merge it upwards.
7074 (vect_print_slp_tree): Print max_nunits.
7075
7076 2019-08-28 Marek Polacek <polacek@redhat.com>
7077
7078 Implement P1152R4: Deprecating some uses of volatile.
7079 PR c++/91361
7080 * doc/invoke.texi: Document -Wvolatile.
7081
7082 2019-08-28 Marek Polacek <polacek@redhat.com>
7083
7084 PR c++/91360 - Implement C++20 P1143R2: constinit.
7085 * doc/invoke.texi: Document -Wc++20-compat.
7086
7087 2019-08-28 Martin Sebor <msebor@redhat.com>
7088
7089 PR tree-optimization/91457
7090 * builtins.c (component_size): New function.
7091 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
7092 * builtins.h (compute_objsize): Add argument.
7093 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
7094 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
7095 (vrp_prop::check_mem_ref): Same.
7096 (vrp_prop::search_for_addr_array): Set no-warning bit.
7097 (check_array_bounds): Same.
7098
7099 2019-08-28 Martin Sebor <msebor@redhat.com>
7100
7101 PR driver/80545
7102 * opts-common.c (option_enabled): Correct checking for language
7103 options.
7104
7105 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
7106
7107 * config/i386/i386.c (ix86_register_move_cost): Do not
7108 limit the cost of moves to/from XMM register to minimum 8.
7109
7110 2019-08-28 Martin Jambor <mjambor@suse.cz>
7111
7112 PR ipa/91468
7113 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
7114 checking assert a normal assert to test it really is redundant.
7115 * ipa-prop.c (compute_complex_assign_jump_func): Removed
7116 redundant test.
7117 (update_jump_functions_after_inlining): Removed combining unary
7118 arithmetic operations with an ancestor jump function.
7119 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
7120 instead of t.
7121
7122 2019-08-28 Richard Biener <rguenther@suse.de>
7123
7124 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
7125 add the MD problem.
7126
7127 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
7128 Richard Biener <rguenther@suse.de>
7129
7130 * expr.c (expand_assignment): Handle misaligned DECLs.
7131 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
7132 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
7133 too.
7134 (assign_parm_setup_stack): Allocate properly aligned stack slots.
7135 * varasm.c (build_constant_desc): Align constants of misaligned types.
7136 * config/arm/predicates.md (aligned_operand): New predicate.
7137 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
7138 aligned_operand to check restrictions on memory addresses.
7139 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
7140 * config/arm/vec-common.md (mov<VALL>): Likewise.
7141
7142 2019-08-28 Jakub Jelinek <jakub@redhat.com>
7143
7144 PR libgomp/91530
7145 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
7146 V_128 iterator instead of VI_128.
7147
7148 2019-08-28 Martin Liska <mliska@suse.cz>
7149
7150 PR tree-optimization/90970
7151 * builtins.c (check_access): Remove assignment to maxread
7152 as it hasn't been used since when it was introduced in r255755.
7153
7154 2019-08-27 Martin Sebor <msebor@redhat.com>
7155
7156 PR tree-optimization/91567
7157 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
7158 of unknown strings.
7159 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
7160 to PTRDIFF_MAX - 2.
7161
7162 2019-08-27 Jeff Law <law@redhat.com>
7163
7164 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
7165 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
7166
7167 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
7168
7169 PR target/91528
7170 * config/i386/i386-features.c (convert_scalars_to_vector):
7171 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
7172 crtl->stack_realign_processed. Update crtl->drap_reg by calling
7173 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
7174 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
7175
7176 2019-08-27 Richard Biener <rguenther@suse.de>
7177
7178 * config/i386/i386-features.h
7179 (general_scalar_chain::~general_scalar_chain): Add.
7180 (general_scalar_chain::insns_conv): New bitmap.
7181 (general_scalar_chain::n_sse_to_integer): New.
7182 (general_scalar_chain::n_integer_to_sse): Likewise.
7183 (general_scalar_chain::make_vector_copies): Adjust signature.
7184 * config/i386/i386-features.c
7185 (general_scalar_chain::general_scalar_chain): Outline,
7186 initialize new members.
7187 (general_scalar_chain::~general_scalar_chain): New.
7188 (general_scalar_chain::mark_dual_mode_def): Record insns
7189 we need to insert conversions at and count them.
7190 (general_scalar_chain::compute_convert_gain): Account
7191 for conversion instructions at chain boundary.
7192 (general_scalar_chain::make_vector_copies): Generate a single
7193 copy for a def by a specific insn.
7194 (general_scalar_chain::convert_registers): First populate
7195 defs_map, then make copies at out-of chain insns.
7196
7197 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
7198
7199 * config/arm/arm.md (stack_protect_set_insn): Add security-related
7200 comment.
7201 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
7202
7203 2019-08-27 Martin Liska <mliska@suse.cz>
7204
7205 * cgraph.c (cgraph_node::remove): Remove dead assignment before
7206 loop.
7207 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
7208 Enclose in anonymous namespace.
7209 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
7210 hard_register initialization in braces.
7211 * tree-vrp.h (value_range_base::supports_type_p): Return false
7212 for function with boolean return type.
7213
7214 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
7215
7216 * config/i386/i386.c (emit_i387_cw_initialization)
7217 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
7218
7219 2019-08-26 Martin Sebor <msebor@redhat.com>
7220
7221 PR c++/83431
7222 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
7223 (sprintf_dom_walker): Remove class.
7224 (get_int_range): Make argument const.
7225 (directive::fmtfunc, directive::set_precision): Same.
7226 (format_none): Same.
7227 (build_intmax_type_nodes): Same.
7228 (adjust_range_for_overflow): Same.
7229 (format_floating): Same.
7230 (format_character): Same.
7231 (format_string): Same.
7232 (format_plain): Same.
7233 (get_int_range): Cast away constness.
7234 (format_integer): Same.
7235 (get_string_length): Call get_range_strlen_dynamic. Handle
7236 null lendata.maxbound.
7237 (should_warn_p): Adjust argument scope qualifier.
7238 (maybe_warn): Same.
7239 (format_directive): Same.
7240 (parse_directive): Same.
7241 (is_call_safe): Same.
7242 (try_substitute_return_value): Same.
7243 (sprintf_dom_walker::handle_printf_call): Rename...
7244 (handle_printf_call): ...to this. Initialize target to host charmap
7245 here instead of in pass_sprintf_length::execute.
7246 (struct call_info): Make global.
7247 (sprintf_dom_walker::compute_format_length): Make global.
7248 (sprintf_dom_walker::handle_gimple_call): Same.
7249 * passes.def (pass_sprintf_length): Replace with pass_strlen.
7250 * print-rtl.c (print_pattern): Reduce the number of spaces to
7251 avoid -Wformat-truncation.
7252 * tree-pass.h (make_pass_warn_printf): New function.
7253 * tree-ssa-strlen.c (strlen_optimize): New variable.
7254 (get_string_length): Add comments.
7255 (get_range_strlen_dynamic): New function.
7256 (check_and_optimize_call): New function.
7257 (handle_integral_assign): New function.
7258 (strlen_check_and_optimize_stmt): Factor code out into
7259 strlen_check_and_optimize_call and handle_integral_assign.
7260 (strlen_dom_walker::evrp): New member.
7261 (strlen_dom_walker::before_dom_children): Use evrp member.
7262 (strlen_dom_walker::after_dom_children): Use evrp member.
7263 (printf_strlen_execute): New function.
7264 (pass_strlen::gate): Update to handle printf calls.
7265 (dump_strlen_info): New function.
7266 (pass_data_warn_printf): New variable.
7267 (pass_warn_printf): New class.
7268 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
7269 (handle_printf_call): Same.
7270 * tree-vrp.c (value_range_base::type): Adjust assertion.
7271 * vr-values.c (vr_values::update_value_range): Use type of the first
7272 argument rather than the second.
7273
7274 2019-08-26 Richard Biener <rguenther@suse.de>
7275
7276 * config/i386/i386-features.c (general_remove_non_convertible_regs):
7277 Remove.
7278 (convert_scalars_to_vector): Do not call it.
7279
7280 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
7281 Uros Bizjak <ubizjak@gmail.com>
7282
7283 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
7284 CASE_MATHFN_FLOATN for roundeven.
7285 * config/i386/i386.c (ix86_i387_mode_needed): Add case
7286 I387_ROUNDEVEN.
7287 (ix86_mode_needed): Likewise.
7288 (ix86_mode_after): Likewise.
7289 (ix86_mode_entry): Likewise.
7290 (ix86_mode_exit): Likewise.
7291 (ix86_emit_mode_set): Likewise.
7292 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
7293 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
7294 (ix86_entity): Add I387_ROUNDEVEN.
7295 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
7296 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
7297 (define_int_iterator): Likewise.
7298 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
7299 (define_constant): Define ROUND_ROUNDEVEN mode.
7300 (define_attr): Add roundeven mode for i387_cw.
7301 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
7302 * internal-fn.def (ROUNDEVEN): New builtin function.
7303 * optabs.def (roundeven_optab): New optab.
7304
7305 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
7306
7307 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
7308 for ROUNDEVEN.
7309 * builtins.def: Added function definitions for roundeven function
7310 variants.
7311 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
7312 function call. Adjust condition for floor, ceil, trunc and round.
7313 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
7314 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
7315 (integer_valued_real_call_p): Added case for roundeven function.
7316 * real.c (is_even): New function. Returns true if real number is even,
7317 otherwise returns false.
7318 (is_halfway_below): New function. Returns true if real number is
7319 halfway between two integers, else return false.
7320 (real_roundeven): New function. Round real number to nearest integer,
7321 rounding halfway cases towards even.
7322 * real.h (real_value): Added descriptive comments. Added function
7323 declaration for roundeven function.
7324 * doc/extend.texi (Other Builtins): List roundeven variants among
7325 functions which can be handled as builtins.
7326
7327 2019-08-26 Richard Biener <rguenther@suse.de>
7328
7329 PR target/91522
7330 PR target/91527
7331 * config/i386/i386-features.h (general_scalar_chain::defs_map):
7332 New member.
7333 (general_scalar_chain::replace_with_subreg): Remove.
7334 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
7335 (general_scalar_chain::convert_reg): Adjust signature.
7336 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
7337 iterate over all defs of a reg.
7338 (general_scalar_chain::replace_with_subreg): Remove.
7339 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
7340 (general_scalar_chain::make_vector_copies): Populate defs_map,
7341 place copy only after defs that are used as vectors in the chain.
7342 (general_scalar_chain::convert_reg): Emit a copy for a specific
7343 def in a specific instruction.
7344 (general_scalar_chain::convert_op): All reg uses are converted here.
7345 (general_scalar_chain::convert_insn): Emit copies for scalar
7346 uses of defs here. Replace uses with the copies we created.
7347 Replace and convert the def. Adjust REG_DEAD notes, remove
7348 REG_EQUIV/EQUAL notes.
7349 (general_scalar_chain::convert_registers): Only handle copies
7350 into the chain here.
7351
7352 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
7353
7354 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
7355
7356 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
7357
7358 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
7359 Add nop_convert case.
7360 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
7361 Fold all statements if requested.
7362 * tree-ssa-propagate.h (class substitute_and_fold_engine):
7363 Allow to fold all statements.
7364 * tree-vrp.c (class vrp_folder):
7365 Let substitute_and_fold_engine fold all statements.
7366
7367 2019-08-26 Richard Biener <rguenther@suse.de>
7368
7369 PR tree-optimization/91526
7370 * passes.def: Note that after late FRE we do TODO_update_address_taken.
7371 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
7372 TODO_update_address_taken.
7373
7374 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
7375
7376 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
7377 __STDC_HOSTED__.
7378
7379 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7380
7381 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
7382 machine mode for unspec_volatile operand.
7383
7384 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7385
7386 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
7387 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
7388 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
7389 (prefer_neon_for_64bits): Remove.
7390 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
7391 (tune_params): Remove PREF_NEON_64_FALSE uses.
7392 (arm_option_override): Remove prefer_neon selection code.
7393 (arm_print_tune_info): Remove prefer_neon_for_64bits.
7394 * gcc/config/arm/arm-protos.h (tune_params): Remove
7395 prefer_neon_for_64bits.
7396 (prefer_neon_for_64bits): Remove.
7397
7398 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
7399
7400 PR pch/61250
7401 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
7402 and issue any diagnostics needed before collecting the pre-PCH
7403 state.
7404
7405 2019-08-23 Jakub Jelinek <jakub@redhat.com>
7406
7407 PR middle-end/91283
7408 * common.opt (fexcess-precision=): Add Optimization flag. Use
7409 flag_excess_precision variable instead of
7410 flag_excess_precision_cmdline.
7411 * flags.h (class target_flag_state): Remove x_flag_excess_precision
7412 member.
7413 (flag_excess_precision): Don't define.
7414 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
7415 flag_excess_precision_cmdline. Remove comment.
7416 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
7417 and x_flag_excess_precision instead of
7418 frontend_set_flag_excess_precision_cmdline and
7419 x_flag_excess_precision_cmdline.
7420 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
7421 x_flag_excess_precision_cmdline.
7422 * toplev.c (init_excess_precision): Remove.
7423 (lang_dependent_init_target): Don't call it.
7424
7425 2019-08-23 Martin Liska <mliska@suse.cz>
7426
7427 * lto-wrapper.c (run_gcc): When setting jobserver
7428 set also parallel to 1. This was done so before r273908.
7429
7430 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
7431
7432 * config/arm/arm-cpus.in (cortex-m35p): New entry.
7433 (cortex-a76ae): Likewise.
7434 (cortex-a77): Likewise
7435 * config/arm/arm-tables.opt: Regenerate.
7436 * config/arm/arm-tune.md: Likewise.
7437 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
7438 cortex-a77 CPU options.
7439
7440 2019-08-23 Martin Liska <mliska@suse.cz>
7441
7442 * profile.c (instrument_values): Do not set
7443 0 as last argument.
7444 * tree-profile.c (gimple_gen_interval_profiler): Remove
7445 last argument.
7446 (gimple_gen_pow2_profiler): Likewise.
7447 (gimple_gen_topn_values_profiler): Likewise.
7448 (gimple_gen_ic_profiler): Likewise.
7449 (gimple_gen_time_profiler): Likewise.
7450 (gimple_gen_average_profiler): Likewise.
7451 (gimple_gen_ior_profiler): Likewise.
7452 * value-prof.c (dump_histogram_value): Use default
7453 in switch statement instead of HIST_TYPE_MAX.
7454 (stream_in_histogram_value): Likewise.
7455 (gimple_duplicate_stmt_histograms): Do not
7456 use NULL for implicitly set arguments.
7457 (gimple_divmod_values_to_profile): Do not use
7458 reserve+quick_push.
7459 (gimple_indirect_call_to_profile): Likewise.
7460 (gimple_find_values_to_profile): Use implicit
7461 function call arguments.
7462 * value-prof.h (gimple_alloc_histogram_value):
7463 Set default values.
7464 (gimple_gen_interval_profiler): Remove last argument.
7465 (gimple_gen_pow2_profiler): Likewise.
7466 (gimple_gen_topn_values_profiler): Likewise.
7467 (gimple_gen_ic_profiler): Likewise.
7468 (gimple_gen_time_profiler): Likewise.
7469 (gimple_gen_average_profiler): Likewise.
7470 (gimple_gen_ior_profiler): Likewise.
7471
7472 2019-08-22 Martin Sebor <msebor@redhat.com>
7473
7474 PR middle-end/91490
7475 * builtins.c (c_strlen): Rename argument and introduce new local.
7476 Set no-warning bit on original argument.
7477 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
7478 Fold empty and zero constructors into empty strings.
7479 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
7480 for missing initializers.
7481 * tree.c (build_string_literal): Handle optional argument.
7482 * tree.h (build_string_literal): Add defaulted argument.
7483 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
7484 no-warning bit on original expression.
7485
7486 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
7487
7488 PR target/91481
7489 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
7490 and UNSPEC_DARN_RAW.
7491 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
7492 UNSPECV_DARN_RAW.
7493 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
7494 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
7495 (darn): Use an unspec_volatile, and UNSPECV_DARN.
7496
7497 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
7498
7499 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
7500 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
7501 * config/rs6000/rs6000.md (unspec): ... here.
7502 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
7503 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
7504 cmpeqb, *cmpeqb_internal): Delete, move to...
7505 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
7506 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
7507 cmpeqb, *cmpeqb_internal): ... here.
7508
7509 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7510
7511 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
7512 intrinsics if __ARM_FP.
7513 Use __ARM_FEATURE_CRC32 ifdef guard.
7514
7515 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
7516
7517 * config/arm/arm.md (neon_for_64bits): Remove.
7518 (avoid_neon_for_64bits): Remove.
7519 (arm_adddi3): Always split early.
7520 (arm_subdi3): Always split early.
7521 (negdi2): Remove Neon expansion.
7522 (split zero_extend): Split before reload.
7523 (split sign_extend): Split before reload.
7524
7525 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
7526
7527 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
7528 (qhs_extenddi_cstr): Likewise.
7529 * config/arm/arm.md (ashldi3): Always expand early.
7530 (ashlsi3): Likewise.
7531 (ashrsi3): Likewise.
7532 (zero_extend<mode>di2): Remove Neon variants.
7533 (extend<mode>di2): Likewise.
7534 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
7535 (signed_shift_di3_neon): Likewise.
7536 (unsigned_shift_di3_neon): Likewise.
7537 (ashrdi3_neon_imm_noclobber): Likewise.
7538 (lshrdi3_neon_imm_noclobber): Likewise.
7539 (<shift>di3_neon): Likewise.
7540 (split extend): Remove DI extend split patterns.
7541
7542 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
7543
7544 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
7545 (split not): Add DImode not splitter.
7546 (anddi3): Remove pattern.
7547 (anddi3_insn): Likewise.
7548 (anddi_zesidi_di): Likewise.
7549 (anddi_sesdi_di): Likewise.
7550 (anddi_notdi_di): Likewise.
7551 (anddi_notzesidi_di): Likewise.
7552 (anddi_notsesidi_di): Likewise.
7553 (iordi3): Likewise.
7554 (iordi3_insn): Likewise.
7555 (iordi_zesidi_di): Likewise.
7556 (iordi_sesidi_di): Likewise.
7557 (xordi3): Likewise.
7558 (xordi3_insn): Likewise.
7559 (xordi_sesidi_di): Likewise.
7560 (xordi_zesidi_di): Likewise.
7561 (one_cmpldi2): Likewise.
7562 (one_cmpldi2_insn): Likewise.
7563 * config/arm/constraints.md: Remove De, Df, Dg constraints.
7564 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
7565 alternative.
7566 (iwmmxt_xordi3): Likewise.
7567 (iwmmxt_anddi3): Likewise.
7568 * config/arm/neon.md (orndi3_neon): Remove pattern.
7569 (anddi_notdi_di): Likewise.
7570 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
7571 (arm_iordi_operand_neon): Likewise.
7572 (arm_xordi_operand_neon): Likewise.
7573 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
7574 (iordi_notzesidi_di): Likewise.
7575 (iordi_notdi_zesidi): Likewise.
7576 (iordi_notsesidi_di): Likewise.
7577
7578 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
7579
7580 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
7581 insn.
7582 (iorsi3_compare0_scratch): Likewise.
7583
7584 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
7585
7586 * config/aarch64/aarch64-simd-builtins.def:
7587 (ld1x4): New.
7588 (st1x4): Likewise.
7589 * config/aarch64/aarch64-simd.md:
7590 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
7591 (aarch64_st1x4<VALLDIF:mode>): Likewise.
7592 (aarch64_ld1_x4_<mode>): Likewise.
7593 (aarch64_st1_x4_<mode>): Likewise.
7594 * config/aarch64/arm_neon.h:
7595 (vld1_s8_x4): New function.
7596 (vld1q_s8_x4): Likewise.
7597 (vld1_s16_x4): Likewise.
7598 (vld1q_s16_x4): Likewise.
7599 (vld1_s32_x4): Likewise.
7600 (vld1q_s32_x4): Likewise.
7601 (vld1_u8_x4): Likewise.
7602 (vld1q_u8_x4): Likewise.
7603 (vld1_u16_x4): Likewise.
7604 (vld1q_u16_x4): Likewise.
7605 (vld1_u32_x4): Likewise.
7606 (vld1q_u32_x4): Likewise.
7607 (vld1_f16_x4): Likewise.
7608 (vld1q_f16_x4): Likewise.
7609 (vld1_f32_x4): Likewise.
7610 (vld1q_f32_x4): Likewise.
7611 (vld1_p8_x4): Likewise.
7612 (vld1q_p8_x4): Likewise.
7613 (vld1_p16_x4): Likewise.
7614 (vld1q_p16_x4): Likewise.
7615 (vld1_s64_x4): Likewise.
7616 (vld1_u64_x4): Likewise.
7617 (vld1_p64_x4): Likewise.
7618 (vld1q_s64_x4): Likewise.
7619 (vld1q_u64_x4): Likewise.
7620 (vld1q_p64_x4): Likewise.
7621 (vld1_f64_x4): Likewise.
7622 (vld1q_f64_x4): Likewise.
7623 (vst1_s8_x4): Likewise.
7624 (vst1q_s8_x4): Likewise.
7625 (vst1_s16_x4): Likewise.
7626 (vst1q_s16_x4): Likewise.
7627 (vst1_s32_x4): Likewise.
7628 (vst1q_s32_x4): Likewise.
7629 (vst1_u8_x4): Likewise.
7630 (vst1q_u8_x4): Likewise.
7631 (vst1_u16_x4): Likewise.
7632 (vst1q_u16_x4): Likewise.
7633 (vst1_u32_x4): Likewise.
7634 (vst1q_u32_x4): Likewise.
7635 (vst1_f16_x4): Likewise.
7636 (vst1q_f16_x4): Likewise.
7637 (vst1_f32_x4): Likewise.
7638 (vst1q_f32_x4): Likewise.
7639 (vst1_p8_x4): Likewise.
7640 (vst1q_p8_x4): Likewise.
7641 (vst1_p16_x4): Likewise.
7642 (vst1q_p16_x4): Likewise.
7643 (vst1_s64_x4): Likewise.
7644 (vst1_u64_x4): Likewise.
7645 (vst1_p64_x4): Likewise.
7646 (vst1q_s64_x4): Likewise.
7647 (vst1q_u64_x4): Likewise.
7648 (vst1q_p64_x4): Likewise.
7649 (vst1_f64_x4): Likewise.
7650 (vst1q_f64_x4): Likewise.
7651
7652 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7653
7654 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
7655
7656 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7657 Richard Sandiford <richard.sandiford@arm.com>
7658
7659 PR target/88839
7660 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
7661 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
7662
7663 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7664
7665 PR target/90724
7666 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
7667 in reg if it fails aarch64_plus_operand predicate.
7668
7669 2019-08-21 Richard Biener <rguenther@suse.de>
7670
7671 PR tree-optimization/91482
7672 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
7673 BUILT_IN_ASSUME_ALIGNED calls.
7674
7675 2019-08-21 Richard Biener <rguenther@suse.de>
7676
7677 PR target/91498
7678 PR target/91503
7679 * config/i386/i386-features.c
7680 (general_scalar_chain::make_vector_copies): Copy stack temporary
7681 rtx when using it multiple times.
7682 (general_scalar_chain::convert_reg): Likewise.
7683
7684 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7685
7686 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
7687
7688 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
7689
7690 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
7691 catch more redundant zero initialization cases.
7692 (dse_dom_walker::dse_optimize_stmt): Likewise.
7693
7694 2019-08-20 Richard Biener <rguenther@suse.de>
7695
7696 PR lto/91307
7697 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
7698 by collect2 when targetm.have_ctors_dtors which avoids dragging
7699 in temporary filenames from LTO input objects.
7700
7701 2019-08-20 Richard Biener <rguenther@suse.de>
7702
7703 PR tree-optimization/37242
7704 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
7705 to (T)a + (T)b if we know that a + b does not overflow.
7706
7707 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
7708
7709 PR rtl-optimization/91347
7710 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
7711 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
7712
7713 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7714
7715 * calls.h (function_arg_info): Add a pass_by_reference field,
7716 defaulting to false.
7717 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
7718 when applying pass-by-reference semantics.
7719 (initialize_argument_information): Likewise.
7720 (emit_library_call_value_1): Likewise.
7721 * function.c (assign_parm_data_one): Remove passed_pointer field.
7722 (assign_parm_find_data_types): Don't set it.
7723 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
7724 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
7725 arg.pass_by_reference instead of passed_pointer.
7726
7727 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7728
7729 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
7730 into a single function_arg_info, updating its fields when we
7731 apply pass-by-reference and promotion semantics. Use the
7732 function_arg_info to track the mode rather than keeping it in
7733 a separate local variable.
7734 (initialize_argument_information): Likewise. Base the final
7735 arg_to_skip on this new function_arg_info rather than creating
7736 a new one from scratch.
7737
7738 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7739
7740 * function.c (assign_parm_data_one): Replace passed_type,
7741 promoted_mode and named_arg with a function_arg_info field.
7742 (assign_parm_find_data_types): Remove local variables and
7743 assign directly to "data". Make data->passed_mode shadow
7744 data->arg.mode until promotion, then assign the promoted
7745 mode to data->arg.mode.
7746 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
7747 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
7748 (assign_parm_remove_parallels, assign_parm_setup_block_p)
7749 (assign_parm_setup_block, assign_parm_setup_reg)
7750 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
7751 arg.mode instead of promoted_mode, arg.type instead of passed_type
7752 and arg.named instead of named_arg. Use data->arg for
7753 function_arg_info structures that had the field values passed_type,
7754 promoted_mode and named_arg. Base other function_arg_infos on
7755 data->arg, changing the necessary properties.
7756
7757 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7758
7759 * calls.h (apply_pass_by_reference_rules): Declare.
7760 * calls.c (apply_pass_by_reference_rules): New function.
7761 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
7762 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
7763 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
7764 * function.c (assign_parm_find_data_types): Likewise.
7765 * var-tracking.c (prepare_call_arguments): Likewise.
7766
7767 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7768
7769 * target.def (must_pass_in_stack): Take a function_arg_info instead
7770 of a mode and a type.
7771 * doc/tm.texi: Regenerate.
7772 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
7773 instead of a mode and a type.
7774 (must_pass_in_stack_var_size_or_pad): Likewise.
7775 * calls.c (must_pass_in_stack_var_size): Likewise.
7776 (must_pass_in_stack_var_size_or_pad): Likewise.
7777 (initialize_argument_information): Update call to
7778 targetm.calls.must_pass_in_stack.
7779 (must_pass_va_arg_on_stack): Likewise.
7780 * function.c (assign_parm_find_entry_rtl): Likewise.
7781 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
7782 * config/alpha/alpha.c (alpha_function_arg): Likewise.
7783 (alpha_function_arg_advance): Likewise.
7784 * config/cr16/cr16.c (cr16_function_arg): Likewise.
7785 (cr16_function_arg_advance): Likewise.
7786 * config/cris/cris.c (cris_pass_by_reference): Likewise.
7787 (cris_arg_partial_bytes): Likewise.
7788 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
7789 * config/lm32/lm32.c (lm32_function_arg): Likewise.
7790 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
7791 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
7792 * config/mips/mips.c (mips_pass_by_reference): Likewise.
7793 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
7794 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
7795 * config/sh/sh.c (sh_pass_by_reference): Likewise.
7796 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
7797 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
7798 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
7799 instead of a mode and a type.
7800 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
7801 (fr30_num_arg_regs): Likewise.
7802 (fr30_setup_incoming_varargs): Update calls accordingly.
7803 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
7804 (fr30_function_arg_advance): Likewise.
7805 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
7806 instead of a mode and a type.
7807 * config/gcn/gcn.c (num_arg_regs): Likewise.
7808 (gcn_function_arg, gcn_function_arg_advance): Update calls to
7809 num_arg_regs and targetm.calls.must_pass_in_stack.
7810 (gcn_arg_partial_bytes): Likewise.
7811 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
7812 function_arg_info instead of a mode and a type.
7813 (classify_argument): Update call accordingly.
7814 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
7815 function_arg_info instead of a mode and a type.
7816 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
7817 Likewise.
7818 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
7819 (rs6000_parm_needs_stack): Update call accordingly.
7820 (setup_incoming_varargs): Likewise.
7821
7822 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7823
7824 * target.def (callee_copies): Take a function_arg_info instead
7825 of a mode, type and named flag.
7826 * doc/tm.texi: Regenerate.
7827 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
7828 instead of a mode, type and named flag.
7829 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
7830 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
7831 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
7832 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
7833 instead of a mode, type and named flag.
7834 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
7835 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
7836 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
7837 * calls.h (reference_callee_copied): Take a function_arg_info
7838 instead of a mode, type and named flag.
7839 * calls.c (reference_callee_copied): Likewise.
7840 (initialize_argument_information): Update call accordingly.
7841 (emit_library_call_value_1): Likewise.
7842 * function.c (gimplify_parameters): Likewise.
7843 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
7844 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
7845 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
7846 * config/c6x/c6x.c (c6x_callee_copies): Delete.
7847 (TARGET_CALLEE_COPIES): Define to
7848 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
7849 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
7850 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
7851 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
7852 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
7853 instead of a mode, type and named flag.
7854 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
7855 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
7856 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
7857 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
7858 * config/msp430/msp430.c (msp430_callee_copies): Delete.
7859 (TARGET_CALLEE_COPIES): Define to
7860 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
7861 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
7862 instead of a mode, type and named flag.
7863 * config/sh/sh.c (sh_callee_copies): Likewise.
7864 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
7865 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
7866 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
7867
7868 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7869
7870 * target.def (function_arg_advance): Take a function_arg_info instead
7871 of a mode, type and named flag.
7872 * doc/tm.texi: Regenerate.
7873 * targhooks.h (default_function_arg_advance): Take a function_arg_info
7874 instead of a mode, type and named flag.
7875 * targhooks.c (default_function_arg_advance): Likewise.
7876 * calls.c (initialize_argument_information): Update call to
7877 targetm.calls.function_arg_advance.
7878 (emit_library_call_value_1): Likewise.
7879 * dse.c (get_call_args): Likewise.
7880 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7881 * function.c (assign_parms, gimplify_parameters): Likewise.
7882 * var-tracking.c (prepare_call_arguments): Likewise.
7883 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
7884 function_arg_info instead of a mode, type and named flag.
7885 (aarch64_setup_incoming_varargs): Update call accordingly.
7886 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
7887 function_arg_info instead of a mode, type and named flag.
7888 (alpha_setup_incoming_varargs): Update call accordingly.
7889 * config/arc/arc.c (arc_function_arg_advance): Take a
7890 function_arg_info instead of a mode, type and named flag.
7891 (arc_setup_incoming_varargs): Update call accordingly.
7892 * config/arm/arm.c (arm_function_arg_advance): Take a
7893 function_arg_info instead of a mode, type and named flag.
7894 (cmse_func_args_or_return_in_stack): Update call accordingly.
7895 (arm_function_ok_for_sibcall): Likewise.
7896 (cmse_nonsecure_call_clear_caller_saved): Likewise.
7897 * config/avr/avr.c (avr_function_arg_advance): Take a
7898 function_arg_info instead of a mode, type and named flag.
7899 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
7900 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
7901 (c6x_call_saved_register_used): Update call accordingly.
7902 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
7903 function_arg_info instead of a mode, type and named flag.
7904 * config/cris/cris.c (cris_function_arg_advance): Likewise.
7905 * config/csky/csky.c (csky_function_arg_advance): Likewise.
7906 (csky_setup_incoming_varargs): Update call accordingly.
7907 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
7908 function_arg_info instead of a mode, type and named flag.
7909 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
7910 * config/frv/frv.c (frv_function_arg_advance): Likewise.
7911 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
7912 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
7913 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
7914 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
7915 (ix86_setup_incoming_varargs): Update call accordingly.
7916 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
7917 function_arg_info instead of a mode, type and named flag.
7918 (ia64_setup_incoming_varargs): Update call accordingly.
7919 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
7920 function_arg_info instead of a mode, type and named flag.
7921 (iq2000_expand_prologue): Update call accordingly.
7922 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
7923 function_arg_info instead of a mode, type and named flag.
7924 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
7925 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
7926 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
7927 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
7928 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
7929 Likewise.
7930 (microblaze_expand_prologue): Update call accordingly.
7931 * config/mips/mips.c (mips_function_arg_advance): Take a
7932 function_arg_info instead of a mode, type and named flag.
7933 (mips_setup_incoming_varargs): Update call accordingly.
7934 (mips_output_args_xfer): Likewise.
7935 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
7936 function_arg_info instead of a mode, type and named flag.
7937 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
7938 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
7939 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
7940 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
7941 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
7942 (nios2_setup_incoming_varargs): Update call accordingly.
7943 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
7944 function_arg_info instead of a mode, type and named flag.
7945 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
7946 * config/pa/pa.c (pa_function_arg_advance): Likewise.
7947 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
7948 * config/pru/pru.c (pru_function_arg_advance): Likewise.
7949 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
7950 (riscv_setup_incoming_varargs): Update call accordingly.
7951 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
7952 function_arg_info instead of a mode, type and named flag.
7953 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
7954 Likewise.
7955 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
7956 (rs6000_parm_needs_stack): Update call accordingly.
7957 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
7958 instead of a mode, type and named flag.
7959 * config/s390/s390.c (s390_function_arg_advance): Likewise.
7960 (s390_call_saved_register_used): Update call accordingly.
7961 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
7962 instead of a mode, type and named flag.
7963 (sh_output_mi_thunk): Update call accordingly.
7964 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
7965 function_arg_info instead of a mode, type and named flag.
7966 * config/spu/spu.c (spu_function_arg_advance): Likewise.
7967 (spu_setup_incoming_varargs): Update call accordingly.
7968 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
7969 function_arg_info instead of a mode, type and named flag.
7970 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
7971 (tilegx_setup_incoming_varargs): Update call accordingly.
7972 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
7973 function_arg_info instead of a mode, type and named flag.
7974 (tilegx_setup_incoming_varargs): Update call accordingly.
7975 * config/v850/v850.c (v850_function_arg_advance): Take a
7976 function_arg_info instead of a mode, type and named flag.
7977 * config/vax/vax.c (vax_function_arg_advance): Likewise.
7978 * config/visium/visium.c (visium_function_arg_advance): Likewise.
7979 (visium_setup_incoming_varargs): Update call accordingly.
7980 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
7981 function_arg_info instead of a mode, type and named flag.
7982
7983 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7984
7985 * target.def (function_arg, function_incoming_arg): Take a
7986 function_arg_info instead of a mode, tree and named flag.
7987 * doc/tm.texi: Regenerate.
7988 * targhooks.h (default_function_arg): Take a function_arg_info
7989 instead of a mode, tree and named flag.
7990 (default_function_incoming_arg): Likewise.
7991 * targhooks.c (default_function_arg): Likewise.
7992 (default_function_incoming_arg): Likewise.
7993 * calls.h (function_arg_info::end_marker_p): New function.
7994 (function_arg_info::end_marker): Likewise.
7995 * calls.c (prepare_call_address, initialize_argument_information)
7996 (expand_call, emit_library_call_value_1): Update calls to
7997 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
7998 * dse.c: Include calls.h.
7999 (get_call_args): Update call to targetm.calls.function_arg.
8000 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
8001 * var-tracking.c (prepare_call_arguments): Likewise.
8002 * function.c (assign_parm_find_entry_rtl): Update call to
8003 targetm.calls.function_incoming_arg.
8004 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
8005 function_arg_info instead of a mode, tree and named flag.
8006 * config/alpha/alpha.c (alpha_function_arg): Likewise.
8007 * config/arc/arc.c (arc_function_arg): Likewise.
8008 * config/arm/arm.c (arm_function_arg): Likewise.
8009 (cmse_func_args_or_return_in_stack): Update call accordingly.
8010 (arm_function_ok_for_sibcall): Likewise.
8011 (cmse_nonsecure_call_clear_caller_saved): Likewise.
8012 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
8013 instead of a mode, tree and named flag.
8014 * config/bfin/bfin.c (bfin_function_arg): Likewise.
8015 * config/c6x/c6x.c (c6x_function_arg): Likewise.
8016 (c6x_call_saved_register_used): Update call accordingly.
8017 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
8018 instead of a mode, tree and named flag.
8019 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
8020 (cris_function_arg_1): Likewise.
8021 * config/csky/csky.c (csky_function_arg): Likewise.
8022 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
8023 * config/fr30/fr30.c (fr30_function_arg): Likewise.
8024 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
8025 (frv_function_arg_1): Likewise.
8026 * config/ft32/ft32.c (ft32_function_arg): Likewise.
8027 * config/gcn/gcn.c (gcn_function_arg): Likewise.
8028 * config/h8300/h8300.c (h8300_function_arg): Likewise.
8029 * config/i386/i386.c (ix86_function_arg): Likewise.
8030 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
8031 (ia64_function_arg_1): Likewise.
8032 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
8033 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
8034 accordingly.
8035 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
8036 instead of a mode, tree and named flag.
8037 * config/m32c/m32c.c (m32c_function_arg): Likewise.
8038 * config/m32r/m32r.c (m32r_function_arg): Likewise.
8039 * config/m68k/m68k.c (m68k_function_arg): Likewise.
8040 * config/mcore/mcore.c (mcore_function_arg): Likewise.
8041 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
8042 (microblaze_expand_prologue): Update call accordingly.
8043 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
8044 instead of a mode, tree and named flag.
8045 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
8046 (mmix_function_arg_1): Likewise.
8047 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
8048 * config/moxie/moxie.c (moxie_function_arg): Likewise.
8049 * config/msp430/msp430.c (msp430_function_arg): Likewise.
8050 * config/nds32/nds32.c (nds32_function_arg): Likewise.
8051 * config/nios2/nios2.c (nios2_function_arg): Likewise.
8052 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
8053 (nvptx_function_incoming_arg): Likewise.
8054 * config/or1k/or1k.c (or1k_function_arg): Likewise.
8055 * config/pa/pa.c (pa_function_arg): Likewise.
8056 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
8057 * config/pru/pru.c (pru_function_arg): Likewise.
8058 * config/riscv/riscv.c (riscv_function_arg): Likewise.
8059 * config/rl78/rl78.c (rl78_function_arg): Likewise.
8060 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
8061 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
8062 (rs6000_parm_needs_stack): Update call accordingly.
8063 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
8064 instead of a mode, tree and named flag.
8065 * config/s390/s390.c (s390_function_arg): Likewise.
8066 (s390_call_saved_register_used): Update call accordingly.
8067 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
8068 instead of a mode, tree and named flag.
8069 (sh_output_mi_thunk): Update call accordingly.
8070 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
8071 (sparc_function_incoming_arg): Take a function_arg_info instead of
8072 a mode, tree and named flag.
8073 * config/spu/spu.c (spu_function_arg): Likewise.
8074 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
8075 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
8076 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
8077 * config/v850/v850.c (v850_function_arg): Likewise.
8078 * config/vax/vax.c (vax_function_arg): Likewise.
8079 * config/visium/visium.c (visium_function_arg): Likewise.
8080 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
8081 (xtensa_function_incoming_arg): Likewise.
8082
8083 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
8084
8085 * target.def (setup_incoming_varargs): Take a function_arg_info
8086 instead of a mode and tree.
8087 * doc/tm.texi: Regenerate.
8088 * targhooks.h (default_setup_incoming_varargs): Take a
8089 function_arg_info instead of a mode and tree.
8090 * targhooks.c (default_setup_incoming_varargs): Likewise.
8091 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
8092 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
8093 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
8094 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
8095 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
8096 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
8097 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
8098 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
8099 Likewise.
8100 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
8101 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
8102 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
8103 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
8104 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
8105 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
8106 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
8107 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
8108 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
8109 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
8110 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
8111 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
8112 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
8113 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
8114 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
8115 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
8116 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
8117 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
8118 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
8119 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
8120 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
8121 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
8122 * function.c (assign_parms_setup_varargs): Update call to
8123 targetm.calls.setup_incoming_varargs.
8124
8125 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
8126
8127 * target.def (pass_by_reference): Take a function_arg_info instead
8128 of a mode, type and named flag.
8129 * doc/tm.texi: Regenerate.
8130 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
8131 accordingly.
8132 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
8133 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
8134 function_arg_info instead of a mode, type and named flag.
8135 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
8136 * calls.h (pass_by_reference): Take a function_arg_info instead of a
8137 mode, type and named flag.
8138 * calls.c (pass_by_reference): Likewise.
8139 (pass_va_arg_by_reference): Update call accordingly.
8140 (initialize_argument_information): Likewise.
8141 (emit_library_call_value_1): Likewise.
8142 * function.c (assign_parm_find_data_types): Likewise.
8143 * var-tracking.c (prepare_call_arguments): Likewise.
8144 * stor-layout.c: Include calls.h.
8145 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
8146 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
8147 function_arg_info instead of a mode, type and named flag.
8148 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
8149 * config/arc/arc.c (arc_pass_by_reference): Likewise.
8150 * config/arm/arm.c (arm_pass_by_reference): Likewise.
8151 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
8152 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
8153 (c6x_call_saved_register_used): Update call to pass_by_reference.
8154 * config/cris/cris.c (cris_pass_by_reference): Take a
8155 function_arg_info instead of a mode, type and named flag.
8156 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
8157 function_arg_info instead of a mode, type and named flag.
8158 (epiphany_arg_partial_bytes): Update call accordingly.
8159 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
8160 function_arg_info instead of a mode, type and named flag.
8161 (ft32_arg_partial_bytes): Update call accordingly.
8162 * config/i386/i386.c (ix86_pass_by_reference): Take a
8163 function_arg_info instead of a mode, type and named flag.
8164 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
8165 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
8166 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
8167 (m32r_return_in_memory): Update call accordingly.
8168 * config/mips/mips.c (mips_pass_by_reference): Take a
8169 function_arg_info instead of a mode, type and named flag.
8170 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
8171 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
8172 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
8173 (moxie_arg_partial_bytes): Update call accordingly.
8174 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
8175 function_arg_info instead of a mode, type and named flag.
8176 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
8177 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
8178 * config/pa/pa.c (pa_pass_by_reference): Likewise.
8179 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
8180 (riscv_return_in_memory): Update call accordingly.
8181 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
8182 function_arg_info instead of a mode, type and named flag.
8183 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
8184 (rs6000_parm_needs_stack): Update call to pass_by_reference.
8185 * config/s390/s390.c (s390_pass_by_reference): Take a
8186 function_arg_info instead of a mode, type and named flag.
8187 (s390_call_saved_register_used): Update call accordingly.
8188 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
8189 instead of a mode, type and named flag.
8190 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
8191 * config/spu/spu.c (spu_pass_by_reference): Likewise.
8192 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
8193 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
8194 * config/v850/v850.c (v850_pass_by_reference): Likewise.
8195 * config/visium/visium.c (visium_pass_by_reference): Likewise.
8196
8197 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
8198
8199 * target.def (arg_partial_bytes): Take a function_arg_info instead
8200 of a mode, type and named flag.
8201 * doc/tm.texi: Regenerate.
8202 * target.h (function_arg_info): Declare.
8203 * calls.h (function_arg_info): New class.
8204 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
8205 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
8206 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
8207 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
8208 * calls.c (initialize_argument_information): Update call to
8209 targetm.calls.partial_bytes.
8210 (emit_library_call_value_1): Likewise.
8211 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
8212 * function.c (assign_parm_find_entry_rtl): Likewise.
8213 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
8214 function_arg_info instead of a mode, type and named flag.
8215 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
8216 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
8217 (cmse_func_args_or_return_in_stack): Update accordingly.
8218 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
8219 function_arg_info instead of a mode, type and named flag.
8220 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
8221 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
8222 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
8223 * config/fr30/fr30.c: Include calls.h.
8224 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
8225 type and named flag.
8226 * config/frv/frv.c: Include calls.h.
8227 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
8228 type and named flag.
8229 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
8230 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
8231 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
8232 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
8233 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
8234 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
8235 * config/microblaze/microblaze.c (function_arg_partial_bytes):
8236 Likewise.
8237 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
8238 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
8239 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
8240 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
8241 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
8242 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
8243 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
8244 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
8245 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
8246 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
8247 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
8248 (rs6000_parm_needs_stack): Update call accordingly.
8249 * config/sh/sh.c (sh_arg_partial_bytes): Take a
8250 function_arg_info instead of a mode, type and named flag.
8251 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
8252 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
8253
8254 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
8255
8256 * calls.h (must_pass_va_arg_in_stack): Declare.
8257 * calls.c (must_pass_va_arg_in_stack): New function.
8258 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
8259 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
8260 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
8261 Likewise.
8262 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
8263
8264 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
8265
8266 * calls.h (pass_va_arg_by_reference): Declare.
8267 * calls.c (pass_va_arg_by_reference): New function.
8268 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
8269 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
8270 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
8271 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
8272 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
8273 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
8274 (mips_gimplify_va_arg_expr): Likewise.
8275 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
8276 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
8277 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
8278 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
8279 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
8280 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
8281 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
8282 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
8283 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
8284 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
8285 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
8286
8287 2019-08-20 Richard Biener <rguenther@suse.de>
8288
8289 PR target/91498
8290 * config/i386/i386-features.c (general_scalar_chain::convert_op):
8291 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
8292 (convert_scalars_to_vector): Add timode_p parameter and use it
8293 to guard TImode-only operation.
8294 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
8295 (pass_stv::execute): Pass down timode_p.
8296
8297 2019-08-20 Lili Cui <lili.cui@intel.com>
8298
8299 * common/config/i386/i386-common.c
8300 (processor_names): Add tigerlake and cooperlake.
8301 (processor_alias_table): Add tigerlake and cooperlake.
8302 * config.gcc: Add -march=tigerlake and cooperlake.
8303 * config/i386/driver-i386.c
8304 (host_detect_local_cpu): Detect tigerlake and cooperlake.
8305 Add "has_avx" to classify processor.
8306 * config/i386/i386-builtins.c (processor_model) :
8307 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
8308 (arch_names_table): Add tigerlake and cooperlake.
8309 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
8310 and PROCESSOR_COOPERLAKE.
8311 * config/i386/i386-c.c
8312 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
8313 * config/i386/i386-options.c
8314 (m_TIGERLAKE) : Define.
8315 (m_COOPERLAKE) : Ditto.
8316 (m_CORE_AVX512): Ditto.
8317 (processor_cost_table): Add cascadelake.
8318 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
8319 * config/i386/i386.h
8320 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
8321 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
8322 (PTA_MOVDIRI): Ditto.
8323 (PTA_MOVDIR64B): Ditto.
8324 (PTA_COOPERLAKE) : Ditto.
8325 (PTA_TIGERLAKE) : Ditto.
8326 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
8327 * doc/extend.texi: Add tigerlake and cooperlake.
8328 * doc/invoke.texi: Add tigerlake and cooperlake.
8329
8330 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
8331
8332 * doc/install.texi (Specific, alpha): Remove note to use
8333 binutils 2.11.2 or later.
8334
8335 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8336
8337 PR middle-end/89544
8338 * function.c (assign_parm_find_stack_rtl): Use larger alignment
8339 when possible.
8340
8341 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
8342
8343 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
8344 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
8345 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
8346 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
8347 * config/aarch64/constraints.md (Dt): New constraint
8348 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
8349
8350 2019-08-19 Richard Biener <rguenther@suse.de>
8351
8352 PR tree-optimization/91403
8353 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
8354 cases we can handle with tail-recursion...
8355 (follow_ssa_edge_expr): ... here. Do so.
8356
8357 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
8358
8359 PR target/91441
8360 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
8361 implemented for -fsanitize=kernel-address, and merge check logic
8362 with -fsanitize=address.
8363
8364 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
8365
8366 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
8367 for cpu and machine. Factor 64/32b builtins.
8368
8369 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
8370
8371 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
8372 gone, point to sourceforge.net.
8373
8374 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
8375
8376 * doc/ux.texi (User Experience Guidelines): Update reference.
8377
8378 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
8379
8380 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
8381 not LGPL".
8382
8383 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
8384
8385 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
8386 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
8387
8388 2019-08-16 Martin Sebor <msebor@redhat.com>
8389
8390 * tree.def (TYPE_SIZE): Clarify.
8391 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
8392
8393 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
8394
8395 PR tree-optimization/91109
8396 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
8397 * lra.c (lra): Use lra_need_for_scratch_reg_p.
8398 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
8399
8400 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
8401
8402 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
8403 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
8404 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
8405 (uavg<mode>3_ceil): New expander.
8406 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
8407 mode iterator when creating CONST1_RTX.
8408 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
8409 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
8410 mode iterator for const1_operand predicate.
8411
8412 2019-08-16 Richard Biener <rguenther@suse.de>
8413
8414 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
8415 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
8416 follow_ssa_edge.
8417 (follow_ssa_edge_in_condition_phi_branch): Likewise.
8418 (analyze_evolution_in_loop): Likewise.
8419 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
8420 (follow_ssa_edge_expr): ... here. Refactor code.
8421
8422 2019-08-16 Richard Biener <rguenther@suse.de>
8423
8424 PR target/91469
8425 * config/i386/i386-features.c
8426 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
8427
8428 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8429
8430 PR other/91255
8431 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
8432 only if subst_name matches curr_attr string.
8433
8434 2019-08-16 Richard Biener <rguenther@suse.de>
8435
8436 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
8437 stmt at gsi_p, instead replace it with a NOP removed later.
8438 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
8439 that became dead because of that.
8440
8441 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
8442
8443 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
8444 for which we can't represent a range.
8445 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
8446 set_varying.
8447 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
8448 Set VR_UNDEFINED if type is not supported.
8449 * tree-ssanames.c (get_range_info): Pass type to set_varying.
8450 * tree-vrp.c (value_range_base::check): Assert that a varying has
8451 min/max set.
8452 (value_range_base::equal_p): Early bail for undefines.
8453 (value_range_base::set_varying): Accept a type.
8454 (value_range::set_varying): Same.
8455 (value_range_base::type): VARYING can have a type, while UNDEFINE
8456 is typeless.
8457 (value_range_base::dump): Print type for VARYING nodes.
8458 (value_range_base::set): Add type to VARYING.
8459 (extract_range_from_multiplicative_op): Pass type to set_varying.
8460 (extract_range_from_binary_expr): Same.
8461 (value_range_base::intersect_helper): Same.
8462 (value_range_base::union_helper): Same.
8463 (value_range_base::normalize_symbolics): Same.
8464 (determine_value_range_1): Same.
8465 * tree-vrp.h (class value_range_base): Add type to set_varying.
8466 Add prototype for dump(void).
8467 Add prototype for supports_type_p.
8468 (class value_range): Add type to set_varying.
8469 Add prototype for dump(void).
8470 * vr-values.c (set_value_range_to_truthvalue): Pass type to
8471 set_varying.
8472 (vr_values::get_lattice_entry): Set varying even if propagation
8473 finished.
8474 Pass type to set_varying.
8475 (vr_values::get_value_range): Remove vr_const_varying.
8476 Reallocate the lattice if needed.
8477 (vr_values::update_value_range): Pass type to set_varying.
8478 (vr_values::extract_range_for_var_from_comparison_expr): Same.
8479 (vr_values::extract_range_from_binary_expr): Same.
8480 (vr_values::extract_range_from_unary_expr): Same.
8481 (vr_values::extract_range_from_cond_expr): Same.
8482 (vr_values::check_for_binary_op_overflow): Same.
8483 (vr_values::extract_range_basic): Same.
8484 (vr_values::extract_range_from_assignment): Same.
8485 (vr_values::vr_values): Increase size of num_vr_values.
8486 (vr_values::extract_range_from_phi_node): Pass type to
8487 set_varying.
8488
8489 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
8490
8491 PR target/90878
8492 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
8493 for costs of hard register moves.
8494 (ix86_register_move_cost): Likewise.
8495 * config/i386/i386.h (processor_costs): Move costs of hard
8496 register moves to hard_register. Add int_load, int_store,
8497 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
8498 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
8499 for costs of RTL expressions.
8500 * config/i386/x86-tune-costs.h: Move costs of hard register
8501 moves to hard_register. Duplicate int_load, int_store,
8502 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
8503 sse_load, sse_store for costs of RTL expressions.
8504
8505 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8506
8507 * target.def (setup_incoming_vararg_bounds): Remove.
8508 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
8509 * doc/tm.texi: Regenerate.
8510 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
8511 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
8512 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
8513 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
8514
8515 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8516
8517 MSP430: Fix lines over 80 characters long in
8518 config/msp430/*.{c,h} files
8519
8520 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
8521 specifier in string.
8522 (msp430_select_hwmult_lib): Split line more than 80 characters long.
8523 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
8524 redundant old comment.
8525 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
8526 Split line more than 80 characters long.
8527 * config/msp430/msp430.c (msp430_option_override): Likewise.
8528 (msp430_return_in_memory): Likewise.
8529 (msp430_gimplify_va_arg_expr): Likewise.
8530 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
8531 (msp430_legitimate_constant): Likewise.
8532 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
8533 (msp430_attr): Likewise.
8534 (msp430_data_attr): Likewise.
8535 (msp430_start_function): Likewise.
8536 (gen_prefix): Likewise.
8537 (msp430_init_sections): Likewise.
8538 (msp430_select_section): Likewise.
8539 (msp430_function_section): Likewise.
8540 (msp430_unique_section): Likewise.
8541 (msp430_output_aligned_decl_common): Likewise.
8542 (msp430_do_not_relax_short_jumps): Likewise.
8543 (msp430_init_builtins): Likewise.
8544 (msp430_expand_delay_cycles): Likewise.
8545 (msp430_expand_prologue): Likewise.
8546 (msp430_expand_epilogue): Likewise.
8547 (msp430_expand_helper): Likewise.
8548 (msp430_split_movsi): Likewise.
8549 (msp430_print_operand): Likewise.
8550 (msp430_return_addr_rtx): Likewise.
8551 (msp430x_extendhisi): Likewise.
8552 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
8553 (ASM_SPEC): Likewise.
8554 Remove very obvious comments.
8555 (LIB_SPEC): Split line more than 80 characters long.
8556 (EH_RETURN_HANDLER_RTX): Likewise.
8557 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8558
8559 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8560
8561 MSP430: Fix whitespace errors and incorrect indentation in
8562 config/msp430/*.{c,h} files
8563
8564 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
8565 (msp430_select_hwmult_lib): Likewise.
8566 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
8567 (msp430_extract_mcu_data): Likewise.
8568 (struct t_msp430_mcu_data): Likewise.
8569 * config/msp430/msp430.c (struct machine_function): Remove whitespace
8570 before left square bracket.
8571 (msp430_option_override): Fix indentation.
8572 (msp430_hard_regno_nregs_with_padding): Likewise.
8573 (msp430_initial_elimination_offset): Likewise.
8574 (msp430_special_register_convention_p): Remove whitespace before left
8575 square bracket and after exclamation mark.
8576 (msp430_evaluate_arg): Likewise.
8577 (msp430_callee_copies): Fix indentation.
8578 (msp430_gimplify_va_arg_expr): Likewise.
8579 (msp430_function_arg_advance): Remove whitespace before left square
8580 bracket.
8581 (reg_ok_for_addr): Likewise.
8582 (msp430_preserve_reg_p): Likewise.
8583 (msp430_compute_frame_info): Likewise.
8584 (msp430_asm_output_addr_const_extra): Add space between function name
8585 and open parenthesis.
8586 (has_section_name): Fix indentation.
8587 (msp430_attr): Remove trailing whitespace.
8588 (msp430_section_attr): Likewise.
8589 (msp430_data_attr): Likewise.
8590 (struct msp430_attribute_table): Fix comment and whitespace.
8591 (msp430_start_function): Remove whitespace before left square bracket.
8592 Add space between function name and open parenthesis.
8593 (msp430_select_section): Remove trailing whitespace.
8594 (msp430_section_type_flags): Remove trailing whitespace.
8595 (msp430_unique_section): Remove space before closing parenthesis.
8596 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
8597 (msp430_builtins): Remove whitespace before left square bracket.
8598 (msp430_init_builtins): Fix indentation.
8599 (msp430_expand_prologue): Remove whitespace before left square bracket.
8600 Remove space before closing parenthesis.
8601 (msp430_expand_epilogue): Remove whitespace before left square bracket.
8602 (msp430_split_movsi): Remove space before closing parenthesis.
8603 (helper_function_name_mappings): Fix indentation.
8604 (msp430_use_f5_series_hwmult): Fix whitespace.
8605 (use_32bit_hwmult): Likewise.
8606 (msp430_no_hwmult): Likewise.
8607 (msp430_output_labelref): Remove whitespace before left square bracket.
8608 (msp430_print_operand_raw): Likewise.
8609 (msp430_print_operand_addr): Likewise.
8610 (msp430_print_operand): Add two spaces after '.' in comment.
8611 Fix trailing whitespace.
8612 (msp430x_extendhisi): Fix indentation.
8613 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
8614 tab.
8615 (PC_REGNUM): Likewise.
8616 (STACK_POINTER_REGNUM): Likewise.
8617 (CC_REGNUM): Likewise.
8618
8619 2019-08-15 Richard Biener <rguenther@suse.de>
8620
8621 PR target/91454
8622 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
8623 helper.
8624 (general_scalar_chain::make_vector_copies): Use it.
8625
8626 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
8627
8628 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
8629
8630 2019-08-15 Martin Liska <mliska@suse.cz>
8631
8632 * tree-ssa-dce.c (propagate_necessity): We can't reach now
8633 operators with no arguments.
8634 (eliminate_unnecessary_stmts): Likewise here.
8635
8636 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
8637
8638 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
8639 <case COMPARE>: Revert 2019-08-14 change.
8640 (convertible_comparison_p): Revert 2019-08-14 change. Return false
8641 for (TARGET_64BIT || mode != DImode).
8642
8643 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
8644
8645 * tree-vrp.c (value_range_base::set): Merge in code from
8646 value_range_base::set_and_canonicalize.
8647 Enforce canonicalization at set time.
8648 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
8649 (value_range_base::set_undefined): Inline call to set().
8650 (value_range_base::set_varying): Same.
8651 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
8652 (vrp_val_max): New argument handle_pointers.
8653 (vrp_val_min): Same.
8654 (ranges_from_anti_range): Same.
8655 (extract_range_into_wide_ints): Use tree argument instead of sign
8656 and precision.
8657 (extract_range_from_multiplicative_op): Take in tree type instead
8658 of precision and sign. Adapt function for canonicalized ranges.
8659 (extract_range_from_binary_expr): Pass type to
8660 extract_range_from_multiplicative_op.
8661 Adapt for canonicalized ranges.
8662 (extract_range_from_unary_expr): Same.
8663 (value_range_base::intersect_helper): Adjust for canonicalized
8664 ranges.
8665 (value_range_base::union_helper): Same.
8666 (value_range_base::normalize_symbolics): New.
8667 * tree-vrp.h (class value_range_base): Remove
8668 set_and_canonicalize.
8669 New prototype for normalize_symbolics.
8670 (class value_range): Remove set_and_canonicalize.
8671 (vrp_val_min): Adjust prototype.
8672 (vrp_val_max): Same.
8673 * vr-values.c
8674 (vr_values::extract_range_for_var_from_comparison_expr): Call set
8675 instead of set_and_canonicalize.
8676
8677 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8678
8679 PR middle-end/91444
8680 * tree-vect-stmts.c (vectorizable_call): Check that the function
8681 is a BUILT_IN_MD function before passing it to
8682 targetm.vectorize.builtin_md_vectorized_function.
8683
8684 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8685
8686 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
8687 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
8688 (aarch64_select_early_remat_modes): Use it.
8689
8690 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8691
8692 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
8693 16 for SVE predicates even if they are fixed-length.
8694
8695 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8696
8697 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
8698 operand order match the MOV /Z alias.
8699
8700 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8701
8702 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
8703 the vector pattern as an aarch64_svpattern argument. Update the
8704 overloaded caller accordingly.
8705 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
8706 (aarch64_output_sve_vector_inc_dec): Likewise.
8707
8708 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8709
8710 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
8711 multiplication case, try to compute VG * (lowest set bit) directly
8712 rather than always basing the multiplication on VG. Use
8713 expand_mult for the multiplication if we can.
8714
8715 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8716
8717 * config/aarch64/aarch64-protos.h
8718 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
8719 (aarch64_sve_inc_dec_immediate_p): Rename to...
8720 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
8721 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
8722 (aarch64_output_sve_scalar_inc_dec): Declare.
8723 (aarch64_output_sve_inc_dec_immediate): Rename to...
8724 (aarch64_output_sve_vector_inc_dec): ...this.
8725 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
8726 (aarch64_output_sve_scalar_inc_dec): New functions.
8727 (aarch64_output_sve_addvl_addpl): Remove the base and offset
8728 arguments. Only handle true ADDVL and ADDPL instructions;
8729 don't emit an INC or DEC.
8730 (aarch64_sve_inc_dec_immediate_p): Rename to...
8731 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
8732 (aarch64_output_sve_inc_dec_immediate): Rename to...
8733 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
8734 aarch64_sve_vector_inc_dec_immediate_p.
8735 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
8736 (aarch64_sve_plus_immediate): New predicates.
8737 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
8738 rather than aarch64_sve_addvl_addpl_immediate.
8739 (aarch64_sve_inc_dec_immediate): Rename to...
8740 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
8741 aarch64_sve_vector_inc_dec_immediate_p.
8742 (aarch64_sve_add_operand): Update accordingly.
8743 * config/aarch64/constraints.md (Uai): New constraint.
8744 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
8745 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
8746 operand into a register if it satisfies aarch64_sve_plus_immediate.
8747 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
8748 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
8749 * config/aarch64/aarch64-sve.md (add<mode>3): Call
8750 aarch64_output_sve_vector_inc_dec instead of
8751 aarch64_output_sve_inc_dec_immediate.
8752
8753 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8754
8755 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
8756 (UNSPEC_REVW): New constants.
8757 (elem_bits): New mode attribute.
8758 (SVE_INT_UNARY): New int iterator.
8759 (optab): Handle UNSPEC_REV[BHW].
8760 (sve_int_op): New int attribute.
8761 (min_elem_bits): Handle VNx16QI and the predicate modes.
8762 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
8763 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
8764 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
8765 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
8766 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
8767 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
8768 unspecs based on the total width of the reversed data.
8769 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
8770 reinterpret followed by a subreg on big-endian targets.
8771
8772 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8773 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8774
8775 * config/aarch64/aarch64-sve.md
8776 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
8777 alternatives in which one of the inputs is in the same register
8778 as the output.
8779
8780 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8781
8782 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
8783 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
8784
8785 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8786
8787 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
8788 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
8789
8790 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8791 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8792
8793 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
8794 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
8795 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
8796
8797 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8798 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8799
8800 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
8801 Add an alternative that uses reversed shifts.
8802
8803 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8804
8805 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
8806 struct.
8807
8808 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8809
8810 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
8811 a commutativity marker.
8812
8813 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8814 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8815
8816 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
8817 (aarch64_prepare_sve_cond_int_fma): Declare.
8818 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
8819 (aarch64_prepare_sve_int_fma): New functions.
8820 (aarch64_prepare_sve_cond_int_fma): Likewise.
8821 * config/aarch64/aarch64-sve.md
8822 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
8823 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
8824 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
8825 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
8826 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
8827 (*madd<mode>): Rename to...
8828 (*fma<mode>4): ...this.
8829 (*msub<mode>): Rename to...
8830 (*fnma<mode>4): ...this.
8831
8832 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8833 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8834
8835 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
8836 Print 2.0 naturally.
8837 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
8838 * config/aarch64/predicates.md
8839 (aarch64_sve_float_negated_arith_immediate): New predicate,
8840 renamed from aarch64_sve_float_arith_with_sub_immediate.
8841 (aarch64_sve_float_arith_with_sub_immediate): Test for both
8842 positive and negative constants.
8843 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
8844 or an aarch64_sve_float_arith_with_sub_immediate.
8845 * config/aarch64/constraints.md (vsN): Use
8846 aarch64_sve_float_negated_arith_immediate.
8847 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
8848 iterator.
8849 (sve_pred_fp_rhs2_immediate): New int attribute.
8850 * config/aarch64/aarch64-sve.md
8851 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
8852 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
8853 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
8854 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
8855 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
8856 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
8857
8858 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8859 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8860
8861 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
8862 (*aarch64_cond_abd<SVE_F:mode>_3)
8863 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
8864
8865 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8866 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8867
8868 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
8869 (*aarch64_cond_<su>abd<mode>_any): New patterns.
8870
8871 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8872 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8873
8874 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
8875 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
8876 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
8877 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
8878 optabs.
8879 * optabs.h (create_convert_operand_from): Expand comment.
8880 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
8881 when mapping scalar rtxes to vector operands.
8882 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
8883 ashiftrt and lshiftrt.
8884 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
8885 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
8886 (*cond_<optab><mode>_any_const): New patterns.
8887
8888 2019-08-15 Martin Liska <mliska@suse.cz>
8889
8890 PR ipa/91438
8891 * cgraph.c (cgraph_node::remove): When setting
8892 n->origin = NULL for all nested functions, reset
8893 also next_nested.
8894
8895 2019-08-15 Martin Liska <mliska@suse.cz>
8896
8897 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
8898 and next_nested.
8899
8900 2019-08-15 Martin Liska <mliska@suse.cz>
8901
8902 PR ipa/91404
8903 * passes.c (order): Remove.
8904 (uid_hash_t): Likewise).
8905 (remove_cgraph_node_from_order): Remove from set
8906 of pointers (cgraph_node *).
8907 (insert_cgraph_node_to_order): New.
8908 (duplicate_cgraph_node_to_order): New.
8909 (do_per_function_toporder): Register all 3 cgraph hooks.
8910 Skip removed_nodes now as we know about all of them.
8911
8912 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
8913
8914 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
8915 <case E_V8QImode>: Use vector_set path for
8916 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8917 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
8918 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8919
8920 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
8921
8922 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
8923
8924 2019-08-14 Martin Sebor <msebor@redhat.com>
8925
8926 PR tree-optimization/91294
8927 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
8928 source length as exact.
8929
8930 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
8931
8932 * doc/extend.texi: Add "noinit" attribute documentation.
8933 * doc/sourcebuild.texi: Add noinit effective target documentation.
8934 * varasm.c (default_section_type_flags): Add support for "noinit"
8935 section.
8936 (default_elf_select_section): Add support for "noinit" attribute.
8937 * config/msp430/msp430.c (msp430_attribute_table): Remove
8938 "noinit" entry.
8939
8940 2019-08-14 Richard Biener <rguenther@suse.de>
8941 Uroš Bizjak <ubizjak@gmail.com>
8942
8943 PR target/91154
8944 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
8945 mode arguments.
8946 (scalar_chain::smode): New member.
8947 (scalar_chain::vmode): Likewise.
8948 (dimode_scalar_chain): Rename to...
8949 (general_scalar_chain): ... this.
8950 (general_scalar_chain::general_scalar_chain): Take mode arguments.
8951 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
8952 base with TImode and V1TImode.
8953 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
8954 (general_scalar_chain::vector_const_cost): Adjust for SImode
8955 chains.
8956 (general_scalar_chain::compute_convert_gain): Likewise. Add
8957 {S,U}{MIN,MAX} support.
8958 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
8959 (general_scalar_chain::make_vector_copies): Likewise. Handle
8960 non-DImode chains appropriately.
8961 (general_scalar_chain::convert_reg): Likewise.
8962 (general_scalar_chain::convert_op): Likewise.
8963 (general_scalar_chain::convert_insn): Likewise. Add
8964 fatal_insn_not_found if the result is not recognized.
8965 (convertible_comparison_p): Pass in the scalar mode and use that.
8966 (general_scalar_to_vector_candidate_p): Likewise. Rename from
8967 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
8968 (scalar_to_vector_candidate_p): Remove by inlining into single
8969 caller.
8970 (general_remove_non_convertible_regs): Rename from
8971 dimode_remove_non_convertible_regs.
8972 (remove_non_convertible_regs): Remove by inlining into single caller.
8973 (convert_scalars_to_vector): Handle SImode and DImode chains
8974 in addition to TImode chains.
8975 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
8976 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
8977 (*<maxmin>di3_doubleword): Likewise.
8978
8979 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8980 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8981
8982 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
8983 (*cond_bic<mode>_any): New patterns.
8984
8985 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8986
8987 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
8988 take the equivalent mask, as well as a bit count.
8989 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
8990 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
8991 (aarch64_sve_pred_and_operand): New predicates.
8992 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
8993 code attribute.
8994 * config/aarch64/aarch64-sve.md
8995 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
8996 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
8997
8998 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8999
9000 * config/aarch64/aarch64-sve.md
9001 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
9002 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
9003 New patterns.
9004
9005 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9006 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9007
9008 * config/aarch64/aarch64-sve.md
9009 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
9010 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
9011
9012 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9013 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9014
9015 * config/aarch64/aarch64-sve.md
9016 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
9017 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
9018
9019 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9020
9021 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
9022 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
9023 New pattern.
9024
9025 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9026 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9027
9028 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
9029
9030 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9031 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9032
9033 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
9034 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
9035 (aarch64_print_operand): Add support for %I.
9036 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
9037 Bitcast floating-point constants to the corresponding integer constant.
9038 (aarch64_float_const_representable_p): Handle vectors as well
9039 as scalars.
9040 (aarch64_expand_sve_vcond): Make sure that the operands are valid
9041 for the new vcond_mask_<mode><vpred> expander.
9042 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
9043 test aarch64_float_const_representable_p.
9044 (aarch64_sve_reg_or_dup_imm): New predicate.
9045 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
9046 gen_vcond_mask_<mode><vpred> instead of
9047 gen_aarch64_sve_dup<mode>_const.
9048 (vcond_mask_<mode><vpred>): Turn into a define_expand that
9049 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
9050 for operands 1 and 2 respectively. Force operand 2 into a
9051 register if operand 1 is a register. Fold old define_insn...
9052 (aarch64_sve_dup<mode>_const): ...and this define_insn...
9053 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
9054 floating-point constants that can be moved as integers. Add
9055 alternatives for MOV /M and FMOV /M.
9056 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
9057 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
9058 1 and 2 respectively.
9059 * config/aarch64/constraints.md (Ufc): Handle vectors as well
9060 as scalars.
9061 (vss): New constraint.
9062
9063 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9064
9065 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
9066 (aarch64_sve_float_maxmin_operand): New predicates.
9067 * config/aarch64/constraints.md (vsB): New constraint.
9068 (vsM): Fix typo.
9069 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
9070 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
9071 UNSPEC_COND_FMINNM.
9072 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
9073 Use aarch64_sve_float_maxmin_operand for operand 2.
9074 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
9075 Add alternatives for the constant forms.
9076
9077 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9078
9079 * config/aarch64/constraints.md (vsb): New constraint.
9080 (vsm): Generalize description.
9081 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
9082 iterator.
9083 (sve_imm_con): Handle smax, smin, umax and umin.
9084 (sve_imm_prefix): New code attribute.
9085 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
9086 (aarch64_sve_vsb_operand): New predicates.
9087 (aarch64_sve_mul_immediate): Rename to...
9088 (aarch64_sve_vsm_immediate): ...this.
9089 (aarch64_sve_mul_operand): Rename to...
9090 (aarch64_sve_vsm_operand): ...this.
9091 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
9092 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
9093 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
9094 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
9095 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
9096 add movprfx support for the immediate alternatives.
9097 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
9098 of the above.
9099 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
9100 for operand 3.
9101
9102 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9103
9104 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
9105 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
9106 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
9107
9108 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9109
9110 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
9111 (optab, sve_int_op): Handle them.
9112 * config/aarch64/aarch64-sve.md: Expand comment.
9113
9114 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9115
9116 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
9117 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
9118 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
9119
9120 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9121
9122 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
9123 (aarch64_expand_sve_const_pred_trn): New functions.
9124 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
9125 use the above functions when the parameter is true.
9126 (aarch64_expand_sve_const_pred): Update call accordingly.
9127 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
9128 Rename to...
9129 (@aarch64_sve_<perm_insn><mode>): ...this.
9130
9131 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9132
9133 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
9134 Declare.
9135 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
9136 (aarch64_sve_emit_int_cmp): New functions.
9137 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
9138 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
9139 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
9140 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
9141 (UNSPEC_PRED_Z): New unspec.
9142 (set_clobber_cc_nzc): Delete.
9143 * config/aarch64/aarch64-sve.md: Add a block comment about
9144 UNSPEC_PRED_Z.
9145 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
9146 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
9147 the old pattern with that name. Use UNSPEC_PRED_Z instead of
9148 UNSPEC_MERGE_PTRUE.
9149 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
9150 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
9151 check for compatible predicates.
9152 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
9153 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
9154 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
9155 comparisons above.
9156
9157 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9158
9159 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
9160 * config/aarch64/aarch64-sve.md: Add a section describing it.
9161 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
9162 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
9163 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
9164 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
9165 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
9166 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
9167 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
9168 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
9169 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
9170 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
9171 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
9172 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
9173 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
9174 (aarch64_evpc_rev_local): Update accordingly.
9175
9176 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9177
9178 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
9179 iterators.
9180 (SVE_BHSI, SVE_SDI): Tweak comment.
9181 (SVE_HSDI): Likewise. Fix definition.
9182 (SVE_SDF): New mode iterator.
9183 (elem_bits): New mode attribute.
9184 (SVE_COND_FCVT): New int iterator.
9185 * config/aarch64/aarch64-sve.md
9186 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
9187 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
9188 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
9189 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
9190 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
9191 ...these new patterns.
9192 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
9193 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
9194 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
9195 Merge into...
9196 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
9197 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
9198 ...these new patterns.
9199 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
9200 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
9201 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
9202 ...this new pattern.
9203 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
9204 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
9205 ...this new pattern.
9206 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
9207
9208 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9209
9210 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
9211 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
9212 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
9213 unspecs.
9214 (optab, su): Handle them.
9215 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
9216 * config/aarch64/aarch64-sve.md
9217 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
9218 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
9219 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
9220 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
9221 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
9222 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
9223 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
9224 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
9225 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
9226 FIXUORS.
9227 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
9228 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
9229 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
9230 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
9231 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
9232 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
9233 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
9234 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
9235 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
9236 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
9237 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
9238 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
9239 of UNSPEC_FLOAT_CONVERT.
9240 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
9241 aarch64_sve_extend<mode><Vwide>2.
9242
9243 2019-08-14 Richard Biener <rguenther@suse.de>
9244
9245 PR target/91154
9246 * config/i386/i386-features.c
9247 (dimode_scalar_chain::compute_convert_gain): Compute and dump
9248 individual instruction gain. Fix reg-reg copy GRP cost. Use
9249 ix86_cost->sse_op for vector instruction costs.
9250
9251 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9252
9253 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
9254 (cmp_op): Handle it.
9255 (SVE_COND_FP_CMP): Rename to...
9256 (SVE_COND_FP_CMP_I0): ...this.
9257 (SVE_FP_CMP): Remove.
9258 * config/aarch64/aarch64-sve.md
9259 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
9260 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
9261 using unspecs to represent the comparison.
9262 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
9263 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
9264 accordingly.
9265 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
9266 (aarch64_unspec_cond_code): Move after integer code. Handle
9267 UNORDERED.
9268 (aarch64_emit_sve_predicated_cond): Replace with...
9269 (aarch64_emit_sve_fp_cond): ...this new function.
9270 (aarch64_emit_sve_or_conds): Replace with...
9271 (aarch64_emit_sve_or_fp_conds): ...this new function.
9272 (aarch64_emit_sve_inverted_cond): Replace with...
9273 (aarch64_emit_sve_invert_fp_cond): ...this new function.
9274 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
9275
9276 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9277
9278 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
9279 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
9280 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
9281 SVE_HSD instead of SVE_SD.
9282
9283 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9284 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9285
9286 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
9287 iterator.
9288 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
9289 attributes.
9290 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
9291 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
9292 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
9293 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
9294 (*div<SVE_F:mode>3): Generalize to...
9295 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
9296
9297 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9298 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9299
9300 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
9301 constants.
9302 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
9303 predicate.
9304 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
9305 Declare.
9306 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
9307 function.
9308 * config/aarch64/aarch64-sve.md: Add a block comment about the
9309 handling of predicated FP operations.
9310 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
9311 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
9312 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
9313 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
9314 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
9315 operand.
9316 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
9317 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
9318 operand.
9319 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
9320 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
9321 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
9322 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
9323 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
9324 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
9325 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
9326 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
9327 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
9328 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
9329 strictness operands. Use aarch64_sve_pred_dominates_p to check
9330 whether the predicate on the conditional operation is suitable
9331 for merging. Split patterns into the canonical equal-predicate form.
9332 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
9333 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
9334
9335 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9336 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9337
9338 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
9339 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
9340 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
9341 rtx codes.
9342 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
9343 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
9344 unspecs.
9345
9346 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9347 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9348
9349 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
9350 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
9351 actually has, rather than relying on REG_EQUAL notes.
9352 Make the insn operand order match the SVE operand order.
9353 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
9354 the SVE operand order.
9355
9356 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9357
9358 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
9359 (aarch64_emit_set_immediate): Likewise.
9360 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
9361 (aarch64_pfalse_reg): Likewise.
9362 (aarch64_convert_sve_data_to_pred): New function.
9363 (aarch64_sve_move_pred_via_while): Take an optional target register
9364 and the required register mode.
9365 (aarch64_expand_sve_const_pred_1): New function.
9366 (aarch64_expand_sve_const_pred): Likewise.
9367 (aarch64_expand_mov_immediate): Build an all-true predicate
9368 if the significant bits of the immediate are all true. Use
9369 aarch64_expand_sve_const_pred for all compile-time predicate constants.
9370 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
9371 before register allocation.
9372 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
9373 a VNx16BI PTRUE when splitting the memory alternative.
9374 (vec_duplicate<mode>): Update accordingly.
9375 (*pred_cmp<cmp_op><mode>): Rename to...
9376 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
9377
9378 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
9379
9380 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
9381 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
9382 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
9383 (UNSPEC_PTEST): New unspec.
9384 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
9385 * config/aarch64/iterators.md (data_bytes): New mode attribute.
9386 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
9387 * config/aarch64/aarch64-sve.md: Add a new section describing the
9388 handling of UNSPEC_PTEST.
9389 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
9390 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
9391 (ptest_ptrue<mode>): Replace with...
9392 (aarch64_ptest<mode>): ...this new pattern.
9393 (cbranch<mode>4): Update after above changes.
9394 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
9395 UNSPEC_PTEST_PTRUE.
9396 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
9397 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
9398 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
9399
9400 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
9401
9402 PR lto/91287
9403 * builtins.c (builtin_with_linkage_p): New function.
9404 * builtins.h (builtin_with_linkage_p): New function.
9405 * symtab.c (write_symbol): Remove redundant assert.
9406 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
9407 Remove FIXME and use builtin_with_linkage_p.
9408
9409 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
9410
9411 PR middle-end/91421
9412 * tree-core.h (function_decl::function_code): Change type to
9413 unsigned int.
9414 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
9415 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
9416 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
9417 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
9418 is BUILT_IN_NORMAL.
9419 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
9420 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
9421 (fndecl_built_in_p): Change the type of the "name" argument to
9422 unsigned int.
9423 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
9424 after check for DECL_BUILT_IN_CLASS.
9425 * cgraphclones.c (build_function_decl_skip_args): Use
9426 set_decl_built_in_function.
9427 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
9428 * ipa-split.c (split_function): Likewise.
9429 * langhooks.c (add_builtin_function_common): Likewise.
9430 * omp-simd-clone.c (simd_clone_create): Likewise.
9431 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
9432 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
9433 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
9434 DECL_FUNCTION_CODE.
9435 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
9436 instead of DECL_FUNCTION_CODE.
9437 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
9438 instead of DECL_FUNCTION_CODE.
9439 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
9440 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
9441 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
9442 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
9443 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
9444 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
9445 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
9446 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
9447 (alpha_gimple_fold_builtin): Likewise.
9448 * config/arc/arc.c (arc_expand_builtin): Likewise.
9449 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
9450 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
9451 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
9452 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
9453 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
9454 * config/frv/frv.c (frv_expand_builtin): Likewise.
9455 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
9456 (gcn_expand_builtin): Likewise.
9457 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
9458 (fold_builtin_cpu): Likewise.
9459 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
9460 * config/i386/i386.c (ix86_fold_builtin): Likewise.
9461 (ix86_gimple_fold_builtin): Likewise.
9462 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
9463 (ia64_expand_builtin): Likewise.
9464 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
9465 * config/mips/mips.c (mips_expand_builtin): Likewise.
9466 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
9467 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
9468 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
9469 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
9470 * config/pa/pa.c (pa_expand_builtin): Likewise.
9471 * config/pru/pru.c (pru_expand_builtin): Likewise.
9472 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
9473 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9474 Likewise.
9475 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
9476 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
9477 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
9478 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
9479 (rs6000_builtin_reciprocal): Likewise.
9480 * config/rx/rx.c (rx_expand_builtin): Likewise.
9481 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
9482 * config/s390/s390.c (s390_expand_builtin): Likewise.
9483 * config/sh/sh.c (sh_expand_builtin): Likewise.
9484 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
9485 (sparc_fold_builtin): Likewise.
9486 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
9487 * config/spu/spu.c (spu_expand_builtin): Likewise.
9488 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
9489 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
9490 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
9491 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
9492 (xtensa_expand_builtin): Likewise.
9493
9494 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
9495
9496 PR middle-end/91421
9497 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
9498 before the DECL_FUNCTION_CODE.
9499 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
9500 to check for a BUILT_IN_ALLOCA call.
9501 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
9502 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
9503 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
9504 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
9505 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
9506 for BUILT_IN_NORMAL functions.
9507 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
9508 test for BUILT_IN_TM_ABORT.
9509 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
9510 to check for a BUILT_IN_STACK_RESTORE call.
9511 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
9512 * tree-ssa-threadedge.c
9513 (record_temporary_equivalences_from_stmts_at_dest): Check for a
9514 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
9515 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
9516 test for a BUILT_IN_NORMAL call instead of a negative test for
9517 an internal function call.
9518
9519 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
9520
9521 * tree.h (build_vector_a_then_b): Declare.
9522 * tree.c (build_vector_a_then_b): New function.
9523 * fold-const-call.c (fold_while_ult): Likewise.
9524 (fold_const_call): Use it to handle IFN_WHILE_ULT.
9525 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
9526 (aarch64_svpattern): New enum.
9527 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
9528 constants through aarch64_expand_mov_immediate.
9529 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
9530 than general_operand as the predicate for operand 1.
9531 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
9532 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
9533 insn_type.
9534 (simd_immediate_info::simd_immediate_info): New overload that
9535 takes a scalar_int_mode and an svpattern.
9536 (simd_immediate_info::u): Add a "pattern" field.
9537 (svpattern_token): New function.
9538 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
9539 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
9540 (aarch64_sve_move_pred_via_while): New functions.
9541 (aarch64_expand_mov_immediate): Try using
9542 aarch64_sve_move_pred_via_while for predicates that contain N ones
9543 followed by M zeros but that do not correspond to a VLnnn pattern.
9544 (aarch64_sve_pred_valid_immediate): New function.
9545 (aarch64_simd_valid_immediate): Use it instead of dealing directly
9546 with PTRUE and PFALSE.
9547 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
9548 forms.
9549
9550 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
9551
9552 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
9553 flag.
9554 (darwin_override_options): Likewise.
9555 * config/darwin.h: Likewise.
9556 * config/darwin.opt: Likewise.
9557 * config/i386/i386.c (output_pic_addr_const): Likewise.
9558 * config/rs6000/darwin.h: Likewise.
9559 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
9560 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
9561 ... this TARGET_MACHO_SYMBOL_STUBS.
9562 (FUNCTION_PROFILER):Likewise.
9563 * config/i386/i386.h: Likewise.
9564
9565 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
9566
9567 * config/i386/i386-expand.c (ix86_expand_vector_extract)
9568 <case E_V2SImode>: Use vec_extr path for
9569 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
9570 <case E_V8QImode>: Ditto.
9571 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
9572 Use SWI48 mode iterator. Use %k to output operand 0.
9573 (*mmx_pextrw): New insn pattern.
9574 (*mmx_pextrb): Ditto.
9575 (*mmx_pextrb_zext): Ditto.
9576
9577 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
9578
9579 * target.def (libc_has_function, libc_has_fast_function): Improve
9580 documentation strings.
9581 * doc/tm.texi: Regenerate.
9582
9583 2019-08-13 Caroline Tice <cmtice@google.com>
9584
9585 PR other/91396
9586 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
9587 vtv_end.o or vtv_end_preinit.o files if !static.
9588
9589 2019-08-13 Olivier Hainque <hainque@adacore.com>
9590
9591 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
9592
9593 2019-08-13 Olivier Hainque <hainque@adacore.com>
9594
9595 * rtlanal.c (tablejump_casesi_pattern): New function, to
9596 determine if a tablejump insn is a casesi dispatcher. Extracted
9597 from patch_jump_insn.
9598 * rtl.h (tablejump_casesi_pattern): Declare.
9599 * cfgrtl.c (patch_jump_insn): Use it.
9600 * dwarf2cfi.c (create_trace_edges): Use it.
9601
9602 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
9603
9604 PR target/81800
9605 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
9606 operand is larger than a long int.
9607
9608 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
9609
9610 * machmode.h (opt_mode::else_mode): New function.
9611 (opt_mode::else_blk): Use it.
9612 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
9613 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
9614 (aarch64_gen_stepped_int_parallel): Likewise.
9615 (aarch64_stepped_int_parallel_p): Likewise.
9616 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
9617 argument.
9618 * config/aarch64/aarch64.c
9619 (aarch64_expand_sve_widened_duplicate): Delete.
9620 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
9621 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
9622 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
9623 argument. Use early returns in the !CONST_INT_P handling.
9624 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
9625 than handling some inline.
9626 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
9627 from...
9628 (aarch64_simd_container_mode): ...here.
9629 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
9630 (aarch64_sve_ld1rq_operand_p): New functions.
9631 * config/aarch64/predicates.md (descending_int_parallel)
9632 (aarch64_sve_ld1rq_operand): New predicates.
9633 * config/aarch64/constraints.md (UtQ): New constraint.
9634 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
9635 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
9636 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
9637 (@aarch64_sve_reinterpret<mode>): New expander.
9638 (*aarch64_sve_reinterpret<mode>): New pattern.
9639 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
9640 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
9641 (*sve_ld1rq<Vesize>): Replace with...
9642 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
9643
9644 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
9645
9646 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
9647 16:12.
9648
9649 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9650
9651 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
9652 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
9653 (msp430_check_path_for_devices): New.
9654 (parse_devices_csv_1): New.
9655 (parse_devices_csv): New.
9656 (msp430_extract_mcu_data): Try to find devices.csv and search for the
9657 MCU data in devices.csv before using the hard-coded data.
9658 Warn if devices.csv isn't found and the MCU wasn't found in the
9659 hard-coded data either.
9660 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
9661 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
9662 Search for devices.csv on -I and -L paths.
9663 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
9664 msp430_set_driver_var.
9665 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
9666 -mdevices-csv-loc=.
9667 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
9668 searched for devices.csv.
9669 (mwarn-devices-csv): Document option.
9670
9671 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
9672
9673 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
9674 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
9675 Use a single Dn alternative instead of separate Dz and Dm
9676 alternatives. Use aarch64_output_sve_move_immediate.
9677 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
9678 function.
9679 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
9680 for predicates too.
9681 (aarch64_output_sve_mov_immediate): Handle predicate modes.
9682 (aarch64_output_ptrue): Delete.
9683
9684 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
9685
9686 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
9687 INDEX.
9688 (simd_immediate_info::value, simd_immediate_info::step)
9689 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
9690 with...
9691 (simd_immediate_info::u): ...this new union.
9692 (simd_immediate_info::simd_immediate_info): Update accordingly.
9693 (aarch64_output_simd_mov_immediate): Likewise.
9694 (aarch64_output_sve_mov_immediate): Likewise.
9695
9696 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9697
9698 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
9699 extra_gcc_objs.
9700 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
9701 (msp430_select_cpu): New spec function.
9702 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
9703 MCU data.
9704 * config/msp430/msp430-devices.c: New file.
9705 * config/msp430/msp430-devices.h: New file.
9706 * config/msp430/msp430.c: Remove msp430_mcu_data.
9707 (msp430_option_override): Use msp430_extract_mcu_data to extract
9708 MCU data.
9709 (msp430_use_f5_series_hwmult): Likewise.
9710 (use_32bit_hwmult): Likewise.
9711 (msp430_no_hwmult): Likewise.
9712 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
9713 assembler.
9714 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
9715 and -mcpu option.
9716 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
9717 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
9718 Remove hard-coded MCU multilib data.
9719
9720 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
9721
9722 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
9723 based on the mode instead of testing properties of it.
9724
9725 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
9726
9727 * doc/md.texi: Document the x and y constraints for AArch64.
9728 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
9729 (FP_LO8_REGS): New reg_class.
9730 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
9731 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
9732 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
9733 * config/aarch64/predicates.md (aarch64_simd_register): Use
9734 FP_REGNUM_P instead of checking the classes manually.
9735 * config/aarch64/constraints.md (y): New constraint.
9736
9737 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
9738
9739 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
9740 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
9741 * config/aarch64/aarch64-simd.md
9742 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
9743 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
9744 from the asm template.
9745 * config/aarch64/aarch64-sve.md
9746 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
9747 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
9748 from the asm template.
9749 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
9750 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
9751 from the asm template.
9752 * config/aarch64/aarch64-simd-builtins.def: Update comment.
9753
9754 2019-08-13 Martin Liska <mliska@suse.cz>
9755
9756 * value-prof.c (gimple_ic_transform): Add new line.
9757 Print details with MSG_NOTE.
9758
9759 2019-08-13 Martin Liska <mliska@suse.cz>
9760
9761 * doc/invoke.texi: Document automatic detection of jobserver.
9762 * lto-wrapper.c (run_gcc): Detect jobserver always.
9763
9764 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
9765
9766 * config/i386/i386-expand.c (ix86_expand_vector_set)
9767 <case E_V2SImode>: Use vec_merge path for
9768 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
9769 <case E_V8QImode>: Ditto.
9770 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
9771 (*mmx_pinsrb): Ditto.
9772
9773 2019-08-12 Jakub Jelinek <jakub@redhat.com>
9774
9775 PR target/83250
9776 PR target/91340
9777 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
9778 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
9779 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
9780 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
9781 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
9782
9783 2019-08-12 Richard Biener <rguenther@suse.de>
9784
9785 PR lto/91375
9786 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
9787 flag_devirtualize.
9788
9789 2019-08-12 Richard Biener <rguenther@suse.de>
9790
9791 PR driver/91130
9792 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
9793 lang_mask option, always use CL_DRIVER.
9794 (get_options_from_collect_gcc_options): Adjust.
9795 (find_and_merge_options): Likewise.
9796 (run_gcc): Likewise.
9797
9798 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9799
9800 * ipa-predicate.c (add_condition): Restore inverted test.
9801
9802 2019-08-10 Jakub Jelinek <jakub@redhat.com>
9803
9804 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
9805 (enum omp_clause_device_type_kind): New enum.
9806 (struct tree_omp_clause): Add subcode.device_type_kind.
9807 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
9808 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
9809 for device_type clause.
9810 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
9811 * tree-pretty-print.c (dump_omp_clause): Likewise.
9812
9813 PR target/91408
9814 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
9815 vector_operand.
9816
9817 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
9818
9819 * reload1.c (finish_spills): Do not check ira_conflicts_p when
9820 handling spilled pseudos.
9821
9822 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
9823
9824 PR target/91386
9825 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
9826 to preserve the contents of the original insns.
9827
9828 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
9829
9830 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
9831 (addsi3_compare_op2): Likewise.
9832
9833 2019-08-09 Martin Liska <mliska@suse.cz>
9834
9835 * alias.c (alias_ptr_types_compatible_p): Strengten
9836 type comparison in LTO mode.
9837
9838 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
9839
9840 PR middle-end/90313
9841 * tree-tailcall.c (find_tail_calls): Reject calls that might
9842 read from an escaped RESULT_DECL.
9843
9844 2019-08-09 Martin Liska <mliska@suse.cz>
9845
9846 * doc/invoke.texi: Document the option value.
9847 * lto-wrapper.c (run_gcc): Set auto_parallel
9848 only with -flto=auto.
9849
9850 2019-08-09 Martin Liska <mliska@suse.cz>
9851
9852 * opts.c (common_handle_option): Error for an invalid argument
9853 to -flto=.
9854
9855 2019-08-09 Martin Liska <mliska@suse.cz>
9856
9857 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
9858 use dump_printf to report optimization.
9859 (sem_variable::merge): Likwise.
9860 (sem_item_optimizer::merge_classes): Use dump_printf to report
9861 ICF hits.
9862
9863 2019-08-09 Martin Liska <mliska@suse.cz>
9864
9865 * value-prof.c (gimple_divmod_fixed_value_transform):
9866 Use dump_printf_loc.
9867 (gimple_mod_pow2_value_transform): Likewise.
9868 (gimple_mod_subtract_transform): Likewise.
9869 (init_node_map): Likewise.
9870 (gimple_ic_transform): Likewise.
9871 (gimple_stringops_transform): Likewise.
9872
9873 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9874
9875 * doc/extend.texi: Add const qualifier to ld intrinsics.
9876
9877 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
9878
9879 * config/rs6000/dfp.md (D64_D128): Rename to ...
9880 (DDTD): ... this, throughout.
9881 (dfp_suffix): Rename to ...
9882 (q): ... this, throughout.
9883
9884 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
9885
9886 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
9887 (dfp_suffix): Ditto.
9888 (adddd3, addtd3): Merge to ...
9889 (add<mode>3 for D64_D128): ... this.
9890 (subdd3, subtd3): Merge to ...
9891 (sub<mode>3 for D64_D128): ... this.
9892 (muldd3, multd3): Merge to ...
9893 (mul<mode>3 for D64_D128): ... this.
9894 (divdd3, divtd3): Merge to ...
9895 (div<mode>3 for D64_D128): ... this.
9896 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
9897 (*cmp<mode>_internal1 for D64_D128): ... this.
9898 (ftruncdd2, ftrunctd2): Merge to ...
9899 (ftrunc<mode>2 for D64_D128): ... this.
9900 (fixdddi2, fixtddi2): Merge to ...
9901 (fix<mode>di2 for D64_D128): ... this.
9902
9903 2019-08-08 Jim Wilson <jimw@sifive.com>
9904
9905 PR target/91229
9906 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
9907 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
9908 Pass into recursive call.
9909 (riscv_flatten_aggregate_argument): New arg. Pass to
9910 riscv_flatten_aggregate_field.
9911 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
9912 riscv_flatten_aggregate_argument twice, with false and true as last
9913 arg. Process result twice. Compare results and warn if different.
9914 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
9915
9916 2019-08-08 Martin Liska <mliska@suse.cz>
9917
9918 PR bootstrap/91352
9919 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
9920 * lto-wrapper.c (jobserver_active_p): Likewise.
9921
9922 2019-08-08 Martin Liska <mliska@suse.cz>
9923
9924 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
9925 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
9926 (create_version_clone_with_body): Likewise.
9927
9928 2019-08-08 Jakub Jelinek <jakub@redhat.com>
9929
9930 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
9931 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
9932 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
9933 GOVD_EXPLICIT flags.
9934 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
9935 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
9936 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
9937 call install_var_field with mask 11 instead of 3.
9938 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
9939 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
9940
9941 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9942
9943 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
9944 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
9945
9946 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9947
9948 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
9949 MOVPRFX alternatives. Make the GPR alternatives more expensive
9950 than the FPR ones.
9951
9952 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9953
9954 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
9955 Disparage the GPR alternative relative to the FPR one.
9956 Fix handling of 8-bit and 16-bit FPR values.
9957
9958 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9959
9960 * config/aarch64/iterators.md (BITWISEV): Delete.
9961 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
9962 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
9963 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
9964 UNSPEC_FMINNMV, UNSPEC_FMINV.
9965 (bit_reduc_op): Delete.
9966 (sve_int_op): New int attribute.
9967 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
9968 UNSPEC_FMINNMV, UNSPEC_FMINV.
9969 * config/aarch64/aarch64-sve.md
9970 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
9971 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
9972 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
9973 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
9974 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
9975 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
9976 new patterns.
9977 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
9978 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
9979 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
9980 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
9981 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
9982 new patterns.
9983
9984 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9985
9986 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
9987 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
9988 (fms<mode>4, *fms<mode>4): Replace with...
9989 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
9990 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
9991 Use unspecs instead of rtx codes.
9992 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
9993 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
9994
9995 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9996
9997 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
9998 int iterator.
9999 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
10000 * config/aarch64/aarch64-sve.md
10001 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
10002 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
10003 use a single unspec for the rhs.
10004 (*<su><maxmin><mode>3): Delete.
10005 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
10006
10007 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
10008
10009 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
10010 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
10011 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
10012 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
10013 (optab, sve_fp_op): Handle them.
10014 (SVE_FP_UNARY): Delete.
10015 (optab): Remove sqrt entry.
10016 (sve_fp_op): Remove neg, abs and sqrt entries.
10017 (SVE_COND_FP_UNARY): New int iterator.
10018 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
10019 (*<frint_pattern><mode>2): Delete.
10020 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
10021 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
10022 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
10023 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
10024
10025 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
10026
10027 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
10028
10029 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
10030
10031 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
10032 (UNSPEC_COND_FADD): ...this.
10033 (UNSPEC_COND_SUB): Rename to...
10034 (UNSPEC_COND_FSUB): ...this.
10035 (UNSPEC_COND_MUL): Rename to...
10036 (UNSPEC_COND_FMUL): ...this.
10037 (UNSPEC_COND_DIV): Rename to...
10038 (UNSPEC_COND_FDIV): ...this.
10039 (UNSPEC_COND_MAX): Rename to...
10040 (UNSPEC_COND_FMAXNM): ...this.
10041 (UNSPEC_COND_MIN): Rename to...
10042 (UNSPEC_COND_FMINNM): ...this.
10043 (UNSPEC_COND_LT): Rename to...
10044 (UNSPEC_COND_FCMLT): ...this.
10045 (UNSPEC_COND_LE): Rename to...
10046 (UNSPEC_COND_FCMLE): ...this.
10047 (UNSPEC_COND_EQ): Rename to...
10048 (UNSPEC_COND_FCMEQ): ...this.
10049 (UNSPEC_COND_NE): Rename to...
10050 (UNSPEC_COND_FCMNE): ...this.
10051 (UNSPEC_COND_GE): Rename to...
10052 (UNSPEC_COND_FCMGE): ...this.
10053 (UNSPEC_COND_GT): Rename to...
10054 (UNSPEC_COND_FCMGT): ...this.
10055 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
10056 (sve_fp_op_rev): Update accordingly.
10057 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
10058
10059 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
10060
10061 * config/aarch64/aarch64-sve.md: Reorganize contents and add
10062 banner comments.
10063 * config/aarch64/check-sve-md.awk: New file.
10064 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
10065 (insn-conditions.md): Depend on it.
10066
10067 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
10068
10069 PR target/91385
10070 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
10071 (*negsi2_cmpz_zext): Ditto.
10072
10073 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
10074
10075 * config/aarch64/iterators.md (commutative): Remove.
10076
10077 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
10078
10079 PR driver/91130
10080 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
10081 processing COLLECT_GCC_OPTIONS.
10082 (run_gcc): Likewise.
10083
10084 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
10085
10086 PR tree-optimization/91109
10087 * lra-remat.c (update_scratch_ops): Remove assignment of the
10088 hard register.
10089
10090 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
10091
10092 * data-streamer.h (streamer_write_poly_uint64): Declare.
10093 (streamer_read_poly_uint64): Likewise.
10094 * data-streamer-in.c (streamer_read_poly_uint64): New function.
10095 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
10096 * ipa-predicate.h (condition::size): Turn into a poly_int64.
10097 (add_condition): Take a poly_int64 size.
10098 * ipa-predicate.c (add_condition): Likewise.
10099 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
10100 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
10101 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
10102 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
10103 condition::size as a poly_int64.
10104 (unmodified_parm_1): Take a poly_int64 size pointer.
10105 (unmodified_parm): Likewise.
10106 (unmodified_parm_or_parm_agg_item): Likewise.
10107 (set_cond_stmt_execution_predicate): Update accordingly.
10108 (set_switch_stmt_execution_predicate): Likewise.
10109 (will_be_nonconstant_expr_predicate): Likewise.
10110 (will_be_nonconstant_predicate): Likewise.
10111 (inline_read_section): Stream condition::size as a poly_int.
10112 (ipa_fn_summary_write): Likewise.
10113
10114 2019-08-07 Martin Liska <mliska@suse.cz>
10115
10116 * fold-const.c (twoval_comparison_p): Replace int
10117 with bool as a return type.
10118 (simple_operand_p): Likewise.
10119 (operand_equal_p): Replace int with bool as a return type.
10120 * fold-const.h (operand_equal_p): Likewise.
10121
10122 2019-08-07 Jakub Jelinek <jakub@redhat.com>
10123
10124 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
10125 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
10126 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
10127 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
10128 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
10129 * tree-pretty-print.c (dump_omp_clause): Likewise.
10130 * tree-nested.c (convert_nonlocal_omp_clauses,
10131 convert_local_omp_clauses): Likewise.
10132 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
10133 Likewise.
10134 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
10135 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
10136 clause with array or reference to array types, no matter what type
10137 except for reference it has.
10138
10139 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
10140
10141 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
10142
10143 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
10144
10145 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
10146 (arch_canonicalize): Support rv32g and rv64g and fix error
10147 handling.
10148
10149 2019-08-06 Martin Liska <mliska@suse.cz>
10150
10151 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
10152 and DECL_IS_OPERATOR_DELETE_P.
10153
10154 2019-08-06 Jakub Jelinek <jakub@redhat.com>
10155
10156 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
10157 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
10158 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
10159 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
10160 (gimplify_omp_for): Don't do C++ random access iterator clause
10161 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
10162 don't predetermine the artificial iterator in case of C++ random
10163 access iterators as lastprivate, but private. For OMP_LOOP, force
10164 bind expr around simd body and force for_pre_body before the
10165 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
10166 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
10167 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
10168 diff var of C++ random access iterators. Handle
10169 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
10170 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
10171 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
10172 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
10173 * omp-low.c (lower_rec_input_clauses): For
10174 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
10175 variables instead of default constructing them.
10176 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
10177 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
10178 is_taskloop_ctx check from the assert to the guarding condition.
10179
10180 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
10181
10182 * config/riscv/multilib-generator: (canonical_order): New.
10183 (arch_canonicalize): Dito.
10184 Apply arch_canonicalize for alts.
10185
10186 2019-08-05 Martin Sebor <msebor@redhat.com>
10187
10188 * doc/extend.texi (Common Variable Attributes): Document alias
10189 attribute.
10190
10191 2019-08-05 Marek Polacek <polacek@redhat.com>
10192
10193 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
10194 * doc/invoke.texi: Document -Wcomma-subscript.
10195
10196 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
10197
10198 * tree-core.h (tree_function_decl): Make function_code an
10199 independent field. Group the remaining bitfields into bytes
10200 and move decl_type so that it contines to be at a byte boundary.
10201 Leave 12 bits for future expansion.
10202
10203 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
10204
10205 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
10206 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
10207 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
10208 IFN_MASK_STORE.
10209
10210 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
10211
10212 * gimple.h (gimple_move_vops): Declare.
10213 * gimple.c (gimple_move_vops): New function
10214 * gimple-fold.c (replace_call_with_call_and_fold)
10215 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
10216 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
10217 (gimple_fold_call): Use it.
10218 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
10219 * tree-call-cdce.c (use_internal_fn): Likewise.
10220 * tree-if-conv.c (predicate_load_or_store): Likewise.
10221 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
10222 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
10223 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
10224 (update_call_from_tree): Likewise.
10225 * tree-vect-stmts.c (vectorizable_load): Likewise.
10226 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
10227
10228 2019-08-05 Martin Liska <mliska@suse.cz>
10229
10230 PR c++/91334
10231 * tree-ssa-dce.c (propagate_necessity): Handle new operators
10232 with not arguments.
10233 (eliminate_unnecessary_stmts): Likewise.
10234
10235 2019-08-05 Richard Biener <rguenther@suse.de>
10236
10237 PR middle-end/91169
10238 * fold-const.c (get_array_ctor_element_at_index): Create
10239 offset_ints according to the sign of the index type and treat
10240 that as signed if it is obviously so.
10241
10242 2019-08-05 Jakub Jelinek <jakub@redhat.com>
10243
10244 PR target/91341
10245 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
10246 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
10247 _mm256_storeu2_m128i): New function.
10248
10249 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
10250
10251 * config/riscv/riscv.c (riscv_promote_function_mode): New.
10252 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
10253
10254 2019-08-05 Alan Modra <amodra@gmail.com>
10255
10256 PR target/91349
10257 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
10258 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
10259
10260 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
10261
10262 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
10263 bug that was fixed in Tcl 8.6.1.
10264
10265 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
10266
10267 * config/rs6000/future.md: New file.
10268 * config/rs6000/rs6000.md: Include future.md.
10269 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
10270
10271 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
10272
10273 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
10274 check to use targetm.slow_unaligned_access instead.
10275
10276 * function.c (assign_param_data_one): Remove unused data members.
10277
10278 2019-08-02 Steve Ellcey <sellcey@marvell.com>
10279
10280 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
10281 build_distinct_type_copy.
10282 (simd_clone_adjust_argument_types): Ditto.
10283 (simd_clone_adjust): Call build_distinct_type_copy here.
10284 (expand_simd_clones): Ditto.
10285
10286 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
10287
10288 PR target/91201
10289 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
10290
10291 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
10292
10293 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
10294 from 'const void *'.
10295 (sort_locs_in_loop_postorder_cmp): Likewise.
10296
10297 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
10298
10299 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
10300 (hot-bb-count-ws-permille): Likewise.
10301 (hot-bb-frequency-fraction): Likewise.
10302 (unlikely-bb-count-fraction): Likewise.
10303 * params.def (hot-bb-count-fraction): Rework description.
10304 (hot-bb-count-ws-permille): Likewise.
10305 (hot-bb-frequency-fraction): Likewise.
10306 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
10307 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
10308
10309 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
10310
10311 PR target/91323
10312 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
10313 Return false.
10314
10315 2019-08-02 Richard Biener <rguenther@suse.de>
10316
10317 * vec.h (vec::sort): Add gcc_qsort_r support.
10318 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
10319 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
10320 to gcc_qsort_r style callback.
10321 (sort_locs_in_loop_postorder_cmp): Likewise.
10322 (analyze_memory_references): Use gcc_sort_r interfaces.
10323 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
10324
10325 2019-08-02 Martin Liska <mliska@suse.cz>
10326
10327 PR lto/91313
10328 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
10329 to detect working job server.
10330 (driver::detect_jobserver): Test whether jobserver
10331 is active from GCC driver. That will prevent situation where
10332 GCC is invoked from a LD plugin and the linker already uses
10333 file descriptors suggested by make. That leads to a wrong
10334 detection.
10335 * gcc.h (driver): Add detect_jobserver.
10336 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
10337 not scanning for --jobserver-auth prefix.
10338
10339 2019-08-02 Jakub Jelinek <jakub@redhat.com>
10340
10341 PR tree-optimization/91201
10342 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
10343 V16QImode extraction without sse4.1 try to use V4SImode lowpart
10344 extraction.
10345
10346 2019-08-01 Martin Sebor <msebor@redhat.com>
10347
10348 PR c++/90947
10349 * tree.c (type_initializer_zero_p): Define.
10350 * tree.h (type_initializer_zero_p): New function.
10351
10352 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
10353
10354 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
10355
10356 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
10357
10358 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
10359 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
10360 * predict.c (maybe_hot_count_p): Likewise.
10361 (maybe_hot_bb_p): Tweak comment.
10362 (maybe_hot_edge_p): Likewise.
10363 (probably_never_executed): Likewise. Minor tweak.
10364 (probably_never_executed_bb_p): Likewise.
10365 (unlikely_executed_edge_p): Likewise.
10366 (probably_never_executed_edge_p): Likewise.
10367 (optimize_function_for_size_p): Likewise.
10368 (optimize_function_for_speed_p): Likewise.
10369 (function_optimization_type): Likewise.
10370 (optimize_bb_for_size_p): Likewise.
10371 (optimize_bb_for_speed_p): Likewise.
10372 (bb_optimization_type): Likewise.
10373 (optimize_edge_for_size_p): Likewise.
10374 (optimize_edge_for_speed_p): Likewise.
10375 (optimize_insn_for_size_p): Likewise.
10376 (optimize_insn_for_speed_p): Likewise.
10377 (optimize_loop_for_size_p): Likewise.
10378 (optimize_loop_for_speed_p): Likewise.
10379 (optimize_loop_nest_for_speed_p): Likewise.
10380 (optimize_loop_nest_for_size_p): Likewise.
10381 (predictable_edge_p): Likewise.
10382 (handle_missing_profiles): Minor tweak.
10383
10384 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
10385
10386 * config/rs6000/predicates.md (pcrel_external_address): Update
10387 comment.
10388
10389 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
10390
10391 PR target/85693
10392 * config/i386/mmx.md (usadv8qi): New expander.
10393
10394 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
10395
10396 PR c++/90590
10397 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
10398 with reserved names that are in a system header.
10399
10400 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
10401
10402 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
10403 (*vec_extractv2si_0_zext_sse4): New insn pattern.
10404 (*vec_extractv2si_0_zext): Ditto.
10405 (*vec_extractv2si_1): Add (rm,x) alternative.
10406 (*vec_extractv2si_1_zext): New insn pattern.
10407 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
10408 insn constraint.
10409
10410 2019-08-01 Richard Biener <rguenther@suse.de>
10411
10412 * domwalk.c (bb_postorder): Remove static variable.
10413 (cmp_bb_postorder): Adjust.
10414 (sort_bbs_postorder): Adjust and use gcc_sort_r.
10415 (dom_walker::walk): Adjust.
10416
10417 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
10418
10419 * sort.cc (sort_r_ctx): New struct.
10420 (reorder23): Make templated on context type.
10421 (reorder45): Ditto.
10422 (cmp1): Ditto. Adjust signature.
10423 (netsort): Ditto.
10424 (mergesort): Ditto.
10425 [CHECKING_P] (cmp2to3): New static function. Use it...
10426 (gcc_qsort) [CHECKING_P]: ...here.
10427 (gcc_sort_r): New function.
10428 * system.h (sort_r_cmp_fn): New function typedef.
10429 (qsort_chk): Adjust signature.
10430 (gcc_sort_r): Declare.
10431 * vec.c (qsort_chk_error): Adjust.
10432 (qsort_chk): Adjust.
10433
10434 2019-08-01 Richard Biener <rguenther@suse.de>
10435
10436 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
10437 (compute_antic): Localize it here.
10438
10439 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
10440
10441 * common/config/riscv/riscv-common.c: Check -march string ends
10442 with null.
10443
10444 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
10445
10446 * ipa-devirt.c (type_warning_cmp): Make static.
10447 (decl_warning_cmp): Ditto.
10448
10449 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
10450
10451 PR target/91050
10452 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
10453 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
10454 use of deleted rs6000_dejagnu_cpu_index variable.
10455 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
10456 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
10457 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
10458 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
10459 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
10460 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
10461
10462 2019-07-31 Richard Biener <rguenther@suse.de>
10463
10464 PR tree-optimization/91280
10465 * tree-ssa-structalias.c (get_constraint_for_component_ref):
10466 Decompose MEM_REF manually for offset handling.
10467
10468 2019-07-31 Richard Biener <rguenther@suse.de>
10469
10470 PR tree-optimization/91293
10471 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
10472 of reduction stmts.
10473
10474 2019-07-31 Matt Thomas <matt@3am-software.com>
10475 Nick Hudson <nick@nthcliff.demon.co.uk>
10476 Matthew Green <mrg@eterna.com.au>
10477 Maya Rashish <coypu@sdf.org>
10478
10479 * config.gcc (hppa*-*-netbsd*): New target.
10480 * config/pa/pa-netbsd.h: New file.
10481 * config/pa/pa32-netbsd.h: New file.
10482
10483 2019-07-31 Jakub Jelinek <jakub@redhat.com>
10484
10485 PR tree-optimization/91201
10486 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
10487
10488 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
10489
10490 * config/gcn/gcn-valu.md
10491 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
10492 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
10493 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
10494 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
10495 struct ilist. Add nops for delayeduse insns.
10496 * config/gcn/gcn.md (delayeduse): New attribute.
10497 (*movbi): Remove s_waitcnt from stores.
10498 (*mov<mode>_insn): Likewise.
10499 (*movti_insn): Likewise. Add delayeduse attribute.
10500 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
10501 (atomic_store<mode>): Remove or adjust s_waitcnt.
10502
10503 2019-07-31 Richard Biener <rguenther@suse.de>
10504
10505 * vr-values.h (vr_values::swap_vr_value): New.
10506 (vr_values::free_value_range): likewise.
10507 * vr-values.c (vr_values::swap_vr_value): Implement.
10508 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
10509 Do not return a range or take a var.
10510 (evrp_range_analyzer::stack): Change back to recording a non-const
10511 value_range *.
10512 * gimple-ssa-evrp-analyze.c
10513 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
10514 value-range.
10515 (evrp_range_analyzer::pop_to_marker): Adjust.
10516 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
10517 (evrp_range_analyzer::pop_value_range): Likewise. Free the
10518 no longer needed value-range.
10519
10520 2019-07-31 Martin Liska <mliska@suse.cz>
10521
10522 * tree-ssa-dce.c (propagate_necessity): Delete operator can
10523 have size and (or) alignment as 2nd and later arguments.
10524 Mark all of them as necessary.
10525
10526 2019-07-31 Richard Biener <rguenther@suse.de>
10527
10528 PR tree-optimization/91178
10529 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
10530 Use tail-recursion.
10531
10532 2019-07-31 Jakub Jelinek <jakub@redhat.com>
10533
10534 PR tree-optimization/91201
10535 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
10536 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
10537 TARGET_AVX512F.
10538 (reduc_plus_scal_<mode>): Improve formatting by introducing
10539 a temporary.
10540
10541 2019-07-31 Sudakshina Das <sudi.das@arm.com>
10542
10543 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
10544 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
10545 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
10546 (aarch64_init_tme_builtins): New.
10547 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
10548 (aarch64_expand_builtin_tme): New.
10549 (aarch64_expand_builtin): Handle TME builtins.
10550 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
10551 __ARM_FEATURE_TME when enabled.
10552 * config/aarch64/aarch64-option-extensions.def: Add "tme".
10553 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
10554 (TARGET_TME): New.
10555 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
10556 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
10557 UNSPECV_TCANCEL.
10558 (tstart, ttest, tcommit, tcancel): New instructions.
10559 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
10560 (__tcancel, __ttest): New.
10561 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
10562 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
10563 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
10564 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
10565 * config/arm/types.md: Add new tme type attr.
10566 * doc/invoke.texi: Document "tme".
10567
10568 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
10569
10570 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
10571 warn_unused_result attribute.
10572 (cmse_check_address_range): Add warn_unused_result attribute.
10573
10574 2019-07-31 Richard Biener <rguenther@suse.de>
10575
10576 PR tree-optimization/91257
10577 * tree-vrp.c (union_ranges): Unify equality and less tests
10578 by using compare_values. Re-order cheap tests first.
10579
10580 2019-07-31 Jakub Jelinek <jakub@redhat.com>
10581
10582 PR middle-end/91301
10583 * gimplify.c (gimplify_omp_for): If for class iterator on
10584 distribute parallel for there is no data sharing clause
10585 on inner_for_stmt, look for private clause on combined
10586 parallel too and if found, move it to inner_for_stmt.
10587
10588 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
10589
10590 * lra-int.h (lra_operand_data): Remove early_clobber field.
10591 (lra_insn_reg): Likewise.
10592 * lra.c (debug_operand_data): Update accordingly.
10593 (setup_operand_alternative): Likewise.
10594 (new_insn_reg): Likewise. Remove early_clobber parameter.
10595 (collect_non_operand_hard_regs): Update call accordingly.
10596 Don't assign to lra_insn_reg::early_clobber.
10597 (add_regs_to_insn_regno_info): Remove early_clobber parameter
10598 and update calls to new_insn_reg.
10599 (lra_update_insn_regno_info): Update calls accordingly.
10600 * lra-constraints.c (update_and_check_small_class_inputs): Take the
10601 alternative number as a parameter and test whether the operand
10602 is earlyclobbered in that particular alternative.
10603 (process_alt_operands): Update call accordingly. Use per-alternative
10604 checks for earyclobber here too.
10605 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
10606 against zero for IRA_UNKNOWN_ALT.
10607
10608 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
10609
10610 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
10611
10612 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
10613
10614 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
10615 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
10616
10617 2019-07-30 Martin Liska <mliska@suse.cz>
10618
10619 PR ipa/89330
10620 * cgraph.c (cgraph_edge::make_direct): Use
10621 edge->indirect_unknown_callee as edge->resolve_speculation can
10622 deallocate edge which is this pointer.
10623
10624 2019-07-30 Richard Biener <rguenther@suse.de>
10625
10626 PR tree-optimization/91257
10627 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
10628
10629 2019-07-30 Martin Liska <mliska@suse.cz>
10630
10631 * doc/invoke.texi: Document new behavior.
10632 * lto-wrapper.c (cpuset_popcount): New function
10633 is a copy of libgomp/config/linux/proc.c.
10634 (init_num_threads): Likewise.
10635 (run_gcc): Automatically detect core count for -flto.
10636 (jobserver_active_p): New function.
10637
10638 2019-07-30 Richard Biener <rguenther@suse.de>
10639
10640 PR tree-optimization/91257
10641 * bitmap.h (bitmap_ior_into_and_free): Declare.
10642 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
10643 whether to add the unliked element to the freelist.
10644 (bitmap_list_insert_element_after): Add defaulted param for
10645 an already allocated element.
10646 (bitmap_ior_into_and_free): New function.
10647 * tree-ssa-structalias.c (condense_visit): Reduce the
10648 ponts-to and edge bitmaps of the SCC members in a
10649 logarithmic fashion rather than all to one.
10650
10651 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
10652
10653 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
10654 parameter. When nonnull, make sure that the addition or subtraction
10655 has the same condition.
10656 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
10657 for CFN_COND_MUL too.
10658
10659 2019-07-30 Richard Biener <rguenther@suse.de>
10660
10661 PR tree-optimization/91291
10662 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
10663 constant values.
10664
10665 2019-07-30 Jakub Jelinek <jakub@redhat.com>
10666
10667 PR middle-end/91216
10668 * omp-low.c (global_nonaddressable_vars): New variable.
10669 (use_pointer_for_field): For global decls, if they are non-addressable,
10670 remember it in the global_nonaddressable_vars bitmap, if they are
10671 addressable and in the global_nonaddressable_vars bitmap, ignore their
10672 TREE_ADDRESSABLE bit.
10673 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
10674 vars in global_nonaddressable_vars bitmap.
10675 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
10676
10677 PR target/91150
10678 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
10679 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
10680 comparison to unsigned HOST_WIDE_INT before shifting it left.
10681
10682 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
10683
10684 * config/i386/i386.md (movstrict<mode>): Use register_operand
10685 predicate for operand 0. Add expander condition. Assert that
10686 operand 0 is a SUBREG RTX.
10687 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
10688 Update operand constraints and insn condition.
10689 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
10690 (zero_extendqihi2_and): Do not call gen_movstrictqi.
10691 (*setcc_qi_slp): Use register_operand predicate for operand 0.
10692 Update operand 0 constraints.
10693 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
10694
10695 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10696
10697 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
10698 when -m{code,data}-region are used without -mlarge.
10699 * config/msp430/msp430.c (msp430_option_override): Error when a
10700 non-default code or data region is used without -mlarge.
10701 (msp430_section_attr): Emit a warning and do not add upper/lower/either
10702 attributes when they are used without -mlarge.
10703
10704 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10705
10706 PR target/70320
10707 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
10708
10709 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10710
10711 PR middle-end/91242
10712 * wide-int.h (generic_wide_int::sext_elt): New function.
10713 * inchash.h (hash::add_wide_int): Use it instead of elt.
10714
10715 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10716
10717 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
10718 CODE_FOR_arm_##.
10719 * config/arm/arm.md (<crc_variant>): Rename to...
10720 (arm_<crc_variant>): ... This.
10721 (<cdp>): Rename to...
10722 (arm_<cdp>): ... This.
10723 (<ldc>): Rename to...
10724 (arm_<ldc>): ... This.
10725 (<stc>): Rename to...
10726 (arm_<stc>): ... This.
10727 (<mcr>): Rename to...
10728 (arm_<mcr>): ... This.
10729 (<mrc>): Rename to...
10730 (arm_<mrc>): ... This.
10731 (<mcrr>): Rename to...
10732 (arm_<mcrr>): ... This.
10733 (<mrrc>): Rename to...
10734 (arm_<mrrc>): ... This.
10735
10736 2019-07-29 Richard Biener <rguenther@suse.de>
10737
10738 PR tree-optimization/91257
10739 * tree-ssa-sccvn.h (struct vn_avail): New.
10740 (struct vn_ssa_aux): Add avail member.
10741 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
10742 member, add m_avail_freelist one.
10743 (rpo_elim::~rpo_elim): Remove.
10744 (rpo_elim::eliminate_avail): Adjust to new avail tracking
10745 data structure.
10746 (rpo_elim::eliminate_push_avail): Likewise.
10747 (do_unwind): Likewise.
10748 (do_rpo_vn): Likewise.
10749
10750 2019-07-29 Richard Biener <rguenther@suse.de>
10751
10752 PR tree-optimization/91257
10753 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
10754 most cases, instead call compare_values which handles the
10755 symbolic ranges we handle specially.
10756 (compare_values_warnv): Do not call operand_less_p but open-code
10757 the effective fold calls. Avoid converting so much.
10758
10759 2019-07-29 Martin Liska <mliska@suse.cz>
10760
10761 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
10762 remove LHS of operator new call. It's handled latter.
10763
10764 2019-07-29 Richard Biener <rguenther@suse.de>
10765
10766 PR tree-optimization/91267
10767 * vr-values.c (vr_values::update_value_range): Add early return
10768 for effectively VARYING lattice entry.
10769
10770 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10771
10772 PR debug/86638
10773 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
10774 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
10775 necessary if keep_all_vdefs_p is true.
10776 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
10777 that keep_all_vdefs_p is false.
10778 (mark_all_reaching_defs_necessary): Likewise.
10779 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
10780
10781 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10782
10783 * common.opt (Og): Change the initial value of flag_dse to 0.
10784 * opts.c (default_options_table): Move OPT_ftree_dse from
10785 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
10786 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
10787 entry before the OPT_ftree_sra entry.
10788 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
10789 of flags disabled by Og.
10790
10791 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10792
10793 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
10794 variables for -Og.
10795
10796 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10797
10798 * doc/sourcebuild.texi (check-function-bodies): Document.
10799
10800 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10801
10802 * simplify-rtx.c (simplify_const_unary_operation): Fold a
10803 VEC_DUPLICATE of a fixed-length vector even if the result
10804 is variable-length. Likewise fold a duplicate of a
10805 variable-length vector if the variable-length vector is
10806 itself a duplicate of a fixed-length sequence.
10807 (test_vector_ops_duplicate): Test more cases.
10808
10809 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10810
10811 * vector-builder.h (vector_builder): Add a shape template parameter.
10812 (vector_builder::new_unary_operation): New function, generalizing
10813 the old tree_vector_builder function.
10814 (vector_builder::new_binary_operation): Likewise.
10815 (vector_builder::binary_encoded_nelts): Likewise.
10816 * int-vector-builder.h (int_vector_builder): Update template
10817 parameters to vector_builder.
10818 (int_vector_builder::shape_nelts): New function.
10819 * rtx-vector-builder.h (rtx_vector_builder): Update template
10820 parameters to vector_builder.
10821 (rtx_vector_builder::shape_nelts): New function.
10822 (rtx_vector_builder::nelts_of): Likewise.
10823 (rtx_vector_builder::npatterns_of): Likewise.
10824 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
10825 * tree-vector-builder.h (tree_vector_builder): Update template
10826 parameters to vector_builder.
10827 (tree_vector_builder::shape_nelts): New function.
10828 (tree_vector_builder::nelts_of): Likewise.
10829 (tree_vector_builder::npatterns_of): Likewise.
10830 (tree_vector_builder::nelts_per_pattern_of): Likewise.
10831 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
10832 (tree_vector_builder::new_binary_operation): Delete.
10833 (tree_vector_builder::binary_encoded_nelts): Likewise.
10834 * simplify-rtx.c: Include rtx-vector-builder.h.
10835 (distributes_over_addition_p): New function.
10836 (simplify_const_unary_operation)
10837 (simplify_const_binary_operation): Generalize handling of vector
10838 constants to include variable-length vectors.
10839 (test_vector_ops_series): Add more tests.
10840
10841 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
10842
10843 PR lto/91222
10844 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
10845 than INDENTIFIER_POINTER.
10846
10847 2019-07-28 Martin Liska <mliska@suse.cz>
10848
10849 PR ipa/89330
10850 * cgraph.c (symbol_table::create_edge): Always allocate
10851 a cgraph_edge.
10852 (symbol_table::free_edge): Store summary_id to
10853 edge_released_summary_ids if != -1;
10854 * cgraph.h (NEXT_FREE_NODE): Remove.
10855 (SET_NEXT_FREE_NODE): Likewise.
10856 (NEXT_FREE_EDGE): Likewise.
10857 (symbol_table::release_symbol): Store summary_id to
10858 cgraph_released_summary_ids if != -1;
10859 (symbol_table::allocate_cgraph_symbol): Always allocate
10860 a cgraph_node.
10861
10862 2019-07-28 Alan Modra <amodra@gmail.com>
10863
10864 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
10865 gen_sibcall.
10866
10867 2019-07-28 Alan Modra <amodra@gmail.com>
10868
10869 PR target/91135
10870 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
10871 define.
10872 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
10873 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
10874 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
10875
10876 2019-07-28 Alan Modra <amodra@gmail.com>
10877
10878 PR target/91050
10879 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
10880 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
10881 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
10882 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
10883 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
10884 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
10885 in asm_default spec.
10886 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
10887 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
10888
10889 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
10890
10891 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
10892
10893 2019-07-26 Tamar Christina <tamar.christina@arm.com>
10894
10895 PR target/89517
10896 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
10897 * config/aarch64/aarch64-option-extensions.def: Add new comments
10898 and restore easier to read options.
10899
10900 2019-07-26 Tamar Christina <tamar.christina@arm.com>
10901
10902 * convert.c (convert_to_real_1): Move part of conversion code...
10903 * match.pd: ...To here.
10904
10905 2019-07-26 Martin Jambor <mjambor@suse.cz>
10906
10907 PR ipa/89330
10908 * ipa-inline-transform.c (check_speculations_1): New function.
10909 (push_all_edges_in_set_to_vec): Likewise.
10910 (check_speculations): Use check_speculations_1, new parameter
10911 new_edges.
10912 (inline_call): Pass new_edges to check_speculations.
10913 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
10914 NULL.
10915 (speculation_useful_p): Early return true if edge is inlined, remove
10916 later checks for inline_failed.
10917
10918 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
10919
10920 PR rtl-optimization/91223
10921 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
10922 matching with INOUT operand.
10923
10924 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
10925
10926 * stmt.c (expand_case): Try to narrow the index type if it's larger
10927 than a word. Tidy up.
10928
10929 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
10930
10931 * cif-code.def (NEVER_CALL): New code.
10932 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
10933 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
10934
10935 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
10936
10937 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
10938 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
10939
10940 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10941
10942 * ipa-devirt.c (add_type_duplicate): Fix return value.
10943
10944 2019-07-25 Richard Biener <rguenther@suse.de>
10945
10946 * tree-vrp.c (extract_range_from_multiplicative_op): Add
10947 type parameter and use it instead of guessing expression
10948 type from the first operand.
10949 (extract_range_from_binary_expr): Pass expr_type down.
10950
10951 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10952
10953 * config/arm/arm.md (SATrev): Change to code attribute.
10954 (*satsi_<SAT:code>): Adjust for the above.
10955 (*satsi_<SAT:code>_shift): Likewise.
10956
10957 2019-07-25 Richard Biener <rguenther@suse.de>
10958
10959 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
10960 Make value_range * temporary const.
10961 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
10962 Likewise.
10963 (evrp_range_analyzer::record_ranges_from_): Likewise.
10964 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
10965 deal with having recorded a const one.
10966 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
10967 Return a const value_range *.
10968 (evrp_range_analyzer::pop_value_range): Likewise.
10969 (evrp_range_analyzer::stack): Record const value_range *s.
10970 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
10971 Adjust.
10972 * gimple-ssa-sprintf.c (get_int_range): Likewise.
10973 (format_integer): Likewise.
10974 (sprintf_dom_walker::handle_gimple_call): Likewise.
10975 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
10976 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
10977 (vrp_prop::get_value_range): Adjust.
10978 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
10979 modifying the lattice in-place.
10980 (vrp_prop::visit_stmt): Likewise.
10981 * vr-values.c (vr_values::get_lattice_entry): New private method.
10982 (vr_values::get_value_range): Wrap it and return a const
10983 value_range *.
10984 (vr_values::set_def_to_varying): New.
10985 (vr_values::set_defs_to_varying): Use it.
10986 (vr_values::update_value_range): Likewise.
10987 (vr_values::vrp_stmt_computes_nonzero): Adjust.
10988 (values::op_with_constant_singleton_va): Likewise.
10989 (vr_values::extract_range_for_var_from_co): Likewise.
10990 (vr_values::extract_range_from_ssa_name): Likewise.
10991 (vr_values::extract_range_from_cond_expr): Likewise.
10992 (vr_values::extract_range_basic): Likewise.
10993 (compare_ranges): Take const value_range *, adjust.
10994 (compare_range_with_value): Likewise.
10995 (vrp_valueize): Adjust.
10996 (vrp_valueize_1): Likewise.
10997 (vr_values::get_vr_for_comparison): Return a const value_range *.
10998 (vr_values::compare_name_with_value): Adjust.
10999 (vr_values::compare_names): Likewise.
11000 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
11001 Likewise.
11002 (vr_values::vrp_evaluate_conditional): Likewise.
11003 (find_case_label_ranges): Take a const value_range *.
11004 (vr_values::vrp_visit_switch_stmt): Adjust.
11005 (vr_values::extract_range_from_phi_node): Likewise.
11006 (vr_values::simplify_div_or_mod_using_ran): Likewise.
11007 (vr_values::simplify_abs_using_ranges): Likewise.
11008 (test_for_singularity): Take a const value_range *.
11009 (range_fits_type_p): Likewise.
11010 (vr_values::simplify_cond_using_ranges_1): Adjust.
11011 (vr_values::simplify_cond_using_ranges_2): Likewise.
11012 (vr_values::simplify_switch_using_ranges): Likewise.
11013 (vr_values::simplify_float_conversion_usi): Likewise.
11014 (vr_values::two_valued_val_range_p): Likewise.
11015 * vr-values.h (vr_values::get_value_range): Return a const
11016 value_range *.
11017 (vr_values::set_def_to_varying): New.
11018 (vr_values::get_lattice_entry): New private method.
11019 (vr_values::get_vr_for_comparison): Return a const value_range *.
11020
11021 2019-07-25 Martin Liska <mliska@suse.cz>
11022 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
11023
11024 PR c++/23383
11025 * common.opt: Add -fallocation-dce
11026 * gimple.c (gimple_call_operator_delete_p): New.
11027 * gimple.h (gimple_call_operator_delete_p): Likewise.
11028 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
11029 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
11030 DECL_IS_OPERATOR_DELETE_P.
11031 (mark_all_reaching_defs_necessary_1): Likewise.
11032 (propagate_necessity): Likewise.
11033 (eliminate_unnecessary_stmts): Handle
11034 gimple_call_operator_delete_p.
11035 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
11036 Add packing of OPERATOR_DELETE.
11037 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
11038 Similarly here.
11039 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
11040 (DECL_SET_IS_OPERATOR_DELETE): New.
11041 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
11042
11043 2019-07-25 Martin Liska <mliska@suse.cz>
11044
11045 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
11046 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
11047 * coverage.c (coverage_begin_function): Likewise.
11048 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
11049 * gimple.c (gimple_call_nonnull_result_p): Likewise.
11050 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
11051 (sem_item::hash_referenced_symbol_properties): Likewise.
11052 * lto-streamer-out.c (hash_tree): Likewise.
11053 * predict.c (expr_expected_value_1): Likewise.
11054 * tree-inline.c (expand_call_inline): Likewise.
11055 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
11056 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
11057 * tree-core.h (enum function_decl_type): New enum.
11058 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
11059 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
11060 (set_function_decl_type): Likewise.
11061 (DECL_IS_OPERATOR_NEW_P): New.
11062 (DECL_SET_IS_OPERATOR_NEW): Likewise.
11063 (DECL_LAMBDA_FUNCTION): Likewise.
11064 (DECL_LAMBDA_FUNCTION_P): Likewise.
11065 (DECL_IS_OPERATOR_NEW): Remove.
11066 (DECL_SET_LAMBDA_FUNCTION): Likewise.
11067
11068 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
11069
11070 * ipa-profile.c (get_most_common_single_value): Use
11071 get_nth_most_common_value.
11072 * profile.c (sort_hist_value): New function.
11073 (compute_value_histograms): Call sort_hist_value to sort the
11074 values after loading from disk.
11075 * value-prof.c (get_most_common_single_value): Rename to ...
11076 get_nth_most_common_value. Add input params n, return
11077 the n_th value and count.
11078 (gimple_divmod_fixed_value_transform): Use
11079 get_nth_most_common_value.
11080 (gimple_ic_transform): Likewise.
11081 (gimple_stringops_transform): Likewise.
11082 * value-prof.h (get_most_common_single_value): Add input params
11083 n, default to 0.
11084
11085 2019-07-25 Richard Biener <rguenther@suse.de>
11086
11087 PR tree-optimization/91236
11088 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
11089 size of CONSTRUCTOR write. Fix buffer size we pass to
11090 native_encode_expr.
11091
11092 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11093
11094 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
11095 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
11096 r273773.
11097
11098 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11099
11100 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
11101 explicitly disabled with --disable-initfini-array.
11102
11103 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11104
11105 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
11106 if-exists.
11107
11108 2019-07-24 Martin Sebor <msebor@redhat.com>
11109
11110 PR tree-optimization/91183
11111 PR tree-optimization/86688
11112 * builtins.c (compute_objsize): Handle MEM_REF.
11113 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
11114 (get_min_string_length): Remove.
11115 (count_nonzero_bytes): New function.
11116 (handle_char_store): Rename...
11117 (handle_store): to this. Handle multibyte stores via integer types.
11118 (strlen_check_and_optimize_stmt): Adjust conditional and the called
11119 function name.
11120
11121 2019-07-24 Martin Sebor <msebor@redhat.com>
11122
11123 PR driver/80545
11124 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
11125 (diagnostic_report_diagnostic): Same.
11126 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
11127 (diagnostic_context::lang_mask): New data member.
11128 * ipa-pure-const.c (suggest_attribute): Use
11129 lang_hooks.option_lang_mask ().
11130 * opts-common.c (option_enabled): Handle new argument.
11131 (get_option_state): Pass an additional argument.
11132 * opts.c (print_filtered_help): Print supported languages for
11133 unsupported options. Adjust printing of current state.
11134 * opts.h (option_enabled): Add argument.
11135 * toplev.c (print_switch_values): Use lang_mask.
11136 (general_init): Set global_dc->lang_mask.
11137
11138 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
11139
11140 PR bootstrap/87030
11141 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
11142
11143 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
11144
11145 * cgraphunit.c (symbol_table::compile): Start and stop
11146 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
11147 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
11148
11149 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
11150
11151 * gimplify.c (flag_instrument_functions_exclude_p): Include
11152 namespace/class information in the printable name.
11153 * opts.c (add_comma_separated_to_vector): Add NUL terminator
11154 to tokens entered into the vector.
11155
11156 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
11157
11158 * tree-nested.c (build_simple_mem_ref_notrap): New function.
11159 (get_static_chain): Call it instead of build_simple_mem_ref.
11160 (get_frame_field): Likewise.
11161 (get_nonlocal_debug_decl): Likewise.
11162 (convert_nonlocal_reference_op): Likewise.
11163
11164 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
11165
11166 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
11167 declaration.
11168 (arc_compute_frame_size): Millicode is disabled when compiling
11169 ISR.
11170 (arc_return_address_register): Likewise.
11171 (arc_compute_function_type): Likewise.
11172 (arc_compute_frame_size): Likewise.
11173 (secondary_reload_info): Likewise.
11174 (arc_get_unalign): Likewise.
11175 (arc_can_use_return_insn): Declare.
11176 * config/arc/arc.c (AUX_LP_START): Define
11177 (AUX_LP_END): Likewise.
11178 (arc_frame_info): Update gmask member to 64-bit datum.
11179 (GMASK_LEN): Update.
11180 (arc_compute_function_type): Make it static, move it forward.
11181 (arc_must_save_register): Update, consider the extra regs.
11182 (arc_compute_millicode_save_restore_regs): Update to use the 64
11183 bit gmask.
11184 (arc_compute_frame_size): Likewise.
11185 (arc_enter_leave_p): Likewise.
11186 (arc_save_callee_saves): Likewise.
11187 (arc_restore_callee_saves): Likewise.
11188 (arc_save_callee_enter): Likewise.
11189 (arc_restore_callee_leave): Likewise.
11190 (arc_save_callee_milli): Likewise.
11191 (arc_restore_callee_milli): Likewise.
11192 (arc_expand_prologue): Add new interrupt handling.
11193 (arc_return_address_register): Make it static, move it forward.
11194 (arc_expand_epilogue): Add new interrupt handling.
11195 (arc_get_unalign): Delete.
11196 (arc_epilogue_uses): Make sure we do not remove the extra
11197 saved/restored registers when interrupt.
11198 (arc_can_use_return_insn): New function.
11199 (push_reg): Likewise.
11200 (pop_reg): Likewise.
11201 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
11202 procedures.
11203 (arc_restore_callee_saves): Likewise, but restoring.
11204 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
11205 (R33_REG): Likewise.
11206 (R34_REG): Likewise.
11207 (R35_REG): Likewise.
11208 (R36_REG): Likewise.
11209 (R37_REG): Likewise.
11210 (R38_REG): Likewise.
11211 (R39_REG): Likewise.
11212 (R45_REG): Likewise.
11213 (R46_REG): Likewise.
11214 (R47_REG): Likewise.
11215 (R48_REG): Likewise.
11216 (R49_REG): Likewise.
11217 (R50_REG): Likewise.
11218 (R51_REG): Likewise.
11219 (R52_REG): Likewise.
11220 (R53_REG): Likewise.
11221 (R54_REG): Likewise.
11222 (R55_REG): Likewise.
11223 (R56_REG): Likewise.
11224 (R58_REG): Likewise.
11225 (type): Add rtie attribute.
11226 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
11227 (movsi_insn): Accept moves to lp_count.
11228 (rtie): Update pattern.
11229 (simple_return): Simplify it, don't use this pattern as a return
11230 from an interrupt.
11231 (arc600_rtie): New pattern.
11232 (p_return_i): Clean up.
11233 (return): Likewise.
11234 * config/arc/builtins.def (rtie): Only available for non ARC6xx
11235 family CPUs.
11236 * config/arc/predicates.md (move_src_operand): Consider lp_count
11237 as a register.
11238
11239 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
11240
11241 * config/s390/predicates.md (addv_const_operand): New predicate.
11242 * config/s390/s390-modes.def (CCO): New condition code mode.
11243 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
11244 (s390_branch_condition_mask): Likewise.
11245 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
11246 ("mulv<mode>4"): New expanders.
11247 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
11248 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
11249 pattern definitions.
11250
11251 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11252
11253 PR middle-end/91166
11254 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
11255 (define_predicates): Add entry for uniform_vector_p.
11256 (vec_same_elem_p): New match pattern.
11257
11258 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
11259
11260 PR bootstrap/87030
11261 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
11262 * config/i386/darwin32-biarch.h .. to here.
11263 * config/i386/darwin64-biarch.h: Adjust comments.
11264 * config/rs6000/darwin32-biarch.h: Likewise.
11265 * config/rs6000/darwin64-biarch.h: Likewise.
11266 * config.gcc: Missed commit from r273746
11267 (*-*-darwin*): Don't include CPU t-darwin here.
11268 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
11269 an error message if i686-darwin configuration is attempted for
11270 Darwin >= 18.
11271
11272 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
11273
11274 PR bootstrap/87030
11275 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
11276 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
11277 an error message if i686-darwin configuration is attempted for
11278 Darwin >= 18.
11279 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
11280 (powerpc-*-darwin*): Use biarch files where needed.
11281 (powerpc64-*-darwin*): Likewise.
11282 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
11283 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
11284 arch case.
11285 * config/i386/darwin32-biarch.h: New.
11286 * config/i386/darwin64.h: Rename.
11287 * config/i386/darwin64-biarch.h: To this.
11288 * config/i386/t-darwin: Rename.
11289 * config/i386/t-darwin32-biarch: To this.
11290 * config/i386/t-darwin64: Rename.
11291 * config/i386/t-darwin64-biarch: To this.
11292 * config/rs6000/darwin32-biarch.h: New.
11293 * config/rs6000/darwin64.h: Rename.
11294 * config/rs6000/darwin64-biarch.h: To this.
11295 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
11296 arch case.
11297 * config/rs6000/t-darwin8: Rename.
11298 * config/rs6000/t-darwin32-biarch: To this.
11299 * config/rs6000/t-darwin64 Rename.
11300 * config/rs6000/t-darwin64-biarch: To this.
11301
11302 2019-07-23 Martin Sebor <msebor@redhat.com>
11303
11304 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
11305
11306 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
11307
11308 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
11309 (rh): New alias for it.
11310
11311 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
11312
11313 * gdbhooks.py: Pass replace=True to
11314 gdb.printing.register_pretty_printer.
11315
11316 2019-07-23 Richard Biener <rguenther@suse.de>
11317
11318 PR debug/91231
11319 * lto-streamer-in.c (input_function): Drop inline-entry markers
11320 that ended up with an unknown location block.
11321
11322 2019-07-23 Richard Biener <rguenther@suse.de>
11323
11324 PR tree-optimization/83518
11325 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
11326 init from a constant even when partial defs are already recorded.
11327
11328 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
11329
11330 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
11331 * config/i386/znver1.md: Enable patterns for znver2 and add store
11332 variants which use extra AGU unit.
11333
11334 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
11335
11336 * config/i386/i386-options.c (ix86_option_override_internal): Default
11337 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
11338 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
11339 for ZNVER2.
11340
11341 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
11342
11343 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
11344 (znver2_costs): Update 256 bit SSE costs and multiplication.
11345
11346 2019-07-23 Jan Beulich <jbeulich@suse.com>
11347
11348 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
11349 Require only AVX512F.
11350 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
11351 alternative expanding to vpternlog.
11352
11353 2019-07-23 Martin Liska <mliska@suse.cz>
11354
11355 * dwarf2out.c (gen_producer_string): Canonize -flto=N
11356 to -flto in dwarf producer string.
11357
11358 2019-07-23 Richard Biener <rguenther@suse.de>
11359
11360 * tree-cfg.c (label_for_bb): Remove global var.
11361 (main_block_label): Take label_for_bb as argument.
11362 (cleanup_dead_labels_eh): Likewise, adjust.
11363 (cleanup_dead_labels): Adjust.
11364
11365 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
11366
11367 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
11368 Configurations): Add documentation for __builtin_mtfsf.
11369
11370 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
11371
11372 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
11373 * config/riscv/riscv.c (riscv_constant_alignment): Use
11374 riscv_align_data_type.
11375 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
11376 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
11377 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
11378 * config/riscv/riscv.opt (malign-data): New.
11379 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
11380
11381 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
11382
11383 * cgraph.c (dump_graphviz): New function.
11384 * cgraph.h (dump_graphviz): New function.
11385 * symtab.c (dump_graphviz): New function.
11386
11387 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
11388
11389 * config/aarch64/aarch64-simd.md
11390 (*aarch64_simd_sra<mode>): New.
11391 * config/aarch64/iterators.md
11392 (SHIFTRT): New iterator.
11393 (sra_op): New attribute.
11394
11395 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11396
11397 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
11398 callee-saved regs R4->R10 in an interrupt function that calls another
11399 function.
11400
11401 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
11402
11403 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
11404 (_mm_blendv_epi8): New.
11405
11406 2019-07-22 Richard Biener <rguenther@suse.de>
11407
11408 PR tree-optimization/91221
11409 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
11410 restrict partial-def handling of empty constructors and
11411 memset to refs with known offset.
11412
11413 2019-07-22 Jan Beulich <jbeulich@suse.com>
11414
11415 * config/i386/sse.md (ternlogsuffix): New.
11416 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
11417 AVX512F is in use.
11418 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
11419
11420 2019-07-22 Martin Liska <mliska@suse.cz>
11421
11422 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
11423 comment.
11424 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
11425
11426 2019-07-22 Martin Liska <mliska@suse.cz>
11427
11428 * lto-section-in.c (lto_get_section_data):
11429 Use new function get_compression.
11430 * lto-streamer-out.c (produce_lto_section): Use
11431 set_compression to encode compression algorithm.
11432 * lto-streamer.h (struct lto_section): Do not
11433 use bitfields in the format.
11434
11435 2019-07-22 Martin Liska <mliska@suse.cz>
11436
11437 PR driver/91172
11438 * opts-common.c (decode_cmdline_option): Decode
11439 argument of -Werror and check it for a wrong language.
11440 * opts-global.c (complain_wrong_lang): Remove such case.
11441
11442 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
11443
11444 * config/arc/arc.c (prepare_move_operands): Always use an
11445 intermediate register when storing a TLS symbols.
11446
11447 2019-07-22 Stafford Horne <shorne@gmail.com>
11448
11449 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
11450 force_reg.
11451
11452 2019-07-22 Stafford Horne <shorne@gmail.com>
11453
11454 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
11455 and munordered-float validations.
11456 * config/or1k/constraints.md (d): New register constraint.
11457 * config/or1k/predicates.md (fp_comparison_operator): New.
11458 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
11459 operands.
11460 (or1k_expand_compare): Normalize unordered comparisons.
11461 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
11462 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
11463 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
11464 * config/or1k/or1k.md (type): Add fpu.
11465 (fpu): New instruction reservation.
11466 (F, f, fr, fi, FI, FOP, fop): New.
11467 (<fop><F:mode>3): New ALU instruction definition.
11468 (float<fi><F:mode>2): New conversion instruction definition.
11469 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
11470 (fpcmpcc): New code iterator.
11471 (*sf_fp_insn): New instruction definition.
11472 (cstore<F:mode>4): New expand definition.
11473 (cbranch<F:mode>4): New expand definition.
11474 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
11475 munordered-float): New options.
11476 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
11477 munordered-float.
11478
11479 2019-07-22 Stafford Horne <shorne@gmail.com>
11480
11481 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
11482 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
11483 documenation to be more clear.
11484 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
11485 more clear.
11486 * config/or1k/or1k.opt (mrori): New option.
11487 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
11488 msfimm, mshftimm): Rewrite documentation to be more clear.
11489 * config/or1k/or1k.md (insn_support): Add ror and rori.
11490 (enabled): Add conditions for ror and rori.
11491 (rotrsi3): Replace condition for shftimm with ror and rori.
11492
11493 2019-07-22 Stafford Horne <shorne@gmail.com>
11494
11495 PR target/90363
11496 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
11497 (extend<mode>si2): Update predicate.
11498 * config/or1k/predicates.md (volatile_mem_operand): New.
11499 (reg_or_mem_operand): New.
11500
11501 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
11502
11503 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
11504 * config/rs6000/rs6000-call.c: ... to here.
11505
11506 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
11507
11508 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
11509 memory.
11510
11511 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
11512
11513 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
11514
11515 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
11516
11517 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
11518
11519 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
11520
11521 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
11522 (any_memory_operand): New predicate.
11523 (reg_or_mem_operand): Use it.
11524
11525 2019-07-20 Jakub Jelinek <jakub@redhat.com>
11526
11527 PR target/91204
11528 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
11529
11530 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
11531
11532 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
11533 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
11534
11535 2019-07-20 Jakub Jelinek <jakub@redhat.com>
11536
11537 * tree.def (OMP_LOOP): New tree code.
11538 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
11539 (enum omp_clause_bind_kind): New enum.
11540 (struct tree_omp_clause): Add subcode.bind_kind.
11541 * tree.h (OMP_LOOP_CHECK): Rename to ...
11542 (OMP_LOOPING_CHECK): ... this.
11543 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
11544 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
11545 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
11546 (OMP_CLAUSE_BIND_KIND): Define.
11547 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11548 bind clause entries.
11549 (walk_tree_1): Handle OMP_CLAUSE_BIND.
11550 * tree-pretty-print.c (dump_omp_clause): Likewise.
11551 (dump_generic_node): Handle OMP_LOOP.
11552 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
11553 (in_omp_construct): New variable.
11554 (is_gimple_stmt): Handle OMP_LOOP.
11555 (gimplify_scan_omp_clauses): For lastprivate don't set
11556 check_non_private if code == OMP_LOOP. For reduction clause
11557 on OMP_LOOP combined with parallel or teams propagate as shared
11558 on the combined construct. Handle OMP_CLAUSE_BIND.
11559 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
11560 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
11561 for constructs from a loop construct to gimplify_scan_omp_clauses.
11562 Don't predetermine iterator linear on OMP_SIMD from loop construct.
11563 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
11564 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
11565 to match the implicit ORT_TARGET construct around whole body.
11566 Temporarily clear in_omp_construct when processing body.
11567 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
11568 etc. temporarily set in_omp_construct when processing body.
11569 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
11570 * omp-low.c (struct omp_context): Add loop_p.
11571 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
11572 in that the original var might be private.
11573 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
11574 (check_omp_nesting_restrictions): Adjust nesting restrictions for
11575 addition of loop construct.
11576 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
11577
11578 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
11579 lastprivate non-addressable iterator of a collapse(1) simd.
11580
11581 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
11582
11583 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
11584 as in rs6000.c.
11585
11586 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
11587
11588 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
11589 refer to default conditions. Warn for the 'y' spec which is ignored
11590 by current linkers.
11591
11592 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
11593
11594 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
11595 cpu_supports_info, builtin_hash_struct, builtin_hasher,
11596 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
11597 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
11598 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
11599 init_cumulative_args, rs6000_promote_function_mode,
11600 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
11601 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
11602 rs6000_function_arg_boundary, rs6000_parm_offset,
11603 rs6000_parm_start, rs6000_arg_size,
11604 rs6000_darwin64_record_arg_advance_flush,
11605 rs6000_darwin64_record_arg_advance_recurse,
11606 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
11607 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
11608 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
11609 rs6000_mixed_function_arg, rs6000_psave_function_arg,
11610 rs6000_finish_function_arg, rs6000_function_arg,
11611 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
11612 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
11613 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
11614 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
11615 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
11616 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
11617 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
11618 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
11619 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
11620 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
11621 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
11622 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
11623 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
11624 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
11625 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
11626 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
11627 get_element_number, altivec_expand_vec_set_builtin,
11628 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
11629 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
11630 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
11631 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
11632 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
11633 rs6000_expand_builtin, rs6000_vector_type,
11634 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
11635 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
11636 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
11637 to rs6000-call.c.
11638 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
11639 cpu_supports_info, builtin_hash_struct, builtin_hasher,
11640 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
11641 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
11642 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
11643 init_cumulative_args, rs6000_promote_function_mode,
11644 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
11645 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
11646 rs6000_function_arg_boundary, rs6000_parm_offset,
11647 rs6000_parm_start, rs6000_arg_size,
11648 rs6000_darwin64_record_arg_advance_flush,
11649 rs6000_darwin64_record_arg_advance_recurse,
11650 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
11651 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
11652 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
11653 rs6000_mixed_function_arg, rs6000_psave_function_arg,
11654 rs6000_finish_function_arg, rs6000_function_arg,
11655 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
11656 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
11657 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
11658 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
11659 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
11660 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
11661 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
11662 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
11663 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
11664 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
11665 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
11666 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
11667 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
11668 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
11669 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
11670 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
11671 get_element_number, altivec_expand_vec_set_builtin,
11672 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
11673 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
11674 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
11675 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
11676 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
11677 rs6000_expand_builtin, rs6000_vector_type,
11678 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
11679 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
11680 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
11681 to here from rs6000.c.
11682 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
11683 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
11684 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
11685 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
11686 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
11687 rs6000_return_in_memory, rs6000_return_in_msb,
11688 rs6000_pass_by_reference, setup_incoming_varargs,
11689 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
11690 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
11691 rs6000_function_arg_padding, rs6000_function_arg,
11692 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
11693 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
11694 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
11695 rs6000_passes_long_double, rs6000_passes_vector,
11696 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
11697 altivec_builtin_mask_for_load) Add declarations.
11698 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
11699 * config/config.gcc: Add new source file rs6000-call.c to garbage
11700 collector and extra_objs.
11701
11702 2019-07-19 Jeff Law <law@redhat.com>
11703
11704 PR tree-optimization/86061
11705 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
11706 strncpy. Drop some trivial dead code.
11707 (maybe_trim_memstar_call): Handle strncpy.
11708
11709 2019-07-19 Richard Biener <rguenther@suse.de>
11710
11711 PR tree-optimization/91211
11712 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
11713 memset encoding size.
11714
11715 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
11716
11717 PR target/91204
11718 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
11719
11720 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
11721
11722 PR ipa/91194
11723 * ipa-inline.c (recursive_inlining): Fix limits check.
11724
11725 2019-07-19 Richard Biener <rguenther@suse.de>
11726
11727 PR tree-optimization/91200
11728 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
11729 no PHI nodes in middle-bb.
11730
11731 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
11732
11733 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
11734 to +sve-bitperm.
11735 * config/aarch64/aarch64-option-extensions.def: Likewise.
11736
11737 2019-07-19 Jakub Jelinek <jakub@redhat.com>
11738
11739 PR middle-end/91190
11740 * function.c (insert_temp_slot_address): Store into the hash table
11741 a copy of address to avoid RTL sharing issues.
11742
11743 2019-07-19 Richard Biener <rguenther@suse.de>
11744
11745 PR tree-optimization/91207
11746 Revert
11747 2019-07-17 Richard Biener <rguenther@suse.de>
11748
11749 PR tree-optimization/91178
11750 * tree-vect-stmts.c (get_group_load_store_type): For SLP
11751 loads with a gap larger than the vector size always use
11752 VMAT_STRIDED_SLP.
11753 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
11754 avoid loading vectors that are only contained in the gap
11755 and thus are not needed.
11756
11757 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
11758
11759 * config/i386/i386.md (*addqi_2_slp): Remove.
11760 (*<code>qi_2_slp): Ditto.
11761
11762 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
11763
11764 * config/rs6000/predicates.md (prefixed_mem_operand): Call
11765 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
11766 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
11767 Rename function from rs6000_prefixed_address.
11768 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
11769 TARGET_HAS_TOC.
11770 (TARGET_TOC): Likewise.
11771 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
11772 rs6000.h.
11773 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
11774 TARGET_HAS_TOC.
11775 (TARGET_TOC): Likewise.
11776 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
11777 rs6000.h.
11778 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
11779 TARGET_HAS_TOC.
11780 (TARGET_TOC): Likewise.
11781 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
11782 check to require -mcmodel=medium for pc-relative addressing.
11783 (create_TOC_reference): Add assertion for TARGET_TOC.
11784 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
11785 TARGET_NO_TOC.
11786 (rs6000_emit_move): Likewise.
11787 (TOC_alias_set): Rename TOC alias set static variable from 'set'
11788 to 'TOC_alias_set'.
11789 (get_TOC_alias_set): Likewise.
11790 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
11791 TARGET_NO_TOC.
11792 (rs6000_can_eliminate): Likewise.
11793 (rs6000_prefixed_address_mode_p): Rename function from
11794 rs6000_prefixed_address.
11795 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
11796 TARGET_HAS_TOC and not pc-relative.
11797 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
11798 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
11799 TARGET_HAS_TOC.
11800 (TARGET_TOC): Likewise.
11801 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
11802 rs6000.h.
11803
11804 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
11805
11806 PR target/91188
11807 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
11808 for operand 0. Do not use (match_dup) to match operand 1 with
11809 operand 0. Add check in insn constraint that either input operand
11810 matches operand 0. Use SWI12 mode iterator to also handle
11811 HImode operands.
11812 (*and<mode>_1_slp): Ditto.
11813 (*<code>qi_1_slp): Ditto.
11814 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
11815 Do not use (match_dup) to match operand 1 with operand 0. Add
11816 check in insn constraint that operand 1 matches operand 0.
11817 Use SWI12 mode iterator to also handle HImode operands.
11818 (*ashl<mode>3_1_slp): Ditto.
11819 (*<shift_insn><mode>3_1_slp): Ditto.
11820 (*<rotate_insn><mode>3_1_slp): Ditto.
11821
11822 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
11823
11824 * config/arm/arm-builtins.c
11825 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
11826 (arm_expand_unop_builtin): Likewise.
11827 * config/arm/crypto.md
11828 (crypto_sha1h): Convert from define_insn to define_expand.
11829 (crypto_<crypto_pattern>): Likewise.
11830 (crypto_sha1h_lb): New define_insn.
11831 (crypto_<crypto_pattern>_lb): Likewise.
11832
11833 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
11834
11835 PR target/90317
11836 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
11837 (vsha1cq_u32): Likewise.
11838 (vsha1pq_u32): Likewise.
11839 (vsha1mq_u32): Likewise.
11840 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
11841 vec select.
11842 (crypto_sha1c): Correct vec select.
11843 (crypto_sha1m): Likewise.
11844 (crypto_sha1p): Likewise.
11845
11846 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
11847
11848 * config/arm/predicates.md (arm_borrow_operation): New predicate.
11849 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
11850 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
11851 (subdi_zesidi_zesidi): Likewise.
11852 (negdi2_compare, negdi2_insn): Likewise.
11853 (negdi_extensidi): Likewise.
11854 (negdi_zero_extendsidi): Likewise.
11855 (arm_cmpdi_insn): Likewise.
11856 (subsi3_carryin): Use arm_borrow_operation.
11857 (subsi3_carryin_const): Likewise.
11858 (subsi3_carryin_const0): Likewise.
11859 (subsi3_carryin_compare): Likewise.
11860 (subsi3_carryin_compare_const): Likewise.
11861 (subsi3_carryin_compare_const0): Likewise.
11862 (subsi3_carryin_shift): Likewise.
11863 (rsbsi3_carryin_shift): Likewise.
11864 (negsi2_carryin_compare): Likewise.
11865
11866 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
11867
11868 PR tree-optimization/91137
11869 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
11870 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
11871 Init, use and fini the above new field.
11872 (determine_base_object_1): New function.
11873 (determine_base_object): Reimplement using walk_tree.
11874
11875 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
11876
11877 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
11878 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
11879 CLEANUP_FORCE_FAST_DCE is set.
11880 * ifcvt.c (rest_of_handle_if_conversion): Pass
11881 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
11882 if-conversion succeeded.
11883
11884 2019-07-18 Richard Biener <rguenther@suse.de>
11885
11886 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
11887 branches to make code less indented.
11888
11889 2019-07-17 Alexandre Oliva <oliva@adacore.com>
11890
11891 PR middle-end/81824
11892 * attribs.c (decls_mismatched_attributes): Simplify the logic
11893 that avoids duplicates and false positives.
11894
11895 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
11896
11897 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
11898 data into data section when generating PIC code.
11899 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
11900 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
11901 generating code for SOM targets earlier than HP-UX 11. Otherwise,
11902 return 2 for SOM and 0 for other targets.
11903
11904 2019-07-17 Jeff Law <law@redhat.com>
11905
11906 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
11907 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
11908 avoid unexpected switch statement fallthru.
11909
11910 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
11911
11912 * config/i386/i386.md (*add<dwi>3_doubleword):
11913 Remove redundant constraints.
11914 (*add<mode>_1): Ditto.
11915 (*addhi_1): Ditto.
11916 (*addqi_1): Ditto.
11917 (*addqi_1_slp): Ditto.
11918 (*add<mode>_2): Ditto.
11919 (*addv<mode>4): Ditto.
11920 (*sub<dwi>3_doubleword): Ditto.
11921 (*sub<mode>_1): Ditto.
11922 (*subqi_1_slp): Ditto.
11923 (*sub<mode>_2): Ditto.
11924 (*subv<mode>4): Ditto.
11925 (*sub<mode>_3): Ditto.
11926 (@add<mode>3_carry): Ditto.
11927 (@sub<mode>3_carry): Ditto.
11928 (*add<mode>3_cc_overflow_1): Ditto.
11929 (*add<mode>3_zext_cc_overflow_2): Ditto.
11930 (*anddi_1): Ditto.
11931 (*and<mode>_1): Ditto.
11932 (*andqi_1): Ditto.
11933 (*andqi_1_slp): Ditto.
11934 (*anddi_2): Ditto.
11935 (*andqi_2_maybe_si): Ditto.
11936 (*and<mode>_2): Ditto.
11937 (*andqi_2_slp): Ditto.
11938 (*<code><mode>_1): Ditto.
11939 (*<code>qi_1): Ditto.
11940 (*<code>qi_1_slp): Ditto.
11941 (*<code><mode>_2): Ditto.
11942 (*<code>qi_2_slp): Ditto.
11943
11944 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
11945
11946 * alias.c (record_component_aliases): Do not simplify pointed-to
11947 types of ODR types.
11948
11949 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
11950
11951 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
11952 partial reg stall on alternative 2.
11953
11954 2019-07-17 Richard Biener <rguenther@suse.de>
11955
11956 PR tree-optimization/91178
11957 * tree-ssa.c (release_defs_bitset): Iterate from higher to
11958 lower SSA names to avoid quadratic behavior in the common case.
11959 * tree-data-ref.c (split_constant_offset): Add limit argument
11960 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
11961 (split_constant_offset_1): Add limit argument and use it to
11962 limit SSA def walking. Optimize the common plus/minus case.
11963
11964 2019-07-17 Richard Biener <rguenther@suse.de>
11965
11966 PR tree-optimization/91178
11967 * tree-vect-stmts.c (get_group_load_store_type): For SLP
11968 loads with a gap larger than the vector size always use
11969 VMAT_STRIDED_SLP.
11970 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
11971 avoid loading vectors that are only contained in the gap
11972 and thus are not needed.
11973
11974 2019-07-17 Richard Biener <rguenther@suse.de>
11975
11976 PR tree-optimization/91180
11977 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
11978 computation for memset partial defs.
11979
11980 2019-07-17 Jakub Jelinek <jakub@redhat.com>
11981
11982 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
11983 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
11984 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
11985 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
11986 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
11987 * omp-grid.c (grid_process_grid_body,
11988 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
11989 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
11990 == GF_OMP_FOR_KIND_SIMD.
11991 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
11992 check_omp_nesting_restrictions, scan_omp_1_stmt,
11993 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
11994 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
11995 omp_find_scan): Likewise.
11996 * omp-expand.c (expand_omp_for): Likewise.
11997 * omp-general.c (omp_extract_for_data): Likewise.
11998
11999 PR tree-optimization/91157
12000 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
12001 a vector boolean with scalar mode.
12002 (expand_vector_condition): Handle first operand being a vector boolean
12003 with scalar mode.
12004 (expand_vector_operations_1): For comparisons, don't bail out early
12005 if the return type is vector boolean with scalar mode, but comparison
12006 operand type is not.
12007
12008 2019-07-17 Richard Biener <rguenther@suse.de>
12009
12010 PR tree-optimization/91181
12011 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
12012 IFN_LOADs as calls.
12013
12014 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
12015
12016 * config/i386/i386.md (*testdi_1): Match CCZmode for
12017 constants that might have the SImode sign bit set.
12018 (*testqi_1_maybe_si): Remove "!" constraint modifier.
12019 Use correct constraints for pentium pairing.
12020 (*test<mode>_1): Ditto.
12021
12022 2019-07-16 Jeff Law <law@redhat.com>
12023
12024 PR rtl-optimization/91173
12025 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
12026 SSA_NAME with a constant value, fold its value into the offset
12027 and clear the base before calling gen_addr_rtx.
12028
12029 2019-07-16 Jakub Jelinek <jakub@redhat.com>
12030
12031 PR rtl-optimization/91164
12032 * dse.c (rest_of_handle_dse): If dead edges have been purged,
12033 invalidate dominance info.
12034
12035 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
12036
12037 * read-md.h (md_reader::record_potential_iterator_use): Add a
12038 file_location parameter.
12039 * read-rtl.c (attribute_use::loc): New field.
12040 (map_attr_string): Take a file_location parameter. Report cases
12041 in which attributes map to multiple distinct values.
12042 (apply_attribute_uses): Update call accordingly.
12043 (md_reader::handle_overloaded_name): Likewise.
12044 (md_reader::apply_iterator_to_string): Likewise. Skip empty
12045 nonnull strings.
12046 (record_attribute_use): Take a file_location parameter.
12047 Initialize attribute_use::loc.
12048 (md_reader::record_potential_iterator_use): Take a file_location
12049 parameter. Update call to record_attribute_use.
12050 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
12051 (rtx_reader::read_rtx_code): Likewise.
12052 (rtx_reader::read_rtx_operand): Likewise. Record a location
12053 for implicitly-expanded empty strings.
12054
12055 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
12056
12057 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
12058 Use file_location instead of separate fields.
12059 (md_reader::set_md_ptr_loc): Take a file_location instead of a
12060 separate filename and line number.
12061 * read-md.c (ptr_loc): As above.
12062 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
12063 (md_reader::fprint_md_ptr_loc): Likewise.
12064 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
12065 instead of a separate filename and line number.
12066 (md_reader::read_string): Update call accordingly.
12067
12068 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
12069
12070 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
12071 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
12072 leaving the choice between SFDF and P implicit.
12073 (*mov<mode>_update2): Likewise.
12074 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
12075 rather than leaving the choice betweem IBM128 and GPR implicit.
12076 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
12077 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
12078 QHSI implicit.
12079 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
12080 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
12081 * config/rs6000/vsx.md
12082 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
12083 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
12084 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
12085 and VSX_EXTRACT_I implicit.
12086
12087 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
12088
12089 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
12090 Explicitly use <MOVEP1:MODE> for the mode attribute.
12091
12092 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
12093
12094 PR bootstrap/91176
12095 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
12096
12097 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
12098
12099 PR target/91050
12100 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
12101 .machine directive.
12102
12103 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
12104
12105 * config/i386/i386.md (@test<mode>_ccno_1):
12106 Rename from test<mode>_ccno_1.
12107 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
12108 (*testqi_1_maybe_si): Remove modrm attribute.
12109 (*test<mode>_1): Ditto.
12110 * config/i386/i386-expand.c (ix86_split_idivmod): Use
12111 gen_test_ccno_1 and gen_extend_insn.
12112
12113 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
12114
12115 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
12116 to 0.
12117
12118 2019-07-15 Richard Biener <rguenther@suse.de>
12119
12120 PR middle-end/91162
12121 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
12122 node make sure to replace all uses with something valid.
12123
12124 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
12125
12126 PR tree-optimization/88497
12127 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
12128 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
12129 function undistribute_bitref_for_vector.
12130 (undistribute_bitref_for_vector): New function.
12131 (cleanup_vinfo_map): Likewise.
12132 (sort_by_mach_mode): Likewise.
12133
12134 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
12135
12136 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
12137 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
12138 and testdi_ccno_1 using SWI48 mode attribute.
12139 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
12140 x86_64_szext_general_operand.
12141 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
12142 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
12143 instead of genera_operand mode attribute.
12144
12145 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
12146
12147 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
12148 fopen and fclose to their respective types.
12149 (DotFn.invoke): Ditto.
12150
12151 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
12152
12153 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
12154 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
12155 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
12156 (array_index_predicate): Remove.
12157 (analyze_function_body): Account cost for variable ofsetted array
12158 indexing.
12159 (estimate_node_size_and_time): Do not compute array index hint.
12160 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
12161 (inline_read_section): Do not read array index hint.
12162 (ipa_fn_summary_write): Do not write array index hint.
12163 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
12164 * ipa-cp.c (hint_time_bonus): Remove.
12165 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
12166 (ipa_fnsummary): Remove array_index.
12167 * ipa-inline.c (want_inline_small_function_p): Do not use
12168 array_index.
12169 (edge_badness): Likewise.
12170 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
12171
12172 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
12173
12174 PR target/91148
12175 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
12176 superfluous "builtin function" phrasing.
12177
12178 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
12179
12180 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
12181 Break out from ...
12182 (aliasing_component_refs_walk): Break out from ...
12183 (aliasing_component_refs_p): ... here.
12184
12185 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
12186
12187 PR target/91148
12188 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
12189 "builtin function" phrasing.
12190
12191 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12192
12193 PR target/90723
12194 * recog.h (temporary_volatile_ok): New class.
12195 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
12196 volatile_ok temporarily to true using temporary_volatile_ok.
12197 * expr.c (emit_block_move_via_cpymem): Likewise.
12198 * optabs.c (maybe_legitimize_operand): Likewise.
12199
12200 2019-07-13 Jakub Jelinek <jakub@redhat.com>
12201
12202 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
12203 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
12204 uses inside of order(concurrent) constructs.
12205 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
12206 OMP_CLAUSE_ORDER is seen.
12207 * omp-low.c (struct omp_context): Add order_concurrent member.
12208 (scan_sharing_clauses): Set ctx->order_concurrent if
12209 OMP_CLAUSE_ORDER is seen.
12210 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
12211 of simd order(concurrent). Diagnose constructs not allowed inside of
12212 for order(concurrent).
12213 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
12214 complaining about static double setjmp (double); or class static
12215 methods or non-global namespace setjmps.
12216 (omp_runtime_api_call): New function.
12217 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
12218 order(concurrent) loops.
12219
12220 2019-07-12 Martin Sebor <msebor@redhat.com>
12221
12222 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
12223 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
12224 * tree-vrp.c (vrp_prop::check_mem_ref): Use
12225 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
12226
12227 2019-07-12 Jan Hubicka <jh@suse.cz>
12228
12229 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
12230 (indirect_refs_may_alias_p): ... here.
12231 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
12232 mem refs in the access paths.
12233
12234 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
12235
12236 PR tree-optimization/89430
12237 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
12238 store elimination for local variable without address escape.
12239
12240 2019-07-12 Jeff Law <law@redhat.com>
12241
12242 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
12243 for the ".far" section.
12244
12245 2019-07-12 Richard Biener <rguenther@suse.de>
12246
12247 PR tree-optimization/91145
12248 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
12249 chain check.
12250
12251 2019-07-12 Alexandre Oliva <oliva@adacore.com>
12252
12253 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
12254 rather than this_state as the lowering context for the ELSE
12255 seq in a GIMPLE_EH_ELSE.
12256
12257 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
12258
12259 * vector-builder.h (vector_builder::elt): Allow already-supplied
12260 elements to be read back before building is complete.
12261
12262 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
12263
12264 PR rtl-optimization/91136
12265 * df-core.c (ACCESSING REFS): Fix typos in comment.
12266 * resource.c (mark_target_live_reg): Add artificial defs that occur at
12267 the beginning of the block to the initial set of live registers.
12268
12269 2019-07-12 Richard Biener <rguenther@suse.de>
12270
12271 * fold-const.h (get_array_ctor_element_at_index): Adjust.
12272 * fold-const.c (get_array_ctor_element_at_index): Add
12273 ctor_idx output parameter informing the caller where in
12274 the constructor the element was (not) found. Add early exit
12275 for when the ctor is sorted.
12276 * gimple-fold.c (fold_array_ctor_reference): Support constant
12277 folding across multiple array elements.
12278
12279 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
12280
12281 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
12282 doesn't have location, set the current location to the function's end.
12283
12284 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
12285
12286 * config/aarch64/aarch64.md (*compare_condjump<mode>)
12287 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
12288 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
12289 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
12290 * config/aarch64/aarch64-simd.md
12291 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
12292 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
12293 * config/aarch64/aarch64-sve.md
12294 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
12295 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
12296
12297 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
12298
12299 * doc/md.texi: Document that @ patterns can have different
12300 numbers of operands.
12301 * genemit.c (handle_overloaded_gen): Handle this case.
12302 * genopinit.c (handle_overloaded_gen): Likewise.
12303 * gensupport.c (replace_operands_with_dups): Iterate over
12304 the new rtx's format rather than the old one's.
12305
12306 2019-07-12 Jakub Jelinek <jakub@redhat.com>
12307
12308 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
12309 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
12310 order clause entries.
12311 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
12312 * tree-pretty-print.c (dump_omp_clause): Likewise.
12313 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
12314 Likewise.
12315 * omp-low.c (scan_sharing_clauses): Likewise.
12316 * tree-nested.c (convert_nonlocal_omp_clauses,
12317 convert_local_omp_clauses): Likewise.
12318
12319 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
12320
12321 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
12322 fallthrough target of current basic block isn't the placed
12323 right next.
12324
12325 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
12326
12327 PR target/90980
12328 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
12329 (_mm512_storeu_epi64): Likewise.
12330 (_mm512_loadu_epi32): Likewise.
12331 (_mm512_storeu_epi32): Likewise.
12332 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
12333 (_mm_storeu_epi64): Likewise.
12334 (_mm256_storeu_epi32): Likewise.
12335 (_mm_storeu_epi32): Likewise.
12336
12337 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
12338
12339 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
12340
12341 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
12342
12343 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
12344 Handle Modula-2.
12345
12346 2019-07-11 Jakub Jelinek <jakub@redhat.com>
12347
12348 PR target/91124
12349 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
12350 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
12351 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
12352 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
12353 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
12354 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
12355 define_insns.
12356 (ufix_truncv2dfv2si2<mask_name>): Change into ...
12357 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
12358 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
12359 define_insns.
12360 (sse2_cvttpd2dq<mask_name>): Change into ...
12361 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
12362 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
12363 (*sse2_cvtpd2dq<mask_name>): Change into ...
12364 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
12365 Add "C" constraint to const0_operand.
12366 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
12367 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
12368 changes.
12369
12370 PR target/91124
12371 * config/i386/i386-builtin-types.def
12372 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
12373 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
12374 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
12375 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
12376 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
12377 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
12378 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
12379 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
12380 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
12381 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
12382 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
12383 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
12384 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
12385 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
12386 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
12387 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
12388 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
12389 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
12390 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
12391 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
12392 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
12393 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
12394 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
12395 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
12396 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
12397 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
12398 __builtin_ia32_vpdpbusd_v4si_maskz,
12399 __builtin_ia32_vpdpbusds_v16si_mask,
12400 __builtin_ia32_vpdpbusds_v16si_maskz,
12401 __builtin_ia32_vpdpbusds_v8si_mask,
12402 __builtin_ia32_vpdpbusds_v8si_maskz,
12403 __builtin_ia32_vpdpbusds_v4si_mask,
12404 __builtin_ia32_vpdpbusds_v4si_maskz,
12405 __builtin_ia32_vpdpwssd_v16si_mask,
12406 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
12407 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
12408 __builtin_ia32_vpdpwssd_v4si_maskz,
12409 __builtin_ia32_vpdpwssds_v16si_mask,
12410 __builtin_ia32_vpdpwssds_v16si_maskz,
12411 __builtin_ia32_vpdpwssds_v8si_mask,
12412 __builtin_ia32_vpdpwssds_v8si_maskz,
12413 __builtin_ia32_vpdpwssds_v4si_mask,
12414 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
12415 suffixed types rather than *_INT.
12416 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
12417 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
12418 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
12419 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
12420 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
12421 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
12422
12423 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
12424
12425 * tree-vrp.c (intersect_ranges): If we know the intersection is
12426 empty, there is no need to conservatively add anything else to
12427 the set.
12428
12429 2019-07-11 Richard Biener <rguenther@suse.de>
12430
12431 PR middle-end/91131
12432 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
12433 when the object is volatile and we have not cleared it even though
12434 there are no nonzero elements.
12435
12436 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
12437
12438 * config/rs6000/predicates.md (cint34_operand): Update
12439 SIGNED_34BIT_OFFSET_P call.
12440 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
12441 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
12442 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
12443 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
12444 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
12445 argument.
12446 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
12447 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
12448 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
12449 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
12450 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
12451
12452 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
12453
12454 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
12455 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
12456 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
12457 (DEF_MIN_OSX_VERSION): New.
12458
12459 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
12460
12461 * fold-const.c (fold_relational_const): Fix folding of
12462 vector-to-scalar NE_EXPRs.
12463 (test_vector_folding): Add more tests.
12464
12465 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
12466
12467 PR target/91060
12468 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
12469 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
12470 (vec_setv2di_internal): Reexpress as...
12471 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
12472 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
12473 rather than gen_neon_vset_lane<mode>.
12474
12475 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
12476
12477 PR target/91102
12478 * lra-constraints.c (process_alt_operands): Don't match user
12479 defined regs only if they are early clobbers.
12480
12481 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
12482
12483 * wide-int.h (wi::lshift): Reject negative values for the fast path.
12484
12485 2019-07-10 Richard Biener <rguenther@suse.de>
12486
12487 PR tree-optimization/91126
12488 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
12489 native encoding offset for BYTES_BIG_ENDIAN.
12490 (vn_reference_lookup_3): Likewise.
12491
12492 2019-07-10 Richard Biener <rguenther@suse.de>
12493
12494 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
12495 LHS whenever possible.
12496
12497 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
12498
12499 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
12500 from ...; work also on duplicated types.
12501 (nonoverlapping_component_refs_since_match): ... here
12502 (ncr_type_uid): Break out from ...
12503 (ncr_compar): ... here; look for TYPE_UID of canonical type if
12504 available.
12505 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
12506 the types and nonoverlapping_component_refs_p_1 to disambiguate.
12507
12508 2019-07-09 Martin Sebor <msebor@redhat.com>
12509
12510 PR tree-optimization/90989
12511 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
12512 optimization to just single character stores.
12513
12514 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
12515
12516 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
12517 Swap operands only once.
12518
12519 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
12520
12521 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
12522 for both call instructions.
12523
12524 2019-07-09 John Darrington <john@darrington.wattle.id.au>
12525
12526 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
12527 rather than GET_MODE_BITSIZE to better handle partial integer modes.
12528
12529 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
12530
12531 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
12532 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
12533 function from rs6000-logue.c back to rs6000.c.
12534 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
12535
12536 2019-07-09 Martin Sebor <msebor@redhat.com>
12537
12538 PR c++/61339
12539 * auto-profile.c: Change class-key of PODs to struct and others
12540 to class.
12541 * basic-block.h: Same.
12542 * bitmap.c (bitmap_alloc): Same.
12543 * bitmap.h: Same.
12544 * builtins.c (expand_builtin_prefetch): Same.
12545 (expand_builtin_interclass_mathfn): Same.
12546 (expand_builtin_strlen): Same.
12547 (expand_builtin_mempcpy_args): Same.
12548 (expand_cmpstr): Same.
12549 (expand_builtin___clear_cache): Same.
12550 (expand_ifn_atomic_bit_test_and): Same.
12551 (expand_builtin_thread_pointer): Same.
12552 (expand_builtin_set_thread_pointer): Same.
12553 * caller-save.c (setup_save_areas): Same.
12554 (replace_reg_with_saved_mem): Same.
12555 (insert_restore): Same.
12556 (insert_save): Same.
12557 (add_used_regs): Same.
12558 * cfg.c (get_bb_copy): Same.
12559 (set_loop_copy): Same.
12560 * cfg.h: Same.
12561 * cfganal.h: Same.
12562 * cfgexpand.c (alloc_stack_frame_space): Same.
12563 (add_stack_var): Same.
12564 (add_stack_var_conflict): Same.
12565 (add_scope_conflicts_1): Same.
12566 (update_alias_info_with_stack_vars): Same.
12567 (expand_used_vars): Same.
12568 * cfghooks.c (redirect_edge_and_branch_force): Same.
12569 (delete_basic_block): Same.
12570 (split_edge): Same.
12571 (make_forwarder_block): Same.
12572 (force_nonfallthru): Same.
12573 (duplicate_block): Same.
12574 (lv_flush_pending_stmts): Same.
12575 * cfghooks.h: Same.
12576 * cfgloop.c (flow_loops_cfg_dump): Same.
12577 (flow_loop_nested_p): Same.
12578 (superloop_at_depth): Same.
12579 (get_loop_latch_edges): Same.
12580 (flow_loop_dump): Same.
12581 (flow_loops_dump): Same.
12582 (flow_loops_free): Same.
12583 (flow_loop_nodes_find): Same.
12584 (establish_preds): Same.
12585 (flow_loop_tree_node_add): Same.
12586 (flow_loop_tree_node_remove): Same.
12587 (flow_loops_find): Same.
12588 (find_subloop_latch_edge_by_profile): Same.
12589 (find_subloop_latch_edge_by_ivs): Same.
12590 (mfb_redirect_edges_in_set): Same.
12591 (form_subloop): Same.
12592 (merge_latch_edges): Same.
12593 (disambiguate_multiple_latches): Same.
12594 (disambiguate_loops_with_multiple_latches): Same.
12595 (flow_bb_inside_loop_p): Same.
12596 (glb_enum_p): Same.
12597 (get_loop_body_with_size): Same.
12598 (get_loop_body): Same.
12599 (fill_sons_in_loop): Same.
12600 (get_loop_body_in_dom_order): Same.
12601 (get_loop_body_in_custom_order): Same.
12602 (release_recorded_exits): Same.
12603 (get_loop_exit_edges): Same.
12604 (num_loop_branches): Same.
12605 (remove_bb_from_loops): Same.
12606 (find_common_loop): Same.
12607 (delete_loop): Same.
12608 (cancel_loop): Same.
12609 (verify_loop_structure): Same.
12610 (loop_preheader_edge): Same.
12611 (loop_exit_edge_p): Same.
12612 (single_exit): Same.
12613 (loop_exits_to_bb_p): Same.
12614 (loop_exits_from_bb_p): Same.
12615 (get_loop_location): Same.
12616 (record_niter_bound): Same.
12617 (get_estimated_loop_iterations_int): Same.
12618 (max_stmt_executions_int): Same.
12619 (likely_max_stmt_executions_int): Same.
12620 (get_estimated_loop_iterations): Same.
12621 (get_max_loop_iterations): Same.
12622 (get_max_loop_iterations_int): Same.
12623 (get_likely_max_loop_iterations): Same.
12624 * cfgloop.h (simple_loop_desc): Same.
12625 (get_loop): Same.
12626 (loop_depth): Same.
12627 (loop_outer): Same.
12628 (loop_iterator::next): Same.
12629 (loop_outermost): Same.
12630 * cfgloopanal.c (mark_irreducible_loops): Same.
12631 (num_loop_insns): Same.
12632 (average_num_loop_insns): Same.
12633 (expected_loop_iterations_unbounded): Same.
12634 (expected_loop_iterations): Same.
12635 (mark_loop_exit_edges): Same.
12636 (single_likely_exit): Same.
12637 * cfgloopmanip.c (fix_bb_placement): Same.
12638 (fix_bb_placements): Same.
12639 (remove_path): Same.
12640 (place_new_loop): Same.
12641 (add_loop): Same.
12642 (scale_loop_frequencies): Same.
12643 (scale_loop_profile): Same.
12644 (create_empty_if_region_on_edge): Same.
12645 (create_empty_loop_on_edge): Same.
12646 (loopify): Same.
12647 (unloop): Same.
12648 (fix_loop_placements): Same.
12649 (copy_loop_info): Same.
12650 (duplicate_loop): Same.
12651 (duplicate_subloops): Same.
12652 (loop_redirect_edge): Same.
12653 (can_duplicate_loop_p): Same.
12654 (duplicate_loop_to_header_edge): Same.
12655 (mfb_keep_just): Same.
12656 (has_preds_from_loop): Same.
12657 (create_preheader): Same.
12658 (create_preheaders): Same.
12659 (lv_adjust_loop_entry_edge): Same.
12660 (loop_version): Same.
12661 * cfgloopmanip.h: Same.
12662 * cgraph.h: Same.
12663 * cgraphbuild.c: Same.
12664 * combine.c (make_extraction): Same.
12665 * config/i386/i386-features.c: Same.
12666 * config/i386/i386-features.h: Same.
12667 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
12668 (ix86_emit_outlined_ms2sysv_restore): Same.
12669 (ix86_noce_conversion_profitable_p): Same.
12670 (ix86_init_cost): Same.
12671 (ix86_simd_clone_usable): Same.
12672 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
12673 Wstruct-not-pod.
12674 * coretypes.h: Same.
12675 * data-streamer-in.c (string_for_index): Change class-key of PODs
12676 to struct and others to class.
12677 (streamer_read_indexed_string): Same.
12678 (streamer_read_string): Same.
12679 (bp_unpack_indexed_string): Same.
12680 (bp_unpack_string): Same.
12681 (streamer_read_uhwi): Same.
12682 (streamer_read_hwi): Same.
12683 (streamer_read_gcov_count): Same.
12684 (streamer_read_wide_int): Same.
12685 * data-streamer.h (streamer_write_bitpack): Same.
12686 (bp_unpack_value): Same.
12687 (streamer_write_char_stream): Same.
12688 (streamer_write_hwi_in_range): Same.
12689 (streamer_write_record_start): Same.
12690 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
12691 (add_cross_iteration_register_deps): Same.
12692 (build_intra_loop_deps): Same.
12693 * df-core.c (df_analyze): Same.
12694 (loop_post_order_compute): Same.
12695 (loop_inverted_post_order_compute): Same.
12696 * df-problems.c (df_rd_alloc): Same.
12697 (df_rd_simulate_one_insn): Same.
12698 (df_rd_local_compute): Same.
12699 (df_rd_init_solution): Same.
12700 (df_rd_confluence_n): Same.
12701 (df_rd_transfer_function): Same.
12702 (df_rd_free): Same.
12703 (df_rd_dump_defs_set): Same.
12704 (df_rd_top_dump): Same.
12705 (df_lr_alloc): Same.
12706 (df_lr_reset): Same.
12707 (df_lr_local_compute): Same.
12708 (df_lr_init): Same.
12709 (df_lr_confluence_n): Same.
12710 (df_lr_free): Same.
12711 (df_lr_top_dump): Same.
12712 (df_lr_verify_transfer_functions): Same.
12713 (df_live_alloc): Same.
12714 (df_live_reset): Same.
12715 (df_live_init): Same.
12716 (df_live_confluence_n): Same.
12717 (df_live_finalize): Same.
12718 (df_live_free): Same.
12719 (df_live_top_dump): Same.
12720 (df_live_verify_transfer_functions): Same.
12721 (df_mir_alloc): Same.
12722 (df_mir_reset): Same.
12723 (df_mir_init): Same.
12724 (df_mir_confluence_n): Same.
12725 (df_mir_free): Same.
12726 (df_mir_top_dump): Same.
12727 (df_word_lr_alloc): Same.
12728 (df_word_lr_reset): Same.
12729 (df_word_lr_init): Same.
12730 (df_word_lr_confluence_n): Same.
12731 (df_word_lr_free): Same.
12732 (df_word_lr_top_dump): Same.
12733 (df_md_alloc): Same.
12734 (df_md_simulate_one_insn): Same.
12735 (df_md_reset): Same.
12736 (df_md_init): Same.
12737 (df_md_free): Same.
12738 (df_md_top_dump): Same.
12739 * df-scan.c (df_insn_delete): Same.
12740 (df_insn_rescan): Same.
12741 (df_notes_rescan): Same.
12742 (df_sort_and_compress_mws): Same.
12743 (df_install_mws): Same.
12744 (df_refs_add_to_chains): Same.
12745 (df_ref_create_structure): Same.
12746 (df_ref_record): Same.
12747 (df_def_record_1): Same.
12748 (df_find_hard_reg_defs): Same.
12749 (df_uses_record): Same.
12750 (df_get_conditional_uses): Same.
12751 (df_get_call_refs): Same.
12752 (df_recompute_luids): Same.
12753 (df_get_entry_block_def_set): Same.
12754 (df_entry_block_defs_collect): Same.
12755 (df_get_exit_block_use_set): Same.
12756 (df_exit_block_uses_collect): Same.
12757 (df_mws_verify): Same.
12758 (df_bb_verify): Same.
12759 * df.h (df_scan_get_bb_info): Same.
12760 * doc/tm.texi: Same.
12761 * dse.c (record_store): Same.
12762 * dumpfile.h: Same.
12763 * emit-rtl.c (const_fixed_hasher::equal): Same.
12764 (set_mem_attributes_minus_bitpos): Same.
12765 (change_address): Same.
12766 (adjust_address_1): Same.
12767 (offset_address): Same.
12768 * emit-rtl.h: Same.
12769 * except.c (dw2_build_landing_pads): Same.
12770 (sjlj_emit_dispatch_table): Same.
12771 * explow.c (allocate_dynamic_stack_space): Same.
12772 (emit_stack_probe): Same.
12773 (probe_stack_range): Same.
12774 * expmed.c (store_bit_field_using_insv): Same.
12775 (store_bit_field_1): Same.
12776 (store_integral_bit_field): Same.
12777 (extract_bit_field_using_extv): Same.
12778 (extract_bit_field_1): Same.
12779 (emit_cstore): Same.
12780 * expr.c (emit_block_move_via_cpymem): Same.
12781 (expand_cmpstrn_or_cmpmem): Same.
12782 (set_storage_via_setmem): Same.
12783 (emit_single_push_insn_1): Same.
12784 (expand_assignment): Same.
12785 (store_constructor): Same.
12786 (expand_expr_real_2): Same.
12787 (expand_expr_real_1): Same.
12788 (try_casesi): Same.
12789 * flags.h: Same.
12790 * function.c (try_fit_stack_local): Same.
12791 (assign_stack_local_1): Same.
12792 (assign_stack_local): Same.
12793 (cut_slot_from_list): Same.
12794 (insert_slot_to_list): Same.
12795 (max_slot_level): Same.
12796 (move_slot_to_level): Same.
12797 (temp_address_hasher::equal): Same.
12798 (remove_unused_temp_slot_addresses): Same.
12799 (assign_temp): Same.
12800 (combine_temp_slots): Same.
12801 (update_temp_slot_address): Same.
12802 (preserve_temp_slots): Same.
12803 * function.h: Same.
12804 * fwprop.c: Same.
12805 * gcc-rich-location.h: Same.
12806 * gcov.c: Same.
12807 * genattrtab.c (check_attr_test): Same.
12808 (check_attr_value): Same.
12809 (convert_set_attr_alternative): Same.
12810 (convert_set_attr): Same.
12811 (check_defs): Same.
12812 (copy_boolean): Same.
12813 (get_attr_value): Same.
12814 (expand_delays): Same.
12815 (make_length_attrs): Same.
12816 (min_fn): Same.
12817 (make_alternative_compare): Same.
12818 (simplify_test_exp): Same.
12819 (tests_attr_p): Same.
12820 (get_attr_order): Same.
12821 (clear_struct_flag): Same.
12822 (gen_attr): Same.
12823 (compares_alternatives_p): Same.
12824 (gen_insn): Same.
12825 (gen_delay): Same.
12826 (find_attrs_to_cache): Same.
12827 (write_test_expr): Same.
12828 (walk_attr_value): Same.
12829 (write_attr_get): Same.
12830 (eliminate_known_true): Same.
12831 (write_insn_cases): Same.
12832 (write_attr_case): Same.
12833 (write_attr_valueq): Same.
12834 (write_attr_value): Same.
12835 (write_dummy_eligible_delay): Same.
12836 (next_comma_elt): Same.
12837 (find_attr): Same.
12838 (make_internal_attr): Same.
12839 (copy_rtx_unchanging): Same.
12840 (gen_insn_reserv): Same.
12841 (check_tune_attr): Same.
12842 (make_automaton_attrs): Same.
12843 (handle_arg): Same.
12844 * genextract.c (gen_insn): Same.
12845 (VEC_char_to_string): Same.
12846 * genmatch.c (print_operand): Same.
12847 (lower): Same.
12848 (parser::parse_operation): Same.
12849 (parser::parse_capture): Same.
12850 (parser::parse_c_expr): Same.
12851 (parser::parse_simplify): Same.
12852 (main): Same.
12853 * genoutput.c (output_operand_data): Same.
12854 (output_get_insn_name): Same.
12855 (compare_operands): Same.
12856 (place_operands): Same.
12857 (process_template): Same.
12858 (validate_insn_alternatives): Same.
12859 (validate_insn_operands): Same.
12860 (gen_expand): Same.
12861 (note_constraint): Same.
12862 * genpreds.c (write_one_predicate_function): Same.
12863 (add_constraint): Same.
12864 (process_define_register_constraint): Same.
12865 (write_lookup_constraint_1): Same.
12866 (write_lookup_constraint_array): Same.
12867 (write_insn_constraint_len): Same.
12868 (write_reg_class_for_constraint_1): Same.
12869 (write_constraint_satisfied_p_array): Same.
12870 * genrecog.c (optimize_subroutine_group): Same.
12871 * gensupport.c (process_define_predicate): Same.
12872 (queue_pattern): Same.
12873 (remove_from_queue): Same.
12874 (process_rtx): Same.
12875 (is_predicable): Same.
12876 (change_subst_attribute): Same.
12877 (subst_pattern_match): Same.
12878 (alter_constraints): Same.
12879 (alter_attrs_for_insn): Same.
12880 (shift_output_template): Same.
12881 (alter_output_for_subst_insn): Same.
12882 (process_one_cond_exec): Same.
12883 (subst_dup): Same.
12884 (process_define_cond_exec): Same.
12885 (mnemonic_htab_callback): Same.
12886 (gen_mnemonic_attr): Same.
12887 (read_md_rtx): Same.
12888 * ggc-page.c: Same.
12889 * gimple-loop-interchange.cc (dump_reduction): Same.
12890 (dump_induction): Same.
12891 (loop_cand::~loop_cand): Same.
12892 (free_data_refs_with_aux): Same.
12893 (tree_loop_interchange::interchange_loops): Same.
12894 (tree_loop_interchange::map_inductions_to_loop): Same.
12895 (tree_loop_interchange::move_code_to_inner_loop): Same.
12896 (compute_access_stride): Same.
12897 (compute_access_strides): Same.
12898 (proper_loop_form_for_interchange): Same.
12899 (tree_loop_interchange_compute_ddrs): Same.
12900 (prune_datarefs_not_in_loop): Same.
12901 (prepare_data_references): Same.
12902 (pass_linterchange::execute): Same.
12903 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
12904 (unroll_jam_possible_p): Same.
12905 (fuse_loops): Same.
12906 (adjust_unroll_factor): Same.
12907 (tree_loop_unroll_and_jam): Same.
12908 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
12909 (loop_versioning::expensive_stmt_p): Same.
12910 (loop_versioning::version_for_unity): Same.
12911 (loop_versioning::dump_inner_likelihood): Same.
12912 (loop_versioning::find_per_loop_multiplication): Same.
12913 (loop_versioning::analyze_term_using_scevs): Same.
12914 (loop_versioning::record_address_fragment): Same.
12915 (loop_versioning::analyze_expr): Same.
12916 (loop_versioning::analyze_blocks): Same.
12917 (loop_versioning::prune_conditions): Same.
12918 (loop_versioning::merge_loop_info): Same.
12919 (loop_versioning::add_loop_to_queue): Same.
12920 (loop_versioning::decide_whether_loop_is_versionable): Same.
12921 (loop_versioning::make_versioning_decisions): Same.
12922 (loop_versioning::implement_versioning_decisions): Same.
12923 * gimple-ssa-evrp-analyze.c
12924 (evrp_range_analyzer::record_ranges_from_phis): Same.
12925 * gimple-ssa-store-merging.c (split_store::split_store): Same.
12926 (count_multiple_uses): Same.
12927 (split_group): Same.
12928 (imm_store_chain_info::output_merged_store): Same.
12929 (pass_store_merging::process_store): Same.
12930 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
12931 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
12932 (is_max): Same.
12933 (alloca_call_type): Same.
12934 (pass_walloca::execute): Same.
12935 * gimple-streamer-in.c (input_phi): Same.
12936 (input_gimple_stmt): Same.
12937 * gimple-streamer.h: Same.
12938 * godump.c (go_force_record_alignment): Same.
12939 (go_format_type): Same.
12940 (go_output_type): Same.
12941 (go_output_fndecl): Same.
12942 (go_output_typedef): Same.
12943 (keyword_hash_init): Same.
12944 (find_dummy_types): Same.
12945 * graph.c (draw_cfg_nodes_no_loops): Same.
12946 (draw_cfg_nodes_for_loop): Same.
12947 * hard-reg-set.h (hard_reg_set_iter_next): Same.
12948 * hsa-brig.c: Same.
12949 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
12950 * hsa-dump.c (dump_hsa_cfun): Same.
12951 * hsa-gen.c (gen_function_def_parameters): Same.
12952 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
12953 * input.c (dump_line_table_statistics): Same.
12954 (test_lexer): Same.
12955 * input.h: Same.
12956 * internal-fn.c (get_multi_vector_move): Same.
12957 (expand_load_lanes_optab_fn): Same.
12958 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
12959 (expand_GOMP_SIMT_EXIT): Same.
12960 (expand_GOMP_SIMT_LAST_LANE): Same.
12961 (expand_GOMP_SIMT_ORDERED_PRED): Same.
12962 (expand_GOMP_SIMT_VOTE_ANY): Same.
12963 (expand_GOMP_SIMT_XCHG_BFLY): Same.
12964 (expand_GOMP_SIMT_XCHG_IDX): Same.
12965 (expand_addsub_overflow): Same.
12966 (expand_neg_overflow): Same.
12967 (expand_mul_overflow): Same.
12968 (expand_call_mem_ref): Same.
12969 (expand_mask_load_optab_fn): Same.
12970 (expand_scatter_store_optab_fn): Same.
12971 (expand_gather_load_optab_fn): Same.
12972 * ipa-cp.c (ipa_get_parm_lattices): Same.
12973 (print_all_lattices): Same.
12974 (ignore_edge_p): Same.
12975 (build_toporder_info): Same.
12976 (free_toporder_info): Same.
12977 (push_node_to_stack): Same.
12978 (ipcp_lattice<valtype>::set_contains_variable): Same.
12979 (set_agg_lats_to_bottom): Same.
12980 (ipcp_bits_lattice::meet_with): Same.
12981 (set_single_call_flag): Same.
12982 (initialize_node_lattices): Same.
12983 (ipa_get_jf_ancestor_result): Same.
12984 (ipcp_verify_propagated_values): Same.
12985 (propagate_scalar_across_jump_function): Same.
12986 (propagate_context_across_jump_function): Same.
12987 (propagate_bits_across_jump_function): Same.
12988 (ipa_vr_operation_and_type_effects): Same.
12989 (propagate_vr_across_jump_function): Same.
12990 (set_check_aggs_by_ref): Same.
12991 (set_chain_of_aglats_contains_variable): Same.
12992 (merge_aggregate_lattices): Same.
12993 (agg_pass_through_permissible_p): Same.
12994 (propagate_aggs_across_jump_function): Same.
12995 (call_passes_through_thunk_p): Same.
12996 (propagate_constants_across_call): Same.
12997 (devirtualization_time_bonus): Same.
12998 (good_cloning_opportunity_p): Same.
12999 (context_independent_aggregate_values): Same.
13000 (gather_context_independent_values): Same.
13001 (perform_estimation_of_a_value): Same.
13002 (estimate_local_effects): Same.
13003 (value_topo_info<valtype>::add_val): Same.
13004 (add_all_node_vals_to_toposort): Same.
13005 (value_topo_info<valtype>::propagate_effects): Same.
13006 (ipcp_propagate_stage): Same.
13007 (ipcp_discover_new_direct_edges): Same.
13008 (same_node_or_its_all_contexts_clone_p): Same.
13009 (cgraph_edge_brings_value_p): Same.
13010 (gather_edges_for_value): Same.
13011 (create_specialized_node): Same.
13012 (find_more_scalar_values_for_callers_subset): Same.
13013 (find_more_contexts_for_caller_subset): Same.
13014 (copy_plats_to_inter): Same.
13015 (intersect_aggregates_with_edge): Same.
13016 (find_aggregate_values_for_callers_subset): Same.
13017 (cgraph_edge_brings_all_agg_vals_for_node): Same.
13018 (decide_about_value): Same.
13019 (decide_whether_version_node): Same.
13020 (spread_undeadness): Same.
13021 (identify_dead_nodes): Same.
13022 (ipcp_store_vr_results): Same.
13023 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
13024 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
13025 (redirect_to_unreachable): Same.
13026 (edge_set_predicate): Same.
13027 (evaluate_conditions_for_known_args): Same.
13028 (evaluate_properties_for_edge): Same.
13029 (ipa_fn_summary_t::duplicate): Same.
13030 (ipa_call_summary_t::duplicate): Same.
13031 (dump_ipa_call_summary): Same.
13032 (ipa_dump_fn_summary): Same.
13033 (eliminated_by_inlining_prob): Same.
13034 (set_cond_stmt_execution_predicate): Same.
13035 (set_switch_stmt_execution_predicate): Same.
13036 (compute_bb_predicates): Same.
13037 (will_be_nonconstant_expr_predicate): Same.
13038 (phi_result_unknown_predicate): Same.
13039 (analyze_function_body): Same.
13040 (compute_fn_summary): Same.
13041 (estimate_edge_devirt_benefit): Same.
13042 (estimate_edge_size_and_time): Same.
13043 (estimate_calls_size_and_time): Same.
13044 (estimate_node_size_and_time): Same.
13045 (remap_edge_change_prob): Same.
13046 (remap_edge_summaries): Same.
13047 (ipa_merge_fn_summary_after_inlining): Same.
13048 (ipa_fn_summary_generate): Same.
13049 (inline_read_section): Same.
13050 (ipa_fn_summary_read): Same.
13051 (ipa_fn_summary_write): Same.
13052 * ipa-fnsummary.h: Same.
13053 * ipa-hsa.c (ipa_hsa_read_section): Same.
13054 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
13055 * ipa-icf.c (sem_function::param_used_p): Same.
13056 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
13057 * ipa-inline.c (edge_badness): Same.
13058 (inline_small_functions): Same.
13059 * ipa-polymorphic-call.c
13060 (ipa_polymorphic_call_context::stream_out): Same.
13061 * ipa-predicate.c (predicate::remap_after_duplication): Same.
13062 (predicate::remap_after_inlining): Same.
13063 (predicate::stream_out): Same.
13064 * ipa-predicate.h: Same.
13065 * ipa-profile.c (ipa_profile_read_summary): Same.
13066 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
13067 (count_formal_params): Same.
13068 (ipa_dump_param): Same.
13069 (ipa_alloc_node_params): Same.
13070 (ipa_print_node_jump_functions_for_edge): Same.
13071 (ipa_print_node_jump_functions): Same.
13072 (ipa_load_from_parm_agg): Same.
13073 (get_ancestor_addr_info): Same.
13074 (ipa_compute_jump_functions_for_edge): Same.
13075 (ipa_analyze_virtual_call_uses): Same.
13076 (ipa_analyze_stmt_uses): Same.
13077 (ipa_analyze_params_uses_in_bb): Same.
13078 (update_jump_functions_after_inlining): Same.
13079 (try_decrement_rdesc_refcount): Same.
13080 (ipa_impossible_devirt_target): Same.
13081 (update_indirect_edges_after_inlining): Same.
13082 (combine_controlled_uses_counters): Same.
13083 (ipa_edge_args_sum_t::duplicate): Same.
13084 (ipa_write_jump_function): Same.
13085 (ipa_write_indirect_edge_info): Same.
13086 (ipa_write_node_info): Same.
13087 (ipa_read_edge_info): Same.
13088 (ipa_prop_read_section): Same.
13089 (read_replacements_section): Same.
13090 * ipa-prop.h (ipa_get_param_count): Same.
13091 (ipa_get_param): Same.
13092 (ipa_get_type): Same.
13093 (ipa_get_param_move_cost): Same.
13094 (ipa_set_param_used): Same.
13095 (ipa_get_controlled_uses): Same.
13096 (ipa_set_controlled_uses): Same.
13097 (ipa_get_cs_argument_count): Same.
13098 * ipa-pure-const.c (analyze_function): Same.
13099 (pure_const_read_summary): Same.
13100 * ipa-ref.h: Same.
13101 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
13102 * ipa-split.c (test_nonssa_use): Same.
13103 (dump_split_point): Same.
13104 (dominated_by_forbidden): Same.
13105 (split_part_set_ssa_name_p): Same.
13106 (find_split_points): Same.
13107 * ira-build.c (finish_loop_tree_nodes): Same.
13108 (low_pressure_loop_node_p): Same.
13109 * ira-color.c (ira_reuse_stack_slot): Same.
13110 * ira-int.h: Same.
13111 * ira.c (setup_reg_equiv): Same.
13112 (print_insn_chain): Same.
13113 (ira): Same.
13114 * loop-doloop.c (doloop_condition_get): Same.
13115 (add_test): Same.
13116 (record_reg_sets): Same.
13117 (doloop_optimize): Same.
13118 * loop-init.c (loop_optimizer_init): Same.
13119 (fix_loop_structure): Same.
13120 * loop-invariant.c (merge_identical_invariants): Same.
13121 (compute_always_reached): Same.
13122 (find_exits): Same.
13123 (may_assign_reg_p): Same.
13124 (find_invariants_bb): Same.
13125 (find_invariants_body): Same.
13126 (replace_uses): Same.
13127 (can_move_invariant_reg): Same.
13128 (free_inv_motion_data): Same.
13129 (move_single_loop_invariants): Same.
13130 (change_pressure): Same.
13131 (mark_ref_regs): Same.
13132 (calculate_loop_reg_pressure): Same.
13133 * loop-iv.c (biv_entry_hasher::equal): Same.
13134 (iv_extend_to_rtx_code): Same.
13135 (check_iv_ref_table_size): Same.
13136 (clear_iv_info): Same.
13137 (latch_dominating_def): Same.
13138 (iv_get_reaching_def): Same.
13139 (iv_constant): Same.
13140 (iv_subreg): Same.
13141 (iv_extend): Same.
13142 (iv_neg): Same.
13143 (iv_add): Same.
13144 (iv_mult): Same.
13145 (get_biv_step): Same.
13146 (record_iv): Same.
13147 (analyzed_for_bivness_p): Same.
13148 (record_biv): Same.
13149 (iv_analyze_biv): Same.
13150 (iv_analyze_expr): Same.
13151 (iv_analyze_def): Same.
13152 (iv_analyze_op): Same.
13153 (iv_analyze): Same.
13154 (iv_analyze_result): Same.
13155 (biv_p): Same.
13156 (eliminate_implied_conditions): Same.
13157 (simplify_using_initial_values): Same.
13158 (shorten_into_mode): Same.
13159 (canonicalize_iv_subregs): Same.
13160 (determine_max_iter): Same.
13161 (check_simple_exit): Same.
13162 (find_simple_exit): Same.
13163 (get_simple_loop_desc): Same.
13164 * loop-unroll.c (report_unroll): Same.
13165 (decide_unrolling): Same.
13166 (unroll_loops): Same.
13167 (loop_exit_at_end_p): Same.
13168 (decide_unroll_constant_iterations): Same.
13169 (unroll_loop_constant_iterations): Same.
13170 (compare_and_jump_seq): Same.
13171 (unroll_loop_runtime_iterations): Same.
13172 (decide_unroll_stupid): Same.
13173 (unroll_loop_stupid): Same.
13174 (referenced_in_one_insn_in_loop_p): Same.
13175 (reset_debug_uses_in_loop): Same.
13176 (analyze_iv_to_split_insn): Same.
13177 * lra-eliminations.c (lra_debug_elim_table): Same.
13178 (setup_can_eliminate): Same.
13179 (form_sum): Same.
13180 (lra_get_elimination_hard_regno): Same.
13181 (lra_eliminate_regs_1): Same.
13182 (eliminate_regs_in_insn): Same.
13183 (update_reg_eliminate): Same.
13184 (init_elimination): Same.
13185 (lra_eliminate): Same.
13186 * lra-int.h: Same.
13187 * lra-lives.c (initiate_live_solver): Same.
13188 * lra-remat.c (create_remat_bb_data): Same.
13189 * lra-spills.c (lra_spill): Same.
13190 * lra.c (lra_set_insn_recog_data): Same.
13191 (lra_set_used_insn_alternative_by_uid): Same.
13192 (init_reg_info): Same.
13193 (expand_reg_info): Same.
13194 * lto-cgraph.c (output_symtab): Same.
13195 (read_identifier): Same.
13196 (get_alias_symbol): Same.
13197 (input_node): Same.
13198 (input_varpool_node): Same.
13199 (input_ref): Same.
13200 (input_edge): Same.
13201 (input_cgraph_1): Same.
13202 (input_refs): Same.
13203 (input_symtab): Same.
13204 (input_offload_tables): Same.
13205 (output_cgraph_opt_summary): Same.
13206 (input_edge_opt_summary): Same.
13207 (input_cgraph_opt_section): Same.
13208 * lto-section-in.c (lto_free_raw_section_data): Same.
13209 (lto_create_simple_input_block): Same.
13210 (lto_free_function_in_decl_state_for_node): Same.
13211 * lto-streamer-in.c (lto_tag_check_set): Same.
13212 (lto_location_cache::revert_location_cache): Same.
13213 (lto_location_cache::input_location): Same.
13214 (lto_input_location): Same.
13215 (stream_input_location_now): Same.
13216 (lto_input_tree_ref): Same.
13217 (lto_input_eh_catch_list): Same.
13218 (input_eh_region): Same.
13219 (lto_init_eh): Same.
13220 (make_new_block): Same.
13221 (input_cfg): Same.
13222 (fixup_call_stmt_edges): Same.
13223 (input_struct_function_base): Same.
13224 (input_function): Same.
13225 (lto_read_body_or_constructor): Same.
13226 (lto_read_tree_1): Same.
13227 (lto_read_tree): Same.
13228 (lto_input_scc): Same.
13229 (lto_input_tree_1): Same.
13230 (lto_input_toplevel_asms): Same.
13231 (lto_input_mode_table): Same.
13232 (lto_reader_init): Same.
13233 (lto_data_in_create): Same.
13234 * lto-streamer-out.c (output_cfg): Same.
13235 * lto-streamer.h: Same.
13236 * modulo-sched.c (duplicate_insns_of_cycles): Same.
13237 (generate_prolog_epilog): Same.
13238 (mark_loop_unsched): Same.
13239 (dump_insn_location): Same.
13240 (loop_canon_p): Same.
13241 (sms_schedule): Same.
13242 * omp-expand.c (expand_omp_for_ordered_loops): Same.
13243 (expand_omp_for_generic): Same.
13244 (expand_omp_for_static_nochunk): Same.
13245 (expand_omp_for_static_chunk): Same.
13246 (expand_omp_simd): Same.
13247 (expand_omp_taskloop_for_inner): Same.
13248 (expand_oacc_for): Same.
13249 (expand_omp_atomic_pipeline): Same.
13250 (mark_loops_in_oacc_kernels_region): Same.
13251 * omp-offload.c (oacc_xform_loop): Same.
13252 * omp-simd-clone.c (simd_clone_adjust): Same.
13253 * optabs-query.c (get_traditional_extraction_insn): Same.
13254 * optabs.c (expand_vector_broadcast): Same.
13255 (expand_binop_directly): Same.
13256 (expand_twoval_unop): Same.
13257 (expand_twoval_binop): Same.
13258 (expand_unop_direct): Same.
13259 (emit_indirect_jump): Same.
13260 (emit_conditional_move): Same.
13261 (emit_conditional_neg_or_complement): Same.
13262 (emit_conditional_add): Same.
13263 (vector_compare_rtx): Same.
13264 (expand_vec_perm_1): Same.
13265 (expand_vec_perm_const): Same.
13266 (expand_vec_cond_expr): Same.
13267 (expand_vec_series_expr): Same.
13268 (maybe_emit_atomic_exchange): Same.
13269 (maybe_emit_sync_lock_test_and_set): Same.
13270 (expand_atomic_compare_and_swap): Same.
13271 (expand_atomic_load): Same.
13272 (expand_atomic_store): Same.
13273 (maybe_emit_op): Same.
13274 (valid_multiword_target_p): Same.
13275 (create_integer_operand): Same.
13276 (maybe_legitimize_operand_same_code): Same.
13277 (maybe_legitimize_operand): Same.
13278 (create_convert_operand_from_type): Same.
13279 (can_reuse_operands_p): Same.
13280 (maybe_legitimize_operands): Same.
13281 (maybe_gen_insn): Same.
13282 (maybe_expand_insn): Same.
13283 (maybe_expand_jump_insn): Same.
13284 (expand_insn): Same.
13285 * optabs.h (create_expand_operand): Same.
13286 (create_fixed_operand): Same.
13287 (create_output_operand): Same.
13288 (create_input_operand): Same.
13289 (create_convert_operand_to): Same.
13290 (create_convert_operand_from): Same.
13291 * optinfo.h: Same.
13292 * poly-int.h: Same.
13293 * predict.c (optimize_insn_for_speed_p): Same.
13294 (optimize_loop_for_size_p): Same.
13295 (optimize_loop_for_speed_p): Same.
13296 (optimize_loop_nest_for_speed_p): Same.
13297 (get_base_value): Same.
13298 (predicted_by_loop_heuristics_p): Same.
13299 (predict_extra_loop_exits): Same.
13300 (predict_loops): Same.
13301 (predict_paths_for_bb): Same.
13302 (predict_paths_leading_to): Same.
13303 (propagate_freq): Same.
13304 (pass_profile::execute): Same.
13305 * predict.h: Same.
13306 * profile-count.c (profile_count::differs_from_p): Same.
13307 (profile_probability::differs_lot_from_p): Same.
13308 * profile-count.h: Same.
13309 * profile.c (branch_prob): Same.
13310 * regrename.c (free_chain_data): Same.
13311 (mark_conflict): Same.
13312 (create_new_chain): Same.
13313 (merge_overlapping_regs): Same.
13314 (init_rename_info): Same.
13315 (merge_chains): Same.
13316 (regrename_analyze): Same.
13317 (regrename_do_replace): Same.
13318 (scan_rtx_reg): Same.
13319 (record_out_operands): Same.
13320 (build_def_use): Same.
13321 * regrename.h: Same.
13322 * reload.h: Same.
13323 * reload1.c (init_reload): Same.
13324 (maybe_fix_stack_asms): Same.
13325 (copy_reloads): Same.
13326 (count_pseudo): Same.
13327 (count_spilled_pseudo): Same.
13328 (find_reg): Same.
13329 (find_reload_regs): Same.
13330 (select_reload_regs): Same.
13331 (spill_hard_reg): Same.
13332 (fixup_eh_region_note): Same.
13333 (set_reload_reg): Same.
13334 (allocate_reload_reg): Same.
13335 (compute_reload_subreg_offset): Same.
13336 (reload_adjust_reg_for_icode): Same.
13337 (emit_input_reload_insns): Same.
13338 (emit_output_reload_insns): Same.
13339 (do_input_reload): Same.
13340 (inherit_piecemeal_p): Same.
13341 * rtl.h: Same.
13342 * sanopt.c (maybe_get_dominating_check): Same.
13343 (maybe_optimize_ubsan_ptr_ifn): Same.
13344 (can_remove_asan_check): Same.
13345 (maybe_optimize_asan_check_ifn): Same.
13346 (sanopt_optimize_walker): Same.
13347 * sched-deps.c (add_dependence_list): Same.
13348 (chain_to_prev_insn): Same.
13349 (add_insn_mem_dependence): Same.
13350 (create_insn_reg_set): Same.
13351 (maybe_extend_reg_info_p): Same.
13352 (sched_analyze_reg): Same.
13353 (sched_analyze_1): Same.
13354 (get_implicit_reg_pending_clobbers): Same.
13355 (chain_to_prev_insn_p): Same.
13356 (deps_analyze_insn): Same.
13357 (deps_start_bb): Same.
13358 (sched_free_deps): Same.
13359 (init_deps): Same.
13360 (init_deps_reg_last): Same.
13361 (free_deps): Same.
13362 * sched-ebb.c: Same.
13363 * sched-int.h: Same.
13364 * sched-rgn.c (add_branch_dependences): Same.
13365 (concat_insn_mem_list): Same.
13366 (deps_join): Same.
13367 (sched_rgn_compute_dependencies): Same.
13368 * sel-sched-ir.c (reset_target_context): Same.
13369 (copy_deps_context): Same.
13370 (init_id_from_df): Same.
13371 (has_dependence_p): Same.
13372 (change_loops_latches): Same.
13373 (bb_top_order_comparator): Same.
13374 (make_region_from_loop_preheader): Same.
13375 (sel_init_pipelining): Same.
13376 (get_loop_nest_for_rgn): Same.
13377 (make_regions_from_the_rest): Same.
13378 (sel_is_loop_preheader_p): Same.
13379 * sel-sched-ir.h (inner_loop_header_p): Same.
13380 (get_all_loop_exits): Same.
13381 * selftest.h: Same.
13382 * sese.c (sese_build_liveouts): Same.
13383 (sese_insert_phis_for_liveouts): Same.
13384 * sese.h (defined_in_sese_p): Same.
13385 * sreal.c (sreal::stream_out): Same.
13386 * sreal.h: Same.
13387 * streamer-hooks.h: Same.
13388 * target-globals.c (save_target_globals): Same.
13389 * target-globals.h: Same.
13390 * target.def: Same.
13391 * target.h: Same.
13392 * targhooks.c (default_has_ifunc_p): Same.
13393 (default_empty_mask_is_expensive): Same.
13394 (default_init_cost): Same.
13395 * targhooks.h: Same.
13396 * toplev.c: Same.
13397 * tree-affine.c (aff_combination_mult): Same.
13398 (aff_combination_expand): Same.
13399 (aff_combination_constant_multiple_p): Same.
13400 * tree-affine.h: Same.
13401 * tree-cfg.c (build_gimple_cfg): Same.
13402 (replace_loop_annotate_in_block): Same.
13403 (replace_uses_by): Same.
13404 (remove_bb): Same.
13405 (dump_cfg_stats): Same.
13406 (gimple_duplicate_sese_region): Same.
13407 (gimple_duplicate_sese_tail): Same.
13408 (move_block_to_fn): Same.
13409 (replace_block_vars_by_duplicates): Same.
13410 (move_sese_region_to_fn): Same.
13411 (print_loops_bb): Same.
13412 (print_loop): Same.
13413 (print_loops): Same.
13414 (debug): Same.
13415 (debug_loops): Same.
13416 * tree-cfg.h: Same.
13417 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
13418 (chrec_fold_multiply_poly_poly): Same.
13419 (chrec_evaluate): Same.
13420 (chrec_component_in_loop_num): Same.
13421 (reset_evolution_in_loop): Same.
13422 (is_multivariate_chrec): Same.
13423 (chrec_contains_symbols): Same.
13424 (nb_vars_in_chrec): Same.
13425 (chrec_convert_1): Same.
13426 (chrec_convert_aggressive): Same.
13427 * tree-chrec.h: Same.
13428 * tree-core.h: Same.
13429 * tree-data-ref.c (dump_data_dependence_relation): Same.
13430 (canonicalize_base_object_address): Same.
13431 (data_ref_compare_tree): Same.
13432 (prune_runtime_alias_test_list): Same.
13433 (get_segment_min_max): Same.
13434 (create_intersect_range_checks): Same.
13435 (conflict_fn_no_dependence): Same.
13436 (object_address_invariant_in_loop_p): Same.
13437 (analyze_ziv_subscript): Same.
13438 (analyze_siv_subscript_cst_affine): Same.
13439 (analyze_miv_subscript): Same.
13440 (analyze_overlapping_iterations): Same.
13441 (build_classic_dist_vector_1): Same.
13442 (add_other_self_distances): Same.
13443 (same_access_functions): Same.
13444 (build_classic_dir_vector): Same.
13445 (subscript_dependence_tester_1): Same.
13446 (subscript_dependence_tester): Same.
13447 (access_functions_are_affine_or_constant_p): Same.
13448 (get_references_in_stmt): Same.
13449 (loop_nest_has_data_refs): Same.
13450 (graphite_find_data_references_in_stmt): Same.
13451 (find_data_references_in_bb): Same.
13452 (get_base_for_alignment): Same.
13453 (find_loop_nest_1): Same.
13454 (find_loop_nest): Same.
13455 * tree-data-ref.h (dr_alignment): Same.
13456 (ddr_dependence_level): Same.
13457 * tree-if-conv.c (fold_build_cond_expr): Same.
13458 (add_to_predicate_list): Same.
13459 (add_to_dst_predicate_list): Same.
13460 (phi_convertible_by_degenerating_args): Same.
13461 (idx_within_array_bound): Same.
13462 (all_preds_critical_p): Same.
13463 (pred_blocks_visited_p): Same.
13464 (predicate_bbs): Same.
13465 (build_region): Same.
13466 (if_convertible_loop_p_1): Same.
13467 (is_cond_scalar_reduction): Same.
13468 (predicate_scalar_phi): Same.
13469 (remove_conditions_and_labels): Same.
13470 (combine_blocks): Same.
13471 (version_loop_for_if_conversion): Same.
13472 (versionable_outer_loop_p): Same.
13473 (ifcvt_local_dce): Same.
13474 (tree_if_conversion): Same.
13475 (pass_if_conversion::gate): Same.
13476 * tree-if-conv.h: Same.
13477 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
13478 * tree-loop-distribution.c (bb_top_order_cmp): Same.
13479 (free_rdg): Same.
13480 (stmt_has_scalar_dependences_outside_loop): Same.
13481 (copy_loop_before): Same.
13482 (create_bb_after_loop): Same.
13483 (const_with_all_bytes_same): Same.
13484 (generate_memset_builtin): Same.
13485 (generate_memcpy_builtin): Same.
13486 (destroy_loop): Same.
13487 (build_rdg_partition_for_vertex): Same.
13488 (compute_access_range): Same.
13489 (data_ref_segment_size): Same.
13490 (latch_dominated_by_data_ref): Same.
13491 (compute_alias_check_pairs): Same.
13492 (fuse_memset_builtins): Same.
13493 (finalize_partitions): Same.
13494 (find_seed_stmts_for_distribution): Same.
13495 (prepare_perfect_loop_nest): Same.
13496 * tree-parloops.c (lambda_transform_legal_p): Same.
13497 (loop_parallel_p): Same.
13498 (reduc_stmt_res): Same.
13499 (add_field_for_name): Same.
13500 (create_call_for_reduction_1): Same.
13501 (replace_uses_in_bb_by): Same.
13502 (transform_to_exit_first_loop_alt): Same.
13503 (try_transform_to_exit_first_loop_alt): Same.
13504 (transform_to_exit_first_loop): Same.
13505 (num_phis): Same.
13506 (gen_parallel_loop): Same.
13507 (gather_scalar_reductions): Same.
13508 (get_omp_data_i_param): Same.
13509 (try_create_reduction_list): Same.
13510 (oacc_entry_exit_single_gang): Same.
13511 (parallelize_loops): Same.
13512 * tree-pass.h: Same.
13513 * tree-predcom.c (determine_offset): Same.
13514 (last_always_executed_block): Same.
13515 (split_data_refs_to_components): Same.
13516 (suitable_component_p): Same.
13517 (valid_initializer_p): Same.
13518 (find_looparound_phi): Same.
13519 (insert_looparound_copy): Same.
13520 (add_looparound_copies): Same.
13521 (determine_roots_comp): Same.
13522 (predcom_tmp_var): Same.
13523 (initialize_root_vars): Same.
13524 (initialize_root_vars_store_elim_1): Same.
13525 (initialize_root_vars_store_elim_2): Same.
13526 (finalize_eliminated_stores): Same.
13527 (initialize_root_vars_lm): Same.
13528 (remove_stmt): Same.
13529 (determine_unroll_factor): Same.
13530 (execute_pred_commoning_cbck): Same.
13531 (base_names_in_chain_on): Same.
13532 (combine_chains): Same.
13533 (pcom_stmt_dominates_stmt_p): Same.
13534 (try_combine_chains): Same.
13535 (prepare_initializers_chain_store_elim): Same.
13536 (prepare_initializers_chain): Same.
13537 (prepare_initializers): Same.
13538 (prepare_finalizers_chain): Same.
13539 (prepare_finalizers): Same.
13540 (insert_init_seqs): Same.
13541 * tree-scalar-evolution.c (loop_phi_node_p): Same.
13542 (compute_overall_effect_of_inner_loop): Same.
13543 (add_to_evolution_1): Same.
13544 (add_to_evolution): Same.
13545 (follow_ssa_edge_binary): Same.
13546 (follow_ssa_edge_expr): Same.
13547 (backedge_phi_arg_p): Same.
13548 (follow_ssa_edge_in_condition_phi_branch): Same.
13549 (follow_ssa_edge_in_condition_phi): Same.
13550 (follow_ssa_edge_inner_loop_phi): Same.
13551 (follow_ssa_edge): Same.
13552 (analyze_evolution_in_loop): Same.
13553 (analyze_initial_condition): Same.
13554 (interpret_loop_phi): Same.
13555 (interpret_condition_phi): Same.
13556 (interpret_rhs_expr): Same.
13557 (interpret_expr): Same.
13558 (interpret_gimple_assign): Same.
13559 (analyze_scalar_evolution_1): Same.
13560 (analyze_scalar_evolution): Same.
13561 (analyze_scalar_evolution_for_address_of): Same.
13562 (get_instantiated_value_entry): Same.
13563 (loop_closed_phi_def): Same.
13564 (instantiate_scev_name): Same.
13565 (instantiate_scev_poly): Same.
13566 (instantiate_scev_binary): Same.
13567 (instantiate_scev_convert): Same.
13568 (instantiate_scev_not): Same.
13569 (instantiate_scev_r): Same.
13570 (instantiate_scev): Same.
13571 (resolve_mixers): Same.
13572 (initialize_scalar_evolutions_analyzer): Same.
13573 (scev_reset_htab): Same.
13574 (scev_reset): Same.
13575 (derive_simple_iv_with_niters): Same.
13576 (simple_iv_with_niters): Same.
13577 (expression_expensive_p): Same.
13578 (final_value_replacement_loop): Same.
13579 * tree-scalar-evolution.h (block_before_loop): Same.
13580 * tree-ssa-address.h: Same.
13581 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
13582 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
13583 (record_edge_info): Same.
13584 * tree-ssa-live.c (var_map_base_fini): Same.
13585 (remove_unused_locals): Same.
13586 * tree-ssa-live.h: Same.
13587 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
13588 (pass_ch_vect::execute): Same.
13589 (pass_ch::process_loop_p): Same.
13590 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
13591 (movement_possibility): Same.
13592 (outermost_invariant_loop): Same.
13593 (stmt_cost): Same.
13594 (determine_max_movement): Same.
13595 (invariantness_dom_walker::before_dom_children): Same.
13596 (move_computations): Same.
13597 (may_move_till): Same.
13598 (force_move_till_op): Same.
13599 (force_move_till): Same.
13600 (memref_free): Same.
13601 (record_mem_ref_loc): Same.
13602 (set_ref_stored_in_loop): Same.
13603 (mark_ref_stored): Same.
13604 (sort_bbs_in_loop_postorder_cmp): Same.
13605 (sort_locs_in_loop_postorder_cmp): Same.
13606 (analyze_memory_references): Same.
13607 (mem_refs_may_alias_p): Same.
13608 (find_ref_loc_in_loop_cmp): Same.
13609 (rewrite_mem_ref_loc::operator): Same.
13610 (first_mem_ref_loc_1::operator): Same.
13611 (sm_set_flag_if_changed::operator): Same.
13612 (execute_sm_if_changed_flag_set): Same.
13613 (execute_sm): Same.
13614 (hoist_memory_references): Same.
13615 (ref_always_accessed::operator): Same.
13616 (refs_independent_p): Same.
13617 (record_dep_loop): Same.
13618 (ref_indep_loop_p_1): Same.
13619 (ref_indep_loop_p): Same.
13620 (can_sm_ref_p): Same.
13621 (find_refs_for_sm): Same.
13622 (loop_suitable_for_sm): Same.
13623 (store_motion_loop): Same.
13624 (store_motion): Same.
13625 (fill_always_executed_in): Same.
13626 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
13627 (estimated_unrolled_size): Same.
13628 (loop_edge_to_cancel): Same.
13629 (remove_exits_and_undefined_stmts): Same.
13630 (remove_redundant_iv_tests): Same.
13631 (unloop_loops): Same.
13632 (estimated_peeled_sequence_size): Same.
13633 (try_peel_loop): Same.
13634 (canonicalize_loop_induction_variables): Same.
13635 (canonicalize_induction_variables): Same.
13636 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
13637 (name_info): Same.
13638 (stmt_after_inc_pos): Same.
13639 (contains_abnormal_ssa_name_p): Same.
13640 (niter_for_exit): Same.
13641 (find_bivs): Same.
13642 (mark_bivs): Same.
13643 (find_givs_in_bb): Same.
13644 (find_induction_variables): Same.
13645 (find_interesting_uses_cond): Same.
13646 (outermost_invariant_loop_for_expr): Same.
13647 (idx_find_step): Same.
13648 (add_candidate_1): Same.
13649 (add_iv_candidate_derived_from_uses): Same.
13650 (alloc_use_cost_map): Same.
13651 (prepare_decl_rtl): Same.
13652 (generic_predict_doloop_p): Same.
13653 (computation_cost): Same.
13654 (determine_common_wider_type): Same.
13655 (get_computation_aff_1): Same.
13656 (get_use_type): Same.
13657 (determine_group_iv_cost_address): Same.
13658 (iv_period): Same.
13659 (difference_cannot_overflow_p): Same.
13660 (may_eliminate_iv): Same.
13661 (determine_set_costs): Same.
13662 (cheaper_cost_pair): Same.
13663 (compare_cost_pair): Same.
13664 (iv_ca_cand_for_group): Same.
13665 (iv_ca_recount_cost): Same.
13666 (iv_ca_set_remove_invs): Same.
13667 (iv_ca_set_no_cp): Same.
13668 (iv_ca_set_add_invs): Same.
13669 (iv_ca_set_cp): Same.
13670 (iv_ca_add_group): Same.
13671 (iv_ca_cost): Same.
13672 (iv_ca_compare_deps): Same.
13673 (iv_ca_delta_reverse): Same.
13674 (iv_ca_delta_commit): Same.
13675 (iv_ca_cand_used_p): Same.
13676 (iv_ca_delta_free): Same.
13677 (iv_ca_new): Same.
13678 (iv_ca_free): Same.
13679 (iv_ca_dump): Same.
13680 (iv_ca_extend): Same.
13681 (iv_ca_narrow): Same.
13682 (iv_ca_prune): Same.
13683 (cheaper_cost_with_cand): Same.
13684 (iv_ca_replace): Same.
13685 (try_add_cand_for): Same.
13686 (get_initial_solution): Same.
13687 (try_improve_iv_set): Same.
13688 (find_optimal_iv_set_1): Same.
13689 (create_new_iv): Same.
13690 (rewrite_use_compare): Same.
13691 (remove_unused_ivs): Same.
13692 (determine_scaling_factor): Same.
13693 * tree-ssa-loop-ivopts.h: Same.
13694 * tree-ssa-loop-manip.c (create_iv): Same.
13695 (compute_live_loop_exits): Same.
13696 (add_exit_phi): Same.
13697 (add_exit_phis): Same.
13698 (find_uses_to_rename_use): Same.
13699 (find_uses_to_rename_def): Same.
13700 (find_uses_to_rename_in_loop): Same.
13701 (rewrite_into_loop_closed_ssa): Same.
13702 (check_loop_closed_ssa_bb): Same.
13703 (split_loop_exit_edge): Same.
13704 (ip_end_pos): Same.
13705 (ip_normal_pos): Same.
13706 (copy_phi_node_args): Same.
13707 (gimple_duplicate_loop_to_header_edge): Same.
13708 (can_unroll_loop_p): Same.
13709 (determine_exit_conditions): Same.
13710 (scale_dominated_blocks_in_loop): Same.
13711 (niter_for_unrolled_loop): Same.
13712 (tree_transform_and_unroll_loop): Same.
13713 (rewrite_all_phi_nodes_with_iv): Same.
13714 * tree-ssa-loop-manip.h: Same.
13715 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
13716 (number_of_iterations_ne): Same.
13717 (assert_no_overflow_lt): Same.
13718 (assert_loop_rolls_lt): Same.
13719 (number_of_iterations_lt): Same.
13720 (adjust_cond_for_loop_until_wrap): Same.
13721 (tree_simplify_using_condition): Same.
13722 (simplify_using_initial_conditions): Same.
13723 (simplify_using_outer_evolutions): Same.
13724 (loop_only_exit_p): Same.
13725 (ssa_defined_by_minus_one_stmt_p): Same.
13726 (number_of_iterations_popcount): Same.
13727 (number_of_iterations_exit): Same.
13728 (find_loop_niter): Same.
13729 (finite_loop_p): Same.
13730 (chain_of_csts_start): Same.
13731 (get_val_for): Same.
13732 (loop_niter_by_eval): Same.
13733 (derive_constant_upper_bound_ops): Same.
13734 (do_warn_aggressive_loop_optimizations): Same.
13735 (record_estimate): Same.
13736 (get_cst_init_from_scev): Same.
13737 (record_nonwrapping_iv): Same.
13738 (idx_infer_loop_bounds): Same.
13739 (infer_loop_bounds_from_ref): Same.
13740 (infer_loop_bounds_from_array): Same.
13741 (infer_loop_bounds_from_pointer_arith): Same.
13742 (infer_loop_bounds_from_signedness): Same.
13743 (bound_index): Same.
13744 (discover_iteration_bound_by_body_walk): Same.
13745 (maybe_lower_iteration_bound): Same.
13746 (estimate_numbers_of_iterations): Same.
13747 (estimated_loop_iterations): Same.
13748 (estimated_loop_iterations_int): Same.
13749 (max_loop_iterations): Same.
13750 (max_loop_iterations_int): Same.
13751 (likely_max_loop_iterations): Same.
13752 (likely_max_loop_iterations_int): Same.
13753 (estimated_stmt_executions_int): Same.
13754 (max_stmt_executions): Same.
13755 (likely_max_stmt_executions): Same.
13756 (estimated_stmt_executions): Same.
13757 (stmt_dominates_stmt_p): Same.
13758 (nowrap_type_p): Same.
13759 (loop_exits_before_overflow): Same.
13760 (scev_var_range_cant_overflow): Same.
13761 (scev_probably_wraps_p): Same.
13762 (free_numbers_of_iterations_estimates): Same.
13763 * tree-ssa-loop-niter.h: Same.
13764 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
13765 (idx_analyze_ref): Same.
13766 (analyze_ref): Same.
13767 (gather_memory_references_ref): Same.
13768 (mark_nontemporal_store): Same.
13769 (emit_mfence_after_loop): Same.
13770 (may_use_storent_in_loop_p): Same.
13771 (mark_nontemporal_stores): Same.
13772 (should_unroll_loop_p): Same.
13773 (volume_of_dist_vector): Same.
13774 (add_subscript_strides): Same.
13775 (self_reuse_distance): Same.
13776 (insn_to_prefetch_ratio_too_small_p): Same.
13777 * tree-ssa-loop-split.c (split_at_bb_p): Same.
13778 (patch_loop_exit): Same.
13779 (find_or_create_guard_phi): Same.
13780 (easy_exit_values): Same.
13781 (connect_loop_phis): Same.
13782 (connect_loops): Same.
13783 (compute_new_first_bound): Same.
13784 (split_loop): Same.
13785 (tree_ssa_split_loops): Same.
13786 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
13787 (is_maybe_undefined): Same.
13788 (tree_may_unswitch_on): Same.
13789 (simplify_using_entry_checks): Same.
13790 (tree_unswitch_single_loop): Same.
13791 (tree_unswitch_loop): Same.
13792 (tree_unswitch_outer_loop): Same.
13793 (empty_bb_without_guard_p): Same.
13794 (used_outside_loop_p): Same.
13795 (get_vop_from_header): Same.
13796 (hoist_guard): Same.
13797 * tree-ssa-loop.c (gate_oacc_kernels): Same.
13798 (get_lsm_tmp_name): Same.
13799 * tree-ssa-loop.h: Same.
13800 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
13801 (build_and_add_sum): Same.
13802 (no_side_effect_bb): Same.
13803 (get_ops): Same.
13804 (linearize_expr): Same.
13805 (should_break_up_subtract): Same.
13806 (linearize_expr_tree): Same.
13807 * tree-ssa-scopedtables.c: Same.
13808 * tree-ssa-scopedtables.h: Same.
13809 * tree-ssa-structalias.c (condense_visit): Same.
13810 (label_visit): Same.
13811 (dump_pred_graph): Same.
13812 (perform_var_substitution): Same.
13813 (move_complex_constraints): Same.
13814 (remove_preds_and_fake_succs): Same.
13815 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
13816 (determine_bb_domination_status): Same.
13817 (duplicate_thread_path): Same.
13818 (thread_through_all_blocks): Same.
13819 * tree-ssa-threadupdate.h: Same.
13820 * tree-streamer-in.c (streamer_read_string_cst): Same.
13821 (input_identifier): Same.
13822 (unpack_ts_type_common_value_fields): Same.
13823 (unpack_ts_block_value_fields): Same.
13824 (unpack_ts_translation_unit_decl_value_fields): Same.
13825 (unpack_ts_omp_clause_value_fields): Same.
13826 (streamer_read_tree_bitfields): Same.
13827 (streamer_alloc_tree): Same.
13828 (lto_input_ts_common_tree_pointers): Same.
13829 (lto_input_ts_vector_tree_pointers): Same.
13830 (lto_input_ts_poly_tree_pointers): Same.
13831 (lto_input_ts_complex_tree_pointers): Same.
13832 (lto_input_ts_decl_minimal_tree_pointers): Same.
13833 (lto_input_ts_decl_common_tree_pointers): Same.
13834 (lto_input_ts_decl_non_common_tree_pointers): Same.
13835 (lto_input_ts_decl_with_vis_tree_pointers): Same.
13836 (lto_input_ts_field_decl_tree_pointers): Same.
13837 (lto_input_ts_function_decl_tree_pointers): Same.
13838 (lto_input_ts_type_common_tree_pointers): Same.
13839 (lto_input_ts_type_non_common_tree_pointers): Same.
13840 (lto_input_ts_list_tree_pointers): Same.
13841 (lto_input_ts_vec_tree_pointers): Same.
13842 (lto_input_ts_exp_tree_pointers): Same.
13843 (lto_input_ts_block_tree_pointers): Same.
13844 (lto_input_ts_binfo_tree_pointers): Same.
13845 (lto_input_ts_constructor_tree_pointers): Same.
13846 (lto_input_ts_omp_clause_tree_pointers): Same.
13847 (streamer_read_tree_body): Same.
13848 * tree-streamer.h: Same.
13849 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
13850 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
13851 (vect_analyze_possibly_independent_ddr): Same.
13852 (vect_analyze_data_ref_dependence): Same.
13853 (vect_compute_data_ref_alignment): Same.
13854 (vect_enhance_data_refs_alignment): Same.
13855 (vect_analyze_data_ref_access): Same.
13856 (vect_check_gather_scatter): Same.
13857 (vect_find_stmt_data_reference): Same.
13858 (vect_create_addr_base_for_vector_ref): Same.
13859 (vect_setup_realignment): Same.
13860 (vect_supportable_dr_alignment): Same.
13861 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
13862 (adjust_phi_and_debug_stmts): Same.
13863 (vect_set_loop_mask): Same.
13864 (add_preheader_seq): Same.
13865 (vect_maybe_permute_loop_masks): Same.
13866 (vect_set_loop_masks_directly): Same.
13867 (vect_set_loop_condition_masked): Same.
13868 (vect_set_loop_condition_unmasked): Same.
13869 (slpeel_duplicate_current_defs_from_edges): Same.
13870 (slpeel_add_loop_guard): Same.
13871 (slpeel_can_duplicate_loop_p): Same.
13872 (create_lcssa_for_virtual_phi): Same.
13873 (iv_phi_p): Same.
13874 (vect_update_ivs_after_vectorizer): Same.
13875 (vect_gen_vector_loop_niters_mult_vf): Same.
13876 (slpeel_update_phi_nodes_for_loops): Same.
13877 (slpeel_update_phi_nodes_for_guard1): Same.
13878 (find_guard_arg): Same.
13879 (slpeel_update_phi_nodes_for_guard2): Same.
13880 (slpeel_update_phi_nodes_for_lcssa): Same.
13881 (vect_do_peeling): Same.
13882 (vect_create_cond_for_alias_checks): Same.
13883 (vect_loop_versioning): Same.
13884 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
13885 (vect_inner_phi_in_double_reduction_p): Same.
13886 (vect_analyze_scalar_cycles_1): Same.
13887 (vect_fixup_scalar_cycles_with_patterns): Same.
13888 (vect_get_loop_niters): Same.
13889 (bb_in_loop_p): Same.
13890 (vect_get_max_nscalars_per_iter): Same.
13891 (vect_verify_full_masking): Same.
13892 (vect_compute_single_scalar_iteration_cost): Same.
13893 (vect_analyze_loop_form_1): Same.
13894 (vect_analyze_loop_form): Same.
13895 (vect_active_double_reduction_p): Same.
13896 (vect_analyze_loop_operations): Same.
13897 (neutral_op_for_slp_reduction): Same.
13898 (vect_is_simple_reduction): Same.
13899 (vect_model_reduction_cost): Same.
13900 (get_initial_def_for_reduction): Same.
13901 (get_initial_defs_for_reduction): Same.
13902 (vect_create_epilog_for_reduction): Same.
13903 (vectorize_fold_left_reduction): Same.
13904 (vectorizable_reduction): Same.
13905 (vectorizable_induction): Same.
13906 (vectorizable_live_operation): Same.
13907 (loop_niters_no_overflow): Same.
13908 (vect_get_loop_mask): Same.
13909 (vect_transform_loop_stmt): Same.
13910 (vect_transform_loop): Same.
13911 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
13912 (vect_determine_precisions): Same.
13913 (vect_pattern_recog_1): Same.
13914 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
13915 * tree-vect-stmts.c (stmt_vectype): Same.
13916 (process_use): Same.
13917 (vect_init_vector_1): Same.
13918 (vect_truncate_gather_scatter_offset): Same.
13919 (get_group_load_store_type): Same.
13920 (vect_build_gather_load_calls): Same.
13921 (vect_get_strided_load_store_ops): Same.
13922 (vectorizable_simd_clone_call): Same.
13923 (vectorizable_store): Same.
13924 (permute_vec_elements): Same.
13925 (vectorizable_load): Same.
13926 (vect_transform_stmt): Same.
13927 (supportable_widening_operation): Same.
13928 * tree-vectorizer.c (vec_info::replace_stmt): Same.
13929 (vec_info::free_stmt_vec_info): Same.
13930 (vect_free_loop_info_assumptions): Same.
13931 (vect_loop_vectorized_call): Same.
13932 (set_uid_loop_bbs): Same.
13933 (vectorize_loops): Same.
13934 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
13935 * tree.c (add_tree_to_fld_list): Same.
13936 (fld_type_variant_equal_p): Same.
13937 (fld_decl_context): Same.
13938 (fld_incomplete_type_of): Same.
13939 (free_lang_data_in_binfo): Same.
13940 (need_assembler_name_p): Same.
13941 (find_decls_types_r): Same.
13942 (get_eh_types_for_runtime): Same.
13943 (find_decls_types_in_eh_region): Same.
13944 (find_decls_types_in_node): Same.
13945 (assign_assembler_name_if_needed): Same.
13946 * value-prof.c (stream_out_histogram_value): Same.
13947 * value-prof.h: Same.
13948 * var-tracking.c (use_narrower_mode): Same.
13949 (prepare_call_arguments): Same.
13950 (vt_expand_loc_callback): Same.
13951 (resolve_expansions_pending_recursion): Same.
13952 (vt_expand_loc): Same.
13953 * varasm.c (const_hash_1): Same.
13954 (compare_constant): Same.
13955 (tree_output_constant_def): Same.
13956 (simplify_subtraction): Same.
13957 (get_pool_constant): Same.
13958 (output_constant_pool_2): Same.
13959 (output_constant_pool_1): Same.
13960 (mark_constants_in_pattern): Same.
13961 (mark_constant_pool): Same.
13962 (get_section_anchor): Same.
13963 * vr-values.c (compare_range_with_value): Same.
13964 (vr_values::extract_range_from_phi_node): Same.
13965 * vr-values.h: Same.
13966 * web.c (unionfind_union): Same.
13967 * wide-int.h: Same.
13968
13969 2019-07-09 Martin Sebor <msebor@redhat.com>
13970
13971 PR c++/61339
13972 * align.h: Change class-key from class to struct and vice versa
13973 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
13974 * alloc-pool.h: Same.
13975 * asan.c (shadow_mem_size): Same.
13976 * auto-profile.c: Same.
13977 * basic-block.h: Same.
13978 * bitmap.h: Same.
13979 * cfgexpand.c (set_rtl): Same.
13980 (expand_one_stack_var_at): Same.
13981 * cfghooks.h: Same.
13982 * cfgloop.h: Same.
13983 * cgraph.h: Same.
13984 * config/i386/i386.h: Same.
13985 * df-problems.c (df_print_bb_index): Same.
13986 * df-scan.c: Same.
13987 * df.h (df_single_use): Same.
13988 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
13989 (layout::annotation_line_showed_range_p): Same.
13990 (get_printed_columns): Same.
13991 (correction::ensure_terminated): Same.
13992 (line_corrections::~line_corrections): Same.
13993 * dojump.h: Same.
13994 * dse.c: Same.
13995 * dump-context.h: Same.
13996 * dumpfile.h: Same.
13997 * dwarf2out.c: Same.
13998 * edit-context.c: Same.
13999 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
14000 * flags.h: Same.
14001 * function.c (assign_stack_local): Same.
14002 * function.h: Same.
14003 * gcc.c: Same.
14004 * gcov.c (block_info::block_info): Same.
14005 * genattrtab.c: Same.
14006 * genextract.c: Same.
14007 * genmatch.c (comparison_code_p): Same.
14008 (id_base::id_base): Same.
14009 (decision_tree::print): Same.
14010 * genoutput.c: Same.
14011 * genpreds.c (write_one_predicate_function): Same.
14012 * genrecog.c (validate_pattern): Same.
14013 (find_operand_positions): Same.
14014 (optimize_subroutine_group): Same.
14015 (merge_pattern_transition::merge_pattern_transition): Same.
14016 (merge_pattern_info::merge_pattern_info): Same.
14017 (merge_state_result::merge_state_result): Same.
14018 (merge_into_state): Same.
14019 * gensupport.c: Same.
14020 * gensupport.h: Same.
14021 * ggc-common.c (init_ggc_heuristics): Same.
14022 * ggc-tests.c (test_union): Same.
14023 * gimple-loop-interchange.cc (dump_induction): Same.
14024 * gimple-loop-versioning.cc: Same.
14025 * gimple-match.h (gimple_match_cond::any_else): Same.
14026 * gimple-ssa-backprop.c: Same.
14027 * gimple-ssa-sprintf.c: Same.
14028 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
14029 Same.
14030 (store_immediate_info::store_immediate_info): Same.
14031 (merged_store_group::apply_stores): Same.
14032 (get_location_for_stmts): Same.
14033 * gimple-ssa-strength-reduction.c: Same.
14034 * gimple-ssa-warn-alloca.c: Same.
14035 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
14036 * godump.c (go_type_decl): Same.
14037 * hash-map-tests.c (test_map_of_strings_to_int): Same.
14038 * hash-map.h: Same.
14039 * hash-set-tests.c (test_set_of_strings): Same.
14040 * hsa-brig.c: Same.
14041 * hsa-common.h: Same.
14042 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
14043 * input.c (assert_loceq): Same.
14044 * input.h: Same.
14045 * ipa-cp.c: Same.
14046 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
14047 * ipa-fnsummary.h: Same.
14048 * ipa-inline.h: Same.
14049 * ipa-prop.h: Same.
14050 * ipa-split.c (visit_bb): Same.
14051 * ira-int.h (minmax_set_iter_next): Same.
14052 * loop-invariant.c: Same.
14053 * loop-iv.c: Same.
14054 * lra-eliminations.c: Same.
14055 * lra-int.h: Same.
14056 * lra-lives.c (mark_regno_dead): Same.
14057 * lra-remat.c: Same.
14058 * lra-spills.c: Same.
14059 * lto-streamer.h: Same.
14060 * mem-stats.h: Same.
14061 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
14062 * omp-low.c (omp_clause_aligned_alignment): Same.
14063 * optabs-query.h (get_vcond_eq_icode): Same.
14064 * optabs.h: Same.
14065 * opts.c (wrap_help): Same.
14066 * poly-int.h: Same.
14067 * predict.c (predict_paths_leading_to_edge): Same.
14068 * pretty-print.h: Same.
14069 * profile-count.h: Same.
14070 * read-md.h: Same.
14071 * read-rtl-function.c: Same.
14072 * ree.c: Same.
14073 * reginfo.c: Same.
14074 * regrename.c: Same.
14075 * regrename.h: Same.
14076 * reload.h: Same.
14077 * rtl-iter.h: Same.
14078 * rtl.h (costs_add_n_insns): Same.
14079 * sanopt.c: Same.
14080 * sched-int.h: Same.
14081 * sel-sched-ir.h: Same.
14082 * selftest.h: Same.
14083 * sese.h (vec_find): Same.
14084 * stmt.c: Same.
14085 * target-globals.h: Same.
14086 * tree-affine.c (aff_combination_find_elt): Same.
14087 * tree-affine.h: Same.
14088 * tree-data-ref.h: Same.
14089 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
14090 * tree-predcom.c: Same.
14091 * tree-scalar-evolution.c (find_var_scev_info): Same.
14092 * tree-ssa-alias.h: Same.
14093 * tree-ssa-ccp.c: Same.
14094 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
14095 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
14096 (rewrite_mem_refs): Same.
14097 (execute_sm_if_changed): Same.
14098 (hoist_memory_references): Same.
14099 * tree-ssa-loop-ivopts.c (operator<=): Same.
14100 * tree-ssa-loop.h: Same.
14101 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
14102 * tree-ssa-structalias.c: Same.
14103 * tree-switch-conversion.h (cluster::cluster): Same.
14104 (simple_cluster::simple_cluster): Same.
14105 * tree-vect-patterns.c (type_conversion_p): Same.
14106 * tree-vectorizer.c (dump_stmt_cost): Same.
14107 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
14108 * tree.c (protected_set_expr_location): Same.
14109 * tree.h (desired_pro_or_demotion_p): Same.
14110 (fndecl_built_in_p): Same.
14111 * unique-ptr-tests.cc: Same.
14112 * var-tracking.c (delete_variable_part): Same.
14113 * varasm.c (assemble_real): Same.
14114 (tree_output_constant_def): Same.
14115 * vec.c: Same.
14116 * wide-int-bitmask.h: Same.
14117 * wide-int.h (decompose): Same.
14118
14119 2019-07-09 Richard Biener <rguenther@suse.de>
14120
14121 PR tree-optimization/91114
14122 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
14123 find a vector type isn't fatal.
14124
14125 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
14126
14127 * config/aarch64/aarch64-simd.md
14128 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
14129 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
14130 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
14131 (*aarch64_crypto_aese_fused,
14132 *aarch64_crypto_aesd_fused): Update to new definition.
14133 * config/aarch64/aarch64.c
14134 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
14135
14136 2019-07-09 Richard Biener <rguenther@suse.de>
14137
14138 * gimple-match.h (gimple_match_op::resimplify): New.
14139 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
14140 gimple_resimplify4, gimple_resimplify5): Remove.
14141 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
14142 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
14143 Make static.
14144 (gimple_match_op::resimplify): New.
14145 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
14146 according to availability. Use gimple_match_op::resimplify.
14147
14148 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
14149
14150 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
14151
14152 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
14153
14154 * config/arm/crypto.md:
14155 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
14156 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
14157 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
14158 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
14159 * config/arm/arm.c
14160 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
14161 * config/arm/aarch-common-protos.h
14162 (aarch_crypto_can_dual_issue): Remove.
14163 * config/arm/aarch-common.c
14164 (aarch_crypto_can_dual_issue): Likewise.
14165 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
14166 * config/arm/cortex-a53.md: Likewise.
14167 * config/arm/cortex-a57.md: Likewise.
14168 * config/arm/iterators.md:
14169 (CRYPTO_BINARY): Redefine.
14170 (CRYPTO_UNARY): Removed.
14171 (CRYPTO_AES, CRYPTO_AESMC): New.
14172
14173 2019-07-09 Richard Biener <rguenther@suse.de>
14174
14175 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
14176 (vn_reference_lookup_3): If the main ref has no access path recorded
14177 but orig_ref has use it to do access-path based disambiguation.
14178 (vn_reference_lookup_pieces): Adjust.
14179 (vn_reference_lookup): Pass down original ref if we valueized.
14180
14181 2019-07-09 Martin Liska <mliska@suse.cz>
14182
14183 * doc/extend.texi: Document influence on loop
14184 optimizers.
14185
14186 2019-07-09 Martin Liska <mliska@suse.cz>
14187
14188 * lto-compress.c (lto_normalized_zstd_level): Do not use
14189 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
14190 of libzstd. One can use 0 as a default compression level.
14191
14192 2019-07-09 Martin Liska <mliska@suse.cz>
14193
14194 * doc/invoke.texi: Add link from -fprofile-dir option.
14195 Use better wording for 'gcno filename'.
14196
14197 2019-07-08 Martin Sebor <msebor@redhat.com>
14198
14199 PR middle-end/71924
14200 PR middle-end/90549
14201 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
14202 comment.
14203 (args_loc_t): New type.
14204 (args_loc_t, locmap_t): same.
14205 (diag_returned_locals): New function.
14206 (is_addr_local): Same.
14207 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
14208 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
14209 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
14210
14211 2019-07-08 Jakub Jelinek <jakub@redhat.com>
14212
14213 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
14214 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
14215 and casts in offset when different, both through gimple stmts
14216 and through trees. Rewritten using loops to minimize code duplication
14217 for each operand.
14218
14219 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
14220
14221 * emit-rtl.c (set_insn_locations): New function moved from...
14222 * function.c (set_insn_locations): ...here.
14223 * ira-emit.c (emit_moves): Propagate location of the first instruction
14224 to the inserted move instructions.
14225 * reg-stack.c (compensate_edge): Set the location if the sequence is
14226 inserted on the edge.
14227 * rtl.h (set_insn_locations): Declare.
14228
14229 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
14230
14231 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
14232 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
14233 .machine string.
14234
14235 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
14236
14237 PR rtl-optimization/88233
14238 * common.opt (fsplit-wide-types-early): New option.
14239 * common/config/rs6000/rs6000-common.c
14240 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
14241 OPT_LEVELS_ALL.
14242 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
14243 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
14244 flag_split_wide_types_early.
14245 (pass_data_lower_subreg3): New.
14246 (pass_lower_subreg3): New.
14247 (make_pass_lower_subreg3): New.
14248 * passes.def (pass_lower_subreg2): Move after the loop passes.
14249 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
14250 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
14251 the pass pipeline; its previous place is taken by ...
14252 (make_pass_lower_subreg3): ... this.
14253
14254 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
14255
14256 * config/s390/s390.c (s390_shift_truncation_mask): Define.
14257 (TARGET_SHIFT_TRUNCATION_MASK): Define.
14258
14259 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
14260
14261 * config/s390/constraints.md: Add new jsc constraint.
14262 * config/s390/predicates.md: New predicates.
14263 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
14264 * config/s390/s390.c (s390_valid_shift_count): New function.
14265 (print_shift_count_operand): Use s390_valid_shift_count.
14266 (print_operand): Likewise.
14267 * config/s390/s390.md: Use new predicate.
14268 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
14269 * config/s390/vector.md: Use new predicate.
14270
14271 2019-07-08 Andrew Waterman <andrew@sifive.com>
14272 Jim Wilson <jimw@sifive.com>
14273
14274 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
14275 bitsize instead of BITS_PER_WORD.
14276
14277 2019-07-08 Martin Liska <mliska@suse.cz>
14278
14279 * collect2.c (defined): Revert to before r254460.
14280 (scan_prog_file): Revert to before r254460.
14281
14282 2019-07-08 Richard Biener <rguenther@suse.de>
14283
14284 PR tree-optimization/83518
14285 * tree-ssa-sccvn.c: Include splay-tree.h.
14286 (struct pd_range, struct pd_data): New.
14287 (struct vn_walk_cb_data): Add data to track partial definitions.
14288 (vn_walk_cb_data::~vn_walk_cb_data): New.
14289 (vn_walk_cb_data::push_partial_def): New.
14290 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
14291 (vn_reference_lookup_2): When partial defs are registered give up.
14292 (vn_reference_lookup_3): Track partial defs for memset and
14293 constructor zeroing and for defs from constants.
14294
14295 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
14296
14297 * doc/install.texi (bootstrap-Og): Document.
14298
14299 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
14300
14301 * config/riscv/pic.md (*local_pic_load_s<mode>)
14302 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
14303 referenced by <mode>, giving...
14304 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
14305 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
14306 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
14307 use <X:MODE> for the mode attribute.
14308
14309 2019-07-07 Jeff Law <law@redhat.com>
14310
14311 PR tree-optimization/91090
14312 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
14313 in handling of ranges to simplify switch statements.
14314
14315 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
14316
14317 * config/darwin.c (darwin_override_options): Make a final check on PIC
14318 options.
14319
14320 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
14321
14322 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
14323 on for kernel code.
14324
14325 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
14326
14327 PR target/91068
14328 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
14329 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
14330 instead of matching them to "l" output operands.
14331
14332 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
14333
14334 * config/mips/mips.c (mips_split_move): Zero-initialize addr
14335 and check whether addr.reg is nonnull before using it.
14336
14337 2019-07-06 Jakub Jelinek <jakub@redhat.com>
14338
14339 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
14340 ctx->for_simd_scan_phase simd copy the outer var to the privatized
14341 variable(s). For conditional lastprivate look through outer
14342 GIMPLE_OMP_SCAN context.
14343 (lower_omp_1): For conditional lastprivate look through outer
14344 GIMPLE_OMP_SCAN context.
14345
14346 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
14347 member to combined_into_simd_safelen1.
14348 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
14349 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
14350 clauses if ctx->combined_into_simd_safelen1 put statements after the
14351 predicate conditionalized block rather than into it.
14352
14353 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
14354
14355 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
14356 operand 1.
14357 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
14358 Make the choice of <mode> explicit, giving...
14359 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
14360
14361 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
14362
14363 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
14364 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
14365 of .md attributes.
14366 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
14367 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
14368 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
14369 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
14370 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
14371 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
14372 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
14373 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
14374 (*avx512f_scatterdi<mode>): Likewise.
14375 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
14376
14377 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
14378
14379 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
14380 specify the mode iterator referenced by <mode>, giving...
14381 (*push1_h8300hs_<QHI:mode>): ...this.
14382
14383 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
14384
14385 * config/gcn/gcn-valu.md
14386 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
14387 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
14388 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
14389 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
14390 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
14391 but using the _exec comparison patterns.
14392 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
14393 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
14394 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
14395 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
14396 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
14397 but using the _exec comparison patterns.
14398
14399 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
14400
14401 * config/arm/sync.md
14402 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
14403 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
14404 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
14405 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
14406 <SIDI:cas_cmp_str>.
14407
14408 2019-07-06 Jakub Jelinek <jakub@redhat.com>
14409
14410 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
14411 (maybe_lookup_ctx): Add forward declaration.
14412 (omp_find_scan): Likewise. Walk into body of simd if composited
14413 with worksharing loop.
14414 (scan_omp_simd_scan): New function.
14415 (scan_omp_1_stmt): Call it.
14416 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
14417 ctx->for_simd_scan_phase.
14418 (lower_rec_input_clauses): Do much less work for inscan reductions
14419 in ctx->for_simd_scan_phase is_simd regions.
14420 (lower_omp_scan): Set is_simd also on simd constructs composited
14421 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
14422 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
14423 emit their body after in simd constructs composited with worksharing
14424 loop.
14425 (lower_omp_for_scan): Handle worksharing loop composited with simd.
14426
14427 * omp-low.c (omp_find_scan): Make static.
14428 (lower_omp_for_scan): Fix order of merge arguments in input phase of
14429 the second loop, var2 represents the first partial sum and so needs
14430 to go before rprivb[ivar].
14431
14432 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
14433
14434 * config/rs6000/rs6000-logue.c: Remove unused code.
14435
14436 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
14437
14438 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
14439
14440 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
14441
14442 PR target/90712
14443 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
14444 check with a frame laid out check.
14445
14446 2019-07-05 Richard Biener <rguenther@suse.de>
14447
14448 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
14449 when comparing against a store with possibly the same value.
14450
14451 2019-07-05 Richard Biener <rguenther@suse.de>
14452
14453 PR tree-optimization/91091
14454 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
14455 (walk_non_aliased_vuses): Likewise.
14456 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
14457 (get_continuation_for_phi): New tbaa_p parameter and pass
14458 it down.
14459 (walk_non_aliased_vuses): Likewise.
14460 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
14461 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
14462 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
14463 Likewise.
14464 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
14465 (adjust_offsets_for_equal_base_address): New function.
14466 (vn_reference_lookup_3): Use it to catch more base equivalences.
14467 Handle and pass down tbaa_p flag.
14468 (vn_reference_lookup_pieces): Adjust.
14469 (vn_reference_lookup): Remove alias-set altering, instead pass
14470 down false as tbaa_p.
14471
14472 2019-07-05 Richard Biener <rguenther@suse.de>
14473
14474 PR tree-optimization/91091
14475 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
14476 accesses can happen with -fno-strict-aliasing.
14477
14478 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
14479
14480 * tree-ssa-alias.c (alias_stats): Add
14481 nonoverlapping_component_refs_since_match_p_must_overlap.
14482 (dump_alias_stats): Print it.
14483 (nonoverlapping_component_refs_since_match_p): Add early exit.
14484 (nonoverlapping_component_refs_p): Do not account early exit.
14485
14486 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
14487
14488 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
14489 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
14490 (emit_eh_dispatch): Delete.
14491 (lower_catch): Emit the eh_dispatch manually and set the location of
14492 the first catch statement onto it.
14493 (lower_eh_filter): Emit the eh_dispatch manually and set location.
14494 (lower_eh_dispatch): Propagate location.
14495 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
14496 (eliminate_build): Likewise.
14497
14498 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
14499
14500 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
14501 phi nodes if possible.
14502 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
14503 location info on the newly created statement.
14504 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
14505 newly created increment if needed.
14506
14507 2019-07-04 Jakub Jelinek <jakub@redhat.com>
14508
14509 PR middle-end/78884
14510 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
14511 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
14512 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
14513 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
14514 ctx->add_safelen1 is set.
14515
14516 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
14517 GOMP_loop_start at the start of second worksharing loop in a scan.
14518 For nowait, don't emit GOMP_loop_end_nowait at the end of first
14519 worksharing loop in a scan even if there are conditional lastprivates,
14520 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
14521
14522 2019-07-04 Jan Hubicka <jh@suse.cz>
14523
14524 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
14525 Fix check for match in the ref walk.
14526
14527 2019-07-04 Martin Liska <mliska@suse.cz>
14528
14529 * tree-ssa-loop-niter.c
14530 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
14531 (estimate_numbers_of_iterations):
14532 Support __builtin_expect_with_probability for analysis
14533 of # of loop iterations.
14534
14535 2019-07-04 Alexandre Oliva <oliva@adacore.com>
14536
14537 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
14538 * except.c: Likewise.
14539 * expr.c (expand_expr_real_1): Reject it.
14540 * gimplify.c (gimplify_expr): Gimplify it, within
14541 TRY_FINALLY_EXPR.
14542 * tree-dump.c (dequeue_and_dump): Dump it.
14543 * tree-pretty-print.c (dump_generic_node): Likewise.
14544 * tree.c (block_may_fallthru): Handle it.
14545 * tree.def (EH_ELSE_EXPR): Introduce it.
14546 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
14547 with GIMPLE_EH_ELSE as try/finally/else.
14548
14549 2019-07-04 Richard Biener <rguenther@suse.de>
14550
14551 PR ipa/91062
14552 * tree-pass.h (execute_all_ipa_transforms): Add a flag
14553 parameter whether to disable GC collection.
14554 * passes.c (execute_one_ipa_transform_pass): Likewise, and
14555 honor it.
14556 (execute_all_ipa_transforms): Likewise and pass it down.
14557 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
14558 collection from applying IPA transforms.
14559 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
14560 from applying IPA transforms.
14561
14562 2019-07-04 Richard Biener <rguenther@suse.de>
14563
14564 PR tree-optimization/90911
14565 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
14566 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
14567 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
14568 scalar_loop_scaling.
14569 (vect_transform_loop): Scale scalar loop profile if needed.
14570 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
14571 the loop copy from if-conversion adjust edge probabilities
14572 and scale the vectorized loop body profile, queue the scalar
14573 profile for updating after peeling.
14574
14575 2019-07-04 Jan Hubicka <jh@suse.cz>
14576
14577 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
14578 parameters; return early for must-alias.
14579 (indirect_ref_may_alias_decl_p): Likewise; when establishing
14580 outer types match, try nonoverlapping_component_refs
14581 if must-alias is not obvious.
14582 (indirect_refs_may_alias_p): Likewise.
14583 (refs_may_alias_p_2): Likewise.
14584
14585 2019-07-04 Richard Biener <rguenther@suse.de>
14586
14587 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
14588 argument.
14589 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
14590 globals into...
14591 (struct vn_walk_cb_data): New callback data struct.
14592 (vn_reference_lookup_2): Adjust.
14593 (vn_reference_lookup_3): Likewise.
14594 (vn_reference_lookup_pieces): Likewise.
14595 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
14596 (visit_reference_op_load): Adjust.
14597
14598 2019-07-04 Jakub Jelinek <jakub@redhat.com>
14599
14600 PR tree-optimization/91063
14601 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
14602 stmt from stmts sequence before calling vect_init_vector_1.
14603 Formatting fix.
14604
14605 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14606
14607 PR target/88833
14608 * fwprop.c (reg_single_def_p): New function.
14609 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
14610 (forward_propagate_into): New parameter reg_prop_only
14611 with default value false.
14612 Propagate def's src into loop only if SET_SRC and SET_DEST
14613 of def_set have single definitions.
14614 Likewise if reg_prop_only is set to true.
14615 (fwprop): New param fwprop_addr_p.
14616 Integrate fwprop_addr into fwprop.
14617 (fwprop_addr): Remove.
14618 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
14619 to true.
14620 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
14621 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
14622 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
14623
14624 2019-07-04 Jakub Jelinek <jakub@redhat.com>
14625
14626 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
14627 in worksharing loop scans.
14628
14629 PR tree-optimization/91074
14630 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
14631 temporary.
14632
14633 PR rtl-optimization/90756
14634 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
14635 for VECTOR_TYPE_P.
14636
14637 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
14638
14639 * config/aarch64/aarch64.md: Remove redundant constraints from
14640 define_expand but keep some patterns untouched if they are
14641 specially selected by TARGET_SECONDARY_RELOAD hook.
14642 * config/aarch64/aarch64-sve.md: Likewise.
14643 * config/aarch64/atomics.md: Remove redundant constraints from
14644 define_expand.
14645 * config/aarch64/aarch64-simd.md: Likewise.
14646
14647 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
14648
14649 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
14650 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
14651 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
14652 clauses.
14653 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
14654 DARWIN_NOPIE_SPEC.
14655
14656 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
14657
14658 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
14659 (STARTFILE_SPEC): Split crt3 into a separate spec.
14660 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
14661 (DARWIN_CRT2_SPEC): New.
14662 (DARWIN_CRT3_SPEC): New.
14663 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
14664 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
14665 (DARWIN_CRT3_SPEC): New.
14666
14667 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
14668
14669 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
14670 Change the RTL attribute "length" from "4" to "*" to allow the
14671 length attribute to be adjusted automatically for prefixed load,
14672 store, and add immediate instructions.
14673 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
14674 Likewise.
14675 (extendsi<mode>2, EXTSI iterator): Likewise.
14676 (movsi_internal1): Likewise.
14677 (movsi_from_sf): Likewise.
14678 (movdi_from_sf_zero_ext): Likewise.
14679 (mov<mode>_internal): Likewise.
14680 (movcc_internal1, QHI iterator): Likewise.
14681 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
14682 (movsf_from_si): Likewise.
14683 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
14684 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
14685 (mov<mode>, FMOVE128 iterator): Likewise.
14686 (movdi_internal64): Likewise.
14687 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
14688 Likewise.
14689 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
14690 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
14691 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
14692 (vsx_splat_v4sf): Likewise.
14693
14694 2019-07-03 Mark Wielaard <mark@klomp.org>
14695
14696 PR debug/90981
14697 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
14698 DW_AT_addr_base if there is actually a .debug_addr section with
14699 addresses.
14700 (output_addr_table): Add DWARF5 table header generation here after
14701 checking there are actually any addresses from...
14702 (dwarf2out_finish): ...here.
14703
14704 2019-07-03 Richard Biener <rguenther@suse.de>
14705
14706 PR middle-end/91069
14707 * match.pd (vec_perm -> bit_insert): Fix element read from
14708 first vector.
14709
14710 2019-07-03 Martin Liska <mliska@suse.cz>
14711
14712 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
14713 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
14714 condition.
14715 * generic-match-head.c: Include dbgcnt.h.
14716 * gimple-match-head.c: Likewise.
14717
14718 2019-07-03 Martin Liska <mliska@suse.cz>
14719
14720 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
14721 (GCOV_COUNTER_V_TOPN): New.
14722 (GCOV_COUNTER_V_INDIR): Use _topn.
14723 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
14724 (GCOV_TOPN_VALUES): New.
14725 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
14726 (GCOV_TOPN_VALUES_COUNTERS): New.
14727 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
14728 * tree-profile.c:
14729 (gimple_init_gcov_profiler): Rename variables from one_value
14730 to topn_values.
14731 (gimple_gen_one_value_profiler): Remove.
14732 (gimple_gen_topn_values_profiler): New function.
14733 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
14734 names instead of SINGLE_VALUE.
14735 (stream_out_histogram_value): Likewise.
14736 (stream_in_histogram_value): Likewise.
14737 (get_most_common_single_value): Likewise.
14738 (gimple_divmod_fixed_value_transform): Likewise.
14739 (gimple_stringops_transform): Likewise.
14740 (gimple_divmod_values_to_profile): Likewise.
14741 (gimple_stringops_values_to_profile): Likewise.
14742 (gimple_find_values_to_profile): Likewise.
14743 * value-prof.h (enum hist_type): Rename to TOPN.
14744 (gimple_gen_one_value_profiler): Remove.
14745 (gimple_gen_topn_values_profiler): New.
14746
14747 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
14748
14749 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
14750 if it has the DW_AT_data_member_location attribute.
14751
14752 2019-07-03 Richard Biener <rguenther@suse.de>
14753
14754 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
14755 dumping.
14756
14757 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
14758
14759 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
14760 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
14761 (tlsdesc_small_sve_<mode>): Likewise.
14762
14763 2019-07-03 Martin Liska <mliska@suse.cz>
14764
14765 * Makefile.in: Define ZSTD_LIB.
14766 * common.opt: Adjust compression level
14767 to support also zstd levels.
14768 * config.in: Regenerate.
14769 * configure: Likewise.
14770 * configure.ac: Add --with-zstd and --with-zstd-include options
14771 and detect ZSTD.
14772 * doc/install.texi: Mention zstd dependency.
14773 * gcc.c: Print supported LTO compression algorithms.
14774 * lto-compress.c (lto_normalized_zstd_level): Likewise.
14775 (lto_compression_zstd): Likewise.
14776 (lto_uncompression_zstd): Likewise.
14777 (lto_end_compression): Dispatch in between zlib and zstd.
14778 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
14779 (lto_uncompression_zlib): Make it static.
14780 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
14781 * lto-section-in.c (lto_get_section_data): Pass info
14782 about used compression.
14783 * lto-streamer-out.c: By default use zstd when possible.
14784 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
14785 (TV_IPA_LTO_COMPRESS): Likewise for compression.
14786
14787 2019-07-03 Martin Liska <mliska@suse.cz>
14788
14789 * lto-section-in.c (lto_get_section_data): Add "lto" section.
14790 * lto-section-out.c (lto_destroy_simple_output_block): Never
14791 compress LTO_section_lto section.
14792 * lto-streamer-out.c (produce_asm): Do not set major_version
14793 and minor_version.
14794 (lto_output_toplevel_asms): Likewise.
14795 (produce_lto_section): New function.
14796 (lto_output): Call produce_lto_section.
14797 (lto_write_mode_table): Do not set major_version and
14798 minor_version.
14799 (produce_asm_for_decls): Likewise.
14800 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
14801 type.
14802 (struct lto_header): Remove.
14803 (struct lto_section): New struct.
14804 (struct lto_simple_header): Do not inherit from lto_header.
14805 (struct lto_file_decl_data): Add lto_section_header field.
14806
14807 2019-07-03 Martin Liska <mliska@suse.cz>
14808
14809 * lra-eliminations.c (eliminate_regs_in_insn): Remove
14810 dead assignemts.
14811 * reg-stack.c (check_asm_stack_operands): Likewise.
14812 * tree-ssa-structalias.c (create_function_info_for): Likewise.
14813 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
14814 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
14815 force_expand_binop.
14816
14817 2019-07-03 Martin Liska <mliska@suse.cz>
14818
14819 PR tree-optimization/90892
14820 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
14821 in string constants.
14822
14823 2019-07-03 Martin Liska <mliska@suse.cz>
14824
14825 PR middle-end/90899
14826 * multiple_target.c (create_dispatcher_calls): Add to comdat
14827 group only if set for ifunc.
14828
14829 2019-07-03 Martin Liska <mliska@suse.cz>
14830
14831 PR target/88056
14832 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
14833 Define local_object_name in outer scope in order to handle
14834 use-after-scope issue.
14835
14836 2019-07-03 Martin Liska <mliska@suse.cz>
14837
14838 * common.opt: Add fprofile-note.
14839 * coverage.c (coverage_init): Append the option
14840 to bbg_file_name.
14841 * doc/invoke.texi: Document -fprofile-note.
14842
14843 2019-07-03 Jakub Jelinek <jakub@redhat.com>
14844
14845 PR tree-optimization/91033
14846 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
14847 vect_analyze_data_refs): Add bool * arguments.
14848 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
14849 if failure is due to scatter/gather, set *fatal to false if non-NULL.
14850 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
14851 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
14852 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
14853 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
14854 vect_analyze_data_refs caller.
14855
14856 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
14857 clause.
14858 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
14859 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
14860 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
14861 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
14862 OMP_CLAUSE__SCANTEMP_ entry.
14863 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
14864 * tree-pretty-print.c (dump_omp_clause): Likewise.
14865 * tree-nested.c (convert_nonlocal_omp_clauses,
14866 convert_local_omp_clauses): Likewise.
14867 * omp-general.h (struct omp_for_data): Add have_scantemp and
14868 have_nonctrl_scantemp members.
14869 * omp-general.c (omp_extract_for_data): Initialize them.
14870 * omp-low.c (struct omp_context): Add scan_exclusive member.
14871 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
14872 result again with GF_OMP_FOR_KIND_MASK. Initialize also
14873 ctx->scan_exclusive.
14874 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
14875 of !ctx->scan_inclusive.
14876 (lower_rec_input_clauses): Simplify gimplification of dtors using
14877 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
14878 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
14879 loops. Don't add barrier for reduction_omp_orig_ref if
14880 ctx->scan_??xclusive.
14881 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
14882 (lower_omp_scan): Use ctx->scan_exclusive instead
14883 of !ctx->scan_inclusive. Handle worksharing loops with inscan
14884 reductions. Use new_vard != new_var instead of repeated
14885 omp_is_reference calls.
14886 (omp_find_scan, lower_omp_for_scan): New functions.
14887 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
14888 inscan reductions.
14889 * omp-expand.c (expand_omp_scantemp_alloc): New function.
14890 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
14891 and fd->have_scantemp.
14892
14893 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
14894 on worksharing loop propagate it as shared clause to containing
14895 combined parallel.
14896
14897 * omp-expand.c (expand_omp_for_static_nochunk,
14898 expand_omp_for_static_chunk): For nowait worksharing loop with
14899 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
14900 at the end.
14901
14902 2019-07-02 qing zhao <qing.zhao@oracle.com>
14903
14904 PR preprocessor/90581
14905 * doc/cppopts.texi: Add document for -fmax-include-depth.
14906 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
14907
14908 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
14909
14910 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
14911 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
14912 (mmx_packssdw): Ditto.
14913 (mmx_punpckhbw): Ditto.
14914 (mmx_punpcklbw): Ditto.
14915 (mmx_punpckhwd): Ditto.
14916 (mmx_punpcklwd): Ditto.
14917 (mmx_punpckhdq): Ditto.
14918 (mmx_punpckldq): Ditto.
14919 (*vec_dupv4hi): Ditto.
14920 (*vec_dupv2si): Ditto.
14921 (mmx_pmovmskb): Ditto.
14922 * config/i386/sse.md (sse_cvtpi2ps): Use
14923 TARGET_SSE2 && SSE_REG_P in split condition.
14924 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
14925 TARGET_SSSE3 && SSE_REGNO_P in split condition.
14926 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
14927 (ssse3_pshufbv8qi3): Ditto.
14928 (ssse3_palignrdi): Ditto.
14929
14930 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
14931
14932 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
14933 with inlined save and restore.
14934
14935 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
14936
14937 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
14938 to be inserted on single successor edge of the entry block. Then call
14939 commit_edge_insertions instead of inserting the instructions manually.
14940 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
14941 RTL expansion and rebuild jump labels chain.
14942
14943 2019-07-02 Richard Biener <rguenther@suse.de>
14944
14945 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
14946 TI_CHREC_KNOWN.
14947 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
14948 Define here.
14949 * tree.c (build_common_tree_nodes): Initialize them.
14950 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
14951 Make declarations comments.
14952 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
14953 chrec_known): Remove definitions.
14954 (initialize_scalar_evolutions_analyzer): Remove.
14955 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
14956 * tree-streamer.c (preload_common_nodes): Do not preload
14957 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
14958
14959 2019-07-02 Jan Hubicka <jh@suse.cz>
14960
14961 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
14962 sanity check.
14963
14964 2019-07-02 Jan Hubicka <jh@suse.cz>
14965
14966 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
14967 to ..
14968 (nonoverlapping_component_refs_since_match_p): ... this one;
14969 handle also non-decl bases; return -1 if search gave up.
14970 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
14971 nonoverlapping_component_refs_of_decl_p_no_alias to
14972 nonoverlapping_component_refs_since_match_p_may_alias,
14973 nonoverlapping_component_refs_since_match_p_no_alias.
14974 (dump_alias_stats): Update dumping.
14975 (aliasing_matching_component_refs_p): Break out from ...;
14976 dispatch to nonoverlapping_component_refs_for_decl_p
14977 and nonoverlapping_component_refs_since_match_p.
14978 (aliasing_component_refs_p): ... here; call
14979 nonoverlapping_component_refs_p in scenarios where we can not
14980 precisely determine base match.
14981 (decl_refs_may_alias_p): Use
14982 nonoverlapping_component_refs_since_match_p.
14983 (indirect_ref_may_alias_decl_p): Do not call
14984 nonoverlapping_component_refs_p.
14985 (indirect_refs_may_alias_p): Likewise.
14986
14987 2019-07-02 Jan Hubicka <jh@suse.cz>
14988
14989 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
14990 to clobber of return value.
14991
14992 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14993
14994 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
14995 for is_neon_type instructions that have not already been categorized.
14996
14997 2019-07-02 Richard Biener <rguenther@suse.de>
14998
14999 PR tree-optimization/58483
15000 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
15001 for MEM_REF base hashing.
15002 (equal_mem_array_ref_p): Likewise for base comparison.
15003
15004 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
15005
15006 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
15007 parameterized name.
15008 (signbit<mode>2): Use that name. Simplify.
15009
15010 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
15011
15012 PR middle-end/66726
15013 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
15014 Tune heuristic from PR71016 to allow MIN / MAX.
15015
15016 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
15017
15018 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
15019 parameterized name.
15020 (abs<mode>2): Use that name. Simplify.
15021
15022 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
15023
15024 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
15025 parameterized name.
15026 (neg<mode>2): Use that name. Simplify.
15027
15028 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
15029
15030 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
15031 name.
15032 (abs<mode>2): Use that name. Simplify.
15033
15034 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
15035
15036 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
15037 name.
15038 (neg<mode>2): Use that name. Simplify.
15039
15040 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
15041
15042 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
15043 ("enabled" attribute): Handle sse_noavx isa attribute.
15044 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
15045 Use TARGET_SSE && SSE_REGNO_P in split condition.
15046 (*vec_dupv2sf): Ditto.
15047
15048 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
15049
15050 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
15051 name.
15052 (floatsi<mode>2): Use that name. Simplify.
15053
15054 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
15055
15056 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
15057 parameterized name.
15058 (extenddf<mode>2_vsx): Make this a parameterized name.
15059 (extenddf<mode>2): Use those names. Simplify.
15060
15061 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
15062
15063 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
15064 name.
15065 (eh_return): Use that name. Simplify.
15066
15067 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
15068
15069 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
15070 (doloop_end): Use that name. Simplify.
15071
15072 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
15073
15074 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
15075 parameterized name.
15076 (indirect_jump): Use that name. Simplify.
15077
15078 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
15079
15080 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
15081 parameterized name.
15082 (abs<mode>2): Use that name. Simplify.
15083
15084 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
15085
15086 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
15087 parameterized name.
15088 (fix_trunc<mode>si2): Use that name. Simplify.
15089
15090 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
15091
15092 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
15093 (allocate_stack): Use that name. Simplify.
15094
15095 2019-07-01 Martin Sebor <msebor@redhat.com>
15096
15097 PR middle-end/90923
15098 * hash-map.h (hash_map::put): On insertion invoke element ctor.
15099 (hash_map::get_or_insert): Same. Reformat comment.
15100 * hash-set.h (hash_set::add): On insertion invoke element ctor.
15101 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
15102 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
15103 * hash-table.h (hash_table::operator=): Prevent copy assignment.
15104 (hash_table::hash_table (const hash_table&)): Use copy ctor
15105 instead of assignment to copy elements.
15106
15107 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
15108 John David Anglin <danglin@gcc.gnu.org>
15109
15110 PR target/90963
15111 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
15112 using saved frame pointer.
15113
15114 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
15115
15116 PR middle-end/64242
15117 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
15118 Add frame clobber and schedule blockage.
15119
15120 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
15121
15122 * doc/invoke.texi (Link Options): Further editorial changes to
15123 -flinker-output docs.
15124
15125 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
15126
15127 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
15128 Load both operands of a PLUS into registers separately.
15129
15130 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
15131
15132 * config/s390/vector.md: Fix shift count operand printing.
15133
15134 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
15135
15136 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
15137
15138 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
15139
15140 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
15141 Use recog_data to test for an output operand.
15142
15143 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
15144
15145 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
15146 exclude any others that are disparaged or that are bound to need
15147 a reload or spill.
15148 (ira_get_dup_out_num): Expand comment.
15149
15150 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
15151
15152 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
15153 constraint string for each operand/alternative combo. Only handle
15154 '%' at the start of constraint strings, and look for it outside
15155 the main loop.
15156
15157 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
15158
15159 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
15160 alternative_mask instead of HARD_REG_SET to represent a
15161 bitmask of alternatives.
15162 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
15163 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
15164
15165 2019-07-01 Martin Liska <mliska@suse.cz>
15166
15167 * edit-context.c (test_applying_fixits_unreadable_file): Do not
15168 use () for a constructor call.
15169 (test_applying_fixits_line_out_of_range): Likewise.
15170 * ggc-page.c (alloc_page): Use (void *) for %p printf format
15171 argument.
15172 (free_page): Likewise.
15173
15174 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
15175
15176 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
15177 parameter names to match usage (no functional change).
15178 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
15179
15180 2019-07-01 Richard Biener <rguenther@suse.de>
15181
15182 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
15183 pass parameter.
15184 (pass_fre::execute): Honor it.
15185 * passes.def: Adjust pass_fre invocations to allow iterating,
15186 add non-iterating pass_fre before late threading/dom.
15187
15188 2019-07-01 Richard Biener <rguenther@suse.de>
15189
15190 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
15191 TARGET_MEM_REF handling to also handle address-taken ones.
15192
15193 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
15194
15195 * doc/sourcebuild.texi (Effective-Target Keywords, Other
15196 hardware attributes): Document avx512vp2intersect.
15197
15198 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
15199
15200 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
15201 (abs<mode>2): New expander.
15202 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
15203 Use CODE_FOR_ssse3_absv8qi2.
15204 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
15205 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
15206
15207 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
15208
15209 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
15210 to sse, sse_noavx and avx. Update all uses.
15211
15212 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
15213
15214 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
15215 (*mmx_<plusminus_insn><mode>3): Ditto.
15216 (*mmx_mulv4hi3"): Ditto.
15217 (*mmx_smulv4hi3_highpart): Ditto.
15218 (*mmx_umulv4hi3_highpart): Ditto.
15219 (*mmx_pmaddwd): Ditto.
15220 (*sse2_umulv1siv1di3): Ditto.
15221 (*mmx_<code>v4hi3): Ditto.
15222 (*mmx_<code>v8qi3): Ditto.
15223 (mmx_ashr<mode>3): Ditto.
15224 ("mmx_<shift_insn><mode>3): Ditto.
15225 (*mmx_eq<mode>3): Ditto.
15226 (mmx_gt<mode>3): Ditto.
15227 (mmx_andnot<mode>3): Ditto.
15228 (*mmx_<code><mode>3): Ditto.
15229 (*mmx_pinsrw): Ditto.
15230 (*mmx_pextrw): Ditto.
15231 (mmx_pshufw_1): Ditto.
15232 (*mmx_uavgv8qi3): Ditto.
15233 (*mmx_uavgv4hi3): Ditto.
15234 ("mmx_psadbw): Ditto.
15235 * config/i386/sse.md (sse_cvtps2pi): Ditto.
15236 (sse_cvttps2pi): Ditto.
15237 (ssse3_pmaddubsw): Ditto.
15238 (*ssse3_pmulhrswv4hi3): Ditto.
15239 (ssse3_psign<mode>3): Ditto.
15240
15241 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
15242
15243 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
15244 adjustment for bit-fields to all aggregate types.
15245
15246 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
15247
15248 * config/rs6000/predicates.md (pcrel_address): Use
15249 SYMBOL_REF_LOCAL_P to determine if a label is local.
15250 (pcrel_external_address): New predicate.
15251 (non_prefixed_mem_operand): Delete, predicate not used.
15252 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
15253 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
15254 addressing.
15255 (SYMBOL_REF_PCREL_P): Likewise.
15256
15257 PR target/91009
15258 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
15259 alternative.
15260 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
15261 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
15262 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
15263
15264 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
15265
15266 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
15267 override on extra_headers.
15268
15269 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
15270
15271 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
15272 * config/darwin-driver.c (darwin_default_min_version): Remove newline
15273 from warning.
15274 (darwin_driver_init): Likewise.
15275
15276 2019-06-28 Jan Beulich <jbeulich@suse.com>
15277
15278 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
15279 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
15280 Eliminate redundant alternative.
15281
15282 2019-06-28 Jan Beulich <jbeulich@suse.com>
15283
15284 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
15285 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
15286 Use vector_operand.
15287
15288 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
15289
15290 * config/arc/arc.c (arc_rtx_costs): All short instructions are
15291 having a lower cost regardless of the speed option.
15292
15293 2019-06-28 Jan Beulich <jbeulich@suse.com>
15294
15295 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
15296 vector_operand plus, on both alternatives, "Bm" constraint.
15297
15298 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
15299
15300 * config/arm/arm.md: Remove redundant constraints from
15301 define_expand but leave reload_inm and reload_outm patterns
15302 untouched since they need special constraints to work.
15303 * config/arm/arm-fixed.md: Remove redundant constraints from
15304 define_expand.
15305 * config/arm/iwmmxt.md: Likewise.
15306 * config/arm/neon.md: Likewise.
15307 * config/arm/sync.md: Likewise.
15308 * config/arm/thumb1.md: Likewise.
15309 * config/arm/vec-common.md: Likewise.
15310
15311 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
15312
15313 * doc/install.texi: Document --disable-tm-clone-registry.
15314
15315 2019-06-27 Jakub Jelinek <jakub@redhat.com>
15316
15317 PR c++/91024
15318 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
15319 statements.
15320
15321 PR tree-optimization/91010
15322 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
15323 return true. Otherwise, don't call operand_equal_p if offset1 or
15324 offset2 is NULL and just return false.
15325
15326 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
15327
15328 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
15329 user-specified float mode choice for kernel mode code.
15330
15331 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
15332
15333 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
15334 spec.
15335
15336 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
15337
15338 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
15339 use longcall for 64b code.
15340
15341 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
15342
15343 * builtins.c (get_memory_rtx): Fix comment.
15344 * optabs.def (movmem_optab): Change to cpymem_optab.
15345 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
15346 (emit_block_move_hints): Change movmem to cpymem.
15347 * defaults.h: Change movmem to cpymem.
15348 * targhooks.c (get_move_ratio): Change movmem to cpymem.
15349 (default_use_by_pieces_infrastructure_p): Ditto.
15350 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
15351 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
15352 to cpymem.
15353 * config/aarch64/aarch64.h: Change movmem to cpymem.
15354 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
15355 * config/alpha/alpha.h: Change movmem to cpymem in comment.
15356 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
15357 movmem to cpymem.
15358 * config/arc/arc-protos.h: Change movmem to cpymem.
15359 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
15360 * config/arc/arc.h: Change movmem to cpymem in comment.
15361 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
15362 * config/arm/arm-protos.h: Change movmem to cpymem in names.
15363 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
15364 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
15365 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
15366 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
15367 * config/avr/avr-protos.h: Change movmem to cpymem.
15368 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
15369 avr_out_movmem): Change movmem to cpymem.
15370 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
15371 Change movmem to cpymem.
15372 * config/bfin/bfin-protos.h: Change movmem to cpymem.
15373 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
15374 Change movmem to cpymem.
15375 * config/bfin/bfin.h: Change movmem to cpymem in comment.
15376 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
15377 * config/c6x/c6x-protos.h: Change movmem to cpymem.
15378 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
15379 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
15380 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
15381 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
15382 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
15383 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
15384 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
15385 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
15386 expand_small_cpymem_or_setmem,
15387 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
15388 expand_set_or_cpymem_constant_prologue,
15389 ix86_expand_set_or_cpymem): Change movmem to cpymem.
15390 * config/i386/i386-protos.h: Change movmem to cpymem.
15391 * config/i386/i386.h: Change movmem to cpymem in comment.
15392 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
15393 (setmem<mode>): Change expansion function name.
15394 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
15395 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
15396 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
15397 * config/m32c/m32c-protos.h: Change movmem to cpymem.
15398 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
15399 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
15400 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
15401 to cpymem.
15402 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
15403 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
15404 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
15405 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
15406 Change movmem to cpymem.
15407 * config/mips/mips.h: Change movmem to cpymem.
15408 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
15409 * config/nds32/nds32-memory-manipulation.c
15410 (nds32_expand_movmemsi_loop_unknown_size,
15411 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
15412 nds32_expand_movmemsi_unroll,
15413 nds32_expand_movmemsi): Change movmem to cpymem.
15414 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
15415 * config/nds32/nds32-protos.h: Change movmem to cpymem.
15416 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
15417 (pa_adjust_insn_length): Change call to compute_movmem_length.
15418 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
15419 movmemdi, movmemdi_prereload,
15420 movmemdi_postreload): Change movmem to cpymem.
15421 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
15422 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
15423 * config/riscv/riscv.c: Change movmem to cpymem in comment.
15424 * config/riscv/riscv.h: Change movmem to cpymem.
15425 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
15426 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
15427 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
15428 movmem to cpymem.
15429 * config/s390/s390-protos.h: Change movmem to cpymem.
15430 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
15431 s390_expand_insv): Change movmem to cpymem.
15432 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
15433 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
15434 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
15435 * config/sparc/sparc.h: Change movmem to cpymem in comment.
15436 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
15437 for nonexistent function.
15438 * config/vax/vax.h: Change movmem to cpymem in comment.
15439 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
15440 * config/visium/visium.h: Change movmem to cpymem in comment.
15441 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
15442 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
15443 * doc/md.texi: Change movmem to cpymem and update description to match.
15444 * doc/rtl.texi: Change movmem to cpymem.
15445 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
15446 * doc/tm.texi: Regenerate.
15447
15448 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
15449
15450 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
15451 -fvariable-expansion-in-unroller by default.
15452 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
15453 default for Power.
15454
15455 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
15456
15457 Revert
15458 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
15459 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
15460
15461 * config.gcc(rs6000-*-*): Define target_gtfiles.
15462
15463 2019-06-27 Jan Hubicka <jh@suse.cz>
15464
15465 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
15466 (add_type_duplicate): When odr hash is not allocated, to nothing.
15467 (odr_based_tbaa_p): New function.
15468 (set_type_canonical_for_odr_type): New function.
15469 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
15470 set_type_canonical_for_odr_type): New.
15471 * tree.c (gimple_canonical_types_compatible_p): ODR types with
15472 ODR based TBAA are not equivalent to non-ODR types.
15473
15474 2019-06-27 Martin Liska <mliska@suse.cz>
15475
15476 PR tree-optimization/90974
15477 PR rtl-optimization/90975
15478 PR rtl-optimization/90976
15479 PR target/91016
15480 PR tree-optimization/91017
15481 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
15482 unused tmp.
15483 * lra.c (lra_set_insn_recog_data): Remove a leftover from
15484 initial commit of IRA.
15485 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
15486 of op0 and op1.
15487 * tree-vect-loop.c (vect_create_epilog_for_reduction):
15488 Remove unused mode1.
15489 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
15490 to new_stmt_info.
15491
15492 2019-06-27 Jakub Jelinek <jakub@redhat.com>
15493
15494 PR target/90991
15495 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
15496 instead of register_operand for operands[1], add m to its constraints
15497 if operands[2] uses "C" constraint. Ensure in condition that if
15498 operands[2] is not 0, then operands[1] is not a MEM. For last two
15499 alternatives, use unaligned loads instead of aligned if operands[1] is
15500 misaligned_operand.
15501
15502 2019-06-27 Martin Liska <mliska@suse.cz>
15503
15504 * asan.c (asan_emit_allocas_unpoison): Remove obviously
15505 dead assignments.
15506 * bt-load.c (move_btr_def): Likewise.
15507 * builtins.c (expand_builtin_apply_args_1): Likewise.
15508 (expand_builtin_apply): Likewise.
15509 * cfgexpand.c (expand_asm_stmt): Likewise.
15510 (construct_init_block): Likewise.
15511 * cfghooks.c (verify_flow_info): Likewise.
15512 * cfgloopmanip.c (remove_path): Likewise.
15513 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
15514 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
15515 * combine.c (simplify_if_then_else): Likewise.
15516 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
15517 (choose_basereg): Likewise.
15518 (ix86_expand_prologue): Likewise.
15519 (ix86_preferred_output_reload_class): Likewise.
15520 * cselib.c (cselib_record_sets): Likewise.
15521 * df-scan.c (df_scan_alloc): Likewise.
15522 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
15523 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
15524 * emit-rtl.c (try_split): Likewise.
15525 * graphite-scop-detection.c (assign_parameter_index_in_region):
15526 Likewise.
15527 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
15528 * ira-color.c (setup_profitable_hard_regs): Likewise.
15529 * ira.c (rtx_moveable_p): Likewise.
15530 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
15531 * read-rtl.c (read_subst_mapping): Likewise.
15532 * regrename.c (scan_rtx): Likewise.
15533 * reorg.c (fill_slots_from_thread): Likewise.
15534 * tree-inline.c (tree_function_versioning): Likewise.
15535 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
15536 * tree-ssa-sink.c (statement_sink_location): Likewise.
15537 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
15538 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
15539 (vect_create_epilog_for_reduction): Likewise.
15540 * tree.c (build_nonstandard_integer_type): Likewise.
15541
15542 2019-06-27 Richard Biener <rguenther@suse.de>
15543
15544 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
15545
15546 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
15547
15548 PR tree-optimization/89772
15549 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
15550 out-of-bound accesses checking.
15551
15552 2019-06-27 Martin Liska <mliska@suse.cz>
15553
15554 PR tree-optimization/91014
15555 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
15556 when LHS is NULL_TREE.
15557
15558 2019-06-27 Martin Liska <mliska@suse.cz>
15559
15560 * symbol-summary.h (traverse): Pass
15561 argument a to the call of callback.
15562 (gt_ggc_mx): Mark arguments as unused.
15563 (gt_pch_nx): Likewise.
15564
15565 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
15566
15567 PR target/62147
15568 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
15569 finiteness.
15570
15571 2019-06-26 Jeff Law <law@redhat.com>
15572
15573 PR tree-optimization/90883
15574 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
15575 (delete_dead_or_redundant_assignment): Likewise.
15576
15577 PR tree-optimization/90883
15578 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
15579 * tree-ssa-dse.c: Update various comments to distinguish between
15580 dead and redundant stores.
15581 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
15582 (dse_optimize_redundant_stores): New function.
15583 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
15584 Distinguish between dead and redundant calls in dump output. All
15585 callers updated.
15586 (delete_dead_or_redundant_assignment): Similarly for assignments.
15587 (dse_optimize_stmt): Handle _CHK variants. For statements which
15588 store 0 into multiple memory locations, try to prove a subsequent
15589 store is redundant.
15590
15591 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
15592
15593 PR target/89021
15594 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
15595 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
15596
15597 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
15598
15599 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
15600 (branch_islands): New extern.
15601 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
15602 * config/rs6000/rs6000.c: .. here.
15603
15604 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
15605
15606 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
15607 (powerpc*-*-*) ... to here.
15608
15609 2019-06-26 Jeff Law <law@redhat.com>
15610
15611 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
15612 memcpy, memmove and memset builtins.
15613 (maybe_trim_memstar_call): Likewise.
15614
15615 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
15616
15617 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
15618
15619 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
15620
15621 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
15622
15623 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
15624
15625 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
15626 declaration.
15627 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
15628 "static".
15629 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
15630 declaration.
15631
15632 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
15633
15634 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
15635
15636 2019-06-26 Richard Biener <rguenther@suse.de>
15637
15638 PR ipa/90982
15639 * tree-inline.c (remap_ssa_name): Copy SSA range info.
15640
15641 2019-06-26 Richard Biener <rguenther@suse.de>
15642
15643 * lto-streamer.h (lto_bitmap_alloc): Remove.
15644 (lto_bitmap_free): Likewise.
15645 * lto-streamer.c (lto_bitmap_alloc): Remove.
15646 (lto_bitmap_free): Likewise.
15647 (lto_obstack): Likewise.
15648 (lto_obstack_initialized): Likewise.
15649 * lto-streamer-out.c (lto_output): Use own obstack for local
15650 bitmap, free it consistently.
15651
15652 2019-06-26 Jakub Jelinek <jakub@redhat.com>
15653
15654 PR target/90991
15655 * config/i386/sse.md
15656 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
15657 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
15658 insns if operands[2] is misaligned_operand.
15659
15660 2019-06-26 Li Jia He <helijia@linux.ibm.com>
15661
15662 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
15663 TARGET_POWERPC64.
15664 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
15665 to GPR.
15666
15667 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
15668
15669 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
15670
15671 2019-06-26 Martin Liska <mliska@suse.cz>
15672
15673 PR tree-optimization/90973
15674 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
15675 epilogue_cost_vec instead of prologue_cost_vec for
15676 a epilogue cost.
15677
15678 2019-06-26 Martin Liska <mliska@suse.cz>
15679
15680 * bb-reorder.c (connect_better_edge_p): Add missing else
15681 statement in the middle of if-else statements.
15682
15683 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
15684 H.J. Lu <hongjiu.lu@intel.com>
15685 Olga Makhotina <olga.makhotina@intel.com>
15686
15687 * common/config/i386/i386-common.c
15688 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
15689 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
15690 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
15691 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
15692 (ix86_handle_option): Handle -mavx512vp2intersect.
15693 * config/i386/avx512vp2intersectintrin.h: New.
15694 * config/i386/avx512vp2intersectvlintrin.h: New.
15695 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
15696 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
15697 AVX512VP2INTERSECT.
15698 * config/i386/i386-builtin-types.def: Add new types.
15699 * config/i386/i386-builtin.def: Add new builtins.
15700 * config/i386/i386-builtins.c: (enum processor_features): Add
15701 F_AVX512VP2INTERSECT.
15702 (static const _isa_names_table isa_names_table): Ditto.
15703 * config/i386/i386-c.c (ix86_target_macros_internal): Define
15704 __AVX512VP2INTERSECT__.
15705 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
15706 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
15707 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
15708 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
15709 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
15710 * config/i386/i386-options.c (ix86_target_string): Add
15711 -mavx512vp2intersect.
15712 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
15713 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
15714 P2HImode and P2QImode.
15715 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
15716 number for P2QImode and P2HImode.
15717 (ix86_regmode_natural_size): New function.
15718 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
15719 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
15720 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
15721 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
15722 * config/i386/i386.opt: Add -mavx512vp2intersect.
15723 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
15724 avx512vp2intersectvlintrin.h.
15725 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
15726 (define_mode_iterator VI48_AVX512VP2VL): New.
15727 (avx512vp2intersect_2intersect<mode>,
15728 avx512vp2intersect_2intersectv16si): New define_insn patterns.
15729 * config.gcc: Add avx512vp2intersectvlintrin.h and
15730 avx512vp2intersectintrin.h to extra_headers.
15731 * doc/invoke.texi: Document -mavx512vp2intersect.
15732
15733 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
15734
15735 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
15736
15737 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
15738
15739 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
15740 savres_routine_syms, savres_routine_name, morestack_ref,
15741 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
15742 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
15743 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
15744 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
15745 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
15746 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
15747 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
15748 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
15749 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
15750 get_stack_clash_protection_probe_interval,
15751 get_stack_clash_protection_guard_size,
15752 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
15753 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
15754 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
15755 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
15756 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
15757 gen_frame_mem_offset, rs6000_savres_routine_name,
15758 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
15759 ptr_regno_for_savres, rs6000_emit_savres_rtx,
15760 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
15761 rs6000_global_entry_point_prologue_needed_p,
15762 rs6000_get_separate_components, rs6000_components_for_bb,
15763 rs6000_disqualify_components, rs6000_emit_prologue_components,
15764 rs6000_emit_epilogue_components, rs6000_set_handled_components,
15765 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
15766 rs6000_output_savres_externs, rs6000_output_function_prologue,
15767 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
15768 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
15769 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
15770 rs6000_output_function_epilogue, gen_add3_const,
15771 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
15772 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
15773 to rs6000-logue.c.
15774 (machine_function): Moved to rs6000.h.
15775 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
15776 rs6000-internal.h.
15777 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
15778 savres_routine_syms, savres_routine_name, morestack_ref,
15779 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
15780 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
15781 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
15782 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
15783 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
15784 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
15785 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
15786 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
15787 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
15788 get_stack_clash_protection_probe_interval,
15789 get_stack_clash_protection_guard_size,
15790 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
15791 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
15792 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
15793 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
15794 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
15795 gen_frame_mem_offset, rs6000_savres_routine_name,
15796 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
15797 ptr_regno_for_savres, rs6000_emit_savres_rtx,
15798 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
15799 rs6000_global_entry_point_prologue_needed_p,
15800 rs6000_get_separate_components, rs6000_components_for_bb,
15801 rs6000_disqualify_components, rs6000_emit_prologue_components,
15802 rs6000_emit_epilogue_components, rs6000_set_handled_components,
15803 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
15804 rs6000_output_savres_externs, rs6000_output_function_prologue,
15805 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
15806 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
15807 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
15808 rs6000_output_function_epilogue, gen_add3_const,
15809 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
15810 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
15811 to here from rs6000.c.
15812 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
15813 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
15814 quad_address_offset_p) Moved to here from rs6000.c.
15815 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
15816 * config/config.gcc: Add new source file rs6000-logue.c to garbage
15817 collector.
15818
15819 2019-06-25 Martin Liska <mliska@suse.cz>
15820
15821 * hash-table.c (hashtab_chk_error): Move here from ...
15822 * hash-table.h (hashtab_chk_error): ... here.
15823
15824 2019-06-25 Martin Liska <mliska@suse.cz>
15825
15826 PR tree-optimization/90978
15827 * df-scan.c (df_update_entry_block_defs): Remove dead else
15828 branch.
15829 (df_update_exit_block_uses): Likewise.
15830
15831 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
15832 Andrew Stubbs <ams@codesourcery.com>
15833
15834 * config.gcc (thread_file): Set to gcn for AMD GCN.
15835 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
15836 (TARGET_EMUTLS_VAR_INIT): New hook.
15837
15838 2019-06-25 Martin Jambor <mjambor@suse.cz>
15839
15840 PR ipa/90939
15841 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
15842
15843 2019-06-25 Richard Biener <rguenther@suse.de>
15844
15845 PR tree-optimization/90930
15846 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
15847 into parallel form in the last pass instance.
15848
15849 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
15850
15851 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
15852 (arc_legitimize_pic_address): Simplify and cleanup the function.
15853 (SYMBOLIC_CONST): Remove.
15854 (prepare_pic_move): Likewise.
15855 (prepare_move_operands): Handle complex mov cases here.
15856 (arc_legitimize_address_0): Remove call to
15857 arc_legitimize_pic_address.
15858 (arc_legitimize_address): Remove call to
15859 arc_legitimize_tls_address.
15860 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
15861 (movhi_insn): Likewise.
15862
15863 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15864
15865 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
15866 PTRDIFF_TYPE.
15867 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
15868 format of "__intN" types for UINTMAX_TYPE.
15869 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
15870 format of "__intN" types for SIZETYPE.
15871 * tree.c (build_common_tree_nodes): Accept "__intN__"
15872 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
15873 * doc/invoke.texi: Document that __intN__ disables pedantic
15874 warnings.
15875
15876 2019-06-25 Jan Hubicka <jh@suse.cz>
15877
15878 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
15879 base2_alias_set is non-zero before doing TBAA based disambiguation.
15880
15881 2019-06-25 Martin Liska <mliska@suse.cz>
15882
15883 PR tree-optimization/90973
15884 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
15885 of prologue and epilogue.
15886
15887 2019-06-24 Jan Hubicka <jh@suse.cz>
15888
15889 * ipa-utils.h (type_with_linkage_p): Verify that type is
15890 CXX_ODR_P.
15891 (odr_type_p): Remove extra return.
15892 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
15893 hash STRING_FLAG only for arrays and integers.
15894 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
15895 Update analogously.
15896 * tree-streamer-out.c (pack_ts_type_common_value_fields):
15897 Likewise.
15898 * print-tree.c (print_node): Print cxx-odr-p
15899 and string-flag.
15900 * tree.c (need_assembler_name_p): Also check that type
15901 is CXX_ODR_TYPE_P
15902 (verify_type_variant): Update verification of SRING_FLAG;
15903 also check CXX_ODR_P.
15904 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
15905 (TYPE_STRING_FLAG): Use it.
15906 (TYPE_CXX_ODR_P): New macro.
15907 * dwarf2out.c (gen_array_type_die): First check that type
15908 is an array and then test string flag.
15909
15910 2019-06-24 Richard Biener <rguenther@suse.de>
15911
15912 PR tree-optimization/90972
15913 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
15914 in common code, dealing with STRING_CST properly.
15915
15916 2019-06-24 Richard Biener <rguenther@suse.de>
15917
15918 PR tree-optimization/90930
15919 PR tree-optimization/90316
15920 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
15921 decrement of limit.
15922
15923 2019-06-24 Martin Sebor <msebor@redhat.com>
15924
15925 * tree-pretty-print.h: Remove unnecessary punctuation characters
15926 from a diagnostic.
15927 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
15928
15929 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
15930
15931 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
15932 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
15933 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
15934
15935 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
15936
15937 * config/rs6000/darwin.h: Handle GCC target pragma.
15938
15939 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
15940
15941 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
15942
15943 2019-06-22 Jeff Law <law@redhat.com>
15944
15945 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15946
15947 2019-06-22 Jan Hubicka <jh@suse.cz>
15948
15949 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
15950 give up on bitfields; continue searching for different refs
15951 appearing later.
15952
15953 2019-06-21 Jakub Jelinek <jakub@redhat.com>
15954
15955 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
15956 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
15957 containing the offset as possible simd lane access. Look through
15958 widening conversion. Move the
15959 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
15960
15961 2019-06-21 Richard Biener <rguenther@suse.de>
15962
15963 PR tree-optimization/90930
15964 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
15965 flag on new stmts to avoid re-processing them.
15966
15967 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
15968
15969 PR c++/90875 - added -Wswitch-outside-range option
15970 * doc/invoke.texi (Wswitch-outside-range): Document.
15971
15972 2019-06-21 Jeff Law <law@redhat.com>
15973
15974 PR tree-optimization/90949
15975 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
15976 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
15977
15978 2019-06-21 Richard Biener <rguenther@suse.de>
15979
15980 PR debug/90914
15981 * dwarf2out.c (prune_unused_types_walk): Always consider
15982 function-local extern declarations as used.
15983
15984 2019-06-21 Richard Biener <rguenther@suse.de>
15985
15986 PR tree-optimization/90913
15987 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
15988 the scalar variant of if-conversion versioning.
15989
15990 2019-06-21 Jakub Jelinek <jakub@redhat.com>
15991
15992 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
15993 create another "omp scan inscan exclusive" array if
15994 !ctx->scan_inclusive.
15995 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
15996 (lower_omp_scan): Likewise.
15997 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
15998 2-bit bitfield for simd_lane_access_p member.
15999 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
16000 aux == (void *)-4 as simd lane access.
16001 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
16002 comment with permutations to show the canonical permutation order.
16003 (vectorizable_scan_store): Handle exclusive scan.
16004 (vectorizable_store): Call vectorizable_scan_store even for
16005 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
16006
16007 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
16008 "omp simd array" arrays with one byte elements.
16009
16010 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
16011
16012 * config/alpha/alpha.md (@unaligned_store<mode>):
16013 Rename from unaligned_store<mode>.
16014 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
16015 * config/alpha/sync.md (@load_locked_<mode>): Rename
16016 from load_locked_<mode>.
16017 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
16018 (@atomic_compare_and_swap<mode>_1): Rename
16019 from atomic_compare_and_swap<mode>_1.
16020 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
16021 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
16022 Use gen_reload_in_aligned and gen_unaligned_store.
16023 (emit_load_locked): Remove.
16024 (emit_store_conditional): Ditto.
16025 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
16026 (alpha_split_compare_and_swap): Ditto.
16027 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
16028 (alpha_split_compare_and_swap_12): Use gen_load_locked
16029 and gen_store_conditional.
16030 (alpha_split_atomic_exchange): Ditto.
16031 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
16032 (alpha_split_atomic_exchange_12): Use gen_load_locked
16033 and gen_store_conditional.
16034
16035 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
16036
16037 * config/aarch64/aarch64-errata.h: New file.
16038 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
16039 (CA53_ERR_843419_SPEC): Delete.
16040 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
16041 * config/aarch64/aarch64-linux.h: Likewise.
16042 * config/aarch64/aarch64-netbsd.h: Likewise.
16043 * config/aarch64/aarch64-freebsd.h: Likewise.
16044
16045 2019-06-20 Marek Polacek <polacek@redhat.com>
16046
16047 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
16048
16049 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
16050
16051 * config/rs6000/rs6000.md (isa attribute): Add support for
16052 for a future processor.
16053
16054 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
16055
16056 PR target/54855
16057 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
16058 standard scalar operation pattern for V2DF.
16059 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
16060 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
16061 (*ieee_<ieee_maxmin><mode>3): Likewise.
16062 (vec_setv2df_0): Likewise.
16063
16064 2019-06-20 Jan Hubicka <jh@suse.cz>
16065
16066 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
16067 parameter; it has no use in gimple memory model.
16068 (indirect_ref_may_alias_decl_p): Update.
16069
16070 2019-06-20 Martin Liska <mliska@suse.cz>
16071
16072 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
16073 to 10.
16074
16075 2019-06-20 Jakub Jelinek <jakub@redhat.com>
16076
16077 * tree-vect-stmts.c (enum scan_store_kind): New type.
16078 (scan_store_can_perm_p): Change last argument from int * to
16079 vec<enum scan_store_kind> *, record precisely which permutations
16080 need whole vector left shift or that plus VEC_COND_EXPR.
16081 (vectorizable_scan_store): Adjust caller, use whole vector left shift
16082 and additional VEC_COND_EXPR only for those iterations that need it.
16083
16084 2019-06-20 Alexandre Oliva <oliva@adacore.com>
16085
16086 * config.gcc: Fix ARM --with-fpu checking and error message.
16087
16088 2019-06-19 Marek Polacek <polacek@redhat.com>
16089
16090 PR c++/60364 - noreturn after first decl not diagnosed.
16091 * attribs.c (get_attribute_namespace): No longer static.
16092 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
16093 attributes.
16094 (attr_noreturn_exclusions): Make it extern.
16095 * attribs.h (get_attribute_namespace): Declare.
16096 * tree-inline.c (function_attribute_inlinable_p): Use
16097 get_attribute_name.
16098
16099 2019-06-19 Martin Sebor <msebor@redhat.com>
16100
16101 PR tree-optimization/90626
16102 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
16103
16104 PR tree-optimization/90626
16105 * tree-ssa-strlen.c (strxcmp_unequal): New function.
16106 (handle_builtin_string_cmp): Call it.
16107
16108 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
16109
16110 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
16111 and DARWIN_NOPIE_SPEC.
16112 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
16113 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
16114 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
16115 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
16116 (DARWIN_EXPORT_DYNAMIC): Delete.
16117 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
16118 and pie options processing to darwin.h.
16119 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
16120
16121 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
16122
16123 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
16124 in computing the number of options to be moved.
16125
16126 2019-06-19 Maya Rashish <coypu@sdf.org>
16127
16128 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
16129 (CLEAR_INSN_CACHE) Use it.
16130
16131 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
16132
16133 * config/i386/i386.md (cmpstrnsi): Remove dead code.
16134
16135 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
16136
16137 PR middle-end/84521
16138 * builtins.c (expand_builtin_setjmp_setup): Save
16139 hard_frame_pointer_rtx.
16140 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
16141 restore fp.
16142 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
16143 non-local goto.
16144 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
16145 elimination code.
16146 (remove_reg_equal_offset_note): Remove unused function.
16147 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
16148 code.
16149 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
16150 (arc_builtin_setjmp_frame_value): Remove function.
16151 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
16152 (avr_builtin_setjmp_frame_value): Remove function.
16153 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
16154 (ix86_builtin_setjmp_frame_value): Remove function.
16155 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
16156 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
16157 (sparc_builtin_setjmp_frame_value): Remove function.
16158 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
16159 (vax_builtin_setjmp_frame_value): Remove function.
16160 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
16161 pointer if has_nonlocal_label.
16162
16163 2019-06-19 Jakub Jelinek <jakub@redhat.com>
16164
16165 * doc/md.texi: Document vec_shl_<mode> pattern.
16166 * optabs.def (vec_shl_optab): New optab.
16167 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
16168 argument, if == vec_shl_optab, check for left whole vector shift
16169 pattern rather than right shift.
16170 (expand_vec_perm_const): Add vec_shl_optab support.
16171 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
16172 in the comment.
16173 * tree-vect-generic.c (lower_vec_perm): Support permutations which
16174 can be handled by vec_shl_optab.
16175 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
16176 (check_scan_store): Use it.
16177 (vectorizable_scan_store): If target can't do normal permutations,
16178 try to use whole vector left shifts and if needed a VEC_COND_EXPR
16179 after it.
16180 * config/i386/sse.md (vec_shl_<mode>): New expander.
16181
16182 * omp-low.c (lower_rec_input_clauses): Handle references properly
16183 in inscan clauses.
16184 (lower_omp_scan): Likewise.
16185
16186 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16187
16188 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
16189 mem_mode is BLKmode.
16190
16191 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
16192
16193 PR target/90922
16194 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
16195 pointer adjustment for the case of no callee-saved registers and
16196 stack frame bigger than 128 bytes.
16197
16198 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
16199
16200 PR middle-end/90862
16201 * omp-low.c (check_omp_nesting_restrictions): Handle
16202 GF_OMP_TARGET_KIND_OACC_DECLARE.
16203
16204 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
16205
16206 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
16207 (@add<mode>3_carry): Rename from add<mode>3_carry.
16208 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
16209 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
16210 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
16211 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
16212 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
16213 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
16214 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
16215 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
16216 (cmpstrnsi): Use gen_cmp_1.
16217 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
16218 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
16219 (@umonitor_<mode>): Rename from umonitor_<mode>.
16220 * config/i386/i386-expand.c (ix86_expand_copysign):
16221 Use gen_copysign3_const and gen_copysign3_var.
16222 (ix86_expand_xorsign): Use gen_xorsign3_1.
16223 (ix86_expand_branch): Use gen_sub3_carry_ccc,
16224 gen_sub3_carry_ccgz and gen_cmp1.
16225 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
16226 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
16227 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
16228 (ix86_split_lshr): Ditto.
16229 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
16230
16231 2019-06-18 Jason Merrill <jason@redhat.com>
16232
16233 * tree.c (build_constructor): Add MEM_STAT_DECL.
16234
16235 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
16236
16237 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
16238 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
16239 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
16240 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
16241 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
16242 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
16243 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
16244 Use CC_NZC instead of CC.
16245 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
16246 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
16247 (aarch64_print_operand): Handle E_CC_NZCmode.
16248 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
16249 of gen_set_clobber_cc.
16250
16251 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
16252
16253 * config/aarch64/aarch64-sve.md: Tabify file.
16254
16255 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
16256
16257 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
16258 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
16259 * config/aarch64/aarch64-sve.md: Use it.
16260
16261 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
16262
16263 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
16264 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
16265 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
16266 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
16267 (aarch64_expand_sve_vec_cmp_int): Use it.
16268 (aarch64_expand_sve_vec_cmp_float): Likewise.
16269 * config/aarch64/aarch64-sve.md: Likewise throughout.
16270
16271 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
16272 Kugan Vivekanandarajah <kuganv@linaro.org>
16273
16274 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
16275 (*cond_<optab><mode>_z): Fold into...
16276 (*cond_<optab><mode>_any): ...here. Also handle cases in which
16277 operand 4 can be tied to operand 0 (either inherently or via RA).
16278
16279 2019-06-18 Richard Biener <rguenther@suse.de>
16280
16281 PR debug/90900
16282 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
16283 as if optimized away.
16284
16285 2019-06-18 Tom de Vries <tdevries@suse.de>
16286
16287 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
16288 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
16289 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
16290 Rename to ...
16291 (define_insn "@set_softstack_<mode>"): ... this.
16292 (define_insn "omp_simt_enter_<mode>"): Rename to ...
16293 (define_insn "@omp_simt_enter_<mode>"): ... this.
16294 (define_insn "omp_simt_exit_<mode>"): Rename to ...
16295 (define_insn "@omp_simt_exit_<mode>"): ... this.
16296
16297 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
16298
16299 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
16300 vf parameter. Restore the previous iv step of nscalars_step,
16301 but give it iv_type rather than compare_type. Tweak code order
16302 to match the comments.
16303 (vect_set_loop_condition_masked): Update accordingly.
16304 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
16305 for iv_precision. Tweak comment formatting.
16306
16307 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
16308
16309 * config/darwin.c: Strip trailing whitespace.
16310
16311 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
16312
16313 * config/darwin.c (darwin_emit_unwind_label): New default to false.
16314 (darwin_override_options): Set darwin_emit_unwind_label as needed.
16315
16316 2019-06-18 Martin Jambor <mjambor@suse.cz>
16317
16318 PR ipa/90889
16319 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
16320 caller does not have flag_ipa_cp set.
16321
16322 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16323
16324 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
16325 from "*fold_left_plus_<mode>", updated operands order.
16326 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
16327 * internal-fn.c (mask_fold_left_direct): New define.
16328 (expand_mask_fold_left_optab_fn): Likewise.
16329 (direct_mask_fold_left_optab_supported_p): Likewise.
16330 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
16331 * optabs.def (mask_fold_left_plus_optab): New optab.
16332 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
16333 masked internal_fn for a reduction ifn.
16334 (vectorize_fold_left_reduction): Add support for masking reductions.
16335
16336 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
16337
16338 PR middle-end/80791
16339 * target.def (predict_doloop_p): New hook.
16340 * targhooks.h (default_predict_doloop_p): New declaration.
16341 * targhooks.c (default_predict_doloop_p): New function.
16342 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
16343 * doc/tm.texi: Regenerate.
16344 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
16345 (TARGET_PREDICT_DOLOOP_P): New macro.
16346 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
16347
16348 2019-06-17 Jakub Jelinek <jakub@redhat.com>
16349
16350 * omp-low.c (struct omp_context): Add scan_inclusive field.
16351 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
16352 if inclusive scan.
16353 (struct omplow_simd_context): Add lastlane member.
16354 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
16355 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
16356 1 or 2 argument.
16357 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
16358 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
16359 (lower_omp_scan): New function.
16360 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
16361 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
16362 check 3rd argument if present rather than 2nd.
16363 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
16364 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
16365 2-bit bitfield.
16366 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
16367 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
16368 than 2nd.
16369 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
16370 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
16371 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
16372 init.
16373 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
16374 IFN_GOMP_SIMD_LANE argument.
16375 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
16376 encoded ->aux value.
16377 * tree-vect-stmts.c: Include attribs.h.
16378 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
16379 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
16380 functions.
16381 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
16382 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
16383
16384 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
16385
16386 PR target/62055
16387 * config/i386/i386.md (*nabstf2_1): New insn pattern.
16388 (*nabs<mode>2_1): Ditto.
16389 (nabs sse-reg splitter): New splitter.
16390 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
16391
16392 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
16393
16394 PR bootstrap/90873.
16395 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
16396 TMR index check.
16397
16398 2019-06-17 Tom de Vries <tdevries@suse.de>
16399
16400 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
16401 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
16402 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
16403 ...
16404 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
16405 match_operand 0.
16406 (define_insn "omp_simt_enter_insn"): Rename to ...
16407 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
16408 match_operand 0, 1 and 2, as well as the unspec_volatile result.
16409 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
16410 gen_omp_simt_enter_si.
16411 (define_expand "omp_simt_exit"): New.
16412 (define_insn "omp_simt_exit"): Rename to ...
16413 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
16414 match_operand 0.
16415
16416 2019-06-17 Matthew Green <mrg@eterna.com.au>
16417 Maya Rashish <coypu@sdf.org>
16418
16419 * config.gcc (aarch64*-*-netbsd*): New target.
16420 * config/aarch64/aarch64-netbsd.h: New file.
16421 * config/aarch64/t-aarch64-netbsd: Likewise.
16422
16423 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
16424
16425 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
16426 the access path from base to first VIEW_CONVERT_EXPR or
16427 BIT_FIELD_REF.
16428
16429 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
16430
16431 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
16432 access path on BIT_FIELD_REFs.
16433
16434 2019-06-17 Martin Liska <mliska@suse.cz>
16435
16436 PR ipa/90874
16437 * ipa-utils.h (odr_type_p): Remove dead code.
16438
16439 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16440
16441 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
16442 alternative Solaris 11.4 format.
16443 * configure: Regenerate.
16444
16445 2019-06-17 Tom de Vries <tdevries@suse.de>
16446
16447 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
16448 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
16449 match_operand 0.
16450 (define_insn "call_value_insn"): Rename to ...
16451 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
16452 match_operand 0.
16453 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
16454 DI.
16455
16456 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
16457
16458 PR middle-end/64242
16459 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
16460 frame clobbers and schedule block.
16461 (builtin_longjmp): Likewise.
16462
16463 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16464
16465 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
16466 describe how to perform MSPABI compliant 64-bit shift.
16467 * config/msp430/msp430.md (ashldi3): New define_expand.
16468 (ashrdi3): New define_expand.
16469 (lshrdi3): New define_expand.
16470
16471 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16472
16473 * doc/sourcebuild.texi: Document new effective target keyword
16474 longlong64.
16475
16476 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
16477
16478 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
16479 indirect_refs_may_alias_p): Revert accidental commits.
16480
16481 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
16482 at the end of structures.
16483
16484 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
16485
16486 * config/darwin.c (machopic_indirect_call_target): Use renamed
16487 darwin_picsymbol_stubs to decide on output.
16488 (darwin_override_options): Handle darwin_picsymbol_stubs.
16489 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
16490 (LD64_VERSION): Revise default.
16491 * config/darwin.opt: (mpic-symbol-stubs): New option.
16492 (darwin_picsymbol_stubs): New variable.
16493 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
16494 rename to TARGET_MACHO_PICSYM_STUBS.
16495 * config/i386/i386.c (output_pic_addr_const): Likewise.
16496 * config/i386/i386.h Likewise.
16497 * config/rs6000/darwin.h: Likewise.
16498 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
16499 darwin_picsymbol_stubs.
16500
16501 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
16502
16503 * config/darwin.opt (prebind, noprebind, seglinkedit,
16504 noseglinkedit): Add RejectNegative.
16505
16506 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
16507
16508 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
16509 in my previous patch.
16510
16511 2019-06-16 Tom de Vries <tdevries@suse.de>
16512
16513 PR tree-optimization/89376
16514 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
16515
16516 2019-06-15 Maya Rashish <coypu@sdf.org>
16517
16518 * doc/invoke.texi (Spec Files): Update location of the
16519 Fortran spec file.
16520
16521 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
16522
16523 * doc/extend.texi (Common Function Attributes): Clarify
16524 no_sanitize. Fix grammar.
16525
16526 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
16527
16528 * tree-ssa-alias.c (alias_stats): Add
16529 nonoverlapping_component_refs_p_may_alias,
16530 nonoverlapping_component_refs_p_no_alias,
16531 nonoverlapping_component_refs_of_decl_p_may_alias,
16532 nonoverlapping_component_refs_of_decl_p_no_alias.
16533 (dump_alias_stats): Dump them.
16534 (nonoverlapping_component_refs_of_decl_p): Add stats.
16535 (nonoverlapping_component_refs_p): Add stats; do not stop on first
16536 ARRAY_REF.
16537
16538 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
16539
16540 * config/i386/i386.md (and<mode>3): Generate zero-extends for
16541 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
16542 only.
16543 (*anddi3_doubleword): Split before reload. Merge with
16544 anddi->zext pre-reload splitter.
16545 (*andndi3_doubleword): Split before reload.
16546 (*<code>di3_doubleword): Ditto.
16547 (*one_cmpldi2_doubleword): Ditto.
16548
16549 2019-06-15 Jakub Jelinek <jakub@redhat.com>
16550
16551 PR middle-end/90779
16552 * gimplify.c: Include omp-offload.h and context.h.
16553 (gimplify_bind_expr): Add "omp declare target" attributes
16554 to static block scope variables inside of target region or target
16555 functions.
16556
16557 2019-06-15 Tom de Vries <tdevries@suse.de>
16558
16559 PR tree-optimization/90009
16560 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
16561 Return NULL if bb contains IFN_UNIQUE.
16562
16563 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
16564
16565 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
16566 (un): New define_mode_attr.
16567 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
16568 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
16569 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
16570 merge into ...
16571 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
16572
16573 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
16574
16575 * config/darwin.opt: Add RejectNegative where needed, reorder
16576 and add minimal functional descriptions.
16577
16578 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
16579
16580 PR rtl-optimization/90765
16581 * calls.c (update_stack_alignment_for_call): New function.
16582 (expand_call): Call update_stack_alignment_for_call when
16583 outgoing parameter is passed in the stack.
16584 (emit_library_call_value_1): Likewise.
16585 * function.c (locate_and_pad_parm): Don't update
16586 stack_alignment_needed and preferred_stack_boundary.
16587
16588 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
16589
16590 PR target/90877
16591 * config/i386/i386-features.c
16592 (dimode_scalar_chain::compute_convert_gain): Replace
16593 mmxsse_to_integer with sse_to_integer.
16594 * config/i386/i386.c (ix86_register_move_cost): Verify that
16595 moves between MMX and non-MMX units require secondary memory.
16596 Correct costs of moves between SSE and integer units.
16597 * config/i386/i386.h (processor_costs): Rename cost of moving
16598 SSE register to integer to sse_to_integer. Rename cost of
16599
16600 2019-06-14 Matt Thomas <matt@3am-software.com>
16601 Matthew Green <mrg@eterna.com.au>
16602 Nick Hudson <skrll@netbsd.org>
16603 Maya Rashish <coypu@sdf.org>
16604 Richard Earnshaw <rearnsha@arm.com>
16605
16606 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
16607 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
16608 * config/arm/netbsd-eabi.h: New file.
16609 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
16610 redefining.
16611 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
16612 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
16613 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
16614 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
16615
16616 2019-06-14 Richard Biener <rguenther@suse.de>
16617
16618 * tree-loop-distribution.c (classify_partition): Return
16619 whether a reduction appeared in all partitions and do not
16620 stop builtin detection because of this.
16621 (distribute_loop): Sort a non-builtin partition last if
16622 there's a reduction in all partitions and make sure the
16623 partition prevailing as last is not a builtin.
16624
16625 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
16626
16627 PR ipa/90401
16628 * ipa-prop.c (add_to_agg_contents_list): New function.
16629 (clobber_by_agg_contents_list_p): Likewise.
16630 (extract_mem_content): Likewise.
16631 (get_place_in_agg_contents_list): Delete.
16632 (determine_known_aggregate_parts): Renamed from
16633 determine_locally_known_aggregate_parts. New parameter
16634 aa_walk_budget_p.
16635
16636 2019-06-13 Martin Sebor <msebor@redhat.com>
16637
16638 PR tree-optimization/90662
16639 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
16640 to the same type.
16641
16642 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
16643
16644 PR bootstrap/90873
16645 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
16646 dbase is not TARGET_MEM_REF.
16647
16648 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
16649
16650 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
16651 Update all uses.
16652 (and<mode>3): Use gen_extend_insn instead of indirect functions.
16653 Do not generate DImode extends for 32bit targets.
16654 (and->zext post-reload splitter): Use gen_extend_insn
16655 instead of indirect functions.
16656 (anddi->zext pre-reload splitter): New.
16657 (*zext<mode>_doubleword_and): Remove.
16658 (*zext<mode>_doubleword): Ditto.
16659 (*zextsi_doubleword): Dittto.
16660
16661 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
16662
16663 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
16664 Use gen_sub3_insn instead of indirect function.
16665 (ix86_expand_ashl_const): Use gen_add2_insn instead of
16666 indirect function.
16667 (ix86_adjust_counter): Ditto.
16668
16669 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
16670 Lijia He <helijia@linux.ibm.com>
16671
16672 PR tree-optimization/77820
16673 * tree-ssa-threadedge.c
16674 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
16675 function.
16676 (thread_across_edge): Add call to
16677 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
16678
16679 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
16680
16681 * config/darwin-driver.c (validate_macosx_version_min): New.
16682 (darwin_default_min_version): Cleanup and validate supplied version.
16683 (darwin_driver_init): Likewise and push cleaned version into opts.
16684
16685 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
16686
16687 PR tree-optimization/90869
16688 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
16689 converts in MEM_REF referencing decl rather than view converts
16690 from decl type to MEM_REF type.
16691
16692 2019-06-13 Richard Biener <rguenther@suse.de>
16693
16694 PR tree-optimization/90856
16695 * tree-sra.c (build_ref_for_model): Only use
16696 build_reconstructed_reference when address-spaces are the same.
16697
16698 2019-06-13 Jakub Jelinek <jakub@redhat.com>
16699
16700 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
16701 wrap ei variable name in the declaration in ()s.
16702 (nvptx_single): Actually use mode_label variable. Formatting fix.
16703
16704 2019-06-13 Richard Biener <rguenther@suse.de>
16705
16706 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
16707 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
16708 also return the condition stmt.
16709 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
16710 loop we can version and version that, reusing the loop version
16711 created by if-conversion instead of versioning again.
16712
16713 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
16714
16715 * gimple-loop-versioning.cc (prune_loop_conditions): Use
16716 may_contain_p.
16717 * tree-vrp (value_range_base::may_contain_p): Call into
16718 value_inside_range.
16719 (value_inside_range): Make private inside value_range_base class.
16720 Take min/max from *this.
16721 (range_includes_p): Remove.
16722 * tree-vrp.h (value_range_base): Add value_inside_range.
16723 (range_includes_p): Remove.
16724 (range_includes_zero_p): Call may_contain_p.
16725 * vr-values.c (compare_range_with_value): Same.
16726
16727 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
16728
16729 * doc/extend.texi (ARC Function Attributes): Update info.
16730
16731 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
16732
16733 PR tree-optimization/89713
16734 * doc/invoke.texi (-ffinite-loops): Document new option.
16735 * common.opt (-ffinite-loops): New option.
16736 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
16737 IFN_GOACC_LOOP calls as necessary.
16738 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
16739 is finite.
16740 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
16741 IFN_GOACC_LOOP call is not used.
16742 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
16743
16744 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16745
16746 PR target/88838
16747 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
16748 compare_type is not with Pmode size, we will create an IV with
16749 Pmode size with truncated use (i.e. converted to the correct type).
16750 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
16751 (vect_iv_limit_for_full_masking): New. Factored out of
16752 vect_set_loop_condition_masked.
16753 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
16754 (vect_iv_limit_for_full_masking): Declare.
16755
16756 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16757
16758 PR target/88834
16759 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
16760 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
16761 (get_alias_ptr_type_for_ptr_address): Likewise.
16762 (add_iv_candidate_for_use): Add scaled index candidate if useful.
16763 * tree-ssa-address.c (preferred_mem_scale_factor): New.
16764 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
16765 allow_reg_index_p.
16766
16767 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16768
16769 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
16770
16771 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
16772
16773 * common/config/pru/pru-common.c: New file.
16774 * config.gcc: Add PRU target.
16775 * config/pru/alu-zext.md: New file.
16776 * config/pru/constraints.md: New file.
16777 * config/pru/predicates.md: New file.
16778 * config/pru/pru-opts.h: New file.
16779 * config/pru/pru-passes.c: New file.
16780 * config/pru/pru-pragma.c: New file.
16781 * config/pru/pru-protos.h: New file.
16782 * config/pru/pru.c: New file.
16783 * config/pru/pru.h: New file.
16784 * config/pru/pru.md: New file.
16785 * config/pru/pru.opt: New file.
16786 * config/pru/t-pru: New file.
16787 * doc/extend.texi: Document PRU pragmas.
16788 * doc/invoke.texi: Document PRU-specific options.
16789 * doc/md.texi: Document PRU asm constraints.
16790
16791 2019-06-12 Martin Sebor <msebor@redhat.com>
16792
16793 PR middle-end/90676
16794 * tree-pretty-print.c (dump_mem_ref): New function. Include
16795 MEM_REF type in output when different size than operand.
16796 (dump_generic_node): Move code to dump_mem_ref and call it.
16797
16798 2019-06-12 Martin Sebor <msebor@redhat.com>
16799
16800 PR tree-optimization/90662
16801 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
16802 to arrays.
16803
16804 2019-06-12 Tom de Vries <tdevries@suse.de>
16805
16806 PR tree-optimization/90009
16807 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
16808
16809 2019-06-12 Martin Liska <mliska@suse.cz>
16810
16811 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
16812 the created map.
16813 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
16814 * mem-stats.h (mem_alloc_description::mem_alloc_description):
16815 Do not sanitize created maps.
16816
16817 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
16818
16819 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
16820 value_range::singleton_p.
16821 * tree-vrp.c (value_range_constant_singleton): Remove.
16822 * tree-vrp.h (value_range_constant_singleton): Remove.
16823 * vr-values.c (vr_values::singleton): Use
16824 value_range::singleton_p.
16825
16826 2019-06-12 Jakub Jelinek <jakub@redhat.com>
16827
16828 PR target/90811
16829 * cfgexpand.c (align_local_variable): Add really_expand argument,
16830 don't SET_DECL_ALIGN if it is false.
16831 (add_stack_var): Add really_expand argument, pass it through to
16832 align_local_variable.
16833 (expand_one_stack_var_1): Pass true as really_expand to
16834 align_local_variable.
16835 (expand_one_ssa_partition): Pass true as really_expand to
16836 add_stack_var.
16837 (expand_one_var): Pass really_expand through to add_stack_var.
16838
16839 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
16840
16841 * config/arm/iterators.md (VABAL): New int iterator.
16842 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
16843 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
16844 UNSPEC_VABAL_U values.
16845
16846 2019-06-12 Martin Liska <mliska@suse.cz>
16847
16848 * value-prof.c (stream_out_histogram_value): Only first value
16849 can't be negative.
16850
16851 2019-06-12 Jakub Jelinek <jakub@redhat.com>
16852
16853 PR c/90760
16854 * symtab.c (symtab_node::set_section): Allow being called on aliases
16855 as long as they aren't analyzed yet.
16856
16857 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
16858
16859 * config/mips/mips.c (mips_final_postscan_insn): Modify call
16860 to `mips_set_text_contents_type' to indicate whether a
16861 non-debug insn follows.
16862
16863 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
16864
16865 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
16866 enabling -mpcrel by default.
16867 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
16868 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
16869 that the test against -mcpu=future is done first. Then test if
16870 -mprefixed-addr is on for -mpcrel.
16871 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
16872
16873 2019-06-11 Jakub Jelinek <jakub@redhat.com>
16874
16875 PR target/90811
16876 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
16877 instead of and.u%d.
16878
16879 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
16880
16881 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
16882
16883 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
16884
16885 PR c++/90449 - add -Winaccessible-base option.
16886 * doc/invoke.texi (Winaccessible-base): Document.
16887
16888 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
16889
16890 PR tree-optimization/62041
16891 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
16892
16893 2019-06-11 Jason Merrill <jason@redhat.com>
16894
16895 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
16896 * tree.c (get_tree_code_name): Likewise.
16897 * print-tree.c (print_node): Only briefly print a node with an
16898 invalid code.
16899
16900 2019-06-11 Jakub Jelinek <jakub@redhat.com>
16901
16902 PR bootstrap/90819
16903 * trans-mem.c (tm_memopt_compute_available): Add assertion
16904 that blocks is not empty. Formatting fix.
16905
16906 2019-06-11 Martin Liska <mliska@suse.cz>
16907
16908 PR c++/87847
16909 * hash-table.h: Extend create_gcc, add one parameter
16910 that is passed into hash_table::hash_table.
16911
16912 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
16913
16914 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
16915 New prototype.
16916 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
16917 Emit clobber also for non-sse operations.
16918 (ix86_split_fp_absneg_operator): New function.
16919 * config/i386/i386.md (SSEMODEF): New mode iterator.
16920 (ssevecmodef): New mode attribute.
16921 (<code>tf2): Use absneg code iterator.
16922 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
16923 Add three-operand AVX alternatives.
16924 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
16925 Use absneg code iterator and X87MODEF mode iterator.
16926 (absneg fp_reg non-sse splitter): Call absneg code iterator
16927 and X87MODEF mode iterator.
16928 (absneg general_reg non-sse splitter): Use absneg code iterator
16929 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
16930 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
16931 code iterator. Add three-operand AVX alternative.
16932 (absneg sse_reg splitter): Use absneg code iterator
16933 and SSEMODEF mode iterator. Handle AVX operands.
16934 (absneg fp_reg splitter): Use absneg code iterator
16935 and MODEF mode iterator.
16936 (absneg general_reg splitter): Merge splitters using MODEF mode
16937 iterator. Use absneg code iterator. Call
16938 ix86_split_fp_absneg_operator.
16939 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
16940 Do not enable for non-sse modes before reload.
16941 (CSGNMODE): Remove.
16942 (CSGNVMODE): Ditto.
16943 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
16944 ssevecmodef mode attribute instaed of CSGNVMODE.
16945 (copysign<mode>3_const): Ditto.
16946 (copysign<mode>3_var): Ditto.
16947 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
16948 Use absneg code iterator. Simplify code using std::swap.
16949 * config/i386/predicates.md (absneg_operator): Remove.
16950
16951 2019-06-10 Martin Sebor <msebor@redhat.com>
16952
16953 * gimple-fold.c (get_range_strlen): Update comment that didn't
16954 make it into r267503 or related commits.
16955
16956 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
16957
16958 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
16959 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
16960
16961 2019-06-10 Jakub Jelinek <jakub@redhat.com>
16962
16963 * tree.def (OMP_SCAN): New tree code.
16964 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
16965 OMP_CLAUSE_EXCLUSIVE.
16966 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
16967 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
16968 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
16969 OMP_CLAUSE_{IN,EX}CLUSIVE.
16970 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
16971 * tree-nested.c (convert_nonlocal_reference_stmt,
16972 convert_local_reference_stmt, convert_gimple_call): Handle
16973 GIMPLE_OMP_SCAN.
16974 * tree-pretty-print.c (dump_omp_clause): Handle
16975 OMP_CLAUSE_{IN,EX}CLUSIVE.
16976 (dump_generic_node): Handle OMP_SCAN.
16977 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
16978 * gimple.h (gomp_scan): New type.
16979 (is_a_helper <gomp_scan *>::test,
16980 is_a_helper <const gomp_scan *>::test): New templates.
16981 (gimple_build_omp_scan): Declare.
16982 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
16983 gimple_omp_scan_set_clauses): New inline functions.
16984 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
16985 * gimple.c (gimple_build_omp_scan): New function.
16986 (gimple_copy): Handle GIMPLE_OMP_SCAN.
16987 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
16988 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
16989 GIMPLE_OMP_TASKGROUP.
16990 (dump_gimple_omp_scan): New function.
16991 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
16992 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
16993 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
16994 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
16995 (is_gimple_stmt): Handle OMP_SCAN.
16996 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
16997 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
16998 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
16999 mentioned in nested #pragma omp scan. Handle
17000 OMP_CLAUSE_{IN,EX}CLUSIVE.
17001 (gimplify_expr): Handle OMP_SCAN.
17002 * omp-low.c (check_omp_nesting_restrictions): For parent context,
17003 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
17004 simd constructs.
17005 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
17006 GIMPLE_OMP_SCAN.
17007
17008 2019-06-10 Martin Liska <mliska@suse.cz>
17009
17010 * ipa-cp.c (ignore_edge_p): New function.
17011 (build_toporder_info): Use it.
17012 * ipa-inline.c (ignore_edge_p): New function.
17013 (inline_small_functions): Use it.
17014 * ipa-pure-const.c (ignore_edge_for_nothrow):
17015 Verify opt_for_fn for caller and callee.
17016 (ignore_edge_for_pure_const): Likewise.
17017 * ipa-reference.c (ignore_edge_p): Extend to check
17018 for opt_for_fn.
17019 * ipa-utils.c (searchc): Refactor.
17020 * ipa-utils.h: Fix coding style.
17021
17022 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
17023
17024 * config/arc/arc.c (arc_rtx_costs): Update costs.
17025
17026 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
17027
17028 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
17029 (arc_split_ior): Likewise.
17030 (arc_check_mov_const): Likewise.
17031 (arc_split_mov_const): Likewise.
17032 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
17033 (arc_rtx_costs): Replace check Crr with Cax constraint.
17034 (prepare_move_operands): Cleanup, remove unused code.
17035 (arc_split_ior): New function.
17036 (arc_check_ior_const): Likewise.
17037 (arc_split_mov_const): Likewise.
17038 (arc_check_mov_const): Likewise.
17039 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
17040 in define_insn_and_split pattern.
17041 (iorsi3): Likewise.
17042 (mulsi3_v2): Add new matching variant.
17043 (andsi3_i): Cleanup pattern.
17044 (rotrsi3_cnt1): Update pattern.
17045 (rotrsi3_cnt8): New pattern.
17046 (ashlsi2_cnt8): Likewise.
17047 (ashlsi2_cnt16): Likewise.
17048 * config/arc/constraints.md (C0p): Update constraint.
17049 (Crr): Remove it.
17050 (C0x): New pattern.
17051 (Cax): New pattern.
17052
17053 2019-06-10 Martin Liska <mliska@suse.cz>
17054
17055 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
17056 Update coding style.
17057 (sem_item_optimizer::dump_cong_classes):
17058 Print how many items are in a non-singular class. Improve
17059 coding style.
17060
17061 2019-06-10 Martin Liska <mliska@suse.cz>
17062
17063 * value-prof.c (dump_histogram_value): Change dump format.
17064 (gimple_mod_subtract_transform): Remove legacy comment.
17065
17066 2019-06-10 Martin Liska <mliska@suse.cz>
17067
17068 * value-prof.c (dump_histogram_value): Print histogram values
17069 only if present.
17070
17071 2019-06-10 Martin Liska <mliska@suse.cz>
17072
17073 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
17074 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
17075 * ipa-profile.c (ipa_profile_generate_summary):
17076 Use get_most_common_single_value.
17077 * tree-profile.c (gimple_init_gcov_profiler):
17078 Instrument with __gcov_one_value_profiler_v2
17079 and __gcov_indirect_call_profiler_v4.
17080 * value-prof.c (dump_histogram_value):
17081 Print all values for HIST_TYPE_SINGLE_VALUE.
17082 (stream_out_histogram_value): Update assert for
17083 N values.
17084 (stream_in_histogram_value): Set number of
17085 counters for HIST_TYPE_SINGLE_VALUE.
17086 (get_most_common_single_value): New.
17087 (gimple_divmod_fixed_value_transform):
17088 Use get_most_common_single_value.
17089 (gimple_ic_transform): Likewise.
17090 (gimple_stringops_transform): Likewise.
17091 (gimple_find_values_to_profile): Set number
17092 of counters for HIST_TYPE_SINGLE_VALUE.
17093 * value-prof.h (get_most_common_single_value): New.
17094
17095 2019-06-10 Martin Liska <mliska@suse.cz>
17096
17097 * hash-map.h: Pass default value to hash_table ctor.
17098 * hash-table.h: Add default value to call of a ctor.
17099
17100 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
17101
17102 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
17103 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
17104
17105 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
17106
17107 PR target/90751
17108 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
17109 Call pa_output_function_label.
17110 (TARGET_ASM_FUNCTION_PROLOGUE): define.
17111 * config/pa/pa-protos.h (pa_output_function_label): Declare.
17112 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
17113 to declaration.
17114 (pa_linux_output_function_prologue): Declare.
17115 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
17116 (pa_output_function_label): New.
17117 (pa_output_function_prologue): Revise to use pa_output_function_label.
17118 (pa_linux_output_function_prologue): New.
17119 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
17120
17121 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
17122
17123 * tree-vrp.h (value_range_base::intersect): New.
17124 (value_range::intersect_helper): Move from here...
17125 (value_range_base::intersect_helper): ...to here.
17126 * tree-vrp.c (value_range::intersect_helper): Rename to...
17127 (value_range_base::intersect_helper): ...this, and rewrite to
17128 return a value instead of modifying THIS in place.
17129 Also, move equivalence handling...
17130 (value_range::intersect): ...here, while calling intersect_helper.
17131 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
17132 calling intersect.
17133 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
17134 Same.
17135 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
17136
17137 2019-06-07 Jakub Jelinek <jakub@redhat.com>
17138
17139 * Makefile.in (genprogerr): Add condmd.
17140 (genprog): Remove it here.
17141
17142 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
17143
17144 * doc/invoke.texi (AMD GCN Options): Add gfx906.
17145
17146 2019-06-07 Richard Biener <rguenther@suse.de>
17147
17148 PR debug/90574
17149 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
17150 that appear after user labels.
17151
17152 2019-06-07 Martin Liska <mliska@suse.cz>
17153
17154 * cselib.c (cselib_init): Disable hash table
17155 sanitization.
17156 * hash-set.h: Pass new default argument to m_table.
17157 * hash-table.c: Add global variable with hash table
17158 sanitization limit.
17159 * hash-table.h (Allocator>::hash_table): Add new argument
17160 to ctor.
17161 (hashtab_chk_error): New.
17162 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
17163 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
17164 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
17165
17166 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
17167
17168 * common.opt (flto-odr-type-merging): Ignore.
17169 * invoke.texi (-flto-odr-type-merging): Remove.
17170 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
17171 (can_be_vtable_hashed_p): Remove.
17172 (hash_odr_vtable): Remove.
17173 (odr_vtable_hasher::hash): Remove.
17174 (types_same_for_odr): Remove.
17175 (types_odr_comparable): Remove.
17176 (odr_vtable_hasher::equal): Remove.
17177 (odr_vtable_hash_type, odr_vtable_hash): Remove.
17178 (add_type_duplicate): Do not synchronize vtable and name hashtables.
17179 (get_odr_type): Do not use vtable hash.
17180 (dump_odr_type): Remove commented out code.
17181 (build_type_inheritance_graph): Do not allocate vtable hash.
17182 (rebuild_type_inheritance_graph): Do not delete vtable hash.
17183 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
17184 (odr_type_p): Likewise.
17185 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
17186 test.
17187
17188 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
17189
17190 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
17191 immediately after same_types_for_tbaa_p returns -1 and continue
17192 looking for possible exact match; if matching types are arrays
17193 watch for partial overlaps.
17194 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
17195 (indirect_refs_may_alias_p): Do type based disambiguation first;
17196 update comment.
17197
17198 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
17199
17200 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
17201
17202 2019-06-07 Martin Liska <mliska@suse.cz>
17203
17204 * doc/invoke.texi: Remove param.
17205 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
17206 Remove.
17207 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
17208 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
17209 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
17210 * profile.c (instrument_values): Remove
17211 HIST_TYPE_INDIR_CALL_TOPN.
17212 * tree-profile.c (init_ic_make_global_vars):
17213 Always build __gcov_indirect_call only.
17214 (gimple_init_gcov_profiler): Remove usage
17215 of PARAM_INDIR_CALL_TOPN_PROFILE.
17216 (gimple_gen_ic_profiler): Likewise.
17217 * value-prof.c (dump_histogram_value): Likewise.
17218 (stream_in_histogram_value): Likewise.
17219 (gimple_indirect_call_to_profile): Likewise.
17220 (gimple_find_values_to_profile): Likewise.
17221 * value-prof.h (enum hist_type): Likewise.
17222
17223 2019-06-07 Martin Liska <mliska@suse.cz>
17224
17225 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
17226 function.
17227
17228 2019-06-07 Martin Liska <mliska@suse.cz>
17229
17230 PR tree-optimization/78902
17231 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
17232 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
17233 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
17234 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
17235 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
17236 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
17237 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
17238 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
17239 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
17240 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
17241 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
17242 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
17243 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
17244 New.
17245 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
17246 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
17247 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
17248 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
17249 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
17250 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
17251 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
17252 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
17253 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
17254 warn_unused_result attribute.
17255 (BUILT_IN_STRDUP): Likewise.
17256 (BUILT_IN_STRNDUP): Likewise.
17257 (BUILT_IN_ALLOCA): Likewise.
17258 (BUILT_IN_CALLOC): Likewise.
17259 (BUILT_IN_MALLOC): Likewise.
17260 (BUILT_IN_REALLOC): Likewise.
17261
17262 2019-06-06 Jim Wilson <jimw@sifive.com>
17263
17264 PR target/89955
17265 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
17266 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
17267 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
17268
17269 2019-06-06 Martin Sebor <msebor@redhat.com>
17270
17271 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
17272 (handle_builtin_malloc): Remove trailing spaces.
17273 (handle_builtin_memset): Same.
17274 (handle_builtin_memcmp): Same.
17275 (compute_string_length): Same.
17276 (determine_min_objsize): Same.
17277 (handle_builtin_string_cmp): Same.
17278 (handle_char_store): Same. Break up excessively long line.
17279
17280 2019-06-06 Martin Jambor <mjambor@suse.cz>
17281
17282 * tree-sra.c (build_reconstructed_reference): Drop the alignment
17283 check.
17284
17285 2019-06-06 Martin Jambor <mjambor@suse.cz>
17286
17287 * tree-sra.c (struct access): New field grp_same_access_path.
17288 (dump_access): Dump it.
17289 (build_reconstructed_reference): New function.
17290 (build_ref_for_model): Use it if possible.
17291 (path_comparable_for_same_access): New function.
17292 (same_access_path_p): Likewise.
17293 (sort_and_splice_var_accesses): Set the new flag.
17294 (analyze_access_subtree): Likewise.
17295 (propagate_subaccesses_across_link): Propagate zero value of the new
17296 flag down the access tree.
17297
17298 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
17299
17300 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
17301 * config/gcn/gcn.opt (gpu_type): Add gfx906.
17302 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
17303 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
17304 Add gfx906.
17305
17306 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17307
17308 PR tree-optimization/90332
17309 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
17310 Handle VALS containing two vectors.
17311 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
17312 to...
17313 (@aarch64_combinez<mode>): ... This.
17314 (*aarch64_combinez_be<mode>): Rename to...
17315 (@aarch64_combinez_be<mode>): ... This.
17316 (vec_init<mode><Vhalf>): New define_expand.
17317 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
17318
17319 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17320
17321 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
17322 library functions only when not optimizing for size.
17323 (ashlsi3): Likewise.
17324 (ashrhi3): Likewise.
17325 (ashrsi3): Likewise.
17326 (lshrhi3): Likewise.
17327 (lshrsi3): Likewise.
17328
17329 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
17330
17331 PR rtl-optimization/88751
17332 * ira.c (ira): Use the number of the actually referenced registers
17333 when calculating the threshold.
17334
17335 2019-06-06 Jakub Jelinek <jakub@redhat.com>
17336
17337 * configure: Regenerate.
17338
17339 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17340
17341 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
17342 register if it is in memory, so the shift can be emulated with a rotate
17343 instruction.
17344 (ashrhi3): Likewise.
17345 (lshrhi3): Likewise.
17346
17347 2019-06-06 Martin Liska <mliska@suse.cz>
17348
17349 PR tree-optimization/87954
17350 * match.pd: Simplify mult where both arguments are 0 or 1.
17351
17352 2019-06-06 Richard Biener <rguenther@suse.de>
17353
17354 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
17355 put equivalences on UNDEFINED ranges.
17356 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
17357 Make sure to drop defs of stmts added during simplification
17358 to VARYING.
17359
17360 2019-06-06 Richard Biener <rguenther@suse.de>
17361
17362 * tree-ssa-structalias.c: Include tree-cfg.h.
17363 (make_heapvar): Do not make heap vars artificial.
17364 (find_func_aliases_for_builtin_call): Handle stack allocation
17365 functions.
17366 (find_func_aliases): Delay processing of simple enough returns
17367 in non-IPA mode.
17368 (set_uids_in_ptset): Adjust.
17369 (find_what_var_points_to): Likewise.
17370 (solve_constraints): Do not dump points-to sets here.
17371 (compute_points_to_sets): Post-process return statements,
17372 amending the escaped solution. Dump points-to sets afterwards.
17373 (ipa_pta_execute): Dump points-to sets.
17374
17375 2019-06-06 Martin Liska <mliska@suse.cz>
17376
17377 PR web/87933
17378 * doc/install.texi: Fix HTML headers and
17379 titles for 'Installing GCC' pages.
17380
17381 2019-06-06 Martin Liska <mliska@suse.cz>
17382
17383 * ipa-icf-gimple.h (dump_message_1): Remove.
17384 (dump_message): Likewise.
17385 (return_false_with_message_1): Print also file.
17386 (return_false_with_msg): Likewise.
17387 (return_with_result): Likewise.
17388 (return_with_debug): Likewise.
17389 * ipa-icf.c (sem_function::equals_private): Remove call
17390 to dump_message.
17391
17392 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
17393
17394 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
17395 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
17396 memory operand for it.
17397 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
17398
17399 2019-06-05 Martin Sebor <msebor@redhat.com>
17400
17401 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
17402 Adjust quoting and hyphenation.
17403 * convert.c (convert_to_real_1): Same.
17404 * gcc.c (driver_wrong_lang_callback): Same.
17405 (driver::handle_unrecognized_options): Same.
17406 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
17407 * opts-common.c (cmdline_handle_error): Same.
17408 (read_cmdline_option): Same.
17409 * opts-global.c (complain_wrong_lang): Same.
17410 (print_ignored_options): Same.
17411 (handle_common_deferred_options): Same.
17412 * pretty-print.h: Same.
17413 * print-rtl.c (debug_bb_n_slim): Same.
17414 * sched-rgn.c (make_pass_sched_fusion): Same.
17415 * tree-cfg.c (verify_gimple_assign_unary): Same.
17416 (verify_gimple_label): Same.
17417 * tree-ssa-operands.c (verify_ssa_operands): Same.
17418 * varasm.c (do_assemble_alias): Same.
17419 (assemble_alias): Same.
17420
17421 2019-06-05 Richard Henderson <rth@twiddle.net>
17422
17423 * config/alpha/alpha.c (direct_return): Move down after
17424 struct machine_function definition; use saved frame_size;
17425 return bool.
17426 (struct machine_function): Add sa_mask, sa_size, frame_size.
17427 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
17428 (alpha_compute_frame_layout): ... new function.
17429 (TARGET_COMPUTE_FRAME_LAYOUT): New.
17430 (alpha_initial_elimination_offset): Use saved sa_size.
17431 (alpha_vms_initial_elimination_offset): Likewise.
17432 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
17433 (alpha_expand_prologue): Use saved frame data. Merge integer
17434 and fp register save loops.
17435 (alpha_expand_epilogue): Likewise.
17436 (alpha_start_function): Use saved frame data.
17437 * config/alpha/alpha-protos.h (direct_return): Update.
17438 (alpha_sa_size): Remove.
17439
17440 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
17441
17442 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
17443 multiplication by a power-of-two value.
17444 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
17445 and turn the modulo operation into a masking operation.
17446
17447 2019-06-05 Jakub Jelinek <jakub@redhat.com>
17448
17449 PR debug/90733
17450 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
17451 with VOIDmode inner operands.
17452
17453 2019-06-05 Richard Biener <rguenther@suse.de>
17454
17455 PR middle-end/90726
17456 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
17457 turn an expression graph into a tree.
17458
17459 2019-06-05 Jakub Jelinek <jakub@redhat.com>
17460
17461 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
17462 member.
17463 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
17464 treat it like explicit monotonic schedule modifier.
17465 (expand_omp_for): Initialize has_lastprivate_conditional.
17466 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
17467 schedule modifier.
17468
17469 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
17470 references, lookup in in hash map MEM_REF operand instead of the
17471 MEM_REF itself.
17472 (lower_omp_1): When looking for lastprivate conditional assignments,
17473 handle MEM_REFs with REFERENCE_TYPE operands.
17474
17475 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
17476 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
17477 and references a VLA. Handle references to non-VLAs if is_simd
17478 all privatization clauses like reductions.
17479 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
17480 If omp_is_reference, use always omp simd arrays and set
17481 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
17482 fails, emit reference initialization.
17483
17484 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
17485
17486 PR target/89803
17487 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
17488 _mm_mask_fpclass_sd_mask): New intrinsics.
17489 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
17490 * config/i386/i386-builtin.def
17491 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
17492 New builtins.
17493 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
17494 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
17495 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
17496 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
17497 case QI_FTYPE_V2SF_INT): Ditto.
17498 * config/i386/sse.md
17499 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
17500 Extended to insnstructions with mask operands.
17501
17502 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17503
17504 * config/rs6000/constraints.md (define_register_constraint "wp"):
17505 Delete.
17506 (define_register_constraint "wq"): Delete.
17507 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17508 (rs6000_init_hard_regno_mode_ok): Adjust.
17509 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17510 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
17511 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
17512 (define_mode_attr VSa): Delete.
17513 (define_mode_attr VSisa): New.
17514 (rest of file): Adjust.
17515 * doc/md.texi (Machine Constraints): Adjust.
17516
17517 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17518
17519 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
17520 (define_attr "enabled"): Handle those new isa values.
17521
17522 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17523
17524 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
17525 (define_mode_attr VSr5): Delete.
17526 (define_mode_attr VStype_sqrt): Delete.
17527 (define_mode_iterator VSX_SPDP): Delete.
17528 (define_mode_attr VS_spdp_res): Delete.
17529 (define_mode_attr VS_spdp_insn): Delete.
17530 (define_mode_attr VS_spdp_type): Delete.
17531 (*vsx_sqrt<mode>2): Adjust.
17532 (vsx_<VS_spdp_insn>): Delete, split to...
17533 (vsx_xscvdpsp): ... this. New. And...
17534 (vsx_xvcvspdp): ... this. New. And...
17535 (vsx_xvcvdpsp): ... this. New.
17536
17537 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17538
17539 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
17540 and V2DF.
17541 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
17542 (rest of file): Adjust.
17543
17544 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17545
17546 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
17547 (vsx_extract_<mode>_var): Ditto.
17548
17549 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17550
17551 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
17552 with just "wa".
17553
17554 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17555
17556 * config/rs6000/constraints.md (define_register_constraint "ww"):
17557 Delete.
17558 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17559 (rs6000_init_hard_regno_mode_ok): Adjust.
17560 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17561 RS6000_CONSTRAINT_ww.
17562 * config/rs6000/rs6000.md: Adjust.
17563 * config/rs6000/vsx.md: Adjust.
17564 * doc/md.texi (Machine Constraints): Adjust.
17565
17566 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17567
17568 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
17569 (define_mode_attr sd): New.
17570 (define_mode_attr s): New.
17571 (define_mode_attr Ftrad): Delete.
17572 (define_mode_attr Fvsx): Delete.
17573 (define_mode_attr Fs): Delete.
17574 (rest of file): Use the new mode attributes.
17575 * config.rs6000/vsx.md: Use the new mode attributes.
17576
17577 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17578
17579 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
17580 with just "wa".
17581
17582 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17583
17584 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
17585 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
17586 used with VSX_B, VSX_D, or VSX_F, with just "wa".
17587
17588 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
17589
17590 PR target/78263
17591 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
17592 C++ with strict ANSI requirements.
17593
17594 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
17595
17596 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
17597 computations when step is 1.
17598
17599 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17600
17601 * config/rs6000/constraints.md (define_register_constraint "wf"):
17602 Delete.
17603 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17604 (rs6000_init_hard_regno_mode_ok): Adjust.
17605 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17606 RS6000_CONSTRAINT_wf.
17607 * config/rs6000/rs6000.md: Adjust.
17608 * config/rs6000/vsx.md: Adjust.
17609 * doc/md.texi (Machine Constraints): Adjust.
17610
17611 2019-06-04 Andrew Pinski <apinski@marvell.com>
17612
17613 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
17614 Fix ILP32 value.
17615
17616 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17617
17618 * config/rs6000/constraints.md (define_register_constraint "wd"):
17619 Delete.
17620 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17621 (rs6000_init_hard_regno_mode_ok): Adjust.
17622 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17623 RS6000_CONSTRAINT_wd.
17624 * config/rs6000/rs6000.md: Adjust.
17625 * config/rs6000/vsx.md: Adjust.
17626 * doc/md.texi (Machine Constraints): Adjust.
17627
17628 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17629
17630 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
17631 (rest of file): Adjust.
17632
17633 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17634
17635 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
17636 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
17637 (vsx_splat_<mode>_reg): Adjust.
17638
17639 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17640
17641 * config/rs6000/constraints.md (define_register_constraint "ws"):
17642 Delete.
17643 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17644 (rs6000_init_hard_regno_mode_ok): Adjust.
17645 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17646 RS6000_CONSTRAINT_ws.
17647 * config/rs6000/rs6000.md: Adjust.
17648 * config/rs6000/vsx.md: Adjust.
17649 * doc/md.texi (Machine Constraints): Adjust.
17650
17651 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17652
17653 * config/rs6000/constraints.md (define_register_constraint "wv"):
17654 Delete.
17655 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17656 (rs6000_init_hard_regno_mode_ok): Adjust.
17657 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17658 RS6000_CONSTRAINT_wv.
17659 * config/rs6000/rs6000.md: Adjust.
17660 * config/rs6000/vsx.md: Adjust.
17661 * doc/md.texi (Machine Constraints): Adjust.
17662
17663 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
17664
17665 * config/rs6000/constraints.md (define_register_constraint "wi"):
17666 Delete.
17667 (define_register_constraint "wt"): Delete.
17668 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17669 (rs6000_init_hard_regno_mode_ok): Adjust.
17670 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17671 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
17672 * config/rs6000/rs6000.md: Adjust.
17673 * config/rs6000/vsx.md: Adjust.
17674 * doc/md.texi (Machine Constraints): Adjust.
17675
17676 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
17677
17678 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
17679 const.
17680 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
17681 default_elf_asm_output_external.
17682
17683 2019-06-04 Martin Liska <mliska@suse.cz>
17684
17685 * ipa-icf.c (INCLUDE_LIST): Remove.
17686 (sem_item_optimizer::execute): Remove call to init_wpa.
17687 * ipa-icf.h (init_wpa): Remove.
17688
17689 2019-06-04 Jakub Jelinek <jakub@redhat.com>
17690
17691 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
17692 conditional on combined for simd.
17693 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
17694 member.
17695 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
17696 constructs, don't remove lastprivate_conditional_map, but instead set
17697 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
17698 to parent construct temporaries.
17699 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
17700 like !ctx->lastprivate_conditional_map.
17701 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
17702 use up->outer context instead of up.
17703 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
17704 gimple_omp_for_combined_p.
17705 (expand_omp_for_static_nochunk): Likewise.
17706 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
17707 probably moved over into expand_omp_for_generic rather than being copied
17708 there.
17709
17710 2019-06-04 Martin Liska <mliska@suse.cz>
17711
17712 * value-prof.c (dump_histogram_value): Fix typo.
17713 (gimple_mod_subtract_transform): Likewise.
17714
17715 2019-06-04 Richard Biener <rguenther@suse.de>
17716
17717 PR middle-end/90726
17718 * tree-chrec.c (chrec_contains_symbols): Add to visited.
17719 (tree_contains_chrecs): Likewise.
17720 (chrec_contains_symbols_defined_in_loop): Move here and avoid
17721 exponential behaivor from ...
17722 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
17723 ... here.
17724 (expression_expensive_p): Avoid exponential behavior and compute
17725 expanded size, rejecting any expansion.
17726 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
17727 (idx_contains_abnormal_ssa_name_p): Likewise.
17728 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
17729 (contains_abnormal_ssa_name_p): Simplify and use
17730 walk_tree_without_duplicates.
17731
17732 2019-06-04 Richard Biener <rguenther@suse.de>
17733
17734 PR tree-optimization/90738
17735 Revert
17736 2019-06-03 Richard Biener <rguenther@suse.de>
17737
17738 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
17739 full reference tree and record in ref->ref.
17740 (vn_reference_lookup_3): Pass in original ref to
17741 ao_ref_init_from_vn_reference.
17742 (vn_reference_lookup): Likewise.
17743 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
17744 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
17745 Handle non-decl bases in the original reference.
17746
17747 2019-06-04 Martin Liska <mliska@suse.cz>
17748
17749 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
17750 number of references.
17751 (sem_item_optimizer::do_congruence_step):
17752 (sem_item_optimizer::worklist_push): Dump how references
17753 a class has.
17754 (sem_item_optimizer::worklist_pop): Use heap.
17755 (sem_item_optimizer::process_cong_reduction): Likewise.
17756 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
17757
17758 2019-06-04 Martin Liska <mliska@suse.cz>
17759
17760 * ipa-icf.h (struct sem_usage_pair_hash): New.
17761 (sem_usage_pair_hash::hash): Likewise.
17762 (sem_usage_pair_hash::equal): Likewise.
17763 (struct sem_usage_hash): Likewise.
17764 * ipa-icf.c (sem_item::sem_item): Initialize
17765 referenced_by_count.
17766 (sem_item::add_reference): Register a reference
17767 in ref_map and not in target->usages.
17768 (sem_item::setup): Remove initialization of
17769 dead vectors.
17770 (sem_item::~sem_item): Remove usage of dead vectors.
17771 (sem_item::dump): Remove dump of references.
17772 (sem_item_optimizer::sem_item_optimizer): Initialize
17773 m_references.
17774 (sem_item_optimizer::read_section): Remove useless
17775 dump.
17776 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
17777 (sem_item_optimizer::build_graph): Pass m_references
17778 to ::add_reference.
17779 (sem_item_optimizer::verify_classes): Remove usage of dead
17780 vectors.
17781 (sem_item_optimizer::traverse_congruence_split): Return true
17782 when a class is split.
17783 (sem_item_optimizer::do_congruence_step_for_index): Use
17784 hash_map for look up of (sem_item *, index). That brings
17785 significant speed up.
17786 (sem_item_optimizer::do_congruence_step): Return true
17787 when a split is done.
17788 (congruence_class::is_class_used): Use referenced_by_count.
17789
17790 2019-06-04 Alan Modra <amodra@gmail.com>
17791
17792 PR target/90689
17793 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
17794 error.
17795
17796 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
17797
17798 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
17799 * config/rs6000/rs6000.c (direct_move_p): Adjust.
17800 (rs6000_secondary_reload_simple_move): Adjust.
17801 (rs6000_opt_masks): Neuter the "mfpgpr" option.
17802 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
17803 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
17804 comment.
17805 (power6x): Adjust.
17806 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
17807 (floatunssi<mode>2_lfiwzx): Adjust.
17808 (fix_trunc<mode>si2_stfiwx): Adjust.
17809 (fixuns_trunc<mode>si2_stfiwx): Adjust.
17810 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
17811 (mfpgpr): Mark as deprecated.
17812 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
17813 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
17814 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
17815
17816 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
17817
17818 * config/rs6000/constraints.md (define_register_constraint "wg"):
17819 Delete.
17820 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17821 RS6000_CONSTRAINT_wg.
17822 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17823 (rs6000_init_hard_regno_mode_ok): Adjust.
17824 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
17825 Delete "wg" alternatives.
17826 * doc/md.texi (Machine Constraints): Adjust.
17827
17828 2019-06-03 Alan Modra <amodra@gmail.com>
17829
17830 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
17831 (get_uncond_jump_length): Assert length less than INT_MAX and
17832 non-negative.
17833
17834 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
17835
17836 PR middle-end/64242
17837 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
17838 block.
17839 (expand_builtin_nonlocal_goto): Likewise.
17840
17841 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
17842
17843 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
17844 (aarch64_asm_output_external): Declare.
17845 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
17846 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
17847 (aarch64_asm_output_alias): New.
17848 (aarch64_asm_output_external): New.
17849 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
17850 (ASM_OUTPUT_EXTERNAL): Define.
17851
17852 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
17853 * tree-vrp.h (value_range_base::nonzero_p): New.
17854 (value_range_base::set_nonnull): Rename to...
17855 (value_range_base::set_nonzero): ...this.
17856 (value_range_base::set_null): Rename to...
17857 (value_range_base::set_zero): ...this.
17858 (value_range::set_nonnull): Remove.
17859 (value_range::set_null): Remove.
17860 * tree-vrp.c (range_is_null): Remove.
17861 (range_is_nonnull): Remove.
17862 (extract_range_from_binary_expr): Use value_range_base::*zero_p
17863 instead of range_is_*null.
17864 (extract_range_from_unary_expr): Same.
17865 (value_range_base::set_nonnull): Rename to...
17866 (value_range_base::set_nonzero): ...this.
17867 (value_range::set_nonnull): Remove.
17868 (value_range_base::set_null): Rename to...
17869 (value_range_base::set_zero): ...this.
17870 (value_range::set_null): Remove.
17871 (extract_range_from_binary_expr): Rename set_*null uses to
17872 set_*zero.
17873 (extract_range_from_unary_expr): Same.
17874 (union_helper): Same.
17875 * vr-values.c (get_value_range): Use set_*zero instead of
17876 set_*null.
17877 (vr_values::extract_range_from_binary_expr): Same.
17878 (vr_values::extract_range_basic): Same.
17879
17880 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
17881
17882 PR driver/90684
17883 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
17884
17885 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17886
17887 * config/aarch64/iterators.md (MAX_OPP): New code attr.
17888 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
17889 Rename to...
17890 (aarch64_<su>abd<mode>_3): ... This.
17891 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
17892
17893 2019-06-03 Richard Biener <rguenther@suse.de>
17894
17895 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
17896 full reference tree and record in ref->ref.
17897 (vn_reference_lookup_3): Pass in original ref to
17898 ao_ref_init_from_vn_reference.
17899 (vn_reference_lookup): Likewise.
17900 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
17901 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
17902 Handle non-decl bases in the original reference.
17903
17904 2019-06-03 Martin Liska <mliska@suse.cz>
17905
17906 * doc/generic.texi: Remove Java Trees.
17907
17908 2019-06-03 Martin Liska <mliska@suse.cz>
17909
17910 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
17911 returns 0 when operands are equal.
17912
17913 2019-06-03 Richard Biener <rguenther@suse.de>
17914
17915 PR tree-optimization/90716
17916 * tree-loop-distribution.c (destroy_loop): Process blocks in
17917 correct order.
17918
17919 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17920
17921 PR target/88837
17922 * vector-builder.h (vector_builder::count_dups): New method.
17923 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
17924 Declare prototype.
17925 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
17926 (vec_init<mode><Vel>): New pattern.
17927 * config/aarch64/aarch64.c (emit_insr): New function.
17928 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
17929 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
17930 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
17931 (aarch64_sve_expand_vector_init): Define two overloaded functions.
17932
17933 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17934
17935 PR tree-optimization/90681
17936 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
17937 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
17938 special case for SLP, but fail on non-groupped loads.
17939
17940 2019-06-03 Martin Liska <mliska@suse.cz>
17941
17942 * cfg.c (debug): Use TDF_DETAILS for debug and
17943 print edge info only once.
17944
17945 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
17946
17947 PR fortran/90539
17948 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
17949
17950 2019-06-01 Martin Sebor <msebor@redhat.com>
17951
17952 PR middle-end/90694
17953 * tree-pretty-print.c (dump_generic_node): Add parentheses.
17954
17955 2019-05-31 Jan Hubicka <jh@suse.cz>
17956
17957 * alias.c: Include ipa-utils.h.
17958 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
17959 * ipa-devirt.c (prevailing_odr_type): New.
17960 * ipa-utils.h (previaling_odr_type): Declare.
17961
17962 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
17963 Hongtao Liu <hongtao.liu@intel.com>
17964
17965 PR target/89355
17966 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
17967 NOTE_INSN_DELETED_LABEL check.
17968
17969 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
17970 Robert Suchanek <robert.suchanek@mips.com>
17971
17972 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
17973 and 3rd operands of the fmadd/fmsub/maddv builtin.
17974
17975 2019-05-31 Jakub Jelinek <jakub@redhat.com>
17976
17977 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
17978 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
17979 on OMP_SIMD if not nested inside of worksharing loop that also has
17980 lastprivate conditional clause for the same decl.
17981 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
17982 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
17983 on simd.
17984 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
17985 on simd construct.
17986 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
17987 on simd construct.
17988 (lower_lastprivate_clauses): Likewise.
17989 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
17990 calling lower_rec_input_clauses.
17991 (lower_omp_for): Likewise.
17992 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
17993 clause on simd construct.
17994 * omp-expand.c (expand_omp_simd): Initialize cond_var if
17995 OMP_CLAUSE__CONDTEMP_ clause is present.
17996
17997 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
17998 ivar and lvar.
17999
18000 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
18001
18002 PR c/43673
18003 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
18004 TEX_D32, TEX_D64 or TEX_D128.
18005
18006 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
18007
18008 * match.pd (~(vec?cst1:cst2)): New transformation.
18009
18010 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
18011
18012 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
18013 ((size_t)(A /[ex] B) CMP C): New transformation.
18014
18015 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
18016
18017 * doc/md.texi: Document define_insn_and_rewrite.
18018 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
18019 * gensupport.c (queue_elem): Update comment.
18020 (replace_operands_with_dups): New function.
18021 (gen_rewrite_sequence): Likewise.
18022 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
18023 * read-rtl.c (apply_subst_iterator): Likewise.
18024 (add_condition_to_rtx, named_rtx_p): Likewise.
18025 (rtx_reader::read_rtx_operand): Likewise.
18026 * config/aarch64/aarch64-sve.md
18027 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
18028 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
18029 define_insn_and_rewrite.
18030 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
18031 Remove separate define_split.
18032
18033 2019-05-31 Jan Hubicka <jh@suse.cz>
18034
18035 * tree-ssa-alias.c (type_has_components_p): New function.
18036 (aliasing_component_refs_p): Use it.
18037
18038 2019-05-31 Martin Liska <mliska@suse.cz>
18039
18040 * gdbhooks.py: Add const_tree to TreePrinter.
18041
18042 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
18043
18044 PR debug/86964
18045 * common.opt (feliminate-unused-debug-symbols): Enable by default.
18046 * doc/invoke.texi (Debugging Options): Document new default of
18047 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
18048
18049 2019-05-31 Jakub Jelinek <jakub@redhat.com>
18050
18051 PR tree-optimization/90671
18052 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
18053 template_block used to be empty on the first call, don't use
18054 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
18055 seq with bb_seq and set it with set_bb_seq.
18056
18057 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
18058
18059 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
18060
18061 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
18062 Michael Meissner <meissner@linux.ibm.com>
18063
18064 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
18065 (prefixed_mem_operand): Likewise.
18066 (non_prefixed_mem_operand): Likewise.
18067 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
18068 prototype.
18069 * config/rs6000/rs6000.c (print_operand_address): Handle
18070 PC-relative addresses.
18071 (mode_supports_prefixed_address_p): New function.
18072 (rs6000_prefixed_address): New function.
18073 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
18074 (SYMBOL_REF_PCREL_P): Likewise.
18075
18076 2019-05-30 Jakub Jelinek <jakub@redhat.com>
18077
18078 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
18079 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
18080 (gimplify_omp_for): If worksharing loop with lastprivate conditional
18081 is nested inside of parallel region, add _condtemp_ clause to both.
18082 * tree-nested.c (convert_nonlocal_omp_clauses,
18083 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
18084 assertion failure.
18085 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
18086 member.
18087 * omp-general.c (omp_extract_for_data): Compute it.
18088 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
18089 (lower_rec_input_clauses): Likewise.
18090 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
18091 clause is already present, just add one further one after it.
18092 (lower_lastprivate_clauses): Handle cond_ptr with array type.
18093 (lower_send_shared_vars): Clear _condtemp_ vars.
18094 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
18095 or section or taskgroup.
18096 * omp-expand.c (determine_parallel_type): Disallow combining only if
18097 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
18098 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
18099 (expand_omp_for_generic, expand_omp_for_static_nochunk,
18100 expand_omp_for_static_chunk, expand_omp_for): Use
18101 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
18102 determine if a special set of API routines are needed and if condtemp
18103 needs to be initialized, while always initialize cond_var if
18104 fd->lastprivate_conditional is non-zero.
18105
18106 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
18107 Michael Meissner <meissner@linux.ibm.com>
18108
18109 * config/rs6000/constraints.md (eI): New constraint.
18110 * config/rs6000/predicates.md (cint34_operand): New predicate.
18111 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
18112 (SIGNED_34BIT_OFFSET_P): Likewise.
18113 * doc/md.texi (eI): Document constraint.
18114
18115 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
18116
18117 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
18118
18119 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
18120 Michael Meissner <meissner@linux.ibm.com>
18121
18122 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
18123 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
18124 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
18125 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
18126 (OTHER_FUTURE_MASKS): Likewise.
18127 (POWERPC_MASKS): Likewise.
18128 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
18129 specified without -mprefixed-addr or -mcpu=future. Error if
18130 -mprefixed-addr is specified without -mcpu=future.
18131 (rs6000_opt_masks): Add entry for prefixed-addr.
18132 * rs6000.opt (mprefixed-addr): New option.
18133
18134 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
18135
18136 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
18137 cfun->is_thunk check.
18138
18139 2019-05-30 Jakub Jelinek <jakub@redhat.com>
18140
18141 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
18142 to length.
18143
18144 2019-05-30 Martin Liska <mliska@suse.cz>
18145
18146 * gdbinit.in: Fix 'ptc' command. Add trt
18147 that prints TREE_TYPE($).
18148
18149 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
18150 Alan Modra <amodra@gmail.com>
18151
18152 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
18153 calls here...
18154 (rs6000_indirect_call_template_1): ...and here.
18155 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
18156 plt16_ha, plt16_lo, mtctr indirect calls. Use
18157 rs6000_pltseq_enum.
18158 (rs6000_decl_ok_for_sibcall): New function.
18159 (rs6000_function_ok_for_sibcall): Refactor.
18160 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
18161 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
18162 when pcrel. Reorganize.
18163 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
18164 * rs6000.h (rs6000_pltseq_enum): New enum.
18165 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
18166 (*pltseq_tocsave): Use rs6000_pltseq_enum.
18167 (*pltseq_plt16_ha): Likewise.
18168 (*pltseq_plt16_lo): Likewise.
18169 (*pltseq_mtctr): Likewise.
18170 (*pltseq_plt_pcrel): New insn.
18171 (*call_local_aix): Handle @notoc calls.
18172 (*call_value_local_aix): Likewise.
18173 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
18174 (*call_value_nonlocal_aix): Likewise.
18175 (*call_indirect_pcrel): New insn.
18176 (*call_value_indirect_pcrel): Likewise.
18177
18178 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
18179
18180 * config/i386/sse.md (*save_multiple<mode>): Rename from
18181 save_multiple<mode>.
18182 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
18183 (*restore_multiple_and_return<mode>): Rename from
18184 restore_multiple_and_return<mode>.
18185 (*restore_multiple_leave_return<mode>): Rename from
18186 restore_multiple_leave_return<mode>.
18187
18188 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
18189
18190 * config.gcc (rx-*-linux*): New target.
18191 * config/rx/elf.opt: New file.
18192 * config/rx/linux.h: Likewise.
18193 * config/rx/t-linux: Likewise.
18194 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
18195 make it zero.
18196 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
18197 (ASM_APP_OFF): Likewise.
18198 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
18199 moved elsewhere.
18200
18201 2019-05-29 Jan Hubicka <jh@suse.cz>
18202
18203 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
18204 variants are pointer equivalent.
18205
18206 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
18207
18208 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
18209 * config/aarch64/aarch64-sve2.md: New file.
18210 (<u>avg<mode>3_floor): New pattern.
18211 (<u>avg<mode>3_ceil): Likewise.
18212 (*<sur>h<addsub><mode>): Likewise.
18213 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
18214 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
18215
18216 2019-05-29 Jakub Jelinek <jakub@redhat.com>
18217
18218 PR bootstrap/90543
18219 * optc-save-gen.awk: In cl_optimization_print, use correct condition
18220 for var_opt_string printing. In cl_optimization_print_diff, print
18221 (null) instead of invoking undefined behavior if one of the
18222 var_opt_string pointers is NULL and use && instead of first || in the
18223 guarding condition. For var_target_other options, handle const char *
18224 target variables similarly to const char * optimize node variables.
18225
18226 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
18227
18228 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
18229 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
18230 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
18231 Add autib1716 and pacib1716 initialisation.
18232 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
18233 for autib1716 and pacib1716.
18234 * config/aarch64/aarch64-protos.h (aarch64_key_type,
18235 aarch64_post_cfi_startproc): Define.
18236 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
18237 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
18238 aarch64_handle_pac_ret_protection): Set default sign key to A.
18239 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
18240 aarch64_expand_prologue): Add check for b-key.
18241 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
18242 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
18243 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
18244 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
18245 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
18246 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
18247 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
18248 * config/aarch64/aarch64.md (do_return): Add check for b-key.
18249 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
18250 pauth_hint_num_a with pauth_hint_num.
18251 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
18252 pauth_hint_num_a with pauth_hint_num.
18253 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
18254 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
18255 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
18256 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
18257 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
18258 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
18259 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
18260 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
18261 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
18262 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
18263 UNSPEC_AUTIA1716 respectively.
18264 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
18265 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
18266 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
18267 * doc/invoke.texi (-mbranch-protection): Add b-key type.
18268 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
18269 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
18270
18271 2019-05-29 Jakub Jelinek <jakub@redhat.com>
18272
18273 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
18274 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
18275 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
18276 explicit clause on combined parallel into implicit shared clause.
18277 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
18278 and firstprivate if the decl has one too from combined parallel to
18279 the worksharing construct.
18280
18281 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
18282 Michael Meissner <meissner@linux.ibm.com>
18283
18284 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
18285
18286 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
18287
18288 * rtl.h (LABEL_REF_P): New #define.
18289
18290 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
18291
18292 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
18293
18294 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
18295
18296 * internal-fn.c: Marked mask_load_direct as vectorizable.
18297 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
18298 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
18299 combined even if masks different with allow_slp_p param.
18300 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
18301 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
18302 dissolve SLP-only vectorizable groups when SLP has been discarded.
18303 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
18304 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
18305 masks.
18306 (vect_build_slp_tree_1): Fixed comment typo.
18307 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
18308 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
18309 loads for SLP only.
18310 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
18311 vectorizable.
18312 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
18313
18314 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18315
18316 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
18317 Remove obsolete use_thunk reference.
18318 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
18319 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
18320 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
18321 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
18322 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18323 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18324 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18325 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
18326 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
18327
18328 2019-05-28 Nathan Sidwell <nathan@acm.org>
18329
18330 * tree.h (IDENTIFIER_ANON_P): New.
18331 (anon_aggrname_format, anon_aggname_p): Don't declare.
18332 (make_anon_name): Declare.
18333 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
18334 (hash_tree): Likewise.
18335 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
18336 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
18337 (anon_cnt, make_anon_name): New.
18338
18339 2019-05-28 Martin Liska <mliska@suse.cz>
18340
18341 PR other/90315
18342 * opts-global.c (decode_options): Print help for all
18343 help_option_arguments.
18344 * opts.c (print_help): Add new argument.
18345 (common_handle_option): Remember all values into
18346 help_option_arguments.
18347 * opts.h (print_help): Add new argument.
18348
18349 2019-05-28 Martin Liska <mliska@suse.cz>
18350
18351 PR ipa/90555
18352 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
18353 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
18354 (func_checker::compare_bb): Call compare_loops.
18355
18356 2019-05-27 Jakub Jelinek <jakub@redhat.com>
18357
18358 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
18359 on sections construct.
18360 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
18361 construct.
18362 (lower_omp_sections): Handle lastprivate conditional.
18363 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
18364 lastprivate_conditional_map.
18365 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
18366
18367 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
18368 critical, taskgroup and section regions when looking for a region
18369 with non-NULL lastprivate_conditional_map.
18370
18371 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
18372
18373 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
18374 (*ix86_gen_sub3): Ditto.
18375 (*ix86_gen_sub3_carry): Ditto.
18376 (*ix86_gen_one_cmpl2): Ditto.
18377 (*ix86_gen_andsp): Ditto.
18378 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
18379 (gen_and2_insn): New static function.
18380 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
18381 Use gen_add3_insn instead of ix86_gen_add3.
18382 (ix86_expand_split_stack_prologue): Use gen_add2_insn
18383 instead of ix86_gen_add3.
18384 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
18385 Use gen_sub3_insn instead of ix86_gen_sub3.
18386 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
18387 instead of ix86_gen_add3.
18388 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
18389 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
18390 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
18391 * config/i386/i386-options.c (ix86_option_override_internal):
18392 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
18393 ix86_gen_one_cmpl2 and ix86_gen_andsp.
18394
18395 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
18396
18397 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
18398 and DW_OP_GNU_const_index opcodes.
18399
18400 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
18401
18402 * config/i386/i386.h (STACK_SIZE_MODE): Define.
18403
18404 2019-05-27 Richard Biener <rguenther@suse.de>
18405
18406 PR tree-optimization/90637
18407 * tree-ssa-sink.c (statement_sink_location): Honor the
18408 computed sink location for single-uses.
18409
18410 2019-05-27 Richard Biener <rguenther@suse.de>
18411
18412 PR middle-end/90610
18413 * match.pd (vec_perm): Avoid clobbering op0 when not generating
18414 a bit-insert.
18415
18416 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
18417
18418 * config/i386/i386.md (@sub<mode>3_carry): Rename
18419 from sub<mode>3_carry.
18420 (@leave_<mode>): New expander.
18421 (*leave): Rename from leave.
18422 (*leave_rex64): Rename from leave_rex64.
18423 (@monitorx_<mode>): Rename from monitorx_<mode>.
18424 (@clzero_<mode>): Rename from clzero_<mode>.
18425 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
18426 from sse3_monitor_<mode>.
18427 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
18428 (*ix86_gen_leave): Ditto.
18429 (*ix86_gen_monitor): Ditto.
18430 (*ix86_gen_monitorx): Ditto.
18431 (*ix86_gen_clzero): Ditto.
18432 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
18433 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
18434 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
18435 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
18436 Use gen_sse3_monitor instead of ix86_gen_monitor.
18437 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
18438 instead of ix86_gen_monitorx.
18439 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
18440 instead of ix86_gen_clzero.
18441 * config/i386/i386-options.c (ix86_option_override_internal):
18442 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
18443 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
18444
18445 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
18446
18447 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
18448 Rename from tls_global_dynamic_64_<mode>.
18449 (@tls_local_dynamic_base_64_<mode>): Rename from
18450 tls_local_dynamic_base_64_<mode>.
18451 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
18452 Remove indirect function.
18453 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
18454 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
18455 instead of ix86_gen_tls_global_dynamic_64.
18456 Use gen_tls_local_dynamic_base_64 instead of
18457 ix86_gen_tls_local_dynamic_base_64.
18458 * config/i386/i386-options.c (ix86_option_override_internal):
18459 Do not initialize ix86_gen_tls_global_dynamic_64 and
18460 ix86_gen_tls_local_dynamic_base_64.
18461
18462 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
18463
18464 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
18465 Rename from pro_epilogue_adjust_stack_<mode>_add.
18466 (@pro_epilogue_adjust_stack_sub_<mode>)
18467 Rename from pro_epilogue_adjust_stack_<mode>_sub.
18468 (@allocate_stack_worker_probe_<mode>):
18469 Rename from allocate_stack_worker_probe_<mode>.
18470 (allocate_stack): Use gen_allocate_stack_worker_probe.
18471 (probe_stack): Use gen_probe_stack_1.
18472 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
18473 (@adjust_stack_and_probe_<mode>): Rename from
18474 adjust_stack_and_probe<mode>.
18475 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
18476 (stack_protect_set): Use gen_stack_protect_set_1.
18477 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
18478 (stack_protect_test): Use gen_stack_protect_test_1.
18479 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
18480 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
18481 Remove indirect function.
18482 (*ix86_gen_adjust_stack_and_probe): Ditto.
18483 (*ix86_gen_probe_stack_range): Ditto.
18484 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
18485 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
18486 (ix86_adjust_stack_and_probe_stack_clash): Use
18487 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
18488 (ix86_adjust_stack_and_probe): Ditto.
18489 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
18490 of ix86_gen_probe_stack_range.
18491 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
18492 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
18493 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
18494 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
18495 CODE_FOR_stack_protect_test_{si,di}.
18496 * config/i386/i386-options.c (ix86_option_override_internal):
18497 Do not initialize ix86_gen_allocate_stack_worker,
18498 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
18499
18500 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
18501
18502 * doc/invoke.texi (Link Options): Many editorial changes around
18503 -flinker-output.
18504
18505 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18506
18507 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
18508 pre-Solaris 11 referene and most Studio compiler details.
18509
18510 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
18511
18512 PR target/90530
18513 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
18514 DImode to SImode in floating-point registers on 64-bit target.
18515 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
18516 register_operand in xmpyu patterns.
18517
18518 2019-05-24 Jakub Jelinek <jakub@redhat.com>
18519
18520 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
18521 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
18522 OMP_CLAUSE__REDUCTEMP_.
18523 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18524 OMP_CLAUSE__CONDTEMP_.
18525 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
18526 * tree-pretty-print.c (dump_omp_clause): Likewise.
18527 * tree-nested.c (convert_nonlocal_omp_clauses,
18528 convert_local_omp_clauses): Likewise.
18529 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
18530 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
18531 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
18532 on OMP_FOR.
18533 (gimplify_omp_for): Warn and disable conditional modifier from
18534 lastprivate on loop iterators.
18535 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
18536 member.
18537 * omp-general.c (omp_extract_for_data): Initialize it.
18538 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
18539 member.
18540 (delete_omp_context): Delete it.
18541 (lower_lastprivate_conditional_clauses): New function.
18542 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
18543 handle lastprivate conditional clauses.
18544 (lower_reduction_clauses): Add CLIST argument, emit it into
18545 the critical section if any.
18546 (lower_omp_sections): Adjust lower_lastprivate_clauses and
18547 lower_reduction_clauses callers.
18548 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
18549 to lower_lastprivate_clauses.
18550 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
18551 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
18552 clist into a critical section if not emitted there already by
18553 lower_reduction_clauses.
18554 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
18555 callers.
18556 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
18557 conditional variables.
18558 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
18559 clause is present.
18560 (expand_omp_for_generic, expand_omp_for_static_nochunk,
18561 expand_omp_for_static_chunk): Handle lastprivate conditional.
18562 (expand_omp_for): Handle fd.lastprivate_conditional like
18563 fd.have_reductemp.
18564
18565 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
18566
18567 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
18568 kernel does not exit cleanly.
18569 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
18570
18571 2019-05-24 Jason Merrill <jason@redhat.com>
18572
18573 Revert:
18574 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
18575
18576 2019-05-24 Richard Biener <rguenther@suse.de>
18577
18578 PR testsuite/90607
18579 * tree-loop-distribution.c (struct partition): Add location
18580 member.
18581 (partition_alloc): Initialize all fields.
18582 (generate_memset_builtin): Use the location recorded in the
18583 partition for the generated call.
18584 (generate_memcpy_builtin): Likewise.
18585 (classify_partition): Record the location of a single store
18586 as location for the partition.
18587
18588 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
18589
18590 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
18591 for lo-part.
18592
18593 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
18594
18595 PR target/90588
18596 * common/config/aarch64/aarch64-common.c
18597 (aarch64_rewrite_selected_cpu): Change local temporary variable
18598 type from unsigned long to uint64_t.
18599 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
18600 aarch64_get_extension_string_for_isa_flags): Change declaration to
18601 match new definition by replacing unsigned long with uint64_t.
18602
18603 2019-05-24 Jakub Jelinek <jakub@redhat.com>
18604
18605 PR target/90568
18606 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
18607 gen_attr_type just once instead of 4-7 times. Formatting fixes.
18608 Handle stack_protect_test_<mode> codegen similarly to corresponding
18609 sub instruction.
18610
18611 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
18612
18613 * config/i386/darwin.h: Reject -mfentry*.
18614 * doc/sourcebuild.texi: Document mfentry target support.
18615
18616 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
18617
18618 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
18619 Rename to rs6000_global_entry_point_prologue_needed_p. Return
18620 false for PC-relative functions.
18621 (rs6000_output_function_prologue): Change called function name to
18622 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
18623 name,1" for PC-relative functions.
18624 (rs6000_elf_declare_function_name): Change called function name to
18625 rs6000_global_entry_point_prologue_needed_p.
18626
18627 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
18628
18629 PR target/90552
18630 * config/i386/i386.c (gen_rtx_cost):
18631 Use ix86_tune_cost instead of ix86_cost.
18632
18633 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
18634 Michael Meissner <meissner@linux.ibm.com>
18635 Segher Boessenkool <segher@kernel.crashing.org>
18636
18637 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
18638 OPTION_MASK_PCREL.
18639 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
18640 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
18641 (rs6000_fndecl_pcrel_p): Likewise.
18642 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
18643 error if -mpcrel is requested without -mcpu=future.
18644 (rs6000_opt_masks): Add entry for pcrel.
18645 (rs6000_fndecl_pcrel_p): New function.
18646 (rs6000_pcrel_p): Likewise.
18647 * config/rs6000/rs6000.opt (mpcrel): New option.
18648 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
18649
18650 2019-05-23 Jan Hubicka <jh@suse.cz>
18651 Martin Liska <mliska@suse.cz>
18652
18653 PR tree-optimization/90576
18654 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
18655 poly_int_tree_p.
18656 (aliasing_component_refs_p): Fix three way size compare conditional;
18657 give up earlier in case we can not decide on equivalence.
18658
18659 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
18660 Michael Meissner <meissner@linux.ibm.com>
18661 Segher Boessenkool <segher@kernel.crashing.org>
18662
18663 * config.gcc: Add future cpu.
18664 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
18665 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
18666 #define.
18667 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
18668 (RS6000_CPU): New instantiation for future cpu.
18669 * config/rs6000/rs6000-opts.h (enum processor_type): Add
18670 PROCESSOR_FUTURE.
18671 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
18672 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
18673 * config/rs6000/rs6000-tables.opt: Regenerate.
18674 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
18675 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
18676 (rs6000_machine_from_flags): Handle future cpu.
18677 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
18678 PROCESSOR_POWER9 for now.
18679 (rs6000_adjust_cost): Likewise.
18680 (rs6000_issue_rate): Likewise.
18681 (rs6000_register_move_cost): Likewise.
18682 (rs6000_opt_masks): Add entry for future.
18683 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
18684 (MASK_FUTURE): New #define.
18685 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
18686 * config/rs6000/rs6000.opt (mfuture): New target option.
18687 * doc/invoke.texi (mcpu): Add future cpu.
18688
18689 2019-05-23 Martin Liska <mliska@suse.cz>
18690
18691 PR c++/90587
18692 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
18693 operation points to a temporary (pointed via tree_to_wide_ref)
18694 that is out of scope after the &.
18695
18696 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
18697
18698 PR c++/90592
18699 * doc/extend.texi (Function Names): Add missing word.
18700
18701 2019-05-23 Richard Biener <rguenther@suse.de>
18702
18703 PR tree-optimization/88440
18704 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
18705 at -O[2s]+.
18706 * tree-loop-distribution.c (generate_memset_builtin): Fold the
18707 generated call.
18708 (generate_memcpy_builtin): Likewise.
18709 (distribute_loop): Pass in whether to only distribute patterns.
18710 (prepare_perfect_loop_nest): Also allow size optimization.
18711 (pass_loop_distribution::execute): When optimizing a loop
18712 nest for size allow pattern replacement.
18713
18714 2019-05-23 Jakub Jelinek <jakub@redhat.com>
18715
18716 PR target/90568
18717 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
18718 of xor.
18719
18720 2019-05-23 Martin Liska <mliska@suse.cz>
18721
18722 PR sanitizer/90570
18723 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
18724 expression similarly to gimplify_decl_expr.
18725
18726 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18727
18728 * cse.c (cse_dump_path): s/dump_file/f.
18729
18730 2019-05-22 David Malcolm <dmalcolm@redhat.com>
18731
18732 PR c++/90462
18733 * diagnostic-format-json.cc: Include "selftest.h".
18734 (json_from_expanded_location): Only add "file" key for non-NULL
18735 file strings.
18736 (json_from_location_range): Don't add "start" and "finish"
18737 children if they are UNKNOWN_LOCATION.
18738 (selftest::test_unknown_location): New selftest.
18739 (selftest::test_bad_endpoints): New selftest.
18740 (selftest::diagnostic_format_json_cc_tests): New function.
18741 * json.cc (json::object::get): New function.
18742 (selftest::test_object_get): New selftest.
18743 (selftest::json_cc_tests): Call it.
18744 * json.h (json::object::get): New decl.
18745 * selftest-run-tests.c (selftest::run_tests): Call
18746 selftest::diagnostic_format_json_cc_tests.
18747 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
18748 decl.
18749
18750 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
18751 Andrew Stubbs <amd@codesourcery.com>
18752
18753 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
18754 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
18755 (kernel): Rename to...
18756 (main_kernel): ... this.
18757 (load_image): Load _init_array and _fini_array kernels.
18758 (run): Add argument for kernel to run.
18759 (main): Run init_array_kernel before main_kernel, and
18760 fini_array_kernel after.
18761 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
18762 amdgpu_hsa_kernel attribute on functions.
18763 (gcn_disable_constructors): Delete.
18764 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
18765 * config/gcn/crt0.c (size_t): Define.
18766 (_init_array, _fini_array): New.
18767 (__preinit_array_start, __preinit_array_end,
18768 __init_array_start, __init_array_end,
18769 __fini_array_start, __fini_array_end): Declare weak references.
18770
18771 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
18772
18773 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
18774
18775 2019-05-22 Jason Merrill <jason@redhat.com>
18776
18777 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
18778
18779 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
18780
18781 PR target/88483
18782 * config/i386/i386-options.c (ix86_init_machine_status): Set
18783 stack_frame_required to true.
18784 * config/i386/i386.c (ix86_get_frame_size): New function.
18785 (ix86_frame_pointer_required): Replace get_frame_size with
18786 ix86_get_frame_size.
18787 (ix86_compute_frame_layout): Likewise.
18788 (ix86_find_max_used_stack_alignment): Changed to void. Set
18789 stack_frame_required.
18790 (ix86_finalize_stack_frame_flags): Always call
18791 ix86_find_max_used_stack_alignment. Replace get_frame_size with
18792 ix86_get_frame_size.
18793 * config/i386/i386.h (machine_function): Add stack_frame_required.
18794
18795 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
18796
18797 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
18798
18799 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
18800
18801 * common/config/aarch64/aarch64-common.c
18802 (struct aarch64_option_extension, struct processor_name_to_arch,
18803 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
18804 aarch64_contains_opt,
18805 aarch64_get_extension_string_for_isa_flags): Change type of
18806 variables storing flags to uint64_t.
18807 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
18808 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
18809 * config/aarch64/aarch64.c (struct processor,
18810 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
18811 aarch64_validate_march, aarch64_override_options,
18812 aarch64_option_print, aarch64_handle_attr_isa_flags,
18813 aarch64_declare_function_name, aarch64_start_file): Make flag
18814 variables uint64_t.
18815 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
18816 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
18817 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
18818 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
18819 * config/aarch64/driver-aarch64.c
18820 (struct aarch64_arch_extension, struct aarch64_core_data,
18821 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
18822 flag variables uint64_t.
18823 * doc/invoke.texi: Add documentation for new arguments.
18824
18825 2019-05-22 Richard Biener <rguenther@suse.de>
18826
18827 * alias.c (ao_ref_from_mem): Move stack-slot sharing
18828 rewrite ...
18829 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
18830
18831 2019-05-22 Martin Liska <mliska@suse.cz>
18832
18833 PR lto/90500
18834 * doc/extend.texi: Document the change.
18835
18836 2019-05-22 Richard Biener <rguenther@suse.de>
18837
18838 PR tree-optimization/90450
18839 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
18840 (mem_ref_hasher::equal): Check it.
18841 (mem_ref_alloc): Initialize it.
18842 (gather_mem_refs_stmt): Set it.
18843
18844 2019-05-22 Richard Biener <rguenther@suse.de>
18845
18846 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
18847 Add ABS_EXPR.
18848 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
18849 as ABSU_EXPR.
18850
18851 2019-05-22 Alan Modra <amodra@gmail.com>
18852
18853 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
18854 (ASM_CPU_SPEC): Conditionally add -many.
18855 * config/rs6000/rs6000.c (rs6000_machine): New static var.
18856 (rs6000_machine_from_flags, emit_asm_machine): New functions..
18857 (rs6000_file_start): ..extracted from here, and modified to
18858 test all ISA bits.
18859 (rs6000_output_function_prologue): Emit .machine as necessary.
18860
18861 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
18862
18863 PR middle-end/90553
18864 * ira-lives.c (process_bb_node_lives): Consider defs
18865 for a call insn to be die before the call, not after.
18866
18867 * function.c (assign_parm_setup_block): Raise alignment of
18868 stacked parameter only for STRICT_ALIGNMENT targets.
18869
18870 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18871
18872 * config/rs6000/constraints.md (define_register_constraint "wz"):
18873 Delete.
18874 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18875 RS6000_CONSTRAINT_wz.
18876 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18877 (rs6000_init_hard_regno_mode_ok): Adjust.
18878 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
18879 * doc/md.texi (Machine Constraints): Adjust.
18880
18881 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18882
18883 * config/rs6000/constraints.md (define_register_constraint "wl"):
18884 Delete.
18885 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18886 RS6000_CONSTRAINT_wl.
18887 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18888 (rs6000_init_hard_regno_mode_ok): Adjust.
18889 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
18890 * doc/md.texi (Machine Constraints): Adjust.
18891
18892 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18893
18894 * config/rs6000/constraints.md (define_register_constraint "wm"):
18895 Delete.
18896 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18897 RS6000_CONSTRAINT_wm.
18898 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18899 (rs6000_init_hard_regno_mode_ok): Adjust.
18900 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
18901 * doc/md.texi (Machine Constraints): Adjust.
18902
18903 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18904
18905 * config/rs6000/constraints.md (define_register_constraint "wk"):
18906 Delete.
18907 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18908 RS6000_CONSTRAINT_wk.
18909 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18910 (rs6000_init_hard_regno_mode_ok): Adjust.
18911 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
18912 * doc/md.texi (Machine Constraints): Adjust.
18913
18914 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18915
18916 * config/rs6000/constraints.md (define_register_constraint "wj"):
18917 Delete.
18918 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18919 RS6000_CONSTRAINT_wj.
18920 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18921 (rs6000_init_hard_regno_mode_ok): Adjust.
18922 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
18923 (VS_64dm): Delete.
18924 * config/rs6000/vsx.md: Ditto.
18925 * doc/md.texi (Machine Constraints): Adjust.
18926
18927 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18928
18929 * config/rs6000/constraints.md (define_register_constraint "wh"):
18930 Delete.
18931 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18932 RS6000_CONSTRAINT_wh.
18933 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18934 (rs6000_init_hard_regno_mode_ok): Adjust.
18935 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
18936 * doc/md.texi (Machine Constraints): Adjust.
18937
18938 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
18939
18940 PR target/90547
18941 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
18942 Avoid calling gen_lowpart with CONST operand.
18943
18944 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
18945
18946 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
18947 field template_last_to_copy.
18948 (ssa_create_duplicates): Set it, and use it. Attempt to
18949 preserve more debug stmts.
18950
18951 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
18952
18953 * config/i386/sse.md (VF1_AVX2): New mode iterator.
18954 (signbit<mode>2): New expander
18955
18956 2019-05-21 James Clarke <jrtc27@jrtc27.com>
18957
18958 PR bootstrap/87338
18959 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
18960 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
18961
18962 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
18963
18964 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
18965 %ebx and %ecx bafore calling cpuid with leaf 1 or
18966 non-constant leaf argument.
18967
18968 2019-05-21 Alan Modra <amodra@gmail.com>
18969
18970 PR target/90545
18971 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
18972 power9 direct move cost.
18973
18974 2019-05-21 Richard Biener <rguenther@suse.de>
18975
18976 PR middle-end/90510
18977 * fold-const.c (fold_read_from_vector): New function.
18978 * fold-const.h (fold_read_from_vector): Declare.
18979 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
18980 single-element insert permutations. Canonicalize selector
18981 further and fix issue with last commit.
18982
18983 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
18984
18985 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
18986 parameter with default value false to declaration.
18987 (split_edges_for_insertion): New inline function. Wrapper for
18988 split_critical_edges with for_edge_insertion_p = true.
18989 * tree-cfg.c (split_critical_edges): Don't split non-critical
18990 edges if for_edge_insertion_p is false. Fix whitespace.
18991 * tree-ssa-pre.c (pass_pre::execute): Call
18992 split_edges_for_insertion instead of split_critical_edges.
18993 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
18994 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
18995 (pass_data_sink_code): Update function name in the comment.
18996
18997 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
18998
18999 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
19000 around is_value_included_in that knows how to handle BIT_AND_EXPR.
19001 (is_pred_expr_subset_of): Use the new function. Handle more cases where
19002 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
19003 positives.
19004
19005 2019-05-21 Martin Liska <mliska@suse.cz>
19006
19007 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
19008 an extra newline.
19009 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
19010 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
19011 vec_lvsr.
19012 * config/rs6000/rs6000.c (rs6000_option_override_internal):
19013 Quote a C type.
19014 (rs6000_function_arg): Likewise.
19015 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
19016 (rs6000_expand_ternop_builtin): Use interval syntax.
19017 (get_element_number): Likewise.
19018 (altivec_expand_builtin): Likewise.
19019 (rs6000_get_function_versions_dispatcher): Quote target_clones.
19020
19021 2019-05-20 Jakub Jelinek <jakub@redhat.com>
19022
19023 PR c++/59813
19024 PR target/90418
19025 * function.h (struct function): Add calls_eh_return member.
19026 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
19027 gimplifying __builtin_eh_return call.
19028 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
19029 to cfun.
19030 (expand_call_inline): Or in src_cfun->calls_eh_return into
19031 dst_cfun->calls_eh_return.
19032 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
19033 cfun->calls_eh_return.
19034 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
19035 * lto-streamer-out.c (output_struct_function_base): Write
19036 calls_eh_return.
19037
19038 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
19039
19040 PR rtl-optimization/43147
19041 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
19042 IX86_BUILTIN_SHUFPD.
19043
19044 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
19045
19046 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
19047 (refs_may_alias_p_1): ... here; update stats.
19048 (refs_may_alias_p): Do not update stats here.
19049
19050 2019-05-20 Richard Biener <rguenther@suse.de>
19051
19052 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
19053 doesn't produce pointers.
19054 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
19055 the first operand points to.
19056
19057 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
19058
19059 * tree-ssa-alias.c (compare_sizes): New function.
19060 (sompare_type_sizes): New function
19061 (aliasing_component_refs_p): Use it.
19062 (indirect_ref_may_alias_decl_p): Likewise.
19063
19064 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19065
19066 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
19067
19068 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19069
19070 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
19071 (LIBLSAN_EARLY_SPEC): Likewise.
19072 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
19073
19074 2019-05-20 Martin Liska <mliska@suse.cz>
19075
19076 * config/i386/i386.c (ix86_libc_has_fast_function):
19077 Add ATTRIBUTE_UNUSED for the argument.
19078
19079 2019-05-20 Richard Biener <rguenther@suse.de>
19080
19081 * gimple-match-head.c: Include vec-perm-indices.h.
19082 * generic-match-head.c: Likewise.
19083 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
19084 is included.
19085 * fold-const.c (fold_vec_perm): Export.
19086 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
19087 (match.pd): ...here.
19088
19089 2019-05-20 Jakub Jelinek <jakub@redhat.com>
19090
19091 * cfgloop.h (struct loop): Add simdlen member.
19092 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
19093 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
19094 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
19095 as new argument to autovectorize_vector_sizes target hook. If
19096 loop->simdlen, pick up vector size where the vectorization factor
19097 is equal to loop->simd, and if there is none, fall back to the first
19098 successful one.
19099 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
19100 caller.
19101 * omp-low.c (omp_clause_aligned_alignment): Likewise.
19102 * omp-general.c (omp_max_vf): Likewise.
19103 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
19104 * tree-vect-slp.c (vect_slp_bb): Likewise.
19105 * target.def (autovectorize_vector_sizes): Add ALL argument and
19106 document it.
19107 * doc/tm.texi: Adjust documentation.
19108 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
19109 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
19110 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
19111 bool argument.
19112 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
19113 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
19114 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
19115 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
19116 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
19117 preferred vector size is not 512-bit or 256-bit, just put those
19118 unpreferred ones last.
19119
19120 2019-05-20 Martin Liska <mliska@suse.cz>
19121
19122 * targhooks.c (default_libc_has_fast_function): New function.
19123 * targhooks.h (default_libc_has_fast_function): Likewise.
19124
19125 2019-05-20 Martin Liska <mliska@suse.cz>
19126
19127 PR middle-end/90263
19128 * builtins.c (expand_builtin_memory_copy_args): When having a
19129 target with fast mempcpy implementation do now use memcpy.
19130 * config/i386/i386.c (ix86_libc_has_fast_function): New.
19131 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
19132 * doc/tm.texi: Likewise.
19133 * doc/tm.texi.in: Likewise.
19134 * target.def:
19135 * expr.c (emit_block_move_hints): Add 2 new arguments.
19136 * expr.h (emit_block_move_hints): Bail out when libcall
19137 to memcpy would be used.
19138
19139 2019-05-20 Martin Liska <mliska@suse.cz>
19140
19141 * profile-count.c: Add vertical spacing in order
19142 to separate functions.
19143 * profile-count.h: Likewise.
19144
19145 2019-05-20 Martin Liska <mliska@suse.cz>
19146
19147 * profile-count.h: Do not use full qualified
19148 names if possible.
19149 * profile-count.c (profile_count::to_frequency): Likewise.
19150
19151 2019-05-20 Martin Liska <mliska@suse.cz>
19152
19153 * profile-count.h (enum profile_quality): Use capital letters
19154 for enum value names. Use the adjusted names.
19155 * profile-count.c: Use the adjusted names.
19156
19157 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
19158
19159 * config/rs6000/constraints.md (define_register_constraint "wH"):
19160 Delete.
19161 (define_register_constraint "wI"): Delete.
19162 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
19163 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
19164 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
19165 (rs6000_init_hard_regno_mode_ok): Adjust.
19166 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
19167 resp. "d", or with "wa" as appropriate, all with "p8v".
19168 * config/rs6000/vsx.md: Ditto.
19169 * doc/md.texi (Machine Constraints): Adjust.
19170
19171 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
19172
19173 * config/rs6000/constraints.md (define_register_constraint "wy"):
19174 Delete.
19175 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
19176 RS6000_CONSTRAINT_wy.
19177 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
19178 (rs6000_init_hard_regno_mode_ok): Adjust.
19179 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
19180 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
19181 (define_mode_attr Fisa): New.
19182 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
19183 * doc/md.texi (Machine Constraints): Adjust.
19184
19185 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
19186
19187 * config/rs6000/constraints.md (define_register_constraint "wu"):
19188 Delete.
19189 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
19190 RS6000_CONSTRAINT_wu.
19191 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
19192 (rs6000_init_hard_regno_mode_ok): Adjust.
19193 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
19194 both with "p8v".
19195 (define_mode_attr Fa): Delete.
19196 * config/rs6000/vsx.md: Ditto.
19197 * doc/md.texi (Machine Constraints): Adjust.
19198
19199 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
19200
19201 * config/rs6000/constraints.md (define_register_constraint "wJ"):
19202 Delete.
19203 (define_register_constraint "wK"): Delete.
19204 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
19205 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
19206 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
19207 (rs6000_init_hard_regno_mode_ok): Adjust.
19208 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
19209 Replace "wK" constraint by "wH" with "p9v".
19210 * config/rs6000/vsx.md: Ditto.
19211 * doc/md.texi (Machine Constraints): Adjust.
19212
19213 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
19214
19215 * config/rs6000/constraints.md (define_register_constraint "wb"):
19216 Delete.
19217 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
19218 RS6000_CONSTRAINT_wb.
19219 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
19220 (rs6000_init_hard_regno_mode_ok): Adjust.
19221 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
19222 * config/rs6000/vsx.md: Ditto.
19223 * doc/md.texi (Machine Constraints): Adjust.
19224
19225 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
19226
19227 * config/rs6000/constraints.md (define_register_constraint "wo"):
19228 Delete.
19229 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
19230 RS6000_CONSTRAINT_wo.
19231 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
19232 (rs6000_init_hard_regno_mode_ok): Adjust.
19233 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
19234 * config/rs6000/altivec.md: Ditto.
19235 * doc/md.texi (Machine Constraints): Adjust.
19236
19237 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
19238
19239 * config/darwin-c.c (darwin_register_objc_includes): Do not
19240 prepend the sysroot when building gnu-runtime header search
19241 paths.
19242
19243 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
19244
19245 * config/darwin.c (darwin_file_end): Use switch_to_section ()
19246 instead of direct output of the asm.
19247
19248 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
19249
19250 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
19251 argument to be type bool (was int before).
19252 (rs6000_emit_epilogue): Simplify some code. Declare some variables
19253 at first use. Use type bool for some variables. Fix a theoretical
19254 eh_return bug for svr4.
19255
19256 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
19257
19258 * config/rs6000/rs6000.md (isa): New attribute.
19259 (enabled): New attribute.
19260
19261 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
19262
19263 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
19264 assemble_start_function and assemble_end_function.
19265
19266 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
19267
19268 PR middle-end/89433
19269 * omp-general.c (oacc_verify_routine_clauses): Change formal
19270 parameters. Add checking if already marked with an OpenACC
19271 'routine' directive. Adjust all users.
19272
19273 PR middle-end/89433
19274 * omp-general.c (oacc_build_routine_dims): Move some of its
19275 processing into...
19276 (oacc_verify_routine_clauses): ... this new function.
19277 * omp-general.h (oacc_verify_routine_clauses): New prototype.
19278
19279 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
19280
19281 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
19282 formating of picbase labels to match other ports.
19283
19284 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
19285
19286 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
19287 in the generated code.
19288
19289 2019-05-16 Martin Sebor <msebor@redhat.com>
19290
19291 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
19292 identifiers, keywords, operators, and types in diagnostics. Correct
19293 quoting, spelling, and sentence capitalization issues.
19294 (expand_builtin_atomic_is_lock_free): Same.
19295 (fold_builtin_next_arg): Same.
19296 * cfgexpand.c (expand_one_var): Same.
19297 (tree_conflicts_with_clobbers_p): Same.
19298 (expand_asm_stmt): Same.
19299 (verify_loop_structure): Same.
19300 * cgraphunit.c (process_function_and_variable_attributes): Same.
19301 * collect-utils.c (collect_execute): Same.
19302 * collect2.c (maybe_run_lto_and_relink): Same.
19303 (is_lto_object_file): Same.
19304 (scan_prog_file): Same.
19305 * convert.c (convert_to_real_1): Same.
19306 * dwarf2out.c (dwarf2out_begin_prologue): Same.
19307 * except.c (verify_eh_tree): Same.
19308 * gcc.c (execute): Same.
19309 (eval_spec_function): Same.
19310 (run_attempt): Same.
19311 (driver::set_up_specs): Same.
19312 (compare_debug_auxbase_opt_spec_function): Same.
19313 * gcov-tool.c (unlink_gcda_file): Same.
19314 (do_merge): Same.
19315 (do_rewrite): Same.
19316 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
19317 * gimplify.c (gimplify_asm_expr): Same.
19318 (gimplify_adjust_omp_clauses): Same.
19319 * hsa-gen.c (gen_hsa_addr_insns): Same.
19320 (gen_hsa_insns_for_load): Same.
19321 (gen_hsa_cmp_insn_from_gimple): Same.
19322 (gen_hsa_insns_for_operation_assignment): Same.
19323 (gen_get_level): Same.
19324 (gen_hsa_alloca): Same.
19325 (omp_simple_builtin::generate): Same.
19326 (gen_hsa_atomic_for_builtin): Same.
19327 (gen_hsa_insns_for_call): Same.
19328 * input.c (dump_location_info): Same.
19329 * ipa-devirt.c (compare_virtual_tables): Same.
19330 * ira.c (ira_setup_eliminable_regset): Same.
19331 * lra-assigns.c (lra_assign): Same.
19332 * lra-constraints.c (lra_constraints): Same.
19333 * lto-streamer-in.c (lto_input_mode_table): Same.
19334 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
19335 (merge_and_complain): Same.
19336 (compile_offload_image): Same.
19337 (compile_images_for_offload_targets): Same.
19338 (debug_objcopy): Same.
19339 (run_gcc): Same.
19340 (main): Same.
19341 * opts.c (print_specific_help): Same.
19342 (parse_no_sanitize_attribute): Same.
19343 (print_help): Same.
19344 (handle_param): Same.
19345 * plugin.c (add_new_plugin): Same.
19346 (parse_plugin_arg_opt): Same.
19347 (try_init_one_plugin): Same.
19348 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
19349 operators, and types in diagnostics. Correct quoting and spelling
19350 issues.
19351 * read-rtl-function.c (parse_edge_flag_token): Same.
19352 (function_reader::parse_enum_value): Same.
19353 * reg-stack.c (check_asm_stack_operands): Same.
19354 * regcprop.c (validate_value_data): Same.
19355 * sched-rgn.c (make_pass_sched_fusion): Same.
19356 * stmt.c (check_unique_operand_names): Same.
19357 * targhooks.c (default_target_option_pragma_parse): Same.
19358 * tlink.c (recompile_files): Same.
19359 * toplev.c (process_options): Same.
19360 (do_compile): Same.
19361 * trans-mem.c (diagnose_tm_1): Same.
19362 (ipa_tm_scan_irr_block): Same.
19363 (ipa_tm_diagnose_transaction): Same.
19364 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
19365 format a tree code name in a diagnostic.
19366 (verify_types_in_gimple_min_lval): Same.
19367 (verify_types_in_gimple_reference): Same.
19368 (verify_gimple_call): Same.
19369 (verify_gimple_assign_unary): Same.
19370 (verify_gimple_assign_binary): Same.
19371 (verify_gimple_assign_ternary): Same.
19372 (verify_gimple_assign_single): Same.
19373 (verify_gimple_switch): Same.
19374 (verify_gimple_label): Same.
19375 (verify_gimple_phi): Same.
19376 (verify_gimple_in_seq): Same.
19377 (verify_eh_throw_stmt_node): Same.
19378 (collect_subblocks): Same.
19379 (gimple_verify_flow_info): Same.
19380 (do_warn_unused_result): Same.
19381 * tree-inline.c (expand_call_inline): Same.
19382 * tree-into-ssa.c (update_ssa): Same.
19383 * tree.c (tree_int_cst_elt_check_failed): Same.
19384 (tree_vec_elt_check_failed): Same.
19385 (omp_clause_operand_check_failed): Same.
19386 (verify_type_variant): Same.
19387 (verify_type): Same.
19388 * value-prof.c (verify_histograms): Same.
19389 * varasm.c (assemble_start_function): Same.
19390
19391 2019-05-16 Martin Sebor <msebor@redhat.com>
19392
19393 * config/i386/i386-expand.c (get_element_number): Quote keywords
19394 and other internal names in diagnostics. Adjust other diagnostic
19395 formatting issues noted by -Wformat-diag.
19396 * config/i386/i386-features.c
19397 (ix86_mangle_function_version_assembler_name): Same.
19398 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
19399 * config/i386/i386.c (ix86_function_type_abi): Same.
19400 (ix86_function_ms_hook_prologue): Same.
19401 (classify_argument): Same.
19402 (ix86_expand_prologue): Same.
19403 (ix86_md_asm_adjust): Same.
19404 (ix86_memmodel_check): Same.
19405
19406 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
19407
19408 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
19409 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
19410 and fpxx modes.
19411
19412 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
19413
19414 PR target/90497
19415 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
19416 intrinsics without SSE/SSE2/SSSE3.
19417 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
19418 check.
19419 (*mmx_uavgv8qi3): Likewise.
19420
19421 2019-05-17 Richard Biener <rguenther@suse.de>
19422
19423 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
19424 VEC_PERM_EXPR as __VEC_PERM with -gimple.
19425
19426 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
19427
19428 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
19429 vec_sldw insn pattern.
19430
19431 2019-05-17 Richard Biener <rguenther@suse.de>
19432
19433 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
19434
19435 2019-05-17 Martin Liska <mliska@suse.cz>
19436
19437 PR driver/90496
19438 * toplev.c (output_stack_usage): With LTO and sanitizer it
19439 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
19440 has no file location.
19441
19442 2019-05-16 Jakub Jelinek <jakub@redhat.com>
19443
19444 PR c++/90484
19445 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
19446 sz0 is equal to sz1, instead return false in that case.
19447
19448 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
19449 has non-constant expression, force sctx.lane and use two
19450 argument IFN_GOMP_SIMD_LANE instead of single argument.
19451 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
19452 two argument IFN_GOMP_SIMD_LANE without lhs.
19453 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
19454 member.
19455 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
19456 Define.
19457 (LOOP_REQUIRES_VERSIONING): Or in
19458 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
19459 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
19460 simd_if_cond.
19461 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
19462 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
19463 from simd if clause if needed.
19464
19465 2019-05-16 Richard Biener <rguenther@suse.de>
19466
19467 * tree-affine.c (expr_to_aff_combination): New function split
19468 out from...
19469 (tree_to_aff_combination): ... here.
19470 (aff_combination_expand): Avoid building a GENERIC tree.
19471
19472 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
19473
19474 * cgraphunit.c (cgraph_node::expand_thunk): Remove
19475 assemble_start_function and assemble_end_function calls.
19476 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
19477 assemble_start_function and assemble_end_function.
19478 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
19479 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
19480 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
19481 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
19482 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
19483 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
19484 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
19485 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
19486 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
19487 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
19488 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
19489 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
19490 Likewise.
19491 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
19492 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
19493 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
19494 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
19495 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
19496 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
19497 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
19498 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
19499 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
19500 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
19501 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
19502 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
19503 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
19504 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
19505 Likewise.
19506 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
19507 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
19508 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
19509
19510 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
19511
19512 * tree-ssa-alias.c (alias_stats): Add
19513 aliasing_component_refs_p_may_alias and
19514 aliasing_component_refs_p_no_alias.
19515 (dump_alias_stats): Print aliasing_component_refs_p stats.
19516 (aliasing_component_refs_p): Update stats.
19517
19518 2019-05-16 Martin Liska <mliska@suse.cz>
19519
19520 PR lto/90500
19521 * multiple_target.c (expand_target_clones): Do not allow
19522 target_clones being used with a symbol that is an alias.
19523
19524 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
19525
19526 PR tree-optimization/90394
19527 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
19528 positives rather than ICE for cases where (code2 == NE_EXPR
19529 && code1 == BIT_AND_EXPR).
19530
19531 2019-05-16 Jakub Jelinek <jakub@redhat.com>
19532
19533 PR fortran/90329
19534 * tree-core.h (struct tree_decl_common): Document
19535 decl_nonshareable_flag for PARM_DECLs.
19536 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
19537 * calls.c (expand_call): Don't try tail call if caller
19538 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
19539 passed on the stack and callee needs to pass any arguments on the
19540 stack.
19541 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
19542 else if instead of series of mutually exclusive ifs. Handle
19543 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
19544 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
19545
19546 * lto-streamer.h (LTO_major_version): Bump to 9.
19547
19548 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
19549
19550 PR tree-optimization/90106
19551 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
19552 new parameter as new internal function call, also move it to new
19553 basic block.
19554 (use_internal_fn): Pass internal function call to
19555 shrink_wrap_one_built_in_call_with_conds.
19556
19557 2019-05-15 Jakub Jelinek <jakub@redhat.com>
19558
19559 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
19560 max_vf to 1.
19561 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
19562 safelen_int and set loop->dont_vectorize.
19563
19564 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19565
19566 PR target/89021
19567 * config/i386/i386-builtin.def: Enable MMX intrinsics with
19568 SSE/SSE2/SSSE3.
19569 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
19570 Likewise.
19571 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
19572 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
19573 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
19574 is defined.
19575
19576 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19577
19578 PR target/89021
19579 * config/i386/mmx.md (*vec_dupv2sf): Changed to
19580 define_insn_and_split to support SSE emulation.
19581 (*vec_extractv2sf_0): Likewise.
19582 (*vec_extractv2sf_1): Likewise.
19583 (*vec_extractv2si_0): Likewise.
19584 (*vec_extractv2si_1): Likewise.
19585 (*vec_extractv2si_zext_mem): Likewise.
19586 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
19587 (vec_extractv2sf_1 splitter): Likewise.
19588 (vec_extractv2sfsf): Likewise.
19589 (vec_setv2si): Likewise.
19590 (vec_extractv2si_1 splitter): Likewise.
19591 (vec_extractv2sisi): Likewise.
19592 (vec_setv4hi): Likewise.
19593 (vec_extractv4hihi): Likewise.
19594 (vec_setv8qi): Likewise.
19595 (vec_extractv8qiqi): Likewise.
19596 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
19597 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
19598 (vec_extractv2sisi): Likewise.
19599 (vec_extractv4hihi): Likewise.
19600 (vec_extractv8qiqi): Likewise.
19601 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
19602 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
19603 (vec_initv2sisi): Likewise.
19604 (vec_initv4hihi): Likewise.
19605 (vec_initv8qiqi): Likewise.
19606 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
19607 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
19608 (vec_setv4hi): Likewise.
19609 (vec_setv8qi): Likewise.
19610
19611 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19612
19613 PR target/89021
19614 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
19615 TARGET_MMX_WITH_SSE.
19616 (MMXMODE:*mov<mode>_internal): Likewise.
19617 (MMXMODE:movmisalign<mode>): Likewise.
19618
19619 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
19620
19621 PR target/89021
19622 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
19623 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
19624 (sse2_cvtpd2pi): Ditto.
19625 (sse2_cvttpd2pi): Ditto.
19626 (*vec_concatv2sf_sse4_1): Ditto.
19627 (*vec_concatv2sf_sse): Ditto.
19628 (*vec_concatv2si_sse4_1): Ditto.
19629 (*vec_concatv2si): Ditto.
19630 (*vec_concatv4si_0): Ditto.
19631 (*vec_concatv2di_0): Ditto.
19632
19633 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19634
19635 PR target/89021
19636 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
19637
19638 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19639
19640 PR target/89021
19641 * config/i386/sse.md (ssse3_palignrdi): Changed to
19642 define_insn_and_split to support SSE emulation.
19643
19644 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19645
19646 PR target/89021
19647 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
19648
19649 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19650
19651 PR target/89021
19652 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
19653 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
19654 SSE emulation.
19655
19656 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19657
19658 PR target/89021
19659 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
19660 or TARGET_MMX_WITH_SSE.
19661 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
19662
19663 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19664
19665 PR target/89021
19666 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
19667
19668 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19669
19670 PR target/89021
19671 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
19672 Changed to define_insn_and_split to support SSE emulation.
19673
19674 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19675
19676 PR target/89021
19677 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
19678 Changed to define_insn_and_split to support SSE emulation.
19679
19680 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19681
19682 PR target/89021
19683 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
19684 (*mmx_<emms>): This.
19685 (mmx_<emms>): New expander.
19686
19687 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19688
19689 PR target/89021
19690 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
19691 support.
19692 (*sse2_umulv1siv1di3): Add SSE2 emulation.
19693
19694 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19695
19696 PR target/89021
19697 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
19698
19699 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19700
19701 PR target/89021
19702 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
19703
19704 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19705
19706 PR target/89021
19707 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
19708 TARGET_MMX_WITH_SSE.
19709 (*mmx_uavgv4hi3): Add SSE emulation.
19710
19711 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19712
19713 PR target/89021
19714 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
19715 and TARGET_MMX_WITH_SSE.
19716 (*mmx_uavgv8qi3): Add SSE emulation.
19717
19718 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19719
19720 PR target/89021
19721 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
19722 maskmovdqu for __MMX_WITH_SSE__.
19723
19724 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19725
19726 PR target/89021
19727 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
19728 TARGET_MMX and TARGET_MMX_WITH_SSE.
19729 (*mmx_umulv4hi3_highpart): Add SSE emulation.
19730
19731 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19732
19733 PR target/89021
19734 * config/i386/mmx.md (mmx_pmovmskb): Changed to
19735 define_insn_and_split to support SSE emulation.
19736
19737 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19738
19739 PR target/89021
19740 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
19741 and TARGET_MMX_WITH_SSE.
19742 (mmx_<code>v8qi3): Likewise.
19743 (smaxmin:<code>v4hi3): New.
19744 (umaxmin:<code>v8qi3): Likewise.
19745 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
19746 (umaxmin:*mmx_<code>v8qi3): Likewise.
19747
19748 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19749
19750 PR target/89021
19751 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
19752 TARGET_MMX_WITH_SSE.
19753 (*mmx_pinsrw): Add SSE emulation.
19754
19755 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19756
19757 PR target/89021
19758 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
19759
19760 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19761
19762 PR target/89021
19763 * config/i386/sse.md (sse_cvtpi2ps): Changed to
19764 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
19765 SSE emulation.
19766
19767 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19768
19769 PR target/89021
19770 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
19771 (sse_cvttps2pi): Likewise.
19772
19773 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19774
19775 PR target/89021
19776 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
19777 TARGET_MMX_WITH_SSE.
19778 (mmx_pshufw_1): Add SSE emulation.
19779 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
19780 TARGET_MMX_WITH_SSE to support SSE emulation.
19781
19782 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19783
19784 PR target/89021
19785 * config/i386/constraints.md (Yw): New constraint.
19786 * config/i386/mmx.md (*vec_dupv2si): Changed to
19787 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
19788 support SSE emulation.
19789
19790 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19791
19792 PR target/89021
19793 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
19794 TARGET_MMX_WITH_SSE.
19795 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
19796 support.
19797 (mmx_gt<mode>3): Likewise.
19798
19799 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19800
19801 PR target/89021
19802 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
19803 TARGET_MMX_WITH_SSE. Add SSE support.
19804
19805 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19806
19807 PR target/89021
19808 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
19809 TARGET_MMX_WITH_SSE.
19810 (any_logic:<code><mode>3): New.
19811 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
19812 Add SSE support.
19813
19814 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19815
19816 PR target/89021
19817 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
19818 TARGET_MMX_WITH_SSE. Add SSE emulation.
19819 (mmx_<shift_insn><mode>3): Likewise.
19820 (ashr<mode>3): New.
19821 (<shift_insn><mode>3): Likewise.
19822
19823 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19824
19825 PR target/89021
19826 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
19827 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
19828
19829 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19830
19831 PR target/89021
19832 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
19833 TARGET_MMX_WITH_SSE.
19834 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
19835 SSE support.
19836
19837 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19838
19839 PR target/89021
19840 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
19841 TARGET_MMX_WITH_SSE.
19842 (mulv4hi3): New.
19843 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
19844 support.
19845
19846 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19847
19848 PR target/89021
19849 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
19850 (plusminus:mmx_<plusminus_insn><mode>3): Check
19851 TARGET_MMX_WITH_SSE.
19852 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
19853 (<plusminus_insn><mode>3): New.
19854 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
19855 (*mmx_<plusminus_insn><mode>3): Likewise.
19856
19857 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19858
19859 PR target/89021
19860 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
19861 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
19862 prototype.
19863 * config/i386/mmx.m (mmx_punpckhbw): Changed to
19864 define_insn_and_split to support SSE emulation.
19865 (mmx_punpcklbw): Likewise.
19866 (mmx_punpckhwd): Likewise.
19867 (mmx_punpcklwd): Likewise.
19868 (mmx_punpckhdq): Likewise.
19869 (mmx_punpckldq): Likewise.
19870
19871 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19872 Uros Bizjak <ubizjak@gmail.com>
19873
19874 PR target/89021
19875 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
19876 New function.
19877 (ix86_split_mmx_pack): Likewise.
19878 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
19879 New prototype.
19880 (ix86_split_mmx_pack): Likewise.
19881 * config/i386/i386.md (mmx_isa): New.
19882 (enabled): Also check mmx_isa.
19883 * config/i386/mmx.md (any_s_truncate): New code iterator.
19884 (s_trunsuffix): New code attr.
19885 (mmx_packsswb): Removed.
19886 (mmx_packssdw): Likewise.
19887 (mmx_packuswb): Likewise.
19888 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
19889 MMX packsswb/packuswb with SSE2.
19890 (mmx_packssdw): Likewise.
19891 * config/i386/predicates.md (register_mmxmem_operand): New.
19892
19893 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19894
19895 PR target/89021
19896 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19897 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
19898 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
19899 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
19900 (ix86_vector_mode_supported_p): Likewise.
19901 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
19902
19903 2019-05-15 Martin Liska <mliska@suse.cz>
19904
19905 PR middle-end/90478
19906 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
19907 Check for overflow.
19908
19909 2019-05-15 Richard Biener <rguenther@suse.de>
19910
19911 * tree-into-ssa.c (pass_build_ssa::execute): Run
19912 update_address_taken before going into SSA.
19913
19914 2019-05-15 Richard Biener <rguenther@suse.de>
19915
19916 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
19917 as __BIT_FIELD_REF with type with -gimple.
19918
19919 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
19920
19921 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
19922 semantically equivalent branches (left over after prior refactorings).
19923
19924 2019-05-15 Richard Biener <rguenther@suse.de>
19925
19926 PR tree-optimization/88828
19927 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
19928 bogus check.
19929
19930 2019-05-14 Richard Biener <rguenther@suse.de>
19931
19932 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
19933 as __VIEW_CONVERT with -gimple.
19934
19935 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
19936
19937 PR target/82920
19938 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
19939 Darwin.
19940
19941 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
19942
19943 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
19944 define_split to become a define_insn_and_split.
19945
19946 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
19947
19948 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
19949 arguments.
19950 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
19951 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
19952 (sibcall_epilogue): Adjust.
19953 (epilogue): Adjust.
19954
19955 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19956
19957 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
19958 to unsupported ones.
19959 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
19960 * config.host: Likewise.
19961 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
19962 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
19963 __svr4__]: Remove "brand" fallback.
19964 [!KSTAT_DATA_STRING]: Remove.
19965 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
19966 to *-*-solaris2*.
19967 (comdat_group): Likewise.
19968 (set_have_as_tls): Likewise.
19969 (gcc_cv_target_dl_iterate_phdr): Likewise.
19970 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
19971 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
19972 * configure: Regenerate.
19973 * doc/install.texi: Simplify Solaris target triplets.
19974 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
19975 (Specific, *-*-solaris2*): Document Solaris 10 removal.
19976 Remove Solaris 10 references.
19977 Remove obsolete Solaris bug reference.
19978 (Specific, sparc-sun-solaris2.10): Remove.
19979
19980 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
19981
19982 * config/i386/i386.md (any_div): New code iterator.
19983 (paired_mod): New code attribute.
19984 (sgnprefix): Handle DIV and UDIV RTXes.
19985 (u): Ditto.
19986 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
19987 and udivmod<mode>4 patterns using any_div code iterator.
19988 (divmod splitters): Macroize splitters using any_div code iterator.
19989 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
19990 (*udivmodsi4_pow2_zext_2): Ditto.
19991 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
19992 and *udivmod<mode>4_noext patterns using any_div code iterator.
19993 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
19994 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
19995 patterns using any_div code iterator.
19996 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
19997 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
19998 patterns using any_div code iterator.
19999 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
20000 udivmodhiqi3 patterns using any_extend code iterator.
20001
20002 2019-05-14 Richard Biener <rguenther@suse.de>
20003 H.J. Lu <hongjiu.lu@intel.com>
20004
20005 PR tree-optimization/88828
20006 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
20007 permuting in a single non-constant element not extracted
20008 from a vector.
20009
20010 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
20011
20012 * internal-fn.def (SIGNBIT): New.
20013 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
20014 defined.
20015 (signbitv4sf2): Likewise.
20016
20017 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
20018
20019 PR target/90357
20020 * config/mips/mips.c (mips_split_move): Skip forward SRC into
20021 next insn when the SRC reg is dead.
20022
20023 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
20024
20025 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
20026 (alloc_cand_and_find_basis): Ditto.
20027 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
20028 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
20029 (create_add_imm_cand, slsr_process_cast): Ditto.
20030 (slsr_process_copy, replace_mult_candidate): Ditto.
20031 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
20032 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
20033 (pass_strength_reduction::execute): Init the first NULL element.
20034
20035 2019-05-13 Nathan Sidwell <nathan@acm.org>
20036
20037 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
20038 (run_attempt): Reformat line break.
20039
20040 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
20041
20042 PR target/90418
20043 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
20044 data registers in sibcall epilogues.
20045 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
20046
20047 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
20048
20049 PR target/89221
20050 * configure.ac (--enable-frame-pointer):
20051 Disable by default for cygwin and mingw.
20052 * configure: Regenerate.
20053
20054 2019-05-13 Nathan Sidwell <nathan@acm.org>
20055
20056 * dwarf2out.c (breakout_comdat_types): Move comment to correct
20057 piece of code.
20058 (const_ok_for_output_1): Balance parens around #if/#else/#endif
20059 (gen_member_die): Move abstract origin check earlier. Only VARs
20060 can be static_inline_p. Simplify splicing control flow.
20061
20062 2019-05-13 Richard Biener <rguenther@suse.de>
20063
20064 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
20065 VIEW_CONVERT_EXPR.
20066 (vect_build_slp_tree_1): Likewise.
20067
20068 2019-05-13 Richard Biener <rguenther@suse.de>
20069
20070 PR tree-optimization/90402
20071 * tree-if-conv.c (tree_if_conversion): Value number only
20072 the loop body by making the latch an exit of the region
20073 as well.
20074 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
20075 processing PHIs.
20076 (do_rpo_vn): Deal with multiple edges into the entry block
20077 that are not backedges inside the region by skipping PHIs
20078 of the entry block.
20079
20080 2019-05-13 Richard Biener <rguenther@suse.de>
20081
20082 PR tree-optimization/90316
20083 * tree-ssa-pre.c (insert_aux): Fold into ...
20084 (insert): ... this function. Use a RPO walk to reduce the
20085 number of required iterations.
20086
20087 2019-05-13 Martin Liska <mliska@suse.cz>
20088
20089 PR tree-optimization/90416
20090 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
20091 string instead of passing the second part as va_arg argument.
20092
20093 2019-05-13 Martin Liska <mliska@suse.cz>
20094
20095 PR gcov-profile/90380
20096 * gcov.c (handle_cycle): Do not support zero cycle count,
20097 it should not be possible.
20098 (path_contains_zero_cycle_arc): New function.
20099 (circuit): Ignore zero cycle arc counts.
20100
20101 2019-05-13 Martin Liska <mliska@suse.cz>
20102
20103 PR gcov-profile/90380
20104 * gcov.c (enum loop_type): Remove the enum and
20105 the operator.
20106 (handle_cycle): Assert that we should not reach
20107 a negative count.
20108 (circuit): Use loop_found instead of a tri-state loop_type.
20109 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
20110 happen.
20111
20112 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
20113
20114 PR target/82920
20115 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
20116 (ix86_output_indirect_branch_via_reg): Use output mechanism
20117 accounting for __USER_LABEL_PREFIX__.
20118 (ix86_output_indirect_branch_via_push): Likewise.
20119 (ix86_output_function_return): Likewise.
20120 (ix86_output_indirect_function_return): Likewise.
20121
20122 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
20123
20124 * doc/md.texi: Document use of code attributes in rtx patterns.
20125 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
20126 * read-rtl.c (find_code): Split out search loops into...
20127 (maybe_find_code): ...this new function.
20128 (check_code_iterator): Make the error message more informative.
20129 (check_code_attribute): New function.
20130 (rtx_reader::rtx_alloc_for_name): Likewise.
20131 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
20132 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
20133 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
20134 <max_opp> directly as an rtx code instead of via a match_operator.
20135 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
20136 (<su>abd<mode>_3): Update accordingly.
20137
20138 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
20139
20140 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
20141 is given, print the state of the EH "save world" computation for
20142 Darwin.
20143
20144 2019-05-11 Jakub Jelinek <jakub@redhat.com>
20145
20146 PR c++/59813
20147 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
20148 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
20149
20150 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
20151
20152 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
20153 Use pinsrd for TARGET_SSE4_1.
20154 * config/i386/sse.md (movdi_to_sse): Ditto.
20155
20156 2019-05-10 Richard Biener <rguenther@suse.de>
20157
20158 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
20159 (do_rpo_vn): Initialize next_value_id.
20160
20161 2019-05-10 Martin Liska <mliska@suse.cz>
20162
20163 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
20164 Fix plural form.
20165
20166 2019-05-10 Jakub Jelinek <jakub@redhat.com>
20167
20168 PR tree-optimization/90385
20169 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
20170 arguments of the exit phis.
20171
20172 PR c++/90383
20173 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
20174 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
20175 id->do_not_fold.
20176 (copy_tree_body_r): Likewise.
20177 (copy_fn): Set id.do_not_fold to true.
20178
20179 2019-05-10 Martin Liska <mliska@suse.cz>
20180
20181 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
20182 Reapply changes from r269790.
20183
20184 2019-05-10 Martin Liska <mliska@suse.cz>
20185
20186 PR middle-end/90340
20187 * doc/invoke.texi: New params.
20188 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
20189 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
20190 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
20191 Use it.
20192 * tree-switch-conversion.h (struct jump_table_cluster):
20193 Likewise.
20194
20195 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
20196
20197 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
20198
20199 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
20200
20201 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
20202
20203 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
20204
20205 PR rtl-optimization/88879
20206 * sel-sched.c (sel_target_adjust_priority): Remove assert.
20207
20208 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
20209
20210 PR target/90405
20211 * config/arm/arm.c (callee_saved_reg_p): Move before
20212 thumb_find_work_register.
20213 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
20214 thumb_find_work_register. Only call df_get_live_out once.
20215 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
20216 (thumb_find_work_register): Use
20217 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
20218 algorithms to locate a spare call clobbered reg.
20219
20220 2019-05-09 Martin Liska <mliska@suse.cz>
20221
20222 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
20223 and MAX_EXPR in GIMPLE FE format.
20224
20225 2019-05-09 Martin Liska <mliska@suse.cz>
20226
20227 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
20228 * gimple-pretty-print.c (dump_gimple_bb_header):
20229 Dump BB count.
20230 (pp_cfg_jump): Dump edge probability.
20231 * profile-count.c (profile_quality_as_string): Simplify
20232 with a static array.
20233 (parse_profile_quality): New function.
20234 (profile_count::dump): Simplify with a static array.
20235 (profile_count::from_gcov_type): Add new argument.
20236 * profile-count.h (parse_profile_quality): Likewise.
20237 * predict.h (set_hot_bb_threshold): New.
20238 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
20239 New param.
20240 * predict.c (get_hot_bb_threshold): Set from the new param.
20241 (set_hot_bb_threshold): New.
20242
20243 2019-05-09 Richard Biener <rguenther@suse.de>
20244
20245 PR tree-optimization/90395
20246 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
20247 rewrite vector stores that throw internally.
20248
20249 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
20250
20251 * cif-code.def (CHKP): Remove.
20252
20253 PR target/89221
20254 * configure.ac (--enable-frame-pointer): Disable by default for
20255 GNU systems.
20256 * configure: Regenerate.
20257
20258 2019-05-09 Alan Modra <amodra@gmail.com>
20259
20260 PR target/89271
20261 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
20262 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
20263 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
20264 cost for general <-> vsx when direct moves are available.
20265 Cost union classes at minimal cost for any reg in the class.
20266 Correct calculation for moves between vsx, float, and altivec.
20267 Don't return a low cost for moves between special regs. Don't
20268 use hard coded register numbers.
20269 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
20270 (rs6000_ira_change_pseudo_allocno_class): New function.
20271 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
20272 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
20273 alternatives.
20274 (movsi_internal1): Don't disparage vector alternatives.
20275 (mov<mode>_internal): Likewise, excepting alternative that
20276 will be split.
20277 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
20278 we <- b alternative.
20279
20280 2019-05-08 Jakub Jelinek <jakub@redhat.com>
20281
20282 PR c++/59813
20283 PR tree-optimization/89060
20284 * tree-ssa-live.h (live_vars_map): New typedef.
20285 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
20286 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
20287 (struct compute_live_vars_data): New type.
20288 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
20289 live_vars_at_stmt, destroy_live_vars): New functions.
20290 * tree-tailcall.c: Include tree-ssa-live.h.
20291 (live_vars, live_vars_vec): New global variables.
20292 (find_tail_calls): Perform variable life analysis before punting.
20293 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
20294 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
20295 member.
20296 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
20297 Perform variable life analysis to select variables that really need
20298 clobbers added.
20299 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
20300 instead set id->eh_landing_pad_dest and assert it is the same.
20301 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
20302
20303 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
20304 Richard Earnshaw <rearnsha@arm.com>
20305
20306 PR target/88167
20307 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
20308 function.
20309 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
20310 (thumb1_compute_save_core_reg_mask): Don't force a spare work
20311 register if both the epilogue and prologue can use call-clobbered
20312 regs.
20313 (thumb1_unexpanded_epilogue): Use
20314 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
20315 picking temporaries for restoring high regs to match that of the
20316 prologue where possible.
20317 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
20318 the list of work registers. Detect if the return address is still live
20319 at the end of the prologue and avoid using it for a work register if so.
20320 If the return address is not live, add LR to the list of pushable regs
20321 after the first pass.
20322
20323 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
20324
20325 PR tree-optimization/90078
20326 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
20327 (INFTY): Increase the value for infinite cost.
20328 (struct comp_cost): Promote type of members to int64_t.
20329 (infinite_cost): Don't set complexity in initialization.
20330 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
20331 overflows to infinite_cost.
20332 (adjust_setup_cost): Promote type of parameter and cost computation
20333 to int64_t.
20334 (struct ainc_cost_data, struct iv_ca): Promote type of member to
20335 int64_t.
20336 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
20337 cost computation to int64_t.
20338 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
20339 int64_t's format specifier in dump.
20340
20341 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
20342
20343 PR tree-optimization/90240
20344 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
20345 with respect to scaling factor pre-computed for each basic block.
20346 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
20347 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
20348 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
20349 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
20350 live range for array of loop's basic blocks. Cleanup aux field of
20351 loop's basic blocks.
20352
20353 2019-05-08 Jakub Jelinek <jakub@redhat.com>
20354
20355 PR tree-optimization/90356
20356 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
20357
20358 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
20359
20360 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
20361 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
20362 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
20363 (ix86_handle_option): Handle -mavx512bf16.
20364 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
20365 to extra_headers.
20366 * config/i386/avx512bf16vlintrin.h: New.
20367 * config/i386/avx512bf16intrin.h: New.
20368 * config/i386/cpuid.h (bit_AVX512BF16): New.
20369 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
20370 * config/i386/i386-builtin-types.def: Add new types.
20371 * config/i386/i386-builtin.def: Add new builtins.
20372 * config/i386/i386-c.c (ix86_target_macros_internal): Define
20373 __AVX512BF16__.
20374 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
20375 (ix86_option_override_internal): Handle BF16.
20376 (ix86_valid_target_attribute_inner_p): Ditto.
20377 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
20378 * config/i386/i386-builtin.c (enum processor_features): Add
20379 F_AVX512BF16.
20380 (static const _isa_names_table isa_names_table): Ditto.
20381 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
20382 (PTA_AVX512BF16): Ditto.
20383 * config/i386/i386.opt: Add -mavx512bf16.
20384 * config/i386/immintrin.h: Include avx512bf16intrin.h
20385 and avx512bf16vlintrin.h.
20386 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
20387 avx512f_cvtneps2bf16_<mode><mask_name>,
20388 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
20389 * config/i386/subst.md (mask_half): Add new subst.
20390 * doc/invoke.texi: Document -mavx512bf16.
20391
20392 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
20393
20394 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
20395 Delete declaration.
20396 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
20397 (rs6000_debug_legitimize_reload_address): Delete.
20398 (rs6000_legitimize_reload_address_ptr): Delete.
20399 (rs6000_option_override_internal): Adjust.
20400 (mem_operand_gpr): Adjust comment.
20401 (legitimate_lo_sum_address_p): Ditto.
20402 (rs6000_legitimize_reload_address): Delete.
20403 (rs6000_debug_legitimize_reload_address): Delete.
20404 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
20405
20406 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
20407
20408 PR target/89765
20409 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
20410 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
20411 to compute vector element selector for both constant and variable
20412 operands.
20413
20414 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
20415
20416 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
20417 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
20418 ashrdi3_cvt using SWI48 mode iterator.
20419
20420 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
20421
20422 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
20423 (aarch64_<su>abd<mode>_3): Likewise.
20424 (*aarch64_<su>abd<mode>_3): New define_insn.
20425 (<sur>sad<vsi2qi>): New define_expand.
20426 * config/aarch64/iterators.md: Added MAX_OPP attribute.
20427 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
20428 (build_vect_cond_expr): Likewise.
20429
20430 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
20431
20432 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
20433 clobbers outside of accessible_reg_set.
20434 * config/i386/i386.c (ix86_conditional_register_usage):
20435 Disable register sets by clearing corresponding bits in
20436 accessible_reg_set. Do not set corresponding bits in fixed_regs,
20437 call_used_regs and don't clear corresponding reg_names array members.
20438
20439 2019-05-07 Richard Biener <rguenther@suse.de>
20440
20441 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
20442 not specified still compute a comp_vectype for invariant
20443 compares.
20444
20445 2019-05-07 Richard Biener <rguenther@suse.de>
20446
20447 PR tree-optimization/90316
20448 * tree-ssa-pre.c (translate_vuse_through_block): When
20449 same_valid is NULL do not bother to search for a virtual
20450 PHI continuation.
20451 (phi_translate_1): When operands changed we cannot keep
20452 the same value-number so do not bother to ask whether
20453 that's possible from translate_vuse_through_block.
20454
20455 2019-05-07 Martin Liska <mliska@suse.cz>
20456
20457 * bitmap.c (bitmap_register): Come up with
20458 alloc_descriptor_max_uid and assign it for
20459 a new bitmap.
20460 (register_overhead): Use get_descriptor as
20461 a descriptor.
20462 (release_overhead): New.
20463 (bitmap_elem_to_freelist): Call it.
20464 (bitmap_elt_clear_from): Likewise.
20465 (bitmap_obstack_free): Likewise.
20466 (bitmap_move): Sensitively release memory.
20467 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
20468 (bitmap_initialize): Initialize alloc_descriptor to zero.
20469 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
20470
20471 2019-05-07 Richard Biener <rguenther@suse.de>
20472
20473 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
20474 we build a SLP node. Remove max_size and limiting.
20475 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
20476
20477 2019-05-07 Richard Biener <rguenther@suse.de>
20478
20479 PR tree-optimization/90316
20480 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
20481 limit by reference.
20482 (walk_non_aliased_vuses): Take walking limit argument.
20483 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
20484 walking if it is reached instead of just counting.
20485 (get_continuation_for_phi): Likewise.
20486 (walk_non_aliased_vuses): Likewise, instead of leaving counter
20487 limiting to the callback.
20488 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
20489 (vn_reference_lookup_3): Likewise.
20490 (vn_reference_lookup_pieces): Likewise.
20491 (vn_reference_lookup): Likewise.
20492 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
20493 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
20494 (avail_exprs_stack::lookup_avail_expr): Likewise.
20495
20496 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
20497
20498 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
20499 for comparaible types in the second direction even if first one
20500 hits incomparable type.
20501
20502 2019-05-07 Richard Biener <rguenther@suse.de>
20503
20504 PR lto/90369
20505 * lto-wrapper.c (debug_objcopy): Use the original filename
20506 including archive offset for the filename used for -save-temps.
20507
20508 2019-05-07 Li Jia He <helijia@linux.ibm.com>
20509
20510 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
20511 detection.
20512
20513 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
20514 Hongtao Liu <hongtao.liu@intel.com>
20515
20516 PR target/89750
20517 PR target/86444
20518 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
20519 Modified, original implementation isn't correct.
20520
20521 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
20522
20523 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
20524 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
20525 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
20526 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
20527 (FRAME_POINTER_REGNUM): Change numbering.
20528 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
20529 (alt_reg_names): Adjust.
20530 (rs6000_conditional_register_usage): Don't mark hard register 64 as
20531 fixed.
20532 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
20533 (DWARF_FRAME_REGISTERS): Delete.
20534 (DWARF2_FRAME_REG_OUT): Fix whitespace.
20535 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
20536 Adjust.
20537 (REG_ALLOC_ORDER): Adjust.
20538 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
20539 (REG_CLASS_CONTENTS): Adjust.
20540 (RETURN_ADDR_RTX): Change comment.
20541 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
20542 instead of 67.
20543 (REGISTER_NAMES): Adjust.
20544 (ADDITIONAL_REGISTER_NAMES): Adjust.
20545 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
20546
20547 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
20548
20549 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
20550 Delete.
20551 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
20552 (DWARF_FRAME_REGISTERS): Adjust.
20553 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
20554 Adjust.
20555 (REG_ALLOC_ORDER): Adjust.
20556 (enum reg_class): Delete SPR_REGS.
20557 (REG_CLASS_NAMES): Delete SPR_REGS.
20558 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
20559 (REGISTER_NAMES): Adjust.
20560 (ADDITIONAL_REGISTER_NAMES): Adjust.
20561 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
20562 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
20563 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
20564 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
20565 (htm_spr_regno): Delete.
20566 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
20567 argument.
20568 (rs6000_dbx_register_number): Adjust.
20569
20570 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
20571
20572 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
20573
20574 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
20575
20576 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
20577 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
20578
20579 2019-05-06 Jakub Jelinek <jakub@redhat.com>
20580
20581 PR tree-optimization/88709
20582 PR tree-optimization/90271
20583 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
20584 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
20585 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
20586 variable.
20587 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
20588 of the store merging group is larger than
20589 PARAM_STORE_MERGING_MAX_SIZE parameter.
20590 (split_group): Add bzero_first argument. If set, always emit first
20591 the first store which must be = {} of the whole area and then for the
20592 rest of the stores consider all zero bytes as paddings.
20593 (imm_store_chain_info::output_merged_store): Check if first store
20594 is = {} of the whole area and if yes, determine which setting of
20595 bzero_first for split_group gives smaller number of stores. Adjust
20596 split_group callers.
20597 (lhs_valid_for_store_merging_p): Allow decls.
20598 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
20599 no elts.
20600 (pass_store_merging::process_store): Likewise.
20601
20602 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
20603
20604 PR target/89424
20605 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
20606 handling of V1TImode.
20607
20608 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
20609
20610 PR target/89221
20611 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
20612 and enable_frame_pointer ...
20613 * configure.ac: ... here. Update help strings for
20614 --enable-frame-pointer.
20615 * configure: Regenerate.
20616 * config/i386/i386-options.c (ix86_option_override_internal): Remove
20617 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
20618 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
20619 (USE_X86_64_FRAME_POINTER): Ditto.
20620
20621 2019-05-06 Martin Liska <mliska@suse.cz>
20622
20623 * config.gcc: Append to target_gtfiles and fix indentation.
20624
20625 2019-05-06 Richard Biener <rguenther@suse.de>
20626
20627 PR tree-optimization/90358
20628 * tree-vect-stmts.c (get_group_load_store_type): Properly
20629 detect unused upper half of load.
20630 (vectorizable_load): Likewise.
20631
20632 2019-05-06 Richard Biener <rguenther@suse.de>
20633
20634 PR tree-optimization/88828
20635 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
20636 (simplify_vector_constructor): ...here. Handle constants in
20637 the constructor.
20638
20639 2019-05-06 Richard Biener <rguenther@suse.de>
20640
20641 PR tree-optimization/90328
20642 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
20643 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
20644 is valid in the loop nest before using it.
20645 (initialize_data_dependence_relation): Adjust.
20646 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
20647 loop as loop-nest to dr_may_alias_p.
20648
20649 2019-05-06 Richard Biener <rguenther@suse.de>
20650
20651 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
20652
20653 2019-05-06 Richard Biener <rguenther@suse.de>
20654
20655 PR tree-optimization/90316
20656 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
20657 compute target on demand.
20658 (get_continuation_for_phi): Remove code walking stmts to
20659 get to a target virtual operand which could end up being
20660 quadratic.
20661
20662 2019-05-06 Martin Liska <mliska@suse.cz>
20663
20664 PR sanitizer/90312
20665 * config/i386/i386-options.c (ix86_option_override_internal): Error only
20666 when -mabi is selected to a non-default version.
20667
20668 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
20669 Martin Liska <mliska@suse.cz>
20670
20671 * Makefile.in: Add lto-dump.texi.
20672 * cgraph.h: Add new functions get_visibility_string and
20673 get_symtab_type_string.
20674 * doc/gcc.texi: Include lto-dump section.
20675 * doc/lto-dump.texi: New file.
20676 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
20677 (parse_dump_option): Factor out this function.
20678 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
20679 (parse_dump_option): Export the function.
20680 * symtab.c (symtab_node::get_visibility_string): New function.
20681 (symtab_node::get_symtab_type_string): Likewise.
20682
20683 2019-05-06 Martin Liska <mliska@suse.cz>
20684
20685 * config/i386/i386-builtins.c: New file.
20686 * config/i386/i386-builtins.h: New file.
20687 * config/i386/i386-expand.c: New file.
20688 * config/i386/i386-expand.h: New file.
20689 * config/i386/i386-features.c: New file.
20690 * config/i386/i386-features.h: New file.
20691 * config/i386/i386-options.c: New file.
20692 * config/i386/i386-options.h: New file.
20693 * config.gcc: Add new files into extra_objs and
20694 target_gtfiles.
20695 * config/i386/i386.c: Split content of the file
20696 into newly introduced files.
20697 * config/i386/i386.h: Declare common variables
20698 and macros.
20699 * config/i386/t-i386: Define dependencies for new files.
20700
20701 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
20702
20703 PR target/89400
20704 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
20705 Restrict 'all' variant to 32-bit configurations.
20706 (unaligned_loadhiu): Likewise.
20707 (unaligned_storehi): Likewise.
20708 (unaligned_storesi): Likewise.
20709 (unaligned_loadhis): Disable when compiling for thumb1.
20710
20711 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
20712
20713 PR tree-optimization/90269
20714 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
20715 Ignore clobbers.
20716
20717 2019-05-03 Martin Liska <mliska@suse.cz>
20718
20719 * hash-map.h: Add is_empty function.
20720 * hash-set.h: Likewise.
20721 * hash-table.h: Likewise.
20722 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
20723 elements () == 0 (and similar usages).
20724 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
20725 * gimplify.c (gimplify_bind_expr): Likewise.
20726 (gimplify_switch_expr): Likewise.
20727 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
20728 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
20729 * postreload-gcse.c (dump_hash_table): Likewise.
20730 (gcse_after_reload_main): Likewise.
20731 * predict.c (combine_predictions_for_bb): Likewise.
20732 * tree-parloops.c (reduction_phi): Likewise.
20733 (separate_decls_in_region): Likewise.
20734 (transform_to_exit_first_loop): Likewise.
20735 (gen_parallel_loop): Likewise.
20736 (gather_scalar_reductions): Likewise.
20737 (try_create_reduction_list): Likewise.
20738 * var-tracking.c (dump_vars): Likewise.
20739 (emit_notes_for_changes): Likewise.
20740 (vt_emit_notes): Likewise.
20741
20742 2019-05-03 Richard Biener <rguenther@suse.de>
20743
20744 PR tree-optimization/90316
20745 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
20746 before running VN.
20747
20748 2019-05-03 Richard Biener <rguenther@suse.de>
20749
20750 * tree-vect-stmts.c (get_group_load_store_type): Avoid
20751 peeling for gaps by loading only lower halves of vectors
20752 if possible.
20753 (vectorizable_load): Likewise.
20754
20755 2019-05-03 Richard Biener <rguenther@suse.de>
20756
20757 PR middle-end/89518
20758 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
20759
20760 2019-05-03 Richard Biener <rguenther@suse.de>
20761
20762 PR middle-end/87314
20763 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
20764 Handle STRING_CST vs DECL or STRING_CST.
20765
20766 2019-05-03 Richard Biener <rguenther@suse.de>
20767
20768 PR tree-optimization/88963
20769 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
20770 vector loads feeding only BIT_FIELD_REFs to component
20771 loads. Rewrite stores fed by CONSTRUCTORs to component
20772 stores.
20773
20774 2019-05-03 Jakub Jelinek <jakub@redhat.com>
20775
20776 * opts.h (finish_options): Remove lang_mask argument.
20777 (print_help, help_option_argument): Declare.
20778 * opts.c (print_help): Remove forward declaration, no longer static.
20779 (finish_options): Remove lang_mask argument, don't call print_help
20780 here.
20781 * opts-global.c (decode_options): Adjust finish_option caller, call
20782 print_help here.
20783
20784 PR tree-optimization/90303
20785 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
20786 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
20787
20788 2019-05-03 Richard Biener <rguenther@suse.de>
20789
20790 PR tree-optimization/89698
20791 * gimple-fold.c (canonicalize_constructor_val): Early out
20792 for constants, handle unfolded INTEGER_CSTs as they appear in
20793 C++ virtual table ctors.
20794
20795 2019-05-03 Richard Biener <rguenther@suse.de>
20796
20797 * passes.c (execute_function_todo): Remove dead code.
20798
20799 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
20800
20801 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
20802 the internal register number, for any "real" register.
20803
20804 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
20805
20806 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
20807 correct numbers for TFHAR, TFIAR, TEXASR.
20808
20809 2019-05-02 Richard Biener <rguenther@suse.de>
20810
20811 PR tree-optimization/89653
20812 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
20813 update-address-taken before the pass.
20814 * passes.def (pass_tree_loop_init): Put comment before it.
20815
20816 2019-05-02 Richard Biener <rguenther@suse.de>
20817
20818 PR tree-optimization/89509
20819 * tree-ssa-structalias.c (compute_dependence_clique): Look
20820 at the first subvar when determining whether it is restrict.
20821
20822 2019-05-02 Richard Biener <rguenther@suse.de>
20823
20824 PR tree-optimization/90273
20825 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
20826 useless debug stmts.
20827
20828 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
20829
20830 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
20831 ACLE branch.
20832 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
20833 SVE ACLE branch.
20834 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
20835 VEC_COND_EXPR be inserted to emulate a conditional internal function.
20836 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
20837 (vectorizable_reduction): Use the functions above to vectorize in a
20838 fully masked loop codes that don't have a conditional internal
20839 function.
20840
20841 2019-05-02 Martin Liska <mliska@suse.cz>
20842
20843 * cgraphclones.c: Call valid_attribute_p with 1 for
20844 target_clone.
20845 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
20846 it's for target attribute.
20847 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
20848 Add new boolean argument.
20849 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
20850 Likewise.
20851 (ix86_valid_target_attribute_tree): Pass target_clone_attr
20852 to ix86_valid_target_attribute_inner_p.
20853 (ix86_valid_target_attribute_p): Pass flags argument to
20854 ix86_valid_target_attribute_inner_p.
20855 (get_builtin_code_for_version): Use 0 as it's target attribute.
20856
20857 2019-05-02 Martin Liska <mliska@suse.cz>
20858
20859 * gcc.c (process_command): Add dummy file only
20860 if n_infiles == 0.
20861 * opts-global.c (decode_options): Pass lang_mask.
20862 * opts.c (print_help): New function.
20863 (finish_options): Print --help if help_option_argument
20864 is set.
20865 (common_handle_option): Factor out content of OPT__help_
20866 into print_help.
20867 * opts.h (finish_options): Add new argument.
20868
20869 2019-05-02 Martin Liska <mliska@suse.cz>
20870
20871 PR target/88809
20872 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
20873 With -minline-all-stringops use inline expansion using 4B loop.
20874 * doc/invoke.texi: Document the change of
20875 -minline-all-stringops.
20876
20877 2019-05-01 Jeff Law <law@redhat.com>
20878
20879 PR tree-optimization/88797
20880 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
20881 PHI feeds a conditional on the RHS of an assignment.
20882
20883 2019-04-30 Andrew Waterman <andrew@sifive.com>
20884 Jim Wilson <jimw@sifive.com>
20885
20886 * config/riscv/constraints.md (L): New.
20887 * config/riscv/predicates.md (lui_operand): New.
20888 (sfb_alu_operand): New.
20889 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
20890 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
20891 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
20892 * config/riscv/risc.md (type): Add sfb_alu.
20893 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
20894 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
20895 (branch_zero<mode>): Delete.
20896 (mov<mode>cc): New.
20897 (mov<GPR:mode><X:mode>cc): Likewise.
20898 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
20899
20900 2019-04-30 Nathan Sidwell <nathan@acm.org>
20901
20902 * tree.h (MARK_TS_EXP): New.
20903
20904 2019-04-30 Martin Liska <mliska@suse.cz>
20905
20906 * opts.c (enable_warning_as_error): Provide hints
20907 for unknown options.
20908
20909 2019-04-30 Martin Liska <mliska@suse.cz>
20910
20911 PR debug/90288
20912 * doc/invoke.texi: Add missing dash for gas-locview-support
20913 and gno-as-locview-support.
20914
20915 2019-04-30 Jakub Jelinek <jakub@redhat.com>
20916
20917 PR target/89093
20918 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
20919 whitespace at the start of target attribute string.
20920
20921 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20922
20923 PR target/86538
20924 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
20925 Define __ARM_FEATURE_ATOMICS.
20926
20927 2019-04-30 Martin Liska <mliska@suse.cz>
20928
20929 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
20930 into built_in_function enum. Remove code for endp == 2 and
20931 use BUILT_IN_* constants.
20932 (gimple_fold_builtin): Call the function with fcode.
20933
20934 2019-04-30 Martin Liska <mliska@suse.cz>
20935
20936 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
20937 DECL_FUNCTION_CODE into ix86_builtins enum before
20938 the switch statement.
20939
20940 2019-04-30 Jakub Jelinek <jakub@redhat.com>
20941
20942 PR tree-optimization/89475
20943 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
20944 calls.
20945
20946 2019-04-30 Martin Liska <mliska@suse.cz>
20947
20948 PR translation/90274
20949 * opts.c (print_filtered_help): Wrap string in _(...).
20950
20951 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
20952
20953 PR tree-optimization/90240
20954 Revert:
20955 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20956
20957 PR tree-optimization/90078
20958 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
20959 checks for infinite_cost overflow.
20960
20961 2019-04-29 Jeff Law <law@redhat.com>
20962
20963 * passes.def: Move -Wrestrict pass after copy propagation.
20964
20965 2019-04-29 Maya Rashish <coypu@sdf.org>
20966
20967 * config.gcc (default_gnu_indirect_function): Default to yes
20968 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
20969 sparc*-*-netbsd*, x86_64-*-netbsd*.
20970
20971 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
20972
20973 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
20974 where cond2 is NE_EXPR.
20975 (is_value_included_in): Update comment.
20976
20977 2019-04-29 Richard Biener <rguenther@suse.de>
20978
20979 PR tree-optimization/90278
20980 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
20981 EH on comparison simplification.
20982
20983 2019-04-29 Jason Merrill <jason@redhat.com>
20984
20985 PR c++/82081 - tail call optimization breaks noexcept
20986 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
20987 nothrow function to a might-throw function into a tail call.
20988
20989 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
20990
20991 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
20992 (DDR_INNER_LOOP): Likewise.
20993 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
20994 (initialize_data_dependence_relation): Likewise.
20995 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
20996
20997 2019-04-29 Jakub Jelinek <jakub@redhat.com>
20998
20999 PR rtl-optimization/90257
21000 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
21001 return value.
21002
21003 Revert the revert:
21004 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
21005
21006 PR target/90178
21007 Revert:
21008 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
21009
21010 Revert the revert:
21011 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
21012
21013 Revert:
21014 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
21015
21016 * lra-spills.c (lra_final_code_change): Remove useless move insns.
21017
21018 2019-04-29 Richard Biener <rguenther@suse.de>
21019
21020 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
21021 rhs issue a reset.
21022
21023 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
21024
21025 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
21026 varasm.h, and netbsd-protos.h.
21027
21028 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
21029
21030 PR target/89261
21031 * config/i386/i386-protos.h (ix86_data_alignment): Change
21032 the second argument type to unsigned int.
21033 * config/i386/i386.c (ix86_data_alignment): Change "align"
21034 argument type to unsigned int.
21035
21036 2019-04-27 Martin Liska <mliska@suse.cz>
21037
21038 PR middle-end/90258
21039 * opt-suggestions.c (option_proposer::build_option_suggestions):
21040 When get_valid_option_values returns empty values, add the
21041 misspelling candidate.
21042
21043 2019-04-26 Jim Wilson <jimw@sifive.com>
21044
21045 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
21046 parameter.
21047 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
21048 Pass orig_mode to riscv_build_integer.
21049 (riscv_split_integer): Pass mode to riscv_move_integer.
21050 (riscv_legitimize_const_move): Likewise.
21051 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
21052 promoted_mode. Replace force_reg call with code to load constant into
21053 promoted reg and then subreg it for the store.
21054 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
21055 riscv_move_integer.
21056
21057 2018-04-26 Eugene Sharygin <eush@ispras.ru>
21058
21059 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
21060 corrupt codes.
21061
21062 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
21063
21064 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
21065 commentary about the encoding of precision.
21066
21067 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
21068
21069 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
21070 * config/i386/t-freebsd64: New file.
21071 * config.gcc: Add the t-freebsd64 for multilib support.
21072
21073 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
21074
21075 * doc/extend.texi (vector_size): Add missing comma after @xref.
21076
21077 2019-04-25 Jakub Jelinek <jakub@redhat.com>
21078
21079 * BASE-VER: Set to 10.0.0.
21080
21081 2019-04-25 Richard Biener <rguenther@suse.de>
21082
21083 PR middle-end/89765
21084 * gimplify.c (gimplify_expr): Avoid turning a lvalue
21085 VIEW_CONVERT_EXPR into one operating on an rvalue.
21086
21087 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
21088
21089 PR target/89929
21090 * config/i386/i386.c (feature_priority): Moved to file scope.
21091 (processor_features): Likewise.
21092 (processor_model): Likewise.
21093 (_arch_names_table): Likewise.
21094 (arch_names_table): Likewise.
21095 (_feature_list): Removed.
21096 (feature_list): Likewise.
21097 (_isa_names_table): Moved to file scope. Add priority.
21098 (isa_names_table): Likewise.
21099 (get_builtin_code_for_version): Replace feature_list with
21100 isa_names_table. Update error message for P_ZERO priority.
21101
21102 2019-04-25 Richard Biener <rguenther@suse.de>
21103
21104 * tree-pass.h (make_pass_phi_only_cprop): Remove.
21105 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
21106
21107 2019-04-24 Jeff Law <law@redhat.com>
21108
21109 PR tree-optimization/90037
21110 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
21111 * passes.def: Replace all instance of phi-only cprop with the
21112 lattice propagator. Move propagation pass from after erroneous
21113 path isolation to before erroneous path isolation.
21114 * tree-ssa-phionlycprop.c: Remove.
21115
21116 2019-04-24 Richard Biener <rguenther@suse.de>
21117
21118 PR middle-end/90213
21119 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
21120 by size and BITS_PER_UNIT on poly-wide-ints.
21121
21122 2019-04-25 Richard Biener <rguenther@suse.de>
21123
21124 PR middle-end/90194
21125 * match.pd: Add pattern to simplify view-conversion of an
21126 empty constructor.
21127
21128 2019-04-24 Clement Chigot <clement.chigot@atos.net>
21129
21130 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
21131 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
21132 for Go on 32 bit AIX.
21133 * config/rs6000/aix72.h: Likewise.
21134
21135 2019-04-24 Jakub Jelinek <jakub@redhat.com>
21136
21137 PR target/90193
21138 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
21139 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
21140
21141 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
21142
21143 PR target/89952
21144 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
21145 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
21146 for restored hard frame pointer.
21147 (s390_sched_dependencies_evaluation): Implement new target hook.
21148 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
21149
21150 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
21151
21152 * config/arc/arc-options.def: Fix typos and spelling mistakes.
21153 * config/arc/arc.c (arc_init): Cleanup warning message.
21154 (arc_override_options): Likewise.
21155
21156 2019-04-24 Jakub Jelinek <jakub@redhat.com>
21157
21158 PR target/90187
21159 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
21160 a register if both if_true and if_false are MEMs.
21161
21162 PR tree-optimization/90208
21163 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
21164 after labels of new_bb, not before them.
21165
21166 PR tree-optimization/90211
21167 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
21168 which are not SSA_NAMEs.
21169
21170 2018-04-23 Sudakshina Das <sudi.das@arm.com>
21171
21172 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
21173 AArch64.
21174 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
21175
21176 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
21177
21178 PR rtl-optimization/87979
21179 * modulo-sched.c (sms_schedule): Start ii value "mii" should
21180 not equal zero.
21181
21182 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
21183
21184 PR rtl-optimization/84032
21185 * modulo-sched.c (ps_insn_find_column): Change condition so that
21186 branch will always be the last insn in a row inside partial
21187 schedule.
21188
21189 2019-04-23 Richard Biener <rguenther@suse.de>
21190
21191 PR debug/90131
21192 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
21193 dest_single_pred_p argument.
21194 (remove_forwarder_block): Adjust.
21195 (remove_forwarder_block_with_phi): Likewise.
21196
21197 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21198 Bernd Edlinger <bernd.edlinger@hotmail.de>
21199 Jakub Jelinek <jakub@redhat.com>
21200
21201 PR target/89093
21202 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
21203 if used with general-regs-only.
21204 (arm_conditional_register_usage): Don't add non-general regs if
21205 general-regs-only.
21206 (arm_valid_target_attribute_rec): Handle general-regs-only.
21207 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
21208 general-regs-only.
21209 (TARGET_HARD_FLOAT_SUB): Define.
21210 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
21211 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
21212 (TARGET_REALLY_IWMMXT2): Likewise.
21213 * config/arm/arm.opt: Add -mgeneral-regs-only.
21214 * doc/extend.texi: Document ARM general-regs-only target.
21215 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
21216
21217 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
21218
21219 PR tree-optimization/90078
21220 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
21221 checks for infinite_cost overflow.
21222
21223 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
21224
21225 PR tree-optimization/90021
21226 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
21227 and check univariate against it.
21228 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
21229 * tree-data-ref.c (add_other_self_distances): Pass new argument.
21230
21231 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
21232
21233 PR target/90178
21234 Revert:
21235 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
21236
21237 Revert the revert:
21238 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
21239
21240 Revert:
21241 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
21242
21243 * lra-spills.c (lra_final_code_change): Remove useless move insns.
21244
21245 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
21246
21247 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
21248 names using operand format, rather than hard-wired.
21249 (speculation_barrier): Likewise.
21250
21251 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
21252
21253 PR tree-optimization/88055
21254 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
21255 (gen_one_condition): Use it if !HONOR_NANS.
21256
21257 2019-04-19 Jakub Jelinek <jakub@redhat.com>
21258
21259 PR middle-end/90139
21260 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
21261 assign_temp instead of gen_reg_rtx.
21262
21263 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
21264
21265 PR translation/90118
21266 * config/aarch64/aarch64.c (aarch64_override_options_internal):
21267 Add missing space before %<.
21268
21269 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
21270
21271 PR rtl-optimization/87871
21272 * ira-lives.c (make_object_dead): Don't add conflicts to
21273 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
21274
21275 2019-04-18 Martin Sebor <msebor@redhat.com>
21276
21277 PR middle-end/89797
21278 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
21279 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
21280 assuming type size fits in SHWI.
21281
21282 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
21283
21284 PR ipa/85051
21285 * ipa-inline.c (flatten_function): New parameter UPDATE.
21286 (ipa_inline, early_inliner): Use it.
21287
21288 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
21289
21290 * fold-const.c (int_const_binop): Return early on failure.
21291
21292 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
21293
21294 PR middle-end/85164
21295 * combine.c (force_int_to_mode): Cast the argument rather than
21296 the result of known_alignment.
21297 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
21298
21299 2019-04-18 Richard Biener <rguenther@suse.de>
21300
21301 PR debug/90131
21302 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
21303 out from ...
21304 (remove_forwarder_block): ... here.
21305 (remove_forwarder_block_with_phi): Also move debug stmts here.
21306
21307 2019-04-18 Jakub Jelinek <jakub@redhat.com>
21308
21309 PR translation/79183
21310 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
21311 inform where appropriate.
21312
21313 2019-04-18 Richard Biener <rguenther@suse.de>
21314
21315 * tree.c (get_qualified_type): Put found type variants at the
21316 head of the variant list.
21317
21318 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
21319
21320 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
21321
21322 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
21323
21324 PR target/90125
21325 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
21326 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
21327 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
21328 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
21329 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
21330
21331 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
21332
21333 * ira-conflicts.c (print_allocno_conflicts): Always print something,
21334 even for allocno's with no conflicts.
21335 (print_conflicts): Print an extra newline.
21336
21337 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
21338
21339 * auto-inc-dec.c (attempt_change): Set the alignment of the
21340 temporary memory to that of the original.
21341
21342 2019-04-17 Joao Moreira <jmoreira@suse.de>
21343
21344 * targhooks.c (default_print_patchable_function_entry): Emit
21345 __patchable_function_entries section with writable flags to allow
21346 relocation resolution.
21347
21348 2019-04-17 Jonny Grant <jg@jguk.org>
21349
21350 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
21351
21352 2019-04-17 Jakub Jelinek <jakub@redhat.com>
21353
21354 PR middle-end/90095
21355 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
21356 on lowpart SUBREGs.
21357
21358 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
21359
21360 * config/arc/arc.c (arc_init): Format diagnostic string.
21361 (arc_override_options): Likewise.
21362 (check_if_valid_regno_const): Likewise.
21363 (arc_reorg): Likewise.
21364
21365 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
21366
21367 PR target/17108
21368 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
21369 name.
21370 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
21371 name.
21372 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
21373 (*movdi_update1): Use Pmode.
21374 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
21375 (movdi_<mode>_update_stack): Rename to ...
21376 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
21377 use Pmode.
21378 (*movsi_update1): Use Pmode.
21379 (*movsi_update2): Use Pmode.
21380 (movsi_update): Rename to ...
21381 (movsi_<mode>_update): ... this. Use Pmode.
21382 (movsi_update_stack): Fix condition.
21383 (*movhi_update1): Use Pmode. Fix argument to
21384 avoiding_indexed_address_p.
21385 (*movhi_update2): Ditto.
21386 (*movhi_update3): Ditto.
21387 (*movhi_update4): Ditto.
21388 (*movqi_update1): Ditto.
21389 (*movqi_update2): Ditto.
21390 (*movqi_update3): Ditto.
21391 (*movsf_update1, *movdf_update1): Merge, rename to...
21392 (*mov<mode>_update1): This. Use Pmode. Fix argument to
21393 avoiding_indexed_address_p. Add "size" attribute.
21394 (*movsf_update2, *movdf_update2): Merge, rename to...
21395 (*mov<mode>_update2): This. Ditto.
21396 (*movsf_update3): Use Pmode. Fix argument to
21397 avoiding_indexed_address_p.
21398 (*movsf_update4): Ditto.
21399 (allocate_stack): Simplify condition. Adjust pattern names.
21400
21401 2019-04-17 Jakub Jelinek <jakub@redhat.com>
21402
21403 PR target/89093
21404 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
21405 whitespace at the start of target attribute string.
21406
21407 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
21408
21409 PR target/84369
21410 * config/rs6000/power9.md: Add store forwarding bypass.
21411
21412 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
21413
21414 PR debug/89528
21415 * valtrack.c (dead_debug_insert_temp): Reset debug references
21416 to the return value of a call being removed.
21417
21418 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
21419
21420 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
21421 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
21422 implement target hook.
21423 (arc_memory_move_cost): New function.
21424 (TARGET_REGISTER_MOVE_COST): Define.
21425 (TARGET_MEMORY_MOVE_COST): Likewise.
21426 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
21427 (MEMORY_MOVE_COST): Likewise.
21428
21429 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
21430
21431 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
21432 (sibcall_value_insn): Likewise.
21433 * config/arc/constraints.md (Rs5): Remove.
21434
21435 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
21436
21437 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
21438 for last two fake registers.
21439 (arc_conditional_register_usage): Make sure fake frame and arg
21440 pointer regs are in general regs class.
21441 (FRAME_POINTER_MASK): Remove.
21442 (RETURN_ADDR_MASK): Remove.
21443 (arc_must_save_register): Use hard frame regnum.
21444 (frame_restore_reg): Use hard_frame_pointer_rtx.
21445 (arc_save_callee_saves): Likewise.
21446 (arc_restore_callee_saves): Likewise.
21447 (arc_save_callee_enter): Likewise.
21448 (arc_restore_callee_leave): Likewise.
21449 (arc_save_callee_milli): Likewise.
21450 (arc_eh_return_address_location): Likewise.
21451 (arc_check_multi): Use hard frame regnum.
21452 (arc_can_eliminate): Likewise.
21453 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
21454 for register allocator.
21455 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
21456 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
21457 (FRAME_POINTER_REGNUM): Change it to a fake register.
21458 (HARD_FRAME_POINTER_REGNUM): Defined.
21459 (ARG_POINTER_REGNUM): Change it to a new fake register.
21460 (ELIMINABLE_REGS): Update.
21461 (REGISTER_NAMES): Update names.
21462 * config/arc/arc.md (LP_START): Remove.
21463 (LP_END): Likewise.
21464 (shift_si3_loop): Update pattern.
21465
21466 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
21467
21468 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
21469 to avoid delay slot scheduling.
21470 (arc_must_save_register): Don't save SP.
21471 * config/arc/arc.md (stack_tie): Remove.
21472 (UNSPEC_ARC_STKTIE): Likewise.
21473
21474 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
21475 Shiva Chen <shiva0217@gmail.com>
21476
21477 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
21478 code gen with large shift amount.
21479
21480 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
21481
21482 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
21483 subreg.
21484
21485 2019-04-16 Jakub Jelinek <jakub@redhat.com>
21486
21487 PR target/90096
21488 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
21489 print -m64/-mx32/-m32 if it is true.
21490 (ix86_debug_options, ix86_function_specific_print): Pass true as
21491 ADD_ABI_P to ix86_target_string.
21492 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
21493 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
21494 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
21495
21496 PR rtl-optimization/90082
21497 * dce.c (can_delete_call): New function.
21498 (deletable_insn_p, mark_insn): Use it.
21499
21500 PR tree-optimization/90090
21501 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
21502 throw internally.
21503 (is_division_by_square): Likewise. Formatting fix.
21504
21505 2019-04-16 Richard Biener <rguenther@suse.de>
21506
21507 PR tree-optimization/56049
21508 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
21509 equality check if alias-set zero will prevail.
21510
21511 2019-04-15 Jeff Law <law@redhat.com>
21512
21513 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
21514 size and alignment as unsigned.
21515
21516 2019-04-15 Richard Biener <rguenther@suse.de>
21517
21518 PR debug/90074
21519 * tree-loop-distribution.c (destroy_loop): Preserve correct
21520 debug info.
21521
21522 2019-04-15 Richard Biener <rguenther@suse.de>
21523
21524 PR tree-optimization/90071
21525 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
21526 abnormal operands from def stmts.
21527
21528 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
21529
21530 PR rtl-optimization/89794
21531 * combine.c (count_auto_inc): New function.
21532 (try_combine): Count how many auto_inc expressions there were in the
21533 original instructions. Ensure we have the same number in the new
21534 instructions. Remove the code that tried to ensure auto_inc side
21535 effects on i1 and i0 are not lost.
21536
21537 2019-04-15 Richard Biener <rguenther@suse.de>
21538
21539 PR ipa/88936
21540 * tree.h (auto_var_p): Declare.
21541 * tree.c (auto_var_p): New function, split out from ...
21542 (auto_var_in_fn_p): ... here.
21543 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
21544 member.
21545 (new_var_info): Initialize it.
21546 (set_uids_in_ptset): Also set the shadow variable uid if required.
21547 (ipa_pta_execute): Postprocess points-to solutions assigning
21548 shadow variable uids for locals that may reach their containing
21549 function recursively.
21550 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
21551 assert but instead check whether the points-to solution is
21552 a singleton.
21553
21554 2019-04-15 Martin Jambor <mjambor@suse.cz>
21555
21556 PR ipa/pr89693
21557 * cgraph.c (clone_of_p): Loop over clone chain for each step in
21558 the thunk chain.
21559
21560 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
21561
21562 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
21563
21564 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
21565 Kito Cheng <kito.cheng@gmail.com>
21566 Shiva Chen <shiva0217@gmail.com>
21567
21568 * config/nds32/nds32-md-auxiliary.c
21569 (nds32_legitimize_pic_address): Use new PIC pattern.
21570 (nds32_legitimize_tls_address): Use new TLS pattern.
21571 (nds32_output_symrel): New.
21572 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
21573 (nds32_alloc_relax_group_id): Ditto.
21574 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
21575 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
21576 relax_group_id.
21577 (nds32_group_tls_insn): Ditto.
21578 (nds32_group_float_insns): Ditto.
21579 * config/nds32/nds32.md (tls_le): New.
21580 (sym_got): Ditto.
21581
21582 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
21583
21584 * configure: Add nds32 target for dwarf2 debug_line checking.
21585 * configure.ac: Regenerated.
21586
21587 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
21588
21589 PR lto/89358
21590 * ipa-devirt.c (skip_in_fields_list_p): New.
21591 (odr_types_equivalent_p): Use it.
21592
21593 2019-04-13 Jakub Jelinek <jakub@redhat.com>
21594
21595 PR target/89093
21596 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
21597 instead of strncmp when checking for thumb and arm. Formatting fixes.
21598
21599 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
21600
21601 * doc/install.texi: Document --with-target-system-zlib.
21602
21603 2019-04-12 Martin Sebor <msebor@redhat.com>
21604
21605 PR c/88383
21606 PR c/89288
21607 PR c/89798
21608 PR c/89797
21609 * targhooks.c (default_vector_alignment): Avoid assuming
21610 argument fits in SHWI.
21611 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
21612 a shift expression.
21613 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
21614
21615 2019-04-12 Jakub Jelinek <jakub@redhat.com>
21616
21617 PR rtl-optimization/89965
21618 * dce.c: Include rtl-iter.h.
21619 (struct check_argument_load_data): New type.
21620 (check_argument_load): New function.
21621 (find_call_stack_args): Check for loads from stack slots still tracked
21622 in sp_bytes and punt if any is found.
21623
21624 * config/mips/loongson-mmiintrin.h: Fix up #error message.
21625
21626 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
21627
21628 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
21629 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
21630
21631 2019-04-12 Martin Liska <mliska@suse.cz>
21632
21633 PR middle-end/89970
21634 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
21635 in error message.
21636 (separate_attrs): Handle multiple 'default's.
21637 (expand_target_clones): Rework error handling code.
21638
21639 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
21640
21641 PR target/87532
21642 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
21643 mode of vector rather than mode of destination for move instruction.
21644 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
21645 Use QI inner mode with V16QI vector mode.
21646
21647 2019-04-12 Jakub Jelinek <jakub@redhat.com>
21648
21649 PR target/52726
21650 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
21651 "invalid %%t operand" in output_operand_lossage message.
21652
21653 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
21654
21655 * config/s390/predicates.md (permute_pattern_operand): New
21656 predicate.
21657 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
21658 operand for the permute pattern.
21659 ("*vec_perm<mode>"): New insn definition.
21660 ("bswap<mode>"): Generate the permute pattern operand in the
21661 expander and perform the operand reloads for pre arch13 level
21662 already.
21663 ("*bswap<mode>_emu"): Rename to ...
21664 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
21665 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
21666 Add the USE operand for the permute pattern.
21667 ("*vec_set_bswap_vec<mode>"): Likewise.
21668
21669 2019-04-12 Jakub Jelinek <jakub@redhat.com>
21670
21671 PR c/89946
21672 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
21673 and gcc_unreachable if it fails, just call tree_to_uhwi which
21674 verifies that too. Test TREE_CHAIN instead of list_length > 1.
21675 Start warning message with a lower-case letter. Formatting fixes.
21676
21677 PR rtl-optimization/90026
21678 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
21679 successors, look for BARRIERs inside of the whole BB_FOOTER chain
21680 rather than just at the start of it. If e->src BB_FOOTER is not NULL
21681 in cfglayout mode, use emit_barrier_after_bb.
21682
21683 2018-04-11 Steve Ellcey <sellcey@marvell.com>
21684
21685 PR rtl-optimization/87763
21686 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
21687 New Instruction.
21688
21689 2019-04-11 Tom de Vries <tdevries@suse.de>
21690
21691 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
21692 max macro using statement expression.
21693
21694 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
21695
21696 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
21697 * xcoffout.c (xcoff_private_rodata_section_name): Define.
21698 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
21699 read_only_private_data_section using xcoff_private_rodata_section_name.
21700 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
21701
21702 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
21703
21704 PR target/90016
21705 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
21706
21707 2019-04-11 Jakub Jelinek <jakub@redhat.com>
21708
21709 PR rtl-optimization/89965
21710 * dce.c (sp_based_mem_offset): New function.
21711 (find_call_stack_args): Use sp_based_mem_offset.
21712
21713 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
21714
21715 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
21716
21717 2019-04-11 Richard Biener <rguenther@suse.de>
21718
21719 PR tree-optimization/90020
21720 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
21721 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
21722 * tree-ssa-pre.c (compute_avail): Use it to not put
21723 possibly trapping references after a call that might not
21724 return into EXP_GEN.
21725 * gcse.c (compute_hash_table_work): Do not elide
21726 marking a block containing a call if the call might not
21727 return.
21728
21729 2019-04-11 Richard Biener <rguenther@suse.de>
21730
21731 PR tree-optimization/90018
21732 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
21733 Test both SLP and interleaving variants.
21734
21735 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
21736
21737 * config/s390/8561.md: New file.
21738 * config/s390/driver-native.c (s390_host_detect_local_cpu):
21739 Add arch13 cpu model.
21740 * config/s390/s390-opts.h (enum processor_type): Likewise.
21741 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
21742 (s390_get_unit_mask): Likewise.
21743 (s390_is_fpd): Likewise.
21744 (s390_is_fxd): Likewise.
21745 * config/s390/s390.h (s390_tune_attr): Likewise.
21746 * config/s390/s390.md: Include arch13 pipeline description.
21747 * config/s390/s390.opt: Add arch13.
21748
21749 2018-04-10 Steve Ellcey <sellcey@marvell.com>
21750
21751 PR rtl-optimization/87763
21752 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
21753 New prototype.
21754 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
21755 New function.
21756 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
21757 New instruction.
21758 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
21759 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
21760 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
21761 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
21762
21763 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
21764
21765 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
21766 "Although" in -fipa-icf documentation.
21767
21768 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
21769 of using multiple -g options.
21770
21771 2019-04-10 Martin Liska <mliska@suse.cz>
21772
21773 PR gcov-profile/89959
21774 * doc/gcov.texi: Make documentation of -x option
21775 more precise.
21776
21777 2019-04-10 Richard Biener <rguenther@suse.de>
21778
21779 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
21780 member.
21781 (DR_GROUP_SAME_DR_STMT): Remove.
21782 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
21783 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
21784 replace with assert.
21785 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
21786 (vect_record_grouped_load_vectors): Remove unreachable code.
21787
21788 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
21789
21790 PR target/90016
21791 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
21792 obsolete reference to N.
21793
21794 2019-04-10 Jakub Jelinek <jakub@redhat.com>
21795
21796 PR middle-end/90025
21797 * expr.c (store_expr): Set properly size on the MEM passed to
21798 clear_storage.
21799
21800 PR c++/90010
21801 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
21802 with strlen in between hostsz-3 and hostsz-1 inclusive when no
21803 translation is needed, and when translation is needed, only append
21804 ... if the string length is hostsz or more bytes long. Avoid using
21805 strncpy or strcat.
21806
21807 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
21808
21809 PR target/90024
21810 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
21811 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
21812 into three.
21813 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
21814 differences directly.
21815 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
21816
21817 2019-04-09 Jakub Jelinek <jakub@redhat.com>
21818
21819 PR translation/90011
21820 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
21821 from diagnostics.
21822 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
21823 diagnostics.
21824 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
21825 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
21826 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
21827 trailing space from -gsplit-dwarf diagnostics.
21828
21829 PR tree-optimization/89998
21830 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
21831 instead of integer_type_node if possible, don't add ranges if return
21832 type is not compatible with int.
21833 * gimple-fold.c (gimple_fold_builtin_sprintf,
21834 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
21835 integer_type_node.
21836
21837 2019-04-09 Martin Liska <mliska@suse.cz>
21838
21839 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
21840 * doc/install.texi: Document the new config.
21841
21842 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
21843
21844 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
21845 use gimple_expr_type for load and store calls. Skip over the
21846 condition argument in a conditional internal function.
21847 Protect use of TREE_INT_CST_LOW.
21848
21849 2019-04-09 Jakub Jelinek <jakub@redhat.com>
21850
21851 PR target/90015
21852 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
21853 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
21854 trailing period from it too.
21855
21856 2019-04-08 wu yuan <wuyuan5@huawei.com>
21857
21858 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
21859 * config/aarch64/aarch64.md : Add "tsv110.md"
21860 * config/aarch64/tsv110.md: New file.
21861
21862 2019-04-08 Richard Biener <rguenther@suse.de>
21863
21864 PR tree-optimization/90006
21865 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
21866 calls like lrint.
21867
21868 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
21869
21870 PR target/83033
21871 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
21872 construction.
21873 (fma_root_node): Likewise.
21874 (func_fma_steering): Likewise.
21875
21876 2019-04-08 Jakub Jelinek <jakub@redhat.com>
21877
21878 PR rtl-optimization/89865
21879 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
21880
21881 PR rtl-optimization/89865
21882 * config/i386/i386.md
21883 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
21884 numbers not to clash with the additional operands[4].
21885 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
21886 with extra register copy in the middle.
21887
21888 2019-04-08 Martin Liska <mliska@suse.cz>
21889
21890 PR gcov-profile/89961
21891 * doc/gcov.texi: Document data_file.
21892 * gcov.c (generate_results): Add data_info into JSON output.
21893
21894 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
21895
21896 PR tree-optimization/89725
21897 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
21898 loop's chrec as invariant symbol.
21899 * tree-chrec.h (chrec_contains_symbols): New parameter.
21900 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
21901 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
21902 function of loops not in DDR's loop_nest.
21903 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
21904
21905 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
21906
21907 PR target/89623
21908 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
21909 Mask.
21910
21911 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
21912
21913 PR target/89945
21914 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
21915 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
21916
21917 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
21918
21919 * sched-deps.c (sched_macro_fuse_insns): Check return value of
21920 targetm.fixed_condition_code_regs.
21921
21922 2019-04-05 Richard Biener <rguenther@suse.de>
21923
21924 PR debug/89892
21925 PR debug/89905
21926 * tree-cfgcleanup.c (remove_forwarder_block): Always move
21927 debug bind stmts but reset them if they are not valid at the
21928 destination.
21929
21930 2019-04-05 Martin Liska <mliska@suse.cz>
21931
21932 PR translation/89936
21933 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
21934 order to wrap keywords or arguments.
21935 * collect2.c (main): Likewise.
21936 (scan_prog_file): Likewise.
21937 (scan_libraries): Likewise.
21938 * common/config/riscv/riscv-common.c
21939 (riscv_subset_list::parsing_subset_version): Likewise.
21940 (riscv_subset_list::parse_std_ext): Likewise.
21941 * config/aarch64/aarch64.c (aarch64_override_options_internal):
21942 Likewise.
21943 * config/arm/arm.c (arm_option_override): Likewise.
21944 * config/cris/cris.c (cris_print_operand): Likewise.
21945 * config/darwin-c.c (darwin_pragma_options): Likewise.
21946 (darwin_pragma_unused): Likewise.
21947 (darwin_pragma_ms_struct): Likewise.
21948 * config/ft32/ft32.c (ft32_print_operand): Likewise.
21949 * config/i386/i386.c (print_reg): Likewise.
21950 (ix86_print_operand): Likewise.
21951 * config/i386/xm-djgpp.h: Likewise.
21952 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
21953 * config/m32c/m32c.c (m32c_option_override): Likewise.
21954 * config/msp430/msp430.c (msp430_option_override): Likewise.
21955 * config/nds32/nds32.c (nds32_option_override): Likewise.
21956 * config/nvptx/mkoffload.c (main): Likewise.
21957 * config/rx/rx.c (rx_print_operand): Likewise.
21958 (valid_psw_flag): Likewise.
21959 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
21960 (vms_pragma_nomember_alignment): Likewise.
21961 (vms_pragma_extern_model): Likewise.
21962 * lto-wrapper.c (compile_offload_image): Likewise.
21963 * omp-offload.c (oacc_parse_default_dims): Likewise.
21964 * symtab.c (symtab_node::verify_base): Likewise.
21965 * tlink.c (recompile_files): Likewise.
21966 (start_tweaking): Likewise.
21967 * tree-profile.c (parse_profile_filter): Likewise.
21968
21969 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
21970
21971 PR tree-optimization/89956
21972 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
21973 multiple negates of the same value.
21974
21975 2019-04-04 Martin Sebor <msebor@redhat.com>
21976
21977 PR middle-end/89957
21978 PR middle-end/89911
21979 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
21980 have the same precision since the function crashes otherwise.
21981 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
21982 has non-zero arguments.
21983
21984 2019-04-04 Martin Sebor <msebor@redhat.com>
21985
21986 PR middle-end/89934
21987 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
21988 out if the number of arguments is less than expected.
21989
21990 2019-04-04 Jeff Law <law@redhat.com>
21991
21992 PR rtl-optimization/89399
21993 * ree.c (combine_set_extension): Use single_set rather than
21994 digging into PATTERN for items on the candidate list.
21995 (combine_reaching_defs): Likewise.
21996
21997 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
21998
21999 PR rtl-optimization/46590
22000 * loop-invariant.c (find_defs): Move df_remove_problem and
22001 df_process_deferred_rescans to move_invariants.
22002 Move df_live_add_problem and df_live_set_all_dirty calls
22003 to move_invariants.
22004 (move_invariants): Likewise.
22005 (move_loop_invariants): Likewise, making the df_live calls
22006 conditional on -O. Remove the problem again if we added it
22007 locally.
22008
22009 2019-04-03 qing zhao <qing.zhao@oracle.com>
22010
22011 PR tree-optimization/89730
22012 * ipa-inline.c (can_inline_edge_p): Delete the checking for
22013 -flive-patching=inline-only-static.
22014 (can_inline_edge_by_limits_p): Add the checking for
22015 -flive-patching=inline-only-static and grant always_inline
22016 even when -flive-patching=inline-only-static is specified.
22017
22018 2019-04-03 Jeff Law <law@redhat.com>
22019
22020 PR rtl-optimization/81025
22021 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
22022
22023 2019-04-03 Richard Biener <rguenther@suse.de>
22024
22025 PR tree-optimization/84101
22026 * tree-vect-stmts.c: Include explow.h for hard_function_value,
22027 regs.h for hard_regno_nregs.
22028 (cfun_returns): New helper.
22029 (vect_model_store_cost): When vectorizing a store to a decl
22030 we return and the function ABI returns in a multi-reg location
22031 account for the possible spilling that will happen.
22032
22033 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
22034
22035 * config/s390/s390.c (s390_legitimate_address_p): Reject long
22036 displacement addresses for vector mode operands.
22037
22038 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
22039
22040 * config/arc/arc.c (GMASK_LEN): Define.
22041 (arc_restore_callee_saves): Restore first blink when
22042 !optimize_size.
22043
22044 2019-04-03 Sudakshina Das <sudi.das@arm.com>
22045
22046 * doc/extend.texi: Add deprecated comment on sign-return-address
22047 function attribute and add mbranch-protection.
22048 * doc/invoke.texi: Add bti to the options for mbranch-protection.
22049
22050 2019-04-03 Richard Biener <rguenther@suse.de>
22051
22052 PR lto/89896
22053 * lto-wrapper.c (run_gcc): Avoid implicit rules making
22054 the all target phony.
22055
22056 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
22057
22058 PR target/89902
22059 PR target/89903
22060 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
22061 Return false for variable DImode shifts.
22062 (dimode_scalar_chain::compute_convert_gain): Do not handle
22063 register count operand in variable DImode shifts.
22064 (dimode_scalar_chain::make_vector_copies): Remove support to copy
22065 count argument of a variable shift instruction to a vector register.
22066 (dimode_scalar_chain::convert_reg): Remove support to convert
22067 count argument of a variable shift instruction.
22068
22069 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
22070
22071 PR rtl-optimization/84206
22072 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
22073 iterating over loop headers.
22074
22075 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
22076
22077 PR rtl-optimization/85876
22078 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
22079 beyond the original fence.
22080
22081 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
22082
22083 * config.gcc: Mark spu* targets as deprecated/obsolete.
22084
22085 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
22086
22087 * config/s390/s390-builtin-types.def: New builtin function type
22088 definitions. Remove unused types.
22089 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
22090 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
22091 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
22092 overloaded builtins.
22093 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
22094 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
22095 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
22096 (vec_double, vec_signed, vec_unsigned): Define to use the new
22097 overloaded builtins.
22098 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
22099 Remove expanders.
22100
22101 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
22102
22103 * config/s390/s390-builtin-types.def: New builtin function type
22104 definitions.
22105 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
22106 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
22107 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
22108 (s390_vstrszh, s390_vstrszf): New low-level builtins.
22109 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
22110 constant definitions.
22111 * config/s390/vecintrin.h (vec_search_string_cc)
22112 (vec_search_string_until_zero_cc): New builtin name definitions.
22113 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
22114 expanders.
22115 ("vec_vstrs<mode>"): New insn definition.
22116
22117 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
22118
22119 * config/s390/s390-builtin-types.def: Add new builtin function
22120 types.
22121 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
22122 New overloaded builtins.
22123 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
22124 s390_vsrd.
22125 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
22126 (UNSPEC_VEC_SLDBYTE): ... this.
22127 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
22128 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
22129 definitions.
22130 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
22131 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
22132 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
22133
22134 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
22135
22136 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
22137 New insn definition.
22138 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
22139 * config/s390/vector.md (V_HW_HSD): ... here.
22140
22141 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
22142
22143 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
22144 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
22145 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
22146 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
22147 New insn definitions.
22148
22149 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
22150
22151 * config/s390/s390-builtin-types.def: Add new builtin function type.
22152 * config/s390/s390-builtins.def: Add overloaded builtin
22153 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
22154 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
22155 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
22156 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
22157 ("eltswap<mode>"): New expander.
22158 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
22159 insn definitions.
22160
22161 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
22162
22163 * config/s390/s390-builtin-types.def: Add new builtin function types.
22164 * config/s390/s390-builtins.def: Add overloaded builtin
22165 s390_vec_revb. Add low-level builtins for vlbr and vstbr
22166 instructions.
22167 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
22168 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
22169 ("bswap<mode>"): New expander.
22170 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
22171
22172 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
22173
22174 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
22175 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
22176 vector builtin version number in __VEC__.
22177
22178 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
22179
22180 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
22181 iterators.
22182 (SFSI): New mode attribute.
22183 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
22184 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
22185 rename to ...
22186 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
22187 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
22188 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
22189 ("floatsi<mode>2"): Add wcefb instruction.
22190
22191 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
22192
22193 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
22194 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
22195 mode iterators.
22196 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
22197 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
22198 support 32 bit fp-int conversions. Rename to ...
22199 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
22200 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
22201 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
22202 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
22203 ... to these.
22204
22205 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
22206
22207 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
22208 if-then-else constructs if we can use the select instruction.
22209 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
22210
22211 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
22212
22213 * config/s390/s390.md ("*popcountdi_arch13_cc")
22214 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
22215 definition.
22216 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
22217 Append _z196 to make it ...
22218 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
22219 ("popcounthi2_z196"): ... this.
22220 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
22221 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
22222
22223 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
22224
22225 * config/s390/s390.c (s390_canonicalize_comparison): Convert
22226 certain compares for arch13 in order to make use of the condition
22227 code result produced by the new instructions.
22228 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
22229 nxrk, and nxgrk instruction patterns.
22230 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
22231 (inv_no): Add new code iterator together with some attributes.
22232 ("*andc_split_<mode>"): Disable splitter for arch13.
22233 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
22234 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
22235 ("*<ANDOR:bitops_name>c<GPR:mode>")
22236 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
22237 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
22238 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
22239 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
22240
22241 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
22242
22243 * common/config/s390/s390-common.c (processor_flags_table): New
22244 entry for arch13.
22245 * config.gcc: Support arch13 with the --with-arch= configure flag.
22246 * config/s390/driver-native.c (s390_host_detect_local_cpu):
22247 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
22248 * config/s390/s390.c (s390_get_sched_attrmask)
22249 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
22250 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
22251 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
22252 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
22253 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
22254 definitions.
22255 * config/s390/s390.opt: Support arch13 as processor type in
22256 command line options.
22257
22258 2019-04-02 Martin Liska <mliska@suse.cz>
22259
22260 PR translation/89912
22261 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
22262 Fix param description of graphite-max-arrays-per-scop.
22263
22264 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
22265
22266 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
22267 (ASAN_CC1_SPEC): Use it in 64-bit mode.
22268 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
22269
22270 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
22271
22272 PR rtl-optimization/85412
22273 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
22274 sel_sched_region_1, not after.
22275
22276 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
22277
22278 PR rtl-optimization/86928
22279 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
22280 compute_live if necessary.
22281 (sel_redirect_edge_and_branch): Likewise.
22282
22283 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
22284
22285 PR rtl-optimization/89865
22286 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
22287 register if it is a part of small class.
22288
22289 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
22290
22291 PR rtl-optimization/87273
22292 * sel-sched-ir.c (merge_fences): Remove assert.
22293
22294 2019-04-01 Richard Biener <rguenther@suse.de>
22295
22296 PR tree-optimization/46590
22297 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
22298 (dom_walker::m_reachability): Add in place of...
22299 (dom_walker::m_skip_unreachable_blocks): ...this.
22300 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
22301 Move complex initialization ...
22302 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
22303 lazily and initialize edge flags on each invocation.
22304 (dom_walker::bb_reachable): Use m_reachability.
22305
22306 2019-04-01 Martin Liska <mliska@suse.cz>
22307
22308 PR driver/89861
22309 * opt-suggestions.c (option_proposer::build_option_suggestions):
22310 Add variant without any argument in order to provide better
22311 hints.
22312
22313 2019-04-01 Richard Biener <rguenther@suse.de>
22314
22315 PR c/71598
22316 * gimple.c: Include langhooks.h.
22317 (gimple_get_alias_set): Treat enumeral types as the underlying
22318 integer type.
22319
22320 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
22321 Eric Botcazou <ebotcazou@adacore.com>
22322
22323 PR rtl-optimization/89862
22324 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
22325 that operates on the full registers for WORD_REGISTER_OPERATIONS
22326 architectures.
22327
22328 2019-03-29 Jim Wilson <jimw@sifive.com>
22329
22330 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
22331 Clear MASK_RVC and then set if C subset supported.
22332
22333 2019-03-29 Jakub Jelinek <jakub@redhat.com>
22334
22335 PR c/89872
22336 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
22337 non-addressable complit into its initializer if it is volatile.
22338
22339 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
22340
22341 * opts-common.c (integral_argument): Set errno properly in one case.
22342
22343 2019-03-29 Martin Liska <mliska@suse.cz>
22344
22345 * doc/invoke.texi: Remove -Wchkp from documentation.
22346
22347 2019-03-29 Martin Liska <mliska@suse.cz>
22348
22349 * dbgcnt.c (print_limit_reach): New function.
22350 (dbg_cnt): Use it.
22351
22352 2019-03-29 Martin Liska <mliska@suse.cz>
22353
22354 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
22355 (dbg_cnt_process_opt): Parse first tokens aas
22356 dbg_cnt_process_single_pair is also using strtok.
22357
22358 2019-03-29 Jakub Jelinek <jakub@redhat.com>
22359
22360 PR rtl-optimization/87485
22361 * function.c (expand_function_end): Move stack_protect_epilogue
22362 before loading of return value into hard register(s).
22363
22364 2019-03-28 Jakub Jelinek <jakub@redhat.com>
22365
22366 PR middle-end/89621
22367 * tree-inline.h (struct copy_body_data): Add
22368 dont_remap_vla_if_no_change flag.
22369 * tree-inline.c (remap_type_3, remap_type_2): New functions.
22370 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
22371 and remap_type_2 returns false.
22372 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
22373 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
22374 only from where it is copied to nested contexts.
22375
22376 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
22377
22378 PR target/89865
22379 * config/i386/i386.md (RMW operation with LEA peephole):
22380 Use LEAMODE mode attribute instead of SWI mode iterator for
22381 LEA pattern.
22382
22383 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
22384
22385 PR target/89848
22386 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
22387 Also process XEXP (src, 0) of a shift insn.
22388
22389 2019-03-28 David Malcolm <dmalcolm@redhat.com>
22390
22391 PR middle-end/89725
22392 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
22393 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
22394
22395 2019-03-28 Jakub Jelinek <jakub@redhat.com>
22396
22397 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
22398 test.
22399 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
22400 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
22401 immediately after first one with df_analyze in between, but rather
22402 process all bbs, queueing ones that need second pass in a worklist,
22403 df_analyze, process queued debug insn changes and if second pass is
22404 needed, process bbs from worklist, df_analyze, process queued debug
22405 insns again.
22406
22407 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
22408 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
22409 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
22410
22411 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
22412
22413 PR c/79022
22414 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
22415 definition.
22416
22417 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
22418
22419 PR target/85667
22420 * config/i386/i386.c (ix86_function_value_1): Call the newly added
22421 function for 32-bit MS_ABI.
22422 (function_value_ms_32): New function.
22423
22424 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
22425
22426 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
22427 (movdi): Call gen_movdi_symbol_save_scc.
22428 (gen_movdi_symbol_save_scc): New insn and split.
22429
22430 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
22431
22432 PR rtl-optimization/89313
22433 * function.c (matching_constraint_num): New static function.
22434 (match_asm_constraints_1): Use it. Fixup white space and comment.
22435 Don't replace inputs with non-matching constraints which conflict
22436 with early clobber outputs.
22437
22438 2019-03-27 Jeff Law <law@redhat.com>
22439
22440 PR rtl-optimization/87761
22441 PR rtl-optimization/89826
22442 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
22443 slightly later.
22444 (pass_cprop_hardreg::execute): Call df_analyze after adding the
22445 note problem to get REG_DEAD/REG_UNUSED notes updated.
22446
22447 2019-03-27 Richard Biener <rguenther@suse.de>
22448
22449 PR tree-optimization/89463
22450 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
22451 queue edges to remove.
22452 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
22453 dead stmts. Delay edge removal until PHIs are removed to
22454 make debug-stmt creation not confused by seemingly degenerate
22455 PHIs.
22456
22457 2019-03-27 Alan Modra <amodra@gmail.com>
22458
22459 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
22460 throughout file.
22461 * config/rs6000/darwin.h: Likewise.
22462 * config/rs6000/rs6000.c: Likewise.
22463
22464 2019-03-27 Alan Modra <amodra@gmail.com>
22465
22466 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
22467 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
22468
22469 2019-03-26 Andrew Waterman <andrew@sifive.com>
22470 Jim Wilson <jimw@sifive.com>
22471
22472 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
22473 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
22474 (generic_idivdi, generic_fmul_single, generic_fmul_double)
22475 (generic_fdiv, generic_fsqrt): Add check for generic tune.
22476 (generic_alu): Add auipc to type list.
22477 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
22478 (riscv_microarchitecture): Declare.
22479 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
22480 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
22481 field.
22482 (riscv_microarchitecture): New.
22483 (sifive_7_tune_info): New.
22484 (riscv_cpu_info_table): Add microarchitecture value for rocket and
22485 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
22486 entries.
22487 (riscv_store_data_bypass_p): New.
22488 (riscv_option_override): Set riscv_microarchitecture from
22489 cpu->microarchitecture.
22490 * config/riscv/riscv.md: Include sifive-7.md.
22491 (type): Add auipc.
22492 (tune): New.
22493 (auipc<mode>): Change type to auipc.
22494 (restore_stack_nonlocal): New.
22495 * config/riscv/sifive-7.md: New.
22496 * doc/invoke.texi (RISC-V Options): Update mtune docs.
22497
22498 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
22499
22500 PR target/89827
22501 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
22502 Also process XEXP (src, 0) of a shift insn.
22503
22504 2019-03-26 Richard Biener <rguenther@suse.de>
22505
22506 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
22507 (copy_debug_stmt): Likewise.
22508 (expand_call_inline): Likewise.
22509 (copy_bb): Avoid redundant lookup & set of gimple_block.
22510 * gimple-low.c (lower_gimple_return): Likewise.
22511 (lower_builtin_setjmp): Likewise.
22512
22513 2019-03-26 Jakub Jelinek <jakub@redhat.com>
22514
22515 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
22516 is constant 0, turn into static const data member initialized to false.
22517 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
22518 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
22519
22520 2019-03-26 Jason Merrill <jason@redhat.com>
22521 Jakub Jelinek <jakub@redhat.com>
22522
22523 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
22524 method.
22525 (mem_alloc_description::release_object_overhead): Fix comment typos.
22526 * hash-table.h (hash_table::~hash_table): Call
22527 release_instance_overhead only if m_entries is non-NULL, otherwise
22528 call unregister_descriptor.
22529
22530 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
22531
22532 PR tree-optimization/81740
22533 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
22534 In case of outer loop vectorization, check for backward dependence
22535 at the inner loop if outer loop dependence is reversed.
22536
22537 2019-03-26 Alan Modra <amodra@gmail.com>
22538
22539 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
22540 rs6000_vector_mem init. Correct wI and wJ comment.
22541
22542 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
22543
22544 PR rtl-optimization/88347
22545 PR rtl-optimization/88423
22546 * sched-deps.c (sched_analyze_insn): Take into account that for
22547 tablejumps the barrier appears after a label and a jump_table_data.
22548
22549 2019-03-25 Martin Sebor <msebor@redhat.com>
22550
22551 PR c/89812
22552 * c-common.c (check_user_alignment): Rename local. Correct maximum
22553 alignment in diagnostic. Avoid assuming argument fits in SHWI,
22554 convert it to UHWI when it fits.
22555
22556 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
22557
22558 PR debug/86964
22559 * dwarf2out.c (premark_used_variables): New function.
22560 (prune_unused_types_walk): Do not mark not premarked external
22561 variables.
22562 (prune_unused_types): Call premark_used_variables.
22563
22564 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
22565
22566 PR rtl-optimization/89676
22567 * lra-constraints.c (curr_insn_transform): Do match reload for
22568 early clobbers when the match was successful only for different
22569 registers.
22570
22571 2019-03-25 Martin Sebor <msebor@redhat.com>
22572
22573 * doc/extend.texi (Common Type Attributes): Document vector_size.
22574 (Common Variable Attributes): Mention size constraint. Correct
22575 quoting and typos.
22576 (Vector Extensions): Use @dfn when defining bas type. Clarify
22577 base type and size constraints.
22578
22579 2019-03-25 Richard Biener <rguenther@suse.de>
22580
22581 PR tree-optimization/89789
22582 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
22583 changes from non-undefined back to undefined.
22584
22585 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
22586
22587 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
22588 heap string and a gc string, but since this variable is unknown to
22589 ggc the gc string might get reused and corrupted. Fixed by always
22590 using a heap string.
22591
22592 2019-03-25 Richard Biener <rguenther@suse.de>
22593
22594 PR tree-optimization/89779
22595 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
22596 to remove IV defs, delay actual removal.
22597 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
22598 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
22599 very end, properly also reset loop control IV information.
22600
22601 2019-03-25 Richard Biener <rguenther@suse.de>
22602
22603 PR tree-optimization/89802
22604 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
22605 move EH data to folded stmt.
22606
22607 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
22608
22609 * config/s390/s390-builtin-types.def: Remove few unused types and
22610 fix sort order for others.
22611
22612 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
22613
22614 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
22615 expected and found types with -mdebug during builtin matching.
22616
22617 2019-03-25 Richard Biener <rguenther@suse.de>
22618
22619 PR middle-end/89790
22620 * fold-const.c (operand_equal_p): Revert last change with
22621 updated comment.
22622
22623 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
22624
22625 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
22626 notes for the result of the __tls_get_addr calls.
22627 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
22628
22629 2019-03-24 Jeff Law <law@redhat.com>
22630
22631 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
22632
22633 PR rtl-optimization/87761
22634 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
22635 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
22636 as needed.
22637 (pass_cprop_hardreg::execute): Add df note problem and defer insn
22638 rescans. Reprocess blocks as needed, calling df_analyze before
22639 reprocessing. Always call df_analyze before fixing up debug bind
22640 insns.
22641
22642 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
22643
22644 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
22645 big endian.
22646
22647 2019-03-22 Andrew Pinski <apinski@marvell.com>
22648
22649 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
22650 attrribute for uxtw.
22651
22652 2019-03-26 Jeff Law <law@redhat.com>
22653
22654 PR rtl-optimization/87761
22655 * config/mips/mips-protos.h (mips_split_move): Add new argument.
22656 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
22657 (mips_split_move): Accept new INSN argument. Try to forward SRC
22658 into the next instruction.
22659 (mips_split_move_insn): Pass INSN through to mips_split_move.
22660
22661 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
22662
22663 PR rtl-optimization/89676
22664 * lra-constraints.c (curr_insn_transform): Do match reload for
22665 early clobbers even if the match was successful.
22666
22667 2019-03-22 Jakub Jelinek <jakub@redhat.com>
22668
22669 PR c++/87481
22670 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
22671
22672 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
22673
22674 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
22675
22676 2019-03-22 Jakub Jelinek <jakub@redhat.com>
22677
22678 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
22679 <avx512>_fmsub_<mode>_mask3<round_name>,
22680 <avx512>_fnmadd_<mode>_mask3<round_name>,
22681 <avx512>_fnmsub_<mode>_mask3<round_name>,
22682 avx512f_vmfmadd_<mode>_mask3<round_name>,
22683 avx512f_vmfmsub_<mode>_mask3<round_name>,
22684 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
22685 instead of register_operand and %v instead of v for match_operand 1.
22686 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
22687 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
22688 <round_nimm_predicate> instead of register_operand and %v instead of v
22689 for match_operand 1.
22690
22691 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
22692 <avx512>_fmadd_<mode>_mask3<round_name>,
22693 <avx512>_fmsub_<mode>_mask<round_name>,
22694 <avx512>_fmsub_<mode>_mask3<round_name>,
22695 <avx512>_fnmadd_<mode>_mask<round_name>,
22696 <avx512>_fnmadd_<mode>_mask3<round_name>,
22697 <avx512>_fnmsub_<mode>_mask<round_name>,
22698 <avx512>_fnmsub_<mode>_mask3<round_name>,
22699 <avx512>_fmaddsub_<mode>_mask<round_name>,
22700 <avx512>_fmaddsub_<mode>_mask3<round_name>,
22701 <avx512>_fmsubadd_<mode>_mask<round_name>,
22702 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
22703 <round_nimm_predicate> instead of nonimmediate_operand.
22704 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
22705 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
22706 Use register_operand instead of <round_nimm_predicate> for the
22707 operand that needs to match output.
22708 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
22709 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
22710 Likewise. Formatting fixes.
22711
22712 PR target/89784
22713 * config/i386/i386.c (enum ix86_builtins): Remove
22714 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
22715 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
22716 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
22717 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
22718 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
22719 __builtin_ia32_vfmsubss3_mask3): New builtins.
22720 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
22721 avx512f_vmfmadd_<mode>_mask3<round_name>,
22722 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
22723 *avx512f_vmfmsub_<mode>_mask<round_name>,
22724 avx512f_vmfmsub_<mode>_mask3<round_name>,
22725 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
22726 *avx512f_vmfnmadd_<mode>_mask<round_name>,
22727 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
22728 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
22729 *avx512f_vmfnmsub_<mode>_mask<round_name>,
22730 avx512f_vmfnmsub_<mode>_mask3<round_name>,
22731 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
22732 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
22733 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
22734 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
22735 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
22736 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
22737 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
22738 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
22739 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
22740 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
22741 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
22742 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
22743 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
22744 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
22745 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
22746 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
22747 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
22748 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
22749 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
22750 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
22751 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
22752 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
22753
22754 2019-03-21 Martin Sebor <msebor@redhat.com>
22755
22756 PR tree-optimization/89350
22757 * builtins.c (compute_objsize): Also ignore offsets whose upper
22758 bound is negative.
22759 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
22760 (builtin_memref::builtin_memref): Initialize new member.
22761 Allow EXPR to be null.
22762 (builtin_memref::extend_offset_range): Replace local with a member.
22763 Avoid assuming pointer offsets are unsigned.
22764 (builtin_memref::set_base_and_offset): Determine base object
22765 before computing offset range.
22766 (builtin_access::builtin_access): Handle memset.
22767 (builtin_access::generic_overlap): Replace local with a member.
22768 (builtin_access::strcat_overlap): Same.
22769 (builtin_access::overlap): Same.
22770 (maybe_diag_overlap): Same.
22771 (maybe_diag_access_bounds): Same.
22772 (wrestrict_dom_walker::check_call): Handle memset.
22773 (check_bounds_or_overlap): Same.
22774
22775 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
22776 Jakub Jelinek <jakub@redhat.com>
22777
22778 PR lto/89692
22779 * tree.c (fld_type_variant, fld_incomplete_type_of,
22780 fld_process_array_type): Call fld->pset.add and don't call
22781 add_tree_to_fld_list if it returns true.
22782 (free_lang_data_in_type): Similarly with self-recursive call. Purge
22783 non-marked types from TYPE_NEXT_VARIANT list.
22784 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
22785
22786 2019-03-21 Jakub Jelinek <jakub@redhat.com>
22787
22788 * hash-table.h (hash_table): Add Lazy template parameter defaulted
22789 to false, if true, don't alloc_entries during construction, but defer
22790 it to the first method that needs m_entries allocated.
22791 (hash_table::hash_table, hash_table::~hash_table,
22792 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
22793 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
22794 hash_table::clear_slot, hash_table::traverse_noresize,
22795 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
22796 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
22797 false.
22798 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
22799 NO_INSERT instead of find_with_hash.
22800 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
22801 hash_set::m_table): Add Lazy to template params of hash_table.
22802 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
22803 * attribs.c (test_attribute_exclusions): Likewise.
22804 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
22805 hash_set. Add tests for hash_set with Lazy = true.
22806
22807 2019-03-21 Richard Biener <rguenther@suse.de>
22808
22809 PR tree-optimization/89779
22810 * tree.c (tree_nop_conversion): Consolidate and fix defensive
22811 checks with respect to released SSA names now having error_mark_node
22812 type.
22813 * fold-const.c (operand_equal_p): Likewise.
22814
22815 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
22816
22817 PR target/89775
22818 * config/s390/s390.c (global_not_special_regno_p): Move to make it
22819 available to ...
22820 (s390_optimize_register_info): Use global_not_special_regno_p to
22821 check for global regs.
22822
22823 2019-03-20 Jakub Jelinek <jakub@redhat.com>
22824
22825 PR target/89752
22826 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
22827 update this_alternative nor this_alternative_set.
22828
22829 2019-03-19 Jim Wilson <jimw@sifive.com>
22830
22831 PR target/89411
22832 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
22833 align, size, offset. Use them to handle a BLKmode reference. Update
22834 comment.
22835 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
22836
22837 2019-03-19 Jakub Jelinek <jakub@redhat.com>
22838
22839 PR rtl-optimization/89768
22840 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
22841 instead of GEN_INT.
22842 (unroll_loop_runtime_iterations): Likewise.
22843
22844 2019-03-19 Martin Sebor <msebor@redhat.com>
22845
22846 PR tree-optimization/89644
22847 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
22848 rather than endptr as an indicator of nul-termination.
22849
22850 PR tree-optimization/89644
22851 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
22852 arrays in determining sequence sizes in strncpy and stpncpy.
22853
22854 2019-03-19 Martin Liska <mliska@suse.cz>
22855
22856 PR middle-end/89737
22857 * predict.c (combine_predictions_for_bb): Empty likely_edges and
22858 unlikely_edges if there's an edge that belongs to both these sets.
22859
22860 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
22861
22862 PR target/89746
22863 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
22864 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
22865 go via a stack temporary.
22866
22867 2019-03-19 Jakub Jelinek <jakub@redhat.com>
22868
22869 PR target/89378
22870 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
22871 instead of gen_rtx_SUBREG.
22872 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
22873
22874 2019-03-19 Richard Biener <rguenther@suse.de>
22875
22876 PR debug/88389
22877 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
22878
22879 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
22880
22881 PR lto/87809
22882 PR lto/89335
22883 * tree.c (free_lang_data_in_decl): Do not free context of C++
22884 destrutors.
22885
22886 2019-03-19 Jakub Jelinek <jakub@redhat.com>
22887
22888 PR target/89506
22889 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
22890 subs for the first alternative except when operands[3] is 1.
22891
22892 PR target/89752
22893 * gimplify.c (gimplify_asm_expr): For output argument with
22894 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
22895 diagnose error.
22896
22897 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
22898
22899 PR rtl-optimization/89753
22900 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22901 explicit unrolling factor even more robust.
22902
22903 2019-03-19 Jakub Jelinek <jakub@redhat.com>
22904
22905 PR target/89726
22906 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
22907 compensation use x2 += 1 instead of x2 -= -1 and when honoring
22908 signed zeros, do another copysign after the compensation.
22909
22910 2019-03-18 Martin Sebor <msebor@redhat.com>
22911
22912 PR tree-optimization/89720
22913 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
22914 more conservatively, the same as anti-range.
22915
22916 2019-03-18 Richard Biener <rguenther@suse.de>
22917
22918 PR middle-end/88945
22919 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
22920 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
22921 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
22922 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
22923
22924 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
22925
22926 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
22927 Extend queue to 1024 entries.
22928 Add "consumed" field.
22929 (gomp_print_output): Remove print_index parameter.
22930 Add final parameter.
22931 Change limit to unsigned.
22932 Use consumed field to implement circular buffer.
22933 Detect interrupted print in final pass.
22934 Flush output at the end.
22935 (run): Update gomp_print_output usage.
22936 (main): Initialize kernargs->output_data.consumed.
22937
22938 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
22939
22940 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
22941 calculation of the minimum number of scalar iterations for
22942 fully-predicated loops.
22943
22944 2019-03-18 Martin Jambor <mjambor@suse.cz>
22945
22946 PR tree-optimization/89546
22947 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
22948 any propagation to its children took place.
22949
22950 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
22951
22952 PR target/89627
22953 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
22954 parameter, and make use of it.
22955 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
22956
22957 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22958
22959 * config/arc/arc.opt (mcode-density-frame): Get the inital value
22960 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
22961 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
22962 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
22963 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
22964 match what the ops is doing.
22965 (push_multi_fp_blink): Likewise.
22966 * config/arc/arc.c (arc_override_options): Enable enter/leave when
22967 compiling for size and elf target.
22968 (arc_save_callee_enter): Adjust note to match what enter/leave
22969 operation does.
22970
22971 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22972
22973 * config/arc/arc.md (tst_movb): Fix constraint.
22974
22975 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22976
22977 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
22978
22979 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22980
22981 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
22982 * config/arc/arc.c (arc_conditional_register_usage): Remove all
22983 reg_alloc_order references.
22984 (size_alloc_order): Define.
22985 (arc_adjust_reg_alloc_order): New function.
22986 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
22987 order.
22988 (ADJUST_REG_ALLOC_ORDER): Define.
22989 (HONOR_REG_ALLOC_ORDER): Likewise.
22990
22991 2019-03-18 Richard Biener <rguenther@suse.de>
22992
22993 PR target/87561
22994 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
22995 loads and stores a bit more.
22996
22997 2019-03-18 Richard Biener <rguenther@suse.de>
22998
22999 PR target/87561
23000 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
23001 load pessimization to stores as well.
23002
23003 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
23004
23005 PR middle-end/86979
23006 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
23007 successor, use NULL as its av set.
23008
23009 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
23010
23011 PR rtl-optimization/89721
23012 * lra-constraints (invariant_p): Return false if side_effects_p holds.
23013
23014 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
23015
23016 PR target/87532
23017 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23018 When handling vec_extract, use modular arithmetic to allow
23019 constant selectors greater than vector length.
23020 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
23021 V1TImode vectors to have constant selector values greater than 0.
23022 Use modular arithmetic to compute vector index.
23023 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
23024 index for in-memory vectors. Correct code generation for
23025 in-register vectors.
23026 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
23027 compute index.
23028
23029 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
23030
23031 PR c++/88534
23032 PR c++/88537
23033 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
23034 VAR_DECL args.
23035
23036 2019-03-15 Jakub Jelinek <jakub@redhat.com>
23037
23038 PR c++/89709
23039 * tree.c (inchash::add_expr): Strip any location wrappers.
23040 * fold-const.c (operand_equal_p): Move stripping of location wrapper
23041 after hash verification.
23042
23043 PR debug/89704
23044 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
23045 SIGN_EXTEND and ZERO_EXTEND.
23046
23047 2019-03-14 Jason Merrill <jason@redhat.com>
23048 Jakub Jelinek <jakub@redhat.com>
23049
23050 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
23051 than if is_empty (*slot).
23052 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
23053 existing elt and for elt removal.
23054 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
23055 of already removed elt.
23056
23057 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
23058
23059 PR target/89650
23060 * config/i386/i386.c (remove_partial_avx_dependency): Handle
23061 REG_EH_REGION note.
23062
23063 2019-03-14 Martin Liska <mliska@suse.cz>
23064
23065 PR other/89712
23066 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
23067
23068 2019-03-14 Richard Biener <rguenther@suse.de>
23069
23070 PR target/89711
23071 * config/i386/i386.c (make_resolver_func): Properly set
23072 DECL_CONTEXT on the RESULT_DECL.
23073 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
23074
23075 2019-03-14 Richard Biener <rguenther@suse.de>
23076
23077 * gimple-pretty-print.c: Include cfgloop.h.
23078 (dump_gimple_phi): Adjust.
23079 (dump_gimple_bb_header): Dump loop header for GIMPLE.
23080 (pp_cfg_jump): Adjust.
23081 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
23082 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
23083 (lower_phi_internal_fn): Remove.
23084 (verify_gimple_call): Remove IFN_PHI special-casing.
23085 (dump_function_to_file): Dump IL state.
23086 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
23087 done to deal with PHI nodes being present in non-SSA state.
23088
23089 2019-03-14 Jakub Jelinek <jakub@redhat.com>
23090
23091 PR ipa/89684
23092 * multiple_target.c (create_dispatcher_calls): Change
23093 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
23094 In the node->iterate_referring loop, push *ref rather than ref, call
23095 ref->remove_reference () and always pass 0 to iterate_referring.
23096
23097 PR rtl-optimization/89679
23098 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
23099 would contain a paradoxical SUBREG.
23100
23101 2019-03-14 Richard Biener <rguenther@suse.de>
23102
23103 PR tree-optimization/89710
23104 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
23105 safe_dyn_cast.
23106
23107 2019-03-14 Martin Liska <mliska@suse.cz>
23108
23109 * coverage.c (coverage_begin_function): Stream also
23110 end_column.
23111 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
23112 documentation about function declaration location.
23113 * gcov-dump.c (tag_function): Print whole range
23114 of function declaration.
23115 * gcov.c (struct function_info): Add end_column field.
23116 (function_info::function_info): Initialize it.
23117 (output_json_intermediate_file): Output {start,end}_column
23118 fields.
23119 (read_graph_file): Read end_column.
23120
23121 2019-03-14 Richard Biener <rguenther@suse.de>
23122
23123 PR middle-end/89698
23124 * fold-const.c (operand_equal_p): For INDIRECT_REF check
23125 that the access types are similar.
23126
23127 2019-03-14 Jakub Jelinek <jakub@redhat.com>
23128
23129 PR tree-optimization/89703
23130 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
23131 aren't compatible also with builtin_decl_explicit. Check pure
23132 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
23133 and BUILT_IN_STPNCPY{,_CHK}.
23134
23135 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
23136
23137 PR target/89523
23138 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
23139 addr32 prefix to VSIB address for X32.
23140 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
23141 "%M2" to opcode.
23142 (*avx512pf_gatherpf<mode>df_mask): Likewise.
23143 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
23144 (*avx512pf_scatterpf<mode>df_mask): Likewise.
23145 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
23146 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
23147 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
23148 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
23149 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
23150 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
23151 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
23152 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
23153 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
23154 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
23155 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
23156 (*avx512f_scatterdi<mode>): Likewise.
23157
23158 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
23159
23160 PR target/85860
23161 * lra-constraints.c (inherit_in_ebb): Update
23162 potential_reload_hard_regs along with live_hard_regs.
23163
23164 2019-03-13 Jakub Jelinek <jakub@redhat.com>
23165
23166 PR debug/89498
23167 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
23168 DWARF_OFFSET_SIZE.
23169 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
23170
23171 2019-03-13 Martin Sebor <msebor@redhat.com>
23172
23173 PR tree-optimization/89662
23174 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
23175 has a size.
23176
23177 2019-03-13 Richard Biener <rguenther@suse.de>
23178
23179 PR middle-end/89677
23180 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
23181 throw FP expressions at tree-affine.
23182
23183 2019-03-14 Richard Biener <rguenther@suse.de>
23184
23185 * tree-pretty-print.c (dump_generic_node): For -gimple properly
23186 dump negative integer constants using _Literal (type) -num.
23187
23188 2019-03-13 Jakub Jelinek <jakub@redhat.com>
23189
23190 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
23191 nonlocal_value member.
23192
23193 PR middle-end/88588
23194 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
23195 (ipa_simd_modify_function_body): Handle PHIs.
23196
23197 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
23198
23199 * config/s390/s390.c (s390_option_override_internal): Use more
23200 aggressive inlining parameters.
23201
23202 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
23203
23204 * config/s390/3906.md: New file.
23205 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
23206 (LONGRUNNING_THRESHOLD): Remove.
23207 (MAX_SCHED_MIX_SCORE): Decrease.
23208 (MAX_SCHED_MIX_DISTANCE): Decrease.
23209 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
23210 (struct s390_sched_state): New struct to hold scheduling state.
23211 (S390_SCHED_STATE_NORMAL): Remove.
23212 (S390_SCHED_STATE_CRACKED): Remove.
23213 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
23214 (s390_get_sched_attrmask): Use new attribute.
23215 (s390_get_unit_mask): Use new units.
23216 (s390_is_fpd): New function.
23217 (s390_is_fxd): New function.
23218 (s390_is_longrunning): New function.
23219 (s390_sched_score): Use new functions.
23220 (s390_sched_reorder): Likewise.
23221 (s390_sched_variable_issue): Rework and use new functions.
23222 (s390_sched_init): Use new functions.
23223 * config/s390/s390.h (s390_tune_attr): Add z14.
23224 * config/s390/s390.md: Add z14.
23225
23226 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
23227
23228 * config/s390/2964.md: Update pipeline description.
23229 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
23230 (LONGRUNNING_THRESHOLD): Remove.
23231 (LATENCY_FACTOR): Remove.
23232 (s390_get_unit_mask): Add unit.
23233 (s390_sched_score): Use fxd/fpd.
23234 (s390_sched_variable_issue): Use fxd/fpd.
23235
23236 2019-03-12 Martin Liska <mliska@suse.cz>
23237
23238 * config/i386/i386.c: Reword an error message.
23239
23240 2019-03-12 Martin Jambor <mjambor@suse.cz>
23241
23242 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
23243 terminate with newline.
23244
23245 2019-03-12 Jakub Jelinek <jakub@redhat.com>
23246
23247 PR target/52726
23248 * config/s390/s390.md (tabort): Use %wd instead of
23249 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
23250 letters and periods.
23251 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
23252 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
23253 's with %< and %>.
23254
23255 PR middle-end/89663
23256 * builtins.c (expand_builtin_int_roundingfn,
23257 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
23258 gcc_unreachable if validate_arglist fails.
23259
23260 2019-03-12 Richard Biener <rguenther@suse.de>
23261
23262 PR tree-optimization/89664
23263 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
23264 free the occurance tree after the early out.
23265
23266 2019-03-11 Jakub Jelinek <jakub@redhat.com>
23267
23268 PR middle-end/89655
23269 PR bootstrap/89656
23270 * vr-values.c (vr_values::update_value_range): If
23271 old_vr->varying_p (), don't update it, make new_vr also VARYING
23272 and return false.
23273
23274 2019-03-11 Martin Liska <mliska@suse.cz>
23275
23276 * config/aarch64/aarch64.c (aarch64_override_options_internal):
23277 Fix double string quoting.
23278
23279 2019-03-11 Martin Liska <mliska@suse.cz>
23280
23281 * collect-utils.c (collect_wait): Wrap apostrophes
23282 in gcc internal format with %'.
23283 * collect2.c (main): Likewise.
23284 (scan_prog_file): Likewise.
23285 (scan_libraries): Likewise.
23286 * config/i386/i386.c (ix86_expand_call): Likewise.
23287 (ix86_handle_interrupt_attribute): Likewise.
23288 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
23289 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
23290 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
23291 * lto-wrapper.c (find_crtoffloadtable): Likewise.
23292 * symtab.c (symtab_node::verify_base): Likewise.
23293 * tree-cfg.c (verify_gimple_label): Likewise.
23294 * tree.c (verify_type_variant): Likewise.
23295
23296 2019-03-11 Martin Liska <mliska@suse.cz>
23297
23298 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
23299 in a string format message and fix GNU coding style.
23300 (expand_builtin_set_thread_pointer): Likewise.
23301 * common/config/aarch64/aarch64-common.c
23302 (aarch64_rewrite_selected_cpu): Likewise.
23303 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
23304 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
23305 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
23306 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
23307 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
23308 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
23309 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
23310 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
23311 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
23312 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
23313 Likewise.
23314 * common/config/riscv/riscv-common.c
23315 (riscv_subset_list::parsing_subset_version): Likewise.
23316 (riscv_subset_list::parse_std_ext): Likewise.
23317 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
23318 (riscv_subset_list::parse): Likewise.
23319 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
23320 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
23321 (aarch64_override_options_internal): Likewise.
23322 (aarch64_validate_mcpu): Likewise.
23323 (aarch64_validate_march): Likewise.
23324 (aarch64_validate_mtune): Likewise.
23325 (aarch64_override_options): Likewise.
23326 * config/alpha/alpha.c (alpha_option_override): Likewise.
23327 * config/arc/arc.c (arc_init): Likewise.
23328 (parse_mrgf_banked_regs_option): Likewise.
23329 (arc_override_options): Likewise.
23330 (arc_expand_builtin_aligned): Likewise.
23331 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
23332 (arm_expand_builtin): Likewise.
23333 * config/arm/arm.c (arm_option_check_internal): Likewise.
23334 (arm_configure_build_target): Likewise.
23335 (arm_option_override): Likewise.
23336 (arm_options_perform_arch_sanity_checks): Likewise.
23337 (arm_handle_cmse_nonsecure_entry): Likewise.
23338 (arm_handle_cmse_nonsecure_call): Likewise.
23339 (arm_tls_referenced_p): Likewise.
23340 (thumb1_expand_prologue): Likewise.
23341 * config/avr/avr.c (avr_option_override): Likewise.
23342 * config/bfin/bfin.c (bfin_option_override): Likewise.
23343 * config/c6x/c6x.c (c6x_option_override): Likewise.
23344 * config/cr16/cr16.c (cr16_override_options): Likewise.
23345 * config/cris/cris.c (cris_option_override): Likewise.
23346 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
23347 * config/darwin-c.c (macosx_version_as_macro): Likewise.
23348 * config/darwin.c (darwin_override_options): Likewise.
23349 * config/frv/frv.c (frv_expand_builtin): Likewise.
23350 * config/h8300/h8300.c (h8300_option_override): Likewise.
23351 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
23352 (ix86_option_override_internal): Likewise.
23353 (warn_once_call_ms2sysv_xlogues): Likewise.
23354 (ix86_expand_prologue): Likewise.
23355 (split_stack_prologue_scratch_regno): Likewise.
23356 (ix86_warn_parameter_passing_abi): Likewise.
23357 * config/ia64/ia64.c (fix_range): Likewise.
23358 * config/m68k/m68k.c (m68k_option_override): Likewise.
23359 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
23360 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
23361 (mips_set_compression_mode): Likewise.
23362 * config/mmix/mmix.c (mmix_option_override): Likewise.
23363 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
23364 * config/msp430/msp430.c (msp430_option_override): Likewise.
23365 * config/nds32/nds32.c (nds32_option_override): Likewise.
23366 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
23367 (nios2_option_override): Likewise.
23368 (nios2_expand_custom_builtin): Likewise.
23369 * config/nvptx/mkoffload.c (main): Likewise.
23370 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
23371 * config/pa/pa.c (fix_range): Likewise.
23372 (pa_option_override): Likewise.
23373 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
23374 (riscv_option_override): Likewise.
23375 * config/rl78/rl78.c (rl78_option_override): Likewise.
23376 * config/rs6000/aix61.h: Likewise.
23377 * config/rs6000/aix71.h: Likewise.
23378 * config/rs6000/aix72.h: Likewise.
23379 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
23380 * config/rs6000/freebsd64.h: Likewise.
23381 * config/rs6000/linux64.h: Likewise.
23382 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
23383 (rs6000_expand_zeroop_builtin): Likewise.
23384 (rs6000_expand_mtfsb_builtin): Likewise.
23385 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
23386 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
23387 (rs6000_invalid_builtin): Likewise.
23388 (rs6000_expand_split_stack_prologue): Likewise.
23389 * config/rs6000/rtems.h: Likewise.
23390 * config/rx/rx.c (valid_psw_flag): Likewise.
23391 (rx_expand_builtin): Likewise.
23392 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
23393 * config/s390/s390.c (s390_expand_builtin): Likewise.
23394 (s390_function_profiler): Likewise.
23395 (s390_option_override_internal): Likewise.
23396 (s390_option_override): Likewise.
23397 * config/sh/sh.c (sh_option_override): Likewise.
23398 (sh_builtin_saveregs): Likewise.
23399 (sh_fix_range): Likewise.
23400 * config/sh/vxworks.h: Likewise.
23401 * config/sparc/sparc.c (sparc_option_override): Likewise.
23402 * config/spu/spu.c (spu_option_override): Likewise.
23403 (fix_range): Likewise.
23404 * config/visium/visium.c (visium_option_override): Likewise.
23405 (visium_handle_interrupt_attr): Likewise.
23406 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
23407 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
23408 (dbg_cnt_process_opt): Likewise.
23409 * dwarf2out.c (output_dwarf_version): Likewise.
23410 * except.c (expand_eh_return): Likewise.
23411 * gcc.c (defined): Likewise.
23412 (driver_handle_option): Likewise.
23413 (process_command): Likewise.
23414 (compare_files): Likewise.
23415 (driver::prepare_infiles): Likewise.
23416 (driver::do_spec_on_infiles): Likewise.
23417 (driver::maybe_run_linker): Likewise.
23418 * omp-offload.c (oacc_parse_default_dims): Likewise.
23419 * opts-global.c (handle_common_deferred_options): Likewise.
23420 * opts.c (parse_sanitizer_options): Likewise.
23421 (common_handle_option): Likewise.
23422 (enable_warning_as_error): Likewise.
23423 * passes.c (enable_disable_pass): Likewise.
23424 * plugin.c (parse_plugin_arg_opt): Likewise.
23425 (default_plugin_dir_name): Likewise.
23426 * targhooks.c (default_expand_builtin_saveregs): Likewise.
23427 (default_pch_valid_p): Likewise.
23428 * toplev.c (init_asm_output): Likewise.
23429 (process_options): Likewise.
23430 (toplev::run_self_tests): Likewise.
23431 * tree-cfg.c (verify_gimple_call): Likewise.
23432 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
23433 (tree_inlinable_function_p): Likewise.
23434 * var-tracking.c (vt_find_locations): Likewise.
23435
23436 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
23437
23438 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
23439 only on the else branch.
23440
23441 2019-03-11 Martin Liska <mliska@suse.cz>
23442
23443 * gcov.c (output_intermediate_json_line): Print function
23444 name of each line.
23445 (output_json_intermediate_file): Add new argument.
23446 * doc/gcov.texi: Document the change.
23447
23448 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
23449
23450 PR rtl-optimization/89588
23451 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
23452 explicit unrolling factor more robust.
23453
23454 2019-03-11 Richard Biener <rguenther@suse.de>
23455
23456 PR tree-optimization/89649
23457 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
23458 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
23459 on the prolog and epilog loops.
23460 (vect_loop_versioning): Return copy of loop.
23461 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
23462 on the non-vectorized version of the loop.
23463
23464 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
23465
23466 PR target/68924
23467 * config/i386/sse.md (*vec_extractv2di_0_sse):
23468 Add (=r,x) alternative and corresponding splitter.
23469
23470 2019-03-10 Martin Jambor <mjambor@suse.cz>
23471
23472 PR tree-optimization/85762
23473 PR tree-optimization/87008
23474 PR tree-optimization/85459
23475 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
23476 it points to if there is a type changing MEM_REF. Adjust all callers.
23477 (build_accesses_from_assign): Disable total scalarization if
23478 contains_vce_or_bfcref_p returns true through the new parameter, for
23479 both rhs and lhs.
23480
23481 2019-03-09 Jakub Jelinek <jakub@redhat.com>
23482
23483 PR c/88568
23484 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
23485 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
23486
23487 PR target/79645
23488 * common.opt (fdiagnostics-show-labels,
23489 fdiagnostics-show-line-numbers, fdiagnostics-format=,
23490 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
23491 gas-locview-support, ginline-points, ginternal-reset-location-views):
23492 Terminate description text with a dot.
23493 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
23494 * config/mcore/mcore.opt (m210, m340): Likewise.
23495 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
23496 mnops=): Start description text with a capital letter.
23497 * config/arc/arc.opt (msize-level=): Likewise.
23498 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
23499 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
23500 mnewlib): Likewise.
23501 * config/ft32/ft32.opt (msim): Likewise.
23502 (mft32b, mcompress): Likewise. Terminate description text with a dot.
23503 (mnodiv, mnopm): Terminate description text with a dot.
23504 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
23505 a colon.
23506 * config/i386/i386.opt (prefer_vector_width, instrument_return):
23507 Likewise.
23508 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
23509 text.
23510
23511 PR rtl-optimization/89634
23512 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
23513 are modified in BB_END (e->src) instruction.
23514
23515 2019-03-08 David Malcolm <dmalcolm@redhat.com>
23516
23517 PR target/79926
23518 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
23519 messages more amenable to translation, and improve wording.
23520
23521 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
23522
23523 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
23524 ud- and du-chains between phases.
23525
23526 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
23527
23528 PR debug/89631
23529 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
23530 instead of POLY_INT_CST.
23531
23532 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
23533
23534 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
23535 requirement.
23536
23537 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
23538
23539 PR target/68924
23540 PR target/78782
23541 PR target/87558
23542 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
23543 (_mm_storeu_si64): Ditto.
23544
23545 2019-03-08 Martin Liska <mliska@suse.cz>
23546
23547 PR target/86952
23548 * config/i386/i386.c (ix86_option_override_internal): Disable
23549 jump tables when retpolines are used.
23550
23551 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
23552
23553 PR go/63560
23554 * ipa-split.c (execute_split_functions): Do not split
23555 'noinline' or 'section' function.
23556
23557 2019-03-08 Jakub Jelinek <jakub@redhat.com>
23558
23559 PR target/79846
23560 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
23561 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
23562 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
23563
23564 PR ipa/80000
23565 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
23566 from diagnostics. Formatting fixes.
23567
23568 PR target/85665
23569 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
23570 warn_odr diagnostics.
23571
23572 PR other/80058
23573 * lra-constraints.c (process_alt_operands): Avoid one space before
23574 " at the end of line and another after " on another line in a string
23575 literal.
23576 * attribs.c (handle_dll_attribute): Likewise.
23577 * config/avr/avr-devices.c (avr_texinfo): Likewise.
23578
23579 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
23580 warning_at or inform messages in G_() if there is no ?:.
23581
23582 PR tree-optimization/89550
23583 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
23584 returned true. Formatting fixes.
23585 (expand_builtin_strnlen): Formatting fixes.
23586 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
23587 if warning_at returned true.
23588 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
23589
23590 2019-03-08 Richard Biener <rguenther@suse.de>
23591
23592 PR middle-end/89578
23593 * cfgloop.h (struct loop): Add owned_clique field.
23594 * cfgloopmanip.c (copy_loop_info): Copy it.
23595 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
23596 cliques.
23597 * tree-inline.c (copy_loops): Remap owned_clique.
23598 * lto-streamer-in.c (input_cfg): Stream owned_clique.
23599 * lto-streamer-out.c (output_cfg): Likewise.
23600
23601 2019-03-08 Jakub Jelinek <jakub@redhat.com>
23602
23603 PR target/80190
23604 * config/darwin.c: Include intl.h.
23605 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
23606 composing the message out of two separate parts.
23607
23608 2019-03-07 Jakub Jelinek <jakub@redhat.com>
23609
23610 PR target/80003
23611 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
23612 doesn't start with a capital letter and doesn't end with a dot.
23613 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
23614 with a capital letter.
23615 (ix86_mangle_function_version_assembler_name): Likewise.
23616 (ix86_generate_version_dispatcher_body): Likewise.
23617 (fold_builtin_cpu): Likewise.
23618 (get_builtin_code_for_version): Likewise. Remove extraneous space.
23619 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
23620 translators, wrap full type name in %qs.
23621
23622 PR translation/79999
23623 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
23624 depend clause with source (or sink) modifier.
23625 * omp-expand.c (expand_omp_ordered_sink): Likewise.
23626
23627 PR target/89602
23628 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
23629 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
23630 (avx512f_load<mode>_mask): New define_expand.
23631 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
23632 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
23633 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
23634 __builtin_ia32_movess_mask): New builtins.
23635 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
23636 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
23637 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
23638 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
23639
23640 2019-03-07 Martin Jambor <mjambor@suse.cz>
23641
23642 PR lto/87525
23643 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
23644 for extern inline functions.
23645
23646 2019-03-07 Martin Jambor <mjambor@suse.cz>
23647
23648 PR ipa/88235
23649 * cgraph.h (cgraph_node): New inline method former_thunk_p.
23650 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
23651 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
23652 have multiple callees. At the end check if declarations match as
23653 opposed to cgraph_nodes.
23654
23655 2019-03-07 Martin Liska <mliska@suse.cz>
23656
23657 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
23658 which is equivalent to searching for this in clones chain.
23659 * symtab.c (symtab_node::verify_base): Similarly compare ASM
23660 names with a neighbour and special case first node in a chain.
23661
23662 2019-01-25 Jason Merrill <jason@redhat.com>
23663
23664 PR c++/80916 - spurious "static but not defined" warning.
23665 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
23666 for an internal symbol with DECL_EXTERNAL.
23667
23668 2019-04-07 Richard Biener <rguenther@suse.de>
23669
23670 PR middle-end/89618
23671 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
23672 * tree-inline.c (copy_loops): Simplify.
23673
23674 2019-03-07 Martin Liska <mliska@suse.cz>
23675
23676 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
23677
23678 2019-03-07 Richard Biener <rguenther@suse.de>
23679
23680 PR tree-optimization/89595
23681 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
23682 stmt iterator as reference, take boolean output parameter to
23683 indicate whether the stmt was removed and thus the iterator
23684 already advanced.
23685 (dom_opt_dom_walker::before_dom_children): Re-iterate over
23686 stmts created by folding.
23687
23688 2019-03-07 Jakub Jelinek <jakub@redhat.com>
23689
23690 PR c++/89585
23691 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
23692 at toplevel.
23693
23694 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
23695
23696 PR rtl-optimization/88845
23697 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
23698 LRA.
23699 * lra.c (remove_scratches_1): New function.
23700 (remove_scratches): Use it.
23701 (lra_emit_move): Likewise.
23702
23703 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
23704
23705 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
23706 unaligned_access variable.
23707 * config/arc/arc.c (arc_override_options): Set unaligned access
23708 default on for HS CPUs.
23709 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
23710
23711 2019-03-06 Martin Liska <mliska@suse.cz>
23712
23713 PR gcov-profile/89577
23714 * doc/gcov.texi: Prefer to use --coverage.
23715 * doc/sourcebuild.texi: Likewise.
23716
23717 2019-03-02 Jason Merrill <jason@redhat.com>
23718
23719 PR c++/86485 - -Wmaybe-unused with empty class ?:
23720 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
23721
23722 2019-03-05 Jakub Jelinek <jakub@redhat.com>
23723
23724 PR target/89587
23725 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
23726 if_multiarch.
23727
23728 PR middle-end/89590
23729 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
23730 exactly one argument.
23731
23732 2019-03-05 Jakub Jelinek <jakub@redhat.com>
23733 Richard Sandiford <richard.sandiford@arm.com>
23734
23735 PR tree-optimization/89570
23736 * match.pd (vec_cond into cond_op simplification): Don't use
23737 get_conditional_internal_fn, use as_internal_fn (cond_op).
23738
23739 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
23740
23741 PR target/89222
23742 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
23743 to decide when to split off a non-zero offset from a symbol.
23744 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
23745 in function symbols.
23746
23747 2019-03-05 Richard Biener <rguenther@suse.de>
23748
23749 PR tree-optimization/89594
23750 * tree-if-conv.c (pass_if_conversion::execute): Handle
23751 case where .LOOP_VECTORIZED_FUNCTION was removed.
23752
23753 2019-03-05 Jakub Jelinek <jakub@redhat.com>
23754
23755 PR bootstrap/89560
23756 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
23757 instead alloca it only when needed with the needed size.
23758
23759 PR tree-optimization/89570
23760 * match.pd (vec_cond into cond_op simplification): Guard with
23761 vectorized_internal_fn_supported_p test and #if GIMPLE.
23762
23763 PR tree-optimization/89566
23764 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
23765 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
23766 Punt if get_user_idx_format succeeds, but idx_format argument is
23767 not provided or doesn't have pointer type, or if idx_args is above
23768 number of provided arguments.
23769
23770 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
23771
23772 PR tree-optimization/89437
23773 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
23774
23775 2019-03-04 Richard Biener <rguenther@suse.de>
23776
23777 PR middle-end/89572
23778 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
23779 safe_dyn_cast.
23780
23781 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
23782
23783 PR tree-optimization/89487
23784 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
23785 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
23786 (distribute_loop): Don't do runtime alias check if there is non-
23787 addressable data reference.
23788 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
23789 is a register variable.
23790
23791 2019-03-02 Jakub Jelinek <jakub@redhat.com>
23792
23793 PR target/89506
23794 * config/arm/arm.md (cmpsi2_addneg): Use
23795 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
23796 If operands[2] is 0 or INT_MIN, force use of subs.
23797 (*compare_scc splitter): Use gen_int_mode.
23798 (*negscc): Likewise.
23799 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
23800
23801 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
23802 Monk Chiang <sh.chiang04@gmail.com>
23803
23804 * common/config/riscv/riscv-common.c: Include sstream.
23805 (riscv_subset_list::to_string): New.
23806 (riscv_arch_str): Likewise.
23807 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
23808 * config.in: Regen.
23809 * config/riscv/riscv-protos.h (riscv_arch_str): New.
23810 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
23811 (riscv_emit_attribute): New.
23812 (riscv_file_start): Emit attribute if needed.
23813 (riscv_option_override): Init riscv_emit_attribute_p.
23814 * config/riscv/riscv.opt (mriscv-attribute): New option.
23815 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
23816 * configure: Regen.
23817 * doc/install.texi: Document --with-riscv-attribute.
23818 * doc/invoke.texi: Document -mriscv-attribute.
23819
23820 * common/config/riscv/riscv-common.c:
23821 Include config/riscv/riscv-protos.h.
23822 (INCLUDE_STRING): Defined.
23823 (RISCV_DONT_CARE_VERSION): Defined.
23824 (riscv_subset_t): Declare.
23825 (riscv_subset_t::riscv_subset_t): New.
23826 (riscv_subset_list): Declare.
23827 (riscv_subset_list::riscv_subset_list): New.
23828 (riscv_subset_list::~riscv_subset_list): Likewise.
23829 (riscv_subset_list::parsing_subset_version): Likewise.
23830 (riscv_subset_list::parse_std_ext): Likewise.
23831 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
23832 (riscv_subset_list::add): Likewise.
23833 (riscv_subset_list::lookup): Likewise.
23834 (riscv_subset_list::xlen): Likewise.
23835 (riscv_subset_list::parse): Likewise.
23836 (riscv_supported_std_ext): Likewise.
23837 (current_subset_list): Likewise.
23838 (riscv_parse_arch_string): Using riscv_subset_list::parse to
23839 parse.
23840
23841 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
23842
23843 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
23844 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
23845 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
23846
23847 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
23848
23849 PR rtl-optimization/85899
23850 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
23851 fallthru edges leading to the exit block.
23852
23853 2019-03-01 Tamar Christina <tamar.christina@arm.com>
23854
23855 PR target/89517
23856 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
23857 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
23858
23859 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
23860
23861 PR tree-optimization/89535
23862 * tree-vect-stmts.c (vectorizable_call): Record the vector types
23863 for each operand. Calculate the fallback choice for mask operands
23864 and pass it to vect_get_vec_def_for_operand.
23865
23866 2019-03-01 Richard Biener <rguenther@suse.de>
23867
23868 PR middle-end/89541
23869 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
23870 get virtual operands.
23871 (get_expr_operands): Handle CONST_DECL like other decls.
23872
23873 2019-03-01 Jakub Jelinek <jakub@redhat.com>
23874
23875 PR middle-end/89503
23876 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
23877 on DECL_P and EXPR_P.
23878
23879 2019-03-01 Richard Biener <rguenther@suse.de>
23880
23881 PR middle-end/89497
23882 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
23883 argument, defaulted to zero.
23884 * passes.c (execute_function_todo): Pass down SSA update flags
23885 to cleanup_tree_cfg.
23886 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
23887 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
23888 form if requested.
23889 (cleanup_tree_cfg): Get and pass down SSA update flags.
23890
23891 2019-03-01 Jakub Jelinek <jakub@redhat.com>
23892
23893 PR bootstrap/89539
23894 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
23895 early_lto_debug argument.
23896
23897 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
23898
23899 PR tree-optimization/89536
23900 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
23901 only whether bit #0 of the value is 0 instead of the entire value.
23902
23903 2019-02-28 Marek Polacek <polacek@redhat.com>
23904
23905 PR c++/87068 - missing diagnostic with fallthrough statement.
23906 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
23907 at the end of a seq, save its location to walk_stmt_info.
23908 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
23909 a switch.
23910
23911 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
23912
23913 PR lto/88585
23914 * tree.c (find_atomic_core_type): Move ahead in file.
23915 (check_base_type): Correctly compare alignments of atomic types.
23916
23917 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
23918
23919 PR target/89455
23920 * config/i386/i386.c (get_builtin_code_for_version): Identify
23921 Westmere from PCLMUL, instead of AES.
23922
23923 2019-02-28 Jakub Jelinek <jakub@redhat.com>
23924
23925 PR target/89434
23926 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
23927 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
23928 -UINTVAL (...).
23929
23930 2019-02-28 Tamar Christina <tamar.christina@arm.com>
23931
23932 PR target/88530
23933 * config/aarch64/aarch64-option-extensions.def: Document it.
23934 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
23935 if empty hwcaps.
23936
23937 2019-02-28 Jakub Jelinek <jakub@redhat.com>
23938
23939 PR c/89520
23940 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
23941 builtins if they don't have a single scalar floating point argument.
23942 Formatting fixes.
23943
23944 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
23945
23946 PR rtl-optimization/89490
23947 * varasm.c (get_block_for_section): Bail out for mergeable sections.
23948 (default_use_anchors_for_symbol_p, output_object_block): Assert the
23949 block section is not mergeable.
23950
23951 2019-02-27 Jakub Jelinek <jakub@redhat.com>
23952
23953 PR target/70341
23954 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
23955 old define_insn to ...
23956 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
23957 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
23958 Rename old define_insn to ...
23959 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
23960 (thumb2_casesi_internal_pic): New define_expand. Rename old
23961 define_insn to ...
23962 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
23963 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
23964 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
23965
23966 2019-02-27 Richard Biener <rguenther@suse.de>
23967
23968 PR debug/88878
23969 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
23970
23971 2019-02-27 Richard Biener <rguenther@suse.de>
23972
23973 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
23974 building.
23975
23976 2019-02-27 Richard Biener <rguenther@suse.de>
23977
23978 PR debug/88878
23979 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
23980 parameter, prefix section name with .gnu.debuglto_ if true.
23981 (dwarf2out_finish): Pass false to output_comdat_type_unit.
23982 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
23983
23984 2019-02-27 Richard Biener <rguenther@suse.de>
23985
23986 PR debug/89514
23987 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
23988 rather than on use_debug_types, doing what output_die does.
23989 (value_format): Likewise.
23990
23991 2019-02-27 Martin Jambor <mjambor@suse.cz>
23992 Martin Sebor <msebor@redhat.com>
23993
23994 * doc/invoke.texi (Warning Options): Reword description of
23995 -Wno-absolute-value.
23996
23997 2019-02-27 Jakub Jelinek <jakub@redhat.com>
23998
23999 PR tree-optimization/89280
24000 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
24001 builtin_setjmp_setup_bb): New functions.
24002 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
24003 When visiting __builtin_setjmp_setup block, queue in special
24004 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
24005 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
24006 from visited after the loop if they don't have any visited successor
24007 blocks.
24008
24009 2018-02-26 Steve Ellcey <sellcey@marvell.com>
24010
24011 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
24012 New function.
24013 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
24014
24015 2019-02-26 Jakub Jelinek <jakub@redhat.com>
24016
24017 PR c++/89507
24018 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
24019 with types other than sizetype/ssizetype.
24020
24021 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
24022
24023 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
24024 (enum sparc_processor_type): ...this.
24025 (enum sparc_code_model_type): New enumeration type.
24026 (enum sparc_memory_model_type): Tweak comments.
24027 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
24028 (mtune): Likewise.
24029 (mcmodel): Use sparc_code_model enumeration and variable.
24030 (sparc_code_model): New enumeration.
24031 (mdebug): Add Undocumented marker.
24032 * config/sparc/sparc.h (enum cmodel): Delete.
24033 (sparc_cmodel): Likewise.
24034 (TARGET_CM_MEDLOW): Adjust to above renaming.
24035 (TARGET_CM_MEDMID): Likewise.
24036 (TARGET_CM_MEDANY): Likewise.
24037 (TARGET_CM_EMBMEDANY): Likewise.
24038 * config/sparc/sparc.c (sparc_cmodel): Delete.
24039 (sparc_option_override): Remove string/value mapping support for the
24040 code model. Move code and memory model support to after the handling
24041 of target flags. Do private machine setup last.
24042 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
24043 (sparc_legitimize_reload_address): Likewise.
24044 (sparc_output_mi_thunk): Likewise.
24045 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
24046
24047 2019-02-26 Jakub Jelinek <jakub@redhat.com>
24048
24049 PR tree-optimization/89500
24050 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
24051 (handle_builtin_strlen): Remove noncst_bound variable. Always
24052 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
24053 cst if the first cst bytes starting at x are known to be non-zero,
24054 even if the string is not zero terminated. Don't try to modify
24055 *si for strnlen. Update strlen_to_stridx only for strlen or if
24056 we can prove strnlen returns the same value as strlen would.
24057
24058 2019-02-26 Martin Liska <mliska@suse.cz>
24059
24060 * alloc-pool.h (struct pool_usage): Remove extra
24061 print_dash_line.
24062 * bitmap.h (struct bitmap_usage): Likewise.
24063 * ggc-common.c (struct ggc_usage): Likewise.
24064 * mem-stats.h (struct mem_usage): Likewise.
24065 (mem_alloc_description::dump): Print dash lines
24066 here and repeat header at the end of a table report.
24067 It's then more readable.
24068 * tree-phinodes.c (phinodes_print_statistics): Make
24069 horizontal alignment.
24070 * tree-ssanames.c (ssanames_print_statistics): Likewise.
24071 * vec.c (struct vec_usage): Remove extra print_dash_line.
24072 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
24073
24074 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
24075
24076 * doc/extend.texi (__builtin_object_size):
24077 Use @pxref instead of @xref inside parenthesis.
24078 (__builtin_has_attribute): Add missing comma after @xref.
24079 (__builtin_object_size): Ditto.
24080 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
24081
24082 2019-02-26 Jeff Law <law@redhat.com>
24083
24084 PR rtl-optimization/87761
24085 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
24086 detect obviously dead insns and delete them.
24087
24088 2019-02-26 Richard Biener <rguenther@suse.de>
24089
24090 PR tree-optimization/89505
24091 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
24092 to handle restrict pointed-to vars with multiple subvars
24093 correctly.
24094
24095 2019-02-26 Richard Biener <rguenther@suse.de>
24096
24097 PR tree-optimization/89489
24098 * tree-parloops.c (create_loop_fn): Copy over last_clique.
24099
24100 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
24101
24102 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
24103 and move around comment.
24104 <BIT_AND_EXPR>: Likewise.
24105 <BIT_NOT_EXPR>: Add specific handling for boolean types.
24106
24107 2019-02-26 Jakub Jelinek <jakub@redhat.com>
24108
24109 PR target/89474
24110 * config/i386/i386.c (remove_partial_avx_dependency): Call
24111 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
24112 after changing possibly many instructions to use that pseudo. Fix up
24113 insertion of v4sf_const0 setter at the start of bb.
24114
24115 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
24116
24117 PR c/80409
24118 * doc/extend.texi (Variadic Pointer Args): New section.
24119
24120 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
24121 Martin Sebor <msebor@gmail.com>
24122
24123 * common.opt (Wattribute-alias): Likewise.
24124 * doc/invoke.texi (Option Summary): List general form of
24125 -Wattribute-alias=. List positive form of -Wmissing-attributes.
24126 (-Wmissing-attributes): Invert entry, rewrite and correct default.
24127 Add cross-references.
24128 (-Wattribute-alias): Rewrite and correct default. Mention
24129 considered attributes (same as for -Wmissing-attributes).
24130
24131 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
24132
24133 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
24134 (_mm_cvtpd_ps): Likewise.
24135 (_mm_cvttpd_epi32): Likewise.
24136
24137 PR target/89338
24138 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
24139 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
24140
24141 PR target/89339
24142 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
24143
24144 2019-02-25 Tamar Christina <tamar.christina@arm.com>
24145
24146 PR target/88530
24147 * common/config/aarch64/aarch64-common.c
24148 (struct aarch64_option_extension): Add is_synthetic.
24149 (all_extensions): Use it.
24150 (TARGET_OPTION_INIT_STRUCT): Define hook.
24151 (struct gcc_targetm_common): Moved to end.
24152 (all_extensions_by_on): New.
24153 (opt_ext_cmp, typedef opt_ext): New.
24154 (aarch64_option_init_struct): New.
24155 (aarch64_contains_opt): New.
24156 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
24157 * config/aarch64/aarch64-option-extensions.def
24158 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
24159 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
24160 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
24161 Set is_synthetic to false.
24162 (crypto): Set is_synthetic to true.
24163 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
24164 SYNTHETIC.
24165
24166 2019-02-25 Tamar Christina <tamar.christina@arm.com>
24167
24168 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
24169 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
24170 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
24171 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
24172 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
24173 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
24174 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
24175 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
24176 Rename ...
24177 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
24178 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
24179 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
24180 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
24181 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
24182 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
24183 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
24184 vfmlsl_laneq_high_f16): ... To this.
24185 * config/arm/neon.md: Update comments.
24186
24187 2019-02-25 Tamar Christina <tamar.christina@arm.com>
24188
24189 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
24190 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
24191 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
24192 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
24193 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
24194 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
24195 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
24196 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
24197 Rename ...
24198 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
24199 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
24200 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
24201 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
24202 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
24203 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
24204 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
24205 vfmlslq_laneq_high_f16): ... To this.
24206
24207 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
24208
24209 PR rtl-optimization/86096
24210 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
24211 comparing mw_order values.
24212
24213 2019-02-25 Jakub Jelinek <jakub@redhat.com>
24214
24215 PR target/89434
24216 * config/arm/arm.md (*subsi3_carryin_const): Use
24217 arm_neg_immediate_operand predicate instead of
24218 arm_not_immediate_operand, "L" constraint instead of "K" and
24219 print it using %n2 instead of %B2.
24220 (*subsi3_carryin_const0): New define_insn.
24221 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
24222 instead of arm_not_operand and "I" constraint instead of "K" and
24223 print it using %n3 instead of %B2. Instead of using match_dup 2 add
24224 another match_operand and in the condition check that it is negation
24225 of operands[2].
24226 (*subsi3_carryin_compare_const0): New define_ins.
24227 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
24228 *subsi3_carryin_const.
24229 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
24230 split into *subsi3_carryin_compare_const0 if the highpart is zero.
24231
24232 PR target/89438
24233 * config/arm.vfp.md (*negdf2_vfp): Use
24234 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
24235 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
24236
24237 2019-02-24 Jakub Jelinek <jakub@redhat.com>
24238
24239 PR rtl-optimization/89445
24240 * simplify-rtx.c (simplify_ternary_operation): Don't use
24241 simplify_merge_mask on operands that may trap.
24242 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
24243 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
24244 second operand is CONST_VECTOR, check if any element could be zero.
24245 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
24246 their operands can trap.
24247
24248 2019-02-23 Martin Sebor <msebor@redhat.com>
24249
24250 * gimple-ssa-sprintf.c (target_strtol): Rename...
24251 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
24252 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
24253 check for range error.
24254
24255 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
24256
24257 PR driver/69471
24258 * opts-common.c (prune_options): Also prune joined switches
24259 with Negative and RejectNegative.
24260 * config/i386/i386.opt (march=): Add Negative(march=).
24261 (mtune=): Add Negative(mtune=).
24262 * doc/options.texi: Document Negative used together with Joined
24263 and RejectNegative.
24264
24265 2019-02-22 Martin Sebor <msebor@redhat.com>
24266
24267 * doc/extend.texi (Other Builtins): Add
24268 __builtin_is_constant_evaluated.
24269
24270 2019-02-22 Richard Biener <rguenther@suse.de>
24271
24272 PR tree-optimization/87609
24273 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
24274
24275 2019-02-22 Jeff Law <law@redhat.com>
24276
24277 PR rtl-optimization/87761
24278 * config/mips/mips.md: Add new combiner pattern to recognize
24279 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
24280
24281 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
24282
24283 PR target/89324
24284 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
24285 destination register in peepholes generating patterns for ADDS/SUBS.
24286 (add<mode>3_compare0,
24287 *addsi3_compare0_uxtw, add<mode>3_compareC,
24288 add<mode>3_compareV_imm, add<mode>3_compareV,
24289 *adds_<optab><ALLX:mode>_<GPI:mode>,
24290 *subs_<optab><ALLX:mode>_<GPI:mode>,
24291 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
24292 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
24293 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
24294 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
24295 sub<mode>3_compare1): Allow stack pointer for source register.
24296 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
24297
24298 2019-02-22 Martin Sebor <msebor@redhat.com>
24299
24300 PR tree-optimization/88993
24301 PR tree-optimization/88853
24302 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
24303 New helper.
24304 (sprintf_dom_walker::call_info::is_string_func): New helper.
24305 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
24306 for formatted string functions.
24307 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
24308
24309 2019-02-22 Martin Sebor <msebor@redhat.com>
24310
24311 PR c/89425
24312 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
24313 unreachable subexpressions.
24314
24315 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
24316 Hongtao Liu <hongtao.liu@intel.com>
24317 Sunil K Pandey <sunil.k.pandey@intel.com>
24318
24319 PR target/87007
24320 * config/i386/i386-passes.def: Add
24321 pass_remove_partial_avx_dependency.
24322 * config/i386/i386-protos.h
24323 (make_pass_remove_partial_avx_dependency): New.
24324 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
24325 New function.
24326 (pass_data_remove_partial_avx_dependency): New.
24327 (pass_remove_partial_avx_dependency): Likewise.
24328 (make_pass_remove_partial_avx_dependency): Likewise.
24329 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
24330 (*extendsfdf2): Add avx_partial_xmm_update.
24331 (truncdfsf2): Likewise.
24332 (*float<SWI48:mode><MODEF:mode>2): Likewise.
24333 (SF/DF conversion splitters): Disabled for TARGET_AVX.
24334
24335 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
24336
24337 PR middle-end/85598
24338 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
24339 analysis for pass.
24340
24341 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
24342
24343 PR target/89444
24344 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
24345 (PTA_SKYLAKE): Add PTA_AES.
24346 (PTA_GOLDMONT): Likewise.
24347
24348 2019-02-22 Sudakshina Das <sudi.das@arm.com>
24349
24350 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
24351 instruction if enabled.
24352 (aarch64_override_options): Remove reference to return address key.
24353
24354 2019-02-22 Richard Biener <rguenther@suse.de>
24355
24356 PR tree-optimization/89440
24357 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
24358 not necessary assert.
24359
24360 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
24361
24362 PR fortran/72741
24363 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
24364 (oacc_replace_fn_attrib_attr): ... this new function.
24365 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
24366 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
24367
24368 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24369
24370 * config/arm/arm-cpus.in (ares): Rename to...
24371 (neoverse-n1): ... This. Add ares as alias.
24372 * config/arm/arm-tables.opt: Regenerate.
24373 * config/arm/arm-tune.md: Likewise.
24374 * doc/invoke.txt (ARM Options): Document neoverse-n1.
24375
24376 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24377
24378 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
24379 * config/aarch64/aarch64-tune.md: Regenerate.
24380 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
24381
24382 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24383
24384 * config/aarch64/aarch64.c (ares_tunings): Rename to...
24385 (neoversen1_tunings): ... This.
24386 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
24387 (neoverse-n1): New CPU.
24388 * config/aarch64/aarch64-tune.md: Regenerate.
24389 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
24390
24391 2019-02-22 Richard Biener <rguenther@suse.de>
24392
24393 PR middle-end/87609
24394 * cfghooks.h (dependence_hash): New typedef.
24395 (struct copy_bb_data): New type.
24396 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
24397 (duplicate_block): Likewise.
24398 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
24399 (copy_bbs): Create and pass down copy_bb_data.
24400 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
24401 (rtl_duplicate_bb): Likewise.
24402 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
24403 remap dependence info.
24404
24405 2019-02-22 Richard Biener <rguenther@suse.de>
24406
24407 PR tree-optimization/87609
24408 * tree-core.h (tree_base): Document special clique values.
24409 * tree-inline.c (remap_dependence_clique): Do not use the
24410 special clique value of one.
24411 (maybe_set_dependence_info): Use clique one.
24412 (clear_dependence_clique): New callback.
24413 (compute_dependence_clique): Clear clique one from all refs
24414 before assigning it (again).
24415
24416 2019-02-21 Martin Sebor <msebor@redhat.com>
24417
24418 * doc/extend.texi (__clear_cache): Correct signature.
24419
24420 2019-02-21 Ian Lance Taylor <iant@golang.org>
24421
24422 PR go/89170
24423 * varasm.c (decode_addr_const): Call lookup_constant_def rather
24424 than output_constant_def.
24425 (add_constant_to_table): New static function.
24426 (output_constant_def): Call add_constant_to_table.
24427 (tree_output_constant_def): Likewise.
24428
24429 2019-02-21 Jakub Jelinek <jakub@redhat.com>
24430
24431 PR c++/89285
24432 * builtins.c (fold_builtin_arith_overflow): If first two args are
24433 INTEGER_CSTs, set intres and ovfres to constants rather than calls
24434 to ifn.
24435
24436 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
24437
24438 PR target/87412
24439 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
24440 error for -mindirect-branch/-mfunction-return with incompatible
24441 -fcf-protection.
24442
24443 2019-02-21 Jakub Jelinek <jakub@redhat.com>
24444
24445 PR bootstrap/88714
24446 * constraints.md (q): Remove.
24447 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
24448 instead of q.
24449
24450 2019-02-21 Martin Jambor <mjambor@suse.cz>
24451
24452 PR hsa/89302
24453 * omp-general.c (omp_extract_for_data): Removed a duplicate call
24454 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
24455 (omp_adjust_for_condition): ...here. Added necessary parameters.
24456 * omp-general.h (omp_adjust_for_condition): Updated declaration.
24457 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
24458 proper values to new parameters of omp_adjust_for_condition.
24459
24460 2019-02-20 Jakub Jelinek <jakub@redhat.com>
24461
24462 PR middle-end/89412
24463 * expr.c (expand_assignment): If result is a MEM, use change_address
24464 instead of simplify_gen_subreg.
24465
24466 2019-02-20 Jakub Jelinek <jakub@redhat.com>
24467 David Malcolm <dmalcolm@redhat.com>
24468
24469 PR middle-end/89091
24470 * fold-const.c (decode_field_reference): Return NULL_TREE if
24471 lang_hooks.types.type_for_size returns NULL. Check it before
24472 overwriting *exp_. Use return NULL_TREE instead of return 0.
24473
24474 2019-02-20 Jakub Jelinek <jakub@redhat.com>
24475
24476 PR middle-end/88074
24477 PR middle-end/89415
24478 * toplev.c (do_compile): Double the emin/emax exponents to workaround
24479 buggy mpc_norm.
24480
24481 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
24482
24483 PR target/89397
24484 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
24485 TARGET_SSE in addition to TARGET_SSE_MATH.
24486
24487 (ix86_excess_precision): Ditto.
24488 (ix86_float_exceptions_rounding_supported_p): Ditto.
24489 (use_rsqrt_p): Ditto.
24490 * config/i386/sse.md (rsqrt<mode>2): Ditto.
24491
24492 2019-02-20 David Malcolm <dmalcolm@redhat.com>
24493
24494 PR c/89410
24495 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
24496 linenum_arith_t when determining if two adjacent line spans are
24497 close enough to merge.
24498 (diagnostic_show_locus): Use linenum_arith_t when iterating over
24499 lines within each line_span.
24500
24501 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
24502
24503 PR target/86487
24504 * lra-constraints.c(uses_hard_regs_p): Fix handling of
24505 paradoxical SUBREGS.
24506
24507 2019-02-20 Li Jia He <helijia@linux.ibm.com>
24508
24509 PR target/88100
24510 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
24511 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
24512 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
24513 range checking it.
24514
24515 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
24516
24517 * config/gcn/gcn.c (print_operand): Fix typo.
24518
24519 2019-02-19 Richard Biener <rguenther@suse.de>
24520
24521 PR middle-end/88074
24522 * toplev.c (do_compile): Initialize mpfr's exponent range
24523 based on available float modes.
24524
24525 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
24526
24527 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
24528 as long as the epilogue isn't completed.
24529
24530 2019-02-18 Martin Sebor <msebor@redhat.com>
24531
24532 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
24533 __has_cpp_attribute, and __has_include.
24534
24535 2019-02-18 Martin Sebor <msebor@redhat.com>
24536
24537 * doc/invoke.texi (-Wreturn-type): Correct and expand.
24538
24539 2019-02-18 Martin Sebor <msebor@redhat.com>
24540
24541 PR middle-end/89294
24542 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
24543 expression.
24544 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
24545
24546 2019-02-18 Richard Biener <rguenther@suse.de>
24547
24548 PR tree-optimization/89296
24549 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
24550 of no-warning flag to cases that might emit the bogus warning.
24551
24552 2019-02-18 Jakub Jelinek <jakub@redhat.com>
24553
24554 PR bootstrap/88714
24555 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
24556 "q" constraint.
24557 * config/arm/vfp.md (*movdi_vfp): Likewise.
24558 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
24559 "q" constraint for operands[0].
24560
24561 PR target/89369
24562 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
24563 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
24564 pattern in a temporary buffer.
24565 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
24566 than 64-operands[2].
24567
24568 PR target/89361
24569 * config/s390/s390.c (s390_indirect_branch_attrvalue,
24570 s390_indirect_branch_settings): Define unconditionally.
24571 (s390_set_current_function): Likewise, but guard the whole body except
24572 the s390_indirect_branch_settings call with
24573 #if S390_USE_TARGET_ATTRIBUTE.
24574 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
24575
24576 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
24577 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
24578 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
24579 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
24580 HOST_WIDE_INT_1U instead of 1ULL.
24581 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
24582 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
24583 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
24584 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
24585 instead of 1UL.
24586 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
24587 instead of 1ul.
24588
24589 2019-02-18 Martin Jambor <mjambor@suse.cz>
24590
24591 PR tree-optimization/89209
24592 * tree-sra.c (create_access_replacement): New optional parameter
24593 reg_tree. Use it as a type if non-NULL and access type is not of
24594 a register type.
24595 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
24596 to create_access_replacement.
24597 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
24598 Check lacc is non-NULL before attempting to re-create it on the RHS.
24599
24600 2019-02-18 Martin Liska <mliska@suse.cz>
24601
24602 PR ipa/89306
24603 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
24604 by default.
24605 (symbol_table::free_edge): Recycle m_summary_id.
24606 * cgraph.h (get_summary_id): New.
24607 (symbol_table::release_symbol): Set m_summary_id to -1
24608 by default.
24609 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
24610 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
24611 function_summary to fast_function_summary.
24612 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
24613 * ipa-pure-const.c (class funct_state_summary_t):
24614 Switch from function_summary to fast_function_summary.
24615 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
24616 (class ipa_ref_opt_summary_t): Switch from function_summary
24617 to fast_function_summary.
24618 * symbol-summary.h (class function_summary_base): New class
24619 that is created from base of former function_summary.
24620 (function_summary_base::unregister_hooks): New.
24621 (class function_summary): Inherit from function_summary_base.
24622 (class call_summary_base): New class
24623 that is created from base of former call_summary.
24624 (class call_summary): Inherit from call_summary_base.
24625 (struct is_same): New.
24626 (class fast_function_summary): New summary class.
24627 (class fast_call_summary): New summary class.
24628 * vec.h (vec_safe_grow_cleared): New function.
24629
24630 2019-02-18 Martin Liska <mliska@suse.cz>
24631
24632 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
24633 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
24634 * doc/tm.texi: Document new target hook.
24635 * doc/tm.texi.in: Likewise.
24636 * target.def: Add new target macro.
24637 * gcc.c (find_fortran_preinclude_file): Do not search multilib
24638 suffixes.
24639
24640 2019-02-17 Alan Modra <amodra@gmail.com>
24641
24642 PR target/89271
24643 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
24644 output reg on add insn.
24645 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
24646
24647 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
24648
24649 PR target/89372
24650 * config/i386/sse.md (ssedoublemode): Remove V4HI.
24651 (PMULHRSW): Likewise.
24652 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
24653 TARGET_AVX2.
24654 (ssse3_pmulhrswv4hi3): New expander.
24655
24656 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
24657
24658 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
24659 MMX. Add isa attribute.
24660
24661 2019-02-16 Jakub Jelinek <jakub@redhat.com>
24662
24663 PR rtl-optimization/66152
24664 * builtins.h (c_readstr): Declare.
24665 * builtins.c (c_readstr): Remove forward declaration. Add
24666 null_terminated_p argument, if false, read all bytes from the
24667 string instead of stopping after '\0'.
24668 * expr.c (string_cst_read_str): New function.
24669 (store_expr): Use string_cst_read_str instead of
24670 builtin_strncpy_read_str. Try to store by pieces the whole
24671 exp_len first, and only if that fails, split it up into
24672 store by pieces followed by clear_storage. Formatting fix.
24673
24674 * config/i386/i386.md (*movqi_internal): Remove static from
24675 buf variable. Use output_asm_insn (buf, operands); return "";
24676 instead of return buf;.
24677 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
24678 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
24679 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
24680
24681 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
24682
24683 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
24684 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
24685 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
24686 (CC1_SPEC): Likewise.
24687 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
24688
24689 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
24690
24691 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
24692 the base address on 64-bit strict-alignment platforms.
24693
24694 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
24695
24696 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
24697
24698 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
24699
24700 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
24701
24702 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
24703
24704 PR rtl-optimization/88308
24705 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
24706 on copied instruction.
24707
24708 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
24709
24710 * final.c (insn_current_reference_address): Replace test on JUMP_P
24711 with test on jump_to_label_p.
24712 * config/visium/visium-passes.def: New file.
24713 * config/visium/t-visium (PASSES_EXTRA): Define.
24714 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
24715 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
24716 (TRAMPOLINE_ALIGNMENT): Define.
24717 * config/visium/visium.c (visium_option_override): Do not register
24718 the machine-specific reorg pass here.
24719 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
24720 for the GR6.
24721 (output_branch): Adjust threshold for long branch instruction.
24722 * config/visium/visium.md (cpu): Move around.
24723 (length): Adjust for the GR6.
24724
24725 2019-02-15 Richard Biener <rguenther@suse.de>
24726 Jakub Jelinek <jakub@redhat.com>
24727
24728 PR tree-optimization/89278
24729 * tree-loop-distribution.c: Include tree-eh.h.
24730 (generate_memset_builtin, generate_memcpy_builtin): Call
24731 rewrite_to_non_trapping_overflow on builtin->size before passing it
24732 to force_gimple_operand_gsi.
24733
24734 2019-02-15 Jakub Jelinek <jakub@redhat.com>
24735
24736 PR other/89342
24737 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
24738 optimize_debug.
24739 * opth-gen.awk: Likewise.
24740
24741 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
24742
24743 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
24744 Enable MMX, SSE and SSE2 by default.
24745 * config/i386/i386.c (ix86_option_override_internal): Do not
24746 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
24747
24748 2019-02-14 Jakub Jelinek <jakub@redhat.com>
24749
24750 PR rtl-optimization/89354
24751 * combine.c (make_extraction): Punt if extraction_mode is narrower
24752 than len bits.
24753
24754 2019-02-14 Maya Rashish <coypu@sdf.org>
24755
24756 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
24757 * config/netbsd-d.c: New file.
24758 * config/t-netbsd: Add netbsd-d.o
24759
24760 2018-02-14 Steve Ellcey <sellcey@marvell.com>
24761
24762 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
24763 affects_type_identity to true for aarch64_vector_pcs.
24764 (aarch64_comp_type_attributes): New function.
24765 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
24766
24767 2019-02-14 Tamar Christina <tamar.christina@arm.com>
24768
24769 PR target/88850
24770 * config/arm/iterators.md (ANY64): Add V4HF.
24771
24772 2019-02-14 Martin Liska <mliska@suse.cz>
24773
24774 PR rtl-optimization/89242
24775 * dce.c (delete_unmarked_insns): Call free_dominance_info we
24776 process a transformation.
24777
24778 2019-02-14 Jakub Jelinek <jakub@redhat.com>
24779
24780 PR tree-optimization/89314
24781 * fold-const.c (fold_binary_loc): Cast strlen argument to
24782 const char * before dereferencing it. Formatting fixes.
24783
24784 PR middle-end/89284
24785 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
24786
24787 2019-02-13 Ian Lance Taylor <iant@golang.org>
24788
24789 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
24790 and set current index for other optimizations.
24791
24792 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
24793
24794 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
24795 nonimmediate_operand as operand 2 predicate.
24796 (vec_set<VF2_512_256:mode>_0): Ditto.
24797 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
24798 (*vec_concatv2si): Remove alternative 2.
24799 (*vec_concatv4si_0): Use vm constraint for alternative 0.
24800 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
24801 (vec_concatv2di): Split alternatives 4,5,6 to ...
24802 (*vec_concatv2di_0) ... new pattern.
24803
24804 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
24805
24806 PR target/89190
24807 * config/arm/arm.c (ldm_stm_operation_p) Set
24808 addr_reg_in_reglist correctly for first register.
24809 (load_multiple_sequence): Remove dead base check.
24810 (gen_ldm_seq): Correctly set write_back for Thumb-1.
24811
24812 2019-02-13 Tamar Christina <tamar.christina@arm.com>
24813
24814 PR target/88847
24815 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
24816 Expose as @aarch64_pred_mov.
24817 * config/aarch64/aarch64.c (aarch64_classify_address):
24818 Use expand_insn which legitimizes operands.
24819
24820 2019-02-13 Martin Liska <mliska@suse.cz>
24821
24822 * builtins.h (expand_builtin_with_bounds): Remove declaration.
24823 * calls.c (struct arg_data): Remove special_slot, pointer_arg
24824 and pointer_offset fields.
24825 (initialize_argument_information): Remove usage of dead
24826 fields.
24827 * cgraph.h (struct cgraph_thunk_info): Remove
24828 add_pointer_bounds_args.
24829 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
24830 fields.
24831 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
24832 fields.
24833 * config/i386/i386.c (ix86_function_arg_advance): Remove
24834 unrelated comment.
24835 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
24836 (def_builtin): Remove usage of dead fields.
24837 (ix86_add_new_builtins): Likewise.
24838 * ipa-fnsummary.c (compute_fn_summary): Likewise.
24839 * ipa-icf.c (sem_function::equals_wpa): Likewise.
24840 (sem_function::init): Likewise.
24841 (sem_variable::merge): Likewise.
24842 * ipa-visibility.c (function_and_variable_visibility): Likewise.
24843 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
24844 * lto-cgraph.c (lto_output_node): Likewise.
24845 (lto_output_varpool_node): Likewise.
24846 (input_node): Likewise.
24847 (input_varpool_node): Likewise.
24848 * lto-streamer-out.c (lto_output): Likewise.
24849 * tree-inline.c (expand_call_inline): Remove usage of
24850 assign_stmts.
24851 * tree-inline.h (struct copy_body_data): Likewise.
24852 * varpool.c (varpool_node::dump): Likewise.
24853
24854 2019-02-13 Jakub Jelinek <jakub@redhat.com>
24855
24856 PR middle-end/89303
24857 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
24858 into pt->vars_contains_escaped_heap instead of setting
24859 pt->vars_contains_escaped_heap to it.
24860
24861 PR middle-end/89281
24862 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
24863 INTVAL (size), compare it to GET_MODE_MASK instead of
24864 1 << GET_MODE_BITSIZE.
24865
24866 PR target/89290
24867 * config/i386/predicates.md (x86_64_immediate_operand): Allow
24868 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
24869 -mcmodel=large.
24870
24871 2019-02-13 Martin Liska <mliska@suse.cz>
24872
24873 PR lto/88858
24874 * cfgrtl.c (remove_barriers_from_footer): New function.
24875 (try_redirect_by_replacing_jump): Use it.
24876 (cfg_layout_redirect_edge_and_branch): Likewise.
24877
24878 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24879
24880 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
24881 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
24882 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
24883 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
24884 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
24885 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
24886 New BU_CRYPTO_2.
24887 * config/rs6000/rs6000.c (builtin_function_type)
24888 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
24889 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
24890 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
24891 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
24892 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
24893
24894 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
24895
24896 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
24897 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
24898
24899 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
24900
24901 PR target/89229
24902 * config/i386/i386.md (*movoi_internal_avx): Revert revision
24903 268678 and revision 268657.
24904 (*movti_internal): Likewise.
24905
24906 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
24907
24908 PR target/89233
24909 * config/s390/s390.c (s390_decompose_address): Update comment.
24910 (s390_check_qrst_address): Reject invalid address forms after
24911 LRA.
24912
24913 2019-02-12 Martin Liska <mliska@suse.cz>
24914
24915 PR lto/88876
24916 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
24917 we need default values of funct_state for a function that
24918 is not optimized.
24919
24920 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
24921
24922 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
24923 the object to pick the size of stores on strict-alignment platforms.
24924
24925 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
24926 (*movdi_insn_sp32): Likewise.
24927 (*movdi_insn_sp64): Likewise.
24928
24929 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
24930
24931 PR lto/88677
24932 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
24933 types that needs constructiong.
24934 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
24935
24936 2019-02-12 Richard Biener <rguenther@suse.de>
24937
24938 PR tree-optimization/89253
24939 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
24940 duplicate the loop.
24941
24942 2019-02-11 David Malcolm <dmalcolm@redhat.com>
24943
24944 PR lto/88147
24945 * input.c (selftest::test_line_offset_overflow): New selftest.
24946 (selftest::input_c_tests): Call it.
24947
24948 2019-02-11 Martin Sebor <msebor@redhat.com>
24949
24950 PR tree-optimization/88771
24951 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
24952 when -Wstringop-overflow is set.
24953 (builtin_memref::builtin_memref): Adjust excessive upper bound
24954 only when lower bound is not excessive.
24955 (maybe_diag_overlap): Detect and diagnose excessive bounds via
24956 -Wstringop-ovefflow.
24957 (maybe_diag_offset_bounds): Rename...
24958 (maybe_diag_access_bounds): ...to this.
24959 (check_bounds_or_overlap): Adjust for name change above.
24960
24961 2019-02-11 Martin Sebor <msebor@redhat.com>
24962
24963 PR c++/87996
24964 * builtins.c (max_object_size): Move from here...
24965 * builtins.h (max_object_size): ...and here...
24966 * tree.c (max_object_size): ...to here...
24967 * tree.h (max_object_size): ...and here.
24968
24969 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
24970
24971 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
24972 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
24973 for correct semantics.
24974
24975 2019-02-11 Alan Modra <amodra@gmail.com>
24976
24977 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
24978 -mlongcall and -mpltseq.
24979 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
24980 (RS/6000 and PowerPC Options <-mpltseq>): Document.
24981 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
24982 * config/rs6000/sysv4.opt (mpltseq): New option.
24983 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
24984 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
24985 support is lacking. Don't allow -mpltseq with -mbss-plt.
24986 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
24987 -mpltseq given for ELFv1.
24988 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
24989 Only use UNSPEC_PLTSEQ for inline PLT calls.
24990 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
24991 use UNSPEC_PLTSEQ for inline PLT calls.
24992 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
24993 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
24994 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
24995 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
24996 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
24997 (pltseq_mtctr_<mode>): Likewise.
24998
24999 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25000
25001 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
25002 Solaris ld.
25003 * configure: Regenerate.
25004
25005 2019-02-11 Jakub Jelinek <jakub@redhat.com>
25006
25007 PR bootstrap/88714
25008 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
25009 instead of r.
25010
25011 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
25012
25013 * function.c (assign_parm_setup_block): Use the stored
25014 size, not the passed size, when allocating stack-space,
25015 also for a parameter with alignment larger than
25016 MAX_SUPPORTED_STACK_ALIGNMENT.
25017
25018 2019-02-11 Martin Liska <mliska@suse.cz>
25019
25020 PR ipa/89009
25021 * ipa-cp.c (build_toporder_info): Remove usage of a param.
25022 * ipa-inline.c (inline_small_functions): Likewise.
25023 * ipa-pure-const.c (propagate_pure_const): Likewise.
25024 (propagate_nothrow): Likewise.
25025 * ipa-reference.c (propagate): Likewise.
25026 * ipa-utils.c (struct searchc_env): Remove unused field.
25027 (searchc): Always search across AVAIL_INTERPOSABLE.
25028 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
25029 the only called IPA pure const can properly not propagate
25030 across interposable boundary.
25031 * ipa-utils.h (ipa_reduced_postorder): Remove param.
25032
25033 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
25034
25035 * config/nds32/nds32.md (call_internal, call_value_internal,
25036 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
25037
25038 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
25039
25040 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
25041 typo.
25042
25043 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
25044
25045 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
25046 in comments
25047
25048 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
25049
25050 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
25051
25052 2019-02-10 Jakub Jelinek <jakub@redhat.com>
25053
25054 PR tree-optimization/89268
25055 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
25056 if preds is non-NULL.
25057
25058 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
25059
25060 PR lto/89272
25061 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
25062 polymorphic types.
25063
25064 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
25065
25066 * config/nds32/nds32.md (trap): New pattern.
25067
25068 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
25069
25070 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
25071 dwarf span.
25072
25073 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
25074
25075 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
25076 to split POST_INC.
25077
25078 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
25079
25080 * ipa-visibility.c (localize_node): Also do not localize
25081 LDPR_PREVAILING_DEF_IRONLY_EXP.
25082
25083 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
25084
25085 PR lto/87957
25086 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
25087 instead of type_with_linkage.
25088
25089 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
25090
25091 PR ipa/88755
25092 * params.def (uninlined-function-insns, uninlined-function-time,
25093 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
25094 bound so we don't get overflows.
25095
25096 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
25097
25098 * config/rs6000/rs6000-string.c (expand_compare_loop,
25099 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
25100 memcmp/strncmp.
25101
25102 2019-02-09 Jakub Jelinek <jakub@redhat.com>
25103
25104 PR middle-end/89246
25105 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
25106 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
25107 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
25108
25109 2019-02-09 Alan Modra <amodra@gmail.com>
25110
25111 PR target/88343
25112 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
25113 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
25114 setup.
25115
25116 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
25117
25118 PR middle-end/88560
25119 * lra-constraints.c (process_alt_operands): Don't increase reject
25120 for memory when offset memory is required.
25121
25122 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
25123
25124 * config/s390/vector.md: Implement vector copysign.
25125
25126 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
25127
25128 * expr.c (expand_constructor): Correct indentations.
25129
25130 2019-02-08 Richard Biener <rguenther@suse.de>
25131
25132 PR tree-optimization/89247
25133 * tree-if-conv.c: Include tree-cfgcleanup.h.
25134 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
25135 (tree_if_conversion): Pass through predicate vector.
25136 (pass_if_conversion::execute): Do CFG cleanup and SSA update
25137 inline, see if any if-converted loops we refrece in
25138 LOOP_VECTORIZED calls vanished and fixup.
25139 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
25140
25141 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
25142
25143 * config/s390/constraints.md (jdd): New constraint.
25144
25145 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
25146
25147 PR target/89229
25148 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
25149 upper 16 vector registers without TARGET_AVX512VL.
25150 (*movti_internal): Likewise.
25151
25152 2019-02-08 Jakub Jelinek <jakub@redhat.com>
25153
25154 PR rtl-optimization/89234
25155 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
25156 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
25157 (copy_reg_eh_region_note_backward): Likewise.
25158
25159 2019-02-08 Richard Biener <rguenther@suse.de>
25160
25161 PR middle-end/89223
25162 * tree-data-ref.c (initialize_matrix_A): Fail if constant
25163 doesn't fit in HWI.
25164 (analyze_subscript_affine_affine): Handle failure from
25165 initialize_matrix_A.
25166
25167 2019-02-08 Jakub Jelinek <jakub@redhat.com>
25168
25169 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
25170 cfun everywhere.
25171
25172 2019-02-07 David Malcolm <dmalcolm@redhat.com>
25173
25174 PR tree-optimization/86637
25175 PR tree-optimization/89235
25176 * tree-vect-loop.c (optimize_mask_stores): Add an
25177 auto_purge_vect_location sentinel to ensure that vect_location is
25178 purged on exit.
25179 * tree-vectorizer.c
25180 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
25181 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
25182 to ensure that vect_location is purged on exit.
25183 (pass_slp_vectorize::execute): Likewise, replacing the manual
25184 reset.
25185 * tree-vectorizer.h (class auto_purge_vect_location): New class.
25186
25187 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25188
25189 * config/aarch64/iterators.md (max_opp): New code_attr.
25190 (USMAX): New code iterator.
25191 * config/aarch64/predicates.md (aarch64_smin): New predicate.
25192 (aarch64_smax): Likewise.
25193 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
25194 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
25195 MINUS (MAX MIN).
25196
25197 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
25198
25199 PR target/89229
25200 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
25201 for TARGET_AVX512VL.
25202 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
25203
25204 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
25205
25206 * config/s390/s390-builtin-types.def: Add new types.
25207 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
25208 (s390_vec_xlw4): Make the memory operand into a const pointer.
25209 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
25210 float.
25211 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
25212 a new vector type with the alignment of the scalar memory operand.
25213
25214 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
25215 Jakub Jelinek <jakub@redhat.com>
25216
25217 PR bootstrap/88714
25218 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
25219 arm_count_ldrdstrd_insns): New declarations.
25220 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
25221 MINUS.
25222 (valid_operands_ldrd_strd): New function.
25223 (arm_count_ldrdstrd_insns): New function.
25224 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
25225 sets instead of single DImode set and define new insns to match this.
25226
25227 2019-02-07 Tamar Christina <tamar.christina@arm.com>
25228
25229 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
25230 Make it a C initializer.
25231
25232 2019-02-07 Tamar Christina <tamar.christina@arm.com>
25233
25234 PR/target 88850
25235 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
25236
25237 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25238
25239 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
25240 Use neon_dot<q> for type.
25241 (neon_<sup>dot_lane<vsi2qi>): Likewise.
25242
25243 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25244
25245 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
25246 Use neon_dot<q> for type.
25247 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
25248 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
25249
25250 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
25251
25252 PR rtl-optimization/89225
25253 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
25254 sizes check.
25255
25256 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
25257
25258 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
25259 after restoring registers saved to allocate the frame on Windows.
25260
25261 2019-02-06 Richard Biener <rguenther@suse.de>
25262
25263 PR tree-optimization/89182
25264 * graphite.h (cached_scalar_evolution_in_region): Declare.
25265 * graphite.c (struct seir_cache_key): New.
25266 (struct sese_scev_hash): Likewise.
25267 (seir_cache): New global.
25268 (cached_scalar_evolution_in_region): New function.
25269 (graphite_transform_loops): Allocate and release seir_cache.
25270 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
25271 cached_scalar_evolution_in_region.
25272 * graphite-scop-detection.c (scop_detection::can_represent_loop):
25273 Simplify.
25274 (scop_detection::graphite_can_represent_expr: Use
25275 cached_scalar_evolution_in_region.
25276 (scop_detection::stmt_simple_for_scop_p): Likewise.
25277 (find_params_in_bb): Likewise.
25278 (gather_bbs::before_dom_children): Likewise.
25279 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
25280 (add_loop_constraints): Likewise.
25281
25282 2019-02-06 Jakub Jelinek <jakub@redhat.com>
25283
25284 PR middle-end/89210
25285 * fold-const-call.c (fold_const_vec_convert): Pass true as last
25286 operand to new_unary_operation only if both element types are integral
25287 and it isn't a widening conversion. Return NULL_TREE if
25288 new_unary_operation failed.
25289
25290 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
25291
25292 PR target/88856
25293 * config/s390/s390.md: Remove load and test FP splitter.
25294
25295 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
25296
25297 PR target/89112
25298 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
25299 expand_compare_loop, expand_block_compare_gpr,
25300 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
25301 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
25302 #include "profile-count.h" and "predict.h" for types and functions
25303 needed to work with REG_BR_PROB notes.
25304
25305 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
25306
25307 PR target/89112
25308 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
25309 for the long branch case.
25310
25311 2019-02-05 Jakub Jelinek <jakub@redhat.com>
25312
25313 PR target/89188
25314 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
25315 can throw, non-call exceptions are enabled and we can't delete
25316 dead exceptions or alter cfg. Set must_clean if
25317 delete_insn_and_edges returns true, don't set it blindly for calls.
25318 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
25319
25320 PR rtl-optimization/89195
25321 * combine.c (make_extraction): For MEMs, don't extract bytes outside
25322 of the original MEM.
25323
25324 2019-02-05 Martin Liska <mliska@suse.cz>
25325
25326 PR gcov-profile/89000
25327 * gcov.c (function_summary): Remove argument.
25328 (file_summary): New function.
25329 (print_usage): Replace tabs with spaces.
25330 (generate_results): Use new function file_summary.
25331
25332 2019-02-05 Jakub Jelinek <jakub@redhat.com>
25333
25334 PR target/89186
25335 * optabs.c (prepare_cmp_insn): Pass x and y to
25336 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
25337
25338 2019-02-05 Richard Biener <rguenther@suse.de>
25339
25340 PR middle-end/89150
25341 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
25342 (struct bitmap_element): Drop chain_prev so we properly recurse on
25343 the prev member, supporting tree views.
25344 (struct bitmap_head): GTY skip the obstack member.
25345
25346 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
25347
25348 PR c/88698
25349 * doc/extend.texi (Vector Extensions): Add an example of using vector
25350 types together with x86 intrinsics.
25351
25352 2019-02-04 Alan Modra <amodra@gmail.com>
25353
25354 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
25355 str[] size to 160, and comment.
25356
25357 2019-02-04 Alan Modra <amodra@gmail.com>
25358
25359 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
25360 (rs6000_pltseq_template): Guard output of TLS markers with
25361 TARGET_TLS_MARKERS.
25362 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
25363 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
25364 to use inline PLT sequences.
25365 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
25366 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
25367 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
25368
25369 2019-02-04 Martin Liska <mliska@suse.cz>
25370
25371 PR ipa/88985
25372 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
25373 out when ipa_fn_summaries does not contain entry for callee.
25374
25375 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
25376
25377 * config/sparc/sparc.h: Remove superfluous blank lines.
25378 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
25379 (got_register_rtx): ...this.
25380 (sparc_got): Adjust to above renaming.
25381 (sparc_tls_got): Likewise.
25382 (sparc_delegitimize_address): Likewise.
25383 (sparc_output_mi_thunk): Likewise.
25384 (sparc_init_pic_reg): Likewise.
25385 (save_local_or_in_reg_p): Fix test on the GOT register.
25386 (USE_HIDDEN_LINKONCE): Move around.
25387 (get_pc_thunk_name): Likewise.
25388 (gen_load_pcrel_sym): Likewise.
25389 (load_got_register): Likewise.
25390
25391 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
25392
25393 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
25394 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
25395
25396 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
25397
25398 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
25399 into consideration.
25400
25401 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
25402
25403 * config.gcc (with_nds32_lib, glibc):
25404 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
25405 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
25406 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
25407
25408 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
25409
25410 PR target/89071
25411 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
25412 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
25413 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
25414 (*rcpsf2_sse): Ditto.
25415 (*rsqrtsf2_sse): Ditto.
25416 (sse4_1_round<mode<2): Ditto.
25417
25418 2019-02-03 Richard Biener <rguenther@suse.de>
25419
25420 PR debug/87295
25421 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
25422 orig.
25423
25424 2019-02-02 Jakub Jelinek <jakub@redhat.com>
25425
25426 PR middle-end/87887
25427 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
25428 Punt with warning on aggregate return or argument types. Ignore
25429 type/mode checking for uniform arguments.
25430
25431 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
25432
25433 * combine.c (try_combine): Do not print "Can't combine" messages unless
25434 printing failed combination attempts.
25435
25436 2019-02-01 Martin Jambor <mjambor@suse.cz>
25437
25438 PR hsa/87863
25439 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
25440 segment and global segment variables before making them static.
25441
25442 2019-02-01 Martin Jambor <mjambor@suse.cz>
25443
25444 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
25445 missed optimization dump with dump_enabled_p.
25446
25447 2019-02-01 Richard Biener <rguenther@suse.de>
25448
25449 PR middle-end/88597
25450 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
25451 the instantiate cache.
25452 (instantiate_scev_binary): Elide second operand procesing
25453 if equal to the first.
25454 * tree-chrec.c (chrec_contains_symbols): Add visited set.
25455 (chrec_contains_undetermined): Likewise.
25456 (tree_contains_chrecs): Likewise.
25457
25458 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
25459
25460 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
25461
25462 2019-02-01 Jakub Jelinek <jakub@redhat.com>
25463
25464 PR tree-optimization/89143
25465 * wide-int-range.h (wide_int_range_absu): Declare.
25466 * wide-int-range.cc (wide_int_range_absu): New function.
25467 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
25468
25469 PR tree-optimization/88107
25470 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
25471 instead of assertion that eh_region_outermost is non-NULL, if it
25472 is NULL, set *ALL to true and return NULL.
25473 (move_sese_region_to_fn): Adjust caller, if all is set, call
25474 duplicate_eh_regions with NULL region.
25475
25476 2019-02-01 Richard Biener <rguenth@suse.de>
25477
25478 PR rtl-optimization/88593
25479 * mode-switching.c (optimize_mode_switching): Free dominators before
25480 calling cleanup_cfg.
25481
25482 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
25483
25484 PR tree-optimization/88932
25485 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
25486
25487 2019-01-31 Jakub Jelinek <jakub@redhat.com>
25488
25489 PR middle-end/89137
25490 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
25491 bogus clang warning.
25492
25493 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
25494
25495 PR target/89071
25496 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
25497 alternative to avoid partial SSE register stall for TARGET_AVX.
25498 (truncdfsf2): Ditto.
25499 (sse4_1_round<mode>2): Ditto.
25500
25501 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
25502
25503 PR tree-optimization/89008
25504 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
25505 process anything of the form X * 0.
25506
25507 2019-01-31 Richard Biener <rguenther@suse.de>
25508
25509 PR tree-optimization/89135
25510 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
25511 with abnormal preds.
25512
25513 2019-01-31 Jakub Jelinek <jakub@redhat.com>
25514
25515 PR sanitizer/89124
25516 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
25517 always_inline callees into no_sanitize_address callers.
25518
25519 2019-01-31 Richard Biener <rguenther@suse.de>
25520
25521 PR rtl-optimization/89115
25522 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
25523
25524 2019-01-30 Martin Sebor <msebor@redhat.com>
25525
25526 PR other/89106
25527 * doc/extend.texi (cast to a union): Correct and expand.
25528
25529 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
25530
25531 PR rtl-optimization/87246
25532 * lra-constraints.c (simplify_operand_subreg): Reload memory
25533 in subreg if the address became invalid.
25534
25535 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
25536
25537 PR target/87064
25538 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
25539 Disable for little-endian.
25540
25541 2019-01-30 Richard Biener <rguenther@suse.de>
25542
25543 PR rtl-optimization/89115
25544 * opts.c (default_options_optimization): Reduce
25545 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
25546 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
25547 to the default.
25548
25549 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
25550
25551 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
25552 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
25553 type of vector element when vec_extract is implemented by direct
25554 move.
25555
25556 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
25557
25558 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
25559
25560 2019-01-30 Richard Biener <rguenther@suse.de>
25561
25562 PR tree-optimization/89111
25563 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
25564 canonicalization to appropriately sized access types.
25565
25566 2019-01-30 Jakub Jelinek <jakub@redhat.com>
25567
25568 PR c++/89105
25569 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
25570 for arguments to functions that are TU-local and shouldn't be
25571 referenced by assembly.
25572
25573 2019-01-30 Ulrich Drepper <drepper@redhat.com>
25574
25575 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
25576 after '='.
25577
25578 2019-01-29 Martin Sebor <msebor@redhat.com>
25579
25580 PR c/88956
25581 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
25582
25583 2019-01-29 Jakub Jelinek <jakub@redhat.com>
25584
25585 PR c++/66676
25586 PR ipa/89104
25587 * omp-simd-clone.c (simd_clone_clauses_extract)
25588 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
25589 OMP_CLAUSE_ALIGNED_ALIGNMENT.
25590
25591 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
25592
25593 * config.gcc: Force .init_array for ARC.
25594
25595 2019-01-29 Richard Biener <rguenther@suse.de>
25596
25597 PR debug/87295
25598 * dwarf2out.c (collect_skeleton_dies): New helper.
25599 (copy_decls_for_unworthy_types): Call it.
25600 (build_abbrev_table): Assert we do not try to replace
25601 DW_AT_signature refs with local refs.
25602
25603 2019-01-28 Jakub Jelinek <jakub@redhat.com>
25604
25605 PR middle-end/89002
25606 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
25607 for lastprivate/linear IV, push gimplify context around gimplify_assign
25608 and, if it needed any temporaries, pop it into a gimple bind around the
25609 sequence.
25610
25611 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
25612
25613 * common.opt (-Wattribute-alias): Remove "no-" from name.
25614 Make -Wattribute-alias command line option and
25615 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
25616
25617 2019-01-28 Jakub Jelinek <jakub@redhat.com>
25618
25619 PR target/89073
25620 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
25621 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
25622 x86 ISA options.
25623 (bmi2): Add missing @opindex.
25624 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
25625 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
25626 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
25627 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
25628 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
25629 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
25630 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
25631 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
25632 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
25633 xsavec, xsaveopt and xsaves options.
25634
25635 2019-01-28 Richard Biener <rguenther@suse.de>
25636
25637 PR debug/89076
25638 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
25639 support removal.
25640
25641 2019-01-28 Richard Biener <rguenther@suse.de>
25642
25643 PR tree-optimization/88739
25644 * tree-cfg.c (verify_types_in_gimple_reference): Verify
25645 BIT_FIELD_REFs only are applied to mode-precision operands
25646 when they are integral.
25647 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
25648 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
25649 BIT_FIELD_REFs of non-mode-precision integral operands.
25650
25651 2019-01-27 Jakub Jelinek <jakub@redhat.com>
25652
25653 PR target/87214
25654 * config/i386/sse.md
25655 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
25656 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
25657 first constants in pairs are multiples of 2. Formatting fixes.
25658 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
25659 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
25660 first constants in each quadruple are multiples of 4. Formatting fixes.
25661
25662 2019-01-26 Martin Jambor <mjambor@suse.cz>
25663
25664 PR ipa/88933
25665 * tree-inline.c: Include tree-cfgcleanup.h.
25666 (delete_unreachable_blocks_update_callgraph): Move...
25667 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
25668 ...here, make externally visible, make second argument bool, adjust
25669 all callers.
25670 * tree-cfgcleanup.c: Include cgraph.h.
25671 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
25672 Declare.
25673 * ipa-prop.c: Include tree-cfgcleanup.h.
25674 (ipcp_transform_function): Call
25675 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
25676
25677 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
25678
25679 PR rtl-optimization/88846
25680 * ira.c (process_set_for_memref_referenced_p): New.
25681 (memref_referenced_p): Add new param. Use
25682 process_set_for_memref_referenced_p. Add new switch cases.
25683 (memref_used_between_p): Pass new arg to memref_referenced_p.
25684
25685 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
25686
25687 PR target/88469
25688 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
25689 argument ABI_BREAK. Set to true if the calculated alignment has
25690 changed in gcc-9. Check bit-fields for their base type alignment.
25691 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
25692 (aarch64_function_arg_boundary): Likewise.
25693 (aarch64_gimplify_va_arg_expr): Likewise.
25694
25695 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
25696
25697 PR middle-end/89037
25698 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
25699 instead of accessing TREE_INT_CST_ELT directly.
25700
25701 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
25702
25703 * doc/sourcebuild.texi (Environment attributes): Add fenv and
25704 fenv_exceptions description.
25705
25706 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
25707
25708 PR rtl-optimization/87763
25709 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
25710 Allow SUBREG when matching CC_NZmode compare.
25711
25712 2019-01-25 Richard Biener <rguenther@suse.de>
25713
25714 PR tree-optimization/89049
25715 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
25716 Look at the pattern stmt to determine if the stmt is vectorized.
25717
25718 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
25719
25720 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
25721 (pred_mov<mode>): Handle all-register forms using both a new
25722 alternative and a split.
25723
25724 2019-01-25 Richard Biener <rguenther@suse.de>
25725
25726 PR tree-optimization/86865
25727 * graphite-scop-detection.c (scop_detection::can_represent_loop):
25728 Reject non-do-while loops.
25729
25730 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
25731
25732 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
25733 * config/rs6000/constraints.md (Q constraint): Use REG_P.
25734 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
25735 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
25736 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
25737 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25738 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
25739 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
25740 vlogical_operand, gpc_reg_operand, int_reg_operand,
25741 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
25742 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
25743 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
25744 (save_world_operation, restore_world_operation, lmw_operation,
25745 stmw_operation): Use MEM_P and REG_P.
25746 (tie_operand): Use MEM_P.
25747 (vrsave_operation, crsave_operation): Use REG_P.
25748 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
25749 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
25750 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
25751 (call_operand): Use HARD_REGISTER_P.
25752 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
25753 Use CONST_INT_P.
25754 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
25755 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
25756 quad_aligned_load_p, replace_swapped_aligned_store,
25757 recombine_lvx_pattern, replace_swapped_aligned_load,
25758 recombine_stvx_pattern): Use MEM_P.
25759 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
25760 Use MEM_P and SYMBOL_REF_P.
25761 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
25762 (insn_is_swappable_p): Use REG_P and MEM_P.
25763 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
25764 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
25765 Use CONST_INT_P.
25766 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
25767 Use CONST_DOUBLE_P.
25768 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
25769 CONST_WIDE_INT_P.
25770 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
25771 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
25772 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
25773 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
25774 reg_or_subregno:
25775 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
25776 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
25777 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
25778 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
25779 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
25780 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
25781 rs6000_split_logical_di): Use CONST_INT_P.
25782 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
25783 REG_P and SYMBOL_REF_P.
25784 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
25785 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
25786 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
25787 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
25788 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
25789 (small_data_operand, print_operand_address): Use CONST_INT_P and
25790 SYMBOL_REF_P.
25791 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
25792 (rs6000_init_hard_regno_mode_ok, direct_move_p):
25793 Use HARD_REGISTER_NUM_P.
25794 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
25795 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
25796 SUBREG_P and SYMBOL_REF_P.
25797 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
25798 and HARD_REGISTER_NUM_P.
25799 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
25800 reg_or_subregno.
25801 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
25802 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
25803 MEM_P and REG_P.
25804 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
25805 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
25806 find_addr_reg): Use REG_P.
25807 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
25808 (rs6000_emit_le_vsx_move): Use SUBREG_P.
25809 (offsettable_ok_by_alignment, constant_pool_expr_p,
25810 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
25811 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
25812 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
25813 rs6000_assemble_integer, create_TOC_reference,
25814 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
25815 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
25816 (rs6000_split_vec_extract_var): Use reg_or_subregno.
25817 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
25818 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
25819 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25820 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25821 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
25822 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
25823 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
25824 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
25825 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
25826 and cbranch<mode>4): Use CONST_INT_P.
25827 (multiple define_splits): Use REG_P and SUBREG_P.
25828 (define_expands call, call_value): Use MEM_P.
25829 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
25830 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
25831 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
25832 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
25833 and HARD_REGISTER_NUM_P.
25834 (multiple define_splits): Use HARD_REGISTER_NUM_P.
25835
25836 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
25837
25838 PR rtl-optimization/88948
25839 * rtl.h (prepare_copy_insn): New prototype.
25840 * gcse.c (prepare_copy_insn): New function, split out from
25841 process_insert_insn.
25842 (process_insert_insn): Use prepare_copy_insn.
25843 * store-motion.c (replace_store_insn): Use prepare_copy_insn
25844 instead of gen_move_insn.
25845
25846 2019-01-24 Jakub Jelinek <jakub@redhat.com>
25847
25848 PR debug/89006
25849 * config/i386/i386.c (ix86_pic_register_p): Return true for
25850 UNSPEC_SET_GOT too.
25851
25852 PR tree-optimization/88964
25853 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
25854 punt if HONOR_SNANS (chrec).
25855
25856 PR middle-end/89015
25857 * tree-nested.c (convert_nonlocal_reference_stmt,
25858 convert_local_reference_stmt, convert_tramp_reference_stmt,
25859 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
25860 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
25861 or GIMPLE_OMP_TASK.
25862
25863 PR tree-optimization/89027
25864 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
25865 for "omp simd array" variables.
25866
25867 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
25868
25869 PR target/88469
25870 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
25871 force the alignment of m_val.
25872
25873 2019-01-24 Richard Biener <rguenther@suse.de>
25874
25875 PR lto/87187
25876 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
25877 When in "legacy" debug mode make sure to reset self-origins.
25878
25879 2019-01-24 Martin Liska <mliska@suse.cz>
25880
25881 PR gcov-profile/88994
25882 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
25883 result will be always smaller or equal to the original.
25884 * gcov.c (mangle_name): Fix else branch where we should
25885 also copy to PTR and shift the pointer.
25886
25887 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
25888
25889 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
25890 * vr-values.c (find_case_label_ranges): Fix a comment typo.
25891
25892 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
25893
25894 * common/config/i386/i386-common.c
25895 (OPTION_MASK_ISA_ENQCMD_SET,
25896 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
25897 (ix86_handle_option): Handle -menqcmd.
25898 * config.gcc (enqcmdintrin.h): New header file.
25899 * config/i386/cpuid.h (bit_ENQCMD): New bit.
25900 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
25901 -menqcmd.
25902 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
25903 function type.
25904 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
25905 __builtin_ia32_enqcmds): New builtins.
25906 * config/i386/i386-c.c (__ENQCMD__): New macro.
25907 * config/i386/i386-option.c (ix86_target_string): Add
25908 -menqcmd.
25909 (ix86_valid_target_attribute_inner_p): Likewise.
25910 * config/i386/i386-expand.c
25911 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
25912 IX86_BUILTIN_ENQCMDS.
25913 * config/i386/i386.h (TARGET_ENQCMD): New.
25914 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
25915 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
25916 (movdir64b_<mode>): Parameterize to enable share expansion code
25917 with ENQCMD in function ix86_expand_builtin.
25918 * config/i386/i386.opt: Add -menqcmd.
25919 * config/i386/immintrin.h: Include enqcmdintrin.h.
25920 * config/i386/enqcmdintrin.h: New intrinsic file.
25921 * doc/invoke.texi: Add -menqcmd.
25922
25923 2019-01-23 Bin Cheng <bin.cheng@arm.com>
25924 Steve Ellcey <sellcey@marvell.com>
25925
25926 PR target/85711
25927 * recog.c (address_operand): Return false on wrong mode for address.
25928 (constrain_operands): Check for mode with 'p' constraint.
25929
25930 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
25931
25932 PR target/88998
25933 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
25934 Disparage MMX alternative.
25935 (sse2_cvtpd2pi): Ditto.
25936 (sse2_cvttpd2pi): Ditto.
25937
25938 2019-01-23 David Malcolm <dmalcolm@redhat.com>
25939
25940 PR driver/89014
25941 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
25942 use-after-free of the result of
25943 aarch64_get_extension_string_for_isa_flags.
25944
25945 2019-01-23 Jakub Jelinek <jakub@redhat.com>
25946
25947 PR c/44715
25948 * doc/extend.texi: Document break and continue behavior in
25949 statement expressions.
25950
25951 2019-01-23 Richard Biener <rguenther@suse.de>
25952
25953 PR tree-optimization/89008
25954 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
25955 not leave another stray operand.
25956
25957 2019-01-23 Jakub Jelinek <jakub@redhat.com>
25958
25959 * BASE-VER: Bump to 9.0.1.
25960
25961 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
25962
25963 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
25964 thunk that returns by reference, use the type of the return object
25965 of the thunk instead of that of the alias to build the dereference.
25966
25967 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
25968
25969 * config/arc/atomic.md: Add operand to DMB instruction.
25970
25971 2019-01-23 Jakub Jelinek <jakub@redhat.com>
25972
25973 PR tree-optimization/88964
25974 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
25975 build_zero_cst instead of build_int_cst. Return false for loop
25976 invariants which honor signed zeros.
25977
25978 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
25979
25980 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
25981
25982 2019-01-22 Jakub Jelinek <jakub@redhat.com>
25983
25984 PR target/88965
25985 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
25986 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
25987 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
25988
25989 PR middle-end/88968
25990 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
25991 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
25992
25993 PR target/87064
25994 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
25995 Disable for little endian.
25996
25997 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
25998
25999 PR target/88469
26000 * config/arm/arm.c (arm_needs_double_word_align): Check
26001 DECL_BIT_FIELD_TYPE.
26002
26003 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
26004 H.J. Lu <hongjiu.lu@intel.com>
26005
26006 PR target/88909
26007 * config/i386/i386-builtin.def: Add mask2 to all builtin
26008 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
26009 SPECIAL_ARGS.
26010 * config/i386/i386.c (BDESC): Add mask2 to the definition.
26011 (BDESC_FIRST): Likewise.
26012 (define_builtin): Add an argument for mask2. Updated to handle
26013 both ix86_isa_flags and ix86_isa_flags2.
26014 (define_builtin_const): Likewise.
26015 (define_builtin_pure): Likewise.
26016 (define_builtin2): Deleted.
26017 (define_builtin_const2): Likewise.
26018 (builtin_description): Add a member, mask2.
26019 (bdesc_*): Add mask2 to builtin initializations.
26020 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
26021 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
26022 support.
26023 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
26024
26025 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
26026
26027 PR target/88954
26028 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
26029 noplt attribute.
26030
26031 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
26032
26033 PR target/88469
26034 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
26035 alignment is dominated by a bitfield with 64-bit aligned base type.
26036 (arm_function_arg): Emit a warning if the alignment has changed since
26037 earlier GCC releases.
26038 (arm_function_arg_boundary): Likewise.
26039 (arm_setup_incoming_varargs): Likewise.
26040
26041 2019-01-22 Richard Biener <rguenther@suse.de>
26042
26043 PR tree-optimization/88862
26044 * graphite-scop-detection.c
26045 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
26046
26047 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
26048
26049 * doc/extend.tex (AMD GCN Function Attributes): New section.
26050 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
26051 * doc/invoke.texi (AMD GCN Options): New section.
26052 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
26053
26054 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
26055
26056 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
26057 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
26058
26059 2019-01-22 Jakub Jelinek <jakub@redhat.com>
26060
26061 PR tree-optimization/88044
26062 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
26063 is false in the first iteration, but !every_iteration, return false
26064 instead of true with niter->niter zero.
26065
26066 PR rtl-optimization/88904
26067 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
26068 any nonequal registers before processing BB_END (b).
26069
26070 PR target/88905
26071 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
26072 GET_MODE (op0).
26073 (expand_binop_directly, expand_doubleword_clz,
26074 expand_doubleword_popcount, expand_ctz, expand_ffs,
26075 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
26076
26077 PR rtl-optimization/49429
26078 PR target/49454
26079 PR rtl-optimization/86334
26080 PR target/88906
26081 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
26082 addressable from here...
26083 (emit_block_op_via_libcall): ... to here.
26084
26085 2019-01-22 Richard Biener <rguenther@suse.de>
26086
26087 * tree-vect-loop.c (vect_analyze_loop_operations): Use
26088 auto_vec for cost vector to fix memleak.
26089 (vectorize_fold_left_reduction): Properly gather SLP defs.
26090 (vectorizable_comparison): Do not swap operands to properly
26091 gather SLP defs.
26092
26093 2019-01-22 Alan Modra <amodra@gmail.com>
26094
26095 PR target/88614
26096 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
26097 stays a reg. Allow a const_int.
26098 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
26099 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
26100 (IS_NOMARK_TLSGETADDR): Define.
26101 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
26102 (rs6000_output_tlsargs): New function.
26103 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
26104 __tls_get_addr call takes an arg.
26105 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
26106 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
26107 delete split..
26108 (call_value_nonlocal_sysv): ..or here, delete split.
26109 (tls_gdld_nomark): Delete.
26110 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
26111 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
26112 (call_value_nonlocal_sysv): Likewise.
26113 (call_value_nonlocal_sysv_secure): Likewise.
26114 (call_value_nonlocal_aix): Likewise.
26115 (call_value_indirect_aix): Likewise.
26116 (call_value_indirect_elfv2): Likewise.
26117 (call_value_local32, call_value_local64): Disable for no-mark tls.
26118 (call_value_local_aix): Likewise.
26119
26120 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
26121
26122 PR target/88938
26123 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
26124 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
26125
26126 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
26127
26128 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
26129 string contents as hash_map keys.
26130
26131 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
26132
26133 PR c/88928
26134 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
26135 for rvalue context. Handle rvalues correctly. Use min_align_of_type
26136 instead of TYPE_ALIGN.
26137 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
26138 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
26139 pointer from TYPE_STUB_DECL.
26140
26141 2019-01-21 Richard Biener <rguenther@suse.de>
26142
26143 PR tree-optimization/88934
26144 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
26145 at the possibly non-constant operand.
26146 (vect_get_constant_vectors): Adjust.
26147
26148 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
26149
26150 PR target/71659
26151 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
26152 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
26153 instead of _X86INTRIN_H_INCLUDED.
26154 * onfig/i386/clwbintrin.h: Likewise.
26155 * config/i386/pkuintrin.h: Likewise.
26156 * config/i386/prfchwintrin.h: Likewise.
26157 * config/i386/rdseedintrin.h: Likewise.
26158 * config/i386/wbnoinvdintrin.h: Likewise.
26159 * config/i386/xsavecintrin.h: Likewise.
26160 * config/i386/xsavesintrin.h: Likewise.
26161 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
26162 * config/i386/xsaveintrin.h: Likewise.
26163 * config/i386/xsaveoptintrin.h: Likewise.
26164 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
26165 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
26166 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
26167 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
26168 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
26169 * config/i386/immintrin.h: Here.
26170
26171 2019-01-20 Martin Jambor <mjambor@suse.cz>
26172
26173 PR ipa/87615
26174 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
26175 with aa_walk_budget.
26176 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
26177 aa_walk_budget_p parameter.
26178 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
26179 walk. Updated all callers.
26180 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
26181 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
26182 unmodified_parm.
26183 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
26184 parameter info. Extract info from fbi. Pass fbi to recursive calls
26185 and to unmodified_parm.
26186 (phi_result_unknown_predicate): New parameter fbi, removed parameter
26187 info, updated call to will_be_nonconstant_expr_predicate.
26188 (param_change_prob): New parameter fbi, limit AA walking.
26189 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
26190 calls to various above functions.
26191 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
26192 parameter. Use it to limit AA walking.
26193 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
26194 fbi, limit AA walk.
26195 (detect_type_change): New parameter fbi, pass it on to
26196 detect_type_change_from_memory_writes.
26197 (detect_type_change_ssa): Likewise.
26198 (aa_overwalked): Removed.
26199 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
26200 accordingly, adjust to the neew AA limiting scheme.
26201 (parm_ref_data_preserved_p): Likewise.
26202 (ipa_compute_jump_functions_for_edge): Adjust call to
26203 get_dynamic_type.
26204 (ipa_analyze_call_uses): Likewise.
26205 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
26206 (ipa_analyze_node): Initialize aa_walk_budget.
26207 (ipcp_transform_function): Likewise.
26208 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
26209 to get_dynamic_type.
26210
26211 2019-01-19 Jakub Jelinek <jakub@redhat.com>
26212
26213 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
26214 outside of #if CHECKING_P code.
26215
26216 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
26217
26218 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
26219 New function, split out from...
26220 (loop_versioning::analyze_stride): ...here.
26221 (loop_versioning::find_per_loop_multiplication): Use gassign.
26222 (loop_versioning::analyze_term_using_scevs): Return a success code.
26223 (loop_versioning::analyze_arbitrary_term): New function.
26224 (loop_versioning::analyze_address_fragment): Use
26225 analyze_arbitrary_term if all else fails.
26226
26227 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
26228
26229 PR target/88892
26230 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
26231 operands.
26232
26233 2019-01-18 Richard Biener <rguenther@suse.de>
26234
26235 PR tree-optimization/88903
26236 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
26237 scalar stmts a SLP shift amount is composed of when detecting
26238 shifts by scalars.
26239
26240 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
26241
26242 PR target/88799
26243 * config/arm/arm-cpus.in (mp): New feature.
26244 (sec): New feature.
26245 (fgroup ARMv7ve): Add mp and sec features.
26246 (arch armv7-a): Add options to allow mp and sec extensions.
26247 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
26248 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
26249 extenstions to the base architecture.
26250 (cpu cortex-a8): Add sec extension to the base architecture.
26251 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
26252 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
26253 variants down to the base v7-a varaint.
26254 * config/arm/t-multilib (v7_a_arch_variants): New variable.
26255 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
26256 of permitted extensions for -march=armv7-a and for
26257 -mcpu=generic-armv7-a.
26258
26259 2019-01-18 Martin Liska <mliska@suse.cz>
26260
26261 * params.def: Fix comment.
26262 * tree-profile.c (gimple_init_gcov_profiler): Bump function
26263 name.
26264 (gimple_gen_ic_func_profiler): Likewise.
26265
26266 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26267
26268 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
26269 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
26270 and put in error checks for stack protector guard options.
26271 (aarch64_stack_protect_guard): New.
26272 (TARGET_STACK_PROTECT_GUARD): Define.
26273 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
26274 (reg_stack_protect_address<mode>): New.
26275 (stack_protect_set): Adjust for SSP_GLOBAL.
26276 (stack_protect_test): Likewise.
26277 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
26278 (-mstack-protector-guard): Likewise.
26279 (-mstack-protector-guard-offset): Likewise.
26280
26281 2019-01-18 Jakub Jelinek <jakub@redhat.com>
26282
26283 PR tree-optimization/86214
26284 * tree-inline.h (struct copy_body_data): Add
26285 add_clobbers_to_eh_landing_pads member.
26286 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
26287 (copy_edges_for_bb): Call it if EH edge destination is <
26288 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
26289 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
26290 if flag_stack_reuse != SR_NONE and clear it afterwards.
26291
26292 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
26293
26294 PR target/85596
26295 * doc/install.texi (with-multilib-list): Document for aarch64.
26296
26297 2019-01-18 Jakub Jelinek <jakub@redhat.com>
26298
26299 PR target/88734
26300 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
26301 (("..."))) with ("...").
26302
26303 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
26304
26305 * doc/extend.texi (Built-in Functions for Memory Model Aware
26306 Atomic Operations): Document atomic fetch and nand.
26307
26308 2019-01-18 Martin Liska <mliska@suse.cz>
26309 Richard Biener <rguenther@suse.de>
26310
26311 PR middle-end/88587
26312 * cgraph.h (create_version_clone_with_body): Add new argument
26313 with attributes.
26314 * cgraphclones.c (cgraph_node::create_version_clone): Add
26315 DECL_ATTRIBUTES to a newly created decl. And call
26316 valid_attribute_p so that proper cl_target_optimization_node
26317 is set for the newly created declaration.
26318 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
26319 for declaration.
26320 (expand_target_clones): Do not call valid_attribute_p, it must
26321 be already done.
26322 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
26323 vector types.
26324
26325 2019-01-17 Jakub Jelinek <jakub@redhat.com>
26326
26327 PR target/88734
26328 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
26329 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
26330 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
26331
26332 2019-01-17 Martin Sebor <msebor@redhat.com>
26333
26334 PR middle-end/88273
26335 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
26336 Handle anti-ranges the same as no range at all.
26337
26338 2018-01-17 Steve Ellcey <sellcey@cavium.com>
26339
26340 * config/aarch64/aarch64.c (cgraph.h): New include.
26341 (intl.h): New include.
26342 (supported_simd_type): New function.
26343 (currently_supported_simd_type): Ditto.
26344 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
26345 (aarch64_simd_clone_adjust): Ditto.
26346 (aarch64_simd_clone_usable): Ditto.
26347 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
26348 (TARGET_SIMD_CLONE_ADJUST): Ditto.
26349 (TARGET_SIMD_CLONE_USABLE): Ditto.
26350 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
26351 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
26352 call.
26353
26354 2019-01-17 Martin Sebor <msebor@redhat.com>
26355
26356 PR tree-optimization/88800
26357 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
26358 NO_WARNING bit here. Avoid folding out-of-bounds calls.
26359 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
26360 redundant argument. Add new argument and issue diagnostics under
26361 its control. Detect out-of-bounds access even with warnings
26362 disabled.
26363 (check_bounds_or_overlap): Change return type. Add argument.
26364 (wrestrict_dom_walker::check_call): Adjust.
26365 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
26366 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
26367 check_bounds_or_overlap's return value.
26368 (handle_builtin_stxncpy): Same.
26369 (handle_builtin_strcat): Same.
26370
26371 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
26372 Kwok Cheung Yeung <kcy@codesourcery.com>
26373 Julian Brown <julian@codesourcery.com>
26374 Tom de Vries <tom@codesourcery.com>
26375
26376 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
26377
26378 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
26379
26380 * doc/sourcebuild.texi: Document dg-require-effective-target
26381 llvm_binutils and offload_gcn.
26382
26383 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
26384 Kwok Cheung Yeung <kcy@codesourcery.com>
26385 Julian Brown <julian@codesourcery.com>
26386 Tom de Vries <tom@codesourcery.com>
26387
26388 * doc/sourcebuild.texi: Document dg-required-effective-target
26389 exceptions.
26390
26391 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
26392 Kwok Cheung Yeung <kcy@codesourcery.com>
26393 Julian Brown <julian@codesourcery.com>
26394 Tom de Vries <tom@codesourcery.com>
26395 Jan Hubicka <hubicka@ucw.cz>
26396 Martin Jambor <mjambor@suse.cz>
26397
26398 * config.gcc: Add amdgcn*-*-amdhsa configuration.
26399 * configure.ac: Check for dlopen.
26400 * configure: Regenerate.
26401
26402 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
26403 Kwok Cheung Yeung <kcy@codesourcery.com>
26404 Julian Brown <julian@codesourcery.com>
26405 Tom de Vries <tom@codesourcery.com>
26406 Jan Hubicka <hubicka@ucw.cz>
26407 Martin Jambor <mjambor@suse.cz>
26408
26409 * common/config/gcn/gcn-common.c: New file.
26410 * config/gcn/driver-gcn.c: New file.
26411 * config/gcn/gcn-builtins.def: New file.
26412 * config/gcn/gcn-hsa.h: New file.
26413 * config/gcn/gcn-modes.def: New file.
26414 * config/gcn/gcn-opts.h: New file.
26415 * config/gcn/gcn-passes.def: New file.
26416 * config/gcn/gcn-protos.h: New file.
26417 * config/gcn/gcn-run.c: New file.
26418 * config/gcn/gcn-tree.c: New file.
26419 * config/gcn/gcn.c: New file.
26420 * config/gcn/gcn.h: New file.
26421 * config/gcn/gcn.opt: New file.
26422 * config/gcn/t-gcn-hsa: New file.
26423
26424 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
26425 Kwok Cheung Yeung <kcy@codesourcery.com>
26426 Julian Brown <julian@codesourcery.com>
26427 Tom de Vries <tom@codesourcery.com>
26428 Jan Hubicka <hubicka@ucw.cz>
26429 Martin Jambor <mjambor@suse.cz>
26430
26431 * config/gcn/constraints.md: New file.
26432 * config/gcn/gcn-valu.md: New file.
26433 * config/gcn/gcn.md: New file.
26434 * config/gcn/predicates.md: New file.
26435
26436 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
26437
26438 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
26439 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
26440 (stmt_uses_0_or_null_in_undefined_way): Likewise.
26441 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
26442
26443 2019-01-17 Tamar Christina <tamar.christina@arm.com>
26444
26445 PR target/88851
26446 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
26447 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
26448 it and document registers.
26449
26450 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26451
26452 * config/aarch64/aarch64.c (ares_tunings): Define.
26453 * config/aarch64/aarch64-cores.def (ares): Use the above.
26454
26455 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
26456
26457 PR target/88794
26458 Revert:
26459 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
26460
26461 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
26462 (_mm512_fixupimm_round_pd): Update parameters and builtin.
26463 (_mm512_maskz_fixupimm_round_pd): Ditto.
26464 (_mm512_fixupimm_round_ps): Ditto.
26465 (_mm512_maskz_fixupimm_round_ps): Ditto.
26466 (_mm_fixupimm_round_sd): Ditto.
26467 (_mm_maskz_fixupimm_round_sd): Ditto.
26468 (_mm_fixupimm_round_ss): Ditto.
26469 (_mm_maskz_fixupimm_round_ss): Ditto.
26470 (_mm512_fixupimm_pd): Ditto.
26471 (_mm512_maskz_fixupimm_pd): Ditto.
26472 (_mm512_fixupimm_ps): Ditto.
26473 (_mm512_maskz_fixupimm_ps): Ditto.
26474 (_mm_fixupimm_sd): Ditto.
26475 (_mm_maskz_fixupimm_sd): Ditto.
26476 (_mm_fixupimm_ss): Ditto.
26477 (_mm_maskz_fixupimm_ss): Ditto.
26478 (_mm512_mask_fixupimm_round_pd): Update builtin.
26479 (_mm512_mask_fixupimm_round_ps): Ditto.
26480 (_mm_mask_fixupimm_round_sd): Ditto.
26481 (_mm_mask_fixupimm_round_ss): Ditto.
26482 (_mm512_mask_fixupimm_pd): Ditto.
26483 (_mm512_mask_fixupimm_ps): Ditto.
26484 (_mm_mask_fixupimm_sd): Ditto.
26485 (_mm_mask_fixupimm_ss): Ditto.
26486 * config/i386/avx512vlintrin.h:
26487 (_mm256_fixupimm_pd): Update parameters and builtin.
26488 (_mm256_maskz_fixupimm_pd): Ditto.
26489 (_mm256_fixupimm_ps): Ditto.
26490 (_mm256_maskz_fixupimm_ps): Ditto.
26491 (_mm_fixupimm_pd): Ditto.
26492 (_mm_maskz_fixupimm_pd): Ditto.
26493 (_mm_fixupimm_ps): Ditto.
26494 (_mm_maskz_fixupimm_ps): Ditto.
26495 (_mm256_mask_fixupimm_pd): Update builtin.
26496 (_mm256_mask_fixupimm_ps): Ditto.
26497 (_mm_mask_fixupimm_pd): Ditto.
26498 (_mm_mask_fixupimm_ps): Ditto.
26499 * config/i386/i386-builtin-types.def: Add new types and remove
26500 useless ones.
26501 * config/i386/i386-builtin.def: Update builtin definitions.
26502 * config/i386/i386.c: Handle new builtin types and remove useless ones.
26503 * config/i386/sse.md: Update VFIXUPIMM* patterns.
26504 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
26505 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
26506 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
26507 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
26508 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
26509 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
26510 * config/i386/subst.md:
26511 (round_saeonly_sd_mask_operand4): Add new subst_attr.
26512 (round_saeonly_sd_mask_op4): Ditto.
26513 (round_saeonly_expand_operand5): Ditto.
26514 (round_saeonly_expand): Update.
26515
26516 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
26517
26518 PR target/88794
26519 Revert:
26520 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
26521
26522 * config/i386/sse.md: Combine VFIXUPIMM* patterns
26523 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
26524 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
26525 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
26526 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
26527 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
26528 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
26529
26530 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
26531
26532 PR target/88794
26533 Revert:
26534 2018-12-15 Jakub Jelinek <jakub@redhat.com>
26535
26536 PR target/88489
26537 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
26538 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
26539 instead of UNSPEC_FIXUPIMM.
26540
26541 2019-01-17 Richard Biener <rguenther@suse.de>
26542
26543 PR lto/86736
26544 * dwarf2out.c (want_pubnames): Never generate pubnames sections
26545 and friends for the LTO part of debug info.
26546
26547 2019-01-17 Jakub Jelinek <jakub@redhat.com>
26548
26549 PR tree-optimization/86214
26550 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
26551 if x == y.
26552
26553 PR rtl-optimization/88870
26554 * dce.c (deletable_insn_p): Never delete const/pure calls that can
26555 throw if we can't alter the cfg or delete dead exceptions.
26556 (mark_insn): Don't call find_call_stack_args for such calls.
26557
26558 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
26559
26560 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
26561 prototypes for vec_st.
26562 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
26563 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
26564 mainly on signed/unsigned long long and double.
26565
26566 2019-01-16 David Malcolm <dmalcolm@redhat.com>
26567
26568 PR target/88861
26569 * combine.c (delete_noop_moves): Convert to "bool" return,
26570 returning true if any edges are eliminated.
26571 (combine_instructions): Also return true if delete_noop_moves
26572 returns true.
26573
26574 2019-01-16 Tamar Christina <tamar.christina@arm.com>
26575
26576 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
26577 correct max nunits for endian swap.
26578 (aarch64_expand_fcmla_builtin): Correct subreg code.
26579 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
26580 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
26581 lane endianness.
26582
26583 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
26584
26585 * config/alpha/alpha.c (alpha_gimplify_va_arg):
26586 Handle split indirect COMPLEX_TYPE arguments.
26587
26588 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
26589
26590 PR target/86891
26591 * config/aarch64/aarch64-modes.def: Add comment about how the carry
26592 bit is set by add and compare.
26593 (CC_ADC): New CC_MODE.
26594 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
26595 to cache the code and mode of X. Adjust the shape of a CC_Cmode
26596 comparison. Add detection for CC_ADCmode.
26597 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
26598 CC_ADCmode.
26599 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
26600 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
26601 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
26602 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
26603 to eliminate the need for zero-extending the operands.
26604 (add<mode>3_compareC_imm): Delete. Merge into ...
26605 (add<mode>3_compareC): ... this. Restructure the comparison to
26606 eliminate the need for zero-extending the operands.
26607 (add<mode>3_carryin): Use LTU for the overflow detection.
26608 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
26609 Reexpress comparison for overflow.
26610 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
26611 (add<mode>3_carryinC): Likewise.
26612 (add<mode>3_carryinV): Use LTU for carry between partials.
26613 * config/aarch64/predicates.md (aarch64_carry_operation): Update
26614 handling of CC_Cmode and add CC_ADCmode.
26615 (aarch64_borrow_operation): Likewise.
26616
26617 2019-01-16 Tamar Christina <tamar.christina@arm.com>
26618
26619 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
26620 Remove patternmode.
26621 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
26622 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
26623 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
26624 Remove endianness conversion.
26625
26626 2019-01-16 Martin Liska <mliska@suse.cz>
26627
26628 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
26629 for GCC driver.
26630 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
26631 a new argument.
26632 * gcc.c (add_sysrooted_hdrs_prefix): New function.
26633 (path_prefix_reset): Move up in the source file.
26634 (find_fortran_preinclude_file): Make complex search for the
26635 fortran header files.
26636
26637 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
26638
26639 * godump.c (go_output_typedef): When outputting a typedef, refer
26640 to the underlying type by its name and not its structure.
26641
26642 2019-01-15 David Malcolm <dmalcolm@redhat.com>
26643
26644 PR c++/88795
26645 * tree.c (build_function_type): Assert that arg_types is not
26646 error_mark_node.
26647
26648 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
26649
26650 PR inline-asm/52813
26651 * doc/extend.texi: Document that listing the stack pointer in the
26652 clobber list of an asm is a deprecated feature.
26653 * common.opt (Wdeprecated): Moved from c-family/c.opt.
26654 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
26655 warning instead of an error for clobbers of the stack pointer.
26656 Add a note explaining why.
26657
26658 2019-01-15 Richard Biener <rguenther@suse.de>
26659
26660 PR debug/88046
26661 * dwarf2out.c (gen_member_die): Do not generate inheritance
26662 DIEs late.
26663
26664 2019-01-15 Richard Biener <rguenther@suse.de>
26665
26666 PR tree-optimization/88855
26667 * tree-if-conv.c (combine_blocks): Collect
26668 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
26669
26670 2019-01-15 Tom de Vries <tdevries@suse.de>
26671
26672 PR target/80547
26673 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
26674 lhs == NULL_TREE for gang-level reduction.
26675
26676 2019-01-15 Richard Biener <rguenther@suse.de>
26677 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26678
26679 PR ipa/88788
26680 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
26681 return true if SSA_NAME is already marked in visited bitmap.
26682 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
26683
26684 2019-01-15 Jakub Jelinek <jakub@redhat.com>
26685
26686 PR tree-optimization/88775
26687 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
26688 equal == 0 equality pointer comparisons some more if compared in
26689 integral types and either one points to an automatic var and the
26690 other to a global, or we can prove at least one points to the middle
26691 or both point to start or both point to end.
26692
26693 2019-01-14 Andi Kleen <ak@linux.intel.com>
26694
26695 * Makefile.in: Lower autofdo sampling rate by 10x.
26696 * Makefile.tpl: Dito.
26697
26698 2019-01-14 Tom Honermann <tom@honermann.net>
26699
26700 * defaults.h: Define CHAR8_TYPE.
26701
26702 2019-01-14 Martin Sebor <msebor@redhat.com>
26703
26704 PR target/88638
26705 * doc/extend.texi (Darwin Format Checks): Clarify.
26706
26707 2019-01-14 Richard Biener <rguenther@suse.de>
26708
26709 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
26710 whether we are in (simplify ...) or (match ...) context.
26711
26712 2019-01-14 Jakub Jelinek <jakub@redhat.com>
26713
26714 PR rtl-optimization/88796
26715 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
26716 * cfgexpand.c (stack_protect_prologue): Initialize
26717 crtl->stack_protect_guard_decl.
26718 * function.c (stack_protect_epilogue): Use it instead of calling
26719 targetm.stack_protect_guard again.
26720 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
26721 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
26722 crtl->stack_protect_guard_decl.
26723 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
26724 on the returned MEM_EXPR.
26725
26726 2019-01-12 Tom de Vries <tdevries@suse.de>
26727
26728 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
26729 vector length using -fopenacc-dim.
26730
26731 2019-01-12 Tom de Vries <tdevries@suse.de>
26732
26733 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
26734 lengths into account.
26735
26736 2019-01-12 Svante Signell <svante.signell@gmail.com>
26737
26738 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
26739 (TARGET_CAN_SPLIT_STACK): Define.
26740 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
26741
26742 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26743
26744 * params.def (inline-unit-growth): Set to 40.
26745
26746 2019-01-12 Jakub Jelinek <jakub@redhat.com>
26747
26748 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
26749
26750 2019-01-12 Tom de Vries <tdevries@suse.de>
26751
26752 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
26753 region calling vector-partitionable routine, set default_vector_length
26754 to WARP_SIZE.
26755
26756 2019-01-12 Tom de Vries <tdevries@suse.de>
26757
26758 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
26759 variable default_vector_length.
26760
26761 2019-01-12 Tom de Vries <tdevries@suse.de>
26762
26763 PR middle-end/88703
26764 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
26765 from oacc_default_dims, as oacc_validate_dims would do it, and apply
26766 dimensions limits.
26767
26768 2019-01-12 Tom de Vries <tdevries@suse.de>
26769
26770 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
26771 (nvptx_goacc_validate_dims): Add used parameter.
26772 * doc/tm.texi: Regenerate.
26773 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
26774 argument to call to targetm.goacc.validate_dims.
26775 (default_goacc_validate_dims): Add used
26776 parameter.
26777 * target.def (validate_dims): Add used parameter in DEFHOOK.
26778 * targhooks.h (default_goacc_validate_dims): Add used parameter.
26779
26780 2019-01-11 Jakub Jelinek <jakub@redhat.com>
26781
26782 PR middle-end/85956
26783 PR lto/88733
26784 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
26785 field.
26786 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
26787 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
26788 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
26789 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
26790
26791 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
26792
26793 PR rtl-optimization/87305
26794 * lra-assigns.c
26795 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
26796 for little endian pseudos used as paradoxical subreg.
26797
26798 2019-01-11 Jakub Jelinek <jakub@redhat.com>
26799
26800 PR tree-optimization/88693
26801 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
26802 for STRING_CSTs that don't contain any NUL characters in the first
26803 TREE_STRING_LENGTH bytes.
26804
26805 2019-01-11 Alan Modra <amodra@gmail.com>
26806
26807 PR 88777
26808 PR 88614
26809 * genattrtab.c (min_fn): Don't translate values.
26810 (min_attr_value): Return INT_MAX when the value can't be calculated.
26811 Return minimum among any values that can be calculated.
26812 (max_attr_value): Adjust.
26813
26814 2019-01-11 Jakub Jelinek <jakub@redhat.com>
26815
26816 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
26817
26818 2019-01-11 Steve Ellcey <sellcey@marvell.com>
26819
26820 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
26821 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
26822 (aarch64_return_call_with_max_clobbers): New function.
26823 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
26824 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
26825 argument.
26826 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
26827 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
26828 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
26829 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
26830 * cselib.c (cselib_process_insn): Add argument to
26831 targetm.hard_regno_call_part_clobbered call.
26832 * ira-conflicts.c (ira_build_conflicts): Ditto.
26833 * ira-costs.c (ira_tune_allocno_costs): Ditto.
26834 * lra-constraints.c (inherit_reload_reg): Ditto.
26835 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
26836 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
26837 argument. Call targetm.return_call_with_max_clobbers.
26838 Add argument to targetm.hard_regno_call_part_clobbered call.
26839 (calls_have_same_clobbers_p): New function.
26840 (process_bb_lives): Add call_insn and last_call_insn variables.
26841 Pass call_insn to check_pseudos_live_through_calls.
26842 Modify if stmt to check targetm.return_call_with_max_clobbers.
26843 Update setting of flush variable.
26844 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
26845 to false.
26846 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
26847 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
26848 targetm.hard_regno_call_part_clobbered call.
26849 * reginfo.c (choose_hard_reg_mode): Ditto.
26850 * regrename.c (check_new_reg_p): Ditto.
26851 * reload.c (find_equiv_reg): Ditto.
26852 * reload1.c (emit_reload_insns): Ditto.
26853 * sched-deps.c (deps_analyze_insn): Ditto.
26854 * sel-sched.c (init_regs_for_mode): Ditto.
26855 (mark_unavailable_hard_regs): Ditto.
26856 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
26857 * target.def (hard_regno_call_part_clobbered): Add insn argument.
26858 (return_call_with_max_clobbers): New target function.
26859 * doc/tm.texi: Regenerate.
26860 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
26861 * hooks.c (hook_bool_uint_mode_false): Change to
26862 hook_bool_insn_uint_mode_false.
26863 * hooks.h (hook_bool_uint_mode_false): Ditto.
26864
26865 2019-01-11 Steve Ellcey <sellcey@marvell.com>
26866
26867 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
26868 (aarch64_remove_extra_call_preserved_regs): New function.
26869 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
26870 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
26871 * doc/tm.texi: Regenerate.
26872 * final.c (get_call_reg_set_usage): Call new hook.
26873 * target.def (remove_extra_call_preserved_regs): New hook.
26874 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
26875 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
26876
26877 2019-01-11 Jakub Jelinek <jakub@redhat.com>
26878
26879 PR bootstrap/88714
26880 * passes.c (finish_optimization_passes): Call print_combine_total_stats
26881 inside of pass_combine_1 dump rather than pass_profile_1.
26882
26883 2019-01-11 Tom de Vries <tdevries@suse.de>
26884
26885 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
26886 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
26887 (PTX_NUM_PER_WORKER_BARRIERS): Define.
26888 (nvptx_apply_dim_limits): Prevent vector_length 64 and
26889 num_workers 16.
26890
26891 2019-01-11 Tom de Vries <tdevries@suse.de>
26892
26893 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
26894
26895 2019-01-11 Jan Beulich <jbeulich@suse.com>
26896
26897 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
26898 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
26899 sse2_cvtsi2sd): Add {l}.
26900 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
26901 syntax.
26902
26903 2019-01-10 Jakub Jelinek <jakub@redhat.com>
26904
26905 PR target/88785
26906 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
26907 define_expand.
26908 (*float<floatunssuffix>v2div2sf2): New define_insn.
26909 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
26910 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
26911 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
26912 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
26913 match_operands with "const0_operand" "C".
26914
26915 2019-01-10 Tamar Christina <tamar.christina@arm.com>
26916
26917 * config/aarch64/aarch64-builtins.c
26918 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
26919 (aarch64_init_simd_builtins): ...Here
26920
26921 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
26922
26923 PR rtl-optimization/87305
26924 * lra-assigns.c
26925 (setup_live_pseudos_and_spill_after_risky_transforms): Check
26926 allocation for big endian pseudos used as paradoxical subregs and
26927 spill them if it is wrong.
26928 * lra-constraints.c (lra_constraints): Add a comment.
26929
26930 2019-01-10 Richard Biener <rguenther@suse.de>
26931
26932 PR tree-optimization/88792
26933 * tree-ssa-pre.c (get_representative_for): Do not return a
26934 value-number here.
26935
26936 2019-01-10 Jakub Jelinek <jakub@redhat.com>
26937
26938 PR middle-end/84877
26939 PR bootstrap/88450
26940 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
26941 (assign_parm_setup_block): Do the argument slot realignment here
26942 instead.
26943
26944 2019-01-10 Stefan Agner <stefan@agner.ch>
26945
26946 PR target/88648
26947 * config/arm/arm.c (arm_option_override_internal): Force
26948 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
26949
26950 2019-01-10 Jakub Jelinek <jakub@redhat.com>
26951
26952 PR c/88568
26953 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
26954 DECL_EXTERNAL.
26955
26956 2019-01-10 Tamar Christina <tamar.christina@arm.com>
26957
26958 * config/arm/arm-builtins.c
26959 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
26960 (MAC_LANE_PAIR_QUALIFIERS): New.
26961 (arm_expand_builtin_args): Use it.
26962 (arm_expand_builtin_1): Likewise.
26963 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
26964 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
26965 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
26966 * config/arm/arm_neon.h:
26967 (vcadd_rot90_f16): New.
26968 (vcaddq_rot90_f16): New.
26969 (vcadd_rot270_f16): New.
26970 (vcaddq_rot270_f16): New.
26971 (vcmla_f16): New.
26972 (vcmlaq_f16): New.
26973 (vcmla_lane_f16): New.
26974 (vcmla_laneq_f16): New.
26975 (vcmlaq_lane_f16): New.
26976 (vcmlaq_laneq_f16): New.
26977 (vcmla_rot90_f16): New.
26978 (vcmlaq_rot90_f16): New.
26979 (vcmla_rot90_lane_f16): New.
26980 (vcmla_rot90_laneq_f16): New.
26981 (vcmlaq_rot90_lane_f16): New.
26982 (vcmlaq_rot90_laneq_f16): New.
26983 (vcmla_rot180_f16): New.
26984 (vcmlaq_rot180_f16): New.
26985 (vcmla_rot180_lane_f16): New.
26986 (vcmla_rot180_laneq_f16): New.
26987 (vcmlaq_rot180_lane_f16): New.
26988 (vcmlaq_rot180_laneq_f16): New.
26989 (vcmla_rot270_f16): New.
26990 (vcmlaq_rot270_f16): New.
26991 (vcmla_rot270_lane_f16): New.
26992 (vcmla_rot270_laneq_f16): New.
26993 (vcmlaq_rot270_lane_f16): New.
26994 (vcmlaq_rot270_laneq_f16): New.
26995 (vcadd_rot90_f32): New.
26996 (vcaddq_rot90_f32): New.
26997 (vcadd_rot270_f32): New.
26998 (vcaddq_rot270_f32): New.
26999 (vcmla_f32): New.
27000 (vcmlaq_f32): New.
27001 (vcmla_lane_f32): New.
27002 (vcmla_laneq_f32): New.
27003 (vcmlaq_lane_f32): New.
27004 (vcmlaq_laneq_f32): New.
27005 (vcmla_rot90_f32): New.
27006 (vcmlaq_rot90_f32): New.
27007 (vcmla_rot90_lane_f32): New.
27008 (vcmla_rot90_laneq_f32): New.
27009 (vcmlaq_rot90_lane_f32): New.
27010 (vcmlaq_rot90_laneq_f32): New.
27011 (vcmla_rot180_f32): New.
27012 (vcmlaq_rot180_f32): New.
27013 (vcmla_rot180_lane_f32): New.
27014 (vcmla_rot180_laneq_f32): New.
27015 (vcmlaq_rot180_lane_f32): New.
27016 (vcmlaq_rot180_laneq_f32): New.
27017 (vcmla_rot270_f32): New.
27018 (vcmlaq_rot270_f32): New.
27019 (vcmla_rot270_lane_f32): New.
27020 (vcmla_rot270_laneq_f32): New.
27021 (vcmlaq_rot270_lane_f32): New.
27022 (vcmlaq_rot270_laneq_f32): New.
27023 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
27024 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
27025 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
27026 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
27027 vcmlaq_lane270): New.
27028 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
27029 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
27030 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
27031 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
27032 (arm_option_reconfigure_globals): Use them.
27033 * config/arm/iterators.md (VDF, VQ_HSF): New.
27034 (VCADD, VCMLA): New.
27035 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
27036 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
27037 New.
27038 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
27039 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
27040
27041 2019-01-10 Tamar Christina <tamar.christina@arm.com>
27042
27043 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
27044 Add qualifier_lane_pair_index.
27045 (emit-rtl.h): Include.
27046 (TYPES_QUADOP_LANE_PAIR): New.
27047 (aarch64_simd_expand_args): Use it.
27048 (aarch64_simd_expand_builtin): Likewise.
27049 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
27050 New.
27051 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
27052 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
27053 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
27054 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
27055 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
27056 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
27057 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
27058 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
27059 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
27060 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
27061 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
27062 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
27063 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
27064 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
27065 Add __ARM_FEATURE_COMPLEX.
27066 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
27067 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
27068 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
27069 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
27070 fcmlaq_lane270): New.
27071 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
27072 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
27073 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
27074 * config/aarch64/arm_neon.h:
27075 (vcadd_rot90_f16): New.
27076 (vcaddq_rot90_f16): New.
27077 (vcadd_rot270_f16): New.
27078 (vcaddq_rot270_f16): New.
27079 (vcmla_f16): New.
27080 (vcmlaq_f16): New.
27081 (vcmla_lane_f16): New.
27082 (vcmla_laneq_f16): New.
27083 (vcmlaq_lane_f16): New.
27084 (vcmlaq_rot90_lane_f16): New.
27085 (vcmla_rot90_laneq_f16): New.
27086 (vcmla_rot90_lane_f16): New.
27087 (vcmlaq_rot90_f16): New.
27088 (vcmla_rot90_f16): New.
27089 (vcmlaq_laneq_f16): New.
27090 (vcmla_rot180_laneq_f16): New.
27091 (vcmla_rot180_lane_f16): New.
27092 (vcmlaq_rot180_f16): New.
27093 (vcmla_rot180_f16): New.
27094 (vcmlaq_rot90_laneq_f16): New.
27095 (vcmlaq_rot270_laneq_f16): New.
27096 (vcmlaq_rot270_lane_f16): New.
27097 (vcmla_rot270_laneq_f16): New.
27098 (vcmlaq_rot270_f16): New.
27099 (vcmla_rot270_f16): New.
27100 (vcmlaq_rot180_laneq_f16): New.
27101 (vcmlaq_rot180_lane_f16): New.
27102 (vcmla_rot270_lane_f16): New.
27103 (vcadd_rot90_f32): New.
27104 (vcaddq_rot90_f32): New.
27105 (vcaddq_rot90_f64): New.
27106 (vcadd_rot270_f32): New.
27107 (vcaddq_rot270_f32): New.
27108 (vcaddq_rot270_f64): New.
27109 (vcmla_f32): New.
27110 (vcmlaq_f32): New.
27111 (vcmlaq_f64): New.
27112 (vcmla_lane_f32): New.
27113 (vcmla_laneq_f32): New.
27114 (vcmlaq_lane_f32): New.
27115 (vcmlaq_laneq_f32): New.
27116 (vcmla_rot90_f32): New.
27117 (vcmlaq_rot90_f32): New.
27118 (vcmlaq_rot90_f64): New.
27119 (vcmla_rot90_lane_f32): New.
27120 (vcmla_rot90_laneq_f32): New.
27121 (vcmlaq_rot90_lane_f32): New.
27122 (vcmlaq_rot90_laneq_f32): New.
27123 (vcmla_rot180_f32): New.
27124 (vcmlaq_rot180_f32): New.
27125 (vcmlaq_rot180_f64): New.
27126 (vcmla_rot180_lane_f32): New.
27127 (vcmla_rot180_laneq_f32): New.
27128 (vcmlaq_rot180_lane_f32): New.
27129 (vcmlaq_rot180_laneq_f32): New.
27130 (vcmla_rot270_f32): New.
27131 (vcmlaq_rot270_f32): New.
27132 (vcmlaq_rot270_f64): New.
27133 (vcmla_rot270_lane_f32): New.
27134 (vcmla_rot270_laneq_f32): New.
27135 (vcmlaq_rot270_lane_f32): New.
27136 (vcmlaq_rot270_laneq_f32): New.
27137 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
27138 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
27139 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
27140 (FCADD, FCMLA): New.
27141 (rot): New.
27142 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
27143
27144 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
27145
27146 PR other/16615
27147
27148 * config/pa/pa.c: Change "can not" to "cannot".
27149 * gimple-ssa-evrp-analyze.c: Likewise.
27150 * ipa-icf.c: Likewise.
27151 * ipa-polymorphic-call.c: Likewise.
27152 * ipa-pure-const.c: Likewise.
27153 * lra-constraints.c: Likewise.
27154 * lra-remat.c: Likewise.
27155 * reload1.c: Likewise.
27156 * reorg.c: Likewise.
27157 * tree-ssa-uninit.c: Likewise.
27158
27159 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
27160
27161 PR other/16615
27162
27163 * Makefile.in: Mechanically replace "can not" with "cannot".
27164 * alias.c: Likewise.
27165 * builtins.c: Likewise.
27166 * calls.c: Likewise.
27167 * cgraph.c: Likewise.
27168 * cgraph.h: Likewise.
27169 * cgraphclones.c: Likewise.
27170 * cgraphunit.c: Likewise.
27171 * combine-stack-adj.c: Likewise.
27172 * combine.c: Likewise.
27173 * common/config/i386/i386-common.c: Likewise.
27174 * config/aarch64/aarch64.c: Likewise.
27175 * config/alpha/sync.md: Likewise.
27176 * config/arc/arc.c: Likewise.
27177 * config/arc/predicates.md: Likewise.
27178 * config/arm/arm-c.c: Likewise.
27179 * config/arm/arm.c: Likewise.
27180 * config/arm/arm.h: Likewise.
27181 * config/arm/arm.md: Likewise.
27182 * config/arm/cortex-r4f.md: Likewise.
27183 * config/csky/csky.c: Likewise.
27184 * config/csky/csky.h: Likewise.
27185 * config/darwin-f.c: Likewise.
27186 * config/epiphany/epiphany.md: Likewise.
27187 * config/i386/i386.c: Likewise.
27188 * config/i386/sol2.h: Likewise.
27189 * config/m68k/m68k.c: Likewise.
27190 * config/mcore/mcore.h: Likewise.
27191 * config/microblaze/microblaze.md: Likewise.
27192 * config/mips/20kc.md: Likewise.
27193 * config/mips/sb1.md: Likewise.
27194 * config/nds32/nds32.c: Likewise.
27195 * config/nds32/predicates.md: Likewise.
27196 * config/pa/pa.c: Likewise.
27197 * config/rs6000/e300c2c3.md: Likewise.
27198 * config/rs6000/rs6000.c: Likewise.
27199 * config/s390/s390.h: Likewise.
27200 * config/sh/sh.c: Likewise.
27201 * config/sh/sh.md: Likewise.
27202 * config/spu/vmx2spu.h: Likewise.
27203 * cprop.c: Likewise.
27204 * dbxout.c: Likewise.
27205 * df-scan.c: Likewise.
27206 * doc/cfg.texi: Likewise.
27207 * doc/extend.texi: Likewise.
27208 * doc/fragments.texi: Likewise.
27209 * doc/gty.texi: Likewise.
27210 * doc/invoke.texi: Likewise.
27211 * doc/lto.texi: Likewise.
27212 * doc/md.texi: Likewise.
27213 * doc/objc.texi: Likewise.
27214 * doc/rtl.texi: Likewise.
27215 * doc/tm.texi: Likewise.
27216 * dse.c: Likewise.
27217 * emit-rtl.c: Likewise.
27218 * emit-rtl.h: Likewise.
27219 * except.c: Likewise.
27220 * expmed.c: Likewise.
27221 * expr.c: Likewise.
27222 * fold-const.c: Likewise.
27223 * genautomata.c: Likewise.
27224 * gimple-fold.c: Likewise.
27225 * hard-reg-set.h: Likewise.
27226 * ifcvt.c: Likewise.
27227 * ipa-comdats.c: Likewise.
27228 * ipa-cp.c: Likewise.
27229 * ipa-devirt.c: Likewise.
27230 * ipa-fnsummary.c: Likewise.
27231 * ipa-icf.c: Likewise.
27232 * ipa-inline-transform.c: Likewise.
27233 * ipa-inline.c: Likewise.
27234 * ipa-polymorphic-call.c: Likewise.
27235 * ipa-profile.c: Likewise.
27236 * ipa-prop.c: Likewise.
27237 * ipa-pure-const.c: Likewise.
27238 * ipa-reference.c: Likewise.
27239 * ipa-split.c: Likewise.
27240 * ipa-visibility.c: Likewise.
27241 * ipa.c: Likewise.
27242 * ira-build.c: Likewise.
27243 * ira-color.c: Likewise.
27244 * ira-conflicts.c: Likewise.
27245 * ira-costs.c: Likewise.
27246 * ira-int.h: Likewise.
27247 * ira-lives.c: Likewise.
27248 * ira.c: Likewise.
27249 * ira.h: Likewise.
27250 * loop-invariant.c: Likewise.
27251 * loop-unroll.c: Likewise.
27252 * lower-subreg.c: Likewise.
27253 * lra-assigns.c: Likewise.
27254 * lra-constraints.c: Likewise.
27255 * lra-eliminations.c: Likewise.
27256 * lra-lives.c: Likewise.
27257 * lra-remat.c: Likewise.
27258 * lra-spills.c: Likewise.
27259 * lra.c: Likewise.
27260 * lto-cgraph.c: Likewise.
27261 * lto-streamer-out.c: Likewise.
27262 * postreload-gcse.c: Likewise.
27263 * predict.c: Likewise.
27264 * profile-count.h: Likewise.
27265 * profile.c: Likewise.
27266 * recog.c: Likewise.
27267 * ree.c: Likewise.
27268 * reload.c: Likewise.
27269 * reload1.c: Likewise.
27270 * reorg.c: Likewise.
27271 * resource.c: Likewise.
27272 * rtl.def: Likewise.
27273 * rtl.h: Likewise.
27274 * rtlanal.c: Likewise.
27275 * sched-deps.c: Likewise.
27276 * sched-ebb.c: Likewise.
27277 * sched-rgn.c: Likewise.
27278 * sel-sched-ir.c: Likewise.
27279 * sel-sched.c: Likewise.
27280 * shrink-wrap.c: Likewise.
27281 * simplify-rtx.c: Likewise.
27282 * symtab.c: Likewise.
27283 * target.def: Likewise.
27284 * toplev.c: Likewise.
27285 * tree-call-cdce.c: Likewise.
27286 * tree-cfg.c: Likewise.
27287 * tree-complex.c: Likewise.
27288 * tree-core.h: Likewise.
27289 * tree-eh.c: Likewise.
27290 * tree-inline.c: Likewise.
27291 * tree-loop-distribution.c: Likewise.
27292 * tree-nrv.c: Likewise.
27293 * tree-profile.c: Likewise.
27294 * tree-sra.c: Likewise.
27295 * tree-ssa-alias.c: Likewise.
27296 * tree-ssa-dce.c: Likewise.
27297 * tree-ssa-dom.c: Likewise.
27298 * tree-ssa-forwprop.c: Likewise.
27299 * tree-ssa-loop-im.c: Likewise.
27300 * tree-ssa-loop-ivcanon.c: Likewise.
27301 * tree-ssa-loop-ivopts.c: Likewise.
27302 * tree-ssa-loop-niter.c: Likewise.
27303 * tree-ssa-phionlycprop.c: Likewise.
27304 * tree-ssa-phiopt.c: Likewise.
27305 * tree-ssa-propagate.c: Likewise.
27306 * tree-ssa-threadedge.c: Likewise.
27307 * tree-ssa-threadupdate.c: Likewise.
27308 * tree-ssa-uninit.c: Likewise.
27309 * tree-ssanames.c: Likewise.
27310 * tree-streamer-out.c: Likewise.
27311 * tree.c: Likewise.
27312 * tree.h: Likewise.
27313 * vr-values.c: Likewise.
27314
27315 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
27316
27317 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
27318 (ix86_split_xorsign): Ditto.
27319 * config/i386/i386.c (ix86_expand_xorsign): New function.
27320 (ix86_split_xorsign): Ditto.
27321 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
27322 (xorsign<mode>3): New expander.
27323 (xorsign<mode>3_1): New insn_and_split pattern.
27324 * config/i386/sse.md (xorsign<mode>3): New expander.
27325
27326 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
27327
27328 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
27329 (*tablejump_sp64): Likewise.
27330 (*tablejump<P:mode>): ...this.
27331 (*call_address_sp32): Merge into...
27332 (*call_address_sp64): Likewise.
27333 (*call_address<P:mode>): ...this.
27334 (*call_symbolic_sp32): Merge into...
27335 (*call_symbolic_sp64): Likewise.
27336 (*call_symbolic<P:mode>): ...this.
27337 (call_value): Remove constraint and add predicate.
27338 (*call_value_address_sp32): Merge into...
27339 (*call_value_address_sp64): Likewise.
27340 (*call_value_address<P:mode>): ...this.
27341 (*call_value_symbolic_sp32): Merge into...
27342 (*call_value_symbolic_sp64): Likewise.
27343 (*call_value_symbolic<P:mode>): ...this.
27344 (*sibcall_symbolic_sp32): Merge into...
27345 (*sibcall_symbolic_sp64): Likewise.
27346 (*sibcall_symbolic<P:mode>): ...this.
27347 (sibcall_value): Remove constraint and add predicate.
27348 (*sibcall_value_symbolic_sp32): Merge into...
27349 (*sibcall_value_symbolic_sp64): Likewise.
27350 (*sibcall_value_symbolic<P:mode>): ...this.
27351 (window_save): Minor tweak.
27352 (*branch_sp32): Merge into...
27353 (*branch_sp64): Likewise.
27354 (*branch<P:mode>): ...this.
27355
27356 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
27357 James Clarke <jrtc27@jrtc27.com>
27358
27359 PR target/84010
27360 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
27361 consistently in TLS address generation and adjust code to the renaming
27362 of patterns. Mark calls to __tls_get_addr as const.
27363 * config/sparc/sparc.md (tgd_hi22): Turn into...
27364 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
27365 (tgd_lo10): Turn into...
27366 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
27367 (tgd_add32): Merge into...
27368 (tgd_add64): Likewise.
27369 (tgd_add<P:mode>): ...this and use Pmode throughout.
27370 (tldm_hi22): Turn into...
27371 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
27372 (tldm_lo10): Turn into...
27373 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
27374 (tldm_add32): Merge into...
27375 (tldm_add64): Likewise.
27376 (tldm_add<P:mode>): ...this and use Pmode throughout.
27377 (tldm_call32): Merge into...
27378 (tldm_call64): Likewise.
27379 (tldm_call<P:mode>): ...this and use Pmode throughout.
27380 (tldo_hix22): Turn into...
27381 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
27382 (tldo_lox10): Turn into...
27383 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
27384 (tldo_add32): Merge into...
27385 (tldo_add64): Likewise.
27386 (tldo_add<P:mode>): ...this and use Pmode throughout.
27387 (tie_hi22): Turn into...
27388 (tie_hi22<P:mode>): ...this and use Pmode throughout.
27389 (tie_lo10): Turn into...
27390 (tie_lo10<P:mode>): ...this and use Pmode throughout.
27391 (tie_ld64): Use DImode throughout.
27392 (tie_add32): Merge into...
27393 (tie_add64): Likewise.
27394 (tie_add<P:mode>): ...this and use Pmode throughout.
27395 (tle_hix22_sp32): Merge into...
27396 (tle_hix22_sp64): Likewise.
27397 (tle_hix22<P:mode>): ...this and use Pmode throughout.
27398 (tle_lox22_sp32): Merge into...
27399 (tle_lox22_sp64): Likewise.
27400 (tle_lox22<P:mode>): ...this and use Pmode throughout.
27401 (*tldo_ldub_sp32): Merge into...
27402 (*tldo_ldub_sp64): Likewise.
27403 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
27404 (*tldo_ldub1_sp32): Merge into...
27405 (*tldo_ldub1_sp64): Likewise.
27406 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
27407 (*tldo_ldub2_sp32): Merge into...
27408 (*tldo_ldub2_sp64): Likewise.
27409 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
27410 (*tldo_ldsb1_sp32): Merge into...
27411 (*tldo_ldsb1_sp64): Likewise.
27412 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
27413 (*tldo_ldsb2_sp32): Merge into...
27414 (*tldo_ldsb2_sp64): Likewise.
27415 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
27416 (*tldo_ldub3_sp64): Use DImode throughout.
27417 (*tldo_ldsb3_sp64): Likewise.
27418 (*tldo_lduh_sp32): Merge into...
27419 (*tldo_lduh_sp64): Likewise.
27420 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
27421 (*tldo_lduh1_sp32): Merge into...
27422 (*tldo_lduh1_sp64): Likewise.
27423 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
27424 (*tldo_ldsh1_sp32): Merge into...
27425 (*tldo_ldsh1_sp64): Likewise.
27426 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
27427 (*tldo_lduh2_sp64): Use DImode throughout.
27428 (*tldo_ldsh2_sp64): Likewise.
27429 (*tldo_lduw_sp32): Merge into...
27430 (*tldo_lduw_sp64): Likewise.
27431 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
27432 (*tldo_lduw1_sp64): Use DImode throughout.
27433 (*tldo_ldsw1_sp64): Likewise.
27434 (*tldo_ldx_sp64): Likewise.
27435 (*tldo_stb_sp32): Merge into...
27436 (*tldo_stb_sp64): Likewise.
27437 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
27438 (*tldo_sth_sp32): Merge into...
27439 (*tldo_sth_sp64): Likewise.
27440 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
27441 (*tldo_stw_sp32): Merge into...
27442 (*tldo_stw_sp64): Likewise.
27443 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
27444 (*tldo_stx_sp64): Use DImode throughout.
27445
27446 2018-01-09 Sudakshina Das <sudi.das@arm.com>
27447
27448 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
27449 check configure option to set BTI and Return Address Signing.
27450 * configure.ac: Add --enable-standard-branch-protection and
27451 --disable-standard-branch-protection.
27452 * configure: Regenerated.
27453 * doc/install.texi: Document the same.
27454
27455 2018-01-09 Sudakshina Das <sudi.das@arm.com>
27456 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27457
27458 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
27459 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
27460 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
27461 if bti is enabled.
27462 * config/aarch64/aarch64-bti-insert.c: New file.
27463 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
27464 pass.
27465 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
27466 new bti pass.
27467 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
27468 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
27469 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
27470 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
27471
27472 2018-01-09 Sudakshina Das <sudi.das@arm.com>
27473
27474 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
27475 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
27476 Disable bti for -mbranch-protection=none.
27477 (aarch64_handle_standard_branch_protection): Enable bti for
27478 -mbranch-protection=standard.
27479 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
27480 -mbranch-protection.
27481 (aarch64_bti_enabled): Check if bti is enabled.
27482 * config/aarch64/aarch64.opt: Declare target variable.
27483 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
27484
27485 2018-01-09 Sudakshina Das <sudi.das@arm.com>
27486
27487 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
27488 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
27489 (aarch64_expand_epilogue): Likewise.
27490 (aarch64_output_mi_thunk): Likewise.
27491 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
27492 TAILCALL_ADDR_REGS to x16 and x17.
27493 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
27494
27495 2018-01-09 Sudakshina Das <sudi.das@arm.com>
27496
27497 * config/aarch64/aarch64-option-extensions.def: Define
27498 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
27499 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
27500 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
27501 (AARCH64_FL_PREDRES): New.
27502 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
27503 AARCH64_FL_PREDRES by default.
27504 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
27505
27506 2018-01-09 Sudakshina Das <sudi.das@arm.com>
27507
27508 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
27509 ARMv8.5-A.
27510 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
27511 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
27512 * doc/invoke.texi: Document ARMv8.5-A.
27513
27514 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27515
27516 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
27517 (xorsign<mode>3): Likewise.
27518
27519 2019-01-09 Jelinek <jakub@redhat.com>
27520
27521 PR middle-end/88758
27522 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
27523 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
27524
27525 PR rtl-optimization/88331
27526 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
27527 not currently_expanding_to_rtl.
27528
27529 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
27530
27531 * doc/invoke.texi (-Os): Remove trailing spaces.
27532 (-finline-functions): Remove reference to -O2.
27533
27534 2019-01-08 Jakub Jelinek <jakub@redhat.com>
27535
27536 PR rtl-optimization/79593
27537 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
27538
27539 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
27540 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
27541
27542 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
27543
27544 PR bootstrap/88721
27545 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
27546 to -1 on entry.
27547
27548 PR debug/88723
27549 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
27550 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
27551
27552 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
27553
27554 PR target/88717
27555 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
27556 ix86_avx_u128_mode_entry.
27557
27558 2019-01-08 Martin Liska <mliska@suse.cz>
27559
27560 PR tree-optimization/88753
27561 * tree-switch-conversion.c (switch_conversion::build_one_array):
27562 Come up with local variable constructor. Convert first to
27563 type of constructor values.
27564
27565 2019-01-08 Richard Biener <rguenther@suse.de>
27566
27567 PR tree-optimization/86554
27568 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
27569 rpo_avail): Move earlier.
27570 (visit_nary_op): When value-numbering to expressions
27571 with different overflow behavior make sure there's an
27572 available expression on the path.
27573
27574 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
27575
27576 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
27577 aarch64_parse_branch_protection,
27578 struct aarch64_branch_protect_type,
27579 aarch64_handle_no_branch_protection,
27580 aarch64_handle_standard_branch_protection,
27581 aarch64_validate_mbranch_protection,
27582 aarch64_handle_pac_ret_protection,
27583 aarch64_handle_attr_branch_protection,
27584 accepted_branch_protection_string,
27585 aarch64_pac_ret_subtypes,
27586 aarch64_branch_protect_types,
27587 aarch64_handle_pac_ret_leaf): Define.
27588 (aarch64_override_options_after_change_1, aarch64_override_options):
27589 Add check for accepted_branch_protection_string.
27590 (aarch64_option_save): Save accepted_branch_protection_string.
27591 (aarch64_option_restore): Save accepted_branch_protection_string.
27592 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
27593 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
27594 msign-return-address.
27595 * doc/invoke.texi: Add mbranch-protection.
27596
27597 2019-01-08 Alan Modra <amodra@gmail.com>
27598
27599 PR target/88614
27600 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
27601 Delete "unknownp" parameter. Adjust callers. Handle
27602 CONST_INT, PLUS, MINUS, and MULT.
27603 (attr_value_aligned): Renamed from or_attr_value.
27604 (min_attr_value): Return INT_MIN for unhandled rtl case..
27605 (min_fn): ..and translate to INT_MAX here.
27606 (write_length_unit_log): Modify to cope without "unknown".
27607 (write_attr_value): Handle IF_THEN_ELSE.
27608
27609 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
27610
27611 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
27612 optimization for masked stores.
27613
27614 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
27615
27616 PR middle-end/88567
27617 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
27618 output vector directly to duplicate_and_interleave instead of
27619 going through a temporary. Postpone insertion of ctor_seq to
27620 the end of the loop.
27621
27622 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
27623
27624 PR target/86891
27625 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
27626 unsigned_p. Handle signed and unsigned overflow correction as
27627 required.
27628 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
27629 prototype.
27630 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
27631 for operand 2.
27632 (add<mode>3_compareV_imm): Make this callable for expanding.
27633 (subv<GPI:mode>4): Use register_operand for operand 1. Use
27634 aarch64_plus_operand for operand 2.
27635 (subv<GPI:mode>_insn): New insn pattern.
27636 (subv<GPI:mode>_imm): Likewise.
27637 (negv<GPI:mode>3): New expand pattern.
27638 (negv<GPI:mode>_insn): New insn pattern.
27639 (negv<GPI:mode>_cmp_only): Likewise.
27640 (cmpv<GPI:mode>_insn): Likewise.
27641 (subvti4): Use register_operand for operand 1. Update call to
27642 aarch64_expand_subvti.
27643 (usubvti4): Likewise.
27644 (negvti3): New expand pattern.
27645 (negdi_carryout): New insn pattern.
27646 (negvdi_carryinV): New insn pattern.
27647 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
27648 version the named version.
27649 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
27650 operands.
27651 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
27652 patterns.
27653 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
27654 patterns.
27655 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
27656 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
27657 (sub<mode>3_carryinCV): Delete.
27658 (sub<GPI:mode>3_carryinV): New expand pattern.
27659 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
27660
27661 2019-01-07 Richard Biener <rguenther@suse.de>
27662
27663 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
27664 of tree_operand_hash.
27665
27666 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
27667
27668 PR tree-optimization/88598
27669 * tree.h (single_nonzero_element): Declare.
27670 * tree.c (single_nonzero_element): New function.
27671 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
27672 if I is the only nonzero element of CST.
27673
27674 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
27675
27676 PR tree-optimization/88598
27677 * tree.h (initializer_each_zero_or_onep): Declare.
27678 * tree.c (initializer_each_zero_or_onep): New function.
27679 (signed_or_unsigned_type_for): Handle float types too.
27680 (unsigned_type_for, signed_type_for): Update comments accordingly.
27681 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
27682 x & { 0 or -1, 0 or -1, ... }.
27683
27684 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
27685
27686 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
27687 with x86_64-pc-linux-gnu.
27688
27689 2019-01-07 Tom de Vries <tdevries@suse.de>
27690
27691 PR target/85486
27692 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
27693 function.
27694 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
27695 routines.
27696
27697 2019-01-07 Jakub Jelinek <jakub@redhat.com>
27698
27699 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
27700 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
27701 TARGET_AVX512F as condition.
27702
27703 PR debug/88723
27704 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
27705 const_not_ok_for_debug_p target hook.
27706 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
27707 on UNSPEC and subexpressions thereof if all subexpressions of the
27708 UNSPEC are CONSTANT_P.
27709
27710 PR tree-optimization/88676
27711 * tree-ssa-phiopt.c (two_value_replacement): New function.
27712 (tree_ssa_phiopt_worker): Call it.
27713
27714 PR sanitizer/88619
27715 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
27716 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
27717
27718 PR c++/85052
27719 * tree-vect-generic.c: Include insn-config.h and recog.h.
27720 (expand_vector_piecewise): Add defaulted ret_type argument,
27721 if non-NULL, use that in preference to type for the result type.
27722 (expand_vector_parallel): Formatting fix.
27723 (do_vec_conversion, do_vec_narrowing_conversion,
27724 expand_vector_conversion): New functions.
27725 (expand_vector_operations_1): Call expand_vector_conversion
27726 for VEC_CONVERT ifn calls.
27727 * internal-fn.def (VEC_CONVERT): New internal function.
27728 * internal-fn.c (expand_VEC_CONVERT): New function.
27729 * fold-const-call.c (fold_const_vec_convert): New function.
27730 (fold_const_call): Use it for CFN_VEC_CONVERT.
27731 * doc/extend.texi (__builtin_convertvector): Document.
27732
27733 2019-01-07 Tom de Vries <tdevries@suse.de>
27734
27735 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
27736 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
27737 vector_red_partition, vector_red_sym): New global variables.
27738 (nvptx_option_override): Initialize vector_red_sym.
27739 (nvptx_declare_function_name): Restore red_partition register.
27740 (nvptx_file_end): Emit code to declare the vector reduction variables.
27741 (nvptx_output_red_partition): New function.
27742 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
27743 large vector reductions.
27744 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
27745 (nvptx_init_builtins): Add VECTOR_ADDR.
27746 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
27747 Handle nvptx_expand_shared_addr.
27748 (nvptx_get_shared_red_addr): Add vector argument and handle large
27749 vectors.
27750 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
27751 large vectors.
27752 (nvptx_goacc_reduction_init): Likewise.
27753 (nvptx_goacc_reduction_fini): Likewise.
27754 (nvptx_goacc_reduction_teardown): Likewise.
27755 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
27756 init,fini,teardown}.
27757 (nvptx_init_axis_predicate): Initialize vector_red_partition.
27758 (nvptx_set_current_function): Init vector_red_partition.
27759 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
27760 (nvptx_red_partition): New insn.
27761 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
27762
27763 2019-01-07 Tom de Vries <tdevries@suse.de>
27764
27765 PR target/85381
27766 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
27767 empty loops.
27768
27769 2019-01-07 Tom de Vries <tdevries@suse.de>
27770
27771 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
27772 (nvptx_option_override): Init oacc_bcast_partition.
27773 (nvptx_init_oacc_workers): New function.
27774 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
27775 (nvptx_needs_shared_bcast): New function.
27776 (nvptx_find_par): Generalize to enable vectors to use shared-memory
27777 to propagate state.
27778 (nvptx_shared_propagate): Initialize vector bcast partition and
27779 synchronization state.
27780 (nvptx_single): Generalize to enable vectors to use shared-memory
27781 to propagate state.
27782 (nvptx_process_pars): Likewise.
27783 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
27784 * config/nvptx/nvptx.h (struct machine_function): Add
27785 bcast_partition and sync_bar members.
27786
27787 2019-01-07 Tom de Vries <tdevries@suse.de>
27788
27789 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
27790 (nvptx_apply_dim_limits): New function.
27791 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
27792 PTX_WARP_SIZE.
27793
27794 2019-01-07 Tom de Vries <tdevries@suse.de>
27795
27796 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
27797 as late as possible.
27798
27799 2019-01-07 Tom de Vries <tdevries@suse.de>
27800
27801 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
27802 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
27803 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
27804 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
27805 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
27806
27807 2019-01-07 Tom de Vries <tdevries@suse.de>
27808
27809 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
27810
27811 2019-01-07 Tom de Vries <tdevries@suse.de>
27812
27813 * omp-offload.c (oacc_get_min_dim): New function.
27814 * omp-offload.h (oacc_get_min_dim): Declare.
27815
27816 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
27817
27818 PR target/88521
27819 * config/i386/i386.c (function_value_ms_64): Return small sturct in
27820 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
27821
27822 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27823
27824 PR tree-opt/86020
27825 Revert:
27826 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
27827
27828 * ipa-inline.c (edge_badness): Use inlined_time instead of
27829 inline_summaries->get.
27830
27831 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27832
27833 * opts.c (enable_fdo_optimizations): Enable
27834 version-loops-for-strides, loop-interchange, unrol-and-jam
27835 and tree-loop-distribution.
27836 * invoke.texi: Document newly enabled options.
27837
27838 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27839
27840 * doc/invoke.texi (max-inline-insns-small): New parameters.
27841 * ipa-inline.c (want_early_inline_function_p): simplify.
27842 (want_inline_small_function_p): Fix pasto from previous patch;
27843 use max-inline-insns-small bound.
27844 * params.def (max-inline-insns-small): New param.
27845 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
27846 variables correctly.
27847
27848 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27849
27850 * doc/invoke.texi: Document max-inline-insns-size,
27851 uninlined-function-insns, uninlined-function-time,
27852 uninlined-thunk-insns and uninlined-thunk-time.
27853 * params.def: Add max-inline-insns-size,
27854 uninlined-function-insns, uninlined-function-time,
27855 uninlined-thunk-insns and uninlined-thunk-time.
27856 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
27857 new parameters.
27858 * ipa-inline.c (can_inline_edge_by_limits_p,
27859 want_inline_small_function_p): Use new parameters.
27860
27861 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27862
27863 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
27864
27865 2019-01-05 Jakub Jelinek <jakub@redhat.com>
27866
27867 PR middle-end/82564
27868 PR target/88620
27869 * expr.c (expand_assignment): For calls returning VLA structures
27870 if to_rtx is not a MEM, force it into a stack temporary.
27871
27872 PR debug/88635
27873 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
27874 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
27875 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
27876 subexpressions of both operands.
27877 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
27878 subrtxes are CONSTANT_P.
27879 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
27880 2018-11-09 changes.
27881
27882 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
27883
27884 * params.def (hot-bb-count-ws-permille): Set to 990.
27885
27886 2019-01-04 Martin Sebor <msebor@redhat.com>
27887
27888 PR c/88546
27889 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
27890 leaf.
27891
27892 2019-01-04 Martin Sebor <msebor@redhat.com>
27893
27894 PR c/88363
27895 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
27896
27897 2019-01-04 Jakub Jelinek <jakub@redhat.com>
27898
27899 * gdbinit.in: Turn off pagination for the skip commands, restore
27900 it to previous state afterwards.
27901
27902 2019-01-04 Jakub Jelinek <jakub@redhat.com>
27903
27904 PR target/88594
27905 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
27906 of GET_MODE (opN) as modes of the libcall arguments.
27907
27908 2019-01-04 Jan Beulich <jbeulich@suse.com>
27909
27910 * config/i386/sse.md
27911 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
27912 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
27913 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
27914 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
27915 avx512f_vmcmp<mode>3<round_saeonly_name>,
27916 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
27917 avx512f_maskcmp<mode>3,
27918 <avx512>_cvt<ssemodesuffix>2mask<mode>,
27919 <avx512>_cvt<ssemodesuffix>2mask<mode>,
27920 *<avx512>_cvtmask2<ssemodesuffix><mode>,
27921 *<avx512>_cvtmask2<ssemodesuffix><mode>,
27922 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
27923 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
27924 <avx512>_gt<mode>3<mask_scalar_merge_name>,
27925 <avx512>_gt<mode>3<mask_scalar_merge_name>,
27926 <avx512>_testm<mode>3<mask_scalar_merge_name>,
27927 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
27928 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
27929 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
27930 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
27931 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
27932 avx512cd_maskb_vec_dup<mode>,
27933 avx512cd_maskw_vec_dup<mode>,
27934 avx512dq_fpclass<mode><mask_scalar_merge_name>,
27935 avx512dq_vmfpclass<mode>,
27936 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
27937 instead of =Yk.
27938
27939 2019-01-03 Martin Sebor <msebor@redhat.com>
27940
27941 PR tree-optimization/88659
27942 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
27943
27944 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
27945
27946 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
27947 unaligned vsx and avoid lxvd2x/stxvd2x.
27948 (gen_lvx_v4si_move): New function.
27949
27950 2019-01-03 Tom de Vries <tdevries@suse.de>
27951
27952 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
27953 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
27954 function.
27955 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
27956
27957 2019-01-03 Tom de Vries <tdevries@suse.de>
27958
27959 * config/nvptx/nvptx.c (struct offload_attrs): New.
27960 (populate_offload_attrs): New function. Factor mask extraction out of
27961 nvptx_reorg. Add extraction of dimensions.
27962 (nvptx_reorg): Use populate_offload_attrs.
27963
27964 2019-01-03 Tom de Vries <tdevries@suse.de>
27965
27966 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
27967 cases for oacc_min_dims_p and routine_p. Add asserts for
27968 oacc_default_dims_p and offload_region_p.
27969
27970 2019-01-03 Tom de Vries <tdevries@suse.de>
27971
27972 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
27973 factored out of ...
27974 (nvptx_goacc_validate_dims): ... here.
27975
27976 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
27977
27978 PR tree-optimization/85574
27979 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
27980 structure.
27981 (struct ssa_equip_hash_traits): Declare.
27982 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
27983
27984 2019-01-03 Jakub Jelinek <jakub@redhat.com>
27985
27986 PR debug/88644
27987 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
27988 change it to qualified_type.
27989
27990 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
27991
27992 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
27993 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
27994
27995 2019-01-02 Martin Sebor <msebor@redhat.com>
27996 Jeff Law <law@redhat.com>
27997
27998 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
27999 (get_range_strlen_tree): Update appropriately.
28000 (get_range_strlen)
28001 * gimple-fold.h (get_range_strlen): Drop unused last argument.
28002
28003 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
28004 rather than set_range_info.
28005 * tree-ssa-strlen.c (set_strlen_range): Extracted from
28006 maybe_set_strlen_range. Handle potentially boundary crossing
28007 cases more conservatively.
28008 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
28009 Call set_strlen_range.
28010 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
28011
28012 PR middle-end/88663
28013 * gimple-fold.c (get_range_strlen): Update prototype to no longer
28014 need the flexp argument.
28015 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
28016 from calls to get_range_strlen. Update comments. Just update
28017 VAL for an unterminated const char array and let the reset of the
28018 code handle it normally. No longer try to set *flexp. Adjust
28019 return value.
28020 (get_range_strlen): Update for the new get_range_strlen API.
28021 (get_maxval_strlen): Similarly.
28022 (gimple_fold_builtin_strlen): Handle update meaning of return value
28023 from get_range_strlen.
28024 * gimple-ssa-sprintf.c (get_string_length): Update for the new
28025 get_range_strlen API.
28026
28027 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
28028
28029 PR lto/88130
28030 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
28031 false at WPA time when body was removed.
28032
28033 2019-01-02 Martin Liska <mliska@suse.cz>
28034
28035 PR tree-optimization/88650
28036 * predict.c (set_even_probabilities): Calculate probability
28037 remainer only when really used.
28038
28039 2019-01-02 Richard Biener <rguenther@suse.de>
28040
28041 PR middle-end/88651
28042 * tree-data-ref.c (analyze_subscript_affine_affine): Use
28043 widest_ints when mangling max_stmt_execution results.
28044
28045 2019-01-02 Richard Biener <rguenther@suse.de>
28046
28047 PR tree-optimization/88621
28048 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
28049 bitfields when canoncalizing.
28050
28051 2019-01-02 Richard Biener <rguenther@suse.de>
28052
28053 PR target/87545
28054 * config/i386/x86-tune-costs.h (intel_cost): Adjust
28055 cost of cheap SSE instruction.
28056
28057 2019-01-02 Richard Biener <rguenther@suse.de>
28058
28059 PR ipa/85574
28060 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
28061 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
28062 function.
28063 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
28064 set after UIDs before splitting them.
28065
28066 2019-01-01 Martin Sebor <msebor@redhat.com>
28067 Jeff Law <law@redhat.com>
28068
28069 * gimple-fold.c (get_range_strlen_tree): Record if the computed
28070 length is optimistic. If it is, then arrange to compute the
28071 conservative length as well.
28072
28073 * gimple-fold.h (get_range_strlen): Update prototype.
28074 * builtins.c (check_access): Update call to get_range_strlen to use
28075 c_strlen_data pointer. Change various variable accesses to instead
28076 pull data from the c_strlen_data structure.
28077 (check_strncat_sizes, expand_builtin_strncat): Likewise.
28078 * calls.c (maybe_warn_nonstring_arg): Likewise.
28079 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
28080 minimum length if maximum lengh is unknown.
28081 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
28082 that used c_strlen, it's no longer needed. Restructure slightly.
28083 (format_string): Set unlikely range appropriately.
28084 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
28085 formatting issues.
28086 (get_range_strlen): Accept c_strlen_data pointer for external
28087 call sites as well. Pass through to call to internal get_range_strlen.
28088 Adjust minlen, maxlen and maxbound as needed.
28089 (get_maxval_strlen): Update comments.
28090 (gimple_fold_builtin_strlen): Update call to get_range_strlen
28091 to use c_strlen_data pointer. Change variable accesses to instead
28092 use c_strlen_data data members.
28093
28094 * gimple-fold.c (get_range_strlen): Update prototype.
28095 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
28096 local variables. Use pdata to return information to caller.
28097 Update calls to get_range_strlen. Update pdata->maxbound.
28098 (get_range_strlen -- static version): Similarly.
28099 (get_range_strlen -- extern version): Update for internal
28100 get_range_strlen API change. Convert to external data format.
28101 (get_maxval_strlen): Similarly.
28102
28103 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
28104
28105 * coverage.c (get_coverage_counts): Use current_function_decl.
28106 * profile.c (read_thunk_profile): New function.
28107 (branch_prob): Add THUNK parameter.
28108 * tree-profile.c (tree_profiling): Handle thunks.
28109 * value-prof.c (init_node_map): Handle thunks.
28110 * value-prof.h (branch_prob): Upate prototype.
28111 (read_thunk_profile): Declare.
28112
28113 2019-01-01 Jakub Jelinek <jakub@redhat.com>
28114
28115 Update copyright years.
28116
28117 * gcc.c (process_command): Update copyright notice dates.
28118 * gcov-dump.c (print_version): Ditto.
28119 * gcov.c (print_version): Ditto.
28120 * gcov-tool.c (print_version): Ditto.
28121 * gengtype.c (create_file): Ditto.
28122 * doc/cpp.texi: Bump @copying's copyright year.
28123 * doc/cppinternals.texi: Ditto.
28124 * doc/gcc.texi: Ditto.
28125 * doc/gccint.texi: Ditto.
28126 * doc/gcov.texi: Ditto.
28127 * doc/install.texi: Ditto.
28128 * doc/invoke.texi: Ditto.
28129 \f
28130 Copyright (C) 2019 Free Software Foundation, Inc.
28131
28132 Copying and distribution of this file, with or without modification,
28133 are permitted in any medium without royalty provided the copyright
28134 notice and this notice are preserved.